diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 0dae7dd..0000000 --- a/.eslintignore +++ /dev/null @@ -1,6 +0,0 @@ -dist -node_modules -package.json -package-lock.json -yarn.lock -public/3rd-party/ diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index beb327a..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "env": { - "browser": true, - "es2021": true - }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "airbnb-base" - ], - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 12, - "sourceType": "module" - }, - "plugins": [ - "react" - ], - "rules": { - "keyword-spacing": [ - "error", - { - "before": true, - "after": true - } - ], - "indent": ["error", 4], - "linebreak-style": ["error", "unix"], - "quotes": ["error", "double"], - "comma-dangle": ["error", "never"], - "semi": ["error", "never"], - "no-underscore-dangle": ["error", { "allow": [] }], - "no-param-reassign": ["error", { "props": false }], - "no-console": ["error", { "allow": ["warn", "log", "error", "debug"] }], - "operator-linebreak": ["error", "after"], - "new-cap": ["error", { "newIsCap": false }], - "max-len": ["error", { "code": 230 }], - "function-paren-newline": ["warn", { "minItems": 3 }], - "react/prop-types": [0], - "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"], - "react/no-unknown-property": ["error", { "ignore": ["x-tooltip"] }] - } -} diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 2125666..0000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 9f91313..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: React app deployement - -on: - push: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Restore CI Cache - uses: actions/cache@v2 - id: cache - with: - path: node_modules - key: ${{ runner.os }}-16-${{ hashFiles('**/yarn.lock') }} - - - name: Install Dependencies - if: ${{ !steps.cache.outputs.cache-hit }} - run: yarn --frozen-lockfile - - - run: | - npm ci - npm run build - echo "matikkaeditori.fi" >> dist/CNAME - echo "VERSION: " >> dist/VERSION - echo $(git rev-parse --short "$GITHUB_SHA") >> dist/VERSION - git config user.name github-actions - git config user.email github-actions@github.com - git --work-tree dist add --all - git commit -m "Automatic React build & deploy" - git push origin HEAD:gh-pages --force diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2adc1c1..0000000 --- a/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/node_modules* -/.pnp -.pnp.js - -# testing -/coverage -yarn.lock - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -lib/ -dist/ diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 8582900..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "files.eol": "\n" -} diff --git a/public/3rd-party/html2canvas.min.js b/3rd-party/html2canvas.min.js similarity index 100% rename from public/3rd-party/html2canvas.min.js rename to 3rd-party/html2canvas.min.js diff --git a/public/3rd-party/html2pdf.min.js b/3rd-party/html2pdf.min.js similarity index 100% rename from public/3rd-party/html2pdf.min.js rename to 3rd-party/html2pdf.min.js diff --git a/public/3rd-party/jquery.js b/3rd-party/jquery.js similarity index 100% rename from public/3rd-party/jquery.js rename to 3rd-party/jquery.js diff --git a/public/3rd-party/mathjax/input/tex/extensions/unicode.js b/3rd-party/mathjax/input/tex/extensions/unicode.js similarity index 100% rename from public/3rd-party/mathjax/input/tex/extensions/unicode.js rename to 3rd-party/mathjax/input/tex/extensions/unicode.js diff --git a/public/3rd-party/mathjax/license.txt b/3rd-party/mathjax/license.txt similarity index 100% rename from public/3rd-party/mathjax/license.txt rename to 3rd-party/mathjax/license.txt diff --git a/public/3rd-party/mathjax/tex-svg.js b/3rd-party/mathjax/tex-svg.js similarity index 100% rename from public/3rd-party/mathjax/tex-svg.js rename to 3rd-party/mathjax/tex-svg.js diff --git a/public/3rd-party/mathquill/MathQuill.js b/3rd-party/mathquill/MathQuill.js similarity index 100% rename from public/3rd-party/mathquill/MathQuill.js rename to 3rd-party/mathquill/MathQuill.js diff --git a/public/3rd-party/mathquill/editor.css b/3rd-party/mathquill/editor.css similarity index 100% rename from public/3rd-party/mathquill/editor.css rename to 3rd-party/mathquill/editor.css diff --git a/public/3rd-party/mathquill/font/Symbola-basic.eot b/3rd-party/mathquill/font/Symbola-basic.eot similarity index 100% rename from public/3rd-party/mathquill/font/Symbola-basic.eot rename to 3rd-party/mathquill/font/Symbola-basic.eot diff --git a/public/3rd-party/mathquill/font/Symbola-basic.ttf b/3rd-party/mathquill/font/Symbola-basic.ttf similarity index 100% rename from public/3rd-party/mathquill/font/Symbola-basic.ttf rename to 3rd-party/mathquill/font/Symbola-basic.ttf diff --git a/public/3rd-party/mathquill/font/Symbola-basic.woff b/3rd-party/mathquill/font/Symbola-basic.woff similarity index 100% rename from public/3rd-party/mathquill/font/Symbola-basic.woff rename to 3rd-party/mathquill/font/Symbola-basic.woff diff --git a/public/3rd-party/mathquill/font/Symbola-basic.woff2 b/3rd-party/mathquill/font/Symbola-basic.woff2 similarity index 100% rename from public/3rd-party/mathquill/font/Symbola-basic.woff2 rename to 3rd-party/mathquill/font/Symbola-basic.woff2 diff --git a/public/3rd-party/mathquill/font/Symbola.eot b/3rd-party/mathquill/font/Symbola.eot similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.eot rename to 3rd-party/mathquill/font/Symbola.eot diff --git a/public/3rd-party/mathquill/font/Symbola.otf b/3rd-party/mathquill/font/Symbola.otf similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.otf rename to 3rd-party/mathquill/font/Symbola.otf diff --git a/public/3rd-party/mathquill/font/Symbola.svg b/3rd-party/mathquill/font/Symbola.svg similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.svg rename to 3rd-party/mathquill/font/Symbola.svg diff --git a/public/3rd-party/mathquill/font/Symbola.ttf b/3rd-party/mathquill/font/Symbola.ttf similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.ttf rename to 3rd-party/mathquill/font/Symbola.ttf diff --git a/public/3rd-party/mathquill/font/Symbola.woff b/3rd-party/mathquill/font/Symbola.woff similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.woff rename to 3rd-party/mathquill/font/Symbola.woff diff --git a/public/3rd-party/mathquill/font/Symbola.woff2 b/3rd-party/mathquill/font/Symbola.woff2 similarity index 100% rename from public/3rd-party/mathquill/font/Symbola.woff2 rename to 3rd-party/mathquill/font/Symbola.woff2 diff --git a/public/3rd-party/mathquill/license.txt b/3rd-party/mathquill/license.txt similarity index 100% rename from public/3rd-party/mathquill/license.txt rename to 3rd-party/mathquill/license.txt diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..df9c59f --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +matikkaeditori.fi diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f288702..0000000 --- a/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/README.md b/README.md deleted file mode 100644 index 1d3e18e..0000000 --- a/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# Matikkaeditori.fi-v3 - -> Project information is available on our project page: [here](https://testausserveri.fi/projects/matikkaeditori-fi) - -# Development - -## Available Scripts - -In the project directory, you can run: - -### `npm run dev` - -Runs the app in the development mode.\ -Open http://localhost:5173 to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -# License -``` -Copyright (C) 2023 Testausserveri ry, Eemil Sinkko, Mikael Hannolainen and contributors - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see -``` diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..c228f6e --- /dev/null +++ b/VERSION @@ -0,0 +1,2 @@ +VERSION: +813dbb9 diff --git a/public/android-chrome-192x192.png b/android-chrome-192x192.png similarity index 100% rename from public/android-chrome-192x192.png rename to android-chrome-192x192.png diff --git a/public/android-chrome-512x512.png b/android-chrome-512x512.png similarity index 100% rename from public/android-chrome-512x512.png rename to android-chrome-512x512.png diff --git a/public/apple-touch-icon.png b/apple-touch-icon.png similarity index 100% rename from public/apple-touch-icon.png rename to apple-touch-icon.png diff --git a/assets/cloud-storage-24df63a8.js b/assets/cloud-storage-24df63a8.js new file mode 100644 index 0000000..dc7e0aa --- /dev/null +++ b/assets/cloud-storage-24df63a8.js @@ -0,0 +1 @@ +(function(){"use strict";postMessage(JSON.stringify({type:"log",content:"Cloud storage worker loaded!"}))})(); diff --git a/src/math-editor/error.svg b/assets/error-7f83329a.svg similarity index 100% rename from src/math-editor/error.svg rename to assets/error-7f83329a.svg diff --git a/assets/filesystem-5b7e1a66.js b/assets/filesystem-5b7e1a66.js new file mode 100644 index 0000000..3b8bc70 --- /dev/null +++ b/assets/filesystem-5b7e1a66.js @@ -0,0 +1,7 @@ +(function(){"use strict";const De=Symbol("Comlink.proxy"),it=Symbol("Comlink.endpoint"),st=Symbol("Comlink.releaseProxy"),me=Symbol("Comlink.thrown"),ke=i=>typeof i=="object"&&i!==null||typeof i=="function",ct={canHandle:i=>ke(i)&&i[De],serialize(i){const{port1:s,port2:v}=new MessageChannel;return ye(i,s),[v,[v]]},deserialize(i){return i.start(),lt(i)}},ft={canHandle:i=>ke(i)&&me in i,serialize({value:i}){let s;return i instanceof Error?s={isError:!0,value:{message:i.message,name:i.name,stack:i.stack}}:s={isError:!1,value:i},[s,[]]},deserialize(i){throw i.isError?Object.assign(new Error(i.value.message),i.value):i.value}},Oe=new Map([["proxy",ct],["throw",ft]]);function ye(i,s=self){s.addEventListener("message",function v(d){if(!d||!d.data)return;const{id:y,type:_,path:b}=Object.assign({path:[]},d.data),g=(d.data.argumentList||[]).map(Z);let x;try{const S=b.slice(0,-1).reduce((u,E)=>u[E],i),O=b.reduce((u,E)=>u[E],i);switch(_){case"GET":x=O;break;case"SET":S[b.slice(-1)[0]]=Z(d.data.value),x=!0;break;case"APPLY":x=O.apply(S,g);break;case"CONSTRUCT":{const u=new O(...g);x=vt(u)}break;case"ENDPOINT":{const{port1:u,port2:E}=new MessageChannel;ye(i,E),x=ht(u,[u])}break;case"RELEASE":x=void 0;break;default:return}}catch(S){x={value:S,[me]:0}}Promise.resolve(x).catch(S=>({value:S,[me]:0})).then(S=>{const[O,u]=ge(S);s.postMessage(Object.assign(Object.assign({},O),{id:y}),u),_==="RELEASE"&&(s.removeEventListener("message",v),Pe(s))})}),s.start&&s.start()}function ut(i){return i.constructor.name==="MessagePort"}function Pe(i){ut(i)&&i.close()}function lt(i,s){return pe(i,[],s)}function fe(i){if(i)throw new Error("Proxy has been released and is not useable")}function pe(i,s=[],v=function(){}){let d=!1;const y=new Proxy(v,{get(_,b){if(fe(d),b===st)return()=>ee(i,{type:"RELEASE",path:s.map(g=>g.toString())}).then(()=>{Pe(i),d=!0});if(b==="then"){if(s.length===0)return{then:()=>y};const g=ee(i,{type:"GET",path:s.map(x=>x.toString())}).then(Z);return g.then.bind(g)}return pe(i,[...s,b])},set(_,b,g){fe(d);const[x,S]=ge(g);return ee(i,{type:"SET",path:[...s,b].map(O=>O.toString()),value:x},S).then(Z)},apply(_,b,g){fe(d);const x=s[s.length-1];if(x===it)return ee(i,{type:"ENDPOINT"}).then(Z);if(x==="bind")return pe(i,s.slice(0,-1));const[S,O]=Le(g);return ee(i,{type:"APPLY",path:s.map(u=>u.toString()),argumentList:S},O).then(Z)},construct(_,b){fe(d);const[g,x]=Le(b);return ee(i,{type:"CONSTRUCT",path:s.map(S=>S.toString()),argumentList:g},x).then(Z)}});return y}function dt(i){return Array.prototype.concat.apply([],i)}function Le(i){const s=i.map(ge);return[s.map(v=>v[0]),dt(s.map(v=>v[1]))]}const Ce=new WeakMap;function ht(i,s){return Ce.set(i,s),i}function vt(i){return Object.assign(i,{[De]:!0})}function ge(i){for(const[s,v]of Oe)if(v.canHandle(i)){const[d,y]=v.serialize(i);return[{type:"HANDLER",name:s,value:d},y]}return[{type:"RAW",value:i},Ce.get(i)||[]]}function Z(i){switch(i.type){case"HANDLER":return Oe.get(i.name).deserialize(i.value);case"RAW":return i.value}}function ee(i,s,v){return new Promise(d=>{const y=mt();i.addEventListener("message",function _(b){!b.data||!b.data.id||b.data.id!==y||(i.removeEventListener("message",_),d(b.data))}),i.start&&i.start(),i.postMessage(Object.assign({id:y},s),v)})}function mt(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function le(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fe={exports:{}};/*! + localForage -- Offline Storage, Improved + Version 1.10.0 + https://localforage.github.io/localForage + (c) 2013-2017 Mozilla, Apache License 2.0 +*/(function(i,s){(function(v){i.exports=v()})(function(){return function v(d,y,_){function b(S,O){if(!y[S]){if(!d[S]){var u=typeof le=="function"&≤if(!O&&u)return u(S,!0);if(g)return g(S,!0);var E=new Error("Cannot find module '"+S+"'");throw E.code="MODULE_NOT_FOUND",E}var R=y[S]={exports:{}};d[S][0].call(R.exports,function(P){var V=d[S][1][P];return b(V||P)},R,R.exports,v,d,y,_)}return y[S].exports}for(var g=typeof le=="function"&&le,x=0;x<_.length;x++)b(_[x]);return b}({1:[function(v,d,y){(function(_){var b=_.MutationObserver||_.WebKitMutationObserver,g;if(b){var x=0,S=new b(P),O=_.document.createTextNode("");S.observe(O,{characterData:!0}),g=function(){O.data=x=++x%2}}else if(!_.setImmediate&&typeof _.MessageChannel<"u"){var u=new _.MessageChannel;u.port1.onmessage=P,g=function(){u.port2.postMessage(0)}}else"document"in _&&"onreadystatechange"in _.document.createElement("script")?g=function(){var F=_.document.createElement("script");F.onreadystatechange=function(){P(),F.onreadystatechange=null,F.parentNode.removeChild(F),F=null},_.document.documentElement.appendChild(F)}:g=function(){setTimeout(P,0)};var E,R=[];function P(){E=!0;for(var F,j,B=R.length;B;){for(j=R,R=[],F=-1;++F"u"&&v(3);var u=Promise;function E(e,n){n&&e.then(function(t){n(null,t)},function(t){n(t)})}function R(e,n,t){typeof n=="function"&&e.then(n),typeof t=="function"&&e.catch(t)}function P(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function V(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var F="local-forage-detect-blob-support",j=void 0,B={},be=Object.prototype.toString,q="readonly",p="readwrite";function T(e){for(var n=e.length,t=new ArrayBuffer(n),o=new Uint8Array(t),a=0;a=43)}}).catch(function(){return!1})}function k(e){return typeof j=="boolean"?u.resolve(j):N(e).then(function(n){return j=n,j})}function M(e){var n=B[e.name],t={};t.promise=new u(function(o,a){t.resolve=o,t.reject=a}),n.deferredOperations.push(t),n.dbReady?n.dbReady=n.dbReady.then(function(){return t.promise}):n.dbReady=t.promise}function U(e){var n=B[e.name],t=n.deferredOperations.pop();if(t)return t.resolve(),t.promise}function $(e,n){var t=B[e.name],o=t.deferredOperations.pop();if(o)return o.reject(n),o.promise}function W(e,n){return new u(function(t,o){if(B[e.name]=B[e.name]||$e(),e.db)if(n)M(e),e.db.close();else return t(e.db);var a=[e.name];n&&a.push(e.version);var r=x.open.apply(x,a);n&&(r.onupgradeneeded=function(c){var f=r.result;try{f.createObjectStore(e.storeName),c.oldVersion<=1&&f.createObjectStore(F)}catch(l){if(l.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+c.oldVersion+" to version "+c.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw l}}),r.onerror=function(c){c.preventDefault(),o(r.error)},r.onsuccess=function(){var c=r.result;c.onversionchange=function(f){f.target.close()},t(c),U(e)}})}function G(e){return W(e,!1)}function ie(e){return W(e,!0)}function de(e,n){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.versione.db.version;if(o&&(e.version!==n&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),a||t){if(t){var r=e.db.version+1;r>e.version&&(e.version=r)}return!0}return!1}function we(e){return new u(function(n,t){var o=new FileReader;o.onerror=t,o.onloadend=function(a){var r=btoa(a.target.result||"");n({__local_forage_encoded_blob:!0,data:r,type:e.type})},o.readAsBinaryString(e)})}function ne(e){var n=T(atob(e.data));return O([n],{type:e.type})}function Ue(e){return e&&e.__local_forage_encoded_blob}function _t(e){var n=this,t=n._initReady().then(function(){var o=B[n._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return R(t,e,e),t}function Et(e){M(e);for(var n=B[e.name],t=n.forages,o=0;o0&&(!e.db||r.name==="InvalidStateError"||r.name==="NotFoundError"))return u.resolve().then(function(){if(!e.db||r.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return Et(e).then(function(){Q(e,n,t,o-1)})}).catch(t);t(r)}}function $e(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function xt(e){var n=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var a=B[t.name];a||(a=$e(),B[t.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=_t);var r=[];function c(){return u.resolve()}for(var f=0;f>4,m[a++]=(c&15)<<4|f>>2,m[a++]=(f&3)<<6|l&63;return h}function Se(e){var n=new Uint8Array(e),t="",o;for(o=0;o>2],t+=X[(n[o]&3)<<4|n[o+1]>>4],t+=X[(n[o+1]&15)<<2|n[o+2]>>6],t+=X[n[o+2]&63];return n.length%3===2?t=t.substring(0,t.length-1)+"=":n.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function Ft(e,n){var t="";if(e&&(t=Ze.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Ze.call(e.buffer)==="[object ArrayBuffer]")){var o,a=he;e instanceof ArrayBuffer?(o=e,a+=Ee):(o=e.buffer,t==="[object Int8Array]"?a+=Ye:t==="[object Uint8Array]"?a+=ze:t==="[object Uint8ClampedArray]"?a+=Ve:t==="[object Int16Array]"?a+=Je:t==="[object Uint16Array]"?a+=je:t==="[object Int32Array]"?a+=He:t==="[object Uint32Array]"?a+=Ge:t==="[object Float32Array]"?a+=Qe:t==="[object Float64Array]"?a+=Xe:n(new Error("Failed to get type for BinaryArray"))),n(a+Se(o))}else if(t==="[object Blob]"){var r=new FileReader;r.onload=function(){var c=Ct+e.type+"~"+Se(this.result);n(he+xe+c)},r.readAsArrayBuffer(e)}else try{n(JSON.stringify(e))}catch(c){console.error("Couldn't convert value into a JSON string: ",e),n(null,c)}}function Bt(e){if(e.substring(0,_e)!==he)return JSON.parse(e);var n=e.substring(Ke),t=e.substring(_e,Ke),o;if(t===xe&&We.test(n)){var a=n.match(We);o=a[1],n=n.substring(a[0].length)}var r=qe(n);switch(t){case Ee:return r;case xe:return O([r],{type:o});case Ye:return new Int8Array(r);case ze:return new Uint8Array(r);case Ve:return new Uint8ClampedArray(r);case Je:return new Int16Array(r);case je:return new Uint16Array(r);case He:return new Int32Array(r);case Ge:return new Uint32Array(r);case Qe:return new Float32Array(r);case Xe:return new Float64Array(r);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:Ft,deserialize:Bt,stringToBuffer:qe,bufferToString:Se};function et(e,n,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function Mt(e){var n=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var a=new u(function(r,c){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(f){return c(f)}t.db.transaction(function(f){et(f,t,function(){n._dbInfo=t,r()},function(l,h){c(h)})},c)});return t.serializer=Ie,a}function K(e,n,t,o,a,r){e.executeSql(t,o,a,function(c,f){f.code===f.SYNTAX_ERR?c.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],function(l,h){h.rows.length?r(l,f):et(l,n,function(){l.executeSql(t,o,a,r)},r)},r):r(c,f)},r)}function Ut(e,n){var t=this;e=P(e);var o=new u(function(a,r){t.ready().then(function(){var c=t._dbInfo;c.db.transaction(function(f){K(f,c,"SELECT * FROM "+c.storeName+" WHERE key = ? LIMIT 1",[e],function(l,h){var m=h.rows.length?h.rows.item(0).value:null;m&&(m=c.serializer.deserialize(m)),a(m)},function(l,h){r(h)})})}).catch(r)});return E(o,n),o}function $t(e,n){var t=this,o=new u(function(a,r){t.ready().then(function(){var c=t._dbInfo;c.db.transaction(function(f){K(f,c,"SELECT * FROM "+c.storeName,[],function(l,h){for(var m=h.rows,w=m.length,I=0;I0){c(tt.apply(a,[e,l,t,o-1]));return}f(I)}})})}).catch(f)});return E(r,t),r}function Wt(e,n,t){return tt.apply(this,[e,n,t,1])}function Yt(e,n){var t=this;e=P(e);var o=new u(function(a,r){t.ready().then(function(){var c=t._dbInfo;c.db.transaction(function(f){K(f,c,"DELETE FROM "+c.storeName+" WHERE key = ?",[e],function(){a()},function(l,h){r(h)})})}).catch(r)});return E(o,n),o}function zt(e){var n=this,t=new u(function(o,a){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(c){K(c,r,"DELETE FROM "+r.storeName,[],function(){o()},function(f,l){a(l)})})}).catch(a)});return E(t,e),t}function Vt(e){var n=this,t=new u(function(o,a){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(c){K(c,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(f,l){var h=l.rows.item(0).c;o(h)},function(f,l){a(l)})})}).catch(a)});return E(t,e),t}function Jt(e,n){var t=this,o=new u(function(a,r){t.ready().then(function(){var c=t._dbInfo;c.db.transaction(function(f){K(f,c,"SELECT key FROM "+c.storeName+" WHERE id = ? LIMIT 1",[e+1],function(l,h){var m=h.rows.length?h.rows.item(0).key:null;a(m)},function(l,h){r(h)})})}).catch(r)});return E(o,n),o}function Ht(e){var n=this,t=new u(function(o,a){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(c){K(c,r,"SELECT key FROM "+r.storeName,[],function(f,l){for(var h=[],m=0;m '__WebKitDatabaseInfoTable__'",[],function(a,r){for(var c=[],f=0;f0}function qt(e){var n=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=nt(e,n._defaultConfig),Zt()?(n._dbInfo=t,t.serializer=Ie,u.resolve()):u.reject()}function en(e){var n=this,t=n.ready().then(function(){for(var o=n._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var r=localStorage.key(a);r.indexOf(o)===0&&localStorage.removeItem(r)}});return E(t,e),t}function tn(e,n){var t=this;e=P(e);var o=t.ready().then(function(){var a=t._dbInfo,r=localStorage.getItem(a.keyPrefix+e);return r&&(r=a.serializer.deserialize(r)),r});return E(o,n),o}function nn(e,n){var t=this,o=t.ready().then(function(){for(var a=t._dbInfo,r=a.keyPrefix,c=r.length,f=localStorage.length,l=1,h=0;h=0;c--){var f=localStorage.key(c);f.indexOf(r)===0&&localStorage.removeItem(f)}}):a=u.reject("Invalid arguments"),E(a,n),a}var un={_driver:"localStorageWrapper",_initStorage:qt,_support:Xt(),iterate:nn,getItem:tn,setItem:cn,removeItem:sn,clear:en,length:an,key:rn,keys:on,dropInstance:fn},ln=function(n,t){return n===t||typeof n=="number"&&typeof t=="number"&&isNaN(n)&&isNaN(t)},dn=function(n,t){for(var o=n.length,a=0;a"u"?"undefined":_(t))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var o in t){if(o==="storeName"&&(t[o]=t[o].replace(/\W/g,"_")),o==="version"&&typeof t[o]!="number")return new Error("Database version must be a number.");this._config[o]=t[o]}return"driver"in t&&t.driver?this.setDriver(this._config.driver):!0}else return typeof t=="string"?this._config[t]:this._config},e.prototype.defineDriver=function(t,o,a){var r=new u(function(c,f){try{var l=t._driver,h=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){f(h);return}for(var m=Ne.concat("_initStorage"),w=0,I=m.length;w{const s=Math.random()*16|0;return(i==="x"?s:s&3|8).toString(16)})}const te=new EventTarget;self.addEventListener("message",i=>{if(typeof i.data!="string")return;const s=new CustomEvent("message",{detail:JSON.parse(i.data)});te.dispatchEvent(s)});var z={async send(i,s={}){return new Promise(async v=>{const d=oe();postMessage(JSON.stringify({type:i,content:s,id:s.id||d})),te.addEventListener("message",async y=>{y.detail.id!==null&&y.detail.id===d&&(te.removeEventListener("message",y),v(y.detail.content))})})},async sendToWorker(i,s={}){return new Promise((v,d)=>{const y=oe();if(s.id!==void 0&&(s.callback=!0),!i&&s.id===void 0){d(new Error("Target must be specified"));return}postMessage(JSON.stringify({type:"relay",target:i,content:s,id:s.id||y})),te.addEventListener("message",async _=>{_.detail.id!==null&&_.detail.id===y&&(te.removeEventListener("message",_),v(_.detail.content))})})},onMessage:te};class ae{constructor(s){(async()=>{let v=null;if(typeof window>"u"){const d=(await z.send("window")).window.id;self.id=d.id,v=d.id}else self.id!==void 0?v=self.id:v=window.id;this.input=`${s}-${v}`})()}async sha1(){try{return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-1",new TextEncoder("utf-8").encode(this.input)))).map(s=>`00${s.toString(16)}`.slice(-2)).join("")}catch(s){throw`Failed to hash data: ${s.stack}`!==void 0?s.stack:s}}}function gt(){return{list:["log","error","info","trace","warn","debug"],cache:{},logs:[],color:{warn:"yellow",error:"red",log:"limegreen",default:"limegreen"}}}function Be(i){try{return JSON.stringify(i)}catch{return"{ stringify failed }"}}function Me(i){return typeof i=="string"?[i]:typeof i=="object"&&!Array.isArray(i)?[Be(i)]:i.map(s=>typeof s=="object"&&!Array.isArray(s)?Be(s):Array.isArray(s)?Me(s):s).filter(s=>s.length!==0).map(s=>s.toString()).map(s=>s.replace(/\\"/g,'"'))}var bt=i=>{if(console.rewritten!==!0){(i===void 0||i.console===void 0)&&(i={internal:{console:gt()},isDummy:!0});for(const s of i.internal.console.list){i.internal.console.cache[s]=console[s];const{color:v}=i.internal.console;console[s]=(...d)=>{if(d[0]!==void 0&&typeof d[0].startsWith=="function"&&d[0].startsWith("[")&&d[0].includes("]")){let y=`${d[0].split("]")[0]}]`;d[0]=d[0].split("]")[1],y=`%c${y}`,d[0]!==""&&(d[0]=d[0].trimLeft(),d.splice(0,0,"")),i.internal.console.cache[s](`${y}%s`,`color: ${v[s]}`??`${v.default};`,...d)}else if(d.includes("%c"))i.internal.console.cache[s](...d);else{const y="%c[ ❓ ] ";i.internal.console.cache[s](y,`color: ${v[s]}`??`${v.default};`,...d)}if(!i.isDummy){const y=Me(d);i.internal.console.logs.push(`[ ${new Date().getTime()-i.internal.timeAtLive}s - ${s.toUpperCase()} ] ${y.join(" ")}`),i.internal.console.logs.length>1e3&&i.internal.console.logs.shift()}}}console.rewritten=!0}};bt();const H={async init(){return H.shared.ready=!0,!0},shared:{ready:!1,filesystem_instances:{},id:null}};ye(H);class wt{constructor(s){this.type=parseInt(s,10),this.id=oe(),this.index=[],this.data={},H.shared.filesystem_instances[this.id]=this}async validate(s,v){return new Promise(async(d,y)=>{try{const b=await new ae(s).sha1();d(v===b)}catch(_){y(new Error(`Failed to validate checksum: ${_.stack}`))}})}async read(s){return new Promise(async(v,d)=>{try{switch(this.type){case 0:{console.debug("[ Filesystem ] Preparing read task...");const y=JSON.parse(await J.getItem(s));console.debug("[ Filesystem ] Read raw data:",y),console.debug("[ Filesystem ] Validating checksum...");const _={name:y.name,date:y.date};y.data&&(_.data=y.data),await this.validate(JSON.stringify(_),y.checksum)?(console.debug("[ Filesystem ] Checksum valid, read task concluded successfully."),y.name||(console.warn("[ Filesystem ] Name is missing from item!"),y.name=`Nimeämätön ${y.t===0?"tiedosto":"kansio"}`),v(y)):d(new Error("Failed to validate read data"));break}default:throw new Error("Unknown filesystem type")}}catch(y){d(new Error(`Failed to read: ${y.stack}`))}})}async writeToIndex(s,v,d){return new Promise(async(y,_)=>{if(s===void 0&&(s=!0),console.log("[ Filesystem ] Preparing index update..."),console.debug("[ Filesystem ] Index snapshot before update:",this.index),console.debug("[ Filesystem] Index entry identifier:",s,"data:",v),!d)if(s===!0){console.debug("[ Filesystem ] Writing to index root...");let x=!1;for(let S of this.index)if(S.i===v.id){x=!0,S=v;break}x||this.index.push(v)}else{console.debug("[ Filesystem ] Writing to folder...");let x=!1,S=!1;const O=(u,E)=>{for(let R=0;R{for(const y of d){if(y.i===s)return y;if(y.t===1){const _=v(y.d);if(_!==null)return _}}return null};return v(this.index)}async removeFromIndex(s){if(s===!0)return this.index;const v=d=>{for(const y of d)if(y.i===s&&(d.splice(d.indexOf(y),1),this.writeToIndex(null,null,!0).then(()=>!0)),y.t===1){const _=v(y.d);if(_!==null)return _}return null};return v(this.index)}async limitTreeLevel(s,v){const d=JSON.parse(JSON.stringify(s)),y=(_,b=1)=>{for(const g of _)if(g.t===1){if(v>b)return y(g.d,b+1);g.d=null}return null};return y(d),d}async write(s,v,d){return new Promise(async(y,_)=>{try{switch(this.type){case 0:{console.log("[ Filesystem ] Preparing write task...");let b=JSON.parse(await J.getItem(s));b===null&&(console.debug("[ Filesystem ] No previous entry found."),b={id:s??oe()});const g={name:v.name??b.name,date:v.date??new Date().getTime()};if(!g.name||g.name.trim().length===0){_(new Error("Invalid name provided!"));break}if(v.type===0){g.data=v.data??b.data;const u=await new ae(JSON.stringify({name:g.name,data:g.data,date:g.date})).sha1();g.checksum=u}else{const u=await new ae(JSON.stringify({name:g.name,date:g.date})).sha1();g.checksum=u}console.debug("[ Filesystem ] Write task base:",g),await J.setItem(s??b.id,JSON.stringify(g));const x={t:v.type??b.type,i:s??b.id};await this.resolveFromIndex(s??b.id)||(v.type===1&&(x.d=[]),await this.writeToIndex(d,x)),console.log("[ Filesystem ] Write task completed successfully."),y(s??b.id);break}default:throw new Error("Unknown filesystem type")}}catch(b){console.debug(new Error(`Failed to write: ${b.stack}`)),_(b.toString())}})}async remove(s){return new Promise(async(v,d)=>{try{switch(this.type){case 0:{console.log("[ Filesystem ] Preparing remove task..."),await J.getItem(s)!==null?(console.log("[ Filesystem ] Target",s,"exists"),await J.removeItem(s)):console.log("[ Filesystem ] Target not found"),await this.resolveFromIndex(s)!==null&&await this.removeFromIndex(s),console.log("[ Filesystem ] Remove task concluded"),v(!0);break}default:throw new Error("Unknown filesystem type")}}catch(y){d(new Error(`Failed to write: ${y.stack}`))}})}async init(){return new Promise(async(s,v)=>{try{switch(this.type){case 0:{let d=await J.getItem("matikkaeditori-index"),y=await J.getItem("matikkaeditori-checksums");if(d!==null&&y!==null)d=JSON.parse(d),y=JSON.parse(y),await this.validate(d,y)||await z.send("confirm","Someone may have tampered with index data or it may be corrupt. Would you like to load it?")||v(new Error("Filesystem initialization aborted.")),this.index=d,s();else{const _=oe(),b={name:"Tervetuloa!",date:new Date().getTime(),data:["VGVydmV0dWxvYSBrw6R5dHTDpG3DpMOkbiBNYXRpa2thZWRpdG9yaS5maXTDpCEg8J+OiQ=="],checksum:null,type:0},g=new ae({name:b.name,data:b.data,date:b.date});b.checksum=await g.sha1(),await this.write(_,b,!0),console.log("[ Filesystem ] Example file created"),s()}break}default:throw new Error("Unknown filesystem type")}}catch(d){v(new Error(`Failed to initialize filesystem: +${d.stack}`)),console.debug(d)}})}}z.onMessage.addEventListener("message",async i=>{if(i=i.detail,!!H.shared.ready)switch(i.type){case"init":{const s=new wt(i.content.type);H.shared.filesystem_instances[i.id]=s,await s.init(),z.send("callback",{id:i.id,instance:s.id,index:s.index});break}case"read":{const s=H.shared.filesystem_instances[i.content.instance];if(!s){console.error("No such filesystem instance");break}const v=await s.read(i.content.id);z.send("callback",{id:i.id,read:v});break}case"write":{const s=H.shared.filesystem_instances[i.content.instance];if(!s){console.error("No such filesystem instance");break}s.write(i.content.id,i.content.write,i.content.location).then(v=>z.send("callback",{id:i.id,write:v})).catch(v=>z.send("callback",{id:i.id,error:v}));break}case"callback":break;case"remove":{const s=H.shared.filesystem_instances[i.content.instance];if(!s){console.error("No such filesystem instance");break}await s.remove(i.content.id),z.send("callback",{id:i.id});break}case"move":{const s=H.shared.filesystem_instances[i.content.instance];if(!s){console.error("No such filesystem instance");break}const v=i.content.from,d=i.content.to,y=await s.resolveFromIndex(v);if(!y){console.error("No such location (read)");break}if(await s.removeFromIndex(i.content.id),d!==!0&&!await s.resolveFromIndex(d)){console.error("No such location (write)");break}await s.writeToIndex(d,y);break}case"index":{const s=H.shared.filesystem_instances[i.content.instance];if(!s){console.error("No such filesystem instance");break}if(i.content.id&&i.content.level){const v=await s.resolveFromIndex(i.content.id);let d=null;v!==null&&(d=await s.limitTreeLevel(i.content.id===!0?v:v.d,i.content.level)),z.send("callback",{index:d,id:i.id})}else z.send("callback",{index:s.index,id:i.id});break}case"reset":{await J.clear(),z.send("callback",{id:i.id,status:"ok"});break}default:console.error("[ Filesystem ] Unknown command",i)}})})(); diff --git a/src/assets/icon.svg b/assets/icon-8beffb21.svg similarity index 100% rename from src/assets/icon.svg rename to assets/icon-8beffb21.svg diff --git a/assets/index-76ea3d53.js b/assets/index-76ea3d53.js new file mode 100644 index 0000000..f1bef5e --- /dev/null +++ b/assets/index-76ea3d53.js @@ -0,0 +1,850 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qh={exports:{}},Po={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var tm=Object.getOwnPropertySymbols,wC=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable;function AC(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function CC(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(a.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Kh=CC()?Object.assign:function(e,t){for(var n,a=AC(e),o,s=1;s"u"||typeof MessageChannel!="function"){var I=null,y=null,N=function(){if(I!==null)try{var H=e.unstable_now();I(!0,H),I=null}catch(ne){throw setTimeout(N,0),ne}};t=function(H){I!==null?setTimeout(t,0,H):(I=H,setTimeout(N,0))},n=function(H,ne){y=setTimeout(H,ne)},a=function(){clearTimeout(y)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var D=window.setTimeout,x=window.clearTimeout;if(typeof console<"u"){var z=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof z!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var P=!1,B=null,C=-1,T=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},o=function(){},e.unstable_forceFrameRate=function(H){0>H||125>>1,Le=H[ke];if(Le!==void 0&&0te(qt,de))mt!==void 0&&0>te(mt,qt)?(H[ke]=mt,H[rt]=de,ke=rt):(H[ke]=qt,H[Ct]=de,ke=Ct);else if(mt!==void 0&&0>te(mt,de))H[ke]=mt,H[rt]=de,ke=rt;else break e}}return ne}return null}function te(H,ne){var de=H.sortIndex-ne.sortIndex;return de!==0?de:H.id-ne.id}var K=[],_e=[],_r=1,It=null,$e=3,Cn=!1,$t=!1,Pn=!1;function Ft(H){for(var ne=_(_e);ne!==null;){if(ne.callback===null)X(_e);else if(ne.startTime<=H)X(_e),ne.sortIndex=ne.expirationTime,V(K,ne);else break;ne=_(_e)}}function kt(H){if(Pn=!1,Ft(H),!$t)if(_(K)!==null)$t=!0,t(Br);else{var ne=_(_e);ne!==null&&n(kt,ne.startTime-H)}}function Br(H,ne){$t=!1,Pn&&(Pn=!1,a()),Cn=!0;var de=$e;try{for(Ft(ne),It=_(K);It!==null&&(!(It.expirationTime>ne)||H&&!e.unstable_shouldYield());){var ke=It.callback;if(typeof ke=="function"){It.callback=null,$e=It.priorityLevel;var Le=ke(It.expirationTime<=ne);ne=e.unstable_now(),typeof Le=="function"?It.callback=Le:It===_(K)&&X(K),Ft(ne)}else X(K);It=_(K)}if(It!==null)var Ct=!0;else{var qt=_(_e);qt!==null&&n(kt,qt.startTime-ne),Ct=!1}return Ct}finally{It=null,$e=de,Cn=!1}}var or=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){$t||Cn||($t=!0,t(Br))},e.unstable_getCurrentPriorityLevel=function(){return $e},e.unstable_getFirstCallbackNode=function(){return _(K)},e.unstable_next=function(H){switch($e){case 1:case 2:case 3:var ne=3;break;default:ne=$e}var de=$e;$e=ne;try{return H()}finally{$e=de}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=or,e.unstable_runWithPriority=function(H,ne){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var de=$e;$e=H;try{return ne()}finally{$e=de}},e.unstable_scheduleCallback=function(H,ne,de){var ke=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0ke?(H.sortIndex=de,V(_e,H),_(K)===null&&H===_(_e)&&(Pn?a():Pn=!0,n(kt,de-ke))):(H.sortIndex=Le,V(K,H),$t||Cn||($t=!0,t(Br))),H},e.unstable_wrapCallback=function(H){var ne=$e;return function(){var de=$e;$e=ne;try{return H.apply(this,arguments)}finally{$e=de}}}})(hp);mp.exports=hp;var RC=mp.exports;/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vs=xe,Ye=Kh,lt=RC;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),UC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,am=Object.prototype.hasOwnProperty,om={},lm={};function PC(e){return am.call(lm,e)?!0:am.call(om,e)?!1:UC.test(e)?lm[e]=!0:(om[e]=!0,!1)}function OC(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZC(e,t,n,a){if(t===null||typeof t>"u"||OC(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dt(e,t,n,a,o,s,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=u}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new Dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Md=/[\-:]([a-z])/g;function Td(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Md,Td);gt[t]=new Dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Md,Td);gt[t]=new Dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Md,Td);gt[t]=new Dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Dt(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function vd(e,t,n,a){var o=gt.hasOwnProperty(t)?gt[t]:null,s=o!==null?o.type===0:a?!1:!(!(2c||o[u]!==s[c])return` +`+o[u].replace(" at new "," at ");while(1<=u&&0<=c);break}}}finally{kc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$a(e):""}function GC(e){switch(e.tag){case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return $a("Suspense");case 19:return $a("SuspenseList");case 0:case 2:case 15:return e=Ol(e.type,!1),e;case 11:return e=Ol(e.type.render,!1),e;case 22:return e=Ol(e.type._render,!1),e;case 1:return e=Ol(e.type,!0),e;default:return""}}function Ki(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tr:return"Fragment";case ii:return"Portal";case ro:return"Profiler";case wd:return"StrictMode";case io:return"Suspense";case Ms:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ad:return(e.displayName||"Context")+".Consumer";case xd:return(e._context.displayName||"Context")+".Provider";case Js:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Xs:return Ki(e.type);case Nd:return Ki(e._render);case Cd:t=e._payload,e=e._init;try{return Ki(e(t))}catch{}}return null}function br(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FC(e){var t=Mp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){a=""+u,s.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(u){a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zl(e){e._valueTracker||(e._valueTracker=FC(e))}function Tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Mp(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sf(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function um(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=br(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vp(e,t){t=t.checked,t!=null&&vd(e,"checked",t,!1)}function uf(e,t){vp(e,t);var n=br(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cf(e,t.type,n):t.hasOwnProperty("defaultValue")&&cf(e,t.type,br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function cf(e,t,n){(t!=="number"||Ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function YC(e){var t="";return Vs.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function ff(e,t){return e=Ye({children:void 0},t),(t=YC(t.children))&&(e.children=t),e}function $i(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(J(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:br(n)}}function wp(e,t){var n=br(t.value),a=br(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function dm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var gf={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function xp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function If(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gl,Ap=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,o)})}:e}(function(e,t){if(e.namespaceURI!==gf.svg||"innerHTML"in e)e.innerHTML=t;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML=""+t.valueOf().toString()+"",t=Gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ao={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_C=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(e){_C.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ao[t]=ao[e]})});function Cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ao.hasOwnProperty(e)&&ao[e]?(""+t).trim():t+"px"}function Np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,o=Cp(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,o):e[n]=o}}var BC=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mf(e,t){if(t){if(BC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function hf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ld(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pf=null,qi=null,ea=null;function gm(e){if(e=Go(e)){if(typeof pf!="function")throw Error(J(280));var t=e.stateNode;t&&(t=tu(t),pf(e.stateNode,e.type,t))}}function Ep(e){qi?ea?ea.push(e):ea=[e]:qi=e}function Sp(){if(qi){var e=qi,t=ea;if(ea=qi=null,gm(e),t)for(e=0;ea?0:1<n;n++)t.push(e);return t}function Ks(e,t,n){e.pendingLanes|=t;var a=t-1;e.suspendedLanes&=a,e.pingedLanes&=a,e=e.eventTimes,t=31-zr(t),e[t]=n}var zr=Math.clz32?Math.clz32:oN,iN=Math.log,aN=Math.LN2;function oN(e){return e===0?32:31-(iN(e)/aN|0)|0}var lN=lt.unstable_UserBlockingPriority,sN=lt.unstable_runWithPriority,ss=!0;function uN(e,t,n,a){ai||kd();var o=Ud,s=ai;ai=!0;try{Lp(o,e,t,n,a)}finally{(ai=s)||jd()}}function cN(e,t,n,a){sN(lN,Ud.bind(null,e,t,n,a))}function Ud(e,t,n,a){if(ss){var o;if((o=(t&4)===0)&&0=lo),xm=String.fromCharCode(32),Am=!1;function Hp(e,t){switch(e){case"keyup":return bN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _i=!1;function RN(e,t){switch(e){case"compositionend":return Vp(t);case"keypress":return t.which!==32?null:(Am=!0,xm);case"textInput":return e=t.data,e===xm&&Am?null:e;default:return null}}function UN(e,t){if(_i)return e==="compositionend"||!Fd&&Hp(e,t)?(e=Bp(),us=Od=vr=null,_i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sm(n)}}function Kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=Ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ts(e.document)}return t}function wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var HN=er&&"documentMode"in document&&11>=document.documentMode,Bi=null,xf=null,uo=null,Af=!1;function km(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Af||Bi==null||Bi!==Ts(a)||(a=Bi,"selectionStart"in a&&wf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),uo&&Co(uo,a)||(uo=a,a=As(xf,"onSelect"),0Hi||(e.current=Nf[Hi],Nf[Hi]=null,Hi--)}function Je(e,t){Hi++,Nf[Hi]=e.current,e.current=t}var Rr={},At=Fr(Rr),Zt=Fr(!1),di=Rr;function ca(e,t){var n=e.type.contextTypes;if(!n)return Rr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function Es(){Ze(Zt),Ze(At)}function Gm(e,t,n){if(At.current!==Rr)throw Error(J(168));Je(At,t),Je(Zt,n)}function ay(e,t,n){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var o in a)if(!(o in e))throw Error(J(108,Ki(t)||"Unknown",o));return Ye({},n,a)}function fs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rr,di=At.current,Je(At,e),Je(Zt,Zt.current),!0}function Fm(e,t,n){var a=e.stateNode;if(!a)throw Error(J(169));n?(e=ay(e,t,di),a.__reactInternalMemoizedMergedChildContext=e,Ze(Zt),Ze(At),Je(At,e)):Ze(Zt),Je(Zt,n)}var _d=null,fi=null,XN=lt.unstable_runWithPriority,Bd=lt.unstable_scheduleCallback,Ef=lt.unstable_cancelCallback,QN=lt.unstable_shouldYield,Ym=lt.unstable_requestPaint,Sf=lt.unstable_now,KN=lt.unstable_getCurrentPriorityLevel,nu=lt.unstable_ImmediatePriority,oy=lt.unstable_UserBlockingPriority,ly=lt.unstable_NormalPriority,sy=lt.unstable_LowPriority,uy=lt.unstable_IdlePriority,Bc={},$N=Ym!==void 0?Ym:function(){},Xn=null,ds=null,Wc=!1,_m=Sf(),wt=1e4>_m?Sf:function(){return Sf()-_m};function fa(){switch(KN()){case nu:return 99;case oy:return 98;case ly:return 97;case sy:return 96;case uy:return 95;default:throw Error(J(332))}}function cy(e){switch(e){case 99:return nu;case 98:return oy;case 97:return ly;case 96:return sy;case 95:return uy;default:throw Error(J(332))}}function gi(e,t){return e=cy(e),XN(e,t)}function Eo(e,t,n){return e=cy(e),Bd(e,t,n)}function Un(){if(ds!==null){var e=ds;ds=null,Ef(e)}fy()}function fy(){if(!Wc&&Xn!==null){Wc=!0;var e=0;try{var t=Xn;gi(99,function(){for(;eX?(te=_,_=null):te=_.sibling;var K=x(C,_,w[X],S);if(K===null){_===null&&(_=te);break}e&&_&&K.alternate===null&&t(C,_),T=s(K,T,X),V===null?b=K:V.sibling=K,V=K,_=te}if(X===w.length)return n(C,_),b;if(_===null){for(;XX?(te=_,_=null):te=_.sibling;var _e=x(C,_,K.value,S);if(_e===null){_===null&&(_=te);break}e&&_&&_e.alternate===null&&t(C,_),T=s(_e,T,X),V===null?b=_e:V.sibling=_e,V=_e,_=te}if(K.done)return n(C,_),b;if(_===null){for(;!K.done;X++,K=w.next())K=D(C,K.value,S),K!==null&&(T=s(K,T,X),V===null?b=K:V.sibling=K,V=K);return b}for(_=a(C,_);!K.done;X++,K=w.next())K=z(_,C,X,K.value,S),K!==null&&(e&&K.alternate!==null&&_.delete(K.key===null?X:K.key),T=s(K,T,X),V===null?b=K:V.sibling=K,V=K);return e&&_.forEach(function(_r){return t(C,_r)}),b}return function(C,T,w,S){var b=typeof w=="object"&&w!==null&&w.type===Tr&&w.key===null;b&&(w=w.props.children);var V=typeof w=="object"&&w!==null;if(V)switch(w.$$typeof){case Ka:e:{for(V=w.key,b=T;b!==null;){if(b.key===V){switch(b.tag){case 7:if(w.type===Tr){n(C,b.sibling),T=o(b,w.props.children),T.return=C,C=T;break e}break;default:if(b.elementType===w.type){n(C,b.sibling),T=o(b,w.props),T.ref=Ba(C,b,w),T.return=C,C=T;break e}}n(C,b);break}else t(C,b);b=b.sibling}w.type===Tr?(T=oa(w.props.children,C.mode,S,w.key),T.return=C,C=T):(S=hs(w.type,w.key,w.props,null,C.mode,S),S.ref=Ba(C,T,w),S.return=C,C=S)}return u(C);case ii:e:{for(b=w.key;T!==null;){if(T.key===b)if(T.tag===4&&T.stateNode.containerInfo===w.containerInfo&&T.stateNode.implementation===w.implementation){n(C,T.sibling),T=o(T,w.children||[]),T.return=C,C=T;break e}else{n(C,T);break}else t(C,T);T=T.sibling}T=Kc(w,C.mode,S),T.return=C,C=T}return u(C)}if(typeof w=="string"||typeof w=="number")return w=""+w,T!==null&&T.tag===6?(n(C,T.sibling),T=o(T,w),T.return=C,C=T):(n(C,T),T=Qc(w,C.mode,S),T.return=C,C=T),u(C);if(_l(w))return P(C,T,w,S);if(Oa(w))return B(C,T,w,S);if(V&&Bl(C,w),typeof w>"u"&&!b)switch(C.tag){case 1:case 22:case 0:case 11:case 15:throw Error(J(152,Ki(C.type)||"Component"))}return n(C,T)}}var js=hy(!0),py=hy(!1),Fo={},zn=Fr(Fo),Lo=Fr(Fo),Do=Fr(Fo);function li(e){if(e===Fo)throw Error(J(174));return e}function Df(e,t){switch(Je(Do,t),Je(Lo,e),Je(zn,Fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:If(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=If(t,e)}Ze(zn),Je(zn,t)}function da(){Ze(zn),Ze(Lo),Ze(Do)}function Jm(e){li(Do.current);var t=li(zn.current),n=If(t,e.type);t!==n&&(Je(Lo,e),Je(zn,n))}function Jd(e){Lo.current===e&&(Ze(zn),Ze(Lo))}var He=Fr(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kn=null,xr=null,Rn=!1;function yy(e,t){var n=dn(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Xm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function kf(e){if(Rn){var t=xr;if(t){var n=t;if(!Xm(e,t)){if(t=ta(n.nextSibling),!t||!Xm(e,t)){e.flags=e.flags&-1025|2,Rn=!1,Kn=e;return}yy(Kn,n)}Kn=e,xr=ta(t.firstChild)}else e.flags=e.flags&-1025|2,Rn=!1,Kn=e}}function Qm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kn=e}function Wl(e){if(e!==Kn)return!1;if(!Rn)return Qm(e),Rn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Cf(t,e.memoizedProps))for(t=xr;t;)yy(e,t),t=ta(t.nextSibling);if(Qm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xr=ta(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xr=null}}else xr=Kn?ta(e.stateNode.nextSibling):null;return!0}function Hc(){xr=Kn=null,Rn=!1}var ra=[];function Xd(){for(var e=0;es))throw Error(J(301));s+=1,ft=vt=null,t.updateQueue=null,co.current=rE,e=n(a,o)}while(fo)}if(co.current=Os,t=vt!==null&&vt.next!==null,ko=0,ft=vt=Ke=null,zs=!1,t)throw Error(J(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ke.memoizedState=ft=e:ft=ft.next=e,ft}function Ti(){if(vt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=vt.next;var t=ft===null?Ke.memoizedState:ft.next;if(t!==null)ft=t,vt=e;else{if(e===null)throw Error(J(310));vt=e,e={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},ft===null?Ke.memoizedState=ft=e:ft=ft.next=e}return ft}function kn(e,t){return typeof t=="function"?t(e):t}function Wa(e){var t=Ti(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var a=vt,o=a.baseQueue,s=n.pending;if(s!==null){if(o!==null){var u=o.next;o.next=s.next,s.next=u}a.baseQueue=o=s,n.pending=null}if(o!==null){o=o.next,a=a.baseState;var c=u=s=null,I=o;do{var y=I.lane;if((ko&y)===y)c!==null&&(c=c.next={lane:0,action:I.action,eagerReducer:I.eagerReducer,eagerState:I.eagerState,next:null}),a=I.eagerReducer===e?I.eagerState:e(a,I.action);else{var N={lane:y,action:I.action,eagerReducer:I.eagerReducer,eagerState:I.eagerState,next:null};c===null?(u=c=N,s=a):c=c.next=N,Ke.lanes|=y,Yo|=y}I=I.next}while(I!==null&&I!==o);c===null?s=a:c.next=u,fn(a,t.memoizedState)||(xn=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=c,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Ha(e){var t=Ti(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var u=o=o.next;do s=e(s,u.action),u=u.next;while(u!==o);fn(s,t.memoizedState)||(xn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function Km(e,t,n){var a=t._getVersion;a=a(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===a:(e=e.mutableReadLanes,(e=(ko&e)===e)&&(t._workInProgressVersionPrimary=a,ra.push(t))),e)return n(t._source);throw ra.push(t),Error(J(350))}function My(e,t,n,a){var o=Lt;if(o===null)throw Error(J(349));var s=t._getVersion,u=s(t._source),c=co.current,I=c.useState(function(){return Km(o,t,n)}),y=I[1],N=I[0];I=ft;var D=e.memoizedState,x=D.refs,z=x.getSnapshot,P=D.source;D=D.subscribe;var B=Ke;return e.memoizedState={refs:x,source:t,subscribe:a},c.useEffect(function(){x.getSnapshot=n,x.setSnapshot=y;var C=s(t._source);if(!fn(u,C)){C=n(t._source),fn(N,C)||(y(C),C=Dr(B),o.mutableReadLanes|=C&o.pendingLanes),C=o.mutableReadLanes,o.entangledLanes|=C;for(var T=o.entanglements,w=C;0n?98:n,function(){e(!0)}),gi(97<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=u.createElement(n,{is:a.is}):(e=u.createElement(n),n==="select"&&(u=e,a.multiple?u.multiple=!0:a.size&&(u.size=a.size))):e=u.createElementNS(e,n),e[wr]=t,e[Ns]=a,Sy(e,t,!1,!1),t.stateNode=e,u=hf(n,a),n){case"dialog":Pe("cancel",e),Pe("close",e),o=a;break;case"iframe":case"object":case"embed":Pe("load",e),o=a;break;case"video":case"audio":for(o=0;oFf&&(t.flags|=64,s=!0,Ja(a,!1),t.lanes=33554432)}else{if(!s)if(e=bs(u),e!==null){if(t.flags|=64,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ja(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Rn)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*wt()-a.renderingStartTime>Ff&&n!==1073741824&&(t.flags|=64,s=!0,Ja(a,!1),t.lanes=33554432);a.isBackwards?(u.sibling=t.child,t.child=u):(n=a.last,n!==null?n.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=wt(),n.sibling=null,t=He.current,Je(He,s?t&1|2:t&1),n):null;case 23:case 24:return ag(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(J(156,t.tag))}function oE(e){switch(e.tag){case 1:Gt(e.type)&&Es();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(da(),Ze(Zt),Ze(At),Xd(),t=e.flags,t&64)throw Error(J(285));return e.flags=t&-4097|64,e;case 5:return Jd(e),null;case 13:return Ze(He),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Ze(He),null;case 4:return da(),null;case 10:return Hd(e),null;case 23:case 24:return ag(),null;default:return null}}function tg(e,t){try{var n="",a=t;do n+=GC(a),a=a.return;while(a);var o=n}catch(s){o=` +Error generating stack: `+s.message+` +`+s.stack}return{value:e,source:t,stack:o}}function Uf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lE=typeof WeakMap=="function"?WeakMap:Map;function ky(e,t,n){n=Sr(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Gs||(Gs=!0,Yf=a),Uf(e,t)},n}function jy(e,t,n){n=Sr(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=t.value;n.payload=function(){return Uf(e,t),a(o)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){typeof a!="function"&&(jn===null?jn=new Set([this]):jn.add(this),Uf(e,t));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}var sE=typeof WeakSet=="function"?WeakSet:Set;function ch(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){jr(e,n)}else t.current=null}function uE(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,a=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:wn(t.type,n),a),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Yd(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(J(163))}function cE(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var a=e.create;e.destroy=a()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;a=o.next,o=o.tag,o&4&&o&1&&(Fy(n,e),yE(n,e)),e=a}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(a=n.elementType===n.type?t.memoizedProps:wn(n.type,t.memoizedProps),e.componentDidUpdate(a,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Wm(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Wm(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&ry(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Up(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(J(163))}function fh(e,t){for(var n=e;;){if(n.tag===5){var a=n.stateNode;if(t)a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{a=n.stateNode;var o=n.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,a.style.display=Cp("display",o)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function dh(e,t){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(_d,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var a=n,o=a.destroy;if(a=a.tag,o!==void 0)if(a&4)Fy(t,n);else{a=t;try{o()}catch(s){jr(a,s)}}n=n.next}while(n!==e)}break;case 1:if(ch(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(s){jr(t,s)}break;case 5:ch(t);break;case 4:by(e,t)}}function gh(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ih(e){return e.tag===5||e.tag===3||e.tag===4}function mh(e){e:{for(var t=e.return;t!==null;){if(Ih(t))break e;t=t.return}throw Error(J(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var a=!1;break;case 3:t=t.containerInfo,a=!0;break;case 4:t=t.containerInfo,a=!0;break;default:throw Error(J(161))}n.flags&16&&(Mo(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Ih(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}a?Pf(e,n,t):Of(e,n,t)}function Pf(e,t,n){var a=e.tag,o=a===5||a===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cs));else if(a!==4&&(e=e.child,e!==null))for(Pf(e,t,n),e=e.sibling;e!==null;)Pf(e,t,n),e=e.sibling}function Of(e,t,n){var a=e.tag,o=a===5||a===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Of(e,t,n),e=e.sibling;e!==null;)Of(e,t,n),e=e.sibling}function by(e,t){for(var n=t,a=!1,o,s;;){if(!a){a=n.return;e:for(;;){if(a===null)throw Error(J(160));switch(o=a.stateNode,a.tag){case 5:s=!1;break e;case 3:o=o.containerInfo,s=!0;break e;case 4:o=o.containerInfo,s=!0;break e}a=a.return}a=!0}if(n.tag===5||n.tag===6){e:for(var u=e,c=n,I=c;;)if(dh(u,I),I.child!==null&&I.tag!==4)I.child.return=I,I=I.child;else{if(I===c)break e;for(;I.sibling===null;){if(I.return===null||I.return===c)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}s?(u=o,c=n.stateNode,u.nodeType===8?u.parentNode.removeChild(c):u.removeChild(c)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(dh(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(a=!1)}n.sibling.return=n.return,n=n.sibling}}function Xc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do(a.tag&3)===3&&(e=a.destroy,a.destroy=void 0,e!==void 0&&e()),a=a.next;while(a!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){a=t.memoizedProps;var o=e!==null?e.memoizedProps:a;e=t.type;var s=t.updateQueue;if(t.updateQueue=null,s!==null){for(n[Ns]=a,e==="input"&&a.type==="radio"&&a.name!=null&&vp(n,a),hf(e,o),t=hf(e,a),o=0;oo&&(o=u),n&=~s}if(n=o,n=wt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*dE(n/1960))-n,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}dt!==5&&(dt=2),I=tg(I,c),x=u;do{switch(x.tag){case 3:s=I,x.flags|=4096,t&=-t,x.lanes|=t;var V=ky(x,s,t);Bm(x,V);break e;case 1:s=I;var _=x.type,X=x.stateNode;if(!(x.flags&64)&&(typeof _.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(jn===null||!jn.has(X)))){x.flags|=4096,t&=-t,x.lanes|=t;var te=jy(x,s,t);Bm(x,te);break e}}x=x.return}while(x!==null)}Gy(n)}catch(K){t=K,tt===n&&n!==null&&(tt=n=n.return);continue}break}while(1)}function Oy(){var e=Zs.current;return Zs.current=Os,e===null?Os:e}function to(e,t){var n=ue;ue|=16;var a=Oy();Lt===e&&xt===t||aa(e,t);do try{IE();break}catch(o){Py(e,o)}while(1);if(Wd(),ue=n,Zs.current=a,tt!==null)throw Error(J(261));return Lt=null,xt=0,dt}function IE(){for(;tt!==null;)Zy(tt)}function mE(){for(;tt!==null&&!QN();)Zy(tt)}function Zy(e){var t=Yy(e.alternate,e,Ii);e.memoizedProps=e.pendingProps,t===null?Gy(e):tt=t,ng.current=null}function Gy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=oE(t),n!==null){n.flags&=2047,tt=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=aE(n,t,Ii),n!==null){tt=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Ii&1073741824||!(n.mode&4)){for(var a=0,o=n.child;o!==null;)a|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=a}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1u&&(c=u,u=V,V=c),c=Lm(w,V),s=Lm(w,u),c&&s&&(b.rangeCount!==1||b.anchorNode!==c.node||b.anchorOffset!==c.offset||b.focusNode!==s.node||b.focusOffset!==s.offset)&&(S=S.createRange(),S.setStart(c.node,c.offset),b.removeAllRanges(),V>u?(b.addRange(S),b.extend(s.node,s.offset)):(S.setEnd(s.node,s.offset),b.addRange(S)))))),S=[],b=w;b=b.parentNode;)b.nodeType===1&&S.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;wwt()-ig?aa(e,0):rg|=n),mn(e,t)}function vE(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Qn===0&&(Qn=ya),t=Gi(62914560&~Qn),t===0&&(t=4194304)):t=fa()===99?1:2:t=1),n=Xt(),e=au(e,t),e!==null&&(Ks(e,t,n),mn(e,n))}var Yy;Yy=function(e,t,n){var a=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Zt.current)xn=!0;else if(n&a)xn=!!(e.flags&16384);else{switch(xn=!1,t.tag){case 3:rh(t),Hc();break;case 5:Jm(t);break;case 1:Gt(t.type)&&fs(t);break;case 4:Df(t,t.stateNode.containerInfo);break;case 10:a=t.memoizedProps.value;var o=t.type._context;Je(Ss,o._currentValue),o._currentValue=a;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?ih(e,t,n):(Je(He,He.current&1),t=$n(e,t,n),t!==null?t.sibling:null);Je(He,He.current&1);break;case 19:if(a=(n&t.childLanes)!==0,e.flags&64){if(a)return uh(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(He,He.current),a)break;return null;case 23:case 24:return t.lanes=0,Vc(e,t,n)}return $n(e,t,n)}else xn=!1;switch(t.lanes=0,t.tag){case 2:if(a=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=ca(t,At.current),na(t,n),o=Kd(null,t,a,e,o,n),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gt(a)){var s=!0;fs(t)}else s=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vd(t);var u=a.getDerivedStateFromProps;typeof u=="function"&&ks(t,a,u,e),o.updater=ru,t.stateNode=o,o._reactInternals=t,Lf(t,a,e,n),t=zf(null,t,a,!0,s,n)}else t.tag=0,Ot(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=xE(o),e=wn(o,e),s){case 0:t=bf(null,t,o,e,n);break e;case 1:t=nh(null,t,o,e,n);break e;case 11:t=eh(null,t,o,e,n);break e;case 14:t=th(null,t,o,wn(o.type,e),a,n);break e}throw Error(J(306,o,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:wn(a,o),bf(e,t,a,o,n);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:wn(a,o),nh(e,t,a,o,n);case 3:if(rh(t),a=t.updateQueue,e===null||a===null)throw Error(J(282));if(a=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,gy(e,t),So(t,a,null,n),a=t.memoizedState.element,a===o)Hc(),t=$n(e,t,n);else{if(o=t.stateNode,(s=o.hydrate)&&(xr=ta(t.stateNode.containerInfo.firstChild),Kn=t,s=Rn=!0),s){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(By)}catch(e){console.error(e)}}By(),Ip.exports=hn;var DE=Ip.exports;const Vf=gd(DE);function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=new Array(t);n-1;o--){var s=n[o],u=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(a=s)}return Ge.head.insertBefore(t,a),e}}var tS="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Uo(){for(var e=12,t="";e-- >0;)t+=tS[Math.random()*62|0];return t}function va(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function mg(e){return e.classList?va(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function n1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function nS(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(n1(e[n]),'" ')},"").trim()}function lu(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function hg(e){return e.size!==bn.size||e.x!==bn.x||e.y!==bn.y||e.rotate!==bn.rotate||e.flipX||e.flipY}function rS(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),u="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),I={transform:"".concat(s," ").concat(u," ").concat(c)},y={transform:"translate(".concat(a/2*-1," -256)")};return{outer:o,inner:I,path:y}}function iS(e){var t=e.transform,n=e.width,a=n===void 0?Xf:n,o=e.height,s=o===void 0?Xf:o,u=e.startCentered,c=u===void 0?!1:u,I="";return c&&Xy?I+="translate(".concat(t.x/yr-a/2,"em, ").concat(t.y/yr-s/2,"em) "):c?I+="translate(calc(-50% + ".concat(t.x/yr,"em), calc(-50% + ").concat(t.y/yr,"em)) "):I+="translate(".concat(t.x/yr,"em, ").concat(t.y/yr,"em) "),I+="scale(".concat(t.size/yr*(t.flipX?-1:1),", ").concat(t.size/yr*(t.flipY?-1:1),") "),I+="rotate(".concat(t.rotate,"deg) "),I}var aS=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function r1(){var e=Qy,t=Ky,n=ie.cssPrefix,a=ie.replacementClass,o=aS;if(n!==e||a!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");o=o.replace(s,".".concat(n,"-")).replace(u,"--".concat(n,"-")).replace(c,".".concat(a))}return o}var Nh=!1;function qc(){ie.autoAddCss&&!Nh&&(eS(r1()),Nh=!0)}var oS={mixout:function(){return{dom:{css:r1,insertCss:qc}}},hooks:function(){return{beforeDOMElementCreation:function(){qc()},beforeI2svg:function(){qc()}}}},nr=Or||{};nr[tr]||(nr[tr]={});nr[tr].styles||(nr[tr].styles={});nr[tr].hooks||(nr[tr].hooks={});nr[tr].shims||(nr[tr].shims=[]);var An=nr[tr],i1=[],lS=function e(){Ge.removeEventListener("DOMContentLoaded",e),_s=1,i1.map(function(t){return t()})},_s=!1;ar&&(_s=(Ge.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ge.readyState),_s||Ge.addEventListener("DOMContentLoaded",lS));function sS(e){ar&&(_s?setTimeout(e,0):i1.push(e))}function Ho(e){var t=e.tag,n=e.attributes,a=n===void 0?{}:n,o=e.children,s=o===void 0?[]:o;return typeof e=="string"?n1(e):"<".concat(t," ").concat(nS(a),">").concat(s.map(Ho).join(""),"")}function Eh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var uS=function(t,n){return function(a,o,s,u){return t.call(n,a,o,s,u)}},ef=function(t,n,a,o){var s=Object.keys(t),u=s.length,c=o!==void 0?uS(n,o):n,I,y,N;for(a===void 0?(I=1,N=t[s[0]]):(I=0,N=a);I=55296&&o<=56319&&n=55296&&a<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(a-55296)*1024+o-56320+65536:a}function Sh(e){return Object.keys(e).reduce(function(t,n){var a=e[n],o=!!a.icon;return o?t[a.iconName]=a.icon:t[n]=a,t},{})}function $f(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.skipHooks,o=a===void 0?!1:a,s=Sh(t);typeof An.hooks.addPack=="function"&&!o?An.hooks.addPack(e,Sh(t)):An.styles[e]=q(q({},An.styles[e]||{}),s),e==="fas"&&$f("fa",t)}var ts,ns,rs,Ji=An.styles,dS=An.shims,gS=(ts={},nt(ts,Oe,Object.values(zo[Oe])),nt(ts,Ve,Object.values(zo[Ve])),ts),pg=null,a1={},o1={},l1={},s1={},u1={},IS=(ns={},nt(ns,Oe,Object.keys(jo[Oe])),nt(ns,Ve,Object.keys(jo[Ve])),ns);function mS(e){return~XE.indexOf(e)}function hS(e,t){var n=t.split("-"),a=n[0],o=n.slice(1).join("-");return a===e&&o!==""&&!mS(o)?o:null}var c1=function(){var t=function(s){return ef(Ji,function(u,c,I){return u[I]=ef(c,s,{}),u},{})};a1=t(function(o,s,u){if(s[3]&&(o[s[3]]=u),s[2]){var c=s[2].filter(function(I){return typeof I=="number"});c.forEach(function(I){o[I.toString(16)]=u})}return o}),o1=t(function(o,s,u){if(o[u]=u,s[2]){var c=s[2].filter(function(I){return typeof I=="string"});c.forEach(function(I){o[I]=u})}return o}),u1=t(function(o,s,u){var c=s[2];return o[u]=u,c.forEach(function(I){o[I]=u}),o});var n="far"in Ji||ie.autoFetchSvg,a=ef(dS,function(o,s){var u=s[0],c=s[1],I=s[2];return c==="far"&&!n&&(c="fas"),typeof u=="string"&&(o.names[u]={prefix:c,iconName:I}),typeof u=="number"&&(o.unicodes[u.toString(16)]={prefix:c,iconName:I}),o},{names:{},unicodes:{}});l1=a.names,s1=a.unicodes,pg=su(ie.styleDefault,{family:ie.familyDefault})};qE(function(e){pg=su(e.styleDefault,{family:ie.familyDefault})});c1();function yg(e,t){return(a1[e]||{})[t]}function pS(e,t){return(o1[e]||{})[t]}function ci(e,t){return(u1[e]||{})[t]}function f1(e){return l1[e]||{prefix:null,iconName:null}}function yS(e){var t=s1[e],n=yg("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Zr(){return pg}var Mg=function(){return{prefix:null,iconName:null,rest:[]}};function su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,a=n===void 0?Oe:n,o=jo[a][e],s=bo[a][e]||bo[a][o],u=e in An.styles?e:null;return s||u||null}var Lh=(rs={},nt(rs,Oe,Object.keys(zo[Oe])),nt(rs,Ve,Object.keys(zo[Ve])),rs);function uu(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.skipLookups,o=a===void 0?!1:a,s=(t={},nt(t,Oe,"".concat(ie.cssPrefix,"-").concat(Oe)),nt(t,Ve,"".concat(ie.cssPrefix,"-").concat(Ve)),t),u=null,c=Oe;(e.includes(s[Oe])||e.some(function(y){return Lh[Oe].includes(y)}))&&(c=Oe),(e.includes(s[Ve])||e.some(function(y){return Lh[Ve].includes(y)}))&&(c=Ve);var I=e.reduce(function(y,N){var D=hS(ie.cssPrefix,N);if(Ji[N]?(N=gS[c].includes(N)?_E[c][N]:N,u=N,y.prefix=N):IS[c].indexOf(N)>-1?(u=N,y.prefix=su(N,{family:c})):D?y.iconName=D:N!==ie.replacementClass&&N!==s[Oe]&&N!==s[Ve]&&y.rest.push(N),!o&&y.prefix&&y.iconName){var x=u==="fa"?f1(y.iconName):{},z=ci(y.prefix,y.iconName);x.prefix&&(u=null),y.iconName=x.iconName||z||y.iconName,y.prefix=x.prefix||y.prefix,y.prefix==="far"&&!Ji.far&&Ji.fas&&!ie.autoFetchSvg&&(y.prefix="fas")}return y},Mg());return(e.includes("fa-brands")||e.includes("fab"))&&(I.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(I.prefix="fad"),!I.prefix&&c===Ve&&(Ji.fass||ie.autoFetchSvg)&&(I.prefix="fass",I.iconName=ci(I.prefix,I.iconName)||I.iconName),(I.prefix==="fa"||u==="fa")&&(I.prefix=Zr()||"fas"),I}var MS=function(){function e(){kE(this,e),this.definitions={}}return jE(e,[{key:"add",value:function(){for(var n=this,a=arguments.length,o=new Array(a),s=0;s0&&N.forEach(function(D){typeof D=="string"&&(n[c][D]=y)}),n[c][I]=y}),n}}]),e}(),Dh=[],Xi={},la={},TS=Object.keys(la);function vS(e,t){var n=t.mixoutsTo;return Dh=e,Xi={},Object.keys(la).forEach(function(a){TS.indexOf(a)===-1&&delete la[a]}),Dh.forEach(function(a){var o=a.mixout?a.mixout():{};if(Object.keys(o).forEach(function(u){typeof o[u]=="function"&&(n[u]=o[u]),Ys(o[u])==="object"&&Object.keys(o[u]).forEach(function(c){n[u]||(n[u]={}),n[u][c]=o[u][c]})}),a.hooks){var s=a.hooks();Object.keys(s).forEach(function(u){Xi[u]||(Xi[u]=[]),Xi[u].push(s[u])})}a.provides&&a.provides(la)}),n}function qf(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o1?t-1:0),a=1;a0&&arguments[0]!==void 0?arguments[0]:{};return ar?(hi("beforeI2svg",t),rr("pseudoElements2svg",t),rr("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ie.autoReplaceSvg===!1&&(ie.autoReplaceSvg=!0),ie.observeMutations=!0,sS(function(){CS({autoReplaceSvgRoot:n}),hi("watch",t)})}},AS={icon:function(t){if(t===null)return null;if(Ys(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ci(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],a=su(t[0]);return{prefix:a,iconName:ci(a,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ie.cssPrefix,"-"))>-1||t.match(BE))){var o=uu(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||Zr(),iconName:ci(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var s=Zr();return{prefix:s,iconName:ci(s,t)||t}}}},Kt={noAuto:wS,config:ie,dom:xS,parse:AS,library:d1,findIconDefinition:ed,toHtml:Ho},CS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,a=n===void 0?Ge:n;(Object.keys(An.styles).length>0||ie.autoFetchSvg)&&ar&&ie.autoReplaceSvg&&Kt.dom.i2svg({node:a})};function cu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(a){return Ho(a)})}}),Object.defineProperty(e,"node",{get:function(){if(ar){var a=Ge.createElement("div");return a.innerHTML=e.html,a.children}}}),e}function NS(e){var t=e.children,n=e.main,a=e.mask,o=e.attributes,s=e.styles,u=e.transform;if(hg(u)&&n.found&&!a.found){var c=n.width,I=n.height,y={x:c/I/2,y:.5};o.style=lu(q(q({},s),{},{"transform-origin":"".concat(y.x+u.x/16,"em ").concat(y.y+u.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function ES(e){var t=e.prefix,n=e.iconName,a=e.children,o=e.attributes,s=e.symbol,u=s===!0?"".concat(t,"-").concat(ie.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},o),{},{id:u}),children:a}]}]}function Tg(e){var t=e.icons,n=t.main,a=t.mask,o=e.prefix,s=e.iconName,u=e.transform,c=e.symbol,I=e.title,y=e.maskId,N=e.titleId,D=e.extra,x=e.watchable,z=x===void 0?!1:x,P=a.found?a:n,B=P.width,C=P.height,T=o==="fak",w=[ie.replacementClass,s?"".concat(ie.cssPrefix,"-").concat(s):""].filter(function(K){return D.classes.indexOf(K)===-1}).filter(function(K){return K!==""||!!K}).concat(D.classes).join(" "),S={children:[],attributes:q(q({},D.attributes),{},{"data-prefix":o,"data-icon":s,class:w,role:D.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(B," ").concat(C)})},b=T&&!~D.classes.indexOf("fa-fw")?{width:"".concat(B/C*16*.0625,"em")}:{};z&&(S.attributes[mi]=""),I&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(N||Uo())},children:[I]}),delete S.attributes.title);var V=q(q({},S),{},{prefix:o,iconName:s,main:n,mask:a,maskId:y,transform:u,symbol:c,styles:q(q({},b),D.styles)}),_=a.found&&n.found?rr("generateAbstractMask",V)||{children:[],attributes:{}}:rr("generateAbstractIcon",V)||{children:[],attributes:{}},X=_.children,te=_.attributes;return V.children=X,V.attributes=te,c?ES(V):NS(V)}function kh(e){var t=e.content,n=e.width,a=e.height,o=e.transform,s=e.title,u=e.extra,c=e.watchable,I=c===void 0?!1:c,y=q(q(q({},u.attributes),s?{title:s}:{}),{},{class:u.classes.join(" ")});I&&(y[mi]="");var N=q({},u.styles);hg(o)&&(N.transform=iS({transform:o,startCentered:!0,width:n,height:a}),N["-webkit-transform"]=N.transform);var D=lu(N);D.length>0&&(y.style=D);var x=[];return x.push({tag:"span",attributes:y,children:[t]}),s&&x.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),x}function SS(e){var t=e.content,n=e.title,a=e.extra,o=q(q(q({},a.attributes),n?{title:n}:{}),{},{class:a.classes.join(" ")}),s=lu(a.styles);s.length>0&&(o.style=s);var u=[];return u.push({tag:"span",attributes:o,children:[t]}),n&&u.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),u}var tf=An.styles;function td(e){var t=e[0],n=e[1],a=e.slice(4),o=cg(a,1),s=o[0],u=null;return Array.isArray(s)?u={tag:"g",attributes:{class:"".concat(ie.cssPrefix,"-").concat(ui.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat(ui.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(ie.cssPrefix,"-").concat(ui.PRIMARY),fill:"currentColor",d:s[1]}}]}:u={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:u}}var LS={found:!1,width:512,height:512};function DS(e,t){!$y&&!ie.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function nd(e,t){var n=t;return t==="fa"&&ie.styleDefault!==null&&(t=Zr()),new Promise(function(a,o){if(rr("missingIconAbstract"),n==="fa"){var s=f1(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&tf[t]&&tf[t][e]){var u=tf[t][e];return a(td(u))}DS(e,t),a(q(q({},LS),{},{icon:ie.showMissingIcons&&e?rr("missingIconAbstract")||{}:{}}))})}var jh=function(){},rd=ie.measurePerformance&&Xl&&Xl.mark&&Xl.measure?Xl:{mark:jh,measure:jh},no='FA "6.2.0"',kS=function(t){return rd.mark("".concat(no," ").concat(t," begins")),function(){return g1(t)}},g1=function(t){rd.mark("".concat(no," ").concat(t," ends")),rd.measure("".concat(no," ").concat(t),"".concat(no," ").concat(t," begins"),"".concat(no," ").concat(t," ends"))},vg={begin:kS,end:g1},ps=function(){};function bh(e){var t=e.getAttribute?e.getAttribute(mi):null;return typeof t=="string"}function jS(e){var t=e.getAttribute?e.getAttribute(dg):null,n=e.getAttribute?e.getAttribute(gg):null;return t&&n}function bS(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ie.replacementClass)}function zS(){if(ie.autoReplaceSvg===!0)return ys.replace;var e=ys[ie.autoReplaceSvg];return e||ys.replace}function RS(e){return Ge.createElementNS("http://www.w3.org/2000/svg",e)}function US(e){return Ge.createElement(e)}function I1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,a=n===void 0?e.tag==="svg"?RS:US:n;if(typeof e=="string")return Ge.createTextNode(e);var o=a(e.tag);Object.keys(e.attributes||[]).forEach(function(u){o.setAttribute(u,e.attributes[u])});var s=e.children||[];return s.forEach(function(u){o.appendChild(I1(u,{ceFn:a}))}),o}function PS(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ys={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(I1(o),n)}),n.getAttribute(mi)===null&&ie.keepOriginalSource){var a=Ge.createComment(PS(n));n.parentNode.replaceChild(a,n)}else n.remove()},nest:function(t){var n=t[0],a=t[1];if(~mg(n).indexOf(ie.replacementClass))return ys.replace(t);var o=new RegExp("".concat(ie.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var s=a[0].attributes.class.split(" ").reduce(function(c,I){return I===ie.replacementClass||I.match(o)?c.toSvg.push(I):c.toNode.push(I),c},{toNode:[],toSvg:[]});a[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var u=a.map(function(c){return Ho(c)}).join(` +`);n.setAttribute(mi,""),n.innerHTML=u}};function zh(e){e()}function m1(e,t){var n=typeof t=="function"?t:ps;if(e.length===0)n();else{var a=zh;ie.mutateApproach===FE&&(a=Or.requestAnimationFrame||zh),a(function(){var o=zS(),s=vg.begin("mutate");e.map(o),s(),n()})}}var wg=!1;function h1(){wg=!0}function id(){wg=!1}var Bs=null;function Rh(e){if(Ah&&ie.observeMutations){var t=e.treeCallback,n=t===void 0?ps:t,a=e.nodeCallback,o=a===void 0?ps:a,s=e.pseudoElementsCallback,u=s===void 0?ps:s,c=e.observeMutationsRoot,I=c===void 0?Ge:c;Bs=new Ah(function(y){if(!wg){var N=Zr();va(y).forEach(function(D){if(D.type==="childList"&&D.addedNodes.length>0&&!bh(D.addedNodes[0])&&(ie.searchPseudoElements&&u(D.target),n(D.target)),D.type==="attributes"&&D.target.parentNode&&ie.searchPseudoElements&&u(D.target.parentNode),D.type==="attributes"&&bh(D.target)&&~JE.indexOf(D.attributeName))if(D.attributeName==="class"&&jS(D.target)){var x=uu(mg(D.target)),z=x.prefix,P=x.iconName;D.target.setAttribute(dg,z||N),P&&D.target.setAttribute(gg,P)}else bS(D.target)&&o(D.target)})}}),ar&&Bs.observe(I,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function OS(){Bs&&Bs.disconnect()}function ZS(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(a,o){var s=o.split(":"),u=s[0],c=s.slice(1);return u&&c.length>0&&(a[u]=c.join(":").trim()),a},{})),n}function GS(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=e.innerText!==void 0?e.innerText.trim():"",o=uu(mg(e));return o.prefix||(o.prefix=Zr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&a.length>0&&(o.iconName=pS(o.prefix,e.innerText)||yg(o.prefix,Kf(e.innerText))),!o.iconName&&ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function FS(e){var t=va(e.attributes).reduce(function(o,s){return o.name!=="class"&&o.name!=="style"&&(o[s.name]=s.value),o},{}),n=e.getAttribute("title"),a=e.getAttribute("data-fa-title-id");return ie.autoA11y&&(n?t["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(a||Uo()):(t["aria-hidden"]="true",t.focusable="false")),t}function YS(){return{iconName:null,title:null,titleId:null,prefix:null,transform:bn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=GS(e),a=n.iconName,o=n.prefix,s=n.rest,u=FS(e),c=qf("parseNodeAttributes",{},e),I=t.styleParser?ZS(e):[];return q({iconName:a,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:bn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:I,attributes:u}},c)}var _S=An.styles;function p1(e){var t=ie.autoReplaceSvg==="nest"?Uh(e,{styleParser:!1}):Uh(e);return~t.extra.classes.indexOf(qy)?rr("generateLayersText",e,t):rr("generateSvgReplacementMutation",e,t)}var Gr=new Set;Ig.map(function(e){Gr.add("fa-".concat(e))});Object.keys(jo[Oe]).map(Gr.add.bind(Gr));Object.keys(jo[Ve]).map(Gr.add.bind(Gr));Gr=Bo(Gr);function Ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ar)return Promise.resolve();var n=Ge.documentElement.classList,a=function(D){return n.add("".concat(Ch,"-").concat(D))},o=function(D){return n.remove("".concat(Ch,"-").concat(D))},s=ie.autoFetchSvg?Gr:Ig.map(function(N){return"fa-".concat(N)}).concat(Object.keys(_S));s.includes("fa")||s.push("fa");var u=[".".concat(qy,":not([").concat(mi,"])")].concat(s.map(function(N){return".".concat(N,":not([").concat(mi,"])")})).join(", ");if(u.length===0)return Promise.resolve();var c=[];try{c=va(e.querySelectorAll(u))}catch{}if(c.length>0)a("pending"),o("complete");else return Promise.resolve();var I=vg.begin("onTree"),y=c.reduce(function(N,D){try{var x=p1(D);x&&N.push(x)}catch(z){$y||z.name==="MissingIcon"&&console.error(z)}return N},[]);return new Promise(function(N,D){Promise.all(y).then(function(x){m1(x,function(){a("active"),a("complete"),o("pending"),typeof t=="function"&&t(),I(),N()})}).catch(function(x){I(),D(x)})})}function BS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;p1(e).then(function(n){n&&m1([n],t)})}function WS(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(t||{}).icon?t:ed(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:ed(o||{})),e(a,q(q({},n),{},{mask:o}))}}var HS=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,o=a===void 0?bn:a,s=n.symbol,u=s===void 0?!1:s,c=n.mask,I=c===void 0?null:c,y=n.maskId,N=y===void 0?null:y,D=n.title,x=D===void 0?null:D,z=n.titleId,P=z===void 0?null:z,B=n.classes,C=B===void 0?[]:B,T=n.attributes,w=T===void 0?{}:T,S=n.styles,b=S===void 0?{}:S;if(t){var V=t.prefix,_=t.iconName,X=t.icon;return cu(q({type:"icon"},t),function(){return hi("beforeDOMElementCreation",{iconDefinition:t,params:n}),ie.autoA11y&&(x?w["aria-labelledby"]="".concat(ie.replacementClass,"-title-").concat(P||Uo()):(w["aria-hidden"]="true",w.focusable="false")),Tg({icons:{main:td(X),mask:I?td(I.icon):{found:!1,width:null,height:null,icon:{}}},prefix:V,iconName:_,transform:q(q({},bn),o),symbol:u,title:x,maskId:N,titleId:P,extra:{attributes:w,styles:b,classes:C}})})}},VS={mixout:function(){return{icon:WS(HS)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Ph,n.nodeCallback=BS,n}}},provides:function(t){t.i2svg=function(n){var a=n.node,o=a===void 0?Ge:a,s=n.callback,u=s===void 0?function(){}:s;return Ph(o,u)},t.generateSvgReplacementMutation=function(n,a){var o=a.iconName,s=a.title,u=a.titleId,c=a.prefix,I=a.transform,y=a.symbol,N=a.mask,D=a.maskId,x=a.extra;return new Promise(function(z,P){Promise.all([nd(o,c),N.iconName?nd(N.iconName,N.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(B){var C=cg(B,2),T=C[0],w=C[1];z([n,Tg({icons:{main:T,mask:w},prefix:c,iconName:o,transform:I,symbol:y,maskId:D,title:s,titleId:u,extra:x,watchable:!0})])}).catch(P)})},t.generateAbstractIcon=function(n){var a=n.children,o=n.attributes,s=n.main,u=n.transform,c=n.styles,I=lu(c);I.length>0&&(o.style=I);var y;return hg(u)&&(y=rr("generateAbstractTransformGrouping",{main:s,transform:u,containerWidth:s.width,iconWidth:s.width})),a.push(y||s.icon),{children:a,attributes:o}}}},JS={mixout:function(){return{layer:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.classes,s=o===void 0?[]:o;return cu({type:"layer"},function(){hi("beforeDOMElementCreation",{assembler:n,params:a});var u=[];return n(function(c){Array.isArray(c)?c.map(function(I){u=u.concat(I.abstract)}):u=u.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(ie.cssPrefix,"-layers")].concat(Bo(s)).join(" ")},children:u}]})}}}},XS={mixout:function(){return{counter:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.title,s=o===void 0?null:o,u=a.classes,c=u===void 0?[]:u,I=a.attributes,y=I===void 0?{}:I,N=a.styles,D=N===void 0?{}:N;return cu({type:"counter",content:n},function(){return hi("beforeDOMElementCreation",{content:n,params:a}),SS({content:n.toString(),title:s,extra:{attributes:y,styles:D,classes:["".concat(ie.cssPrefix,"-layers-counter")].concat(Bo(c))}})})}}}},QS={mixout:function(){return{text:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.transform,s=o===void 0?bn:o,u=a.title,c=u===void 0?null:u,I=a.classes,y=I===void 0?[]:I,N=a.attributes,D=N===void 0?{}:N,x=a.styles,z=x===void 0?{}:x;return cu({type:"text",content:n},function(){return hi("beforeDOMElementCreation",{content:n,params:a}),kh({content:n,transform:q(q({},bn),s),title:c,extra:{attributes:D,styles:z,classes:["".concat(ie.cssPrefix,"-layers-text")].concat(Bo(y))}})})}}},provides:function(t){t.generateLayersText=function(n,a){var o=a.title,s=a.transform,u=a.extra,c=null,I=null;if(Xy){var y=parseInt(getComputedStyle(n).fontSize,10),N=n.getBoundingClientRect();c=N.width/y,I=N.height/y}return ie.autoA11y&&!o&&(u.attributes["aria-hidden"]="true"),Promise.resolve([n,kh({content:n.innerHTML,width:c,height:I,transform:s,title:o,extra:u,watchable:!0})])}}},KS=new RegExp('"',"ug"),Oh=[1105920,1112319];function $S(e){var t=e.replace(KS,""),n=fS(t,0),a=n>=Oh[0]&&n<=Oh[1],o=t.length===2?t[0]===t[1]:!1;return{value:Kf(o?t[0]:t),isSecondary:a||o}}function Zh(e,t){var n="".concat(GE).concat(t.replace(":","-"));return new Promise(function(a,o){if(e.getAttribute(n)!==null)return a();var s=va(e.children),u=s.filter(function(X){return X.getAttribute(Qf)===t})[0],c=Or.getComputedStyle(e,t),I=c.getPropertyValue("font-family").match(WE),y=c.getPropertyValue("font-weight"),N=c.getPropertyValue("content");if(u&&!I)return e.removeChild(u),a();if(I&&N!=="none"&&N!==""){var D=c.getPropertyValue("content"),x=~["Sharp"].indexOf(I[2])?Ve:Oe,z=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(I[2])?bo[x][I[2].toLowerCase()]:HE[x][y],P=$S(D),B=P.value,C=P.isSecondary,T=I[0].startsWith("FontAwesome"),w=yg(z,B),S=w;if(T){var b=yS(B);b.iconName&&b.prefix&&(w=b.iconName,z=b.prefix)}if(w&&!C&&(!u||u.getAttribute(dg)!==z||u.getAttribute(gg)!==S)){e.setAttribute(n,S),u&&e.removeChild(u);var V=YS(),_=V.extra;_.attributes[Qf]=t,nd(w,z).then(function(X){var te=Tg(q(q({},V),{},{icons:{main:X,mask:Mg()},prefix:z,iconName:S,extra:_,watchable:!0})),K=Ge.createElement("svg");t==="::before"?e.insertBefore(K,e.firstChild):e.appendChild(K),K.outerHTML=te.map(function(_e){return Ho(_e)}).join(` +`),e.removeAttribute(n),a()}).catch(o)}else a()}else a()})}function qS(e){return Promise.all([Zh(e,"::before"),Zh(e,"::after")])}function eL(e){return e.parentNode!==document.head&&!~YE.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Gh(e){if(ar)return new Promise(function(t,n){var a=va(e.querySelectorAll("*")).filter(eL).map(qS),o=vg.begin("searchPseudoElements");h1(),Promise.all(a).then(function(){o(),id(),t()}).catch(function(){o(),id(),n()})})}var tL={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Gh,n}}},provides:function(t){t.pseudoElements2svg=function(n){var a=n.node,o=a===void 0?Ge:a;ie.searchPseudoElements&&Gh(o)}}},Fh=!1,nL={mixout:function(){return{dom:{unwatch:function(){h1(),Fh=!0}}}},hooks:function(){return{bootstrap:function(){Rh(qf("mutationObserverCallbacks",{}))},noAuto:function(){OS()},watch:function(n){var a=n.observeMutationsRoot;Fh?id():Rh(qf("mutationObserverCallbacks",{observeMutationsRoot:a}))}}}},Yh=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(a,o){var s=o.toLowerCase().split("-"),u=s[0],c=s.slice(1).join("-");if(u&&c==="h")return a.flipX=!0,a;if(u&&c==="v")return a.flipY=!0,a;if(c=parseFloat(c),isNaN(c))return a;switch(u){case"grow":a.size=a.size+c;break;case"shrink":a.size=a.size-c;break;case"left":a.x=a.x-c;break;case"right":a.x=a.x+c;break;case"up":a.y=a.y-c;break;case"down":a.y=a.y+c;break;case"rotate":a.rotate=a.rotate+c;break}return a},n)},rL={mixout:function(){return{parse:{transform:function(n){return Yh(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-transform");return o&&(n.transform=Yh(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var a=n.main,o=n.transform,s=n.containerWidth,u=n.iconWidth,c={transform:"translate(".concat(s/2," 256)")},I="translate(".concat(o.x*32,", ").concat(o.y*32,") "),y="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),N="rotate(".concat(o.rotate," 0 0)"),D={transform:"".concat(I," ").concat(y," ").concat(N)},x={transform:"translate(".concat(u/2*-1," -256)")},z={outer:c,inner:D,path:x};return{tag:"g",attributes:q({},z.outer),children:[{tag:"g",attributes:q({},z.inner),children:[{tag:a.icon.tag,children:a.icon.children,attributes:q(q({},a.icon.attributes),z.path)}]}]}}}},nf={x:0,y:0,width:"100%",height:"100%"};function _h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function iL(e){return e.tag==="g"?e.children:[e]}var aL={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-mask"),s=o?uu(o.split(" ").map(function(u){return u.trim()})):Mg();return s.prefix||(s.prefix=Zr()),n.mask=s,n.maskId=a.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var a=n.children,o=n.attributes,s=n.main,u=n.mask,c=n.maskId,I=n.transform,y=s.width,N=s.icon,D=u.width,x=u.icon,z=rS({transform:I,containerWidth:D,iconWidth:y}),P={tag:"rect",attributes:q(q({},nf),{},{fill:"white"})},B=N.children?{children:N.children.map(_h)}:{},C={tag:"g",attributes:q({},z.inner),children:[_h(q({tag:N.tag,attributes:q(q({},N.attributes),z.path)},B))]},T={tag:"g",attributes:q({},z.outer),children:[C]},w="mask-".concat(c||Uo()),S="clip-".concat(c||Uo()),b={tag:"mask",attributes:q(q({},nf),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[P,T]},V={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:iL(x)},b]};return a.push(V,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},nf)}),{children:a,attributes:o}}}},oL={provides:function(t){var n=!1;Or.matchMedia&&(n=Or.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var a=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};a.push({tag:"path",attributes:q(q({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var u=q(q({},s),{},{attributeName:"opacity"}),c={tag:"circle",attributes:q(q({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||c.children.push({tag:"animate",attributes:q(q({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},u),{},{values:"1;0;1;1;0;1;"})}),a.push(c),a.push({tag:"path",attributes:q(q({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:q(q({},u),{},{values:"1;0;0;0;0;1;"})}]}),n||a.push({tag:"path",attributes:q(q({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},u),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:a}}}},lL={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return n.symbol=s,n}}}},sL=[oS,VS,JS,XS,QS,tL,nL,rL,aL,oL,lL];vS(sL,{mixoutsTo:Kt});Kt.noAuto;Kt.config;Kt.library;Kt.dom;var ad=Kt.parse;Kt.findIconDefinition;Kt.toHtml;var uL=Kt.icon;Kt.layer;Kt.text;Kt.counter;var y1={exports:{}},cL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fL=cL,dL=fL;function M1(){}function T1(){}T1.resetWarningCache=M1;var gL=function(){function e(a,o,s,u,c,I){if(I!==dL){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:T1,resetWarningCache:M1};return n.PropTypes=n,n};y1.exports=gL();var IL=y1.exports;const Ie=gd(IL);function Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Ar(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function v1(e,t){if(e==null)return{};var n=mL(e,t),a,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function od(e){return hL(e)||pL(e)||yL(e)||ML()}function hL(e){if(Array.isArray(e))return ld(e)}function pL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yL(e,t){if(e){if(typeof e=="string")return ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ld(e,t)}}function ld(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var a=(t.children||[]).map(function(I){return x1(e,I)}),o=Object.keys(t.attributes||{}).reduce(function(I,y){var N=t.attributes[y];switch(y){case"class":I.attrs.className=N,delete t.attributes.class;break;case"style":I.attrs.style=AL(N);break;default:y.indexOf("aria-")===0||y.indexOf("data-")===0?I.attrs[y.toLowerCase()]=N:I.attrs[w1(y)]=N}return I},{attrs:{}}),s=n.style,u=s===void 0?{}:s,c=v1(n,wL);return o.attrs.style=Ar(Ar({},o.attrs.style),u),e.apply(void 0,[t.tag,Ar(Ar({},o.attrs),c)].concat(od(a)))}var A1=!1;try{A1=!0}catch{}function CL(){if(!A1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Wh(e){if(e&&Ws(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ad.icon)return ad.icon(e);if(e===null)return null;if(e&&Ws(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function rf(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Qi({},e,t):{}}var NL=["forwardedRef"];function ot(e){var t=e.forwardedRef,n=v1(e,NL),a=n.icon,o=n.mask,s=n.symbol,u=n.className,c=n.title,I=n.titleId,y=n.maskId,N=Wh(a),D=rf("classes",[].concat(od(TL(n)),od(u.split(" ")))),x=rf("transform",typeof n.transform=="string"?ad.transform(n.transform):n.transform),z=rf("mask",Wh(o)),P=uL(N,Ar(Ar(Ar(Ar({},D),x),z),{},{symbol:s,title:c,titleId:I,maskId:y}));if(!P)return CL("Could not find icon",N),null;var B=P.abstract,C={ref:t};return Object.keys(n).forEach(function(T){ot.defaultProps.hasOwnProperty(T)||(C[T]=n[T])}),EL(B[0],C)}ot.displayName="FontAwesomeIcon";ot.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};ot.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var EL=x1.bind(null,cn.createElement),SL={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 256H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},LL=SL,DL={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},kL=DL,jL={prefix:"fas",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"]},af={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},bL={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},zL={prefix:"fas",iconName:"square-root-variable",icon:[576,512,["square-root-alt"],"f698","M289 24.2C292.5 10 305.3 0 320 0H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H345L239 487.8c-3.2 13-14.2 22.6-27.6 24s-26.1-5.5-32.1-17.5L76.2 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H96c12.1 0 23.2 6.8 28.6 17.7l73.3 146.6L289 24.2zM393.4 233.4c12.5-12.5 32.8-12.5 45.3 0L480 274.7l41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L525.3 320l41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L480 365.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L434.7 320l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},RL=zL,UL={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},PL={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M120 256c0 30.9-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56zm160 0c0 30.9-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56zm104 56c-30.9 0-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56s-25.1 56-56 56z"]},C1=PL,OL={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},ZL={prefix:"fas",iconName:"person-praying",icon:[448,512,[128720,"pray"],"f683","M352 64c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64zM232.7 264l22.9 31.5c6.5 8.9 16.3 14.7 27.2 16.1s21.9-1.7 30.4-8.7l88-72c17.1-14 19.6-39.2 5.6-56.3s-39.2-19.6-56.3-5.6l-55.2 45.2-26.2-36C253.6 156.7 228.6 144 202 144c-30.9 0-59.2 17.1-73.6 44.4L79.8 280.9c-20.2 38.5-9.4 85.9 25.6 111.8L158.6 432H72c-22.1 0-40 17.9-40 40s17.9 40 40 40H280c17.3 0 32.6-11.1 38-27.5s-.3-34.4-14.2-44.7L187.7 354l45-90z"]},GL=ZL,FL={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},YL=FL,_L={prefix:"fas",iconName:"turn-up",icon:[384,512,[10548,"level-up-alt"],"f3bf","M178.3 5.7L40.3 143.7C35 149 32 156.2 32 163.7C32 179.3 44.7 192 60.3 192H144V400c0 8.8-7.2 16-16 16H32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96c61.9 0 112-50.1 112-112V192h83.7c15.6 0 28.3-12.7 28.3-28.3c0-7.5-3-14.7-8.3-20L205.7 5.7C202 2 197.1 0 192 0s-10 2-13.7 5.7z"]},BL=_L;const WL=cn.createContext({}),N1=!0;function HL({baseColor:e,highlightColor:t,width:n,height:a,borderRadius:o,circle:s,direction:u,duration:c,enableAnimation:I=N1}){const y={};return u==="rtl"&&(y["--animation-direction"]="reverse"),typeof c=="number"&&(y["--animation-duration"]=`${c}s`),I||(y["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(y.width=n),(typeof a=="string"||typeof a=="number")&&(y.height=a),(typeof o=="string"||typeof o=="number")&&(y.borderRadius=o),s&&(y.borderRadius="50%"),typeof e<"u"&&(y["--base-color"]=e),typeof t<"u"&&(y["--highlight-color"]=t),y}function E1({count:e=1,wrapper:t,className:n,containerClassName:a,containerTestId:o,circle:s=!1,style:u,...c}){var I,y,N;const D=cn.useContext(WL),x={...c};for(const[S,b]of Object.entries(c))typeof b>"u"&&delete x[S];const z={...D,...x,circle:s},P={...u,...HL(z)};let B="react-loading-skeleton";n&&(B+=` ${n}`);const C=(I=z.inline)!==null&&I!==void 0?I:!1,T=[],w=Math.ceil(e);for(let S=0;Se&&S===w-1){const _=(y=b.width)!==null&&y!==void 0?y:"100%",X=e%1,te=typeof _=="number"?_*X:`calc(${_} * ${X})`;b={...b,width:te}}const V=cn.createElement("span",{className:B,style:b,key:S},"‌");C?T.push(V):T.push(cn.createElement(cn.Fragment,{key:S},V,cn.createElement("br",null)))}return cn.createElement("span",{className:a,"data-testid":o,"aria-live":"polite","aria-busy":(N=z.enableAnimation)!==null&&N!==void 0?N:N1},t?T.map((S,b)=>cn.createElement(t,{key:b},S)):T)}function VL(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Jn(e,t,n){try{const a=document.createElement(e);return a.className=t,n&&n.appendChild(a),a}catch(a){return console.error("[ EDITOR - INPUT ] CreateElement utility failed (this is most likely a bug...):",a),null}}const JL=()=>{const e=Jn("math","inputContainer");e.contentEditable=!1;const t=Jn("section","inputSection inputs",e);t.contentEditable=!1,Jn("section","inputSection limit",e);const n=Jn("section","inputSection labels",e);n.contentEditable=!1;const a=Jn("p","inputSection info",e);a.contentEditable=!1;const o=Jn("span","mathQuillField",t),s=Jn("p","inputLabel active",n);s.innerHTML=` + + `;const u=Jn("input","rawLatex",t);u.type="text",u.style.display="none";const c=Jn("p","inputLabel",n);return c.innerHTML=` + + `,c.onclick=async()=>{o.style.display="none",c.className="inputLabel active",s.className="inputLabel",u.style.display=""},s.onclick=async()=>{o.style.display="",s.className="inputLabel active",c.className="inputLabel",u.style.display="none"},{container:e,dynamicInput:o,latexInput:u,latexInterface:{latex:y=>{u.value=y}},labels:[c,s],infoElement:a}},XL="/assets/error-7f83329a.svg",S1=[{label:"Perusmerkit ja kreikkalaiset aakkoset",characters:[{character:"°",popular:!0},{character:"·",latexCommand:"\\cdot",popular:!0},{character:"±",latexCommand:"\\pm",popular:!0},{character:"∞",latexCommand:"\\infty",popular:!0},{character:"²",latexCommand:"^2",popular:!0},{character:"³",latexCommand:"^3",popular:!0},{character:"½",latexCommand:"\\frac{1}{2}",popular:!0},{character:"⅓",latexCommand:"\\frac{1}{3}",popular:!0},{character:"π",latexCommand:"\\pi",popular:!0},{character:"α",latexCommand:"\\alpha",popular:!0},{character:"β",latexCommand:"\\beta",popular:!0},{character:"Γ",latexCommand:"\\Gamma"},{character:"γ",latexCommand:"\\gamma"},{character:"Δ",latexCommand:"\\Delta"},{character:"δ",latexCommand:"\\delta"},{character:"ε",latexCommand:"\\varepsilon"},{character:"ζ",latexCommand:"\\zeta"},{character:"η",latexCommand:"\\eta"},{character:"θ",latexCommand:"\\theta"},{character:"ϑ",latexCommand:"\\vartheta"},{character:"ι",latexCommand:"\\iota"},{character:"κ",latexCommand:"\\kappa"},{character:"Λ",latexCommand:"\\Lambda"},{character:"λ",latexCommand:"\\lambda"},{character:"µ",latexCommand:"\\mu"},{character:"ν",latexCommand:"\\nu"},{character:"Ξ",latexCommand:"\\Xi"},{character:"ξ",latexCommand:"\\xi"},{character:"∏",latexCommand:"\\Pi"},{character:"ρ",latexCommand:"\\rho"},{character:"∑",latexCommand:"\\Sigma"},{character:"σ",latexCommand:"\\sigma"},{character:"τ",latexCommand:"\\tau"},{character:"Υ",latexCommand:"\\Upsilon"},{character:"υ",latexCommand:"\\upsilon"},{character:"Φ",latexCommand:"\\Phi"},{character:"Ф",latexCommand:"\\phi"},{character:"χ",latexCommand:"\\chi"},{character:"Ψ",latexCommand:"\\Psi"},{character:"ψ",latexCommand:"\\psi"},{character:"Ω",latexCommand:"\\Omega"},{character:"ω",latexCommand:"\\omega"},{character:"∂",latexCommand:"\\partial"},{character:"φ",latexCommand:"\\varphi"}]},{label:"Algebra",characters:[{character:"≠",latexCommand:"\\neq",popular:!0},{character:"≈",latexCommand:"\\approx",popular:!0},{character:"≤",latexCommand:"\\leq",popular:!0},{character:"≥",latexCommand:"\\geq"},{character:"<"},{character:">"},{character:"∼",latexCommand:"\\sim"},{character:"≡",latexCommand:"\\equiv"},{character:"≢",latexCommand:"\\not\\equiv"},{character:"∘",latexCommand:"\\circ"},{character:"…",latexCommand:"\\ldots"},{character:"∝",latexCommand:"\\propto"}]},{label:"Geometria ja vektorioppi",characters:[{character:"∢",latexCommand:"\\sphericalangle",popular:!0},{character:"|",latexCommand:"\\mid",popular:!0},{character:"‖",latexCommand:"\\parallel",popular:!0},{character:"⇌",latexCommand:"\\xrightleftharpoons",noWrite:!0},{character:"⇅"},{character:"∠",latexCommand:"\\angle"},{character:"↑",latexCommand:"\\uparrow"},{character:"↗",latexCommand:"\\nearrow"},{character:"↘",latexCommand:"\\searrow"},{character:"↓",latexCommand:"\\downarrow"},{character:"↔",latexCommand:"\\leftrightarrow"},{character:"⊥",latexCommand:"\\perp"}]},{label:"Logiikka ja joukko-oppi",characters:[{character:"→",latexCommand:"\\rightarrow",popular:!0},{character:"⇒",latexCommand:"\\Rightarrow",popular:!0},{character:"⇔",latexCommand:"\\Leftrightarrow",popular:!0},{character:"∈",latexCommand:"\\in",popular:!0},{character:"ℤ",latexCommand:"\\mathbb{Z}",popular:!0},{character:"ℝ",latexCommand:"\\mathbb{R}",popular:!0},{character:"∃",latexCommand:"\\exists"},{character:"∀",latexCommand:"\\forall"},{character:"ℕ",latexCommand:"\\mathbb{N}"},{character:"ℚ",latexCommand:"\\mathbb{Q}"},{character:"∩",latexCommand:"\\cap"},{character:"∪",latexCommand:"\\cup"},{character:"∖",latexCommand:"\\setminus"},{character:"⊂",latexCommand:"\\subset"},{character:"⊄",latexCommand:"\\notsubset"},{character:"∉",latexCommand:"\\notin"},{character:"∅",latexCommand:"\\empty"},{character:"∧",latexCommand:"\\and"},{character:"∨",latexCommand:"\\or"},{character:"¬"},{character:"∇",latexCommand:"\\nabla"}]}],ye={events:new EventTarget,cache:{},domCache:document.createElement("interfaceCache"),collection:{},create(){const e={image:document.createElement("img"),isOpen:null,writable:!0,id:VL(),data:"",flags:[]};e.image.setAttribute("draggable","false"),this.collection[e.id]=e,Object.assign(e,JL());const t=MathQuill.getInterface(2);return e.dynamicInterface=t.MathField(e.dynamicInput,{spaceBehavesLikeTab:!1,handlers:{edit:async()=>{if(e.flags.includes("ignoreInputDynamic")){e.flags.splice(e.flags.indexOf("ignoreInputDynamic"),1);return}e.flags.includes("disableInputDynamic")||(e.data!==e.dynamicInterface.latex()&&this.write(e.id,e.dynamicInterface.latex(),"dynamic"),e.dynamicInterface.focus())},moveOutOf:async n=>{this.events.dispatchEvent(new CustomEvent("moveOut",{detail:e})),this.close(e.id);const a=ae.getParentLine(e.container);let o=ae.getNodeIndex(a,e.container);n>0&&(o+=1),a.childNodes[a.childNodes.length-1]===e.container&&e.container.after(document.createElement("br")),ae.select(a,o)}}}),e.latexInput.oninput=async()=>{e.latexInput.value!==e.data&&this.write(e.id,e.latexInput.value,"latex")},e.container.setAttribute("math",""),e.container.setAttribute("math-id",e.id),e.container.style.display="none",e},open(e){const t=this.collection[e];if(!t.isOpen){if(t.isOpen===null)t.container.style.display="",t.container.className="inputContainer open",t.container.removeAttribute("style"),t.image.removeAttribute("style"),t.isOpen=!0;else if(t.container.removeAttribute("style"),t.image.removeAttribute("style"),this.cache[e]!==void 0){for(;t.container.firstChild&&(t.container.lastChild.remove(),!!t.container.firstChild););for(const n of this.cache[e])t.container.appendChild(n);t.isOpen=!0,t.container.className="inputContainer open",t.flags.push("ignoreInputDynamic"),t.dynamicInterface.latex(t.data),t.latexInterface.latex(t.data)}else throw new Error("Cache miss");t.flags.includes("disableInputDynamic")&&t.labels[0].click(),requestAnimationFrame(()=>{t.dynamicInterface.focus(),t.dynamicInterface.reflow(),window.setLatexCommandsVisibility&&window.setLatexCommandsVisibility(!0),this.events.dispatchEvent(new CustomEvent("focus",{detail:t}))})}},remove(e){const t=this.collection[e];if(t===void 0)throw new Error(`Math element "${e}" does not exist`);t.container.remove(),delete this.collection[e],this.events.dispatchEvent(new CustomEvent("remove",{detail:e}))},write(e,t,n=""){if(!this.collection[e])throw new Error(`Math element "${e}" does not exist`);const a=this.collection[e];if(!a.writable)return;a.data=t,a.container.setAttribute("math",btoa(t));const o=document.createElement("span");if(a.dynamicInput.after(o),this.domCache.appendChild(a.dynamicInput),n!=="dynamic")if(a.flags.push("ignoreInputDynamic"),a.dynamicInterface.latex(t),a.dynamicInterface.reflow(),a.dynamicInterface.latex()!==t){if(a.flags.includes("disableInputDynamic"))return;a.dynamicInput.style.pointerEvents="none",a.dynamicInput.style.userSelect="none",a.infoElement.innerText="LaTex syntax error",a.flags.push("disableInputDynamic")}else a.dynamicInput.style.pointerEvents="",a.dynamicInput.style.userSelect="",a.infoElement.innerText="",a.flags.includes("disableInputDynamic")&&a.flags.splice(a.flags.indexOf("disableInputDynamic"),1);n!=="latex"&&a.latexInterface.latex(t),o.before(a.dynamicInput),o.remove()},async close(e){const t=this.collection[e];if(t===void 0)throw new Error(`Math element "${e}" does not exist`);if(t.isOpen){if(t.isOpen=!1,t.container.className="inputContainer closed",t.container.removeAttribute("style"),t.image.removeAttribute("style"),t.dynamicInterface.latex()!==t.data){t.image.src=`${XL}`,t.image.style.display="inline",t.image.style.width="20px",this.cache[e]=[];for(const n of t.container.children)this.cache[e].push(n);for(;t.container.firstChild&&(t.container.lastChild.remove(),!!t.container.firstChild););t.container.appendChild(t.image)}else{let n=t.data;n=n.replace(/ö/g,"\\ddot{o}"),n=n.replace(/ä/g,"\\ddot{a}"),n=n.replace(/å/g,"\\mathring{a}"),n=n.replace(/€/g,"\\unicode{0x20AC}");for(const u of S1[0].characters)n=n.split(u.character).join(u.latexCommand);const a=MathJax.getMetricsFor(t.latexInput),s=(await MathJax.tex2svgPromise(n,a)).getElementsByTagName("svg")[0].outerHTML;t.image.src=`data:image/svg+xml;base64,${btoa(unescape(s))}`,this.cache[e]=[];for(const u of t.container.children)this.cache[e].push(u);for(;t.container.firstChild&&(t.container.lastChild.remove(),!!t.container.firstChild););t.container.appendChild(t.image)}window.setLatexCommandsVisibility&&window.setLatexCommandsVisibility(!1),t.data.length===0&&(this.events.dispatchEvent(new CustomEvent("blur",{detail:t})),ae.waitForEvent(this.events,"blur").then(()=>{this.remove(e)})),this.events.dispatchEvent(new CustomEvent("blur",{detail:t})),t.container.setAttribute("math",btoa(t.data))}},flush(){this.cache={};for(const e of Object.keys(this.collection))this.remove(e);delete this.collection,this.domCache.innerHTML="",this.collection={}},init(){ye.domCache.style.display="none",document.body.appendChild(ye.domCache),window.addEventListener("click",async e=>{const t=e.target.getAttribute("math-id")??e.target.parentElement.getAttribute("math-id");t&&this.collection[t]&&!this.collection[t].isOpen&&this.open(t)}),window.addEventListener("mousedown",async e=>{var a,o,s,u,c;if(((o=(a=e.target)==null?void 0:a.parentElement)==null?void 0:o.className)==="symbols"||((c=(u=(s=e.target)==null?void 0:s.parentElement)==null?void 0:u.parentElement)==null?void 0:c.className)==="symbols")return;const t=e.target.getAttribute("math-id")??e.target.parentElement.getAttribute("math-id");Object.keys(this.collection).filter(I=>I!==t).filter(I=>this.collection[I].isOpen).filter(I=>!ae.isSomeParent(e.target,this.collection[I].container)).forEach(I=>this.close(I))})}},L1={getNodeIndex(e,t){if(!(e instanceof HTMLElement))throw console.error("[ EDITOR ] List provided to getNodeIndex is not an instance of HTMLElement.");let n=0;for(const a of e.childNodes){if(a===t)break;n+=1}return n},getNodeByIndex(e,t){if(!(e instanceof HTMLElement))throw console.error("[ EDITOR ] List given to getNodeByIndex is not an instance of HTMLElement.");if(e.childNodes.length-1{for(const a of e)a.contentEditable=t;requestAnimationFrame(()=>{requestAnimationFrame(()=>{setTimeout(()=>{n()},50)})})})},isSomeParent(e,t){if(!(e instanceof Node))throw console.error("[ EDITOR ] Node given to isSomeParent is not instance of Node.");return t===null?!1:t.contains(e)},getParentLine(e){if(!(e instanceof Node))throw console.error("[ EDITOR ] Node given to getParentLine is not instance of Node.");const t=n=>{var a;return(((a=n==null?void 0:n.parentNode)==null?void 0:a.nodeName)||"").toLowerCase()==="div"?n.parentNode:n.parentNode!==null?t(n.parentNode):null};return t(e)},insertNodeAt(e,t){if(!(e instanceof Range))throw console.error("[ EDITOR ] Range given to insertNodeAt is not instance of Range.");if(!(t instanceof Node))throw console.error("[ EDITOR ] Node given to insertNodeAt is not instance of Node.");e.insertNode(t)},listToArray(e){const t=[];for(const n of e)t.push(n);return t},waitForEvent(e,t){if(!(e instanceof EventTarget))throw console.error("[ EDITOR ] Event target given to waitForEvent is not instance of EventTarget.");if(typeof t!="string")throw console.error("[ EDITOR ] Event name given to waitForEvent is not a type of string.");return new Promise(n=>{const a=async()=>{e.removeEventListener(t,a),n()};e.addEventListener(t,a)})},async asyncTrigger(e,t){if(typeof e!="function")throw console.error("[ EDITOR ] Input given to asyncTrigger is not typeof function.");if(!(t instanceof Promise))throw console.error("[ EDITOR ] Promise given to asyncTrigger is not instance of Promise.");return new Promise((n,a)=>{t.then((...o)=>{n(...o)}).catch((...o)=>{a(...o)}),e()})},getSelectedNode(){const e=document.getSelection().focusNode;return e===null?null:e.nodeType===3?e.parentNode:e},select(e,t){if(!(e instanceof HTMLElement)&&!(e instanceof Node))throw console.error("[ EDITOR ] Element/Node given to select is not instance of HTMLElement/Node.");if(typeof t!="number")throw console.error("[ EDITOR ] Index given to select is not type of number.");if(e.childNodes.length-1{const a=document.getSelection(),o=a.anchorOffset,s=document.createRange();if(s.setStart(a.anchorNode,o),s.collapse(!0),a.removeAllRanges(),a.addRange(s),t.length!==0){let u=null;for(const c of t)if(c.type.startsWith("image/")){const I=new FileReader;I.onload=()=>{const y=document.createElement("img"),N=document.createElement("attachment");N.contentEditable=!1,!window.browser!=="browser"&&(y.contentEditable=!1),N.draggable=!0,N.appendChild(y),y.src=I.result,u?u.after(N):s.insertNode(N),u=N},I.readAsDataURL(c)}a.collapseToEnd(),n()}else{const u=document.createTextNode(e);s.insertNode(u),a.collapseToEnd(),n()}})},async wasParentClicked(e){return new Promise(t=>{requestAnimationFrame(()=>{const n=L1.getSelectedNode();console.log("Was parent clicked?",n,e),this.isSomeParent(n,e)||n===e?t(!0):t(!1)})})},getObjectPropertyArray(e,t){if(typeof e!="object")throw console.error("[ EDITOR ] Object given to getObjectPropertyArray is not type of object.");if(typeof t!="string")throw console.error("[ EDITOR ] Property given to getObjectPropertyArray is not type of string.");const n=Object.keys(e),a=[];for(const o of n)e[o][t]!==void 0&&a.push(e[o][t]);return a},getArrayItemPropertyArray(e,t){if(!Array.isArray(e))throw console.error("[ EDITOR ] Array given to getArrayItemPropertyArray is not an array.");if(typeof t!="string")throw console.error("[ EDITOR ] Property given to getArrayItemPropertyArray is not type of string.");const n=[];for(const a of e)a[t]!==void 0&&n.push(a[t]);return n},findNextOf(e,t,n){if(typeof e!="string")throw console.error("[ EDITOR ] String given to findNextOf is not type of string.");if(!Array.isArray(t))throw console.error("[ EDITOR ] Array given to findNextOf is not an array.");if(typeof n!="number")throw console.error("[ EDITOR ] Index given to findNextOf is not type of number.");return n?t.slice(n).indexOf(e):t.indexOf(e)},readBetweenIndexes(e,t,n){if(!Array.isArray(e))throw console.error("[ EDITOR ] Array given to readBetweenIndexes is not an array.");if(typeof t!="number")throw console.error("[ EDITOR ] Start given to readBetweenIndexes is not type of number.");if(typeof n!="number")throw console.error("[ EDITOR ] End given to readBetweenIndexes is not type of number.");return JSON.parse(JSON.stringify(e)).splice(t,n-t)},getCloneFromIndex(e,t){if(!Array.isArray(e))throw console.error("[ EDITOR ] Array given to getCloneFromIndex is not an array.");if(typeof t!="number")throw console.error("[ EDITOR ] Index given to getCloneFromIndex is not type of number.");return JSON.parse(JSON.stringify(e)).slice(t)},areEqual(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,a)=>t[a]===n):!1},removeDoubleQuotes(e){return e.replace(/\\"/g,"\\'").replace(/"/g,"").replace(/\\'/g,'"')},parseEmbedded(e){if(typeof e!="string")throw console.error("[ EDITOR ] Data given to parseEmbedded is not type of string.");e=e.split("");const t=[];let n=[],a=0;const o=()=>{const u=e[a];if(u==="<"){n.length!==0&&(t.push({name:"text",attributes:[],tree:[],data:n.join("")}),n=[]);let c,I,y,N;const D={};try{if(c=a+this.findNextOf(">",this.getCloneFromIndex(e,0),a),I=this.readBetweenIndexes(e,a+1,c).join(""),[y]=I.split(" "),N=I.replace(y,""),N!==""){N.startsWith(" ")&&(N=N.replace(" ","")),N=N.split(" ");for(const B of N){const C=B.split("=");D[this.removeDoubleQuotes(C[0])]=this.removeDoubleQuotes(C[1])}}}catch(B){console.error("[ EDITOR ] ParseEmbedded failed to read tag data that started at",a,"of",e,"err:",B)}const x=this.getCloneFromIndex(e,c+1).join("").split(``),[z]=x;a+=`<${I}>${z}`.length-1;const P={name:y,attributes:D,data:z,tree:[]};t.push(P)}else n.push(u);return a},s=()=>o()${btoa(s.textContent)}`;break}case"math":{t[t.length-1]+=`${s.getAttribute("math")}`;break}case"br":{window.browser!=="firefox"&&s.parentNode.childNodes.length!==1&&t.push("");break}case"img":{console.warn("[ EDITOR ] IMG parsing is disabled.");break}case"attachment":{s.childNodes[0].nodeName.toLowerCase()==="img"?t[t.length-1]+=`${s.children[0].src??"unset"}`:console.warn("[ EDITOR ] Unknown attachment type");break}case"div":{for(const u of o.childNodes)o.after(u);o.remove(),a=0,console.warn("[ Editor ] Line structure changes were required! Redoing the getContent..."),n=!0;break}default:console.warn("[ EDITOR ] Unknown element in editor",s)}}return n?this.toEmbedded(e):t.length===0?"":t},fill(e){let t=null;switch(e.name){case"meta":break;case"text":{e.data===""?t=document.createElement("br"):t=document.createTextNode(atob(e.data));break}case"math":{const n=ye.create();ye.write(n.id,atob(e.data)),t=n.container;break}case"img":{const n=document.createElement("img"),a=document.createElement("attachment");a.contentEditable=!1,n.contentEditable=!1,a.appendChild(n),n.src=e.data,e.attributes.height&&(a.style.height=e.attributes.height),e.attributes.width&&(a.style.width=e.attributes.width),a.draggable=!0,t=a;break}default:console.error("[ EDITOR ]",`Unknown element type of "${e.name}" cannot be processed. Raw:`,e)}if(e.tree!==void 0&&e.tree!==0)for(const n of e.tree)e.appendChild(this.fill(n));return t}},ae=L1;class QL{constructor(t){if(!ae.isSomeParent(t,document.body))throw new Error("The hook element has to be in the DOM");this.hook=t,this.local={Math:ye,Utils:ae},this.events=new EventTarget,this.activeMathElement=null,this.activeLine=null,this.watchHook=!0,this.moveOutOfThisEvent=!1,this.resizeObserverNodes=[],this.resizeObserver=null,this.observerCallback=null}setContent(t){this.watchHook=!1,this.hook.contentEditable=!1,this.hook.innerHTML="",ye.flush(),this.observerCallback(),console.log("[ EDITOR ] Setting editor content...");const n=[];for(const o of t)n.push(ae.parseEmbedded(o));console.log("[ EDITOR ] Parser output:",n);let a=!1;for(const o of n){let s=null;if(o.length===0)s=document.createElement("div"),s.appendChild(document.createElement("br")),this.hook.appendChild(s),a||(a=!0);else{for(const u of o){if(u.name==="meta"){console.log("[ EDITOR ]","Save META:",u.attributes);continue}s||(s=document.createElement("div"));const c=ae.fill(u);c!==null&&s.appendChild(c)}s!==null&&(this.hook.appendChild(s),a||(a=!0))}}a||(this.hook.innerHTML="

");for(const o of Object.keys(ye.collection))ye.collection[o].writable=!1,ye.open(o),ye.close(o),ye.collection[o]!==void 0&&(ye.collection[o].writable=!0);this.watchHook=!0,this.observerCallback(),this.hook.contentEditable=!0}init(){let t=null,n=!1;document.addEventListener("keydown",o=>{var s,u,c,I,y,N,D;if(ae.isSomeParent(ae.getSelectedNode(),this.hook)){if(o.code==="ArrowUp"||o.code==="ArrowDown"){const x=document.getSelection(),z=x.anchorNode.parentElement===this.hook?x.anchorNode:ae.getParentLine(x.anchorNode);if(!ae.isSomeParent(x.anchorNode,this.hook)||z===this.hook||z===this.hook.parentElement||this.activeLine===z)return;this.activeLine=z,console.debug("[ EDITOR ] Active line change to",this.activeLine)}if(n){o.preventDefault();return}if(!o.ctrlKey&&(o.code==="ArrowLeft"||o.code==="ArrowRight")){const x=ae.getSelectedNode(),z=x,P=document.getSelection(),B=o.code==="ArrowLeft"?"moveToRightEnd":"moveToLeftEnd",C=(T=z)=>{const w=T.getAttribute("math-id")??T.parentElement.getAttribute("math-id");ae.waitForEvent(ye.events,"focus").then(()=>{ye.collection[w].labels[1].onclick(),ye.collection[w].dynamicInterface.focus(),ye.collection[w].dynamicInterface[B]()}),(T.firstChild??T).click()};if(window.browser==="firefox"){const T=ae.listToArray(P.anchorNode.parentElement.childNodes),w=ae.getNodeIndex(P.anchorNode.parentElement,P.anchorNode);P.anchorNode.nodeName.toLowerCase()==="#text"&&((s=T[w-1])==null?void 0:s.nodeName)==="MATH"&&P.anchorOffset===0&&o.code==="ArrowLeft"?C(T[w-1]):P.anchorNode.nodeName.toLowerCase()==="#text"&&((u=T[w+1])==null?void 0:u.nodeName)==="MATH"&&P.anchorOffset===P.anchorNode.textContent.length&&o.code==="ArrowRight"&&C(T[w+1])}if(x.nodeName.toLowerCase()===(window.browser==="firefox"?"img":"math")&&x.getAttribute("math")!==null&&this.activeMathElement===null)o.preventDefault(),n=!0,C(x);else{if(t&&o.code==="ArrowLeft"&&ae.getNodeIndex(this.activeLine,t.anchorNode)!==0&&ae.getNodeIndex(this.activeLine,t.anchorNode)!==((y=(I=(c=t.anchorNode)==null?void 0:c.parentNode)==null?void 0:I.childNodes)==null?void 0:y.length)&&t.anchorOffset",this.activeLine.after(x),ae.selectByIndex(ae.getNodeIndex(this.hook,x),this.hook)}else{const{id:x}=this.activeMathElement;if(ye.close(this.activeMathElement.id),ye.collection[x]!==void 0){const z=document.createElement("div");this.activeLine.after(z),ae.selectByIndex(ae.getNodeIndex(this.hook,z),this.hook);const P=ye.create();z.appendChild(P.container),ye.open(P.id)}}return}if(o.code==="Enter"&&window.browser==="firefox"){const x=document.getSelection(),z=x.anchorOffset;if(x.anchorNode.nodeName.toLowerCase()==="a"&&x.anchorNode.childNodes.length===1&&x.anchorNode.childNodes[0].nodeName.toLowerCase()==="img"){if(o.preventDefault(),z===0){const P=document.createElement("div");P.appendChild(document.createElement("br")),this.activeLine.before(P),ae.selectByIndex(0,P)}else{const P=document.createElement("div");P.appendChild(document.createElement("br")),this.activeLine.after(P),ae.selectByIndex(0,P)}return}}if(o.key==="Enter"&&this.activeMathElement===null&&requestAnimationFrame(()=>{const x=ae.listToArray(this.hook.childNodes)[ae.getNodeIndex(this.hook,this.activeLine)];x.childNodes.length>1&&x.childNodes[0].nodeName.toLowerCase()==="br"&&x.childNodes[0].remove()}),window.browser==="chrome"&&o.key==="Enter"&&this.activeMathElement===null){o.preventDefault();const x=document.createElement("div");x.innerHTML="
",this.activeLine.after(x),ae.selectByIndex(ae.getNodeIndex(this.hook,x),this.hook)}if(o.shiftKey&&o.key==="Enter"&&this.activeMathElement===null){o.preventDefault(),alert("Using shift+enter is for now disabled.");return}if(o.key==="Backspace"&&this.activeMathElement===null&&ae.getCaretPosition().startOffset===0){n=!0;const z=async(w,S)=>{w.disconnect(),clearInterval(S),requestAnimationFrame(()=>{requestAnimationFrame(()=>{for(const b of Object.keys(ye.collection)){const V=document.querySelectorAll(`[dummy-id="${b}"]`)[0];if(!V){console.error("Unable to recover document math element",b);continue}const _=ye.collection[b];V.after(_.container),V.remove()}this.hook.oninput(),n=!1})})};let P;const B=setInterval(()=>{console.warn("Dummy recovery fallback timeout triggered!"),z(P,B)},10);P=new MutationObserver(()=>z(P,B));let T=Object.keys(ye.collection).length;for(;T!==0;){T-=1;const w=Object.keys(ye.collection)[T],S=ye.collection[w].image.cloneNode();S.style.padding="5px",S.style.margin="0px 3px 3px 5px",S.style.display="inline-flex",S.style.border="border: 1px solid #d5e0e5",S.style.verticalAlign="middle",S.setAttribute("dummy-id",w);const b=ye.collection[w];b.container.after(S),ye.domCache.appendChild(b.container)}P.observe(this.hook.childNodes[ae.getNodeIndex(this.hook,this.activeLine)-1]??this.hook.childNodes[0],{subtree:!0,childList:!0,characterData:!0})}}}),ye.init(),ye.events.addEventListener("focus",o=>{this.activeMathElement=o.detail}),ye.events.addEventListener("blur",()=>{if(window.browser==="firefox"&&this.activeMathElement!==null&&this.activeMathElement.isOpen===!1&&this.activeMathElement.image!==null&&this.activeMathElement.image.parentNode!==null&&this.activeMathElement.image.parentNode.parentNode.childNodes[0].nodeName.toLowerCase()==="br"&&this.activeMathElement.image.parentNode.parentNode.childNodes.length===2&&this.activeMathElement.image.parentNode.parentNode.childNodes[0].remove(),this.activeMathElement&&this.local.Math.collection[this.activeMathElement.id]){const o=ae.getParentLine(this.activeMathElement.container);console.debug("Handling blur in",o,"to index",ae.getNodeIndex(o,this.activeMathElement.container)+1,"while range is",o.childNodes.length),this.watchHook&&!this.moveOutOfThisEvent&&(o.childNodes[o.childNodes.length-1]===this.activeMathElement.container?ae.selectEndOf(this.activeMathElement.container):ae.select(o,ae.getNodeIndex(o,this.activeMathElement.container)+1))}this.activeMathElement=null}),ye.events.addEventListener("moveOut",()=>{this.moveOutOfThisEvent=!0}),window.addEventListener("click",()=>{const o=document.getSelection(),s=o.anchorNode.parentElement===this.hook?o.anchorNode:ae.getParentLine(o.anchorNode);if(this.hook.childNodes.length===1&&this.activeLine!==this.hook.childNodes[0]){[this.activeLine]=this.hook.childNodes,ae.selectByIndex(0,this.hook),console.debug("[ EDITOR ] Active line change to",this.activeLine);return}ae.isSomeParent(o.anchorNode,this.hook)&&(s===this.hook||s===this.hook.parentElement||this.activeLine!==s&&(this.activeLine=s,console.debug("[ EDITOR ] Active line change to",this.activeLine)))}),this.hook.addEventListener("paste",async()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{for(const o of this.hook.children)for(let s=0;s{var y,N;if(!this.watchHook)return;this.hook.innerHTML.replace(/
/g,"")===""&&(this.hook.innerHTML="

",ae.selectByIndex(0,this.hook));const u=((N=(y=ae.getSelectedNode())==null?void 0:y.nodeName)==null?void 0:N.toLowerCase())==="div"?ae.getSelectedNode():ae.getParentLine(ae.getSelectedNode());u!==this.activeLine&&u!==this.hook&&(console.debug("[ EDITOR ] Active line change to",this.activeLine),this.activeLine=u);const c=o&&o.addedNodes&&o.addedNodes[0]!==null?ae.getParentLine():null;c&&this.activeLine!==c&&(this.activeLine=c,console.debug("[ EDITOR ] Active line change to",this.activeLine)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(()=>{typeof this.hook.oninput=="function"&&this.hook.oninput()}));const I=[];for(const D of this.hook.childNodes)for(const x of D.childNodes)x.nodeName.toLowerCase()==="attachment"&&x.childNodes[0].nodeName.toLowerCase()==="img"&&I.push(x);if(!ae.areEqual(I,this.resizeObserverNodes)){this.resizeObserver.disconnect();for(const D of I)this.resizeObserver.observe(D);this.resizeObserverNodes=I,console.debug("[ EDITOR ] Resize observer list recreated.")}for(const D of Object.keys(ye.collection)){const x=ye.collection[D];if(!document.body.contains(x.container)){const z=document.querySelectorAll(`[_id="${x.id}"]`)[0];z&&(x.container=z,x.image=x.container.firstChild,console.debug("[ EDITOR ] Rebound",x))}}for(const D of Object.keys(ye.collection)){const x=ye.collection[D];if(!x.isOpen&&x.image.parentNode!==null&&x.image.parentNode.childNodes.length>1){let z=!0;for(const P of x.image.parentElement.childNodes){if(P.nodeName.toLowerCase()==="img"){z=!1;continue}P.nodeName.toLowerCase()==="#text"&&(z?x.image.parentElement.before(P):x.image.parentElement.after(P),ae.selectEndOf(P))}}}if(this.activeLine.childNodes.length!==0&&this.activeLine.childNodes.length>1&&["math","attachment"].includes(this.activeLine.childNodes[this.activeLine.childNodes.length-1].nodeName.toLowerCase())&&this.activeLine.childNodes[this.activeLine.childNodes.length-1].after(document.createElement("br")),window.browser==="firefox"){for(const D of this.hook.childNodes)if(D.childNodes.length===0){const x=document.createElement("br");D.appendChild(x)}}};const a=new MutationObserver(this.observerCallback);this.observerCallback(),a.observe(this.hook,{attributes:!1,childList:!0,subtree:!0})}getContent(){return[``].concat(ae.toEmbedded(this.hook))}}function xg(e,t){const[n,a]=xe.useState(!1),o=xe.useRef();function s(I,y=!1){I.stopPropagation(),a(!n);let N,D,x;y&&(N="unset",D=`${I.pageX}px`,x=`${I.pageY}px`),o.current.style.position=N||null,o.current.querySelector(".dropdown").style.left=D||null,o.current.querySelector(".dropdown").style.top=x||null}xe.useEffect(()=>{function I(y){n&&o.current!==y.target.closest(".dropdownContainer")&&a(!1)}return document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}},[n]);const u=!!e.data.find(I=>I.icon!==void 0),c=Y.jsxs("span",{ref:o,className:"dropdownContainer",children:[Y.jsx("div",{className:`dropdown${e.origin==="left"?" leftOrigin":""}${e.origin==="right"?" rightOrigin":""}${u?" hasIcons":""}`,style:n?{transform:"scale(1)",opacity:"1"}:{transform:"scale(0)",opacity:"0"},children:Y.jsx("ul",{children:e.data.map(I=>Y.jsxs("li",{onClick:y=>{y.stopPropagation(),!I.disabled&&(a(!1),I.action(e.context))},className:I.disabled?"disabled":"",children:[u?Y.jsx("span",{className:"dropdownIcon",children:I.icon||""}):null,I.text]},I.text))})}),Y.jsx("span",{onClick:s,children:e.children})]});return t?[c,s]:c}var sa={},fu={};fu.byteLength=qL;fu.toByteArray=tD;fu.fromByteArray=iD;var Ln=[],un=[],KL=typeof Uint8Array<"u"?Uint8Array:Array,of="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Pi=0,$L=of.length;Pi<$L;++Pi)Ln[Pi]=of[Pi],un[of.charCodeAt(Pi)]=Pi;un["-".charCodeAt(0)]=62;un["_".charCodeAt(0)]=63;function D1(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var a=n===t?0:4-n%4;return[n,a]}function qL(e){var t=D1(e),n=t[0],a=t[1];return(n+a)*3/4-a}function eD(e,t,n){return(t+n)*3/4-n}function tD(e){var t,n=D1(e),a=n[0],o=n[1],s=new KL(eD(e,a,o)),u=0,c=o>0?a-4:a,I;for(I=0;I>16&255,s[u++]=t>>8&255,s[u++]=t&255;return o===2&&(t=un[e.charCodeAt(I)]<<2|un[e.charCodeAt(I+1)]>>4,s[u++]=t&255),o===1&&(t=un[e.charCodeAt(I)]<<10|un[e.charCodeAt(I+1)]<<4|un[e.charCodeAt(I+2)]>>2,s[u++]=t>>8&255,s[u++]=t&255),s}function nD(e){return Ln[e>>18&63]+Ln[e>>12&63]+Ln[e>>6&63]+Ln[e&63]}function rD(e,t,n){for(var a,o=[],s=t;sc?c:u+s));return a===1?(t=e[n-1],o.push(Ln[t>>2]+Ln[t<<4&63]+"==")):a===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Ln[t>>10]+Ln[t>>4&63]+Ln[t<<2&63]+"=")),o.join("")}var Ag={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Ag.read=function(e,t,n,a,o){var s,u,c=o*8-a-1,I=(1<>1,N=-7,D=n?o-1:0,x=n?-1:1,z=e[t+D];for(D+=x,s=z&(1<<-N)-1,z>>=-N,N+=c;N>0;s=s*256+e[t+D],D+=x,N-=8);for(u=s&(1<<-N)-1,s>>=-N,N+=a;N>0;u=u*256+e[t+D],D+=x,N-=8);if(s===0)s=1-y;else{if(s===I)return u?NaN:(z?-1:1)*(1/0);u=u+Math.pow(2,a),s=s-y}return(z?-1:1)*u*Math.pow(2,s-a)};Ag.write=function(e,t,n,a,o,s){var u,c,I,y=s*8-o-1,N=(1<>1,x=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=a?0:s-1,P=a?1:-1,B=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=N):(u=Math.floor(Math.log(t)/Math.LN2),t*(I=Math.pow(2,-u))<1&&(u--,I*=2),u+D>=1?t+=x/I:t+=x*Math.pow(2,1-D),t*I>=2&&(u++,I/=2),u+D>=N?(c=0,u=N):u+D>=1?(c=(t*I-1)*Math.pow(2,o),u=u+D):(c=t*Math.pow(2,D-1)*Math.pow(2,o),u=0));o>=8;e[n+z]=c&255,z+=P,c/=256,o-=8);for(u=u<0;e[n+z]=u&255,z+=P,u/=256,y-=8);e[n+z-P]|=B*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(e){const t=fu,n=Ag,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,c.TYPED_ARRAY_SUPPORT=s(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function s(){try{const h=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(h,d),h.foo()===42}catch{return!1}}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}});function u(h){if(h>o)throw new RangeError('The value "'+h+'" is invalid for option "size"');const d=new Uint8Array(h);return Object.setPrototypeOf(d,c.prototype),d}function c(h,d,g){if(typeof h=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return D(h)}return I(h,d,g)}c.poolSize=8192;function I(h,d,g){if(typeof h=="string")return x(h,d);if(ArrayBuffer.isView(h))return P(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(pt(h,ArrayBuffer)||h&&pt(h.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pt(h,SharedArrayBuffer)||h&&pt(h.buffer,SharedArrayBuffer)))return B(h,d,g);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const v=h.valueOf&&h.valueOf();if(v!=null&&v!==h)return c.from(v,d,g);const L=C(h);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return c.from(h[Symbol.toPrimitive]("string"),d,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}c.from=function(h,d,g){return I(h,d,g)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function y(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function N(h,d,g){return y(h),h<=0?u(h):d!==void 0?typeof g=="string"?u(h).fill(d,g):u(h).fill(d):u(h)}c.alloc=function(h,d,g){return N(h,d,g)};function D(h){return y(h),u(h<0?0:T(h)|0)}c.allocUnsafe=function(h){return D(h)},c.allocUnsafeSlow=function(h){return D(h)};function x(h,d){if((typeof d!="string"||d==="")&&(d="utf8"),!c.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const g=S(h,d)|0;let v=u(g);const L=v.write(h,d);return L!==g&&(v=v.slice(0,L)),v}function z(h){const d=h.length<0?0:T(h.length)|0,g=u(d);for(let v=0;v=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return h|0}function w(h){return+h!=h&&(h=0),c.alloc(+h)}c.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==c.prototype},c.compare=function(d,g){if(pt(d,Uint8Array)&&(d=c.from(d,d.offset,d.byteLength)),pt(g,Uint8Array)&&(g=c.from(g,g.offset,g.byteLength)),!c.isBuffer(d)||!c.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===g)return 0;let v=d.length,L=g.length;for(let R=0,Z=Math.min(v,L);RL.length?(c.isBuffer(Z)||(Z=c.from(Z)),Z.copy(L,R)):Uint8Array.prototype.set.call(L,Z,R);else if(c.isBuffer(Z))Z.copy(L,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=Z.length}return L};function S(h,d){if(c.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||pt(h,ArrayBuffer))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const g=h.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&g===0)return 0;let L=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Yt(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return lr(h).length;default:if(L)return v?-1:Yt(h).length;d=(""+d).toLowerCase(),L=!0}}c.byteLength=S;function b(h,d,g){let v=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,d>>>=0,g<=d))return"";for(h||(h="utf8");;)switch(h){case"hex":return Br(this,d,g);case"utf8":case"utf-8":return Cn(this,d,g);case"ascii":return Ft(this,d,g);case"latin1":case"binary":return kt(this,d,g);case"base64":return $e(this,d,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return or(this,d,g);default:if(v)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),v=!0}}c.prototype._isBuffer=!0;function V(h,d,g){const v=h[d];h[d]=h[g],h[g]=v}c.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(d+=" ... "),""},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(d,g,v,L,R){if(pt(d,Uint8Array)&&(d=c.from(d,d.offset,d.byteLength)),!c.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(g===void 0&&(g=0),v===void 0&&(v=d?d.length:0),L===void 0&&(L=0),R===void 0&&(R=this.length),g<0||v>d.length||L<0||R>this.length)throw new RangeError("out of range index");if(L>=R&&g>=v)return 0;if(L>=R)return-1;if(g>=v)return 1;if(g>>>=0,v>>>=0,L>>>=0,R>>>=0,this===d)return 0;let Z=R-L,ge=v-g;const je=Math.min(Z,ge),Se=this.slice(L,R),be=d.slice(g,v);for(let Ne=0;Ne2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,sr(g)&&(g=L?0:h.length-1),g<0&&(g=h.length+g),g>=h.length){if(L)return-1;g=h.length-1}else if(g<0)if(L)g=0;else return-1;if(typeof d=="string"&&(d=c.from(d,v)),c.isBuffer(d))return d.length===0?-1:X(h,d,g,v,L);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(h,d,g):Uint8Array.prototype.lastIndexOf.call(h,d,g):X(h,[d],g,v,L);throw new TypeError("val must be string, number or Buffer")}function X(h,d,g,v,L){let R=1,Z=h.length,ge=d.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(h.length<2||d.length<2)return-1;R=2,Z/=2,ge/=2,g/=2}function je(be,Ne){return R===1?be[Ne]:be.readUInt16BE(Ne*R)}let Se;if(L){let be=-1;for(Se=g;SeZ&&(g=Z-ge),Se=g;Se>=0;Se--){let be=!0;for(let Ne=0;NeL&&(v=L)):v=L;const R=d.length;v>R/2&&(v=R/2);let Z;for(Z=0;Z>>0,isFinite(v)?(v=v>>>0,L===void 0&&(L="utf8")):(L=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const R=this.length-g;if((v===void 0||v>R)&&(v=R),d.length>0&&(v<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let Z=!1;for(;;)switch(L){case"hex":return te(this,d,g,v);case"utf8":case"utf-8":return K(this,d,g,v);case"ascii":case"latin1":case"binary":return _e(this,d,g,v);case"base64":return _r(this,d,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,d,g,v);default:if(Z)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),Z=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $e(h,d,g){return d===0&&g===h.length?t.fromByteArray(h):t.fromByteArray(h.slice(d,g))}function Cn(h,d,g){g=Math.min(h.length,g);const v=[];let L=d;for(;L239?4:R>223?3:R>191?2:1;if(L+ge<=g){let je,Se,be,Ne;switch(ge){case 1:R<128&&(Z=R);break;case 2:je=h[L+1],(je&192)===128&&(Ne=(R&31)<<6|je&63,Ne>127&&(Z=Ne));break;case 3:je=h[L+1],Se=h[L+2],(je&192)===128&&(Se&192)===128&&(Ne=(R&15)<<12|(je&63)<<6|Se&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Z=Ne));break;case 4:je=h[L+1],Se=h[L+2],be=h[L+3],(je&192)===128&&(Se&192)===128&&(be&192)===128&&(Ne=(R&15)<<18|(je&63)<<12|(Se&63)<<6|be&63,Ne>65535&&Ne<1114112&&(Z=Ne))}}Z===null?(Z=65533,ge=1):Z>65535&&(Z-=65536,v.push(Z>>>10&1023|55296),Z=56320|Z&1023),v.push(Z),L+=ge}return Pn(v)}const $t=4096;function Pn(h){const d=h.length;if(d<=$t)return String.fromCharCode.apply(String,h);let g="",v=0;for(;vv)&&(g=v);let L="";for(let R=d;Rv&&(d=v),g<0?(g+=v,g<0&&(g=0)):g>v&&(g=v),gg)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(d,g,v){d=d>>>0,g=g>>>0,v||H(d,g,this.length);let L=this[d],R=1,Z=0;for(;++Z>>0,g=g>>>0,v||H(d,g,this.length);let L=this[d+--g],R=1;for(;g>0&&(R*=256);)L+=this[d+--g]*R;return L},c.prototype.readUint8=c.prototype.readUInt8=function(d,g){return d=d>>>0,g||H(d,1,this.length),this[d]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(d,g){return d=d>>>0,g||H(d,2,this.length),this[d]|this[d+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(d,g){return d=d>>>0,g||H(d,2,this.length),this[d]<<8|this[d+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(d,g){return d=d>>>0,g||H(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(d,g){return d=d>>>0,g||H(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},c.prototype.readBigUInt64LE=jt(function(d){d=d>>>0,On(d,"offset");const g=this[d],v=this[d+7];(g===void 0||v===void 0)&&st(d,this.length-8);const L=g+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,R=this[++d]+this[++d]*2**8+this[++d]*2**16+v*2**24;return BigInt(L)+(BigInt(R)<>>0,On(d,"offset");const g=this[d],v=this[d+7];(g===void 0||v===void 0)&&st(d,this.length-8);const L=g*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],R=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+v;return(BigInt(L)<>>0,g=g>>>0,v||H(d,g,this.length);let L=this[d],R=1,Z=0;for(;++Z=R&&(L-=Math.pow(2,8*g)),L},c.prototype.readIntBE=function(d,g,v){d=d>>>0,g=g>>>0,v||H(d,g,this.length);let L=g,R=1,Z=this[d+--L];for(;L>0&&(R*=256);)Z+=this[d+--L]*R;return R*=128,Z>=R&&(Z-=Math.pow(2,8*g)),Z},c.prototype.readInt8=function(d,g){return d=d>>>0,g||H(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},c.prototype.readInt16LE=function(d,g){d=d>>>0,g||H(d,2,this.length);const v=this[d]|this[d+1]<<8;return v&32768?v|4294901760:v},c.prototype.readInt16BE=function(d,g){d=d>>>0,g||H(d,2,this.length);const v=this[d+1]|this[d]<<8;return v&32768?v|4294901760:v},c.prototype.readInt32LE=function(d,g){return d=d>>>0,g||H(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},c.prototype.readInt32BE=function(d,g){return d=d>>>0,g||H(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},c.prototype.readBigInt64LE=jt(function(d){d=d>>>0,On(d,"offset");const g=this[d],v=this[d+7];(g===void 0||v===void 0)&&st(d,this.length-8);const L=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(v<<24);return(BigInt(L)<>>0,On(d,"offset");const g=this[d],v=this[d+7];(g===void 0||v===void 0)&&st(d,this.length-8);const L=(g<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(L)<>>0,g||H(d,4,this.length),n.read(this,d,!0,23,4)},c.prototype.readFloatBE=function(d,g){return d=d>>>0,g||H(d,4,this.length),n.read(this,d,!1,23,4)},c.prototype.readDoubleLE=function(d,g){return d=d>>>0,g||H(d,8,this.length),n.read(this,d,!0,52,8)},c.prototype.readDoubleBE=function(d,g){return d=d>>>0,g||H(d,8,this.length),n.read(this,d,!1,52,8)};function ne(h,d,g,v,L,R){if(!c.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>L||dh.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(d,g,v,L){if(d=+d,g=g>>>0,v=v>>>0,!L){const ge=Math.pow(2,8*v)-1;ne(this,d,g,v,ge,0)}let R=1,Z=0;for(this[g]=d&255;++Z>>0,v=v>>>0,!L){const ge=Math.pow(2,8*v)-1;ne(this,d,g,v,ge,0)}let R=v-1,Z=1;for(this[g+R]=d&255;--R>=0&&(Z*=256);)this[g+R]=d/Z&255;return g+v},c.prototype.writeUint8=c.prototype.writeUInt8=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,1,255,0),this[g]=d&255,g+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,2,65535,0),this[g]=d&255,this[g+1]=d>>>8,g+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,2,65535,0),this[g]=d>>>8,this[g+1]=d&255,g+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,4,4294967295,0),this[g+3]=d>>>24,this[g+2]=d>>>16,this[g+1]=d>>>8,this[g]=d&255,g+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,4,4294967295,0),this[g]=d>>>24,this[g+1]=d>>>16,this[g+2]=d>>>8,this[g+3]=d&255,g+4};function de(h,d,g,v,L){Wr(d,v,L,h,g,7);let R=Number(d&BigInt(4294967295));h[g++]=R,R=R>>8,h[g++]=R,R=R>>8,h[g++]=R,R=R>>8,h[g++]=R;let Z=Number(d>>BigInt(32)&BigInt(4294967295));return h[g++]=Z,Z=Z>>8,h[g++]=Z,Z=Z>>8,h[g++]=Z,Z=Z>>8,h[g++]=Z,g}function ke(h,d,g,v,L){Wr(d,v,L,h,g,7);let R=Number(d&BigInt(4294967295));h[g+7]=R,R=R>>8,h[g+6]=R,R=R>>8,h[g+5]=R,R=R>>8,h[g+4]=R;let Z=Number(d>>BigInt(32)&BigInt(4294967295));return h[g+3]=Z,Z=Z>>8,h[g+2]=Z,Z=Z>>8,h[g+1]=Z,Z=Z>>8,h[g]=Z,g+8}c.prototype.writeBigUInt64LE=jt(function(d,g=0){return de(this,d,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=jt(function(d,g=0){return ke(this,d,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(d,g,v,L){if(d=+d,g=g>>>0,!L){const je=Math.pow(2,8*v-1);ne(this,d,g,v,je-1,-je)}let R=0,Z=1,ge=0;for(this[g]=d&255;++R>0)-ge&255;return g+v},c.prototype.writeIntBE=function(d,g,v,L){if(d=+d,g=g>>>0,!L){const je=Math.pow(2,8*v-1);ne(this,d,g,v,je-1,-je)}let R=v-1,Z=1,ge=0;for(this[g+R]=d&255;--R>=0&&(Z*=256);)d<0&&ge===0&&this[g+R+1]!==0&&(ge=1),this[g+R]=(d/Z>>0)-ge&255;return g+v},c.prototype.writeInt8=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,1,127,-128),d<0&&(d=255+d+1),this[g]=d&255,g+1},c.prototype.writeInt16LE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,2,32767,-32768),this[g]=d&255,this[g+1]=d>>>8,g+2},c.prototype.writeInt16BE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,2,32767,-32768),this[g]=d>>>8,this[g+1]=d&255,g+2},c.prototype.writeInt32LE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,4,2147483647,-2147483648),this[g]=d&255,this[g+1]=d>>>8,this[g+2]=d>>>16,this[g+3]=d>>>24,g+4},c.prototype.writeInt32BE=function(d,g,v){return d=+d,g=g>>>0,v||ne(this,d,g,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[g]=d>>>24,this[g+1]=d>>>16,this[g+2]=d>>>8,this[g+3]=d&255,g+4},c.prototype.writeBigInt64LE=jt(function(d,g=0){return de(this,d,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=jt(function(d,g=0){return ke(this,d,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Le(h,d,g,v,L,R){if(g+v>h.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ct(h,d,g,v,L){return d=+d,g=g>>>0,L||Le(h,d,g,4),n.write(h,d,g,v,23,4),g+4}c.prototype.writeFloatLE=function(d,g,v){return Ct(this,d,g,!0,v)},c.prototype.writeFloatBE=function(d,g,v){return Ct(this,d,g,!1,v)};function qt(h,d,g,v,L){return d=+d,g=g>>>0,L||Le(h,d,g,8),n.write(h,d,g,v,52,8),g+8}c.prototype.writeDoubleLE=function(d,g,v){return qt(this,d,g,!0,v)},c.prototype.writeDoubleBE=function(d,g,v){return qt(this,d,g,!1,v)},c.prototype.copy=function(d,g,v,L){if(!c.isBuffer(d))throw new TypeError("argument should be a Buffer");if(v||(v=0),!L&&L!==0&&(L=this.length),g>=d.length&&(g=d.length),g||(g=0),L>0&&L=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),d.length-g>>0,v=v===void 0?this.length:v>>>0,d||(d=0);let R;if(typeof d=="number")for(R=g;R2**32?L=Vo(String(g)):typeof g=="bigint"&&(L=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(L=Vo(L)),L+="n"),v+=` It must be ${d}. Received ${L}`,v},RangeError);function Vo(h){let d="",g=h.length;const v=h[0]==="-"?1:0;for(;g>=v+4;g-=3)d=`_${h.slice(g-3,g)}${d}`;return`${h.slice(0,g)}${d}`}function vi(h,d,g){On(d,"offset"),(h[d]===void 0||h[d+g]===void 0)&&st(d,h.length-(g+1))}function Wr(h,d,g,v,L,R){if(h>g||h3?d===0||d===BigInt(0)?ge=`>= 0${Z} and < 2${Z} ** ${(R+1)*8}${Z}`:ge=`>= -(2${Z} ** ${(R+1)*8-1}${Z}) and < 2 ** ${(R+1)*8-1}${Z}`:ge=`>= ${d}${Z} and <= ${g}${Z}`,new rt.ERR_OUT_OF_RANGE("value",ge,h)}vi(v,L,R)}function On(h,d){if(typeof h!="number")throw new rt.ERR_INVALID_ARG_TYPE(d,"number",h)}function st(h,d,g){throw Math.floor(h)!==h?(On(h,g),new rt.ERR_OUT_OF_RANGE(g||"offset","an integer",h)):d<0?new rt.ERR_BUFFER_OUT_OF_BOUNDS:new rt.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${d}`,h)}const Hr=/[^+/0-9A-Za-z-_]/g;function gu(h){if(h=h.split("=")[0],h=h.trim().replace(Hr,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function Yt(h,d){d=d||1/0;let g;const v=h.length;let L=null;const R=[];for(let Z=0;Z55295&&g<57344){if(!L){if(g>56319){(d-=3)>-1&&R.push(239,191,189);continue}else if(Z+1===v){(d-=3)>-1&&R.push(239,191,189);continue}L=g;continue}if(g<56320){(d-=3)>-1&&R.push(239,191,189),L=g;continue}g=(L-55296<<10|g-56320)+65536}else L&&(d-=3)>-1&&R.push(239,191,189);if(L=null,g<128){if((d-=1)<0)break;R.push(g)}else if(g<2048){if((d-=2)<0)break;R.push(g>>6|192,g&63|128)}else if(g<65536){if((d-=3)<0)break;R.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((d-=4)<0)break;R.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return R}function Jo(h){const d=[];for(let g=0;g>8,L=g%256,R.push(L),R.push(v);return R}function lr(h){return t.toByteArray(gu(h))}function ht(h,d,g,v){let L;for(L=0;L=d.length||L>=h.length);++L)d[L+g]=h[L];return L}function pt(h,d){return h instanceof d||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===d.name}function sr(h){return h!==h}const mu=function(){const h="0123456789abcdef",d=new Array(256);for(let g=0;g<16;++g){const v=g*16;for(let L=0;L<16;++L)d[v+L]=h[g]+h[L]}return d}();function jt(h){return typeof BigInt>"u"?hu:h}function hu(){throw new Error("BigInt not supported")}})(sa);async function sd(e,t){try{const n=document.createElement("a");typeof n.download=="string"?(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)):window.open(e)}catch(n){console.error("[ EXPORT ] Failed to save",n)}}const Qa=async e=>{switch(e){case"image-clipboard":{(await html2canvas(document.getElementById("editor-element"),{useCORS:!0})).toBlob(async n=>{const a=new ClipboardItem({"image/png":n});navigator.clipboard.write([a])});break}case"image":{const t=await html2canvas(document.getElementById("editor-element"),{useCORS:!0});sd(t.toDataURL(),"vastaus.png");break}case"txt-clipboard":{const t=await window.internal.ui.editor.getContent();t.shift();let n="";t.forEach(a=>{const o=a.replace(/<[^>]*>/g,"");n=`${n} +${sa.Buffer.from(o,"base64")}`}),n=n.slice(1),console.debug(`[ EXPORT ] Data to be copied to clipboard: +`,n),navigator.clipboard.writeText(n);break}case"txt-file":{const t=await window.internal.ui.editor.getContent();t.shift();let n="";t.forEach(a=>{const o=a.replace(/<[^>]*>/g,"");n=`${n} +${sa.Buffer.from(o,"base64")}`}),n=n.slice(1),console.debug(`[ EXPORT ] Data to be saved to text file: +`,n),sd(`data:text/plain;charset=utf-8,${encodeURIComponent(n)}`,"vastaus.txt");break}case"pdf":{html2pdf(document.getElementById("editor-element"),{margin:10,filename:"vastaus.pdf",html2canvas:{useCORS:!0}});break}default:console.error("[ EXPORT ] Unknown export format.")}};var Hs={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Hs.exports;(function(e,t){(function(){var n,a="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",y=500,N="__lodash_placeholder__",D=1,x=2,z=4,P=1,B=2,C=1,T=2,w=4,S=8,b=16,V=32,_=64,X=128,te=256,K=512,_e=30,_r="...",It=800,$e=16,Cn=1,$t=2,Pn=3,Ft=1/0,kt=9007199254740991,Br=17976931348623157e292,or=0/0,H=4294967295,ne=H-1,de=H>>>1,ke=[["ary",X],["bind",C],["bindKey",T],["curry",S],["curryRight",b],["flip",K],["partial",V],["partialRight",_],["rearg",te]],Le="[object Arguments]",Ct="[object Array]",qt="[object AsyncFunction]",rt="[object Boolean]",mt="[object Date]",Vo="[object DOMException]",vi="[object Error]",Wr="[object Function]",On="[object GeneratorFunction]",st="[object Map]",Hr="[object Number]",gu="[object Null]",Yt="[object Object]",Jo="[object Promise]",Iu="[object Proxy]",lr="[object RegExp]",ht="[object Set]",pt="[object String]",sr="[object Symbol]",mu="[object Undefined]",jt="[object WeakMap]",hu="[object WeakSet]",h="[object ArrayBuffer]",d="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",L="[object Int8Array]",R="[object Int16Array]",Z="[object Int32Array]",ge="[object Uint8Array]",je="[object Uint8ClampedArray]",Se="[object Uint16Array]",be="[object Uint32Array]",Ne=/\b__p \+= '';/g,B1=/\b(__p \+=) '' \+/g,W1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ng=/&(?:amp|lt|gt|quot|#39);/g,Eg=/[&<>"']/g,H1=RegExp(Ng.source),V1=RegExp(Eg.source),J1=/<%-([\s\S]+?)%>/g,X1=/<%([\s\S]+?)%>/g,Sg=/<%=([\s\S]+?)%>/g,Q1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K1=/^\w*$/,$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pu=/[\\^$.*+?()[\]{}|]/g,q1=RegExp(pu.source),yu=/^\s+/,eM=/\s/,tM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nM=/\{\n\/\* \[wrapped with (.+)\] \*/,rM=/,? & /,iM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aM=/[()=,{}\[\]\/\s]/,oM=/\\(\\)?/g,lM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lg=/\w*$/,sM=/^[-+]0x[0-9a-f]+$/i,uM=/^0b[01]+$/i,cM=/^\[object .+?Constructor\]$/,fM=/^0o[0-7]+$/i,dM=/^(?:0|[1-9]\d*)$/,gM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xo=/($^)/,IM=/['\n\r\u2028\u2029\\]/g,Qo="\\ud800-\\udfff",mM="\\u0300-\\u036f",hM="\\ufe20-\\ufe2f",pM="\\u20d0-\\u20ff",Dg=mM+hM+pM,kg="\\u2700-\\u27bf",jg="a-z\\xdf-\\xf6\\xf8-\\xff",yM="\\xac\\xb1\\xd7\\xf7",MM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TM="\\u2000-\\u206f",vM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bg="A-Z\\xc0-\\xd6\\xd8-\\xde",zg="\\ufe0e\\ufe0f",Rg=yM+MM+TM+vM,Mu="['’]",wM="["+Qo+"]",Ug="["+Rg+"]",Ko="["+Dg+"]",Pg="\\d+",xM="["+kg+"]",Og="["+jg+"]",Zg="[^"+Qo+Rg+Pg+kg+jg+bg+"]",Tu="\\ud83c[\\udffb-\\udfff]",AM="(?:"+Ko+"|"+Tu+")",Gg="[^"+Qo+"]",vu="(?:\\ud83c[\\udde6-\\uddff]){2}",wu="[\\ud800-\\udbff][\\udc00-\\udfff]",wi="["+bg+"]",Fg="\\u200d",Yg="(?:"+Og+"|"+Zg+")",CM="(?:"+wi+"|"+Zg+")",_g="(?:"+Mu+"(?:d|ll|m|re|s|t|ve))?",Bg="(?:"+Mu+"(?:D|LL|M|RE|S|T|VE))?",Wg=AM+"?",Hg="["+zg+"]?",NM="(?:"+Fg+"(?:"+[Gg,vu,wu].join("|")+")"+Hg+Wg+")*",EM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",SM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vg=Hg+Wg+NM,LM="(?:"+[xM,vu,wu].join("|")+")"+Vg,DM="(?:"+[Gg+Ko+"?",Ko,vu,wu,wM].join("|")+")",kM=RegExp(Mu,"g"),jM=RegExp(Ko,"g"),xu=RegExp(Tu+"(?="+Tu+")|"+DM+Vg,"g"),bM=RegExp([wi+"?"+Og+"+"+_g+"(?="+[Ug,wi,"$"].join("|")+")",CM+"+"+Bg+"(?="+[Ug,wi+Yg,"$"].join("|")+")",wi+"?"+Yg+"+"+_g,wi+"+"+Bg,SM,EM,Pg,LM].join("|"),"g"),zM=RegExp("["+Fg+Qo+Dg+zg+"]"),RM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError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===Au,Cu=Xg&&Jg.process,en=function(){try{var k=Vr&&Vr.require&&Vr.require("util").types;return k||Cu&&Cu.binding&&Cu.binding("util")}catch{}}(),Qg=en&&en.isArrayBuffer,Kg=en&&en.isDate,$g=en&&en.isMap,qg=en&&en.isRegExp,e0=en&&en.isSet,t0=en&&en.isTypedArray;function _t(k,O,U){switch(U.length){case 0:return k.call(O);case 1:return k.call(O,U[0]);case 2:return k.call(O,U[0],U[1]);case 3:return k.call(O,U[0],U[1],U[2])}return k.apply(O,U)}function WM(k,O,U,$){for(var ce=-1,Ae=k==null?0:k.length;++ce-1}function Nu(k,O,U){for(var $=-1,ce=k==null?0:k.length;++$-1;);return U}function u0(k,O){for(var U=k.length;U--&&xi(O,k[U],0)>-1;);return U}function eT(k,O){for(var U=k.length,$=0;U--;)k[U]===O&&++$;return $}var tT=Du(OM),nT=Du(ZM);function rT(k){return"\\"+FM[k]}function iT(k,O){return k==null?n:k[O]}function Ai(k){return zM.test(k)}function aT(k){return RM.test(k)}function oT(k){for(var O,U=[];!(O=k.next()).done;)U.push(O.value);return U}function zu(k){var O=-1,U=Array(k.size);return k.forEach(function($,ce){U[++O]=[ce,$]}),U}function c0(k,O){return function(U){return k(O(U))}}function fr(k,O){for(var U=-1,$=k.length,ce=0,Ae=[];++U<$;){var qe=k[U];(qe===O||qe===N)&&(k[U]=N,Ae[ce++]=U)}return Ae}function el(k){var O=-1,U=Array(k.size);return k.forEach(function($){U[++O]=$}),U}function lT(k){var O=-1,U=Array(k.size);return k.forEach(function($){U[++O]=[$,$]}),U}function sT(k,O,U){for(var $=U-1,ce=k.length;++$-1}function VT(r,i){var l=this.__data__,f=ml(l,r);return f<0?(++this.size,l.push([r,i])):l[f][1]=i,this}Zn.prototype.clear=_T,Zn.prototype.delete=BT,Zn.prototype.get=WT,Zn.prototype.has=HT,Zn.prototype.set=VT;function Gn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i=i?r:i)),r}function an(r,i,l,f,m,M){var A,E=i&D,j=i&x,G=i&z;if(l&&(A=m?l(r,f,m,M):l(r)),A!==n)return A;if(!Be(r))return r;var F=fe(r);if(F){if(A=Kv(r),!E)return bt(r,A)}else{var W=Mt(r),Q=W==Wr||W==On;if(pr(r))return H0(r,E);if(W==Yt||W==Le||Q&&!m){if(A=j||Q?{}:fI(r),!E)return j?Gv(r,uv(A,r)):Zv(r,w0(A,r))}else{if(!ze[W])return m?r:{};A=$v(r,W,E)}}M||(M=new yn);var re=M.get(r);if(re)return re;M.set(r,A),GI(r)?r.forEach(function(se){A.add(an(se,i,l,se,r,M))}):OI(r)&&r.forEach(function(se,Me){A.set(Me,an(se,i,l,Me,r,M))});var le=G?j?oc:ac:j?Rt:it,he=F?n:le(r);return tn(he||r,function(se,Me){he&&(Me=se,se=r[Me]),Sa(A,Me,an(se,i,l,Me,r,M))}),A}function cv(r){var i=it(r);return function(l){return x0(l,r,i)}}function x0(r,i,l){var f=l.length;if(r==null)return!f;for(r=De(r);f--;){var m=l[f],M=i[m],A=r[m];if(A===n&&!(m in r)||!M(A))return!1}return!0}function A0(r,i,l){if(typeof r!="function")throw new nn(u);return Ra(function(){r.apply(n,l)},i)}function La(r,i,l,f){var m=-1,M=$o,A=!0,E=r.length,j=[],G=i.length;if(!E)return j;l&&(i=Fe(i,Bt(l))),f?(M=Nu,A=!1):i.length>=o&&(M=wa,A=!1,i=new Qr(i));e:for(;++mm?0:m+l),f=f===n||f>m?m:me(f),f<0&&(f+=m),f=l>f?0:YI(f);l0&&l(E)?i>1?ct(E,i-1,l,f,m):cr(m,E):f||(m[m.length]=E)}return m}var Fu=$0(),E0=$0(!0);function Nn(r,i){return r&&Fu(r,i,it)}function Yu(r,i){return r&&E0(r,i,it)}function pl(r,i){return ur(i,function(l){return Wn(r[l])})}function $r(r,i){i=mr(i,r);for(var l=0,f=i.length;r!=null&&li}function gv(r,i){return r!=null&&Ee.call(r,i)}function Iv(r,i){return r!=null&&i in De(r)}function mv(r,i,l){return r>=yt(i,l)&&r=120&&F.length>=120)?new Qr(A&&F):n}F=r[0];var W=-1,Q=E[0];e:for(;++W-1;)E!==r&&sl.call(E,j,1),sl.call(r,j,1);return r}function O0(r,i){for(var l=r?i.length:0,f=l-1;l--;){var m=i[l];if(l==f||m!==M){var M=m;Bn(m)?sl.call(r,m,1):$u(r,m)}}return r}function Xu(r,i){return r+fl(y0()*(i-r+1))}function Sv(r,i,l,f){for(var m=-1,M=et(cl((i-r)/(l||1)),0),A=U(M);M--;)A[f?M:++m]=r,r+=l;return A}function Qu(r,i){var l="";if(!r||i<1||i>kt)return l;do i%2&&(l+=r),i=fl(i/2),i&&(r+=r);while(i);return l}function pe(r,i){return gc(II(r,i,Ut),r+"")}function Lv(r){return v0(Ri(r))}function Dv(r,i){var l=Ri(r);return Sl(l,Kr(i,0,l.length))}function ja(r,i,l,f){if(!Be(r))return r;i=mr(i,r);for(var m=-1,M=i.length,A=M-1,E=r;E!=null&&++mm?0:m+i),l=l>m?m:l,l<0&&(l+=m),m=i>l?0:l-i>>>0,i>>>=0;for(var M=U(m);++f>>1,A=r[M];A!==null&&!Ht(A)&&(l?A<=i:A=o){var G=i?null:Bv(r);if(G)return el(G);A=!1,m=wa,j=new Qr}else j=i?[]:E;e:for(;++f=f?r:on(r,i,l)}var W0=vT||function(r){return ut.clearTimeout(r)};function H0(r,i){if(i)return r.slice();var l=r.length,f=g0?g0(l):new r.constructor(l);return r.copy(f),f}function nc(r){var i=new r.constructor(r.byteLength);return new ol(i).set(new ol(r)),i}function Rv(r,i){var l=i?nc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function Uv(r){var i=new r.constructor(r.source,Lg.exec(r));return i.lastIndex=r.lastIndex,i}function Pv(r){return Ea?De(Ea.call(r)):{}}function V0(r,i){var l=i?nc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function J0(r,i){if(r!==i){var l=r!==n,f=r===null,m=r===r,M=Ht(r),A=i!==n,E=i===null,j=i===i,G=Ht(i);if(!E&&!G&&!M&&r>i||M&&A&&j&&!E&&!G||f&&A&&j||!l&&j||!m)return 1;if(!f&&!M&&!G&&r=E)return j;var G=l[f];return j*(G=="desc"?-1:1)}}return r.index-i.index}function X0(r,i,l,f){for(var m=-1,M=r.length,A=l.length,E=-1,j=i.length,G=et(M-A,0),F=U(j+G),W=!f;++E1?l[m-1]:n,A=m>2?l[2]:n;for(M=r.length>3&&typeof M=="function"?(m--,M):n,A&&Et(l[0],l[1],A)&&(M=m<3?n:M,m=1),i=De(i);++f-1?m[M?i[A]:A]:n}}function tI(r){return _n(function(i){var l=i.length,f=l,m=rn.prototype.thru;for(r&&i.reverse();f--;){var M=i[f];if(typeof M!="function")throw new nn(u);if(m&&!A&&Nl(M)=="wrapper")var A=new rn([],!0)}for(f=A?f:l;++f1&&ve.reverse(),F&&jE))return!1;var G=M.get(r),F=M.get(i);if(G&&F)return G==i&&F==r;var W=-1,Q=!0,re=l&B?new Qr:n;for(M.set(r,i),M.set(i,r);++W1?"& ":"")+i[f],i=i.join(l>2?", ":" "),r.replace(tM,`{ +/* [wrapped with `+i+`] */ +`)}function ew(r){return fe(r)||ti(r)||!!(h0&&r&&r[h0])}function Bn(r,i){var l=typeof r;return i=i??kt,!!i&&(l=="number"||l!="symbol"&&dM.test(r))&&r>-1&&r%1==0&&r0){if(++i>=It)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Sl(r,i){var l=-1,f=r.length,m=f-1;for(i=i===n?f:i;++l1?r[i-1]:n;return l=typeof l=="function"?(r.pop(),l):n,NI(r,l)});function EI(r){var i=p(r);return i.__chain__=!0,i}function fx(r,i){return i(r),r}function Ll(r,i){return i(r)}var dx=_n(function(r){var i=r.length,l=i?r[0]:0,f=this.__wrapped__,m=function(M){return Gu(M,r)};return i>1||this.__actions__.length||!(f instanceof Te)||!Bn(l)?this.thru(m):(f=f.slice(l,+l+(i?1:0)),f.__actions__.push({func:Ll,args:[m],thisArg:n}),new rn(f,this.__chain__).thru(function(M){return i&&!M.length&&M.push(n),M}))});function gx(){return EI(this)}function Ix(){return new rn(this.value(),this.__chain__)}function mx(){this.__values__===n&&(this.__values__=FI(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function hx(){return this}function px(r){for(var i,l=this;l instanceof Il;){var f=TI(l);f.__index__=0,f.__values__=n,i?m.__wrapped__=f:i=f;var m=f;l=l.__wrapped__}return m.__wrapped__=r,i}function yx(){var r=this.__wrapped__;if(r instanceof Te){var i=r;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:Ll,args:[Ic],thisArg:n}),new rn(i,this.__chain__)}return this.thru(Ic)}function Mx(){return _0(this.__wrapped__,this.__actions__)}var Tx=vl(function(r,i,l){Ee.call(r,l)?++r[l]:Fn(r,l,1)});function vx(r,i,l){var f=fe(r)?n0:fv;return l&&Et(r,i,l)&&(i=n),f(r,oe(i,3))}function wx(r,i){var l=fe(r)?ur:N0;return l(r,oe(i,3))}var xx=eI(vI),Ax=eI(wI);function Cx(r,i){return ct(Dl(r,i),1)}function Nx(r,i){return ct(Dl(r,i),Ft)}function Ex(r,i,l){return l=l===n?1:me(l),ct(Dl(r,i),l)}function SI(r,i){var l=fe(r)?tn:gr;return l(r,oe(i,3))}function LI(r,i){var l=fe(r)?HM:C0;return l(r,oe(i,3))}var Sx=vl(function(r,i,l){Ee.call(r,l)?r[l].push(i):Fn(r,l,[i])});function Lx(r,i,l,f){r=zt(r)?r:Ri(r),l=l&&!f?me(l):0;var m=r.length;return l<0&&(l=et(m+l,0)),Rl(r)?l<=m&&r.indexOf(i,l)>-1:!!m&&xi(r,i,l)>-1}var Dx=pe(function(r,i,l){var f=-1,m=typeof i=="function",M=zt(r)?U(r.length):[];return gr(r,function(A){M[++f]=m?_t(i,A,l):Da(A,i,l)}),M}),kx=vl(function(r,i,l){Fn(r,l,i)});function Dl(r,i){var l=fe(r)?Fe:j0;return l(r,oe(i,3))}function jx(r,i,l,f){return r==null?[]:(fe(i)||(i=i==null?[]:[i]),l=f?n:l,fe(l)||(l=l==null?[]:[l]),U0(r,i,l))}var bx=vl(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function zx(r,i,l){var f=fe(r)?Eu:o0,m=arguments.length<3;return f(r,oe(i,4),l,m,gr)}function Rx(r,i,l){var f=fe(r)?VM:o0,m=arguments.length<3;return f(r,oe(i,4),l,m,C0)}function Ux(r,i){var l=fe(r)?ur:N0;return l(r,bl(oe(i,3)))}function Px(r){var i=fe(r)?v0:Lv;return i(r)}function Ox(r,i,l){(l?Et(r,i,l):i===n)?i=1:i=me(i);var f=fe(r)?ov:Dv;return f(r,i)}function Zx(r){var i=fe(r)?lv:jv;return i(r)}function Gx(r){if(r==null)return 0;if(zt(r))return Rl(r)?Ci(r):r.length;var i=Mt(r);return i==st||i==ht?r.size:Hu(r).length}function Fx(r,i,l){var f=fe(r)?Su:bv;return l&&Et(r,i,l)&&(i=n),f(r,oe(i,3))}var Yx=pe(function(r,i){if(r==null)return[];var l=i.length;return l>1&&Et(r,i[0],i[1])?i=[]:l>2&&Et(i[0],i[1],i[2])&&(i=[i[0]]),U0(r,ct(i,1),[])}),kl=wT||function(){return ut.Date.now()};function _x(r,i){if(typeof i!="function")throw new nn(u);return r=me(r),function(){if(--r<1)return i.apply(this,arguments)}}function DI(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Yn(r,X,n,n,n,n,i)}function kI(r,i){var l;if(typeof i!="function")throw new nn(u);return r=me(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var hc=pe(function(r,i,l){var f=C;if(l.length){var m=fr(l,bi(hc));f|=V}return Yn(r,f,i,l,m)}),jI=pe(function(r,i,l){var f=C|T;if(l.length){var m=fr(l,bi(jI));f|=V}return Yn(i,f,r,l,m)});function bI(r,i,l){i=l?n:i;var f=Yn(r,S,n,n,n,n,n,i);return f.placeholder=bI.placeholder,f}function zI(r,i,l){i=l?n:i;var f=Yn(r,b,n,n,n,n,n,i);return f.placeholder=zI.placeholder,f}function RI(r,i,l){var f,m,M,A,E,j,G=0,F=!1,W=!1,Q=!0;if(typeof r!="function")throw new nn(u);i=sn(i)||0,Be(l)&&(F=!!l.leading,W="maxWait"in l,M=W?et(sn(l.maxWait)||0,i):M,Q="trailing"in l?!!l.trailing:Q);function re(Qe){var Tn=f,Vn=m;return f=m=n,G=Qe,A=r.apply(Vn,Tn),A}function le(Qe){return G=Qe,E=Ra(Me,i),F?re(Qe):A}function he(Qe){var Tn=Qe-j,Vn=Qe-G,em=i-Tn;return W?yt(em,M-Vn):em}function se(Qe){var Tn=Qe-j,Vn=Qe-G;return j===n||Tn>=i||Tn<0||W&&Vn>=M}function Me(){var Qe=kl();if(se(Qe))return ve(Qe);E=Ra(Me,he(Qe))}function ve(Qe){return E=n,Q&&f?re(Qe):(f=m=n,A)}function Vt(){E!==n&&W0(E),G=0,f=j=m=E=n}function St(){return E===n?A:ve(kl())}function Jt(){var Qe=kl(),Tn=se(Qe);if(f=arguments,m=this,j=Qe,Tn){if(E===n)return le(j);if(W)return W0(E),E=Ra(Me,i),re(j)}return E===n&&(E=Ra(Me,i)),A}return Jt.cancel=Vt,Jt.flush=St,Jt}var Bx=pe(function(r,i){return A0(r,1,i)}),Wx=pe(function(r,i,l){return A0(r,sn(i)||0,l)});function Hx(r){return Yn(r,K)}function jl(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new nn(u);var l=function(){var f=arguments,m=i?i.apply(this,f):f[0],M=l.cache;if(M.has(m))return M.get(m);var A=r.apply(this,f);return l.cache=M.set(m,A)||M,A};return l.cache=new(jl.Cache||Gn),l}jl.Cache=Gn;function bl(r){if(typeof r!="function")throw new nn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function Vx(r){return kI(2,r)}var Jx=zv(function(r,i){i=i.length==1&&fe(i[0])?Fe(i[0],Bt(oe())):Fe(ct(i,1),Bt(oe()));var l=i.length;return pe(function(f){for(var m=-1,M=yt(f.length,l);++m=i}),ti=L0(function(){return arguments}())?L0:function(r){return We(r)&&Ee.call(r,"callee")&&!m0.call(r,"callee")},fe=U.isArray,uA=Qg?Bt(Qg):pv;function zt(r){return r!=null&&zl(r.length)&&!Wn(r)}function Xe(r){return We(r)&&zt(r)}function cA(r){return r===!0||r===!1||We(r)&&Nt(r)==rt}var pr=AT||Sc,fA=Kg?Bt(Kg):yv;function dA(r){return We(r)&&r.nodeType===1&&!Ua(r)}function gA(r){if(r==null)return!0;if(zt(r)&&(fe(r)||typeof r=="string"||typeof r.splice=="function"||pr(r)||zi(r)||ti(r)))return!r.length;var i=Mt(r);if(i==st||i==ht)return!r.size;if(za(r))return!Hu(r).length;for(var l in r)if(Ee.call(r,l))return!1;return!0}function IA(r,i){return ka(r,i)}function mA(r,i,l){l=typeof l=="function"?l:n;var f=l?l(r,i):n;return f===n?ka(r,i,n,l):!!f}function yc(r){if(!We(r))return!1;var i=Nt(r);return i==vi||i==Vo||typeof r.message=="string"&&typeof r.name=="string"&&!Ua(r)}function hA(r){return typeof r=="number"&&p0(r)}function Wn(r){if(!Be(r))return!1;var i=Nt(r);return i==Wr||i==On||i==qt||i==Iu}function PI(r){return typeof r=="number"&&r==me(r)}function zl(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=kt}function Be(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function We(r){return r!=null&&typeof r=="object"}var OI=$g?Bt($g):Tv;function pA(r,i){return r===i||Wu(r,i,sc(i))}function yA(r,i,l){return l=typeof l=="function"?l:n,Wu(r,i,sc(i),l)}function MA(r){return ZI(r)&&r!=+r}function TA(r){if(rw(r))throw new ce(s);return D0(r)}function vA(r){return r===null}function wA(r){return r==null}function ZI(r){return typeof r=="number"||We(r)&&Nt(r)==Hr}function Ua(r){if(!We(r)||Nt(r)!=Yt)return!1;var i=ll(r);if(i===null)return!0;var l=Ee.call(i,"constructor")&&i.constructor;return typeof l=="function"&&l instanceof l&&rl.call(l)==yT}var Mc=qg?Bt(qg):vv;function xA(r){return PI(r)&&r>=-kt&&r<=kt}var GI=e0?Bt(e0):wv;function Rl(r){return typeof r=="string"||!fe(r)&&We(r)&&Nt(r)==pt}function Ht(r){return typeof r=="symbol"||We(r)&&Nt(r)==sr}var zi=t0?Bt(t0):xv;function AA(r){return r===n}function CA(r){return We(r)&&Mt(r)==jt}function NA(r){return We(r)&&Nt(r)==hu}var EA=Cl(Vu),SA=Cl(function(r,i){return r<=i});function FI(r){if(!r)return[];if(zt(r))return Rl(r)?pn(r):bt(r);if(xa&&r[xa])return oT(r[xa]());var i=Mt(r),l=i==st?zu:i==ht?el:Ri;return l(r)}function Hn(r){if(!r)return r===0?r:0;if(r=sn(r),r===Ft||r===-Ft){var i=r<0?-1:1;return i*Br}return r===r?r:0}function me(r){var i=Hn(r),l=i%1;return i===i?l?i-l:i:0}function YI(r){return r?Kr(me(r),0,H):0}function sn(r){if(typeof r=="number")return r;if(Ht(r))return or;if(Be(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=Be(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=l0(r);var l=uM.test(r);return l||fM.test(r)?_M(r.slice(2),l?2:8):sM.test(r)?or:+r}function _I(r){return En(r,Rt(r))}function LA(r){return r?Kr(me(r),-kt,kt):r===0?r:0}function Ce(r){return r==null?"":Wt(r)}var DA=ki(function(r,i){if(za(i)||zt(i)){En(i,it(i),r);return}for(var l in i)Ee.call(i,l)&&Sa(r,l,i[l])}),BI=ki(function(r,i){En(i,Rt(i),r)}),Ul=ki(function(r,i,l,f){En(i,Rt(i),r,f)}),kA=ki(function(r,i,l,f){En(i,it(i),r,f)}),jA=_n(Gu);function bA(r,i){var l=Di(r);return i==null?l:w0(l,i)}var zA=pe(function(r,i){r=De(r);var l=-1,f=i.length,m=f>2?i[2]:n;for(m&&Et(i[0],i[1],m)&&(f=1);++l1),M}),En(r,oc(r),l),f&&(l=an(l,D|x|z,Wv));for(var m=i.length;m--;)$u(l,i[m]);return l});function $A(r,i){return HI(r,bl(oe(i)))}var qA=_n(function(r,i){return r==null?{}:Nv(r,i)});function HI(r,i){if(r==null)return{};var l=Fe(oc(r),function(f){return[f]});return i=oe(i),P0(r,l,function(f,m){return i(f,m[0])})}function e2(r,i,l){i=mr(i,r);var f=-1,m=i.length;for(m||(m=1,r=n);++fi){var f=r;r=i,i=f}if(l||r%1||i%1){var m=y0();return yt(r+m*(i-r+YM("1e-"+((m+"").length-1))),i)}return Xu(r,i)}var f2=ji(function(r,i,l){return i=i.toLowerCase(),r+(l?XI(i):i)});function XI(r){return wc(Ce(r).toLowerCase())}function QI(r){return r=Ce(r),r&&r.replace(gM,tT).replace(jM,"")}function d2(r,i,l){r=Ce(r),i=Wt(i);var f=r.length;l=l===n?f:Kr(me(l),0,f);var m=l;return l-=i.length,l>=0&&r.slice(l,m)==i}function g2(r){return r=Ce(r),r&&V1.test(r)?r.replace(Eg,nT):r}function I2(r){return r=Ce(r),r&&q1.test(r)?r.replace(pu,"\\$&"):r}var m2=ji(function(r,i,l){return r+(l?"-":"")+i.toLowerCase()}),h2=ji(function(r,i,l){return r+(l?" ":"")+i.toLowerCase()}),p2=q0("toLowerCase");function y2(r,i,l){r=Ce(r),i=me(i);var f=i?Ci(r):0;if(!i||f>=i)return r;var m=(i-f)/2;return Al(fl(m),l)+r+Al(cl(m),l)}function M2(r,i,l){r=Ce(r),i=me(i);var f=i?Ci(r):0;return i&&f>>0,l?(r=Ce(r),r&&(typeof i=="string"||i!=null&&!Mc(i))&&(i=Wt(i),!i&&Ai(r))?hr(pn(r),0,l):r.split(i,l)):[]}var N2=ji(function(r,i,l){return r+(l?" ":"")+wc(i)});function E2(r,i,l){return r=Ce(r),l=l==null?0:Kr(me(l),0,r.length),i=Wt(i),r.slice(l,l+i.length)==i}function S2(r,i,l){var f=p.templateSettings;l&&Et(r,i,l)&&(i=n),r=Ce(r),i=Ul({},i,f,oI);var m=Ul({},i.imports,f.imports,oI),M=it(m),A=bu(m,M),E,j,G=0,F=i.interpolate||Xo,W="__p += '",Q=Ru((i.escape||Xo).source+"|"+F.source+"|"+(F===Sg?lM:Xo).source+"|"+(i.evaluate||Xo).source+"|$","g"),re="//# sourceURL="+(Ee.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PM+"]")+` +`;r.replace(Q,function(se,Me,ve,Vt,St,Jt){return ve||(ve=Vt),W+=r.slice(G,Jt).replace(IM,rT),Me&&(E=!0,W+=`' + +__e(`+Me+`) + +'`),St&&(j=!0,W+=`'; +`+St+`; +__p += '`),ve&&(W+=`' + +((__t = (`+ve+`)) == null ? '' : __t) + +'`),G=Jt+se.length,se}),W+=`'; +`;var le=Ee.call(i,"variable")&&i.variable;if(!le)W=`with (obj) { +`+W+` +} +`;else if(aM.test(le))throw new ce(c);W=(j?W.replace(Ne,""):W).replace(B1,"$1").replace(W1,"$1;"),W="function("+(le||"obj")+`) { +`+(le?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(j?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+W+`return __p +}`;var he=$I(function(){return Ae(M,re+"return "+W).apply(n,A)});if(he.source=W,yc(he))throw he;return he}function L2(r){return Ce(r).toLowerCase()}function D2(r){return Ce(r).toUpperCase()}function k2(r,i,l){if(r=Ce(r),r&&(l||i===n))return l0(r);if(!r||!(i=Wt(i)))return r;var f=pn(r),m=pn(i),M=s0(f,m),A=u0(f,m)+1;return hr(f,M,A).join("")}function j2(r,i,l){if(r=Ce(r),r&&(l||i===n))return r.slice(0,f0(r)+1);if(!r||!(i=Wt(i)))return r;var f=pn(r),m=u0(f,pn(i))+1;return hr(f,0,m).join("")}function b2(r,i,l){if(r=Ce(r),r&&(l||i===n))return r.replace(yu,"");if(!r||!(i=Wt(i)))return r;var f=pn(r),m=s0(f,pn(i));return hr(f,m).join("")}function z2(r,i){var l=_e,f=_r;if(Be(i)){var m="separator"in i?i.separator:m;l="length"in i?me(i.length):l,f="omission"in i?Wt(i.omission):f}r=Ce(r);var M=r.length;if(Ai(r)){var A=pn(r);M=A.length}if(l>=M)return r;var E=l-Ci(f);if(E<1)return f;var j=A?hr(A,0,E).join(""):r.slice(0,E);if(m===n)return j+f;if(A&&(E+=j.length-E),Mc(m)){if(r.slice(E).search(m)){var G,F=j;for(m.global||(m=Ru(m.source,Ce(Lg.exec(m))+"g")),m.lastIndex=0;G=m.exec(F);)var W=G.index;j=j.slice(0,W===n?E:W)}}else if(r.indexOf(Wt(m),E)!=E){var Q=j.lastIndexOf(m);Q>-1&&(j=j.slice(0,Q))}return j+f}function R2(r){return r=Ce(r),r&&H1.test(r)?r.replace(Ng,cT):r}var U2=ji(function(r,i,l){return r+(l?" ":"")+i.toUpperCase()}),wc=q0("toUpperCase");function KI(r,i,l){return r=Ce(r),i=l?n:i,i===n?aT(r)?gT(r):QM(r):r.match(i)||[]}var $I=pe(function(r,i){try{return _t(r,n,i)}catch(l){return yc(l)?l:new ce(l)}}),P2=_n(function(r,i){return tn(i,function(l){l=Sn(l),Fn(r,l,hc(r[l],r))}),r});function O2(r){var i=r==null?0:r.length,l=oe();return r=i?Fe(r,function(f){if(typeof f[1]!="function")throw new nn(u);return[l(f[0]),f[1]]}):[],pe(function(f){for(var m=-1;++mkt)return[];var l=H,f=yt(r,H);i=oe(i),r-=H;for(var m=ju(f,i);++l0||i<0)?new Te(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=me(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},Te.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Te.prototype.toArray=function(){return this.take(H)},Nn(Te.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),m=p[f?"take"+(i=="last"?"Right":""):i],M=f||/^find/.test(i);m&&(p.prototype[i]=function(){var A=this.__wrapped__,E=f?[1]:arguments,j=A instanceof Te,G=E[0],F=j||fe(A),W=function(Me){var ve=m.apply(p,cr([Me],E));return f&&Q?ve[0]:ve};F&&l&&typeof G=="function"&&G.length!=1&&(j=F=!1);var Q=this.__chain__,re=!!this.__actions__.length,le=M&&!Q,he=j&&!re;if(!M&&F){A=he?A:new Te(this);var se=r.apply(A,E);return se.__actions__.push({func:Ll,args:[W],thisArg:n}),new rn(se,Q)}return le&&he?r.apply(this,E):(se=this.thru(W),le?f?se.value()[0]:se.value():se)})}),tn(["pop","push","shift","sort","splice","unshift"],function(r){var i=tl[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);p.prototype[r]=function(){var m=arguments;if(f&&!this.__chain__){var M=this.value();return i.apply(fe(M)?M:[],m)}return this[l](function(A){return i.apply(fe(A)?A:[],m)})}}),Nn(Te.prototype,function(r,i){var l=p[i];if(l){var f=l.name+"";Ee.call(Li,f)||(Li[f]=[]),Li[f].push({name:i,func:l})}}),Li[wl(n,T).name]=[{name:"wrapper",func:n}],Te.prototype.clone=RT,Te.prototype.reverse=UT,Te.prototype.value=PT,p.prototype.at=dx,p.prototype.chain=gx,p.prototype.commit=Ix,p.prototype.next=mx,p.prototype.plant=px,p.prototype.reverse=yx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Mx,p.prototype.first=p.prototype.head,xa&&(p.prototype[xa]=hx),p},Ni=IT();Vr?((Vr.exports=Ni)._=Ni,Au._=Ni):ut._=Ni}).call(Pa)})(Hs,Hs.exports);var aD=Hs.exports;function k1(e,t,n){const[a,o]=xe.useState({});xe.useEffect(()=>{if(!t||e.length===0)return;const c=t.find(I=>I.i===e);o(c)},[e,t]);const s=xe.useCallback(aD.debounce((c,I)=>{c&&(console.log("Saving ..."),window.internal.workers.api("Filesystem","write",{instance:window.internal.ui.activeFilesystemInstance,id:I,write:{data:c.data,type:0}}).then(y=>{if(y.error){console.error("Failed to save:",y.error),console.debug("Target:",I),console.debug("Data:",c.data),alert("Dokumentti on virheellinen ja sitä ei voitu tallentaa! Ota yhteys kehittäjiin ja lähetä heille loki: Kehittäjä -> Vie loki -osiosta!");return}window.internal.ui.saved=!0,document.getElementById("saveIndicator").className="savedIndicator"}).catch(()=>{alert("Tallentaminen epäonnistui.")}))},1e3),[e]);return[a,async c=>{const I=[...t],y=I.findIndex(N=>N.i===e);I[y]=c,n(I),window.internal.ui.saved=!1,s(c,window.internal.ui.activeLocation)}]}function oD({createdItem:e,setActiveItem:t,activeItem:n,level:a,setLevel:o,setMobileViewState:s,isMobile:u,fsPath:c,openFolder:I}){const y=xe.useRef(),N=xe.useRef(),D=xe.useRef(),[x,z]=k1(n,a,o),P=[{text:"Tallenna kuva leikepöydälle",action:()=>{Qa("image-clipboard")}},{text:"Kopioi teksti leikepöydälle",action:()=>{Qa("txt-clipboard")}},{text:"Tallenna PDF",action:()=>{Qa("pdf")}},{text:"Tallenna Tekstinä",action:()=>{Qa("txt-file")}},{text:"Tallenna kuvana",action:()=>{Qa("image")}}];xe.useEffect(async()=>{y.current.contentEditable=!1,window.internal.ui.editor||(window.internal.ui.editor=new QL(y.current),await window.internal.ui.editor.init()),y.current.contentEditable=!0,console.log("Loading item ..."),window.internal.ui.activeLocation=n,x!=null&&x.i&&(await window.internal.ui.editor.setContent(x.data),window.internal.ui.saved=!0)},[N,x==null?void 0:x.i]);const B=async()=>{const T=await window.internal.ui.editor.getContent();document.getElementById("saveIndicator").className="saveIndicator";const w={...x};w.data=T,w.date=new Date().getTime(),z(w)};xe.useEffect(()=>{window.internal.ui.editor.hook.oninput=B},[x]);async function C(T){T.target.blur(),y.current.focus(),T.preventDefault();const w=x;w.name=T.target.innerText,z({...w}),T.target.innerHTML.trim()===""&&(T.target.innerHTML="Nimetön vastaus"),console.log("[ EDITOR ] Updating document title..."),await window.internal.workers.api("Filesystem","write",{instance:window.internal.ui.activeFilesystemInstance,id:window.internal.ui.activeLocation,write:{name:T.target.innerText.trim(),type:0}})}return xe.useEffect(()=>{e===n&&(x==null?void 0:x.t)===0&&(D.current.focus(),document.execCommand("selectAll",!1,null))},[e,x==null?void 0:x.i]),Y.jsxs("div",{className:"document",children:[Y.jsxs("div",{className:"head",children:[Y.jsxs("div",{className:"headMain",children:[Y.jsx("span",{className:`documentPath${c.length>1?" expanded":""}`,children:c.map(T=>Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:"documentPathItem",onClick:()=>I(T.id),children:T.name})," › "]}))}),Y.jsx("h2",{spellCheck:!1,contentEditable:!0,className:c.length>1?"slimmer":"",id:"documentTitle",suppressContentEditableWarning:!0,onClick:()=>{document.execCommand("selectAll",!1,null)},onKeyDown:T=>{T.key==="Enter"&&C(T)},onBlur:T=>{C(T)},ref:D,children:(x==null?void 0:x.name)??Y.jsx(E1,{style:{width:"12rem",height:"2rem",background:"white"}})})]}),Y.jsxs("div",{className:"headSecondary",children:[Y.jsx("p",{children:"Tallenne:"}),Y.jsx("div",{className:"savedIndicator",id:"saveIndicator"}),Y.jsx(xg,{data:P,children:Y.jsxs("button",{className:"secondary",children:[Y.jsx(ot,{icon:UL})," Vie"]})})]})]}),Y.jsx("h1",{className:"droptext",id:"droptext",children:"Pudota kuva tai gif ja lisää se editoriin!"}),Y.jsx("div",{className:"page",spellCheck:!1,children:Y.jsx("div",{autoFocus:"true",ref:y,className:"editor clean-scrollbar add-scrollbar-padding-with-border",id:"editor-element",contentEditable:"false"})})]})}var lD={prefix:"far",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M373.1 24.97C401.2-3.147 446.8-3.147 474.9 24.97L487 37.09C515.1 65.21 515.1 110.8 487 138.9L289.8 336.2C281.1 344.8 270.4 351.1 258.6 354.5L158.6 383.1C150.2 385.5 141.2 383.1 135 376.1C128.9 370.8 126.5 361.8 128.9 353.4L157.5 253.4C160.9 241.6 167.2 230.9 175.8 222.2L373.1 24.97zM440.1 58.91C431.6 49.54 416.4 49.54 407 58.91L377.9 88L424 134.1L453.1 104.1C462.5 95.6 462.5 80.4 453.1 71.03L440.1 58.91zM203.7 266.6L186.9 325.1L245.4 308.3C249.4 307.2 252.9 305.1 255.8 302.2L390.1 168L344 121.9L209.8 256.2C206.9 259.1 204.8 262.6 203.7 266.6zM200 64C213.3 64 224 74.75 224 88C224 101.3 213.3 112 200 112H88C65.91 112 48 129.9 48 152V424C48 446.1 65.91 464 88 464H360C382.1 464 400 446.1 400 424V312C400 298.7 410.7 288 424 288C437.3 288 448 298.7 448 312V424C448 472.6 408.6 512 360 512H88C39.4 512 0 472.6 0 424V152C0 103.4 39.4 64 88 64H200z"]},sD=lD,uD={prefix:"far",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M447.1 96h-172.1L226.7 50.75C214.7 38.74 198.5 32 181.5 32H63.1c-35.35 0-64 28.66-64 64v320c0 35.34 28.65 64 64 64h384c35.35 0 64-28.66 64-64V160C511.1 124.7 483.3 96 447.1 96zM463.1 416c0 8.824-7.178 16-16 16h-384c-8.822 0-16-7.176-16-16V96c0-8.824 7.178-16 16-16h117.5c4.273 0 8.293 1.664 11.31 4.688L255.1 144h192c8.822 0 16 7.176 16 16V416z"]};Date.prototype.getWeek=()=>{const e=new Date,t=new Date(e.getFullYear(),0,1),a=(new Date(e.getFullYear(),e.getMonth(),e.getDate())-t+864e5)/864e5;return Math.ceil(a/7)};function cD(e){const t=new Date(e),n=new Date;let a;return n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()?a="Tänään":n.getDate()-1===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()?a="Eilen":n.getWeek()===t.getWeek()&&n.getFullYear()===t.getFullYear()?a=["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"][t.getDay()]:a=`${t.getDate()}.${t.getMonth()+1}.${t.getFullYear()}`,a+=` ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`,{pretty:a.trim()}}function j1(e){if(!e.data)return null;const t=xe.useRef(),n=xe.useRef();xe.useEffect(()=>{e.createdItem===e.data.i&&(t.current.dataset.animation="fadeInDown",setTimeout(()=>{t.current.dataset.animation=""},300),e.data.t===1&&(n.current.focus(),document.execCommand("selectAll",!1,null)))},[e.createdItem]);async function a(I){I.target.blur(),document.getElementById("editor-element").focus(),I.preventDefault(),console.log("[ SIDEBAR ] Updating folder title..."),I.target.innerText.trim()===""&&(I.target.innerText="Nimetön kansio");const y=[...e.level],N=y.findIndex(D=>D.i===e.data.i);y[N].name=I.target.innerText,e.setLevel(y),await window.internal.workers.api("Filesystem","write",{instance:window.internal.ui.activeFilesystemInstance,id:e.data.i,write:{name:I.target.innerText,type:1}})}const o=[{text:"Uudelleennimeä",action:()=>{e.data.t===0?(document.getElementById("documentTitle").focus(),document.execCommand("selectAll",!1,null)):(n.current.focus(),document.execCommand("selectAll",!1,null))}},{text:"Poista",action:()=>{confirm(`Haluatko varmasti poistaa "${e.data.name}"?`)&&e.deleteDocument(e.data.i)}},{text:"Näytä ID",action:()=>{alert(e.data.i)}}],[s,u]=xg({data:o,origin:"right",children:Y.jsx("button",{className:"ellipsis",children:Y.jsx(ot,{icon:C1})})},!0),c=I=>{I.type==="contextmenu"?(I.preventDefault(),u(I,!0)):e.onClick(I)};if(e.data.t===1)return Y.jsxs("li",{ref:t,className:`fsFolder${e.selected?" selected":""}`,onKeyPress:I=>{I.key==="Enter"&&c(I)},onClick:c,onContextMenu:c,tabIndex:"-1",children:[Y.jsx("div",{className:"fsIcon",children:Y.jsx(ot,{icon:uD})}),Y.jsx("div",{className:"content",children:Y.jsx("span",{className:"editableName",spellCheck:!1,contentEditable:!0,suppressContentEditableWarning:!0,ref:n,onKeyDown:I=>{I.key==="Enter"&&a(I)},onBlur:I=>{a(I)},children:e.data.name})}),Y.jsx("div",{className:"action",children:s})]});if(e.data.t===0)return Y.jsxs("li",{ref:t,className:e.selected?"selected":"",onClick:c,onContextMenu:c,tabIndex:"-1",children:[Y.jsxs("div",{className:"content",children:[Y.jsx("span",{children:e.data.name}),Y.jsx("span",{className:"date",children:e.data.date?cD(e.data.date).pretty:""})]}),Y.jsx("div",{className:"action",children:s})]})}const fD={selected:Ie.bool,data:Ie.object};j1.propTypes=fD;function dD(e){const t=e.level?[...e.level]:null,[n]=k1(e.activeItem,e.level,e.setLevel);t&&t.reverse(),document.getElementById("sidebar")&&document.getElementById("sidebar").childNodes[0].nodeName.toLowerCase()!=="span"&&document.getElementById("sidebar").childNodes.forEach(c=>{c.nodeName.toLowerCase()==="span"&&t!==null&&(c.style.display="none")});const a=xe.useRef(),o=e.fsPath[e.fsPath.length-1].id;xe.useEffect(()=>{a.current.classList.add("fadeInDown"),setTimeout(()=>{a.current&&a.current.classList.remove("fadeInDown")},300)},[o]);const s=async(c,I)=>{c.t===0?(e.setCreatedItem(""),console.log("[ SIDEBAR ] Set active item to:",c.i),e.setActiveItem(c.i),window.internal.ui.activeLocation=c.id,I!=null&&I.isTrusted&&window.internal.ui.editor.hook.focus()):c.t===1&&e.openFolder(c.i,c.name)},u=c=>c.sort((I,y)=>y.date-I.date).sort((I,y)=>I.t===1?-1:0);return Y.jsxs("div",{className:"sidebar",style:e.style,children:[Y.jsxs("div",{className:"head",children:[Y.jsxs("button",{id:"newAnswerBtn",className:"primary",onClick:()=>{e.newFsItem(0)},children:[Y.jsx(ot,{icon:OL}),"  Uusi vastaus"]}),Y.jsx("button",{id:"newFolderBtn",className:"folderSmall",onClick:()=>{e.newFsItem(1)},children:Y.jsx(ot,{icon:jL})})]}),Y.jsx("div",{ref:a,className:"filesystemLevelParent clean-scrollbar",children:Y.jsxs("ul",{className:"filesystemLevel",id:"sidebar",children:[e.fsPath.length>1?Y.jsxs("button",{className:"folderUpButton",onClick:()=>{e.openFolder(e.fsPath[e.fsPath.length-2].id)},tabIndex:"-1",children:[Y.jsx(ot,{icon:BL}),"  ",e.fsPath[e.fsPath.length-2].name]}):null,t?u(t).map(c=>{const I=(n==null?void 0:n.i)===c.i;return Y.jsx(j1,{createdItem:e.createdItem,level:e.level,setLevel:e.setLevel,deleteDocument:e.deleteDocument,data:I?n:c,selected:I,onClick:y=>s(c,y)},c.i)}):null,Y.jsx(E1,{count:20})]})})]})}const gD=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ9IkUxLUxBVElOTU9ERVJOTUFJTi0yMjFBIiBkPSJNODUzIDIwYzAgLTUgLTEgLTYgLTYgLTE3bC00NTYgLTk0NGMtNyAtMTUgLTkgLTE5IC0yNSAtMTljLTExIDAgLTEzIDEgLTE5IDE1bC0xOTggNDM1bC01Mi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ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}];function ID(e,t){if(e.preventDefault(),window.internal.ui.editor.activeMathElement!=null)if(t.action)if(t.useWrite)window.internal.ui.editor.activeMathElement.dynamicInterface.write(t.action);else if(Array.isArray(t.action))for(const n of t.action)window.internal.ui.editor.activeMathElement.dynamicInterface.cmd(n);else window.internal.ui.editor.activeMathElement.dynamicInterface.cmd(t.action);else window.internal.ui.editor.activeMathElement.dynamicInterface.typedText(t.character);else document.execCommand("insertText",!1,t.character)}function ud({symbols:e,hidden:t}){return Y.jsxs("div",{className:"symbolGroup",style:{maxHeight:t?"0":"500px",marginBottom:t?"0":"1rem"},id:"symbols",children:[Y.jsx("h3",{children:e.label}),Y.jsx("div",{className:"symbols",children:e.characters.map(n=>Y.jsx("div",{"x-tooltip":n.label,onMouseDown:a=>{ID(a,n)},children:n.character||Y.jsx("img",{src:n.svg})},n.character||n.action))})]})}ud.propTypes={symbols:{label:Ie.string,characters:Ie.any},hidden:Ie.any};function mD(){return Y.jsx("div",{className:"mobileToolbar",children:"Kokeile avata sivu leveämmässä näkymässä!"})}function hD(){const[e,t]=xe.useState(!1);return xe.useEffect(()=>{window.setLatexCommandsVisibility=n=>{n?document.getElementById("symbols").style.overflow="visible":document.getElementById("symbols").style.overflow="",t(n)}},[]),Y.jsxs("div",{className:"sidebar equationSidebar",children:[Y.jsx("div",{className:"head",children:Y.jsxs("button",{className:"primary",onClick:async()=>{window.internal.ui.editor.hook.focus();const{Math:n}=window.internal.ui.editor.local,a=await n.create();let o=window.internal.ui.editor.activeLine;o===null&&(o=window.internal.ui.editor.hook),o.appendChild(a.container),n.open(a.id)},children:[Y.jsx(ot,{icon:RL}),"  Lisää kaava"]})}),Y.jsxs("div",{children:[Y.jsx(ud,{hidden:!e,symbols:{label:"Kaavat",characters:gD}}),S1.map(n=>Y.jsx(ud,{symbols:n},`${n.label}group`))]})]})}function pD(){return Y.jsx("div",{className:"mathTools",id:"mathTools",children:Y.jsxs("ul",{children:[Y.jsx("li",{"x-tooltip":"Mode",children:Y.jsx(ot,{icon:sD,fill:"currentColor"})}),Y.jsx("li",{"x-tooltip":"Style",children:Y.jsx(ot,{icon:kL,fill:"currentColor"})}),Y.jsx("li",{"x-tooltip":"More",children:Y.jsx(ot,{icon:C1,fill:"currentColor"})})]})})}function Hh(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function yD(){const[e,t]=xe.useState(Hh());return xe.useEffect(()=>{function n(){t(Hh())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}var MD={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]};const TD="/assets/icon-8beffb21.svg",vD="/assets/testausserveri-4f88ba64.svg";function wD(){const[e,t]=xe.useState(!1);return Y.jsxs("div",{className:"navigation",children:[Y.jsx("div",{children:Y.jsx("img",{src:TD,alt:"Matikkaeditori.fi"})}),Y.jsxs("div",{children:[Y.jsx("p",{children:window.internal.versionHash}),Y.jsx("a",{href:"https://discord.gg/testaus",target:"_blank",rel:"noreferrer",className:"iconLink",children:Y.jsx(ot,{icon:MD})}),Y.jsx("a",{href:"https://testausserveri.fi",target:"_blank",rel:"noreferrer",className:"iconLink",children:Y.jsx("img",{src:vD})}),Y.jsx("a",{className:"navLink",children:Y.jsx(xg,{className:"navLink",data:[{text:"Tyhjennä data",action:async()=>{await window.internal.workers.api("Filesystem","reset"),window.reset()},icon:Y.jsx(ot,{icon:YL})},{text:"Kiitä kehittäjiä",action:async()=>{const n=prompt("Keneltä kiitokset?").trim()||"nimetön";await fetch("https://takahuone.matikkaeditori.fi/shawarma",{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`from=${encodeURIComponent(n)}`}),alert(`Olet ihana, ${n} 💖`),t(!0)},icon:Y.jsx(ot,{icon:GL}),disabled:e},{text:"Vie loki",action:async()=>{sd(`data:text/plain;charset=utf-8,${encodeURIComponent(window.internal.console.logs.join(` +`))}`,"logs.txt")},icon:Y.jsx(ot,{icon:LL})}],children:"Kehittäjä"})}),Y.jsx("a",{href:"https://kaava.matikkaeditori.fi",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"},children:Y.jsx("a",{className:"navLink",children:"Kaavakirja"})})]})]})}function xD(){const[e,t]=xe.useState([]),[n,a]=xe.useState([{id:!0,name:"Juuri"}]),[o,s]=xe.useState(""),[u,c]=xe.useState(""),{width:I}=yD(),y=I<800,[N,D]=xe.useState(0);async function x(T,w,S){const b=(await window.internal.workers.api("Filesystem","write",{instance:window.internal.ui.activeFilesystemInstance,write:{type:T,name:T===0?"Uusi vastaus":"Uusi kansio",data:""},location:S||n[n.length-1].id})).write,_={...(await window.internal.workers.api("Filesystem","read",{id:b,instance:window.internal.ui.activeFilesystemInstance})).read,type:T,t:T,i:b},te=[...w||e];te.push(_),t(te),c(_.i),T===0&&s(_.i)}async function z(T){if(T.length===0){await x(0,T);return}const w=[...T];w.reverse();const S=w.find(b=>b.t===0);s(S.i)}async function P(T){await window.internal.workers.api("Filesystem","remove",{instance:window.internal.ui.activeFilesystemInstance,id:T});let w=[...e];w.findIndex(S=>S.i===T),w=w.filter(S=>S.i!==T),z(w),t(w)}xe.useEffect(()=>{D(1)},[o]);async function B(T){console.log("[ APP ] Loading FS details...");const w=T.map(async b=>({...(await window.internal.workers.api("Filesystem","read",{id:b.i,instance:window.internal.ui.activeFilesystemInstance})).read,...b})),S=await Promise.all(w);console.log("[ APP ] Done loading FS details",S),t(S),z(S),D(1)}async function C(T,w){const{index:S}=await window.internal.workers.api("Filesystem","index",{instance:window.internal.ui.activeFilesystemInstance,id:T,level:1});let b=[...n];const V=n.findIndex(_=>_.id===T);V>=0?b=b.splice(0,V+1):b.push({id:T,name:w}),a(b),S.length===0?x(0,S,T):(t(S),B(S))}return xe.useEffect(async()=>{try{await window.internal.workers.essential;let T=localStorage.getItem("fs_type");T===null&&(T=0);const w=await window.internal.workers.api("Filesystem","init",{type:T});window.internal.ui.activeFilesystemInstance=w.id,console.log("[ APP ] Created database instance:",w),console.log("[ APP ] Instance UUID ",w.instance),t(w.index),B(w.index)}catch(T){console.error("[ APP ] Failed to initialize filesystem"),console.debug(T)}document.addEventListener("keydown",T=>{var w,S,b,V;if(window.internal.ui.editor.activeElement===null){if(T.ctrlKey&&T.key.toLowerCase()==="n")T.preventDefault(),document.querySelector("#newAnswerBtn").click();else if(T.ctrlKey&&T.key.toLowerCase()==="b")T.preventDefault(),document.querySelector("#newFolderBtn").click();else if(T.key.toLowerCase()==="f2")T.preventDefault(),document.activeElement.classList.contains("fsFolder")?document.activeElement.querySelector(".editableName").focus():document.querySelector("#documentTitle").focus(),document.execCommand("selectAll",!1,null);else if(T.key==="Tab"){T.preventDefault();const _=(S=(w=document.activeElement)==null?void 0:w.classList)!=null&&S.contains("fsFolder")||(V=(b=document.activeElement)==null?void 0:b.classList)!=null&&V.contains("folderUpButton")?document.activeElement:document.querySelector(".filesystemLevel li.selected"),X=_[T.shiftKey?"previousSibling":"nextSibling"]||_.parentNode[T.shiftKey?"lastChild":"firstChild"];if(X.classList.contains("fsFolder")||X.classList.contains("folderUpButton"))X.focus();else{_.blur(),X.click();const te=window.scrollX,K=window.scrollY;window.internal.ui.editor.hook.focus(),window.scrollTo(te,K)}}}})},[]),Y.jsxs(Y.Fragment,{children:[Y.jsx(wD,{}),Y.jsxs("div",{className:"app",children:[y&&N===0||!y?Y.jsx(dD,{setCreatedItem:c,createdItem:u,style:y?{flex:"1"}:{},newFsItem:x,deleteDocument:P,level:e,fsPath:n,setLevel:t,activeItem:o,setActiveItem:s,openFolder:C}):null,y&&N===1||!y?Y.jsxs(Y.Fragment,{children:[Y.jsx(oD,{createdItem:u,isMobile:y,setMobileViewState:D,activeItem:o,level:e,setActiveItem:s,setLevel:t,openFolder:C,fsPath:n}),y?Y.jsx(mD,{}):Y.jsx(hD,{})]}):null,y&&N===2?Y.jsx("div",{children:"Something"}):null]}),Y.jsx(pD,{})]})}const AD=()=>{const e=navigator.userAgent.toLowerCase();if(e.includes("chrome")?window.browser="chrome":e.includes("firefox")?window.browser="firefox":e.includes("safari")?(console.warn("SAFARI WILL BE TREATED AS CHROMIUM UNTIL FURTHER NOTICE"),window.browser="chrome"):(alert("You are using an unknown browser. Chrome's configuration will be automatically loaded. It is recommended to use Chromium based browsers with this website."),window.browser="chrome"),sa.Buffer!==void 0)console.log("[ Compatibility ] Using Buffer instead of btoa/atob..."),window.btoa=t=>new sa.Buffer.from(t,"utf8").toString("base64"),window.atob=t=>new sa.Buffer.from(t,"base64").toString("utf8");else if(confirm('Your browser does not support the "Buffer class". Which is a required component for this application to handle not LATIN-1 (ISO-8859) characters. Please update your browser. The application will continue to function, but unexpected behavior and at the risk of data integrity it is not recommended.'))console.warn("[ Compatibility ] Running in Buffer compatibility mode");else return!1;return window.Worker&&crypto.subtle!==void 0};async function CD(e,t){console.warn("[ Deprecation ] The error component will soon be removed.");const n="color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;";console.log(`%c------------------------- +Error (${e}): + +%c%s +%c-------------------------`,n,"color: unset;",t,n),console.trace()}const b1=Symbol("Comlink.proxy"),ND=Symbol("Comlink.endpoint"),ED=Symbol("Comlink.releaseProxy"),cd=Symbol("Comlink.thrown"),z1=e=>typeof e=="object"&&e!==null||typeof e=="function",SD={canHandle:e=>z1(e)&&e[b1],serialize(e){const{port1:t,port2:n}=new MessageChannel;return U1(e,t),[n,[n]]},deserialize(e){return e.start(),O1(e)}},LD={canHandle:e=>z1(e)&&cd in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},R1=new Map([["proxy",SD],["throw",LD]]);function U1(e,t=self){t.addEventListener("message",function n(a){if(!a||!a.data)return;const{id:o,type:s,path:u}=Object.assign({path:[]},a.data),c=(a.data.argumentList||[]).map(ri);let I;try{const y=u.slice(0,-1).reduce((D,x)=>D[x],e),N=u.reduce((D,x)=>D[x],e);switch(s){case"GET":I=N;break;case"SET":y[u.slice(-1)[0]]=ri(a.data.value),I=!0;break;case"APPLY":I=N.apply(y,c);break;case"CONSTRUCT":{const D=new N(...c);I=bD(D)}break;case"ENDPOINT":{const{port1:D,port2:x}=new MessageChannel;U1(e,x),I=jD(D,[D])}break;case"RELEASE":I=void 0;break;default:return}}catch(y){I={value:y,[cd]:0}}Promise.resolve(I).catch(y=>({value:y,[cd]:0})).then(y=>{const[N,D]=Cg(y);t.postMessage(Object.assign(Object.assign({},N),{id:o}),D),s==="RELEASE"&&(t.removeEventListener("message",n),P1(t))})}),t.start&&t.start()}function DD(e){return e.constructor.name==="MessagePort"}function P1(e){DD(e)&&e.close()}function O1(e,t){return fd(e,[],t)}function is(e){if(e)throw new Error("Proxy has been released and is not useable")}function fd(e,t=[],n=function(){}){let a=!1;const o=new Proxy(n,{get(s,u){if(is(a),u===ED)return()=>Oi(e,{type:"RELEASE",path:t.map(c=>c.toString())}).then(()=>{P1(e),a=!0});if(u==="then"){if(t.length===0)return{then:()=>o};const c=Oi(e,{type:"GET",path:t.map(I=>I.toString())}).then(ri);return c.then.bind(c)}return fd(e,[...t,u])},set(s,u,c){is(a);const[I,y]=Cg(c);return Oi(e,{type:"SET",path:[...t,u].map(N=>N.toString()),value:I},y).then(ri)},apply(s,u,c){is(a);const I=t[t.length-1];if(I===ND)return Oi(e,{type:"ENDPOINT"}).then(ri);if(I==="bind")return fd(e,t.slice(0,-1));const[y,N]=Vh(c);return Oi(e,{type:"APPLY",path:t.map(D=>D.toString()),argumentList:y},N).then(ri)},construct(s,u){is(a);const[c,I]=Vh(u);return Oi(e,{type:"CONSTRUCT",path:t.map(y=>y.toString()),argumentList:c},I).then(ri)}});return o}function kD(e){return Array.prototype.concat.apply([],e)}function Vh(e){const t=e.map(Cg);return[t.map(n=>n[0]),kD(t.map(n=>n[1]))]}const Z1=new WeakMap;function jD(e,t){return Z1.set(e,t),e}function bD(e){return Object.assign(e,{[b1]:!0})}function Cg(e){for(const[t,n]of R1)if(n.canHandle(e)){const[a,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:a},o]}return[{type:"RAW",value:e},Z1.get(e)||[]]}function ri(e){switch(e.type){case"HANDLER":return R1.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Oi(e,t,n){return new Promise(a=>{const o=zD();e.addEventListener("message",function s(u){!u.data||!u.data.id||u.data.id!==o||(e.removeEventListener("message",s),a(u.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)})}function zD(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function du(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const RD=new Worker(new URL("/assets/filesystem-5b7e1a66.js",self.location),{type:"module"}),UD=new Worker(new URL("/assets/cloud-storage-24df63a8.js",self.location),{type:"module"});function Fi(e,t){try{console.debug("[ COM - workers.js ] Main ->",`${e}:`,t),window.internal.workers.list[e].postMessage(JSON.stringify(t))}catch(n){console.error("[ COM - workers.js ] Failed to send message to",e,":",n)}}async function PD(e,t){try{console.debug("[ COM - workers.js ] Main <-",`${t}:`,e);const n=JSON.parse(e.data.toString());switch(n.type){case"response":n.id!==void 0?typeof window.internal.workers.handlers[n.id]=="function"?window.internal.workers.handlers[n.id](n.content):console.warn("Worker response handler missing",n):console.warn("Worker response was dropped due to a missing task id:",n);break;case"log":console.warn('[ WORKERS ] The log "command" will soon be removed!'),console.log(`[ WORKER - ${t} ]`,n.content);break;case"confirm":confirm(n.content)?Fi(t,{type:"callback",content:{value:!0},id:n.id}):Fi(t,{type:"callback",content:{value:!1},id:n.id});break;case"callback":window.internal.workers.handlers[n.id]===void 0&&console.warn(`[ WORKERS ] Dropped callback "${n.id}"`),window.internal.workers.handlers[n.id](n.content);break;case"relay":{if(n.callback!==!0)if(window.internal.workers.list[n.target]===void 0)console.error(`[ WORKER ] No such relay target as "${n.target}"`);else{const a=du();window.internal.workers.handlers[a]=async o=>{Fi(t,o.content)},Fi(n.target,n.content)}else window.internal.workers.handlers[n.id]?window.internal.workers.handlers[n.id]():console.error(`[ WORKERS ] Dropped callback "${n.id}"`);break}case"window":{const a=["id"],o={};for(const s of Object.keys(window))a.includes(s)&&(o[s]=window[s]);Fi(t,{type:"callback",content:{window:o},id:n.id});break}default:console.warn("[ WORKERS ] Unknown message from worker:",n);break}}catch(n){console.error("Worker message handler failed:",n)}}async function dd(e){const t={Filesystem:RD,CloudStorage:UD}[e],n=O1(t);window.internal.workers.shared[e]=n.shared,n.shared.id=window.id,window.internal.workers.list[e]=t,t.addEventListener("message",a=>{typeof a.data=="string"&&PD(a,e)}),await n.init()}async function OD(e,t,n){return new Promise((a,o)=>{try{const s=du();window.internal.workers.handlers[s]=async u=>{a(u)},Fi(e,{type:t,content:n,id:s})}catch(s){o(s)}})}const ZD=async()=>{console.log("Staring workers...");try{await dd("Filesystem")}catch(e){console.error("Failed to create Filesystem worker:",e)}try{await dd("CloudStorage")}catch(e){console.error("Failed to create Cloud storage worker:",e)}return!0};let G1=null;async function GD(e){G1=new Date().getTime(),Vf.render(Y.jsx(cn.StrictMode,{children:Y.jsxs("div",{id:"main",style:{padding:"50px",height:"calc(100% - 100px)",width:"calc(100% - 100px)",overflow:"hidden"},children:[Y.jsxs("div",{style:{background:"#edf9ff",height:"40%"},children:[Y.jsxs("h1",{style:{fontSize:"1.2rem"},children:['Päivitetään "',e,'" tallennetta uudempaan versioon. Odota hetki, siirrämme sinut kohta Matikkaeditori.fi-sovellukseen.']}),Y.jsxs("h3",{children:["Jos sivu jäätyy tai saat virheilmoituksen, ota yhteyttä ",Y.jsx("b",{children:"masterminds@testausserveri.fi"}),"."]}),Y.jsx("p",{children:Y.jsxs("i",{children:['Upgrading "',e,'" save data!',Y.jsx("br",{}),"If the page freezes, contact masterminds@testausserveri.fi."]})})]}),Y.jsx("div",{style:{position:"absolute",top:"40%",marginTop:"10px",height:"40%",width:"80%",overflowY:"scroll",scrollPaddingBottom:"100%",scrollSnapType:"y mandatory",overflowX:"hidden",scrollBehavior:"smooth"},children:Y.jsx("p",{id:"progress",style:{scrollPaddingBottom:"100%",scrollSnapType:"y mandatory"}})})]})}),document.getElementById("root")),document.getElementById("main").parentElement.style.overflowX="hidden"}async function Tt(e,t,n,a){const o=`[ ${((new Date().getTime()-G1)/1e3).toFixed(3)} s ]`,s=a?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):e;document.getElementById("progress").innerHTML+=(t?"":"
")+(n?"":`${o} `)+s,document.getElementById("progress").parentElement.scrollTop=document.getElementById("progress").parentElement.scrollHeight}function F1(e){var n,a;const t=[[]];for(const o of e.body.children[0].childNodes)o.nodeName.toLowerCase()!=="div"&&(o.nodeName.toLowerCase()==="br"&&t.push([]),t[t.length-1<0?0:t.length-1].push(o));for(const o of t.reverse()){const s=document.createElement("div");s.append(...o),e.body.children[0].children[0].before(s)}for(const o of e.body.children[0].children)if(!o.className.includes("math-editor")&&o.style.display!=="none"){if(o.tagName.toLowerCase()==="img")if(o.hasAttribute("style")){const s=document.createElement("math");s.setAttribute("data",btoa(o.getAttribute("alt")!==null&&o.getAttribute("alt").length!==0?o.getAttribute("alt"):"Unset"));const u=document.createElement("div");u.appendChild(s),o.after(u),o.remove()}else{const s=document.createElement("div");o.after(s),s.appendChild(o)}for(const s of o.children)if(o.style.display!=="none"){if(s.tagName.toLowerCase()==="img"&&s.hasAttribute("style")){const u=document.createElement("math");u.setAttribute("math",btoa(s.getAttribute("alt")!==null&&s.getAttribute("alt").length!==0?s.getAttribute("alt"):"Unset")),s.after(u),s.remove()}s.tagName.toLowerCase()==="#text"&&(s.textContent=((a=(n=new DOMParser().parseFromString(s.textContent,"text/html"))==null?void 0:n.documentElement)==null?void 0:a.textContent)??"",s.textContent=s.textContent.trimRight())}}try{return ae.toEmbedded(e.body.children[0])}catch(o){return Tt("      Yritetään uudelleen...",!1,!0),console.error(o),F1()}}const Jh={async legacy(){return new Promise(async e=>{GD("legacy"),Tt("Käynnistetään tiedostojärjestelmää...",!0),await dd("Filesystem");const t=await window.internal.workers.api("Filesystem","init",{type:0});if(Tt("Onnistui!"),Tt("Luetaan vanha tallenne..."),!localStorage.getItem("data"))Tt("Vanhaa tallennetta ei löydetty.");else try{const o=localStorage.getItem("data").split("");o[0]==='"'&&o.splice(0,1),o[o.length-1]==='"'&&o.pop();const s=JSON.parse(o.join("")||"[]");Tt("Onnistui!"),Tt(`Löydettiin ${Object.keys(s).length} tallenne(tta). Päivitetään...`);for await(const u of Object.keys(s)){const c=du(),I=s[u],{date:y}=I,N=new Date(y);let D=I.answer.split("
")[0].split("
")[0].replace(/ /g," ").trim();if(D.length===0&&(D="Unnamed"),D.includes("
${I.answer}
`,"text/html");Tt(`    > (${u}) -> ${c}`,void 0,void 0);const P=F1(z);Tt(" Luettu.",!0,!0),await window.internal.workers.api("Filesystem","write",{instance:t.instance,id:c,write:{name:D,type:0,data:P,date:N.getTime()},location:!0}),Tt(" Päivitetty.",!0,!0)}}catch(o){console.log("%cAlku ----------------------------","color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;"),console.error(o),console.trace("Trace"),console.log("%cLoppu ----------------------------","color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;"),Tt("Päivitys epäonnistui. Lisätietoja:"),Tt(`

${o.message}

`,!1,!0),Tt(`

${o.stack}

`,!1,!0);return}localStorage.setItem("version",window.internal.version),Tt("Päivitys valmis. Käynnistetään editori...");let n=6;const a=setInterval(()=>{n-=1,n===0?(Tt("Nyt!",!1,!0),clearInterval(a),e()):Tt(n,!1,!0)},1e3)})}};function Y1(){return{list:["log","error","info","trace","warn","debug"],cache:{},logs:[],color:{warn:"yellow",error:"red",log:"limegreen",default:"limegreen"}}}function Xh(e){try{return JSON.stringify(e)}catch{return"{ stringify failed }"}}function _1(e){return typeof e=="string"?[e]:typeof e=="object"&&!Array.isArray(e)?[Xh(e)]:e.map(t=>typeof t=="object"&&!Array.isArray(t)?Xh(t):Array.isArray(t)?_1(t):t).filter(t=>t.length!==0).map(t=>t.toString()).map(t=>t.replace(/\\"/g,'"'))}const as=e=>{if(console.rewritten!==!0){(e===void 0||e.console===void 0)&&(e={internal:{console:Y1()},isDummy:!0});for(const t of e.internal.console.list){e.internal.console.cache[t]=console[t];const{color:n}=e.internal.console;console[t]=(...a)=>{if(a[0]!==void 0&&typeof a[0].startsWith=="function"&&a[0].startsWith("[")&&a[0].includes("]")){let o=`${a[0].split("]")[0]}]`;a[0]=a[0].split("]")[1],o=`%c${o}`,a[0]!==""&&(a[0]=a[0].trimLeft(),a.splice(0,0,"")),e.internal.console.cache[t](`${o}%s`,`color: ${n[t]}`??`${n.default};`,...a)}else if(a.includes("%c"))e.internal.console.cache[t](...a);else{const o="%c[ ❓ ] ";e.internal.console.cache[t](o,`color: ${n[t]}`??`${n.default};`,...a)}if(!e.isDummy){const o=_1(a);e.internal.console.logs.push(`[ ${new Date().getTime()-e.internal.timeAtLive}s - ${t.toUpperCase()} ] ${o.join(" ")}`),e.internal.console.logs.length>1e3&&e.internal.console.logs.shift()}}}console.rewritten=!0}},FD=()=>new Promise(e=>{window.internal={workers:{list:{},handlers:{},shared:{},api:OD},console:Y1(),ui:{activeFilesystemInstance:null,activeLocation:null,editor:null,saved:!1},timeAtLive:new Date().getTime(),version:"beta",versionHash:""},window.internal.workers.essentials=new Promise(a=>{window.internal.workers.essentialsResolve=a}),fetch("/VERSION").then(a=>a.text()).then(a=>{a.startsWith("VERSION: ")?window.internal.versionHash=a.replace(/\n/g,"").trim().split(": ").pop():window.internal.versionHash="Development version"}).catch(a=>{window.internal.versionHash="Unknown",console.error("Failed to get version number",a)});let t=localStorage.getItem("id");t==null&&(t=du()),localStorage.setItem("id",t),window.id=t;const n=localStorage.getItem("version");n!==null?n!==window.internal.version?(typeof Jh[n]!="function"&&(alert(`Upgrading to "${window.internal.version}" from "${n}" is not possible at this time.`),window.location.reload()),Jh[n]().then(()=>{console.log(`--- Upgraded to ${window.internal.version} ---`),as(window),e()}).catch(a=>{console.error(`[ Index ] Failed to upgrade: ${a.stack}`)})):(console.log(`No upgrades to be done. (${n})`),as(window),e()):localStorage.length>1?(console.error("[ Index ] Version is null!"),confirm("Application version is unknown. Would you like to reset it?")&&(localStorage.setItem("version",window.internal.version),as(window),e())):(localStorage.setItem("version",window.internal.version),as(window),e(window))});window.reset=async()=>{localStorage.clear(),sessionStorage.clear(),document.cookie="",typeof window.indexedDB.databases=="function"?window.indexedDB.databases().then(e=>{for(let t=0;t{window.location.reload()}):alert("Please clear indexDB manually.")};window.api=async(e,t,n)=>{const a=await window.internal.workers.api(e,t,n);console.log("Response:",a)};window.addEventListener("beforeunload",e=>{if(!window.internal.ui.saved){const t=`Jotain on vielä tallentamatta +Älä sulje vielä sivua!`;return(e||window.event).returnValue=t,t}return null});(async()=>{try{AD()?(console.log("Browser compatibility checks passed!"),await FD(),ZD(),Vf.render(Y.jsx(cn.StrictMode,{children:Y.jsx(xD,{})}),document.getElementById("root"))):(console.log("Incompatible browser!"),Vf.render(Y.jsx(cn.StrictMode,{children:Y.jsx("p",{children:"Incompatible browser!"})}),document.getElementById("root")))}catch(e){CD("Index",e)}})(); diff --git a/assets/index-7d03b380.css b/assets/index-7d03b380.css new file mode 100644 index 0000000..fef5b0a --- /dev/null +++ b/assets/index-7d03b380.css @@ -0,0 +1 @@ +:root{--radius: 5px;--shadow: 0 3px 30px rgba(0, 0, 0, .1);--small-shadow: 0 3px 10px rgba(0, 0, 0, .05)}body,button{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::selection{background:#a9c0cc}html{overflow:hidden}body{background-color:#edf9ff;color:#000000e6;--document-width: 100%}.app{display:flex;height:calc(100% - 52px)}.document{flex:1;padding:0;overflow:hidden}.document .head{width:calc(var(--document-width) - 3rem - 3rem);margin:1.5rem auto;display:flex;justify-content:space-between}@media only screen and (max-width: 800px){.document .head{width:calc(var(--document-width) - 1rem - 1rem);margin-top:1rem}}.document .head h2{font-size:1.5em;margin:0;position:relative;display:inline-block;line-height:3rem;transition:line-height .15s}.document .head h2.slimmer{line-height:2rem}.document .head h2:focus{outline:none}.document .head h2:after{transition:border-color .2s,background-color .2s,opacity .2s;opacity:0}.document .head h2:hover:after,.document .head h2:focus:after{content:" ";position:absolute;top:0;left:-10px;width:calc(100% + 20px);height:100%;border:1px solid #d5e0e5;background-color:#fff;border-radius:3px;z-index:-5;opacity:.5;box-shadow:var(--small-shadow)}.document .head h2:focus:after{opacity:1}.document .head .headSecondary{display:flex;align-content:center;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center}.document .head .saveIndicator{border:4px solid #d5e0e5;border-top:4px solid #2FA3CF;border-radius:50%;min-width:20px;min-height:20px;margin-right:15px;animation:fullSpin 2.2s linear infinite}.document .head .savedIndicator{margin-right:15px;width:28px;height:28px}.document .head .savedIndicator:before{content:"✓";display:inline-block;font-size:30px;margin-top:-5px;color:#2fa3cf;font-weight:600;padding:0 6px 0 0}@keyframes fullSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.document .head p{margin-right:5px}.page{background-color:#fff;margin:1rem auto;width:var(--document-width);box-shadow:var(--shadow);border-radius:var(--radius);display:flex}.page:focus{outline:none}.page:before{content:" ";width:1px;margin-left:-1px;float:left;height:0;padding-top:141%}.page:after{content:"";display:table;clear:both}.navigation{width:calc(100% - 3rem);background-color:#fff;padding:1rem 1.5rem;box-shadow:var(--small-shadow);display:flex;justify-content:space-between}.navigation div{display:flex;justify-content:center}.navigation div a.iconLink{margin-left:1.2rem;color:#2fa3cf;transition:filter .1s}.navigation p{display:inline;margin:0;font-style:italic;font-size:11px;line-height:20px;height:20px;color:gray}.navigation div a.iconLink:hover{filter:brightness(.75)}.navigation img{height:1rem}.navLink{margin-left:1.2rem;color:#2fa3cf;cursor:pointer;position:relative}.navLink:hover:after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift 0.8s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%232FA3CF' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");background-position:0 100%;background-size:auto 6px;background-repeat:repeat-x;text-decoration:none;content:" ";width:100%;height:100%;position:absolute;top:4px;left:0;pointer-events:none}.head .mobileBack{margin-right:1rem;background-color:transparent;color:#2fa3cf;border-color:transparent;box-shadow:none}.head .mobileBack:hover{background-color:transparent;color:#2fa3cf}.head .headMain{display:flex;flex-direction:column}.headMain .documentPath{font-size:.9rem;line-height:1rem;color:#000000b3;height:0;overflow:hidden;transition:height .15s}.headMain .documentPath.expanded{height:1rem}.documentPathItem{cursor:pointer}.documentPathItem:hover{color:#2fa3cf}.editor{display:block;flex:1;padding:3rem;font:17px Times New Roman;line-height:1.3;overflow-y:scroll;max-height:73vh;overflow-wrap:break-word}.editor div{display:block}@media only screen and (max-width: 800px){.editor{padding:1rem}}.editor:focus{outline:none}.editor attachment{text-align:center;vertical-align:middle;display:inline-block;cursor:pointer;resize:both;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none;max-width:100%;margin:6px}.editor:focus attachment{border:1px solid #d5e0e5;background-color:#edf9ff;border-radius:1px;margin:5px}.droptext{width:calc(var(--document-width) - 3rem - 3rem);margin:1.5 rem auto 1.5 rem auto;display:none;justify-content:space-between;margin-bottom:-10px}.mathTools{display:none;width:95px;height:32px;position:absolute;margin-top:1px}.mathTools ul{list-style:none;width:100%;height:100%;margin:0;padding:0}.mathTools ul li{position:relative;background-color:#edf9ff;border-radius:1px;width:30px;height:30px;margin:0;padding:0;display:block;float:left;box-shadow:0 0 3px 1px #0000003a;text-align:center;justify-content:center;line-height:30px;transition:margin-top .2s,z-index .2s;z-index:8;cursor:pointer}.mathTools ul li:hover{margin-top:1px;z-index:10}.mathTools ul li svg{color:#709ac0}.editor img{height:100%;width:auto;outline:none;margin:1px}.editor:focus img{border:1px solid #d5e0e5;margin:0;background-color:#edf9ff;border-radius:1px}.mathContainer.open+br{display:none}.mathContainer span,.mathImage{display:inline-block}[x-tooltip]{position:relative}[x-tooltip]:after{position:absolute;opacity:0;pointer-events:none;content:attr(x-tooltip);font-size:14px;left:0;top:calc(100% + 10px);border-radius:1px;box-shadow:0 0 3px 1px #0000003a;background-color:#edf9ff;z-index:10;white-space:nowrap;width:auto;padding:4px;margin-left:-20px;transform:translateY(-20px);transition:all .15s cubic-bezier(.25,.8,.25,1)}[x-tooltip]:hover:after{opacity:1;transform:translateY(0);transition-duration:.3s}.clean-scrollbar::-webkit-scrollbar{border:0px;padding:0;width:8px;display:block;background-color:#fff;border-radius:var(--radius);box-shadow:var(--small-shadow)}.clean-scrollbar::-webkit-scrollbar-thumb{background-color:#2fa3cf;border-radius:var(--radius)}.clean-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#2fa2cfb9}.inputContainer.open{display:flex;flex-direction:row;flex-wrap:wrap;vertical-align:middle;width:100%;box-shadow:0 0 3px #0000003a;border-left:5px solid #709AC0;background-color:#edf9ff;border-radius:3px 0 0 3px;height:auto;margin-bottom:5px;margin-top:5px;padding:8px}.inputContainer.closed{cursor:pointer;display:inline-flex;vertical-align:middle;margin-left:3px;margin-right:3px;border-radius:4px;margin-bottom:5px}.inputContainer img{padding:5px}.inputSection.labels{background-color:#edf9ff;width:35px;border-radius:1px}.inputSection.labels :first-child{margin-bottom:3px}.inputSection.limit{width:8px}.inputSection.info{float:right;display:block;margin-top:5px;margin-left:5px;margin-bottom:0;font-size:14px;color:red;font-style:italic}.inputSection.inputs{width:calc(100% - 53px);height:auto;padding-left:10px;background-color:#fff}.inputSection{display:flex;align-content:center;flex-direction:column;justify-content:center}.inputField{width:100%;height:100%;vertical-align:middle}.rawLatex{font-size:18px;font-family:Symbola;border:0px;margin:0;padding:0;outline:none}.inputLabel{width:35px;height:35px;line-height:35px;text-align:center;border-radius:5px;margin:0;font-size:1rem;cursor:pointer;background-color:#fff;box-shadow:var(--small-shadow);color:#000}.inputLabel.active{background-color:#e1e9ec}.inputLabel svg{height:calc(100% - 15px);width:calc(100% - 15px);padding:7.5px}.inputLabel:hover{background-color:#f6f8f9}.dropdownContainer{position:relative}.dropdown{position:absolute;z-index:100;top:calc(100% + .5rem);background-color:#fff;border-radius:var(--radius);box-shadow:var(--small-shadow);cursor:pointer;top:100%;margin-top:.5em;transition:transform .2s,opacity .2s;transform-origin:top right;right:0;color:#111}.dropdown.leftOrigin{transform-origin:top left;right:auto;left:0}.dropdown.rightOrigin{transform-origin:top right;right:0;left:auto}.dropdown ul{list-style-type:none;margin:0;padding:0}.dropdown li{padding:.5rem 2rem .5rem 1rem;min-width:140px}.dropdown li:nth-child(1){border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.dropdown li:nth-last-child(1){border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}.dropdown li:hover{background-color:#eee}.dropdown.hasIcons .dropdownIcon{width:1.7rem;display:inline-block}.dropdown li.disabled{background-color:#eee;color:#999;cursor:default}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;overflow:hidden;z-index:1}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}.sidebar{padding:0 1.5rem;width:18%;flex-shrink:0}.sidebar::-webkit-scrollbar{display:none}@media only screen and (max-width: 1140px){.sidebar{width:22%}}@media only screen and (max-width: 950px){.sidebar{width:26%}}.filesystemLevel{padding:0;margin:0;list-style-type:none}.filesystemLevelParent{height:calc(100% - 6rem - 75px);overflow-y:scroll;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;padding-right:8px}@-webkit-keyframes fadeInDown{0%{opacity:0;margin-top:-10px}60%{transform:translateY(0)}to{margin-top:0}}@keyframes fadeInDown{0%{opacity:0;margin-top:-10px}60%{transform:translateY(0)}to{margin-top:0}}.fadeInDown,.filesystemLevel li[data-animation=fadeInDown]{-webkit-animation-name:fadeInDown;animation-name:fadeInDown;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.filesystemLevel li:not(.dropdown li){margin-bottom:.7rem;width:calc(100% - 1.4rem);background-color:#fff;padding:.7rem;box-shadow:var(--small-shadow);border-radius:var(--radius);cursor:pointer;display:flex;transition:background-color .15s ease-out;border:1px solid transparent}.filesystemLevel>span>span{margin-bottom:.7rem;width:calc(100% - .7rem);background-color:#fff;height:62px;box-shadow:var(--small-shadow);border-radius:var(--radius);cursor:pointer;transition:background-color .15s ease-out;border:1px solid transparent}.filesystemLevel li:hover:not(.dropdown li:hover){background-color:#f6f8f9}.filesystemLevel li.selected:not(.dropdown li.selected){background-color:#e1e9ec}.filesystemLevel li .ellipsis{display:inline-block;display:flex;justify-content:space-around;align-items:center;border:none;background-color:transparent;width:2rem;height:2rem;border-radius:2rem;cursor:pointer;transition:background-color .05s ease-out,box-shadow .05s ease-out;position:relative;color:#555}.filesystemLevel li .ellipsis:hover{box-shadow:var(--small-shadow);background-color:#0000000a}.filesystemLevel li .ellipsis:active{color:#333}.filesystemLevel li:focus{outline:none}.filesystemLevel li.fsFolder:focus{border:1px solid #ced8db}.filesystemLevel li .content{flex:1;width:0}.filesystemLevel li .action{flex-shrink:0;display:flex;align-items:center}.filesystemLevel li .content span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.filesystemLevel li .fsIcon{margin-right:.5rem}.filesystemLevel li .date{font-size:.8em;color:#00000080;display:block}.sidebar .head{display:flex;margin:1.5rem auto;height:3rem}.head button.primary{flex:1}.head button.folderSmall{margin-left:5px;width:3rem;background-color:transparent;border:1px solid #2FA3CF;color:#2fa3cf}.head button.folderSmall:hover,.head .secondary:hover,.folderUpButton:hover,.folderUpButton:focus{background-color:#2a92ba;border-color:#2a92ba;outline:none;color:#edf9ff}.head button,.folderUpButton{height:100%;font-size:1rem;cursor:pointer;background-color:#2fa3cf;border:none;border-radius:var(--radius);box-shadow:var(--small-shadow);border:1px solid #2a92ba;color:#edf9ff;transition:background-color .1s ease-out,color .1s ease-out}.head .secondary,.folderUpButton{background-color:transparent;border:1px solid #2FA3CF;color:#2fa3cf;height:3rem;padding:0 1rem}.folderUpButton{height:auto;width:100%;text-align:left;padding:.7rem;margin-bottom:.7rem}.head button:hover{background-color:#2a92ba}.head button:focus{outline:none}.editableName:focus{outline:none}.equationSidebar{height:100%;max-height:100%;overflow-y:scroll;overflow-x:hidden}.symbolGroup{margin-bottom:1rem;overflow:hidden;transition:max-height .1s ease-in}.symbolGroup h3{font-size:.8em;color:#00000080;display:block;text-transform:uppercase;margin:0}.symbols{display:grid;grid-template-columns:repeat(8,1fr);grid-auto-rows:auto;gap:.2rem;margin-top:.5rem}.symbols div{display:inline-block;display:flex;justify-content:center;align-items:center;background-color:#fff;aspect-ratio:1/1;box-shadow:var(--small-shadow);border-radius:var(--radius);cursor:pointer;transition:background-color .05s ease-out;position:relative}.symbols div:before{content:"";display:block;padding-top:100%}.symbols div img{position:absolute;width:70%;height:70%;object-fit:contain}.symbols div:hover{background-color:#f6f8f9}.mobileToolbar{position:fixed;bottom:0;left:0;width:100%;background-color:#fff;border-top:1px solid #f6f8f9;padding:1rem} diff --git a/src/assets/testausserveri.svg b/assets/testausserveri-4f88ba64.svg similarity index 100% rename from src/assets/testausserveri.svg rename to assets/testausserveri-4f88ba64.svg diff --git a/public/browserconfig.xml b/browserconfig.xml similarity index 100% rename from public/browserconfig.xml rename to browserconfig.xml diff --git a/public/favicon-16x16.png b/favicon-16x16.png similarity index 100% rename from public/favicon-16x16.png rename to favicon-16x16.png diff --git a/public/favicon-32x32.png b/favicon-32x32.png similarity index 100% rename from public/favicon-32x32.png rename to favicon-32x32.png diff --git a/public/favicon.ico b/favicon.ico similarity index 100% rename from public/favicon.ico rename to favicon.ico diff --git a/index.html b/index.html index e55dca9..1294ac0 100644 --- a/index.html +++ b/index.html @@ -48,11 +48,13 @@ flex-direction: column; } + +
- + diff --git a/public/manifest.json b/manifest.json similarity index 100% rename from public/manifest.json rename to manifest.json diff --git a/public/mstile-150x150.png b/mstile-150x150.png similarity index 100% rename from public/mstile-150x150.png rename to mstile-150x150.png diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index adf9c41..0000000 --- a/package-lock.json +++ /dev/null @@ -1,6405 +0,0 @@ -{ - "name": "matikkaeditori.fi-v3", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "matikkaeditori.fi-v3", - "version": "1.0.0", - "license": "GPLv3", - "dependencies": { - "@fortawesome/fontawesome-svg-core": "^6.1.1", - "@fortawesome/free-brands-svg-icons": "^6.1.1", - "@fortawesome/free-regular-svg-icons": "^6.1.1", - "@fortawesome/free-solid-svg-icons": "^6.1.1", - "@fortawesome/react-fontawesome": "^0.1.18", - "buffer": "^6.0.3", - "comlink": "^4.3.1", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "jquery": "^3.6.0", - "localforage": "^1.10.0", - "lodash": "^4.17.21", - "prop-types": "^15.8.1", - "react": "^17.0.1", - "react-dom": "^17.0.1", - "react-loading-skeleton": "^3.0.3" - }, - "devDependencies": { - "@vitejs/plugin-react": "^4.1.0", - "eslint": "^8.12.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.22.0", - "vite": "^4.4.9" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", - "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz", - "integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.0", - "@babel/parser": "^7.23.0", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.25.6", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.23.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz", - "integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.25.6" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.22.5.tgz", - "integrity": "sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.22.5.tgz", - "integrity": "sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", - "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.0.tgz", - "integrity": "sha512-rBevIsj2nclStJ7AxTdfsa3ovHb1H+qApwrxcTVo+NNdeJiB9V75hsKfrkG5AwNcRUNxrPPiScGYCNmLMoh8pg==", - "hasInstallScript": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/fontawesome-svg-core": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.0.tgz", - "integrity": "sha512-Cf2mAAeMWFMzpLC7Y9H1I4o3wEU+XovVJhTiNG8ZNgSQj53yl7OCJaS80K4YjrABWZzbAHVaoHE1dVJ27AAYXw==", - "hasInstallScript": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "6.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/free-brands-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.2.0.tgz", - "integrity": "sha512-fm1y4NyZ2qKYNmYhdMz9VAWRw1Et7PMHNunSw3W0SVAwKwv6o0qiJworLH3Y9SnmhHzAymXJwCX1op22FFvGiA==", - "hasInstallScript": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "6.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/free-regular-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.0.tgz", - "integrity": "sha512-M1dG+PAmkYMTL9BSUHFXY5oaHwBYfHCPhbJ8qj8JELsc9XCrUJ6eEHWip4q0tE+h9C0DVyFkwIM9t7QYyCpprQ==", - "hasInstallScript": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "6.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/free-solid-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.0.tgz", - "integrity": "sha512-UjCILHIQ4I8cN46EiQn0CZL/h8AwCGgR//1c4R96Q5viSRwuKVo0NdQEc4bm+69ZwC0dUvjbDqAHF1RR5FA3XA==", - "hasInstallScript": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "6.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/react-fontawesome": { - "version": "0.1.19", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.19.tgz", - "integrity": "sha512-Hyb+lB8T18cvLNX0S3llz7PcSOAJMLwiVKBuuzwM/nI5uoBw+gQjnf9il0fR1C3DKOI5Kc79pkJ4/xB0Uw9aFQ==", - "dependencies": { - "prop-types": "^15.8.1" - }, - "peerDependencies": { - "@fortawesome/fontawesome-svg-core": "~1 || ~6", - "react": ">=16.x" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", - "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", - "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.2.tgz", - "integrity": "sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.3.0" - } - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true, - "optional": true, - "peer": true - }, - "node_modules/@vitejs/plugin-react": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.1.0.tgz", - "integrity": "sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.22.20", - "@babel/plugin-transform-react-jsx-self": "^7.22.5", - "@babel/plugin-transform-react-jsx-source": "^7.22.5", - "@types/babel__core": "^7.20.2", - "react-refresh": "^0.14.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.2.0" - } - }, - "node_modules/@vitejs/plugin-react/node_modules/react-refresh": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", - "integrity": "sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "optional": true, - "peer": true - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001541", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001541.tgz", - "integrity": "sha512-bLOsqxDgTqUBkzxbNlSBt8annkDpQB9NdzdTbO2ooJ+eC/IQcvDspDc058g84ejCelF7vHUx57KIOjEecOHXaw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/comlink": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/comlink/-/comlink-4.3.1.tgz", - "integrity": "sha512-+YbhUdNrpBZggBAHWcgQMLPLH1KDF3wJpeqrCKieWQ8RL7atmgsgTQko1XEBK6PsecfopWNntopJ+ByYG1lRaA==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "engines": { - "node": ">=10" - } - }, - "node_modules/dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - }, - "node_modules/electron-to-chromium": { - "version": "1.4.536", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.536.tgz", - "integrity": "sha512-L4VgC/76m6y8WVCgnw5kJy/xs7hXrViCFdNKVG8Y7B2isfwrFryFyJzumh3ugxhd/oB1uEaEEvRdmeLrnd7OFA==", - "dev": true - }, - "node_modules/es-abstract": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz", - "integrity": "sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.5", - "string.prototype.trimstart": "^1.0.5", - "unbox-primitive": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", - "dev": true, - "dependencies": { - "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.11.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.15.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" - } - }, - "node_modules/eslint-config-airbnb-base/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", - "dev": true, - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", - "has": "^1.0.3", - "is-core-module": "^2.8.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", - "tsconfig-paths": "^3.14.1" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.31.10", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz", - "integrity": "sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.5", - "array.prototype.flatmap": "^1.3.0", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.5", - "object.fromentries": "^2.0.5", - "object.hasown": "^1.1.1", - "object.values": "^1.1.5", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", - "dev": true, - "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jquery": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.1.tgz", - "integrity": "sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==" - }, - "node_modules/js-sdsl": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", - "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", - "dev": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lie": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", - "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", - "dependencies": { - "immediate": "~3.0.5" - } - }, - "node_modules/localforage": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", - "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", - "dependencies": { - "lie": "3.1.1" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "dev": true - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", - "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" - }, - "peerDependencies": { - "react": "17.0.2" - } - }, - "node_modules/react-loading-skeleton": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/react-loading-skeleton/-/react-loading-skeleton-3.1.0.tgz", - "integrity": "sha512-j1U1CWWs68nBPOg7tkQqnlFcAMFF6oEK6MgqAo15f8A5p7mjH6xyKn2gHbkcimpwfO0VQXqxAswnSYVr8lWzjw==", - "peerDependencies": { - "react": ">=16.8.0" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/terser": { - "version": "5.15.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", - "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "optional": true, - "peer": true - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "4.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", - "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", - "dev": true, - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite/node_modules/rollup": { - "version": "3.29.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", - "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - } - }, - "@babel/compat-data": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", - "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", - "dev": true - }, - "@babel/core": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz", - "integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==", - "dev": true, - "requires": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.0", - "@babel/parser": "^7.23.0", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "dependencies": { - "convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } - } - }, - "@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", - "dev": true, - "requires": { - "@babel/types": "^7.25.6", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - } - } - } - }, - "@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "dependencies": { - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - }, - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - } - } - }, - "@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true - }, - "@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "requires": { - "@babel/types": "^7.22.15" - } - }, - "@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true - }, - "@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", - "dev": true - }, - "@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", - "dev": true - }, - "@babel/helpers": { - "version": "7.23.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz", - "integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==", - "dev": true, - "requires": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0" - } - }, - "@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - } - }, - "@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", - "dev": true, - "requires": { - "@babel/types": "^7.25.6" - } - }, - "@babel/plugin-transform-react-jsx-self": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.22.5.tgz", - "integrity": "sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-react-jsx-source": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.22.5.tgz", - "integrity": "sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" - } - }, - "@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", - "dev": true, - "requires": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - } - }, - "@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "dev": true, - "optional": true - }, - "@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "dev": true, - "optional": true - }, - "@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "dev": true, - "optional": true - }, - "@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "dev": true, - "optional": true - }, - "@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "dev": true, - "optional": true - }, - "@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "dev": true, - "optional": true - }, - "@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "dev": true, - "optional": true - }, - "@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "dev": true, - "optional": true - }, - "@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "dev": true, - "optional": true - }, - "@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "dev": true, - "optional": true - }, - "@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "dev": true, - "optional": true - }, - "@eslint/eslintrc": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", - "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "@fortawesome/fontawesome-common-types": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.0.tgz", - "integrity": "sha512-rBevIsj2nclStJ7AxTdfsa3ovHb1H+qApwrxcTVo+NNdeJiB9V75hsKfrkG5AwNcRUNxrPPiScGYCNmLMoh8pg==" - }, - "@fortawesome/fontawesome-svg-core": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.0.tgz", - "integrity": "sha512-Cf2mAAeMWFMzpLC7Y9H1I4o3wEU+XovVJhTiNG8ZNgSQj53yl7OCJaS80K4YjrABWZzbAHVaoHE1dVJ27AAYXw==", - "requires": { - "@fortawesome/fontawesome-common-types": "6.2.0" - } - }, - "@fortawesome/free-brands-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.2.0.tgz", - "integrity": "sha512-fm1y4NyZ2qKYNmYhdMz9VAWRw1Et7PMHNunSw3W0SVAwKwv6o0qiJworLH3Y9SnmhHzAymXJwCX1op22FFvGiA==", - "requires": { - "@fortawesome/fontawesome-common-types": "6.2.0" - } - }, - "@fortawesome/free-regular-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.0.tgz", - "integrity": "sha512-M1dG+PAmkYMTL9BSUHFXY5oaHwBYfHCPhbJ8qj8JELsc9XCrUJ6eEHWip4q0tE+h9C0DVyFkwIM9t7QYyCpprQ==", - "requires": { - "@fortawesome/fontawesome-common-types": "6.2.0" - } - }, - "@fortawesome/free-solid-svg-icons": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.0.tgz", - "integrity": "sha512-UjCILHIQ4I8cN46EiQn0CZL/h8AwCGgR//1c4R96Q5viSRwuKVo0NdQEc4bm+69ZwC0dUvjbDqAHF1RR5FA3XA==", - "requires": { - "@fortawesome/fontawesome-common-types": "6.2.0" - } - }, - "@fortawesome/react-fontawesome": { - "version": "0.1.19", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.19.tgz", - "integrity": "sha512-Hyb+lB8T18cvLNX0S3llz7PcSOAJMLwiVKBuuzwM/nI5uoBw+gQjnf9il0fR1C3DKOI5Kc79pkJ4/xB0Uw9aFQ==", - "requires": { - "prop-types": "^15.8.1" - } - }, - "@humanwhocodes/config-array": { - "version": "0.11.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", - "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true - }, - "@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true - }, - "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@types/babel__core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", - "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", - "dev": true, - "requires": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@types/babel__traverse": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.2.tgz", - "integrity": "sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg==", - "dev": true, - "requires": { - "@babel/types": "^7.3.0" - } - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true, - "optional": true, - "peer": true - }, - "@vitejs/plugin-react": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.1.0.tgz", - "integrity": "sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==", - "dev": true, - "requires": { - "@babel/core": "^7.22.20", - "@babel/plugin-transform-react-jsx-self": "^7.22.5", - "@babel/plugin-transform-react-jsx-source": "^7.22.5", - "@types/babel__core": "^7.20.2", - "react-refresh": "^0.14.0" - }, - "dependencies": { - "react-refresh": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", - "integrity": "sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==", - "dev": true - } - } - }, - "acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" - } - }, - "buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "optional": true, - "peer": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001541", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001541.tgz", - "integrity": "sha512-bLOsqxDgTqUBkzxbNlSBt8annkDpQB9NdzdTbO2ooJ+eC/IQcvDspDc058g84ejCelF7vHUx57KIOjEecOHXaw==", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "comlink": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/comlink/-/comlink-4.3.1.tgz", - "integrity": "sha512-+YbhUdNrpBZggBAHWcgQMLPLH1KDF3wJpeqrCKieWQ8RL7atmgsgTQko1XEBK6PsecfopWNntopJ+ByYG1lRaA==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" - }, - "dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - }, - "electron-to-chromium": { - "version": "1.4.536", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.536.tgz", - "integrity": "sha512-L4VgC/76m6y8WVCgnw5kJy/xs7hXrViCFdNKVG8Y7B2isfwrFryFyJzumh3ugxhd/oB1uEaEEvRdmeLrnd7OFA==", - "dev": true - }, - "es-abstract": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz", - "integrity": "sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.5", - "string.prototype.trimstart": "^1.0.5", - "unbox-primitive": "^1.0.2" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "dev": true, - "requires": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", - "dev": true, - "requires": { - "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.11.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.15.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "requires": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", - "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", - "has": "^1.0.3", - "is-core-module": "^2.8.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-plugin-react": { - "version": "7.31.10", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz", - "integrity": "sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA==", - "dev": true, - "requires": { - "array-includes": "^3.1.5", - "array.prototype.flatmap": "^1.3.0", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.5", - "object.fromentries": "^2.0.5", - "object.hasown": "^1.1.1", - "object.values": "^1.1.5", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.7" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - }, - "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", - "dev": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - } - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - }, - "ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", - "dev": true - }, - "immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - } - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true - }, - "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "jquery": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.1.tgz", - "integrity": "sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==" - }, - "js-sdsl": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", - "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lie": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", - "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", - "requires": { - "immediate": "~3.0.5" - } - }, - "localforage": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", - "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", - "requires": { - "lie": "3.1.1" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", - "dev": true - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", - "dev": true, - "requires": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - } - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true, - "peer": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "react-dom": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", - "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" - } - }, - "react-loading-skeleton": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/react-loading-skeleton/-/react-loading-skeleton-3.1.0.tgz", - "integrity": "sha512-j1U1CWWs68nBPOg7tkQqnlFcAMFF6oEK6MgqAo15f8A5p7mjH6xyKn2gHbkcimpwfO0VQXqxAswnSYVr8lWzjw==", - "requires": {} - }, - "regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - } - }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "peer": true - } - } - }, - "string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "terser": { - "version": "5.15.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", - "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "optional": true, - "peer": true - } - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true - }, - "tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "vite": { - "version": "4.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", - "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", - "dev": true, - "requires": { - "esbuild": "^0.18.10", - "fsevents": "~2.3.2", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "dependencies": { - "rollup": { - "version": "3.29.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", - "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } - } - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 33925b9..0000000 --- a/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "matikkaeditori.fi-v3", - "version": "1.0.0", - "license": "GPLv3", - "private": "true", - "author": "Eemil Sinkko, Mikael Hannolainen and contributors", - "dependencies": { - "@fortawesome/fontawesome-svg-core": "^6.1.1", - "@fortawesome/free-brands-svg-icons": "^6.1.1", - "@fortawesome/free-regular-svg-icons": "^6.1.1", - "@fortawesome/free-solid-svg-icons": "^6.1.1", - "@fortawesome/react-fontawesome": "^0.1.18", - "buffer": "^6.0.3", - "comlink": "^4.3.1", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "jquery": "^3.6.0", - "localforage": "^1.10.0", - "lodash": "^4.17.21", - "prop-types": "^15.8.1", - "react": "^17.0.1", - "react-dom": "^17.0.1", - "react-loading-skeleton": "^3.0.3" - }, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, - "devDependencies": { - "@vitejs/plugin-react": "^4.1.0", - "eslint": "^8.12.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.22.0", - "vite": "^4.4.9" - } -} diff --git a/public/safari-pinned-tab.svg b/safari-pinned-tab.svg similarity index 100% rename from public/safari-pinned-tab.svg rename to safari-pinned-tab.svg diff --git a/src/App.jsx b/src/App.jsx deleted file mode 100644 index b96a149..0000000 --- a/src/App.jsx +++ /dev/null @@ -1,279 +0,0 @@ -/* eslint-disable no-unused-vars */ -/* eslint-disable react/prop-types */ -/* eslint-disable react/react-in-jsx-scope */ -// Main app function -import "./css/main.css" -import { useEffect, useState } from "react" -import Document from "./components/Document.jsx" -import Sidebar from "./components/Sidebar.jsx" -import { EquationSidebar, MobileEquationToolbar } from "./components/EquationSidebar.jsx" -import MathTools from "./components/MathTools.jsx" -import useWindowDimensions from "./utils/useWindowDimensions" -import Navigation from "./components/Navigation.jsx" - -function App() { - // Return base page - // eslint-disable-next-line no-unused-vars - const [fsLevel, setFsLevel] = useState([]) - const [fsPath, setFsPath] = useState([{ - id: true, - name: "Juuri" - }]) - // id of active item e.g. open in the editor - const [activeItem, setActiveItem] = useState("") - - // id of lastly created item - const [createdItem, setCreatedItem] = useState("") - - const { width: windowWidth } = useWindowDimensions() - - const isMobile = windowWidth < 800 - // 0: file tree - // 1: editor - // 2: equations - const [mobileViewState, setMobileViewState] = useState(0) - - async function newFsItem( - type, newLevel, location - ) { - const documentId = (await window.internal.workers.api( - "Filesystem", "write", { - instance: window.internal.ui.activeFilesystemInstance, - write: { - type, - name: (type === 0 ? "Uusi vastaus" : "Uusi kansio"), - data: "" - }, - location: location || fsPath[fsPath.length - 1].id - } - )).write - - const data = (await window.internal.workers.api( - "Filesystem", "read", { - id: documentId, - instance: window.internal.ui.activeFilesystemInstance - } - )).read - - const fsItem = { - ...data, - type, - t: type, - i: documentId - } - - const l = newLevel || fsLevel - const copy = [...l] - copy.push(fsItem) - setFsLevel(copy) - - setCreatedItem(fsItem.i) - if (type === 0) setActiveItem(fsItem.i) - } - - // select first item - we need this usually only just in the first run - async function setInitialActiveItem(level) { - if (level.length === 0) { - await newFsItem(0, level) - return - } - const l = [...level] - l.reverse() - const item = l.find((innerItem) => innerItem.t === 0) - setActiveItem(item.i) - } - - async function deleteDocument(documentId) { - await window.internal.workers.api( - "Filesystem", "remove", { - instance: window.internal.ui.activeFilesystemInstance, - id: documentId - } - ) - - let copy = [...fsLevel] - const i = copy.findIndex((item) => item.i === documentId) - copy = copy.filter((item) => item.i !== documentId) - setInitialActiveItem(copy) - setFsLevel(copy) - } - - useEffect(() => { - setMobileViewState(1) - }, [activeItem]) - - // eslint-disable-next-line no-unused-vars - async function loadFsDetails(index) { - console.log("[ APP ] Loading FS details...") - - const promises = index.map(async (item) => { - const data = (await window.internal.workers.api( - "Filesystem", "read", { - id: item.i, - instance: window.internal.ui.activeFilesystemInstance - } - )).read - - // concatenate index data with more detailed data - return { - ...data, - ...item - } - }) - - const level = await Promise.all(promises) - console.log("[ APP ] Done loading FS details", level) - - setFsLevel(level) - - setInitialActiveItem(level) - setMobileViewState(1) - } - - async function openFolder(id, name) { - const { index } = await window.internal.workers.api( - "Filesystem", "index", { - instance: window.internal.ui.activeFilesystemInstance, - id, - level: 1 - } - ) - - let copy = [...fsPath] - - const itemIndex = fsPath.findIndex((item) => item.id === id) - - if (itemIndex >= 0) { // found in file tree, we need to go higher - copy = copy.splice(0, itemIndex + 1) - } else { // not found in file tree, we go lower - copy.push({ - id, - name - }) - } - setFsPath(copy) - - if (index.length === 0) { - newFsItem( - 0, index, id - ) - } else { - setFsLevel(index) - loadFsDetails(index) - } - } - - useEffect(async () => { - // eslint-disable-next-line no-async-promise-executor - try { - await window.internal.workers.essential - let fsType = localStorage.getItem("fs_type") - if (fsType === null) fsType = 0 - const instance = await window.internal.workers.api( - "Filesystem", "init", { type: fsType } - ) - window.internal.ui.activeFilesystemInstance = instance.id - console.log("[ APP ] Created database instance:", instance) - // quick and rough file tree, no names - console.log("[ APP ] Instance UUID ", instance.instance) - setFsLevel(instance.index) - - // more in detail file tree, with names, dates and data - // loaded later by its own pace - loadFsDetails(instance.index) - } catch (e) { - console.error("[ APP ] Failed to initialize filesystem") - console.debug(e) - } - - // Register global key bindings - document.addEventListener("keydown", (event) => { - // Disable if math is open - if (window.internal.ui.editor.activeElement !== null) return - - if (event.ctrlKey && event.key.toLowerCase() === "n") { - event.preventDefault() - document.querySelector("#newAnswerBtn").click() - } else if (event.ctrlKey && event.key.toLowerCase() === "b") { - event.preventDefault() - document.querySelector("#newFolderBtn").click() - } else if (event.key.toLowerCase() === "f2") { - event.preventDefault() - if (!document.activeElement.classList.contains("fsFolder")) { - document.querySelector("#documentTitle").focus() - } else { - document.activeElement.querySelector(".editableName").focus() - } - document.execCommand( - "selectAll", false, null - ) - } else if (event.key === "Tab") { - event.preventDefault() - const sel = document.activeElement?.classList?.contains("fsFolder") || document.activeElement?.classList?.contains("folderUpButton") ? document.activeElement : document.querySelector(".filesystemLevel li.selected") - - const selTarget = sel[event.shiftKey ? "previousSibling" : "nextSibling"] || sel.parentNode[event.shiftKey ? "lastChild" : "firstChild"] - - if (selTarget.classList.contains("fsFolder") || selTarget.classList.contains("folderUpButton")) { - selTarget.focus() - } else { - sel.blur() - selTarget.click() - - const x = window.scrollX; const - y = window.scrollY - window.internal.ui.editor.hook.focus() - window.scrollTo(x, y) - } - } - }) - }, []) - - return ( - <> - -
- { (isMobile && mobileViewState === 0) || !isMobile ? - : - null } - - { (isMobile && mobileViewState === 1) || !isMobile ? - <> - - {!isMobile ? - : - } - : - - null } - - { (isMobile && mobileViewState === 2) ? -
Something
: - null} -
- - - - ) -} - -export default App diff --git a/src/components/Document.jsx b/src/components/Document.jsx deleted file mode 100644 index 7db013d..0000000 --- a/src/components/Document.jsx +++ /dev/null @@ -1,177 +0,0 @@ -import React, { useRef, useEffect } from "react" - -import "../css/editor.css" -import "../css/tooltip.css" -import "../css/scrollbar.css" -import "../math-editor/input.css" -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { faDownload } from "@fortawesome/free-solid-svg-icons" -import Skeleton from "react-loading-skeleton" -import Editor from "../math-editor/editor" - -import Dropdown from "./Dropdown.jsx" - -import exportUtil from "../utils/export" -import useActiveItem from "../utils/useActiveItem" -import "react-loading-skeleton/dist/skeleton.css" - -// eslint-disable-next-line react/prop-types -export default function Document({ - // eslint-disable-next-line no-unused-vars - createdItem, setActiveItem, activeItem, level, setLevel, setMobileViewState, isMobile, fsPath, openFolder -}) { - const answerRef = useRef() - const resultRef = useRef() - const titleRef = useRef() - const [activeItemData, saveActiveItemData] = useActiveItem( - activeItem, level, setLevel - ) - - const exportDropdown = [ - { - text: "Tallenna kuva leikepöydälle", - action: () => { exportUtil("image-clipboard") } - }, - { - text: "Kopioi teksti leikepöydälle", - action: () => { exportUtil("txt-clipboard") } - }, - { - text: "Tallenna PDF", - action: () => { exportUtil("pdf") } - }, - { - text: "Tallenna Tekstinä", - action: () => { exportUtil("txt-file") } - }, - { - text: "Tallenna kuvana", - action: () => { exportUtil("image") } - } - - ] - - useEffect(async () => { - // Load answer into editor here - answerRef.current.contentEditable = false - - if (!window.internal.ui.editor) { - // Initialize editor - window.internal.ui.editor = new Editor(answerRef.current) - await window.internal.ui.editor.init() - } - answerRef.current.contentEditable = true - - // Load active item - console.log("Loading item ...") - window.internal.ui.activeLocation = activeItem - if (activeItemData?.i) { - await window.internal.ui.editor.setContent(activeItemData.data) - window.internal.ui.saved = true - } - }, [resultRef, activeItemData?.i]) - - const save = async () => { - // TODO: Getting the content on every oninput causes massive lag - const format = await window.internal.ui.editor.getContent() - document.getElementById("saveIndicator").className = "saveIndicator" - - const copy = { ...activeItemData } - copy.data = format - copy.date = new Date().getTime() - - saveActiveItemData(copy) - } - - useEffect(() => { - window.internal.ui.editor.hook.oninput = save - }, [activeItemData]) - - async function saveTitle(event) { - event.target.blur() - answerRef.current.focus() - event.preventDefault() - - const copy = activeItemData - copy.name = event.target.innerText - saveActiveItemData({ ...copy }) - - if (event.target.innerHTML.trim() === "") { - event.target.innerHTML = "Nimetön vastaus" - } - console.log("[ EDITOR ] Updating document title...") - await window.internal.workers.api( - "Filesystem", "write", { - instance: window.internal.ui.activeFilesystemInstance, - id: window.internal.ui.activeLocation, - write: { - name: event.target.innerText.trim(), - type: 0 - } - } - ) - } - - useEffect(() => { - if (createdItem === activeItem && activeItemData?.t === 0) { - titleRef.current.focus() - document.execCommand( - "selectAll", false, null - ) - } - }, [createdItem, activeItemData?.i]) - - return ( -
-
-
- {/* isMobile ? - - : null */} - - 1 ? " expanded" : ""}`}>{fsPath.map((item) => ( - <> - openFolder(item.id)}>{item.name} -  ›  - - ))} - -

1 ? "slimmer" : ""} - id="documentTitle" - suppressContentEditableWarning={true} - onClick={() => { - document.execCommand( - "selectAll", false, null - ) - }} - onKeyDown={(event) => { if (event.key === "Enter") { saveTitle(event) } } } - onBlur={(event) => { saveTitle(event) }} - ref={titleRef}> - {activeItemData?.name ?? } -

- -
-
-

Tallenne:

-
- - - -
-
-

Pudota kuva tai gif ja lisää se editoriin!

-
-
-
-
- ) -} diff --git a/src/components/Dropdown.jsx b/src/components/Dropdown.jsx deleted file mode 100644 index 1a6b004..0000000 --- a/src/components/Dropdown.jsx +++ /dev/null @@ -1,68 +0,0 @@ -/* eslint-disable react/prop-types */ -import React, { useState, useEffect, useRef } from "react" -import "../css/dropdown.css" - -export default function Dropdown(props, deconstructable) { - const [dropdownOpened, setDropdownOpened] = useState(false) - const dropdownRef = useRef() - function toggleDropdown(event, atCursor = false) { - event.stopPropagation() - setDropdownOpened(!dropdownOpened) - - let pos; let left; let - top - if (atCursor) { - pos = "unset" - left = `${event.pageX}px` - top = `${event.pageY}px` - } - - dropdownRef.current.style.position = pos || null - dropdownRef.current.querySelector(".dropdown").style.left = left || null - dropdownRef.current.querySelector(".dropdown").style.top = top || null - } - useEffect(() => { - function handleWindowClickEvent(event) { - if (dropdownOpened && dropdownRef.current !== event.target.closest(".dropdownContainer")) { - setDropdownOpened(false) - } - } - - document.addEventListener("mousedown", handleWindowClickEvent) - return () => { - document.removeEventListener("mousedown", handleWindowClickEvent) - } - }, [dropdownOpened]) - - const hasIcons = !!(props.data.find((item) => item.icon !== undefined)) - const DropdownComponent = ( - -
-
    - {props.data.map((option) => ( -
  • { - event.stopPropagation() - if (option.disabled) return - setDropdownOpened(false) - option.action(props.context) - }} className={option.disabled ? "disabled" : ""}> - {hasIcons ? - {option.icon || ""} : - null} - {option.text} -
  • - ))} -
-
- {props.children} -
- ) - if (deconstructable) { - return [DropdownComponent, toggleDropdown] - } - return DropdownComponent -} diff --git a/src/components/EquationSidebar.jsx b/src/components/EquationSidebar.jsx deleted file mode 100644 index dd7141e..0000000 --- a/src/components/EquationSidebar.jsx +++ /dev/null @@ -1,105 +0,0 @@ -/* eslint-disable react/no-unknown-property */ -import React, { useEffect, useState } from "react" -import "../css/sidebar.css" -import "../css/equationsidebar.css" -import PropTypes from "prop-types" - -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { faSquareRootAlt } from "@fortawesome/free-solid-svg-icons" - -import specialCharacters from "../math-editor/specialChars" -import latexCommands from "../math-editor/commands" - -function writeSymbol(event, data) { - event.preventDefault() - if (window.internal.ui.editor.activeMathElement != null) { - if (data.action) { - if (data.useWrite) { - window.internal.ui.editor.activeMathElement.dynamicInterface.write(data.action) - } else if (Array.isArray(data.action)) { - for (const action of data.action) { - window.internal.ui.editor.activeMathElement.dynamicInterface.cmd(action) - } - } else { - window.internal.ui.editor.activeMathElement.dynamicInterface.cmd(data.action) - } - } else { - window.internal.ui.editor.activeMathElement.dynamicInterface.typedText(data.character) - } - } else { - document.execCommand( - "insertText", false, data.character - ) - } -} - -// if (character.popular == true || 1 === 1) - -function SymbolGroup({ symbols, hidden }) { - return ( - - ) -} -SymbolGroup.propTypes = { - symbols: { - label: PropTypes.string, - characters: PropTypes.any - }, - hidden: PropTypes.any -} - -export function MobileEquationToolbar() { - return ( -
- Kokeile avata sivu leveämmässä näkymässä! -
- ) -} - -export function EquationSidebar() { - const [latexCommandsVisible, setLatexCommandsVisible] = useState(false) - useEffect(() => { - window.setLatexCommandsVisibility = (state) => { - if (state) document.getElementById("symbols").style.overflow = "visible" - else document.getElementById("symbols").style.overflow = "" - setLatexCommandsVisible(state) - } - }, []) - - return ( -
-
- -
-
-
-
- ) -} diff --git a/src/components/MathTools.jsx b/src/components/MathTools.jsx deleted file mode 100644 index 03d7a0f..0000000 --- a/src/components/MathTools.jsx +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable react/no-unknown-property */ -import React from "react" - -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { faEdit } from "@fortawesome/free-regular-svg-icons" -import { faPaintBrush, faEllipsisH } from "@fortawesome/free-solid-svg-icons" - -export default function MathTools() { - return ( -
-
    -
  • -
  • -
  • -
-
- ) -} diff --git a/src/components/Navigation.jsx b/src/components/Navigation.jsx deleted file mode 100644 index bfc1f74..0000000 --- a/src/components/Navigation.jsx +++ /dev/null @@ -1,78 +0,0 @@ -/* eslint-disable react/react-in-jsx-scope */ - -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { faDiscord } from "@fortawesome/free-brands-svg-icons" -import { faExclamationTriangle, faFileText, faPray } from "@fortawesome/free-solid-svg-icons" -import { useState } from "react" -import Dropdown from "./Dropdown.jsx" -import logo from "../assets/icon.svg" -import testausserveriLogo from "../assets/testausserveri.svg" -import { saveAs } from "../utils/export" - -export default function Navigation() { - const [thanksDisabled, setThanksDisabled] = useState(false) - return ( -
-
- Matikkaeditori.fi -
-
-

{window.internal.versionHash}

- - - - - - - - { - await window.internal.workers.api("Filesystem", "reset") - window.reset() - }, - icon: - }, - { - text: "Kiitä kehittäjiä", - action: async () => { - // eslint-disable-next-line no-alert - const thanksFrom = prompt("Keneltä kiitokset?").trim() || "nimetön" - await fetch("https://takahuone.matikkaeditori.fi/shawarma", { - method: "POST", - mode: "no-cors", - headers: { - "Content-Type": "application/x-www-form-urlencoded" - }, - body: `from=${encodeURIComponent(thanksFrom)}` - }) - // eslint-disable-next-line no-alert - alert(`Olet ihana, ${thanksFrom} 💖`) - setThanksDisabled(true) - }, - icon: , - disabled: thanksDisabled - }, { - text: "Vie loki", - action: async () => { - saveAs(`data:text/plain;charset=utf-8,${encodeURIComponent(window.internal.console.logs.join("\n"))}`, "logs.txt") - }, - icon: - } - ]}> - Kehittäjä - - - - - Kaavakirja - - - {/* - Asetukset - */} -
-
- ) -} diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx deleted file mode 100644 index 950bb8a..0000000 --- a/src/components/Sidebar.jsx +++ /dev/null @@ -1,274 +0,0 @@ -/* eslint-disable no-unused-vars */ -/* eslint-disable react/prop-types */ -/* eslint-disable no-unreachable */ -import React, { useRef, useEffect } from "react" -import PropTypes from "prop-types" -import "../css/sidebar.css" -import "../css/scrollbar.css" - -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import { - faPlus, faFolder, faEllipsisH, faLevelUpAlt -} from "@fortawesome/free-solid-svg-icons" -import { faFolder as faOutlineFolder } from "@fortawesome/free-regular-svg-icons" -import Skeleton from "react-loading-skeleton" -import useActiveItem from "../utils/useActiveItem" -import dropdown from "./Dropdown.jsx" -import formatDate from "../utils/date" -import "react-loading-skeleton/dist/skeleton.css" - -function FilesystemItem(props) { - if (!props.data) return null - - const itemRef = useRef() - const folderTitleRef = useRef() - - useEffect(() => { - if (props.createdItem === props.data.i) { - itemRef.current.dataset.animation = "fadeInDown" - setTimeout(() => { - itemRef.current.dataset.animation = "" - }, 300) - - if (props.data.t === 1) { - folderTitleRef.current.focus() - document.execCommand( - "selectAll", false, null - ) - } - } - }, [props.createdItem]) - - async function saveFolderTitle(event) { - event.target.blur() - document.getElementById("editor-element").focus() - event.preventDefault() - - console.log("[ SIDEBAR ] Updating folder title...") - - if (event.target.innerText.trim() === "") { - event.target.innerText = "Nimetön kansio" - } - - const copy = [...props.level] - const i = copy.findIndex((item) => item.i === props.data.i) - copy[i].name = event.target.innerText - props.setLevel(copy) // save client-side - - await window.internal.workers.api( - "Filesystem", "write", { - instance: window.internal.ui.activeFilesystemInstance, - id: props.data.i, - write: { - name: event.target.innerText, - type: 1 - } - } - ) - } - const dropdownData = [ - // TODO: Lots of features are missing from here! - { - text: "Uudelleennimeä", - action: () => { - if (props.data.t === 0) { - document.getElementById("documentTitle").focus() - document.execCommand( - "selectAll", false, null - ) - } else { - folderTitleRef.current.focus() - document.execCommand( - "selectAll", false, null - ) - } - } - }, - /* { - text: "Monista", - action: async () => { - await window.internal.workers.api( - "Filesystem", "write", { - instance: window.internal.ui.activeFilesystemInstance, - id: props.data.i, - write: { - name: `${props.data.name}-kopio`, - type: 0, - data: props.data.name - } - } - ) - // TODO: refresh filesystem view - } - }, */ - /* { - text: "Siirrä", - action: () => {} - }, */ - { - text: "Poista", - action: () => { - // Note: Should there be a dialog to ask if you are sure? - // eslint-disable-next-line no-restricted-globals, no-alert - if (confirm(`Haluatko varmasti poistaa "${props.data.name}"?`)) { - props.deleteDocument(props.data.i) - } - } - }, - /* { - text: "Eliminoi", // tähä sellane hauska jekku et se tekee saman ku poista mut antaa full screen räjähdyksen äänen kaa - action: () => {} - }, */ - { - text: "Näytä ID", - // eslint-disable-next-line no-alert - action: () => { alert(props.data.i) } - } - ] - - const [DropdownComponent, toggleDropdown] = dropdown({ - data: dropdownData, - origin: "right", - children: - }, true) - - const handleClick = (event) => { - if (event.type === "contextmenu") { - event.preventDefault() - toggleDropdown(event, true) - } else { - props.onClick(event) - } - } - if (props.data.t === 1) { // folder - return ( -
  • { if (event.key === "Enter") { handleClick(event) } }} - onClick={handleClick} - onContextMenu={handleClick} - tabIndex="-1"> - {
    - -
    } -
    - { if (event.key === "Enter") { saveFolderTitle(event) } } } - onBlur={(event) => { saveFolderTitle(event) }} - >{props.data.name} -
    -
    - {DropdownComponent} -
    -
  • - ) - } if (props.data.t === 0) { // file - return ( -
  • -
    - {props.data.name} - {props.data.date ? formatDate(props.data.date).pretty : ""} - -
    -
    - {DropdownComponent} -
    -
  • - ) - } -} - -const filesystemItemType = { - selected: PropTypes.bool, - data: PropTypes.object -} -FilesystemItem.propTypes = filesystemItemType - -export default function Sidebar(props) { - // todo implement subtrees - const level = (props.level ? [...props.level] : null) - - const [activeItemData] = useActiveItem( - props.activeItem, props.level, props.setLevel - ) - - if (level) level.reverse() - - if (document.getElementById("sidebar") && document.getElementById("sidebar").childNodes[0].nodeName.toLowerCase() !== "span") { - document.getElementById("sidebar").childNodes.forEach((node) => { - if (node.nodeName.toLowerCase() === "span" && level !== null) node.style.display = "none" - }) - } - - const treeRef = useRef() - const currentLevelId = props.fsPath[props.fsPath.length - 1].id - useEffect(() => { - treeRef.current.classList.add("fadeInDown") - setTimeout(() => { - if (treeRef.current) treeRef.current.classList.remove("fadeInDown") - }, 300) - }, [currentLevelId]) - - const open = async (item, event) => { - // to-do: save document before unload. - if (item.t === 0) { - props.setCreatedItem("") - console.log("[ SIDEBAR ] Set active item to:", item.i) - props.setActiveItem(item.i) - window.internal.ui.activeLocation = item.id // Todo: Move to place - if (event?.isTrusted) window.internal.ui.editor.hook.focus() - } else if (item.t === 1) { - props.openFolder(item.i, item.name) - } - } - const fsSort = (data) => (data - .sort((a, b) => (b.date - a.date)) // sort by date - .sort((a, b) => (a.t === 1 ? -1 : 0))) // folders first - - return ( -
    -
    - - -
    -
    - -
    -
    - ) -} diff --git a/src/configure.js b/src/configure.js deleted file mode 100644 index 68c518d..0000000 --- a/src/configure.js +++ /dev/null @@ -1,99 +0,0 @@ -// Configure runtime environment globals -// This runs pre-react render - -import * as uuid from "./service-workers/components/uuid" -import upgrade from "./upgrade.jsx" -import * as Workers from "./service-workers/manager" -import consoleComponent, { consoleConfig } from "./utils/console" - -export default () => new Promise((resolve) => { - // Declare globals - window.internal = { - workers: { - list: {}, - handlers: {}, - shared: {}, - api: Workers.api - }, - console: consoleConfig(), - ui: { - activeFilesystemInstance: null, - activeLocation: null, - editor: null, - saved: false - }, - timeAtLive: new Date().getTime(), // Time since code first started to run - /** - * -------------------------------------------------- - * Very important version field! - * CHANGE TO HANDLE BREAKING CHANGES VIA "upgrade.js" - * -------------------------------------------------- - */ - version: "beta", - versionHash: "" - } - - // Promise for UI to wait before doing anything - window.internal.workers.essentials = new Promise((resolveEssential) => { - window.internal.workers.essentialsResolve = resolveEssential - }) - - // Fetch version hash - fetch("/VERSION") - .then((res) => res.text()) - .then((res) => { - if (res.startsWith("VERSION: ")) { - window.internal.versionHash = res.replace(/\n/g, "").trim().split(": ").pop() - } else { - window.internal.versionHash = "Development version" - } - }).catch((e) => { - window.internal.versionHash = "Unknown" - console.error("Failed to get version number", e) - }) - - // User ID - let id = localStorage.getItem("id") - if (id == null) { - id = uuid.v4() - } - localStorage.setItem("id", id) - window.id = id // This is used to salt all filesystem verity hashes. When cloud saves are implemented, this needs to be exported in to the cloud save location. - - // Handle version upgrades - const currentVersion = localStorage.getItem("version") - if (currentVersion !== null) { - if (currentVersion !== window.internal.version) { - if (typeof upgrade[currentVersion] !== "function") { - // eslint-disable-next-line no-alert - alert(`Upgrading to "${window.internal.version}" from "${currentVersion}" is not possible at this time.`) - window.location.reload() - } - upgrade[currentVersion]().then(() => { - console.log(`--- Upgraded to ${window.internal.version} ---`) - // Run the console component here - consoleComponent(window) - resolve() - }).catch((e) => { - console.error(`[ Index ] Failed to upgrade: ${e.stack}`) - }) - } else { - console.log(`No upgrades to be done. (${currentVersion})`) - consoleComponent(window) - resolve() - } - } else if (localStorage.length > 1) { - // Version is null - console.error("[ Index ] Version is null!") - // eslint-disable-next-line no-restricted-globals, no-alert - if (confirm("Application version is unknown. Would you like to reset it?")) { - localStorage.setItem("version", window.internal.version) - consoleComponent(window) - resolve() - } - } else { - localStorage.setItem("version", window.internal.version) - consoleComponent(window) - resolve(window) - } -}) diff --git a/src/css/dropdown.css b/src/css/dropdown.css deleted file mode 100644 index e1cd3f9..0000000 --- a/src/css/dropdown.css +++ /dev/null @@ -1,58 +0,0 @@ -.dropdownContainer { - position: relative; -} -.dropdown { - position: absolute; - z-index: 100; - top: calc(100% + 0.5rem); - background-color: white; - border-radius: var(--radius); - box-shadow: var(--small-shadow); - cursor: pointer; - top: 100%; - margin-top: 0.5em; - transition: transform 0.2s, opacity 0.2s; - transform-origin: top right; - right: 0; - color: #111; -} -.dropdown.leftOrigin { - transform-origin: top left; - right: auto; - left: 0; -} -.dropdown.rightOrigin { - transform-origin: top right; - right: 0; - left: auto; -} -.dropdown ul { - list-style-type: none; - margin: 0; padding: 0; -} -.dropdown li { - padding: 0.5rem 2rem 0.5rem 1rem; - min-width: 140px; -} -.dropdown li:nth-child(1) { - border-top-left-radius: var(--radius); - border-top-right-radius: var(--radius); -} -.dropdown li:nth-last-child(1) { - border-bottom-left-radius: var(--radius); - border-bottom-right-radius: var(--radius); -} -.dropdown li:hover { - background-color: #eee; -} - -.dropdown.hasIcons .dropdownIcon{ - width: 1.7rem; - display: inline-block; -} - -.dropdown li.disabled { - background-color: #eee; - color: #999; - cursor: default; -} \ No newline at end of file diff --git a/src/css/editor.css b/src/css/editor.css deleted file mode 100644 index 544f354..0000000 --- a/src/css/editor.css +++ /dev/null @@ -1,120 +0,0 @@ -.editor { - display: block; - flex: 1; - padding: 3rem; - font: 17px "Times New Roman"; - line-height: 1.3; - overflow-y: scroll; - max-height: 73vh; - overflow-wrap: break-word; -} - -.editor div { - display: block; -} - -@media only screen and (max-width: 800px) { - .editor { - padding: 1rem; - } -} - -.editor:focus { - outline: none; -} - -.editor attachment { - text-align: center; - vertical-align: middle; - display: inline-block; - cursor: pointer; - resize: both; - overflow: hidden; - -ms-overflow-style: none; - scrollbar-width: none; - max-width: 100%; - margin: 6px; -} - -.editor:focus attachment { - border: 1px solid #d5e0e5; - background-color: #edf9ff; - border-radius: 1px; - margin: 5px; -} - -.droptext { - width: calc(var(--document-width) - 3rem - 3rem); - margin: 1.5 rem auto 1.5 rem auto; - display: none; - justify-content: space-between; - margin-bottom: -10px; -} - -.mathTools { - display: none; - width: calc(30px * 3 + 5px); - height: 32px; - position: absolute; - margin-top: 1px; -} - -.mathTools ul { - list-style: none; - width: 100%; - height: 100%; - margin: 0px; - padding: 0px; -} - -.mathTools ul li { - position: relative; - background-color: #edf9ff; - border-radius: 1px; - width: 30px; - height: 30px; - margin: 0px; - padding: 0px; - display: block; - float: left; - box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.226); - text-align: center; - justify-content: center; - line-height: 30px; - transition: margin-top 0.2s, z-index 0.2s; - z-index: 8; - cursor: pointer; -} - -.mathTools ul li:hover { - margin-top: 1px; - z-index: 10; -} - -.mathTools ul li svg { - color: #709AC0; -} - -.editor img { - height: 100%; - width: auto; - outline: none; - margin: 1px; -} -.editor:focus img { - border: 1px solid #d5e0e5; - margin: 0px; - background-color: #edf9ff; - border-radius: 1px; -} - -.mathContainer.open + br { - display: none; -} - -.mathContainer span { - display: inline-block; -} -.mathImage { - display: inline-block; -} \ No newline at end of file diff --git a/src/css/equationsidebar.css b/src/css/equationsidebar.css deleted file mode 100644 index bcfa15a..0000000 --- a/src/css/equationsidebar.css +++ /dev/null @@ -1,68 +0,0 @@ -.equationSidebar { - /*position: -webkit-sticky; - position: sticky;*/ - /*top: 0;*/ - height: 100%; - max-height: 100%; - overflow-y: scroll; - overflow-x: hidden; -} -.symbolGroup { - margin-bottom: 1rem; - overflow: hidden; - transition: max-height 0.1s ease-in; -} -.symbolGroup h3 { - font-size: 0.8em; - color: rgba(0, 0, 0, 0.5); - display: block; - text-transform: uppercase; - margin: 0; -} -.symbols { - display: grid; - grid-template-columns: repeat(8, 1fr); - grid-auto-rows: auto; - gap: 0.2rem; - margin-top: 0.5rem; -} -.symbols div { - display: inline-block; - display: flex; - justify-content: center; - align-items: center; - background-color: #fff; - aspect-ratio: 1/1; - box-shadow: var(--small-shadow); - border-radius: var(--radius); - cursor: pointer; - transition: background-color .05s ease-out; - position: relative; -} - -.symbols div:before { - content: ""; - display: block; - padding-top: 100%; -} - -.symbols div img { - position: absolute; - width: 70%; - height: 70%; - object-fit: contain; -} - -.symbols div:hover { - background-color: #f6f8f9; -} - -.mobileToolbar { - position: fixed; - bottom: 0; - left: 0; - width: 100%; - background-color: white; - border-top: 1px solid #f6f8f9; - padding: 1rem; -} \ No newline at end of file diff --git a/src/css/index.css b/src/css/index.css deleted file mode 100644 index 57a5ac8..0000000 --- a/src/css/index.css +++ /dev/null @@ -1,24 +0,0 @@ -:root { - --radius: 5px; - --shadow: 0 3px 30px rgba(0, 0, 0, 0.1); - --small-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); -} - -body, button { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} - - -::selection { - background: #a9c0cc; -} diff --git a/src/css/main.css b/src/css/main.css deleted file mode 100644 index 9639d15..0000000 --- a/src/css/main.css +++ /dev/null @@ -1,234 +0,0 @@ -html { - overflow: hidden; -} - -body { - background-color: #edf9ff; - color: rgba(0,0,0,0.9); - --document-width: 100%; -} - -.app { - display: flex; - height: calc(100% - 52px); -} - -.document { - flex: 1; - padding: 0; - overflow: hidden; -} - -.document .head { - width: calc(var(--document-width) - 3rem - 3rem); - margin: 1.5rem auto 1.5rem auto; - display: flex; - justify-content: space-between; -} - -@media only screen and (max-width: 800px) { - .document .head { - width: calc(var(--document-width) - 1rem - 1rem); - margin-top: 1rem; - } -} - -.document .head h2 { - font-size: 1.5em; - margin: 0; - position: relative; - display: inline-block; - line-height: 3rem; - transition: line-height 0.15s; -} - -.document .head h2.slimmer { - line-height: 2rem; -} -.document .head h2:focus { - outline: none; -} -.document .head h2::after, .document .head h2::after { - transition: border-color 0.2s, background-color 0.2s, opacity 0.2s; - opacity: 0; -} -.document .head h2:hover::after, .document .head h2:focus::after { - content: ' '; - position: absolute; - top: 0; - left: -10px; - width: calc(100% + 20px); - height: 100%; - border: 1px solid #d5e0e5; - background-color: rgba(255,255,255,1); - border-radius: 3px; - z-index: -5; - opacity: 0.5; - box-shadow: var(--small-shadow); -} -.document .head h2:focus::after { - opacity: 1; -} - -.document .head .headSecondary { - display: flex; - align-content: center; - flex-wrap: nowrap; - flex-direction: row; - justify-content: center; - align-items: center; -} - -.document .head .saveIndicator { - border: 4px solid #d5e0e5; - border-top: 4px solid #2FA3CF; - border-radius: 50%; - min-width: 20px; - min-height: 20px; - margin-right: 15px; - animation: fullSpin 2.2s linear infinite; -} -.document .head .savedIndicator { - margin-right: 15px; - width: 28px; - height: 28px; -} -.document .head .savedIndicator:before { - content: '\2713'; - display: inline-block; - font-size: 30px; - margin-top: -5px; - color: #2FA3CF; - font-weight: 600; - padding: 0 6px 0 0; -} - -@keyframes fullSpin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } -} - -.document .head p { - margin-right: 5px; -} - -.page { - background-color: white; - margin: 1rem auto; - width: var(--document-width); - box-shadow: var(--shadow); - border-radius: var(--radius); - display: flex; -} - -.page:focus { - outline: none; -} - -.page::before { - content: " "; - width: 1px; - margin-left: -1px; - float: left; - height: 0; - padding-top: 141%; - /* A4 aspect ratio */ -} - -.page::after { - content: ""; - display: table; - clear: both; -} - -.navigation { - width: calc(100% - 3rem); - background-color: white; - padding: 1rem 1.5rem; - box-shadow: var(--small-shadow); - display: flex; - justify-content: space-between; -} -.navigation div { - display: flex; - justify-content: center; -} -.navigation div a.iconLink { - margin-left: 1.2rem; - color: #2FA3CF; - transition: filter 0.1s; -} -.navigation p { - display: inline; - margin: 0px; - font-style: italic; - font-size: 11px; - line-height: 20px; - height: 20px; - color: grey; -} -.navigation div a.iconLink:hover { - filter: brightness(0.75); -} -.navigation img { - height: 1rem; -} -.navLink { - margin-left: 1.2rem; - color: #2FA3CF; - cursor: pointer; - position: relative; -} -.navLink:hover::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift 0.8s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%232FA3CF' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E"); - background-position: 0 100%; - background-size: auto 6px; - background-repeat: repeat-x; - text-decoration: none; - content: ' '; - width: 100%; - height: 100%; - position: absolute; - top: 4px; - left: 0; - pointer-events: none; -} - -.head .mobileBack { - margin-right: 1rem; - background-color: transparent; - color: #2FA3CF; - border-color: transparent; - box-shadow: none; -} - -.head .mobileBack:hover { - background-color: transparent; - color: #2FA3CF; -} - -.head .headMain { - display: flex; - flex-direction: column; -} - -.headMain .documentPath { - font-size: 0.9rem; - line-height: 1rem; - color: rgba(0,0,0,0.7); - height: 0; - overflow: hidden; - transition: height 0.15s; -} - -.headMain .documentPath.expanded { - height: 1rem; -} - -.documentPathItem { - cursor: pointer; -} - -.documentPathItem:hover { - color: #2FA3CF; -} \ No newline at end of file diff --git a/src/css/scrollbar.css b/src/css/scrollbar.css deleted file mode 100644 index 7560958..0000000 --- a/src/css/scrollbar.css +++ /dev/null @@ -1,18 +0,0 @@ -.clean-scrollbar::-webkit-scrollbar { - border: 0px; - padding: 0px; - width: 8px; - display: block; - background-color: white; - border-radius: var(--radius); - box-shadow: var(--small-shadow); -} - -.clean-scrollbar::-webkit-scrollbar-thumb { - background-color: #2FA3CF; - border-radius: var(--radius); -} - -.clean-scrollbar::-webkit-scrollbar-thumb:hover { - background-color: #2fa2cfb9; -} diff --git a/src/css/sidebar.css b/src/css/sidebar.css deleted file mode 100644 index 19ab9ca..0000000 --- a/src/css/sidebar.css +++ /dev/null @@ -1,230 +0,0 @@ -.sidebar { - padding: 0 1.5rem; - width: 18%; - flex-shrink: 0; - /* - height: 100vh; - overflow-y: auto; - position: sticky; - top: 0;*/ -} - -.sidebar::-webkit-scrollbar { - display: none; -} - -@media only screen and (max-width: 1140px) { - .sidebar { - width: 22%; - } -} -@media only screen and (max-width: 950px) { - .sidebar { - width: 26%; - } -} - - -.filesystemLevel { - padding: 0; - margin: 0; - list-style-type: none; -} - -.filesystemLevelParent { - height: calc(100% - 6rem - 75px); - overflow-y: scroll; - overflow-x: hidden; - -ms-overflow-style: none; - scrollbar-width: none; - padding-right: 8px; -} - -@-webkit-keyframes fadeInDown { - 0% { - opacity: 0; - margin-top: -10px; - } - 60% { - transform: translateY(0); - } - 100% { - margin-top: 0; - } - } - - @keyframes fadeInDown { - 0% { - opacity: 0; - margin-top: -10px; - } - 60% { - transform: translateY(0); - } - 100% { - margin-top: 0; - } -} - .fadeInDown, .filesystemLevel li[data-animation=fadeInDown] { - -webkit-animation-name: fadeInDown; - animation-name: fadeInDown; - -webkit-animation-duration: 0.15s; - animation-duration: 0.15s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; - } - -.filesystemLevel li:not(.dropdown li) { - margin-bottom: 0.7rem; - width: calc(100% - 0.7rem - 0.7rem); - background-color: white; - padding: 0.7rem; - box-shadow: var(--small-shadow); - border-radius: var(--radius); - cursor: pointer; - display: flex; - transition: background-color .15s ease-out; - border: 1px solid transparent; -} - -.filesystemLevel>span>span { - margin-bottom: 0.7rem; - width: calc(100% - 0.7rem); - background-color: white; - height: 62px; - box-shadow: var(--small-shadow); - border-radius: var(--radius); - cursor: pointer; - transition: background-color .15s ease-out; - border: 1px solid transparent; -} - -.filesystemLevel li:hover:not(.dropdown li:hover) { - background-color: #f6f8f9; -} -.filesystemLevel li.selected:not(.dropdown li.selected) { - background-color: #e1e9ec; -} - -.filesystemLevel li .ellipsis { - display: inline-block; - display: flex; - justify-content: space-around; - align-items: center; - border: none; - background-color: transparent; - width: 2rem; - height: 2rem; - border-radius: 2rem; - cursor: pointer; - transition: background-color .05s ease-out, box-shadow .05s ease-out; - position: relative; - color: #555; -} - -.filesystemLevel li .ellipsis:hover { - box-shadow: var(--small-shadow); - background-color: rgba(0,0,0,0.04); -} -.filesystemLevel li .ellipsis:active { - color: #333; -} - -.filesystemLevel li:focus { - outline: none; -} - -.filesystemLevel li.fsFolder:focus { - border: 1px solid #ced8db; - /* - background-color: transparent; - box-shadow: none; - border-radius: var(--radius); -*/ -} - -.filesystemLevel li .content { - flex: 1; - width: 0; /* fixes text overflowing */ -} - -.filesystemLevel li .action { - flex-shrink: 0; - display: flex; - align-items: center; -} -.filesystemLevel li .content span { - display: block; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} -.filesystemLevel li .fsIcon { - margin-right: 0.5rem; -} -.filesystemLevel li .date { - font-size: 0.8em; - color: rgba(0, 0, 0, 0.5); - display: block; -} -.sidebar .head { - display: flex; - margin: 1.5rem auto 1.5rem auto; - height: 3rem; -} -.head button.primary { - flex: 1; -} -.head button.folderSmall { - margin-left: 5px; - width: 3rem; - background-color: transparent; - border: 1px solid #2FA3CF; - color: #2FA3CF; -} -.head button.folderSmall:hover, .head .secondary:hover, .folderUpButton:hover, .folderUpButton:focus { - background-color: #2a92ba; - border-color: #2a92ba; - outline: none; - color: #edf9ff; -} -.head button, .folderUpButton { - height: 100%; - font-size: 1rem; - cursor: pointer; - background-color: #2FA3CF; - border: none; - border-radius: var(--radius); - box-shadow: var(--small-shadow); - border: 1px solid #2a92ba; - color: #edf9ff; - transition: background-color 0.1s ease-out, color 0.1s ease-out; -} - -.head .secondary, .folderUpButton { - background-color: transparent; - border: 1px solid #2FA3CF; - color: #2FA3CF; - height: 3rem; - padding: 0 1rem; -} - -.folderUpButton { - height: auto; - width: 100%; - text-align: left; - padding: 0.7rem; - margin-bottom: 0.7rem; -} - -.head button:hover { - background-color: #2a92ba; -} - -.head button:focus { - outline: none; -} - -.editableName:focus { - outline: none; -} \ No newline at end of file diff --git a/src/css/tooltip.css b/src/css/tooltip.css deleted file mode 100644 index d82cb66..0000000 --- a/src/css/tooltip.css +++ /dev/null @@ -1,30 +0,0 @@ -[x-tooltip] { - position: relative; -} - -[x-tooltip]::after { - position: absolute; - opacity: 0; - pointer-events: none; - content: attr(x-tooltip); - font-size: 14px; - left: 0; - top: calc(100% + 10px); - border-radius: 1px; - box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.226); - background-color: #edf9ff; - z-index: 10; - padding: 1px; - white-space: nowrap; - width: auto; - padding: 4px; - margin-left: -20px; - transform: translateY(-20px); - transition: all 150ms cubic-bezier(.25, .8, .25, 1); -} - -[x-tooltip]:hover::after { - opacity: 1; - transform: translateY(0); - transition-duration: 300ms; -} \ No newline at end of file diff --git a/src/index.jsx b/src/index.jsx deleted file mode 100644 index e504a23..0000000 --- a/src/index.jsx +++ /dev/null @@ -1,55 +0,0 @@ -// React libs -import React from "react" -import ReactDOM from "react-dom" -import "./css/index.css" -import App from "./App.jsx" - -// Import static components -import c from "./service-workers/components/compatibility" -import error from "./utils/error" -import * as Workers from "./service-workers/manager" -import configure from "./configure" - -// Debug utilities -import "./utils/debug" - -// Page close listener -window.addEventListener("beforeunload", (e) => { - if (!window.internal.ui.saved) { - // Not saved yet! - const confirmationMessage = "Jotain on vielä tallentamatta\nÄlä sulje vielä sivua!"; - (e || window.event).returnValue = confirmationMessage - return confirmationMessage - } - return null -}); - -// Main -(async () => { - try { - // Check browser compatibility - if (c()) { - console.log("Browser compatibility checks passed!") - // Declare globals & Handle low-level setup (upgrades etc.) - await configure() - - // --- This is where the actual application code execution begins --- - // Handle workers - Workers.default() - - // Render - ReactDOM.render( - - , - document.getElementById("root")) - } else { - console.log("Incompatible browser!") - ReactDOM.render( -

    Incompatible browser!

    -
    , - document.getElementById("root")) - } - } catch (err) { - error("Index", err) - } -})() diff --git a/src/math-editor/commands.js b/src/math-editor/commands.js deleted file mode 100644 index 0f49c8a..0000000 --- a/src/math-editor/commands.js +++ /dev/null @@ -1,213 +0,0 @@ -/* eslint-disable max-len */ -/* eslint-disable quotes */ - -export default [ - { - action: '\\sqrt', - label: '\\sqrt{X}', - svg: - 'data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ9IkUxLUxBVElOTU9ERVJOTUFJTi0yMjFBIiBkPSJNODUzIDIwYzAgLTUgLTEgLTYgLTYgLTE3bC00NTYgLTk0NGMtNyAtMTUgLTkgLTE5IC0yNSAtMTljLTExIDAgLTEzIDEgLTE5IDE1bC0xOTggNDM1bC01MiAtMzljLTkgLTggLTExIC04IC0xNCAtOGMtNiAwIC0xMCA0IC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4aDQwdi0zMWMtNDEgMyAtMTQ0IDMgLTE5MCAzcy0xNDggMCAtMTg5IC0zdjMxaDQwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg==' - } -] diff --git a/src/math-editor/editor.js b/src/math-editor/editor.js deleted file mode 100644 index 5744215..0000000 --- a/src/math-editor/editor.js +++ /dev/null @@ -1,749 +0,0 @@ -/** - * @typedef MathEditor - * \------------------------------------------------------------------------------------ - * - * Matikkaeditori.fi's math editor component - * - * By: \@Esinko - * - * Created: 08.09.2021 - * Refactored: 22.10.2021 - * - * \------------------------------------------------------------------------------------ - * @returns {Editor} - */ - -// Type definitions -/** - * @typedef EditorElement Matikkaeditori editor's embedded element - * @property {string} name Element name - * @property {[]} attributes Element attributes - * @property {string} data Element raw data - * @property {[...EditorElement]} tree Parsed element data - */ -/** - * @typedef {EditorElement[]} EditorElementList List of editor elements - */ - -// Dependencies -import Utils from "./utils" -import Math from "./math" - -// Main class -/** - * \------------------------------------------------------------------------------------ - * - * Matikkaeditori.fi dynamic editor component - * - * \------------------------------------------------------------------------------------ -*/ -class Editor { - /** - * Editor component instance - * @param {HTMLElement} hook - */ - constructor(hook) { - if (!Utils.isSomeParent(hook, document.body)) throw new Error("The hook element has to be in the DOM") - // Todo: Add type declarations for these (I forget how) - this.hook = hook - this.local = { Math, Utils } - this.events = new EventTarget() - this.activeMathElement = null - this.activeLine = null - this.watchHook = true - this.moveOutOfThisEvent = false // Todo: Needed? - this.resizeObserverNodes = [] - this.resizeObserver = null - this.observerCallback = null - } - - /** - * Set editor contents - * @param {string[]} data - */ - setContent(data) { - this.watchHook = false - this.hook.contentEditable = false - this.hook.innerHTML = "" - Math.flush() - this.observerCallback() - - // Parse - console.log("[ EDITOR ] Setting editor content...") - const content = [] - for (const line of data) { - content.push(Utils.parseEmbedded(line)) - } - console.log("[ EDITOR ] Parser output:", content) - - // Process each line - let wrote = false - for (const line of content) { - let lineElement = null - if (line.length === 0) { - lineElement = document.createElement("div") - lineElement.appendChild(document.createElement("br")) - this.hook.appendChild(lineElement) - if (!wrote) wrote = true - } else { - for (const element of line) { - if (element.name === "meta") { - // Meta tag! - console.log( - "[ EDITOR ]", "Save META:", element.attributes - ) - // eslint-disable-next-line no-continue - continue - } - if (!lineElement) lineElement = document.createElement("div") - const result = Utils.fill(element) - if (result !== null) lineElement.appendChild(result) - } - if (lineElement !== null) { - this.hook.appendChild(lineElement) - if (!wrote) wrote = true - } - } - } - if (!wrote) this.hook.innerHTML = "

    " // Empty document - - // Toggle math - for (const id of Object.keys(Math.collection)) { - Math.collection[id].writable = false - Math.open(id) - Math.close(id) - if (Math.collection[id] !== undefined) Math.collection[id].writable = true - } - - this.watchHook = true - this.observerCallback() - this.hook.contentEditable = true - } - - /** - * Initialize the editor - */ - init() { - let lastSelection = null // Last selected node (during keydown event) - let holdKeydown = false // Ignore the keyboard event - - // Global keyboard listener - document.addEventListener("keydown", (event) => { - // Only catch events when the editor is active - if (!Utils.isSomeParent(Utils.getSelectedNode(), this.hook)) return - - // -------------------------------------------------------------------------------------------------------------- - // - // Passive listeners - // - //-------------------------------------------------------------------------------------------------------------- - - // Update active line while moving up or down with arrow keys - if (event.code === "ArrowUp" || event.code === "ArrowDown") { - // Move with arrow keys - const selection = document.getSelection() - const line = selection.anchorNode.parentElement === this.hook ? selection.anchorNode : Utils.getParentLine(selection.anchorNode) - if (!Utils.isSomeParent(selection.anchorNode, this.hook)) return - - // Update active line - if (line === this.hook || line === this.hook.parentElement) return - if (this.activeLine === line) return - this.activeLine = line - console.debug("[ EDITOR ] Active line change to", this.activeLine) - } - - // -------------------------------------------------------------------------------------------------------------- - // - // Moving in/out of math elements with arrow keys - // - // -------------------------------------------------------------------------------------------------------------- - - // Ignore input - if (holdKeydown) { event.preventDefault(); return } - - // Main arrow key control handler - // TODO: Refactor this - if (!event.ctrlKey && (event.code === "ArrowLeft" || event.code === "ArrowRight")) { - // await Utils.toggleAnchorMode(Utils.getObjectPropertyArray(Math.collection, "container"), true) - const selection = Utils.getSelectedNode() - const selectionClone = selection // Todo: Laziness? - const documentSelection = document.getSelection() - - // Focus function for math - const direction = event.code === "ArrowLeft" ? "moveToRightEnd" : "moveToLeftEnd" - const focus = (toSelect = selectionClone) => { - const id = toSelect.getAttribute("math-id") ?? toSelect.parentElement.getAttribute("math-id") - Utils.waitForEvent(Math.events, "focus").then(() => { - Math.collection[id].labels[1].onclick() // Manually force the display the dynamic interface - Math.collection[id].dynamicInterface.focus() - Math.collection[id].dynamicInterface[direction]() - }); - (toSelect.firstChild ?? toSelect).click() - } - - // Firefox needs it's own method of detection - if (window.browser === "firefox") { - const elementList = Utils.listToArray(documentSelection.anchorNode.parentElement.childNodes) - const selectionIndex = Utils.getNodeIndex(documentSelection.anchorNode.parentElement, documentSelection.anchorNode) - if ( // At start (from right) - documentSelection.anchorNode.nodeName.toLowerCase() === "#text" && - elementList[selectionIndex - 1]?.nodeName === "MATH" && - documentSelection.anchorOffset === 0 && - event.code === "ArrowLeft" - ) { - focus(elementList[selectionIndex - 1]) - } else if ( // At end (from left) - documentSelection.anchorNode.nodeName.toLowerCase() === "#text" && - elementList[selectionIndex + 1]?.nodeName === "MATH" && - documentSelection.anchorOffset === documentSelection.anchorNode.textContent.length && - event.code === "ArrowRight" - ) { - focus(elementList[selectionIndex + 1]) - } - } - - // Normal ways of detection - // Detect by selection change - if ( - selection.nodeName.toLowerCase() === (window.browser === "firefox" ? "img" : "math") && - selection.getAttribute("math") !== null && - this.activeMathElement === null - ) { - event.preventDefault() - holdKeydown = true - focus(selection) - } else { - // Detect by index jump - if ( - // We need the last selection & this only affects moving to the left - lastSelection && event.code === "ArrowLeft" && - // Not in the start / end of a line - Utils.getNodeIndex(this.activeLine, lastSelection.anchorNode) !== 0 && Utils.getNodeIndex(this.activeLine, lastSelection.anchorNode) !== lastSelection.anchorNode?.parentNode?.childNodes?.length && - // Detect the jump - lastSelection.anchorOffset < documentSelection.anchorOffset && - documentSelection.anchorOffset === documentSelection.anchorNode?.nodeValue?.length - ) { - let skippedNode = Utils.getNodeByIndex(this.activeLine, lastSelection.anchorOffset - 1) - if (skippedNode) { - if (skippedNode.nodeName.toLowerCase() === "math") { - focus(skippedNode) - } else if (window.browser === "firefox") { - skippedNode = Utils.getNodeByIndex(this.activeLine, lastSelection.anchorOffset) - focus(skippedNode) - } - } - } - lastSelection = { anchorOffset: documentSelection.anchorOffset, anchorNode: documentSelection.anchorNode } - } - // await Utils.toggleAnchorMode(Utils.getObjectPropertyArray(Math.collection, "container"), false) - holdKeydown = false - } - this.moveOutOfThisEvent = false - - // -------------------------------------------------------------------------------------------------------------- - // - // Math element control - // - // -------------------------------------------------------------------------------------------------------------- - - // Create with ctrl+e - if (event.ctrlKey && event.key === "e") { - event.preventDefault() - if (this.activeMathElement !== null) return // No math inside math - const mathElement = Math.create() - - // If we are inside a math element, insert the new math after it - const selection = document.getSelection() - if (selection.anchorNode.nodeName.toLowerCase() === "math") { - // Should only occur when math is only element in line - // So this is OK - this.activeLine.appendChild(mathElement.container) - - // Check for BR elements inside activeLine and remove them - // They appear between elements and we don't want them - for (const element of this.activeLine.childNodes) { - if (element.nodeName.toLowerCase() === "br") element.remove() - } - } else { - Utils.insertNodeAt(Utils.getCaretPosition(), mathElement.container) - } - Math.open(mathElement.id) - return - } - - // Close with esc - if (event.code === "Escape" && this.activeMathElement !== null) { - event.preventDefault() - Math.close(this.activeMathElement.id) - return - } - - // Use enter to create new math while in math - if (event.code === "Enter" && this.activeMathElement !== null) { - event.preventDefault() - // Move out and create a new line - if (event.shiftKey) { - Math.close(this.activeMathElement.id) - const newLine = document.createElement("div") - newLine.innerHTML = "
    " - this.activeLine.after(newLine) - Utils.selectByIndex(Utils.getNodeIndex(this.hook, newLine), this.hook) - } else { - // Crate new line after current active line - const { id } = this.activeMathElement - Math.close(this.activeMathElement.id) - // Make sure the math element just closed still exists (may get deleted if empty) - if (Math.collection[id] !== undefined) { - // Make new line - const newLine = document.createElement("div") - this.activeLine.after(newLine) - Utils.selectByIndex(Utils.getNodeIndex(this.hook, newLine), this.hook) - // Utils.select(this.hook, this.hook.childNodes.indexOf(this.activeLine) + 1) - const mathElement = Math.create() - newLine.appendChild(mathElement.container) - Math.open(mathElement.id) - } - } - return - } - - // -------------------------------------------------------------------------------------------------------------- - // - // Patches to browser content-editable related to document manipulation --- - // - // -------------------------------------------------------------------------------------------------------------- - - // TODO: I forget what this does... - if (event.code === "Enter" && window.browser === "firefox") { - const selection = document.getSelection() - const direction = selection.anchorOffset // 0 is left, 1 is right - if (selection.anchorNode.nodeName.toLowerCase() === "a" && selection.anchorNode.childNodes.length === 1 && selection.anchorNode.childNodes[0].nodeName.toLowerCase() === "img") { - event.preventDefault() - if (direction === 0) { - const line = document.createElement("div") - line.appendChild(document.createElement("br")) // this.activator - this.activeLine.before(line) - Utils.selectByIndex(0, line) - } else { - const line = document.createElement("div") - line.appendChild(document.createElement("br")) // this.activator - this.activeLine.after(line) - Utils.selectByIndex(0, line) - } - return // Forced to return - } - } - // Patch:
    appears in the beginning of a new line when using enter. This breaks things, so we shall remove it. - if (event.key === "Enter" && this.activeMathElement === null) { - // We can expect a new line is created here - requestAnimationFrame(() => { - const newline = Utils.listToArray(this.hook.childNodes)[Utils.getNodeIndex(this.hook, this.activeLine)] - if (newline.childNodes.length > 1 && newline.childNodes[0].nodeName.toLowerCase() === "br") newline.childNodes[0].remove() - }) - } - - // Patch: Implement regular enter manually - if (window.browser === "chrome" && event.key === "Enter" && this.activeMathElement === null) { - event.preventDefault() - const newLine = document.createElement("div") - newLine.innerHTML = "
    " - this.activeLine.after(newLine) - Utils.selectByIndex(Utils.getNodeIndex(this.hook, newLine), this.hook) - } - - // Patch: Manually implement shift+Enter in regular text editing - if (event.shiftKey && event.key === "Enter" && this.activeMathElement === null) { - // Causes issues at least on chromium, prevention is required - event.preventDefault() - // TODO: Fix this shit later - // eslint-disable-next-line no-alert - alert("Using shift+enter is for now disabled.") - /* // Get nodes before the caret - const selection = Utils.getSelectedNode() - console.log("SELECTION") - let append = [] - if(selection.nodeName.toLowerCase() === "#text"){ - console.warn("Can't handle this!") - }else { - const selectionIndex = Utils.getNodeIndex(this.activeLine, selection) - console.log("INDEX") - for(let i = selectionIndex; i < this.activeLine.childNodes.length; i++){ - append.push(this.activeLine.childNodes[i]) - } - } - // Create a new line normally - const newLine = document.createElement("div") - if(append.length === 0){ - newLine.innerHTML = "
    " // Activate it as an editable line - }else { - for(const element of append){ - newLine.appendChild(element) - } - } - this.activeLine.after(newLine) - this.activeLine = newLine - console.debug("[ EDITOR ] Active line change to", this.activeLine) - Utils.selectByIndex(Utils.getNodeIndex(this.hook, this.activeLine), this.hook) */ - return - } - - // Patch: Dummy text in front of math if backspace used in front of row - if (event.key === "Backspace" && this.activeMathElement === null) { - // event.preventDefault() - const selection = Utils.getCaretPosition() - // TODO: Ignore on first line, causes fallback to trigger - if (selection.startOffset === 0) { - holdKeydown = true - - const tmpElementTable = {} - // Callback after edit - const recover = async (m, timeout) => { - m.disconnect() - clearInterval(timeout) - requestAnimationFrame(() => { - requestAnimationFrame(() => { - // Change math back - for (const id of Object.keys(Math.collection)) { - const dummy = document.querySelectorAll(`[dummy-id="${id}"]`)[0] - if (!dummy) { - console.error("Unable to recover document math element", id) - // eslint-disable-next-line no-continue - continue - } - const math = Math.collection[id] - dummy.after(math.container) - dummy.remove() - } - this.hook.oninput() - holdKeydown = false - }) - }) - } - - let m - - // Fallback to timeout - // TODO: Fallback is always triggered, mutation observer does not work? - const timeout = setInterval(() => { - console.warn("Dummy recovery fallback timeout triggered!") - recover(m, timeout) - }, 10) - - // Mutation observer - m = new MutationObserver(() => recover(m, timeout)) - - // Do the edits - const ids = Object.keys(Math.collection) - let index = ids.length - while (index !== 0) { // Ha! You can freeze the UI thread with this! - index -= 1 - const id = Object.keys(Math.collection)[index] - const tmpElement = Math.collection[id].image.cloneNode() - // When we match the size, it's impossible for the human eye to detect - // the math being gone for one frame, when the text does not reflow - // const dimensions = Math.collection[id].image.getBoundingClientRect() - // tmpElement.style.width = `${dimensions.width}px` - // tmpElement.style.height = `${dimensions.height}px` - // tmpElement.style.border = "unset" - tmpElement.style.padding = "5px" - tmpElement.style.margin = "0px 3px 3px 5px" - tmpElement.style.display = "inline-flex" - tmpElement.style.border = "border: 1px solid #d5e0e5" - tmpElement.style.verticalAlign = "middle" - tmpElement.setAttribute("dummy-id", id) - const math = Math.collection[id] - math.container.after(tmpElement) - tmpElementTable[id] = tmpElement - Math.domCache.appendChild(math.container) - } - - // Hook to line above - m.observe(this.hook.childNodes[Utils.getNodeIndex(this.hook, this.activeLine) - 1] ?? this.hook.childNodes[0], { subtree: true, childList: true, characterData: true }) - } - } - }) - - // Init math lib (creates caches and such, call once) - Math.init() - - // Set active math element - Math.events.addEventListener("focus", (event) => { - this.activeMathElement = event.detail - }) - - // Unset active math element and handle next selection - Math.events.addEventListener("blur", () => { - // Firefox patch: Detect useless br tags in empty lines - if (window.browser === "firefox") { - if (this.activeMathElement !== null && this.activeMathElement.isOpen === false && this.activeMathElement.image !== null && this.activeMathElement.image.parentNode !== null) { - if (this.activeMathElement.image.parentNode.parentNode.childNodes[0].nodeName.toLowerCase() === "br" && this.activeMathElement.image.parentNode.parentNode.childNodes.length === 2) { - this.activeMathElement.image.parentNode.parentNode.childNodes[0].remove() - } - } - } - - // Select end of math element - // Note: Chrome should override this - // TODO: If the element is removed, what should we select? For now we select nothing - if (this.activeMathElement && this.local.Math.collection[this.activeMathElement.id]) { - const parentLine = Utils.getParentLine(this.activeMathElement.container) - console.debug( - "Handling blur in", parentLine, "to index", Utils.getNodeIndex(parentLine, this.activeMathElement.container) + 1, "while range is", parentLine.childNodes.length - ) - if ( - this.watchHook && // Editor is active - !this.moveOutOfThisEvent// && // No move-out with arrow keys (other portion of code handles the selection) - // Note: Is this check needed? - // parentLine.childNodes.length - 1 <= Utils.getNodeIndex(parentLine, this.activeMathElement.container) + 1 // Selection exists - ) { - if (parentLine.childNodes[parentLine.childNodes.length - 1] === this.activeMathElement.container) Utils.selectEndOf(this.activeMathElement.container) - else Utils.select(parentLine, Utils.getNodeIndex(parentLine, this.activeMathElement.container) + 1) - } - } - - // Unset active math element - this.activeMathElement = null - }) - - // Handle moveOut - Math.events.addEventListener("moveOut", () => { - this.moveOutOfThisEvent = true - }) - - // Detect active line change with click events - window.addEventListener("click", () => { - // Get selection data and make sure it's valid - const selection = document.getSelection() - const line = selection.anchorNode.parentElement === this.hook ? selection.anchorNode : Utils.getParentLine(selection.anchorNode) - - // If we have only one line in the editor, we can focus that (as there are no other options) - if (this.hook.childNodes.length === 1 && this.activeLine !== this.hook.childNodes[0]) { - [this.activeLine] = this.hook.childNodes - Utils.selectByIndex(0, this.hook) - console.debug("[ EDITOR ] Active line change to", this.activeLine) - return - } - - if (!Utils.isSomeParent(selection.anchorNode, this.hook)) return - - // Update active line - if (line === this.hook || line === this.hook.parentElement) return - if (this.activeLine === line) return - this.activeLine = line - console.debug("[ EDITOR ] Active line change to", this.activeLine) - }) - - // Handle paste event - // TODO: Something is wrong with this! - this.hook.addEventListener("paste", async (/* event */) => { - // Remove styling from pasted data - // TODO: Insert the copied data - // const clipboardData = event.clipboardData || window.clipboardData - - // Shift copied math back - requestAnimationFrame(() => { - requestAnimationFrame(() => { - // Fix math elements - for (const line of this.hook.children) { - // eslint-disable-next-line no-plusplus - for (let i = 0; i < line.childNodes.length; i++) { - const node = line.childNodes[i] - const nextNode = line.childNodes[i + 1] - if (node.nodeName.toLowerCase() === "math" && (nextNode && nextNode.nodeName.toLowerCase() === "img")) { - node.appendChild(nextNode) - } - } - } - }) - }) - }) - - // Document content modification listener callback - this.observerCallback = async (e) => { - // Enable/disable observer - if (!this.watchHook) return - - // Patch: Make sure the editor has at least one editable line - const reference = this.hook.innerHTML.replace(/
    /g, "") - if (reference === "") { // Editor is empty. We need to add an empty line - // Add an empty line - this.hook.innerHTML = "

    " - Utils.selectByIndex(0, this.hook) - } - - // Handle active line change with the creation of a new line element - // TODO: Required? - const line = Utils.getSelectedNode()?.nodeName?.toLowerCase() === "div" ? Utils.getSelectedNode() : Utils.getParentLine(Utils.getSelectedNode()) - if (line !== this.activeLine && line !== this.hook) { - console.debug("[ EDITOR ] Active line change to", this.activeLine) - this.activeLine = line - } - - // Text modified? What is activeLine? - const parentLine = e && e.addedNodes && e.addedNodes[0] !== null ? Utils.getParentLine() : null - if (parentLine && this.activeLine !== parentLine) { - this.activeLine = parentLine - console.debug("[ EDITOR ] Active line change to", this.activeLine) - } - - // Handle resize observers for images - if (!this.resizeObserver) { - this.resizeObserver = new ResizeObserver(() => { - if (typeof this.hook.oninput === "function") this.hook.oninput() - }) - } - const newResizeList = [] - // eslint-disable-next-line no-shadow - for (const line of this.hook.childNodes) { - for (const node of line.childNodes) { - if (node.nodeName.toLowerCase() === "attachment" && node.childNodes[0].nodeName.toLowerCase() === "img") { - newResizeList.push(node) - } - } - } - if (!Utils.areEqual(newResizeList, this.resizeObserverNodes)) { // We need to re-generate the observers - this.resizeObserver.disconnect() - for (const node of newResizeList) this.resizeObserver.observe(node) - this.resizeObserverNodes = newResizeList - console.debug("[ EDITOR ] Resize observer list recreated.") - } - - // Patch: Add math elements missing from the collection back in - // TODO: No longer required? - for (const id of Object.keys(Math.collection)) { - const math = Math.collection[id] - if (!document.body.contains(math.container)) { - // Container has been lost - const container = document.querySelectorAll(`[_id="${math.id}"]`)[0] - if (container) { - math.container = container - math.image = math.container.firstChild - // math.image.setAttribute("onclick", "window.internal.ui.editor.local.Math.open(\"" + math.id + "\")") - console.debug("[ EDITOR ] Rebound", math) - } - } - } - - // Patch: If a math element is in the beginning/end of a line, remove textNodes from within the container - for (const id of Object.keys(Math.collection)) { - const math = Math.collection[id] - if (!math.isOpen) { - // Double parent for "a" container (see Math.close) - if (math.image.parentNode !== null && math.image.parentNode.childNodes.length > 1) { - let before = true - for (const child of math.image.parentElement.childNodes) { - if (child.nodeName.toLowerCase() === "img") { - before = false - // eslint-disable-next-line no-continue - continue - } - if (child.nodeName.toLowerCase() === "#text") { - // Move text out of the container - if (before) math.image.parentElement.before(child) - else math.image.parentElement.after(child) - // We can assume the child has selection, so move the caret to it when it has been moved - Utils.selectEndOf(child) - } - } - } - } - } - - // Patch: If line ends with math, activate it - if (this.activeLine.childNodes.length !== 0 && this.activeLine.childNodes.length > 1) { - if ( - ["math", "attachment"].includes(this.activeLine.childNodes[this.activeLine.childNodes.length - 1].nodeName.toLowerCase()) - ) { - this.activeLine.childNodes[this.activeLine.childNodes.length - 1].after(document.createElement("br")) - } - } - - // Firefox patch: Do not let lines deactivate, when they are emptied - // TODO: Should no longer be required (see above) - if (window.browser === "firefox") { - // eslint-disable-next-line no-shadow - for (const line of this.hook.childNodes) { - if (line.childNodes.length === 0) { - const activator = document.createElement("br") - line.appendChild(activator) // this.activator - } - } - } - - // Patch: Do not let lines deactivate, when there's only a math/image element present - // TODO: Needed? For now causes issues on chromium. - /* if (window.browser === "firefox") { - if (this.activeLine.childNodes.length === 1) { - if ( - this.activeLine.childNodes[0].nodeName.toLowerCase() === "math" || - this.activeLine.childNodes[0].nodeName.toLowerCase() === "attachment" - ) { // Left - this.activeLine.childNodes[0].contentEditable = true - } - if ( - this.activeLine.childNodes[this.activeLine.childNodes.length - 1].nodeName.toLowerCase() === "math" || - this.activeLine.childNodes[this.activeLine.childNodes.length - 1].nodeName.toLowerCase() === "attachment" - ) { // Right - this.activeLine.childNodes[this.activeLine.childNodes.length - 1].contentEditable = true - } - } - } */ - } - const observer = new MutationObserver(this.observerCallback) - this.observerCallback() - observer.observe(this.hook, { attributes: false, childList: true, subtree: true }) - - // Drag and drop images / video / gifs - /* const text = document.getElementById("droptext") - let hideBlur = false - this.hook.parentElement.ondrop = event => { - event.preventDefault() - for(const file of event.dataTransfer.files){ - if(file.type.startsWith("image/")){ - const reader = new FileReader() - reader.onload = () => { - const img = document.createElement("img") - const container = document.createElement("attachment") - if(!window.browser !== "browser") container.contentEditable = false - img.contentEditable = false - container.draggable = true - container.appendChild(img) - img.src = reader.result - Utils.copyToCursor(container.outerHTML, []) - } - reader.readAsDataURL(file) - } - } - this.hook.style.filter = "" - if(text) text.style.display = "none" - } - this.hook.parentElement.ondragover = e => { - if(e.originalTarget !== undefined && e.originalTarget.nodeName.toLowerCase() === "img") return - if(this.resizeObserverNodes.includes(e.target.parentNode)) return - hideBlur = false - this.hook.style.filter = "blur(8px)" - if(text) text.style.display = "block" - } - this.hook.parentElement.ondragleave = () => { - hideBlur = true - setTimeout(() => { - if(!hideBlur) return - this.hook.style.filter = "" - if(text) text.style.display = "none" - }, 500) - } */ - } - - /** - * Get editor content in the official save format - * @returns {Array} - */ - getContent() { - return [``].concat(Utils.toEmbedded(this.hook)) - } -} - -/** - * @type {MathEditor} - */ -export default Editor diff --git a/src/math-editor/input.css b/src/math-editor/input.css deleted file mode 100644 index 999c196..0000000 --- a/src/math-editor/input.css +++ /dev/null @@ -1,106 +0,0 @@ -.inputContainer.open { - display: flex; - flex-direction: row; - flex-wrap: wrap; - vertical-align: middle; - width: 100%; - box-shadow: 0 0 3px 0px rgba(0, 0, 0, 0.226); - border-left: 5px solid #709AC0; - background-color: #edf9ff; - border-radius: 3px 0px 0px 3px; - height: auto; - margin-bottom: 5px; - margin-top: 5px; - padding: 8px; -} -.inputContainer.closed { - cursor: pointer; - display: inline-flex; - vertical-align: middle; - margin-left: 3px; - margin-right: 3px; - border-radius: 4px; - margin-bottom: 5px; -} - -.inputContainer img { /* Image stand-in */ - padding: 5px; -} - -.inputSection.labels { /* Labels */ - background-color: #edf9ff; - width: 35px; - border-radius: 1px; -} -.inputSection.labels :first-child { - margin-bottom: 3px; -} - -.inputSection.limit { - width: 8px; -} - -.inputSection.info { - float: right; - display: block; - margin-top: 5px; - margin-left: 5px; - margin-bottom: 0px; - font-size: 14px; - color: red; - font-style: italic; -} - -.inputSection.inputs { /* Inputs */ - width: calc(100% - 35px - 18px); - height: auto; - padding-left: 10px; - background-color: white; -} -.inputSection { - display: flex; - align-content: center; - flex-direction: column; - justify-content: center; -} - -.inputField { - width: 100%; - height: 100%; - vertical-align: middle; -} - -.rawLatex { - font-size: 18px; - font-family: Symbola; - border: 0px; - margin: 0px; - padding: 0px; - outline: none; -} - -.inputLabel { - width: 35px; - height: 35px; - line-height: 35px; - text-align: center; - border-radius: 5px; - margin: 0px; - font-size: 1rem; - cursor: pointer; - background-color: white; - box-shadow: var(--small-shadow); - color: black; -} -.inputLabel.active { - background-color: #e1e9ec; -} -.inputLabel svg { - height: calc(100% - 15px); - width: calc(100% - 15px); - padding: 7.5px; -} - -.inputLabel:hover { - background-color: #f6f8f9; -} \ No newline at end of file diff --git a/src/math-editor/input.js b/src/math-editor/input.js deleted file mode 100644 index da7399c..0000000 --- a/src/math-editor/input.js +++ /dev/null @@ -1,117 +0,0 @@ -/** Dynamic editor input element component */ -/** - * @typedef MathInput - * @property {HTMLElement} container - * @property {HTMLElement} inputElement - * @property {HTMLElement} image - * - */ - -import { faEye, faCode } from "@fortawesome/free-solid-svg-icons" - -/** - * Simple utility to create a new element with a few arbitrary parameters - * @param {string} type - * @param {string} className - * @param {HTMLElement} parent - * @returns {HTMLElement} - */ -function createElement( - type, className, parent -) { - try { - const element = document.createElement(type) - element.className = className - if (parent) parent.appendChild(element) - return element - } catch (e) { - console.error("[ EDITOR - INPUT ] CreateElement utility failed (this is most likely a bug...):", e) - return null - } -} - -/** - * Create a dynamic editor input element - * @returns {MathInput} - */ -export default () => { - // Parent - const container = createElement("math", "inputContainer") - container.contentEditable = false - - // Sections - const section1 = createElement( - "section", "inputSection inputs", container - ) - section1.contentEditable = false - // eslint-disable-next-line no-unused-vars - const limit = createElement( - "section", "inputSection limit", container - ) - const section0 = createElement( - "section", "inputSection labels", container - ) - section0.contentEditable = false - - // Notification bar (text) - const info = createElement( - "p", "inputSection info", container - ) - info.contentEditable = false - - // Dynamic latex input field & label - const dynamicLatex = createElement( - "span", "mathQuillField", section1 - ) // TODO: Class name? - const dynamicLatexLabel = createElement( - "p", "inputLabel active", section0 - ) - dynamicLatexLabel.innerHTML = - ` - - ` - - // Raw latex input field & label - const rawLatex = createElement( - "input", "rawLatex", section1 - ) - rawLatex.type = "text" - rawLatex.style.display = "none" - const rawLatexLabel = createElement( - "p", "inputLabel", section0 - ) - rawLatexLabel.innerHTML = - ` - - ` - - // Clicks - rawLatexLabel.onclick = async () => { - dynamicLatex.style.display = "none" - rawLatexLabel.className = "inputLabel active" - dynamicLatexLabel.className = "inputLabel" - rawLatex.style.display = "" - } - dynamicLatexLabel.onclick = async () => { - dynamicLatex.style.display = "" - dynamicLatexLabel.className = "inputLabel active" - rawLatexLabel.className = "inputLabel" - rawLatex.style.display = "none" - } - - // Create dummy interface for raw latex, as that's simply a text input - const interfaceDummy = { - latex: (data) => { - rawLatex.value = data - } - } - - return { - container, - dynamicInput: dynamicLatex, - latexInput: rawLatex, - latexInterface: interfaceDummy, - labels: [rawLatexLabel, dynamicLatexLabel], - infoElement: info - } -} diff --git a/src/math-editor/math.js b/src/math-editor/math.js deleted file mode 100644 index c8561b1..0000000 --- a/src/math-editor/math.js +++ /dev/null @@ -1,386 +0,0 @@ -/* eslint-disable new-cap */ -/* globals MathQuill, MathJax */ -// Todo: Move from worker components to here -import * as uuid from "./uuid" -// TODO: This should be fixed? -// eslint-disable-next-line import/no-cycle -import Utils from "./utils" -import input from "./input" - -// Assets -import errorIcon from "./error.svg" -import specialChars from "./specialChars" - -/** - * @typedef MathElement Matikkaeditori math element - * @property {HTMLElement} container The main element (container) of the math element - * @property {*} dynamicInterface Latex input interface (MathQuill) - * @property {HTMLElement} dynamicInput The math input element - * @property {HTMLElement} latexInput The math input element - * @property {HTMLElement} latexInterface Latex input interface (RAW) - * @property {*} image Image element of rendered latex - * @property {boolean} isOpen Is the math element open? - * @property {string} data Element data - * @property {string} id Math element's id - * @property {HTMLElement[]} labels Math element's selection labels - * @property {HTMLElement} infoElement Info element, text - * @property {[]} flags List of temporary flags - */ - -/** - * Editor math utilities (wrapper for MathQuill) - */ -const Math = { - events: new EventTarget(), - cache: {}, // Cached editor elements - domCache: document.createElement("interfaceCache"), - /** - * @type {Object.} - */ - collection: {}, - - /** - * Create a new math element - * @returns {MathElement} - */ - create() { - // Create construct - /** - * @type {MathElement} - */ - const obj = { - image: document.createElement("img"), - isOpen: null, - writable: true, - id: uuid.v4(), - data: "", - flags: [] - } - obj.image.setAttribute("draggable", "false") - this.collection[obj.id] = obj - - // Create HTML elements - // container: Parent of all elements - // inputElement: Reference to the raw element - // image: Reference to the image stand-in for the input when it's closed - Object.assign(obj, input()) - - // Initialize MathQuill - const mathQuillInterface = MathQuill.getInterface(2) - obj.dynamicInterface = mathQuillInterface.MathField(obj.dynamicInput, { - // MathQuill configuration - spaceBehavesLikeTab: false, - handlers: { - edit: async () => { - if (obj.flags.includes("ignoreInputDynamic")) { - obj.flags.splice(obj.flags.indexOf("ignoreInputDynamic"), 1) - return - } - if (obj.flags.includes("disableInputDynamic")) return - if (obj.data !== obj.dynamicInterface.latex()) { - this.write( - obj.id, obj.dynamicInterface.latex(), "dynamic" - ) - } - obj.dynamicInterface.focus() - }, - moveOutOf: async (direction) => { - this.events.dispatchEvent(new CustomEvent("moveOut", { detail: obj })) - this.close(obj.id) - const line = Utils.getParentLine(obj.container) - let outsideNodeIndex = Utils.getNodeIndex(line, obj.container) - if (direction > 0) outsideNodeIndex += 1 - if (line.childNodes[line.childNodes.length - 1] === obj.container) { - obj.container.after(document.createElement("br")) - } - Utils.select(line, outsideNodeIndex) - } - } - }) - - // Initialize raw input - // TODO: Move out with arrow keys for raw stuff...? - obj.latexInput.oninput = async () => { - // No skipping needed - /* if(obj.flags.includes("ignoreInputLatex")){ - obj.flags.splice(obj.flags.indexOf("ignoreInputLatex"), 1) - //return - } */ - if (obj.latexInput.value !== obj.data) { - this.write( - obj.id, obj.latexInput.value, "latex" - ) - } - } - - // Listen for close events - /* obj.dynamicInput.children[0].children[0].onblur = async () => { // Not a listener -> Not a memory leak. - if(obj.isOpen && !Utils.wasParentClicked(obj.container)) this.close(obj.id) - } - obj.latexInput.onblur = async () => { // Not a listener -> Not a memory leak. - if(obj.isOpen && !Utils.wasParentClicked(obj.container)) this.close(obj.id) - } */ - - // Finalize - // obj.image.setAttribute("onclick", "window.internal.ui.editor.local.Math.open(\"" + obj.id + "\")") - obj.container.setAttribute("math", "") // TODO: This change has to be propagated - obj.container.setAttribute("math-id", obj.id) - obj.container.style.display = "none" - return obj - }, - - /** - * Open a math element - * @param {string} id - * @returns {void} - */ - open(id) { - const obj = this.collection[id] - if (obj.isOpen) return - - // obj.container.contentEditable = false - - // Open the element - // TODO: Refactor this - if (obj.isOpen === null) { - // Never opened or closed before, element is ready - obj.container.style.display = "" - obj.container.className = "inputContainer open" - obj.container.removeAttribute("style") - obj.image.removeAttribute("style") - obj.isOpen = true - } else { - obj.container.removeAttribute("style") - obj.image.removeAttribute("style") - - // Get elements from cache - if (this.cache[id] !== undefined) { - while (obj.container.firstChild) { - obj.container.lastChild.remove() - if (!obj.container.firstChild) break - } - for (const child of this.cache[id]) obj.container.appendChild(child) - obj.isOpen = true - obj.container.className = "inputContainer open" - - // Set values - obj.flags.push("ignoreInputDynamic") - obj.dynamicInterface.latex(obj.data) - obj.latexInterface.latex(obj.data) - } else { - throw new Error("Cache miss") - } - } - - if (obj.flags.includes("disableInputDynamic")) obj.labels[0].click() // Forces the raw latex view to open - - // NOTE: Mathquill requires a single frame (at least) to get ready - requestAnimationFrame(() => { - // MathQuill weirdness - obj.dynamicInterface.focus() - obj.dynamicInterface.reflow() - - // Todo: This should not live in here. This component is dynamic. - if (window.setLatexCommandsVisibility) window.setLatexCommandsVisibility(true) - this.events.dispatchEvent(new CustomEvent("focus", { detail: obj })) - }) - }, - - /** - * Remove a math element - * @param {string} id - * @returns {void} - */ - remove(id) { - const obj = this.collection[id] - if (obj === undefined) throw new Error(`Math element "${id}" does not exist`) - // Remove the container - obj.container.remove() - // Remove from memory - delete this.collection[id] - this.events.dispatchEvent(new CustomEvent("remove", { detail: id })) // Future-proofing - }, - - /** - * Write data to a math element - * @param {string} id - * @param {string} data - * @param {string} from - */ - write( - id, data, from = "" - ) { - if (!this.collection[id]) throw new Error(`Math element "${id}" does not exist`) - const obj = this.collection[id] - if (!obj.writable) return - - obj.data = data - obj.container.setAttribute("math", btoa(data)) - - // Fix: Pop stuff in the cache - const placeholder = document.createElement("span") - obj.dynamicInput.after(placeholder) - this.domCache.appendChild(obj.dynamicInput) - - // Write the actual data, finally - if (from !== "dynamic") { - obj.flags.push("ignoreInputDynamic") - obj.dynamicInterface.latex(data) - obj.dynamicInterface.reflow() - if (obj.dynamicInterface.latex() !== data) { - if (obj.flags.includes("disableInputDynamic")) return - obj.dynamicInput.style.pointerEvents = "none" - obj.dynamicInput.style.userSelect = "none" - obj.infoElement.innerText = "LaTex syntax error" - obj.flags.push("disableInputDynamic") - } else { - obj.dynamicInput.style.pointerEvents = "" - obj.dynamicInput.style.userSelect = "" - obj.infoElement.innerText = "" - if (obj.flags.includes("disableInputDynamic")) obj.flags.splice(obj.flags.indexOf("disableInputDynamic"), 1) - } - } - if (from !== "latex") { - // obj.flags.push("ignoreInputLatex") - obj.latexInterface.latex(data) - } - - // Pop-out of cache - placeholder.before(obj.dynamicInput) - placeholder.remove() - }, - - /** - * Close a math element - * @param {string} id - * @returns {void} - */ - async close(id) { - const obj = this.collection[id] - if (obj === undefined) throw new Error(`Math element "${id}" does not exist`) - if (!obj.isOpen) return - - // Close the element - obj.isOpen = false - obj.container.className = "inputContainer closed" - obj.container.removeAttribute("style") - obj.image.removeAttribute("style") - - // Invalid latex? - if (obj.dynamicInterface.latex() !== obj.data) { - // Add error icon - obj.image.src = `${errorIcon}` - // TODO: Move to css - obj.image.style.display = "inline" - obj.image.style.width = "20px" - // Remove every element from container - this.cache[id] = [] - for (const child of obj.container.children) this.cache[id].push(child) - while (obj.container.firstChild) { - obj.container.lastChild.remove() - if (!obj.container.firstChild) break - } - - // Add image - obj.container.appendChild(obj.image) - } else { - // Render latex in the form of an SVG - - // Handle umlauts - let formattedData = obj.data - formattedData = formattedData.replace(/ö/g, "\\ddot{o}") - formattedData = formattedData.replace(/ä/g, "\\ddot{a}") - formattedData = formattedData.replace(/å/g, "\\mathring{a}") - - // Handle some specific units - formattedData = formattedData.replace(/€/g, "\\unicode{0x20AC}") // € - - // Handle special chars - for (const char of specialChars[0].characters) { - formattedData = formattedData.split(char.character).join(char.latexCommand) - } - - const initialOptions = MathJax.getMetricsFor(obj.latexInput) - - const render = await MathJax.tex2svgPromise(formattedData, initialOptions) - - // Todo: Elements not removed -> Is the memory still freed? - const svg = render.getElementsByTagName("svg")[0].outerHTML - - // Display rendered svg - obj.image.src = `data:image/svg+xml;base64,${btoa(unescape(svg))}` - - // Remove every element from container - this.cache[id] = [] - for (const child of obj.container.children) this.cache[id].push(child) - while (obj.container.firstChild) { - obj.container.lastChild.remove() - if (!obj.container.firstChild) break - } - - // Add image - obj.container.appendChild(obj.image) - } - // Todo: This should not live in here. This component is dynamic. - if (window.setLatexCommandsVisibility) window.setLatexCommandsVisibility(false) - - // Remove if empty - if (obj.data.length === 0) { - this.events.dispatchEvent(new CustomEvent("blur", { detail: obj })) - Utils.waitForEvent(this.events, "blur").then(() => { - this.remove(id) - }) - } - - // obj.container.contentEditable = true - this.events.dispatchEvent(new CustomEvent("blur", { detail: obj })) - obj.container.setAttribute("math", btoa(obj.data)) - }, - - /** - * Flush math related memory - * @returns {void} - */ - flush() { - this.cache = {} - for (const id of Object.keys(this.collection)) { - this.remove(id) - } - delete this.collection - this.domCache.innerHTML = "" - this.collection = {} - }, - - init() { - // This needs to exist for now, as MathQuill needs to do some svg calculations. - // Without this the elements won't have the appropriate prototypes - // A cleaner solution will be explored when I decide to have time for that :p - Math.domCache.style.display = "none" - document.body.appendChild(Math.domCache) - - // Listener to open stuff - window.addEventListener("click", async (e) => { - const id = e.target.getAttribute("math-id") ?? e.target.parentElement.getAttribute("math-id") - if (id && this.collection[id] && !this.collection[id].isOpen) { - this.open(id) - } - }) - - // Listener to close stuff - window.addEventListener("mousedown", async (e) => { - // Don't hide for symbol clicks - if (e.target?.parentElement?.className === "symbols" || e.target?.parentElement?.parentElement?.className === "symbols") return - const id = e.target.getAttribute("math-id") ?? e.target.parentElement.getAttribute("math-id") - // Close all open math - const closeThese = Object.keys(this.collection) - .filter((_id) => _id !== id) - // eslint-disable-next-line no-underscore-dangle - .filter((_id) => this.collection[_id].isOpen) - // eslint-disable-next-line no-underscore-dangle - .filter((_id) => !Utils.isSomeParent(e.target, this.collection[_id].container)) - closeThese.forEach((_id) => this.close(_id)) - }) - } -} - -export default Math diff --git a/src/math-editor/specialChars.js b/src/math-editor/specialChars.js deleted file mode 100644 index 99da2fd..0000000 --- a/src/math-editor/specialChars.js +++ /dev/null @@ -1,113 +0,0 @@ -/* eslint-disable quotes */ - -export default [ - { - label: 'Perusmerkit ja kreikkalaiset aakkoset', - characters: [ - { character: '°', popular: true }, - { character: '·', latexCommand: '\\cdot', popular: true }, - { character: '±', latexCommand: '\\pm', popular: true }, - { character: '∞', latexCommand: '\\infty', popular: true }, - { character: '²', latexCommand: '^2', popular: true }, - { character: '³', latexCommand: '^3', popular: true }, - { character: '½', latexCommand: '\\frac{1}{2}', popular: true }, - { character: '⅓', latexCommand: '\\frac{1}{3}', popular: true }, - { character: 'π', latexCommand: '\\pi', popular: true }, - { character: 'α', latexCommand: '\\alpha', popular: true }, - { character: 'β', latexCommand: '\\beta', popular: true }, - { character: 'Γ', latexCommand: '\\Gamma' }, - { character: 'γ', latexCommand: '\\gamma' }, - { character: 'Δ', latexCommand: '\\Delta' }, - { character: 'δ', latexCommand: '\\delta' }, - { character: 'ε', latexCommand: '\\varepsilon' }, - { character: 'ζ', latexCommand: '\\zeta' }, - { character: 'η', latexCommand: '\\eta' }, - { character: 'θ', latexCommand: '\\theta' }, - { character: 'ϑ', latexCommand: '\\vartheta' }, - { character: 'ι', latexCommand: '\\iota' }, - { character: 'κ', latexCommand: '\\kappa' }, - { character: 'Λ', latexCommand: '\\Lambda' }, - { character: 'λ', latexCommand: '\\lambda' }, - { character: 'µ', latexCommand: '\\mu' }, - { character: 'ν', latexCommand: '\\nu' }, - { character: 'Ξ', latexCommand: '\\Xi' }, - { character: 'ξ', latexCommand: '\\xi' }, - { character: '∏', latexCommand: '\\Pi' }, - { character: 'ρ', latexCommand: '\\rho' }, - { character: '∑', latexCommand: '\\Sigma' }, - { character: 'σ', latexCommand: '\\sigma' }, - { character: 'τ', latexCommand: '\\tau' }, - { character: 'Υ', latexCommand: '\\Upsilon' }, - { character: 'υ', latexCommand: '\\upsilon' }, - { character: 'Φ', latexCommand: '\\Phi' }, - { character: 'Ф', latexCommand: '\\phi' }, - { character: 'χ', latexCommand: '\\chi' }, - { character: 'Ψ', latexCommand: '\\Psi' }, - { character: 'ψ', latexCommand: '\\psi' }, - { character: 'Ω', latexCommand: '\\Omega' }, - { character: 'ω', latexCommand: '\\omega' }, - { character: '∂', latexCommand: '\\partial' }, - { character: 'φ', latexCommand: '\\varphi' } - ] - }, - { - label: 'Algebra', - characters: [ - { character: '≠', latexCommand: '\\neq', popular: true }, - { character: '≈', latexCommand: '\\approx', popular: true }, - { character: '≤', latexCommand: '\\leq', popular: true }, - { character: '≥', latexCommand: '\\geq' }, - { character: '<' }, - { character: '>' }, - { character: '∼', latexCommand: '\\sim' }, - { character: '≡', latexCommand: '\\equiv' }, - { character: '≢', latexCommand: '\\not\\equiv' }, - { character: '∘', latexCommand: '\\circ' }, - { character: '…', latexCommand: '\\ldots' }, - { character: '∝', latexCommand: '\\propto' } - ] - }, - { - label: 'Geometria ja vektorioppi', - characters: [ - { character: '∢', latexCommand: '\\sphericalangle', popular: true }, - { character: '|', latexCommand: '\\mid', popular: true }, // \pipe, - { character: '‖', latexCommand: '\\parallel', popular: true }, - { character: '⇌', latexCommand: '\\xrightleftharpoons', noWrite: true }, - { character: '⇅' }, - { character: '∠', latexCommand: '\\angle' }, - { character: '↑', latexCommand: '\\uparrow' }, - { character: '↗', latexCommand: '\\nearrow' }, - { character: '↘', latexCommand: '\\searrow' }, - { character: '↓', latexCommand: '\\downarrow' }, - { character: '↔', latexCommand: '\\leftrightarrow' }, - { character: '⊥', latexCommand: '\\perp' } - ] - }, - { - label: 'Logiikka ja joukko-oppi', - characters: [ - { character: '→', latexCommand: '\\rightarrow', popular: true }, - { character: '⇒', latexCommand: '\\Rightarrow', popular: true }, - { character: '⇔', latexCommand: '\\Leftrightarrow', popular: true }, - { character: '∈', latexCommand: '\\in', popular: true }, - { character: 'ℤ', latexCommand: '\\mathbb{Z}', popular: true }, - { character: 'ℝ', latexCommand: '\\mathbb{R}', popular: true }, - { character: '∃', latexCommand: '\\exists' }, - { character: '∀', latexCommand: '\\forall' }, - { character: 'ℕ', latexCommand: '\\mathbb{N}' }, - { character: 'ℚ', latexCommand: '\\mathbb{Q}' }, - { character: '∩', latexCommand: '\\cap' }, - { character: '∪', latexCommand: '\\cup' }, - { character: '∖', latexCommand: '\\setminus' }, - { character: '⊂', latexCommand: '\\subset' }, - { character: '⊄', latexCommand: '\\notsubset' }, - { character: '∉', latexCommand: '\\notin' }, - { character: '∅', latexCommand: '\\empty' }, - { character: '∧', latexCommand: '\\and' }, - { character: '∨', latexCommand: '\\or' }, - { character: '¬' }, - { character: '∇', latexCommand: '\\nabla' } - ] - } -] diff --git a/src/math-editor/utils.js b/src/math-editor/utils.js deleted file mode 100644 index e0054c1..0000000 --- a/src/math-editor/utils.js +++ /dev/null @@ -1,773 +0,0 @@ -// eslint-disable-next-line import/no-cycle -import Math from "./math" - -/** - * Editor utility functions - */ -const Utils = { - /** - * -------------------------------------------------------- - * Node handling - * -------------------------------------------------------- - */ - /** - * Get node index in tree - * @param {Node} list Parent element - * @param {HTMLAnchorElement} node Node to get the index of - * @returns {number} - */ - getNodeIndex(list, node) { - if (!(list instanceof HTMLElement)) throw console.error("[ EDITOR ] List provided to getNodeIndex is not an instance of HTMLElement.") - let index = 0 - for (const childNode of list.childNodes) { - if (childNode === node) break - index += 1 - } - return index - }, - - /** - * Get a node by it's index from the DOM - * @param {Node} list Parent element - * @param {number} index Index to read from the childNodes of the parent element - * @returns {Node|null} - */ - getNodeByIndex(list, index) { - if (!(list instanceof HTMLElement)) throw console.error("[ EDITOR ] List given to getNodeByIndex is not an instance of HTMLElement.") - if (list.childNodes.length - 1 < index) throw console.error("[ EDITOR ] Selection given to getNodeByIndex is out of range.") - return list.childNodes[index] - }, - - /** - * Enable/Disable anchor-ability for a set of nodes/elements - * @param {HTMLElement[]|Node[]} list List of elements - * @param {boolean} mode True/false to set mode state - * @returns {Promise} - */ - async toggleAnchorMode(list, mode) { - // Todo: This is a very hacky way to do this - // and it WILL NOT scale well - return new Promise((resolve) => { - for (const item of list) { - item.contentEditable = mode - } - // Request frames - // Two frames make it so at least one frame is always "painted" - requestAnimationFrame(() => { - requestAnimationFrame(() => { - setTimeout(() => { - resolve() - }, 50) // 50 ms delay to allow for processing - // Todo: Is 50ms enough? What about very slow devices? - }) - }) - }) - }, - - /** - * See if a node is under some other node in the DOM - * @param {Node} node - * @param {Node} parent - * @returns {boolean} - */ - isSomeParent(node, parent) { - if (!(node instanceof Node)) throw console.error("[ EDITOR ] Node given to isSomeParent is not instance of Node.") - if (parent === null) return false - /* const traverse = (innerNode) => { - if(innerNode.parentNode === parent){ - return true - }else { - // Check other parent - if(innerNode.parentNode !== null) return traverse(innerNode.parentNode) - return false - } - - } - return traverse(node) */ - return parent.contains(node) // Faster & More efficient! - }, - - /** - * Find the parent line of a node in content-editable - * @param {Node} node - * @returns {Node|null} - */ - getParentLine(node) { - if (!(node instanceof Node)) throw console.error("[ EDITOR ] Node given to getParentLine is not instance of Node.") - const traverse = (innerNode) => { - if ((innerNode?.parentNode?.nodeName || "").toLowerCase() === "div") { - return innerNode.parentNode - } - // Check other parent - if (innerNode.parentNode !== null) return traverse(innerNode.parentNode) - return null - } - return traverse(node) - }, - - /** - * Insert a node in a certain range - * @param {Range} range Position - * @param {Node} node Node on insert - * @returns {void} - */ - insertNodeAt(range, node) { - if (!(range instanceof Range)) throw console.error("[ EDITOR ] Range given to insertNodeAt is not instance of Range.") - if (!(node instanceof Node)) throw console.error("[ EDITOR ] Node given to insertNodeAt is not instance of Node.") - range.insertNode(node) - }, - - /** - * Convert a node list to an array - * @param {NodeListOf} list - * @returns {Node[]} - */ - listToArray(list) { - const array = [] - for (const entry of list) { - array.push(entry) - } - return array - }, - - /** - * -------------------------------------------------------- - * Event & Async tools - * -------------------------------------------------------- - */ - /** - * Wait for an event from a given event target - * @param {EventTarget} from - * @param {string} event - * @returns {Promise} - */ - waitForEvent(from, event) { - if (!(from instanceof EventTarget)) throw console.error("[ EDITOR ] Event target given to waitForEvent is not instance of EventTarget.") - if (typeof event !== "string") throw console.error("[ EDITOR ] Event name given to waitForEvent is not a type of string.") - return new Promise((resolve) => { - const handler = async () => { - from.removeEventListener(event, handler) - resolve() - } - from.addEventListener(event, handler) - }) - }, - - /** - * Execute a function & await a promise in async context - * @param {function} input - * @param {Promise} promise - * @returns {Promise} - */ - async asyncTrigger(input, promise) { - if (typeof input !== "function") throw console.error("[ EDITOR ] Input given to asyncTrigger is not typeof function.") - if (!(promise instanceof Promise)) throw console.error("[ EDITOR ] Promise given to asyncTrigger is not instance of Promise.") - return new Promise((resolve, reject) => { - promise.then((...args) => { - resolve(...args) - }).catch((...args) => { - // eslint-disable-next-line prefer-promise-reject-errors - reject(...args) - }) - input() - }) - }, - - /** - * -------------------------------------------------------- - * Selection management - * -------------------------------------------------------- - */ - /** - * Get current selection as a node - * @returns {Node} - */ - getSelectedNode() { - const node = document.getSelection().focusNode - if (node === null) return null // No selection - return (node.nodeType === 3 ? node.parentNode : node) - }, - - /** - * Select a part of the given element - * @param {HTMLElement|Node} element - * @param {number} index - * @returns {void} - */ - // eslint-disable-next-line consistent-return - select(element, index) { - if (!(element instanceof HTMLElement) && !(element instanceof Node)) throw console.error("[ EDITOR ] Element/Node given to select is not instance of HTMLElement/Node.") - if (typeof index !== "number") throw console.error("[ EDITOR ] Index given to select is not type of number.") - if (element.childNodes.length - 1 < index) return console.error("[ EDITOR ] Selection given to select is out of range!") - const range = document.createRange() - const selection = window.getSelection() - range.setStart(element, index) - range.collapse(true) - selection.removeAllRanges() - selection.addRange(range) - }, - - /** - * Select an element by it's index in the DOM (contents) - * @param {number} index - * @param {HTMLElement} element - * @returns {void} - */ - selectByIndex( - index, element, collapse - ) { - if (element.childNodes.length - 1 < index) throw console.error("[ EDITOR ] Selection given to selectByIndex is out of range!") - const range = document.createRange() - const sel = document.getSelection() - range.selectNodeContents(element.childNodes[index]) - range.collapse(collapse ?? true) - sel.removeAllRanges() - sel.addRange(range) - }, - - /** - * Move caret to the end within an element - */ - selectEndOf(node) { - const range = document.createRange() - const sel = document.getSelection() - range.setStartAfter(node) - range.setEndAfter(node) - - sel.removeAllRanges() - sel.addRange(range) - }, - - /** - * Get current caret position - * @returns {Range} - */ - getCaretPosition() { - const selection = window.getSelection() - let range - if (selection) { - range = selection.getRangeAt(0) - range.deleteContents() - } else { - range = document.selection.createRange() - } - return range - }, - - /** - * Copy HTML to the cursor position - * @param {string} html - * @param {Array} files Blob references of files included in the html - * @returns {Promise} - */ - /* async _copyToCursor(html, files){ - return new Promise(resolve => { - // Get cursor position as a range - const sel = document.getSelection() - const offset = sel.anchorOffset - const range = document.createRange() - range.setStart(sel.anchorNode, offset) - range.collapse(true) - sel.removeAllRanges() - sel.addRange(range) - if(html !== ""){ - // This is copied content - const dummy = document.createElement("div") - // Todo: Huge XSS vulnerability here! Fix later... - dummy.innerHTML = html.includes("") ? html.split("")[1].split("")[0] : html - // Todo: Test the HTML for valid data - // Todo: I have no fucking idea why this works and why we need to do this. - // Don't you fucking dare touch this badness I won't help you fix it!!! - let last = null - const tmp = [...dummy.childNodes] - let fileIterator = 0 - for(let elem of tmp){ - // Correct image urls - if(elem.nodeName.toLowerCase() === "img"){ - const blob = files[fileIterator] - ++fileIterator - const container = document.createElement("attachment") - container.contentEditable = false - container.draggable = true - elem.contentEditable = false - const img = elem - elem = container - container.appendChild(img) - const reader = new FileReader() - reader.onload = () => { - img.src = reader.result - } - if(img.src.toString().includes(".gif")){ - alert("GIFs cannot be copied at the moment :( Take this image instead!") - } - reader.readAsDataURL(blob) - } - - // Correct text nodes - if(elem.nodeName.toLowerCase() === "span"){ - elem = document.createTextNode(elem.innerText) - } - if(!last) range.insertNode(elem) - else last.after(elem) - last = elem - } - sel.collapseToEnd() - dummy.remove() - resolve() - }else { - // Only a copied file, if anything - let last = null - for(const file of files){ - if(file.type.startsWith("image/")){ - // We can copy this - const reader = new FileReader() - reader.onload = () => { - const img = document.createElement("img") - const container = document.createElement("article") - container.contentEditable = false - if(!window.browser !== "browser") img.contentEditable = false - container.draggable = true - container.appendChild(img) - img.src = reader.result - if(!last) range.insertNode(container) - else last.after(container) - last = container - } - reader.readAsDataURL(file) - } - } - sel.collapseToEnd() - resolve() - } - }) - }, */ - - copyToCursor(text, files) { - return new Promise((resolve) => { - // Get cursor position as a range - const sel = document.getSelection() - const offset = sel.anchorOffset - const range = document.createRange() - range.setStart(sel.anchorNode, offset) - range.collapse(true) - sel.removeAllRanges() - sel.addRange(range) - if (files.length !== 0) { - let last = null - for (const file of files) { - if (file.type.startsWith("image/")) { - // We can copy this - const reader = new FileReader() - // eslint-disable-next-line no-loop-func - reader.onload = () => { - const img = document.createElement("img") - const container = document.createElement("attachment") - container.contentEditable = false - if (!window.browser !== "browser") img.contentEditable = false - container.draggable = true - container.appendChild(img) - img.src = reader.result - if (!last) range.insertNode(container) - else last.after(container) - last = container - } - reader.readAsDataURL(file) - } - } - sel.collapseToEnd() - resolve() - } else { - const node = document.createTextNode(text) - range.insertNode(node) - sel.collapseToEnd() - resolve() - } - }) - }, - - /** - * Check if the parent was clicked. In this case, the parent inherits all of the child node click events. - * - * NOTE: This function forces 3 animation frames! - * @param {HTMLElement|Node} parent - */ - async wasParentClicked(parent) { - return new Promise((resolve) => { - requestAnimationFrame(() => { - const activeElement = Utils.getSelectedNode() - // console.log("ACTIVE", activeElement) - console.log( - "Was parent clicked?", activeElement, parent - ) - if (this.isSomeParent(activeElement, parent) || activeElement === parent) { - resolve(true) - } else { - resolve(false) - } - }) - }) - }, - - /** - * -------------------------------------------------------- - * Object & Array handling - * -------------------------------------------------------- - */ - /** - * Read value of object's objects and return them as an array - * @param {{}} obj - * @param {string} property - * @returns {[...any]} - */ - getObjectPropertyArray(obj, property) { - if (typeof obj !== "object") throw console.error("[ EDITOR ] Object given to getObjectPropertyArray is not type of object.") - if (typeof property !== "string") throw console.error("[ EDITOR ] Property given to getObjectPropertyArray is not type of string.") - const keys = Object.keys(obj) - const list = [] - for (const key of keys) { - if (obj[key][property] !== undefined) list.push(obj[key][property]) - } - return list - }, - - /** - * Read a value of array's object and return them as an array - * @param {Array} array - * @param {string} property - * @returns {[...any]} - */ - getArrayItemPropertyArray(array, property) { - if (!Array.isArray(array)) throw console.error("[ EDITOR ] Array given to getArrayItemPropertyArray is not an array.") - if (typeof property !== "string") throw console.error("[ EDITOR ] Property given to getArrayItemPropertyArray is not type of string.") - const list = [] - for (const entry of array) { - if (entry[property] !== undefined) list.push(entry[property]) - } - return list - }, - - /** - * Find next instance of a string in an array - * @param {string} string - * @param {[]} array - * @param {number} index - * @returns {number} - */ - findNextOf( - string, array, index - ) { - if (typeof string !== "string") throw console.error("[ EDITOR ] String given to findNextOf is not type of string.") - if (!Array.isArray(array)) throw console.error("[ EDITOR ] Array given to findNextOf is not an array.") - if (typeof index !== "number") throw console.error("[ EDITOR ] Index given to findNextOf is not type of number.") - // -1 is already also false - return index ? array.slice(index).indexOf(string) : array.indexOf(string) - }, - - // TODO: Indexes or what? - /** - * Read data between two array indexes - * @param {[]} array - * @param {number} start - * @param {number} end - * @returns {[..any]} - */ - readBetweenIndexes( - array, start, end - ) { - if (!Array.isArray(array)) throw console.error("[ EDITOR ] Array given to readBetweenIndexes is not an array.") - if (typeof start !== "number") throw console.error("[ EDITOR ] Start given to readBetweenIndexes is not type of number.") - if (typeof end !== "number") throw console.error("[ EDITOR ] End given to readBetweenIndexes is not type of number.") - const arrayClone = JSON.parse(JSON.stringify(array)) - return arrayClone.splice(start, end - start) - }, - - /** - * Get new clone of an array with a start index - * @param {[]} array - * @param {number} index - * @returns {[...any]} - */ - getCloneFromIndex(array, index) { - if (!Array.isArray(array)) throw console.error("[ EDITOR ] Array given to getCloneFromIndex is not an array.") - if (typeof index !== "number") throw console.error("[ EDITOR ] Index given to getCloneFromIndex is not type of number.") - const arrayClone = JSON.parse(JSON.stringify(array)) - return arrayClone.slice(index) - }, - - /** - * Compare 2 arrays - * @param {Array} array1 - * @param {Array} array2 - * @returns {Boolean} - */ - areEqual(array1, array2) { - if ( - Array.isArray(array1) && - Array.isArray(array2) - ) { - return array1.length === array2.length && array1.every((val, i) => array2[i] === val) - } - return false - }, - - /** - * -------------------------------------------------------- - * String management & tools - * -------------------------------------------------------- - */ - /** - * Remove double quotes from the start & end of the string while maintaining \"" - * @param {string} string - * @returns {string} - */ - removeDoubleQuotes(string) { - return string.replace(/\\"/g, "\\'").replace(/"/g, "").replace(/\\'/g, "\"") - }, - - /** - * -------------------------------------------------------- - * Save format parser & encoder - * -------------------------------------------------------- - */ - /** - * Read embedded element data from the official save format - * @param {string} data - * @returns {EditorElementList} - */ - parseEmbedded(data) { - if (typeof data !== "string") throw console.error("[ EDITOR ] Data given to parseEmbedded is not type of string.") - // eslint-disable-next-line no-param-reassign - data = data.split("") - const elements = [] - let raw = [] - let i = 0 - - // Read function - // Yes, we could use an XML parser, but the overhead here should be minimal - // and the simplicity of it makes it secure. We don't want any sort of - // code injection or XSS vulnerabilities due to XML parser related issues - const read = () => { - const char = data[i] - // New element? - if (char === "<") { - // Dump cache - if (raw.length !== 0) { - // Any random text data will be formatted as a text element - elements.push({ - name: "text", - attributes: [], - tree: [], - data: raw.join("") - }) - raw = [] - } - - // Find closing > tag - let nextTagIndex; let tagData; let tagName; let attributeData - const attributes = {} - try { - // Read and format element tag data - nextTagIndex = i + this.findNextOf( - ">", this.getCloneFromIndex(data, 0), i - ) - tagData = this.readBetweenIndexes( - data, i + 1, nextTagIndex - ).join(""); - [tagName] = tagData.split(" ") - attributeData = tagData.replace(tagName, "") - if (attributeData !== "") { - // Remove possible leading space - if (attributeData.startsWith(" ")) attributeData = attributeData.replace(" ", "") - attributeData = attributeData.split(" ") - for (const val of attributeData) { - const parts = val.split("=") - attributes[this.removeDoubleQuotes(parts[0])] = this.removeDoubleQuotes(parts[1]) - } - } - } catch (e) { - console.error( - "[ EDITOR ] ParseEmbedded failed to read tag data that started at", i, "of", data, "err:", e - ) - } - - // Find closing element tag - const splitByTag = this.getCloneFromIndex(data, nextTagIndex + 1).join("").split(``) - const [elementData] = splitByTag - - // Update index number - i += (`<${tagData}>${elementData}`).length - 1 - - // Create element construct - const element = { - name: tagName, - attributes, - data: elementData, - tree: [] - } - - // Todo: Element tree will not be parsed, as an element with this feature is yet to be implemented - - // console.debug("[ EDITOR ] Element parsed", element) - elements.push(element) - } else { - // No element qualification, dump to cache - raw.push(char) - } - - // Return updated index - return i - } - - // Reader loop - const reader = () => { - const readToIndex = read() - if (readToIndex < data.length) { - // More to read - i += 1 - return reader() - } - return true - } - - reader() - return elements - }, - - /** - * Format HTML editor data to the official save format - * @param {HTMLElement} element - * @returns {string} - */ - toEmbedded(elements) { - const format = [] - let redo = false - if (!(elements instanceof HTMLElement)) throw console.error("[ EDITOR ] Element given to toEmbedded is not instance of HTMLElement.") - // eslint-disable-next-line no-plusplus - for (let i = 0; i < elements.childNodes.length; i++) { - const line = elements.childNodes[i] - // Create line - format.push("") - for (const element of line.childNodes) { - switch (element.nodeName.toLowerCase()) { - case "#text": { - // This is plain text - format[format.length - 1] += `${btoa(element.textContent)}` - break - } - case "math": { - // Math container - // TODO: Escape this - format[format.length - 1] += `${element.getAttribute("math")}` - break - } - case "br": { - // Manual line-break - // Only handled as an activator now - if (window.browser !== "firefox" && element.parentNode.childNodes.length !== 1) { - // No meaning for firefox & does not change anything on chromium if by itself in a line - format.push("") - } - break - } - case "img": { - console.warn("[ EDITOR ] IMG parsing is disabled.") - /* - // Rendered math or image - const data = element.getAttribute("data") - if(data){ // Math - format[format.length - 1] += "" + btoa(element.getAttribute("data")) + "" - }else { - format[format.length - 1] += "" + (element.src ?? "unset") + "" - } - */ - break - } - case "attachment": { - // Responsive image - if (element.childNodes[0].nodeName.toLowerCase() === "img") { - format[format.length - 1] += `${element.children[0].src ?? "unset"}` - } else { - console.warn("[ EDITOR ] Unknown attachment type") - } - - break - } - case "div": { - // Line within a line - // This may be caused by a bug, or a browser content editable related inconsistency - for (const child of line.childNodes) line.after(child) - line.remove() - i = 0 - console.warn("[ Editor ] Line structure changes were required! Redoing the getContent...") - redo = true - break - } - default: { - console.warn("[ EDITOR ] Unknown element in editor", element) - } - } - } - } - if (redo) return this.toEmbedded(elements) - return format.length === 0 ? "" : format - }, - - /** - * Convert editor element to a HTML element - * @param {EditorElement} element - * @returns {HTMLElement | Node} - */ - fill(element) { - let html = null - switch (element.name) { - case "meta": { - // Not an element - break - } - case "text": { - // Basic text - if (element.data === "") { - html = document.createElement("br") - } else { - html = document.createTextNode(atob(element.data)) - } - break - } - case "math": { - // Math element - const mathElement = Math.create() - // console.debug("READ DATA", element.data) - Math.write(mathElement.id, atob(element.data)) - html = mathElement.container - break - } - case "img": { - // Image attachment - const img = document.createElement("img") - const container = document.createElement("attachment") - container.contentEditable = false - img.contentEditable = false - container.appendChild(img) - img.src = element.data - if (element.attributes.height) container.style.height = element.attributes.height - if (element.attributes.width) container.style.width = element.attributes.width - container.draggable = true - html = container - break - } - default: { - console.error( - "[ EDITOR ]", `Unknown element type of "${element.name}" cannot be processed. Raw:`, element - ) - } - } - if (element.tree !== undefined && element.tree !== 0) { - // This element has children - for (const child of element.tree) { - element.appendChild(this.fill(child)) - } - } - return html - } -} -export default Utils diff --git a/src/math-editor/uuid.js b/src/math-editor/uuid.js deleted file mode 100644 index 2b7425e..0000000 --- a/src/math-editor/uuid.js +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable no-bitwise, no-mixed-operators */ -/** - * Generate a universally unique identifier (v4-like, not up to standard) - * By: @Esinko -*/ -// eslint-disable-next-line import/prefer-default-export -export function v4() { - return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { - const r = Math.random() * 16 | 0 - const v = c === "x" ? r : (r & 0x3 | 0x8) - return v.toString(16) - }) -} diff --git a/src/service-workers/Standards.md b/src/service-workers/Standards.md deleted file mode 100644 index 4998f62..0000000 --- a/src/service-workers/Standards.md +++ /dev/null @@ -1,134 +0,0 @@ -# Worker standard - -1. Workers are created by "worker.js", which for now statically imports them using "worker-loader". -2. Workers are launched by the same script and are required to use "comlink" to expose a transferable object to said script. This object needs to meet these requirements: - -```js -{ - init: async function (){...}, // A promise that "workers.js" will await for after the worker has exposed the transferable object - shared: {...} // Memory that will be shared with window.internal for global access. The worker should store all relevant information about it's runtime here. - - // Adding any more values than this is allowed, but not recommended. - // Exposing too much data to workers.js should also be avoided, - // as this adds considerable overhead. -} -``` - -3. Workers should implement a messaging API for communicating with the main thread (of workers.js). Workers are required to follow this standard in messages sent to workers.js via the workers "comport": - -```js -{ - type: "", - content: {...} || "...", // Any data to be passed to the command/task. - id: "" // UUIDv4 that will be sent back to the worker in the execution confirmation message -} -``` - -Workers will be required to support these messages in their API: - -- "callback", Execution confirmation message, which will include the command/task id - -The workers.js script will implement these commands in it's API for workers to use: - -- "callback", Worker command/task execution message, which will include the command/task id -- "error", Logs an error to the console as the main thread -- "log", Logs a message to the console as the main thread -- "confirm", Send a confirm dialog to the user -- "relay", This function will relay the message with this input `{ type: "relay", target: "", content: ""}`. An ID will also be specified and to be sent back as "id" with the same message type and structure (without the target specified). The ID is what connects the whole handshake together like in normal callbacks. When callback is sent to the relay, the value "callback" must be set to true - -# Filesystem standard -- Filesystem ID table: - - 0: Local - - 1.1: Google Drive - - 1.2: One Drive Personal - - 1.2.1: One Drive Corporate - - 2: Private external - -## Messaging API -The filesystem worker implements these base messaging API features: -
    -Note: Location "true" is root! -
    -- "init", creates a new filesystem instance. Returns ``{ instance: ", index: }``. Takes ``{ type: ""}`` as input. -
    -- "read", read data from a filesystem instance. Returns ``{ read: "" }``. Takes ``{ instance: "", id: ""}`` as input. -
    -- "write", write data to the database. Returns ```{ write: "" }. Takes ``{ instance: "", id: "", location: "" }`` - -### Example usages -Start the filesystem: -```js -const instance = await window.internal.workers.api("Filesystem", "init", { fs_type: 0 }) -``` - -Write to the filesystem: -
    Note: "True" is the filesystem root - -```js -const write_action = await window.internal.workers.api("Filesystem", "write", { id: "", write: { - ?name: "", - ?data: "", - type: "<0/1>" -}, instance: "", location: "" }) -``` - -Read from the filesystem: -```js -const answer = await window.internal.workers.api("Filesystem", "write", { id: "", instance: "" }) -``` - -Read the index: -```js -const index = await window.internal.workers.api("Filesystem", "index", { instance: "" }) -``` - -## Storage format -Data is stored in 2 parts. In "the index" and in the "dump". The index contains the folder structure information of where files are located and the dump is a raw json tree with data fields with keys as uuids of folders/files referred by the index. - -### Index -The index structure is minimal as making it as small as possible (while maintaining readability) for loading. The "t"-key is the type field, "0" means that it's a file, while "1" means it's a folder. The "i" field is the uuid referring to the raw data in the dump. Folders also contain the "d"-key, in which files and folders for that directory are stored - -```js -[ - // Root - File - { t: 0, i: "" }, - // Root - Folder - { t: 1, i: "", d: [ - // Folders/files in this folder - ]} -] -``` - -### Dump -Data in the dump will also be stored in a JSON tree. No type field for the entries is required, as it's stored in the index (as the app will only fetch the index and startup, and needs to know the type of the entries to show appropriate icons). Both files and folders contain the "name"-key, which is the entry name. They also share a "date"-key, which is the EPOCH time when the entry was last modified. The only difference between entry types is that files include the "data"-key where raw plaintext data of the document is stored. - -```js -{ - // Folder - "": { - date: "", - name: "" - }, - - // File - "": { - date: "", - name: "", - data: "", - checksum: "" - } -} -``` - -### Checksums and raw storage format -All forms of data storage are required to include checksums for both the index and the dump. For data validation and safety. The reason for this is to warn the user of possible tampering with their data and notify them that the data loaded may be corrupt and cause unexpected issues. The storage for these checksums will be type specific, but it's recommended to store the in the same place as the data itself. - -# Upgrade standard -Upgrading of save versions to the latest version is handled by "upgrade.js". To create an upgrade handler, define a function with the current latest version name in "upgrade.js". Then modify the version field in window.internal - -# Editor -### Answer save format -The answer data is to be an array, where each item is it's own line. -
    -Math is to be embedded into the items as text along with normal text. -Math will begin with \ and end with \. This "element" shall contain raw latex. \ No newline at end of file diff --git a/src/service-workers/components/com.js b/src/service-workers/components/com.js deleted file mode 100644 index 7cb0a4c..0000000 --- a/src/service-workers/components/com.js +++ /dev/null @@ -1,55 +0,0 @@ -/* eslint-disable no-restricted-globals */ -import * as uuid from "./uuid" - -// Create the global onMessage handler -const messageTarget = new EventTarget() -// eslint-disable-next-line no-undef -self.addEventListener("message", (e) => { - if (typeof e.data !== "string") return - const messageEmitter = new CustomEvent("message", { - detail: JSON.parse(e.data) - }) - messageTarget.dispatchEvent(messageEmitter) -}) -export default { - async send(type, content = {}) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve) => { - const id = uuid.v4() - // Send message - postMessage(JSON.stringify({ type, content, id: content.id || id })) - - // Listen for response - messageTarget.addEventListener("message", async (e) => { - if (e.detail.id !== null && e.detail.id === id) { - messageTarget.removeEventListener("message", e) - resolve(e.detail.content) - } - }) - }) - }, - async sendToWorker(target, content = {}) { - // eslint-disable-next-line consistent-return - return new Promise((resolve, reject) => { - const id = uuid.v4() - // Send message - if (content.id !== undefined) content.callback = true - if (!target && content.id === undefined) { - reject(new Error("Target must be specified")) - return - } - postMessage(JSON.stringify({ - type: "relay", target, content, id: content.id || id - })) - - // Listen for response - messageTarget.addEventListener("message", async (e) => { - if (e.detail.id !== null && e.detail.id === id) { - messageTarget.removeEventListener("message", e) - resolve(e.detail.content) - } - }) - }) - }, - onMessage: messageTarget -} diff --git a/src/service-workers/components/compatibility.js b/src/service-workers/components/compatibility.js deleted file mode 100644 index 14c4622..0000000 --- a/src/service-workers/components/compatibility.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Buffer } from "buffer" - -// Check compatibility and availability of required browser supplied components -export default () => { - // Set browser type - const browser = navigator.userAgent.toLowerCase() - if (browser.includes("chrome")) { - window.browser = "chrome" - } else if (browser.includes("firefox")) { - window.browser = "firefox" - } else if (browser.includes("safari")) { - console.warn("SAFARI WILL BE TREATED AS CHROMIUM UNTIL FURTHER NOTICE") - window.browser = "chrome" // "safari" - } else { - // eslint-disable-next-line no-alert - alert("You are using an unknown browser. Chrome's configuration will be automatically loaded. It is recommended to use Chromium based browsers with this website.") - window.browser = "chrome" - } - - // BTOA & ATOB - // eslint-disable-next-line no-undef - if (Buffer !== undefined) { - console.log("[ Compatibility ] Using Buffer instead of btoa/atob...") - // eslint-disable-next-line no-global-assign - window.btoa = (string) => new Buffer.from(string, "utf8").toString("base64") - - window.atob = (string) => new Buffer.from(string, "base64").toString("utf8") - // eslint-disable-next-line max-len, no-alert, no-restricted-globals - } else if (confirm("Your browser does not support the \"Buffer class\". Which is a required component for this application to handle not LATIN-1 (ISO-8859) characters. Please update your browser. The application will continue to function, but unexpected behavior and at the risk of data integrity it is not recommended.")) { - console.warn("[ Compatibility ] Running in Buffer compatibility mode") - } else { - // We shall never return true and cause the app to freeze - return false - } - - return ( - window.Worker && // Worker support - crypto.subtle !== undefined // Crypto package available - ) -} diff --git a/src/service-workers/components/compress.js b/src/service-workers/components/compress.js deleted file mode 100644 index 10051c7..0000000 --- a/src/service-workers/components/compress.js +++ /dev/null @@ -1 +0,0 @@ -// Placeholder diff --git a/src/service-workers/components/google-drive.js b/src/service-workers/components/google-drive.js deleted file mode 100644 index cdad5a5..0000000 --- a/src/service-workers/components/google-drive.js +++ /dev/null @@ -1 +0,0 @@ -// TODO: This will be the filesystem wrapper for executing fs actions diff --git a/src/service-workers/components/hash.js b/src/service-workers/components/hash.js deleted file mode 100644 index 5b045ac..0000000 --- a/src/service-workers/components/hash.js +++ /dev/null @@ -1,41 +0,0 @@ -/* eslint-disable no-restricted-globals */ -/** - * Implement hashing functionality - * - * By: @Esinko - */ -import com from "./com" - -export default class hash { - /** - * The input for the hashing algorithm - * @param {String} input The string to hash - */ - constructor(input) { - (async () => { - let id = null - if (typeof window === "undefined") { - // Get window object from main - const salt = (await com.send("window")).window.id - self.id = salt.id - id = salt.id - } else if (self.id !== undefined) { - id = self.id - } else { - id = window.id - } - this.input = `${input}-${id}` - })() - } - - /** - * Hash the data with the SHA1 algorithm - */ - async sha1() { - try { - return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-1", new TextEncoder("utf-8").encode(this.input)))).map((b) => (`00${b.toString(16)}`).slice(-2)).join("") - } catch (err) { - throw `Failed to hash data: ${err.stack}` !== undefined ? err.stack : err - } - } -} diff --git a/src/service-workers/components/onedrive.js b/src/service-workers/components/onedrive.js deleted file mode 100644 index 10051c7..0000000 --- a/src/service-workers/components/onedrive.js +++ /dev/null @@ -1 +0,0 @@ -// Placeholder diff --git a/src/service-workers/components/uuid.js b/src/service-workers/components/uuid.js deleted file mode 100644 index 2b7425e..0000000 --- a/src/service-workers/components/uuid.js +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable no-bitwise, no-mixed-operators */ -/** - * Generate a universally unique identifier (v4-like, not up to standard) - * By: @Esinko -*/ -// eslint-disable-next-line import/prefer-default-export -export function v4() { - return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { - const r = Math.random() * 16 | 0 - const v = c === "x" ? r : (r & 0x3 | 0x8) - return v.toString(16) - }) -} diff --git a/src/service-workers/manager.js b/src/service-workers/manager.js deleted file mode 100644 index 2cc90b1..0000000 --- a/src/service-workers/manager.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Worker-handler: Register workers, handle events etc. - */ -import * as Comlink from "comlink" -import * as uuid from "./components/uuid" - -// TODO: Can this be done dynamically? -const Filesystem = new Worker(new URL("./workers/filesystem", import.meta.url), { type: "module" }) -const CloudStorage = new Worker(new URL("./workers/cloud-storage", import.meta.url), { type: "module" }) - -// Message handlers -/** - * Handle messages from - * @param {*} msg - */ -function sendMessage(worker, msg) { - try { - console.debug( - "[ COM - workers.js ] Main ->", `${worker}:`, msg - ) - window.internal.workers.list[worker].postMessage(JSON.stringify(msg)) - } catch (err) { - console.error( - "[ COM - workers.js ] Failed to send message to", worker, ":", err - ) - } -} -/** - * Handles received messages - * @param {*} event The onmessage event - * @param {*} name The worker name in the internal workers list - */ -async function onMessage(event, name) { - try { - console.debug( - "[ COM - workers.js ] Main <-", `${name}:`, event - ) - const message = JSON.parse(event.data.toString()) - // Note: Standard = { type: "any case of the switch below", content: "any data to pass", id: "task id if present"} - switch (message.type) { - case "response": - // The worker is responding to a command - if (message.id !== undefined) { - if (typeof window.internal.workers.handlers[message.id] === "function") { - // Run the response handler - window.internal.workers.handlers[message.id](message.content) - } else { - console.warn("Worker response handler missing", message) - } - } else { - console.warn("Worker response was dropped due to a missing task id:", message) - } - break - case "log": - console.warn("[ WORKERS ] The log \"command\" will soon be removed!") - // The worker wants to log a message to the browser console - console.log(`[ WORKER - ${name} ]`, message.content) - break - case "confirm": - // eslint-disable-next-line no-restricted-globals, no-alert - if (confirm(message.content)) { - sendMessage(name, { type: "callback", content: { value: true }, id: message.id }) - } else { - sendMessage(name, { type: "callback", content: { value: false }, id: message.id }) - } - break - case "callback": - if (window.internal.workers.handlers[message.id] === undefined) console.warn(`[ WORKERS ] Dropped callback "${message.id}"`) - window.internal.workers.handlers[message.id](message.content) - break - case "relay": { - // Relay messages to other workers - if (message.callback !== true) { - if (window.internal.workers.list[message.target] === undefined) { - console.error(`[ WORKER ] No such relay target as "${message.target}"`) - } else { - const id = uuid.v4() - window.internal.workers.handlers[id] = async (response) => { - // This will be called when the worker responds - sendMessage(name, response.content) - } - sendMessage(message.target, message.content) - } - } else if (window.internal.workers.handlers[message.id]) { - window.internal.workers.handlers[message.id]() - } else { - console.error(`[ WORKERS ] Dropped callback "${message.id}"`) - } - break - } - case "window": { - const whitelist = ["id"] // Note: Internal cannot be moved as is! Move only specific values from it if needed. - const json = {} - for (const key of Object.keys(window)) { - if (whitelist.includes(key)) json[key] = window[key] - } - sendMessage(name, { type: "callback", content: { window: json }, id: message.id }) - break - } - default: - // Unknown message - console.warn("[ WORKERS ] Unknown message from worker:", message) - break - } - } catch (err) { - console.error("Worker message handler failed:", err) - } -} - -/** - * Create a worker using comlink - * @param {string} name Worker name - */ -export async function createWorker(name) { - const worker = { Filesystem, CloudStorage }[name] - // Standard: { init: , share: } - const Core = Comlink.wrap(worker) - window.internal.workers.shared[name] = Core.shared - Core.shared.id = window.id - window.internal.workers.list[name] = worker - worker.addEventListener("message", (e) => { - if (typeof e.data !== "string") return - onMessage(e, name) - }) - await Core.init() -} - -// Export client api -/** - * Worker api - * @param {*} worker The name of the worker to send the data to - * @param {*} type The message type - * @param {*} content Message content - */ -export async function api( - worker, type, content -) { - return new Promise((resolve, reject) => { - try { - const id = uuid.v4() - window.internal.workers.handlers[id] = async (message) => { - // This will be called when the worker responds - resolve(message) - } - sendMessage(worker, { type, content, id }) - } catch (err) { - reject(err) - } - }) -} - -// Main function and export -export default async () => { - console.log("Staring workers...") - // Filesystem - try { - await createWorker("Filesystem") - } catch (err) { - console.error("Failed to create Filesystem worker:", err) - } - // Cloud storage - try { - await createWorker("CloudStorage") - } catch (err) { - console.error("Failed to create Cloud storage worker:", err) - } - return true -} diff --git a/src/service-workers/workers/cloud-storage.js b/src/service-workers/workers/cloud-storage.js deleted file mode 100644 index b0d3aff..0000000 --- a/src/service-workers/workers/cloud-storage.js +++ /dev/null @@ -1,8 +0,0 @@ -// TODO: Cloud storage worker -// onmessage = function(e) { -// // Message handler -// -// } - -// Send loaded log -postMessage(JSON.stringify({ type: "log", content: "Cloud storage worker loaded!" })) diff --git a/src/service-workers/workers/filesystem.js b/src/service-workers/workers/filesystem.js deleted file mode 100644 index 6108343..0000000 --- a/src/service-workers/workers/filesystem.js +++ /dev/null @@ -1,563 +0,0 @@ -/* eslint-disable class-methods-use-this */ -/** - * Main filesystem worker made to handle all tasks related to answer saving. - * Uses LocalForage to store data in the browsers indexDB while automatically - * falling back to normal local storage when required. - * By: @Esinko - */ - -// 3rd-party internal dependencies -import * as Comlink from "comlink" -import localForage from "localforage" - -// Internal dependencies -import * as uuid from "../components/uuid" -import hash from "../components/hash" -import com from "../components/com" -import consoleWrapper from "../../utils/console" - -// Configure console -consoleWrapper() - -// Comlink configuration -const thisWorker = { - async init() { - // For now nothing needs to be here - thisWorker.shared.ready = true - return true - }, - shared: { - ready: false, - filesystem_instances: {}, - id: null // Modified by "workers.js" - } -} -Comlink.expose(thisWorker) - -// Main class -/** - * Filesystem class - */ -class Filesystem { - /** - * Create a new filesystem instance - * @param {number} type Filesystem type ID - */ - constructor(type) { - this.type = parseInt(type, 10) // Force int - this.id = uuid.v4() - // Instance memory - this.index = [] // Index contains the structure - this.data = {} // Data is one huge dump of id = - thisWorker.shared.filesystem_instances[this.id] = this - } - - /** - * Validate checksum for a string - */ - async validate(string, checksum) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - try { - const hashObj = new hash(string) - const sha1 = await hashObj.sha1() // Is this enough? - /* console.debug( - "[ Filesystem ] Checksum calculation", string, checksum, sha1 - ) */ - if (checksum === sha1) { - resolve(true) - } else { - resolve(false) - } - } catch (e) { - reject(new Error(`Failed to validate checksum: ${e.stack}`)) - } - }) - } - - /** - * Read data from the dump - * @param {*} id - */ - async read(id) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - try { - switch (this.type) { - /** - * ----------------------------------------------- - * Implement filesystem reading for each type here - * ----------------------------------------------- - */ - case 0: { - console.debug("[ Filesystem ] Preparing read task...") - const json = JSON.parse(await localForage.getItem(id)) - console.debug("[ Filesystem ] Read raw data:", json) - console.debug("[ Filesystem ] Validating checksum...") - const jsonData = { name: json.name, date: json.date } - if (json.data) jsonData.data = json.data // Add data to checksum calculation if available - const isValid = await this.validate(JSON.stringify(jsonData), json.checksum) - if (isValid) { - console.debug("[ Filesystem ] Checksum valid, read task concluded successfully.") - if (!json.name) { - console.warn("[ Filesystem ] Name is missing from item!") - json.name = `Nimeämätön ${json.t === 0 ? "tiedosto" : "kansio"}` - } - resolve(json) - } else { - // TODO: Handle this better - reject(new Error("Failed to validate read data")) - } - break - } - default: - throw new Error("Unknown filesystem type") - } - } catch (e) { - reject(new Error(`Failed to read: ${e.stack}`)) - } - }) - } - - /** - * Write data to the index - * @param {*} id if true --> root - * @param {*} data - * @param {*} onlyUpdate Do not edit - */ - async writeToIndex( - id, data, onlyUpdate - ) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - // eslint-disable-next-line no-param-reassign - if (id === undefined) id = true // Default is root - console.log("[ Filesystem ] Preparing index update...") - console.debug("[ Filesystem ] Index snapshot before update:", this.index) - console.debug( - "[ Filesystem] Index entry identifier:", id, "data:", data - ) - - // Do the things - if (!onlyUpdate) { - if (id === true) { - // In root - console.debug("[ Filesystem ] Writing to index root...") - let replaced = false - for (let entry of this.index) { - if (entry.i === data.id) { - replaced = true - entry = data - break - } - } - if (!replaced) this.index.push(data) - } else { - // In folder - console.debug("[ Filesystem ] Writing to folder...") - let replaced = false - let pushed = false - // TODO: Rework this - // eslint-disable-next-line no-shadow - const find = (tree, id) => { - // eslint-disable-next-line no-plusplus - for (let i = 0; i < tree.length; i++) { - if (tree[i].t === 0 && tree[i].id === id) { - replaced = true - tree[i] = data - } else if (tree[i].t === 1) { - if (tree[i].i === id) { - // Replace? - // eslint-disable-next-line no-plusplus - for (let ii = 0; ii < tree[i].d.length; ii++) { - if (tree[i].d[ii].i === data.i) { - replaced = true - tree[i].d[ii] = data - } - } - if (!replaced) { - tree[i].d.push(data) - pushed = true - } - break - } else { - find(tree[i].d, id) - } - } - } - } - find(this.index, id) - if (!replaced && !pushed) reject(new Error("Cannot find such location")) - } - } - const hashSession = new hash(this.index) - const hashData = await hashSession.sha1() - console.debug("[ Filesystem ] Index after update:", this.index) - switch (this.type) { - /** - * ----------------------------------------------- - * Implement filesystem index update for each type here - * ----------------------------------------------- - */ - case 0: { - await localForage.setItem("matikkaeditori-checksums", JSON.stringify(hashData)) - await localForage.setItem("matikkaeditori-index", JSON.stringify(this.index)) - break - } - default: - throw new Error("Unknown filesystem type") - } - console.log("[ Filesystem ] Index update completed successfully.") - resolve() - }) - } - - /** - * Resolve a specific part of the index and return it - * @param {*} id - */ - async resolveFromIndex(id) { - if (id === true) return this.index - const looper = (tree) => { - for (const entry of tree) { - if (entry.i === id) return entry - if (entry.t === 1) { - const l = looper(entry.d) - if (l !== null) return l - } - } - return null - } - return looper(this.index) - } - - /** - * Remove a specific part of the index - * @param {*} id - */ - async removeFromIndex(id) { - if (id === true) return this.index - const looper = (tree) => { - for (const entry of tree) { - if (entry.i === id) { - // Note: Do we need to edit this - tree.splice(tree.indexOf(entry), 1) - this.writeToIndex( - null, null, true - ).then(() => true) - } - if (entry.t === 1) { - const l = looper(entry.d) - if (l !== null) return l - } - } - return null - } - return looper(this.index) - } - - /** - * Limit tree level for data delivery - * @param {*} tree - * @param {*} level - */ - async limitTreeLevel(tree, level) { - // Clone array - const treeClone = JSON.parse(JSON.stringify(tree)) - const checker = (treeObject, currentLevel = 1) => { - for (const entry of treeObject) { - if (entry.t === 1) { - if (level > currentLevel) { - return checker(entry.d, currentLevel + 1) - } - entry.d = null - } - } - return null - } - checker(treeClone) - return treeClone - } - - /** - * Write data to the dump - * @param {*} id - * @param {*} data - * @param {*} location - */ - async write( - id, data, location - ) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - try { - switch (this.type) { - /** - * ----------------------------------------------- - * Implement filesystem writing for each type here - * ----------------------------------------------- - */ - case 0: { - console.log("[ Filesystem ] Preparing write task...") - let json = JSON.parse(await localForage.getItem(id)) - if (json === null) { - console.debug("[ Filesystem ] No previous entry found.") - json = { - id: id ?? uuid.v4() // Generate id if new object - } - } - const base = { - name: data.name ?? json.name, - date: data.date ?? new Date().getTime() - } - - if (!base.name || base.name.trim().length === 0) { - reject(new Error("Invalid name provided!")) - break - } - - if (data.type === 0) { - // Files have data - base.data = data.data ?? json.data - const hashInstance = new hash(JSON.stringify({ name: base.name, data: base.data, date: base.date })) - const sha1 = await hashInstance.sha1() - base.checksum = sha1 - } else { - // Folders have no data - const hashInstance = new hash(JSON.stringify({ name: base.name, date: base.date })) - const sha1 = await hashInstance.sha1() - base.checksum = sha1 - } - console.debug("[ Filesystem ] Write task base:", base) - await localForage.setItem(id ?? json.id, JSON.stringify(base)) - // Update index - const indexBase = { t: data.type ?? json.type, i: id ?? json.id } - // TODO: This has to be redone to support moving folders and their contents - const isInIndex = await this.resolveFromIndex(id ?? json.id) - if (!isInIndex) { - if (data.type === 1) { - indexBase.d = [] - } - await this.writeToIndex(location, indexBase) - } - console.log("[ Filesystem ] Write task completed successfully.") - resolve(id ?? json.id) - break - } - default: - throw new Error("Unknown filesystem type") - } - } catch (e) { - console.debug(new Error(`Failed to write: ${e.stack}`)) - reject(e.toString()) - } - }) - } - - /** - * Remove answer - * @param {*} id - */ - async remove(id) { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - try { - switch (this.type) { - /** - * ----------------------------------------------- - * Implement filesystem deletion for each type here - * ----------------------------------------------- - */ - case 0: { - console.log("[ Filesystem ] Preparing remove task...") - // Remove from database - if (await localForage.getItem(id) !== null) { - console.log( - "[ Filesystem ] Target", id, "exists" - ) - await localForage.removeItem(id) - } else { - console.log("[ Filesystem ] Target not found") - } - - // Remove from index - if (await this.resolveFromIndex(id) !== null) await this.removeFromIndex(id) - - console.log("[ Filesystem ] Remove task concluded") - resolve(true) - break - } - default: - throw new Error("Unknown filesystem type") - } - } catch (e) { - reject(new Error(`Failed to write: ${e.stack}`)) - } - }) - } - - /** - * Initialize the filesystem - */ - async init() { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { - try { - switch (this.type) { - /** - * ------------------------------------------------------ - * Implement filesystem initialization for each type here - * ------------------------------------------------------ - */ - case 0: { - let index = await localForage.getItem("matikkaeditori-index") - let checksums = await localForage.getItem("matikkaeditori-checksums") - - if (index !== null && checksums !== null) { - index = JSON.parse(index) - checksums = JSON.parse(checksums) - const indexIsValid = await this.validate(index, checksums) - if (!indexIsValid) { - const load = await com.send("confirm", "Someone may have tampered with index data or it may be corrupt. Would you like to load it?") - if (!load) reject(new Error("Filesystem initialization aborted.")) - } - this.index = index - resolve() - } else { - // const create = await com.send("confirm", "No save data exists or it cannot be loaded. Would you like to create a new save?") - // if(create){ - // TODO: Create index & example file - const exampleId = uuid.v4() - const exampleFile = { - name: "Tervetuloa!", - date: new Date().getTime(), - // eslint-disable-next-line no-undef - // running btoa here fucks up charset äöå, so hardcoding the gibberish here - data: ["VGVydmV0dWxvYSBrw6R5dHTDpG3DpMOkbiBNYXRpa2thZWRpdG9yaS5maXTDpCEg8J+OiQ=="], - checksum: null, - type: 0 - } - const hashSession = new hash({ name: exampleFile.name, data: exampleFile.data, date: exampleFile.date }) - exampleFile.checksum = await hashSession.sha1() - await this.write( - exampleId, exampleFile, true - ) - console.log("[ Filesystem ] Example file created") - resolve() - } - break - } - default: - throw new Error("Unknown filesystem type") - } - } catch (e) { - reject(new Error(`Failed to initialize filesystem: \n${e.stack}`)) - console.debug(e) - } - }) - } -} - -com.onMessage.addEventListener("message", async (e) => { - // Detail is the event data - // eslint-disable-next-line no-param-reassign - e = e.detail - if (!thisWorker.shared.ready) return - switch (e.type) { - case "init": { - const instance = new Filesystem(e.content.type) - // ID must be reused later - thisWorker.shared.filesystem_instances[e.id] = instance - await instance.init() - com.send("callback", { id: e.id, instance: instance.id, index: instance.index }) - break - } - case "read": { - const instance = thisWorker.shared.filesystem_instances[e.content.instance] - if (!instance) { - console.error("No such filesystem instance") - break - } - const data = await instance.read(e.content.id) - com.send("callback", { id: e.id, read: data }) - break - } - case "write": { - const instance = thisWorker.shared.filesystem_instances[e.content.instance] - if (!instance) { - console.error("No such filesystem instance") - break - } - instance.write( - e.content.id, e.content.write, e.content.location - ) - .then((write) => com.send("callback", { id: e.id, write })) - .catch((error) => com.send("callback", { id: e.id, error })) - break - } - case "callback": { - // Ignore these. (Handled by com.js) - break - } - case "remove": { - const instance = thisWorker.shared.filesystem_instances[e.content.instance] - if (!instance) { - console.error("No such filesystem instance") - break - } - await instance.remove(e.content.id) - com.send("callback", { id: e.id }) - break - } - case "move": { - const instance = thisWorker.shared.filesystem_instances[e.content.instance] - if (!instance) { - console.error("No such filesystem instance") - break - } - const currentLocation = e.content.from - const newLocation = e.content.to - // TODO: read from index & remove & write - const oldData = await instance.resolveFromIndex(currentLocation) - if (!oldData) { - console.error("No such location (read)") - break - } - await instance.removeFromIndex(e.content.id) - if (newLocation !== true) { - const newLocationExists = await instance.resolveFromIndex(newLocation) - if (!newLocationExists) { - console.error("No such location (write)") - break - } - } - await instance.writeToIndex(newLocation, oldData) - break - } - case "index": { - const instance = thisWorker.shared.filesystem_instances[e.content.instance] - if (!instance) { - console.error("No such filesystem instance") - break - } - if (e.content.id && e.content.level) { - const resolved = await instance.resolveFromIndex(e.content.id) - let limited = null - if (resolved !== null) { - limited = await instance.limitTreeLevel(e.content.id === true ? resolved : resolved.d, e.content.level) - } - com.send("callback", { index: limited, id: e.id }) - } else { - com.send("callback", { index: instance.index, id: e.id }) - } - break - } - case "reset": { - await localForage.clear() - com.send("callback", { id: e.id, status: "ok" }) - break - } - default: - console.error("[ Filesystem ] Unknown command", e) - } -}) diff --git a/src/upgrade.jsx b/src/upgrade.jsx deleted file mode 100644 index ccbc048..0000000 --- a/src/upgrade.jsx +++ /dev/null @@ -1,269 +0,0 @@ -/* eslint-disable no-continue */ -/* eslint-disable no-console */ -/** - * Upgrade utility to convert old saves to new saves - * By: @Esinko (1.11.2021) - */ - -// Dependencies -import React from "react" -import ReactDOM from "react-dom" -import * as uuid from "./service-workers/components/uuid" -import * as workers from "./service-workers/manager" -import Utils from "./math-editor/utils" - -let timeSinceRender = null - -/** - * Render a simple text based UI - * @param {string} version - */ -async function ui(version) { - timeSinceRender = new Date().getTime() - ReactDOM.render( -
    -
    -

    - Päivitetään "{version}" tallennetta uudempaan versioon. Odota hetki, siirrämme sinut kohta Matikkaeditori.fi-sovellukseen. -

    -

    - Jos sivu jäätyy tai saat virheilmoituksen, ota yhteyttä masterminds@testausserveri.fi. -

    -

    - - Upgrading "{version}" save data! -

    - If the page freezes, contact masterminds@testausserveri.fi. -
    -

    -
    -
    -

    -
    -
    -
    , - document.getElementById("root")) - document.getElementById("main").parentElement.style.overflowX = "hidden" -} - -/** - * Push a new message to the progress log - * @param {string} message - * @param {boolean} noNewLine - * @param {boolean} noPrefix - * @param {string} safe - */ -async function updateProgress( - message, noNewLine, noPrefix, safe -) { - const prefix = `[ ${((new Date().getTime() - timeSinceRender) / 1000).toFixed(3)} s ]` - const safeMessage = safe ? message.replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'") : message - document.getElementById("progress").innerHTML += (noNewLine ? "" : "
    ") + (noPrefix ? "" : `${prefix} `) + safeMessage - document.getElementById("progress").parentElement.scrollTop = document.getElementById("progress").parentElement.scrollHeight -} - -function format(html) { - // Group orphan elements in line 0 - const newLines = [[]] - for (const element of html.body.children[0].childNodes) { - if (element.nodeName.toLowerCase() !== "div") { - if (element.nodeName.toLowerCase() === "br") newLines.push([]) - newLines[newLines.length - 1 < 0 ? 0 : newLines.length - 1].push(element) - } - } - for (const line of newLines.reverse()) { - const lineElement = document.createElement("div") - lineElement.append(...line) - html.body.children[0].children[0].before(lineElement) - } - for (const line of html.body.children[0].children) { - if (line.className.includes("math-editor")) { - // Broken math element, cannot be converted - continue - } - // Ignore hidden elements - if (line.style.display === "none") continue - - // Handle possible math / image in line structure (bug in legacy editor) - if (line.tagName.toLowerCase() === "img") { - if (line.hasAttribute("style")) { - // Math - const math = document.createElement("math") - math.setAttribute("data", btoa(line.getAttribute("alt") !== null && line.getAttribute("alt").length !== 0 ? line.getAttribute("alt") : "Unset")) - const nLine = document.createElement("div") - nLine.appendChild(math) - line.after(nLine) - line.remove() - } else { - // Image - const nLine = document.createElement("div") - line.after(nLine) - nLine.appendChild(line) - } - } - - // Handle line elements - for (const child of line.children) { - if (line.style.display === "none") continue - if (child.tagName.toLowerCase() === "img" && child.hasAttribute("style")) { - // Math - const math = document.createElement("math") - math.setAttribute("math", btoa(child.getAttribute("alt") !== null && child.getAttribute("alt").length !== 0 ? child.getAttribute("alt") : "Unset")) - child.after(math) - child.remove() - } - if (child.tagName.toLowerCase() === "#text") { - // Decode text - child.textContent = new DOMParser().parseFromString(child.textContent, "text/html")?.documentElement?.textContent ?? "" - // Trim text - child.textContent = child.textContent.trimRight() - } - } - } - try { - const embed = Utils.toEmbedded(html.body.children[0]) - // eslint-disable-next-line consistent-return - return embed - } catch (e) { - // Keep formatting - updateProgress( - "      Yritetään uudelleen...", false, true - ) - console.error(e) - // eslint-disable-next-line consistent-return - return format() - } -} - -/** - * -------------------------------------------- - * Upgrade older save version to newer versions - * -------------------------------------------- - */ -export default { - // Process to upgrade legacy version to current latest - async legacy() { - // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve) => { - ui("legacy") - updateProgress("Käynnistetään tiedostojärjestelmää...", true) - - // Initialize the filesystem partially - await workers.createWorker("Filesystem") - const instance = await window.internal.workers.api( - "Filesystem", "init", { type: 0 } - ) - updateProgress("Onnistui!") - - updateProgress("Luetaan vanha tallenne...") - if (!localStorage.getItem("data")) { - updateProgress("Vanhaa tallennetta ei löydetty.") - } else { - try { - // Get old save data - const raw = localStorage.getItem("data").split("") - if (raw[0] === "\"") raw.splice(0, 1) - if (raw[raw.length - 1] === "\"") raw.pop() - const data = JSON.parse(raw.join("") || "[]") - updateProgress("Onnistui!") - updateProgress(`Löydettiin ${Object.keys(data).length} tallenne(tta). Päivitetään...`) - - // Format function - - for await (const id of Object.keys(data)) { - // Get metadata - const newId = uuid.v4() - const saveData = data[id] - const { date } = saveData - const formattedDate = new Date(date) - let title = saveData.answer.split("
    ")[0].split("
    ")[0].replace(/ /g, " ").trim() - if (title.length === 0) title = "Unnamed" - if (title.includes("
    ${saveData.answer}
    `, "text/html") - updateProgress( - `    > (${id}) -> ${newId}`, undefined, undefined - ) - const embedded = format(html) - updateProgress( - " Luettu.", true, true - ) - - // Save to the new filesystem - await window.internal.workers.api( - "Filesystem", "write", { - instance: instance.instance, - id: newId, - write: { - name: title, - type: 0, - data: embedded, - date: formattedDate.getTime() - }, - location: true - } - ) - updateProgress( - " Päivitetty.", true, true - ) - } - } catch (e) { - console.log("%cAlku ----------------------------", "color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;") - console.error(e) - console.trace("Trace") - console.log("%cLoppu ----------------------------", "color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;") - updateProgress("Päivitys epäonnistui. Lisätietoja:") - updateProgress( - `

    ${e.message}

    `, false, true - ) - updateProgress( - `

    ${e.stack}

    `, false, true - ) - return - } - } - - // Refresh and update version field - localStorage.setItem("version", window.internal.version) - updateProgress("Päivitys valmis. Käynnistetään editori...") - let count = 6 - const counter = setInterval(() => { - count -= 1 - if (count === 0) { - updateProgress( - "Nyt!", false, true - ) - clearInterval(counter) - resolve() - } else { - updateProgress( - count, false, true - ) - } - }, 1000) - }) - } -} diff --git a/src/utils/console.js b/src/utils/console.js deleted file mode 100644 index f6de4ea..0000000 --- a/src/utils/console.js +++ /dev/null @@ -1,112 +0,0 @@ -/* eslint-disable no-param-reassign, no-console */ -// import * as uuid from "./worker-components/uuid.js" - -/** - * Generate console component configuration - */ -export function consoleConfig() { - // No actions to be done here, just return the base tree - return { - list: [ - // These values will be put behind a wrapper for log collection - "log", - "error", - "info", - "trace", - "warn", - "debug" - ], - cache: {}, - logs: [], - color: { - warn: "yellow", - error: "red", - log: "limegreen", - default: "limegreen" - } - } -} - -/** - * Try to stringify an object - * @param {Object} obj - */ -function tryStringify(obj) { - try { - const str = JSON.stringify(obj) - return str - } catch (e) { - return "{ stringify failed }" - } -} - -function argsToString(args) { - if (typeof args === "string") return [args] - if (typeof args === "object" && !Array.isArray(args)) return [tryStringify(args)] - return args - // eslint-disable-next-line no-nested-ternary - .map((arg) => (typeof arg === "object" && !Array.isArray(arg) ? tryStringify(arg) : Array.isArray(arg) ? argsToString(arg) : arg)) - .filter((arg) => arg.length !== 0) - .map((arg) => arg.toString()) - .map((arg) => arg.replace(/\\"/g, "\"")) -} - -/** - * Console wrapper to collect logs to an internal variable. - * By: @Esinko (11.02.2021) - */ -export default (window) => { - // Don't rewrite twice - // console.debug("[ Console ] Rewriting console functions...") - if (console.rewritten === true) return - // console.debug("[ Console ] Can rewrite") - - // Workers don't have window available - // So here we create a dummy object - if (window === undefined || window.console === undefined) window = { internal: { console: consoleConfig() }, isDummy: true } - - // Redefine all the functions - for (const func of window.internal.console.list) { - window.internal.console.cache[func] = console[func] - const { color } = window.internal.console // I feel lazy - console[func] = (...args) => { - // Apply colors - if (args[0] !== undefined && typeof args[0].startsWith === "function" && args[0].startsWith("[") && args[0].includes("]")) { - let args0 = `${args[0].split("]")[0]}]` - // eslint-disable-next-line prefer-destructuring - args[0] = args[0].split("]")[1] - args0 = `%c${args0}` - if (args[0] !== "") { - args[0] = args[0].trimLeft() - args.splice( - 0, 0, "" - ) - } - // window.internal.console.cache[func](args, args.length) - window.internal.console.cache[func]( - `${args0}%s`, `color: ${color[func]}` ?? `${color.default};`, ...args - ) - } else if (!args.includes("%c")) { // Ignore if we already have styling - // Execute the actual function from cache - const args0 = "%c[ ❓ ] " // Unknown or prefix not specified - window.internal.console.cache[func]( - args0, `color: ${color[func]}` ?? `${color.default};`, ...args - ) - } else { - window.internal.console.cache[func](...args) - } - // Write the data to the cache - // TODO: Parse css (style) code from the args? - if (!window.isDummy) { // True for workers - const formattedArgs = argsToString(args) - window.internal.console.logs.push(`[ ${new Date().getTime() - window.internal.timeAtLive}s - ${func.toUpperCase()} ] ${formattedArgs.join(" ")}`) - // Max length is 1000 messages - if (window.internal.console.logs.length > 1000) window.internal.console.logs.shift() - } - } - } - - // Define marker for rewritten functions - // console.debug("[ Console ] Console functions rewritten") - console.rewritten = true -} diff --git a/src/utils/date.js b/src/utils/date.js deleted file mode 100644 index fb90d5d..0000000 --- a/src/utils/date.js +++ /dev/null @@ -1,32 +0,0 @@ -// eslint-disable-next-line no-extend-native -Date.prototype.getWeek = () => { - const baseDate = new Date() - const onejan = new Date( - baseDate.getFullYear(), 0, 1 - ) - const today = new Date( - baseDate.getFullYear(), baseDate.getMonth(), baseDate.getDate() - ) - const dayOfYear = ((today - onejan + 86400000) / 86400000) - return Math.ceil(dayOfYear / 7) -} - -export default function formatDate(dateInput) { - const date = new Date(dateInput) // To object - const today = new Date() - let pretty - if (today.getDate() === date.getDate() && today.getMonth() === date.getMonth() && today.getFullYear() === date.getFullYear()) { - pretty = "Tänään" - } else if (today.getDate() - 1 === date.getDate() && today.getMonth() === date.getMonth() && today.getFullYear() === date.getFullYear()) { // This will not work when month changes, but that's minor stuff - pretty = "Eilen" - } else if (today.getWeek() === date.getWeek() && today.getFullYear() === date.getFullYear()) { - pretty = ["Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai"][date.getDay()] - } else { - pretty = `${date.getDate()}.${date.getMonth() + 1}.${date.getFullYear()}` - } - // to-do: check if the following makes sense - pretty += ` ${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}` - return { - pretty: pretty.trim() - } -} diff --git a/src/utils/debug.js b/src/utils/debug.js deleted file mode 100644 index 414469b..0000000 --- a/src/utils/debug.js +++ /dev/null @@ -1,32 +0,0 @@ -// Handy global tools for debugging purposes - -/* eslint-disable no-unused-vars */ -window.reset = async () => { - // This deletes everything - localStorage.clear() - sessionStorage.clear() - document.cookie = "" - if (typeof window.indexedDB.databases === "function") { - // Chromium - window.indexedDB.databases().then((r) => { - // eslint-disable-next-line no-plusplus - for (let i = 0; i < r.length; i++) window.indexedDB.deleteDatabase(r[i].name) - }).then(() => { - window.location.reload() - }) - } else { - // Everything else - // eslint-disable-next-line no-alert - alert("Please clear indexDB manually.") - } -} - -// Implement embedded worker api -window.api = async ( - worker, type, message -) => { - const req = await window.internal.workers.api( - worker, type, message - ) - console.log("Response:", req) -} diff --git a/src/utils/error.js b/src/utils/error.js deleted file mode 100644 index fa87c00..0000000 --- a/src/utils/error.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Error logging utility - * - * By: @Esinko - * @deprecated Use console.error or console.warn - * @param {*} source - * @param {*} message - */ -export default async function error(source, message) { - console.warn("[ Deprecation ] The error component will soon be removed.") - const css = "color: #d42c2c; font-size: 33px; font-family: Inconsolata, monospace; font-weight: bold;" - console.log( - `%c-------------------------\nError (${source}):\n\n%c%s\n%c-------------------------`, css, "color: unset;", message, css - ) - // eslint-disable-next-line no-console - console.trace() -} diff --git a/src/utils/export.js b/src/utils/export.js deleted file mode 100644 index 6526b29..0000000 --- a/src/utils/export.js +++ /dev/null @@ -1,94 +0,0 @@ -/* globals html2canvas, ClipboardItem, html2pdf */ -import { Buffer } from "buffer" - -/** - * Save files (utility) - * @param {*} url - * @param {*} filename - */ -export async function saveAs(url, filename) { - try { - const link = document.createElement("a") - if (typeof link.download === "string") { - link.href = url - link.download = filename - document.body.appendChild(link) - link.click() - document.body.removeChild(link) - } else { - window.open(url) - } - } catch (err) { - console.error("[ EXPORT ] Failed to save", err) - } -} - -/** - * Export loaded answer - * By: @Esinko and @antoKeinanen - * @param {*} format - */ -export default async (format) => { - // TODO: Implement watermark - switch (format) { - case "image-clipboard": { - const canvas = await html2canvas(document.getElementById("editor-element"), { useCORS: true }) - canvas.toBlob(async (blob) => { - const item = new ClipboardItem({ - "image/png": blob - }) - navigator.clipboard.write([item]) - }) - break - } - case "image": { - const canvas = await html2canvas(document.getElementById("editor-element"), { useCORS: true }) - saveAs(canvas.toDataURL(), "vastaus.png") - break - } - case "txt-clipboard": { - const data = await window.internal.ui.editor.getContent() - - data.shift() - let parsedData = "" - data.forEach((line) => { - const strippedLine = line.replace(/<[^>]*>/g, "") - parsedData = `${parsedData}\n${Buffer.from(strippedLine, "base64")}` - }) - parsedData = parsedData.slice(1) - - console.debug("[ EXPORT ] Data to be copied to clipboard:\n", parsedData) - - navigator.clipboard.writeText(parsedData) - - break - } - case "txt-file": { - const data = await window.internal.ui.editor.getContent() - - data.shift() - let parsedData = "" - data.forEach((line) => { - const strippedLine = line.replace(/<[^>]*>/g, "") - parsedData = `${parsedData}\n${Buffer.from(strippedLine, "base64")}` - }) - parsedData = parsedData.slice(1) - - console.debug("[ EXPORT ] Data to be saved to text file:\n", parsedData) - - saveAs(`data:text/plain;charset=utf-8,${encodeURIComponent(parsedData)}`, "vastaus.txt") - - break - } - case "pdf": { - html2pdf(document.getElementById("editor-element"), { - margin: 10, - filename: "vastaus.pdf", - html2canvas: { useCORS: true } - }) - break - } - default: - console.error("[ EXPORT ] Unknown export format.") - } -} diff --git a/src/utils/useActiveItem.js b/src/utils/useActiveItem.js deleted file mode 100644 index e57fefe..0000000 --- a/src/utils/useActiveItem.js +++ /dev/null @@ -1,57 +0,0 @@ -/* eslint-disable no-unreachable */ -import { useEffect, useState, useCallback } from "react" -import { debounce } from "lodash" - -export default function useActiveItem( - activeItem, level, setLevel -) { - const [data, setData] = useState({}) - - useEffect(() => { - if (!level || activeItem.length === 0) return - const item = level.find((itemEntry) => itemEntry.i === activeItem) - setData(item) - }, [activeItem, level]) - - const fsSave = useCallback(debounce((newData, targetId) => { - if (!newData) return - console.log("Saving ...") - window.internal.workers.api( - "Filesystem", "write", { - instance: window.internal.ui.activeFilesystemInstance, - id: targetId, - write: { - data: newData.data, - type: 0 - } - } - ).then((msg) => { - if (msg.error) { - console.error("Failed to save:", msg.error) - console.debug("Target:", targetId) - console.debug("Data:", newData.data) - // eslint-disable-next-line no-alert - alert("Dokumentti on virheellinen ja sitä ei voitu tallentaa! Ota yhteys kehittäjiin ja lähetä heille loki: Kehittäjä -> Vie loki -osiosta!") - return - } - - // Save success - window.internal.ui.saved = true - document.getElementById("saveIndicator").className = "savedIndicator" - }).catch(() => { - // eslint-disable-next-line no-alert - alert("Tallentaminen epäonnistui.") - }) - }, 1000), [activeItem]) - - const modify = async (newData) => { - const copy = [...level] - const i = copy.findIndex((item) => item.i === activeItem) - copy[i] = newData - setLevel(copy) // save client-side - window.internal.ui.saved = false - fsSave(newData, window.internal.ui.activeLocation) // save fs (debounced, see above) - } - - return [data, modify] -} diff --git a/src/utils/useWindowDimensions.js b/src/utils/useWindowDimensions.js deleted file mode 100644 index 53ea5e0..0000000 --- a/src/utils/useWindowDimensions.js +++ /dev/null @@ -1,24 +0,0 @@ -import { useState, useEffect } from "react" - -function getWindowDimensions() { - const { innerWidth: width, innerHeight: height } = window - return { - width, - height - } -} - -export default function useWindowDimensions() { - const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()) - - useEffect(() => { - function handleResize() { - setWindowDimensions(getWindowDimensions()) - } - - window.addEventListener("resize", handleResize) - return () => window.removeEventListener("resize", handleResize) - }, []) - - return windowDimensions -} diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 6f25ea2..0000000 --- a/vite.config.js +++ /dev/null @@ -1,7 +0,0 @@ -/* eslint-disable import/no-extraneous-dependencies */ -import { defineConfig } from "vite" -import react from "@vitejs/plugin-react" - -export default defineConfig({ - plugins: [react()] -})