commit bcb98a382658f451a6f3ca6ca842a2a9eaaeeae7 Author: Michal Szczepanski Date: Sat Dec 17 22:55:05 2022 +0100 feat: is initial commit diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..76add87 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..6591c9d --- /dev/null +++ b/.eslintrc @@ -0,0 +1,49 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "project": "./tsconfig.json", + "sourceType": "module" + }, + "settings": { + "react": { + "version": "detect" + } + }, + "plugins": ["@typescript-eslint", "react"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:react/recommended", + "plugin:prettier/recommended" + ], + "rules": { + "max-len": ["error", {"code": 120, "ignoreComments": true, "ignoreTemplateLiterals": true}], + "no-console": "error", + "semi": [ "error", "always" ], + "@typescript-eslint/no-unsafe-member-access": "error", + "@typescript-eslint/no-unsafe-assignment": "off", + "@typescript-eslint/no-unsafe-call": "error", + "@typescript-eslint/no-unsafe-argument": "off", + "@typescript-eslint/ban-types": "error", + "@typescript-eslint/restrict-template-expressions": "error", + "@typescript-eslint/no-misused-promises": "off", + "@typescript-eslint/no-unsafe-return": "off", + "@typescript-eslint/no-explicit-any": "off", + "sort-imports": [ + "error", + { + "ignoreCase": false, + "ignoreDeclarationSort": false, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"], + "allowSeparatedGroups": false + } + ] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b637c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +.parcel-cache +dist +node_modules +tmp +test +*.iml \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c655f45 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "@types"] + path = @types + url = git@github.com:pinmenote/types.git diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 0000000..7a34511 --- /dev/null +++ b/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": "@parcel/config-webextension", + "transformers": { + "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"] + } +} \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..a22619a --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "singleQuote": true, + "trailingComma": "none", + "endOfLine": "auto", + "semi": true, + "printWidth": 120 +} diff --git a/@types b/@types new file mode 160000 index 0000000..6d843eb --- /dev/null +++ b/@types @@ -0,0 +1 @@ +Subproject commit 6d843ebd1164e7b9e5880068aceaa31d49808d34 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..78e3e72 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ +GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. {http://fsf.org/} + 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. + + {one line to give the program's name and a brief idea of what it does.} + Copyright (C) {year} {name of author} + + 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 {http://www.gnu.org/licenses/}. + +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: + + {{project}} Copyright (C) {{year}} {{fullname}} + 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 +{http://www.gnu.org/licenses/}. + + 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 +{http://www.gnu.org/philosophy/why-not-lgpl.html}. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5c3bfd5 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +pinmenote-extension +--- + +### Description +Browser extension to capture internet content essentials diff --git a/bin/build-chrome b/bin/build-chrome new file mode 100755 index 0000000..0f2e973 --- /dev/null +++ b/bin/build-chrome @@ -0,0 +1,2 @@ +#!/bin/bash +npm run build \ No newline at end of file diff --git a/bin/build-firefox b/bin/build-firefox new file mode 100755 index 0000000..c617536 --- /dev/null +++ b/bin/build-firefox @@ -0,0 +1,9 @@ +#!/bin/bash +# swap manifests +mv src/manifest.json src/manifest.ch.json +mv src/manifest.ff.json src/manifest.json +# build +npm run build:ff +# swap manifests back +mv src/manifest.json src/manifest.ff.json +mv src/manifest.ch.json src/manifest.json \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..5a24071 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,10974 @@ +{ + "name": "pinmenote-extension", + "version": "0.0.1", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "pinmenote-extension", + "version": "0.0.1", + "license": "GPL-3.0-or-later", + "dependencies": { + "@emotion/styled": "^11.10.0", + "@fontsource/roboto": "^4.5.7", + "@mui/icons-material": "^5.8.4", + "@mui/material": "^5.9.3", + "css": "^3.0.0", + "jwt-decode": "^3.1.2", + "nanoid": "^4.0.0", + "openpgp": "^5.5.0", + "prosemirror-commands": "^1.3.1", + "prosemirror-dropcursor": "^1.6.1", + "prosemirror-gapcursor": "^1.3.1", + "prosemirror-history": "^1.3.0", + "prosemirror-inputrules": "^1.2.0", + "prosemirror-markdown": "^1.10.1", + "prosemirror-model": "^1.18.1", + "prosemirror-schema-basic": "^1.2.0", + "prosemirror-schema-list": "^1.2.2", + "prosemirror-state": "^1.4.2", + "prosemirror-view": "^1.29.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@parcel/config-webextension": "^2.7.0", + "@parcel/transformer-typescript-tsc": "^2.7.0", + "@types/chrome": "^0.0.193", + "@types/firefox-webext-browser": "^94.0.1", + "@types/node": "^18.6.4", + "@types/react": "^18.0.15", + "@types/react-dom": "^18.0.6", + "@typescript-eslint/eslint-plugin": "^5.32.0", + "@typescript-eslint/parser": "^5.32.0", + "buffer": "^6.0.3", + "eslint": "^8.21.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.30.1", + "parcel": "^2.7.0", + "pre-commit": "^1.2.2", + "process": "^0.11.10", + "typescript": "^4.7.4" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@ampproject/remapping/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==", + "peer": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.8.tgz", + "integrity": "sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz", + "integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==", + "peer": true, + "dependencies": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.10", + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-module-transforms": "^7.18.9", + "@babel/helpers": "^7.18.9", + "@babel/parser": "^7.18.10", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.18.10", + "@babel/types": "^7.18.10", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.18.12", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.12.tgz", + "integrity": "sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg==", + "peer": true, + "dependencies": { + "@babel/types": "^7.18.10", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz", + "integrity": "sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==", + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.18.8", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.20.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz", + "integrity": "sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==", + "peer": true, + "dependencies": { + "@babel/template": "^7.18.6", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "peer": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz", + "integrity": "sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==", + "peer": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.18.6", + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz", + "integrity": "sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", + "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "peer": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "peer": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", + "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz", + "integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.9.tgz", + "integrity": "sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==", + "peer": true, + "dependencies": { + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/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==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/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==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/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==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/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==" + }, + "node_modules/@babel/highlight/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==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/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==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/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==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.18.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.11.tgz", + "integrity": "sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==", + "peer": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz", + "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==", + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.18.11", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.11.tgz", + "integrity": "sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.10", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.18.11", + "@babel/types": "^7.18.10", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/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==", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/types": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.10.tgz", + "integrity": "sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==", + "dependencies": { + "@babel/helper-string-parser": "^7.18.10", + "@babel/helper-validator-identifier": "^7.18.6", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/babel-plugin": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.10.0.tgz", + "integrity": "sha512-xVnpDAAbtxL1dsuSelU5A7BnY/lftws0wUexNJZTPsvX/1tM4GZJbclgODhvW4E+NH7E5VFcH0bBn30NvniPJA==", + "dependencies": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/plugin-syntax-jsx": "^7.17.12", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/serialize": "^1.1.0", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.0.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@emotion/babel-plugin/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@emotion/cache": { + "version": "11.10.1", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.10.1.tgz", + "integrity": "sha512-uZTj3Yz5D69GE25iFZcIQtibnVCFsc/6+XIozyL3ycgWvEdif2uEw9wlUt6umjLr4Keg9K6xRPHmD8LGi+6p1A==", + "dependencies": { + "@emotion/memoize": "^0.8.0", + "@emotion/sheet": "^1.2.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "stylis": "4.0.13" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.0.tgz", + "integrity": "sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==" + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.0.tgz", + "integrity": "sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==", + "dependencies": { + "@emotion/memoize": "^0.8.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.0.tgz", + "integrity": "sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==" + }, + "node_modules/@emotion/react": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.10.0.tgz", + "integrity": "sha512-K6z9zlHxxBXwN8TcpwBKcEsBsOw4JWCCmR+BeeOWgqp8GIU1yA2Odd41bwdAAr0ssbQrbJbVnndvv7oiv1bZeQ==", + "peer": true, + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.0", + "@emotion/cache": "^11.10.0", + "@emotion/serialize": "^1.1.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "hoist-non-react-statics": "^3.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/serialize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.0.tgz", + "integrity": "sha512-F1ZZZW51T/fx+wKbVlwsfchr5q97iW8brAnXmsskz4d0hVB4O3M/SiA3SaeH06x02lSNzkkQv+n3AX3kCXKSFA==", + "dependencies": { + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/unitless": "^0.8.0", + "@emotion/utils": "^1.2.0", + "csstype": "^3.0.2" + } + }, + "node_modules/@emotion/sheet": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.0.tgz", + "integrity": "sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w==" + }, + "node_modules/@emotion/styled": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.10.0.tgz", + "integrity": "sha512-V9oaEH6V4KePeQpgUE83i8ht+4Ri3E8Djp/ZPJ4DQlqWhSKITvgzlR3/YQE2hdfP4Jw3qVRkANJz01LLqK9/TA==", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.0", + "@emotion/is-prop-valid": "^1.2.0", + "@emotion/serialize": "^1.1.0", + "@emotion/utils": "^1.2.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@emotion/react": "^11.0.0-rc.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/unitless": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.0.tgz", + "integrity": "sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==" + }, + "node_modules/@emotion/utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.0.tgz", + "integrity": "sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==" + }, + "node_modules/@emotion/weak-memoize": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.0.tgz", + "integrity": "sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==" + }, + "node_modules/@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "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" + } + }, + "node_modules/@fontsource/roboto": { + "version": "4.5.7", + "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.7.tgz", + "integrity": "sha512-m57UMER23Mk6Drg9OjtHW1Y+0KPGyZfE5XJoPTOsLARLar6013kJj4X2HICt+iFLJqIgTahA/QAvSn9lwF1EEw==" + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", + "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "dev": true, + "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.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "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/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==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "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, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "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==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@lezer/common": { + "version": "0.15.12", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.12.tgz", + "integrity": "sha512-edfwCxNLnzq5pBA/yaIhwJ3U3Kz8VAUOTRg0hhxaizaI1N+qxV7EXDv/kLCkLeq2RzSFvxexlaj5Mzfn2kY0Ig==", + "dev": true + }, + "node_modules/@lezer/lr": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-0.15.8.tgz", + "integrity": "sha512-bM6oE6VQZ6hIFxDNKk8bKPa14hqFrV07J/vHGOeiAbJReIaQXmkVb6xQu4MR+JBTLa5arGRyAAjJe1qaQt3Uvg==", + "dev": true, + "dependencies": { + "@lezer/common": "^0.15.0" + } + }, + "node_modules/@lmdb/lmdb-darwin-arm64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-2.5.2.tgz", + "integrity": "sha512-+F8ioQIUN68B4UFiIBYu0QQvgb9FmlKw2ctQMSBfW2QBrZIxz9vD9jCGqTCPqZBRbPHAS/vG1zSXnKqnS2ch/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lmdb/lmdb-darwin-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-x64/-/lmdb-darwin-x64-2.5.2.tgz", + "integrity": "sha512-KvPH56KRLLx4KSfKBx0m1r7GGGUMXm0jrKmNE7plbHlesZMuPJICtn07HYgQhj1LNsK7Yqwuvnqh1QxhJnF1EA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lmdb/lmdb-linux-arm": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm/-/lmdb-linux-arm-2.5.2.tgz", + "integrity": "sha512-5kQAP21hAkfW5Bl+e0P57dV4dGYnkNIpR7f/GAh6QHlgXx+vp/teVj4PGRZaKAvt0GX6++N6hF8NnGElLDuIDw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-linux-arm64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm64/-/lmdb-linux-arm64-2.5.2.tgz", + "integrity": "sha512-aLl89VHL/wjhievEOlPocoefUyWdvzVrcQ/MHQYZm2JfV1jUsrbr/ZfkPPUFvZBf+VSE+Q0clWs9l29PCX1hTQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-linux-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-x64/-/lmdb-linux-x64-2.5.2.tgz", + "integrity": "sha512-xUdUfwDJLGjOUPH3BuPBt0NlIrR7f/QHKgu3GZIXswMMIihAekj2i97oI0iWG5Bok/b+OBjHPfa8IU9velnP/Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-win32-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.5.2.tgz", + "integrity": "sha512-zrBczSbXKxEyK2ijtbRdICDygRqWSRPpZMN5dD1T8VMEW5RIhIbwFWw2phDRXuBQdVDpSjalCIUMWMV2h3JaZA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@mischnic/json-sourcemap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@mischnic/json-sourcemap/-/json-sourcemap-0.1.0.tgz", + "integrity": "sha512-dQb3QnfNqmQNYA4nFSN/uLaByIic58gOXq4Y4XqLOWmOrw73KmJPt/HLyG0wvn1bnR6mBKs/Uwvkh+Hns1T0XA==", + "dev": true, + "dependencies": { + "@lezer/common": "^0.15.7", + "@lezer/lr": "^0.15.4", + "json5": "^2.2.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-2.1.2.tgz", + "integrity": "sha512-TyVLn3S/+ikMDsh0gbKv2YydKClN8HaJDDpONlaZR+LVJmsxLFUgA+O7zu59h9+f9gX1aj/ahw9wqa6rosmrYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-2.1.2.tgz", + "integrity": "sha512-YPXtcVkhmVNoMGlqp81ZHW4dMxK09msWgnxtsDpSiZwTzUBG2N+No2bsr7WMtBKCVJMSD6mbAl7YhKUqkp/Few==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-2.1.2.tgz", + "integrity": "sha512-42R4MAFeIeNn+L98qwxAt360bwzX2Kf0ZQkBBucJ2Ircza3asoY4CDbgiu9VWklq8gWJVSJSJBwDI+c/THiWkA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-2.1.2.tgz", + "integrity": "sha512-vHZ2JiOWF2+DN9lzltGbhtQNzDo8fKFGrf37UJrgqxU0yvtERrzUugnfnX1wmVfFhSsF8OxrfqiNOUc5hko1Zg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-2.1.2.tgz", + "integrity": "sha512-RjRoRxg7Q3kPAdUSC5EUUPlwfMkIVhmaRTIe+cqHbKrGZ4M6TyCA/b5qMaukQ/1CHWrqYY2FbKOAU8Hg0pQFzg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-2.1.2.tgz", + "integrity": "sha512-rIZVR48zA8hGkHIK7ED6+ZiXsjRCcAVBJbm8o89OKAMTmEAQ2QvoOxoiu3w2isAaWwzgtQIOFIqHwvZDyLKCvw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@mui/base": { + "version": "5.0.0-alpha.92", + "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.92.tgz", + "integrity": "sha512-ZgnSLrTXL4iUdLQhjp01dAOTQPQlnwrqjZRwDT3E6LZXEYn6cMv1MY6LZkWcF/zxrUnyasnsyMAgZ5d8AXS7bA==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@emotion/is-prop-valid": "^1.1.3", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "@popperjs/core": "^2.11.5", + "clsx": "^1.2.1", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/base/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@mui/icons-material": { + "version": "5.8.4", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.8.4.tgz", + "integrity": "sha512-9Z/vyj2szvEhGWDvb+gG875bOGm8b8rlHBKOD1+nA3PcgC3fV6W1AU6pfOorPeBfH2X4mb9Boe97vHvaSndQvA==", + "dependencies": { + "@babel/runtime": "^7.17.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@mui/material": "^5.0.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.9.3.tgz", + "integrity": "sha512-idDJajnfnDr+2pI6h2tzWtWoZJmVHNk6aSjISirMuVOGy0ugWpsCE+KW4++GS7aTCujXm9+cl5bWAyXvGjiPIQ==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@mui/base": "5.0.0-alpha.92", + "@mui/system": "^5.9.3", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "@types/react-transition-group": "^4.4.5", + "clsx": "^1.2.1", + "csstype": "^3.1.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@mui/private-theming": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.9.3.tgz", + "integrity": "sha512-Ys3WO39WqoGciGX9k5AIi/k2zJhlydv4FzlEEwtw9OqdMaV0ydK/TdZekKzjP9sTI/JcdAP3H5DWtUaPLQJjWg==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@mui/utils": "^5.9.3", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/styled-engine": { + "version": "5.8.7", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.8.7.tgz", + "integrity": "sha512-tVqtowjbYmiRq+qcqXK731L9eWoL9H8xTRhuTgaDGKdch1zlt4I2UwInUe1w2N9N/u3/jHsFbLcl1Un3uOwpQg==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@emotion/cache": "^11.9.3", + "csstype": "^3.1.0", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/styled": "^11.3.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + } + } + }, + "node_modules/@mui/system": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.9.3.tgz", + "integrity": "sha512-EXQV2POwncstHLYII+G4VSYdEFun1TjBbQSBDK76DbIkug8nPjtjAZ+3Kgk3/NoFIigW+vQ9cDVUZtlbRH6YMQ==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@mui/private-theming": "^5.9.3", + "@mui/styled-engine": "^5.8.7", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "clsx": "^1.2.1", + "csstype": "^3.1.0", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/types": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.1.5.tgz", + "integrity": "sha512-HnRXrxgHJYJcT8ZDdDCQIlqk0s0skOKD7eWs9mJgBUu70hyW4iA6Kiv3yspJR474RFH8hysKR65VVSzUSzkuwA==", + "peerDependencies": { + "@types/react": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/utils": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.9.3.tgz", + "integrity": "sha512-l0N5bcrenE9hnwZ/jPecpIRqsDFHkPXoFUcmkgysaJwVZzJ3yQkGXB47eqmXX5yyGrSc6HksbbqXEaUya+siew==", + "dependencies": { + "@babel/runtime": "^7.17.2", + "@types/prop-types": "^15.7.5", + "@types/react-is": "^16.7.1 || ^17.0.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@mui/utils/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "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/@parcel/bundler-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/bundler-default/-/bundler-default-2.7.0.tgz", + "integrity": "sha512-PU5MtWWhc+dYI9x8mguYnm9yiG6TkI7niRpxgJgtqAyGHuEyNXVBQQ0X+qyOF4D9LdankBf8uNN18g31IET2Zg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/cache": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/cache/-/cache-2.7.0.tgz", + "integrity": "sha512-JlXNoZXcWzLKdDlfeF3dIj5Vtel5T9vtdBN72PJ+cjC4qNHk4Uwvc5sfOBELuibGN0bVu2bwY9nUgSwCiB1iIA==", + "dev": true, + "dependencies": { + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/utils": "2.7.0", + "lmdb": "2.5.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/codeframe": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/codeframe/-/codeframe-2.7.0.tgz", + "integrity": "sha512-UTKx0jejJmmO1dwTHSJuRgrO8N6PMlkxRT6sew8N6NC3Bgv6pu0EbO+RtlWt/jCvzcdLOPdIoTzj4MMZvgcMYg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/compressor-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/compressor-raw/-/compressor-raw-2.7.0.tgz", + "integrity": "sha512-SCXwnOOQT6EmpusBsYWNQ/RFri+2JnKuE0gMSf2dROl2xbererX45FYzeDplWALCKAdjMNDpFwU+FyMYoVZSCQ==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/config-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/config-default/-/config-default-2.7.0.tgz", + "integrity": "sha512-ZzsLr97AYrz8c9k6qn3DlqPzifi3vbP7q3ynUrAFxmt0L4+K0H9N508ZkORYmCgaFjLIQ8Y3eWpwCJ0AewPNIg==", + "dev": true, + "dependencies": { + "@parcel/bundler-default": "2.7.0", + "@parcel/compressor-raw": "2.7.0", + "@parcel/namer-default": "2.7.0", + "@parcel/optimizer-css": "2.7.0", + "@parcel/optimizer-htmlnano": "2.7.0", + "@parcel/optimizer-image": "2.7.0", + "@parcel/optimizer-svgo": "2.7.0", + "@parcel/optimizer-terser": "2.7.0", + "@parcel/packager-css": "2.7.0", + "@parcel/packager-html": "2.7.0", + "@parcel/packager-js": "2.7.0", + "@parcel/packager-raw": "2.7.0", + "@parcel/packager-svg": "2.7.0", + "@parcel/reporter-dev-server": "2.7.0", + "@parcel/resolver-default": "2.7.0", + "@parcel/runtime-browser-hmr": "2.7.0", + "@parcel/runtime-js": "2.7.0", + "@parcel/runtime-react-refresh": "2.7.0", + "@parcel/runtime-service-worker": "2.7.0", + "@parcel/transformer-babel": "2.7.0", + "@parcel/transformer-css": "2.7.0", + "@parcel/transformer-html": "2.7.0", + "@parcel/transformer-image": "2.7.0", + "@parcel/transformer-js": "2.7.0", + "@parcel/transformer-json": "2.7.0", + "@parcel/transformer-postcss": "2.7.0", + "@parcel/transformer-posthtml": "2.7.0", + "@parcel/transformer-raw": "2.7.0", + "@parcel/transformer-react-refresh-wrap": "2.7.0", + "@parcel/transformer-svg": "2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/config-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/config-webextension/-/config-webextension-2.7.0.tgz", + "integrity": "sha512-5OBhrRfsamI5oInv2APMgz9+qSqDhb07iR98qhRMYt2S34/Npj08vrUtqr2nZiiA5ypThT+FRtRjYAtiHPQMSQ==", + "dev": true, + "dependencies": { + "@parcel/config-default": "2.7.0", + "@parcel/packager-webextension": "2.7.0", + "@parcel/runtime-webextension": "2.7.0", + "@parcel/transformer-raw": "2.7.0", + "@parcel/transformer-webextension": "2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/core/-/core-2.7.0.tgz", + "integrity": "sha512-7yKZUdh314Q/kU/9+27ZYTfcnXS6VYHuG+iiUlIohnvUUybxLqVJhdMU9Q+z2QcPka1IdJWz4K4Xx0y6/4goyg==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/cache": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/graph": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "abortcontroller-polyfill": "^1.1.9", + "base-x": "^3.0.8", + "browserslist": "^4.6.6", + "clone": "^2.1.1", + "dotenv": "^7.0.0", + "dotenv-expand": "^5.1.0", + "json5": "^2.2.0", + "msgpackr": "^1.5.4", + "nullthrows": "^1.1.1", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css/-/css-1.12.2.tgz", + "integrity": "sha512-Sa0PvZu5u877CupQA8IjEATqjJFynBfA7LxbcyutFe2LDCRSqB5Bm08jKFScyaz56qjZNIxZxXk2SApNkOvoAA==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/css-darwin-arm64": "1.12.2", + "@parcel/css-darwin-x64": "1.12.2", + "@parcel/css-linux-arm-gnueabihf": "1.12.2", + "@parcel/css-linux-arm64-gnu": "1.12.2", + "@parcel/css-linux-arm64-musl": "1.12.2", + "@parcel/css-linux-x64-gnu": "1.12.2", + "@parcel/css-linux-x64-musl": "1.12.2", + "@parcel/css-win32-x64-msvc": "1.12.2" + } + }, + "node_modules/@parcel/css-darwin-arm64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-darwin-arm64/-/css-darwin-arm64-1.12.2.tgz", + "integrity": "sha512-6VvsoYSltBiUh/uyfPzQ+I3DiTFN7tmRv6zm1LH98J7GGCDDhbYEtbQjjCs15ex6fVn1ORZK0JO+mMlsg1JwTA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-darwin-x64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-darwin-x64/-/css-darwin-x64-1.12.2.tgz", + "integrity": "sha512-3J0/LrDvt5vevOisnrE0q5mEcuiAY+K7OZwIv84SAnrbjlL5sshmIaaNzL869kb4thza+RClEj0mS5XTm1IUEw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-linux-arm-gnueabihf": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm-gnueabihf/-/css-linux-arm-gnueabihf-1.12.2.tgz", + "integrity": "sha512-OsX7I3dhBvnxEbAH++08RFe7yhjRp33ulzrCvJTMOP9YkxEEJ8qId3sNzJBHIVQzHyTlPTnBRHbSDhU3TFe/eQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-linux-arm64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm64-gnu/-/css-linux-arm64-gnu-1.12.2.tgz", + "integrity": "sha512-R1Kqw+1Rsru9Q4+qvUEC6B8P21bpqhuF9rv8GmBmmnF1i2hMZ1JiY+uh/ej8IaRV0O3fAHeQGIyGBWx6qWDpcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-linux-arm64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm64-musl/-/css-linux-arm64-musl-1.12.2.tgz", + "integrity": "sha512-nwixgM4SEgPUQata9aAiJW0A5Q9ms+xim1tXT1i+91kOei4Fu2Wr2OuofMk+mlhbgmGKCTcu4gzMPReGxUhuRA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-linux-x64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-x64-gnu/-/css-linux-x64-gnu-1.12.2.tgz", + "integrity": "sha512-cJYVMHnQSGhDwQByyvjFZppjMBNlgxXl/R4cX5DwrQE0QZmK/42BYnMp92rvoprEG6LRyRoiGtCjyfYTPWajog==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-linux-x64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-x64-musl/-/css-linux-x64-musl-1.12.2.tgz", + "integrity": "sha512-u9zdO/d831/74Tf+TdPUfaIuB9v6FD4Xz8UdWUDOXgQqaOlnJ9fAsAM39EkoWlMxPPljY3f4ay6irSe1a4XgSA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/css-win32-x64-msvc": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-win32-x64-msvc/-/css-win32-x64-msvc-1.12.2.tgz", + "integrity": "sha512-kCAKr3vKqvPUv9oXBG3pGZQz5il3sEk35dpmTXFa/7eDNKR5XyLpiJs8JwWJTFfuUqroymDSXA1bCcjvNEYcAg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/diagnostic": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/diagnostic/-/diagnostic-2.7.0.tgz", + "integrity": "sha512-pdq/cTwVoL0n8yuDCRXFRSQHVWdmmIXPt3R3iT4KtYDYvOrMT2dLPT79IMqQkhYPANW8GuL15n/WxRngfRdkug==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/events": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/events/-/events-2.7.0.tgz", + "integrity": "sha512-kQDwMKgZ1U4M/G17qeDYF6bW5kybluN6ajYPc7mZcrWg+trEI/oXi81GMFaMX0BSUhwhbiN5+/Vb2wiG/Sn6ig==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/fs": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/fs/-/fs-2.7.0.tgz", + "integrity": "sha512-PU5fo4Hh8y03LZgemgVREttc0wyHQUNmsJCybxTB7EjJie2CqJRumo+DFppArlvdchLwJdc9em03yQV/GNWrEg==", + "dev": true, + "dependencies": { + "@parcel/fs-search": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/watcher": "^2.0.0", + "@parcel/workers": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/fs-search": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/fs-search/-/fs-search-2.7.0.tgz", + "integrity": "sha512-K1Hv25bnRpwQVA15RvcRuB8ZhfclnCHA8N8L6w7Ul1ncSJDxCIkIAc5hAubYNNYW3kWjCC2SOaEgFKnbvMllEQ==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/graph": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/graph/-/graph-2.7.0.tgz", + "integrity": "sha512-Q6E94GS6q45PtsZh+m+gvFRp/N1Qopxhu2sxjcWsGs5iBd6IWn2oYLWOH5iVzEjWuYpW2HkB08lH6J50O63uOA==", + "dev": true, + "dependencies": { + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/hash": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/hash/-/hash-2.7.0.tgz", + "integrity": "sha512-k6bSKnIlPJMPU3yjQzfgfvF9zuJZGOAlJgzpL4BbWvdbE8BTdjzLcFn0Ujrtud94EgIkiXd22sC2HpCUWoHGdA==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3", + "xxhash-wasm": "^0.4.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/logger": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/logger/-/logger-2.7.0.tgz", + "integrity": "sha512-qjMY/bYo38+o+OiIrTRldU9CwL1E7J72t+xkTP8QIcUxLWz5LYR0YbynZUVulmBSfqsykjjxCy4a+8siVr+lPw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/markdown-ansi": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/markdown-ansi/-/markdown-ansi-2.7.0.tgz", + "integrity": "sha512-ipOX0D6FVZFEXeb/z8MnTMq2RQEIuaILY90olVIuHEFLHHfOPEn+RK3u13HA1ChF5/9E3cMD79tu6x9JL9Kqag==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/namer-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/namer-default/-/namer-default-2.7.0.tgz", + "integrity": "sha512-lIKMdsmi//7fepecNDYmJYzBlL91HifPsX03lJCdu1dC6q5fBs+gG0XjKKG7yPnSCw1qH/4m7drzt9+dRZYAHQ==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/node-resolver-core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/node-resolver-core/-/node-resolver-core-2.7.0.tgz", + "integrity": "sha512-5UJQHalqMxdhJIs2hhqQzFfQpF7+NAowsRq064lYtiRvcD8wMr3OOQ9wd1iazGpFSl4JKdT7BwDU9/miDJmanQ==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-css/-/optimizer-css-2.7.0.tgz", + "integrity": "sha512-IfnOMACqhcAclKyOW9X9JpsknB6OShk9OVvb8EvbDTKHJhQHNNmzE88OkSI/pS3ZVZP9Zj+nWcVHguV+kvDeiQ==", + "dev": true, + "dependencies": { + "@parcel/css": "^1.12.2", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-htmlnano": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-htmlnano/-/optimizer-htmlnano-2.7.0.tgz", + "integrity": "sha512-5QrGdWS5Hi4VXE3nQNrGqugmSXt68YIsWwKRAdarOxzyULSJS3gbCiQOXqIPRJobfZjnSIcdtkyxSiCUe1inIA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "htmlnano": "^2.0.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "svgo": "^2.4.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-image": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-image/-/optimizer-image-2.7.0.tgz", + "integrity": "sha512-EnaXz5UjR67FUu0BEcqZTT9LsbB/iFAkkghCotbnbOuC5QQsloq6tw54TKU3y+R3qsjgUoMtGxPcGfVoXxZXYw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "detect-libc": "^1.0.3" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-svgo": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-svgo/-/optimizer-svgo-2.7.0.tgz", + "integrity": "sha512-IO1JV4NpfP3V7FrhsqCcV8pDQIHraFi1/ZvEJyssITxjH49Im/txKlwMiQuZZryAPn8Xb8g395Muawuk6AK6sg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "svgo": "^2.4.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-terser": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-terser/-/optimizer-terser-2.7.0.tgz", + "integrity": "sha512-07VZjIO8xsl2/WmS/qHI8lI/cpu47iS9eRpqwfZEEsdk1cfz50jhWkmFudHBxiHGMfcZ//1+DdaPg9RDBWZtZA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "terser": "^5.2.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/package-manager": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/package-manager/-/package-manager-2.7.0.tgz", + "integrity": "sha512-wmfSX1mRrTi8MeA4KrnPk/x7zGUsILCQmTo6lA4gygzAxDbM1pGuyFN8/Kt0y0SFO2lbljARtD/4an5qdotH+Q==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/packager-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-css/-/packager-css-2.7.0.tgz", + "integrity": "sha512-44nzZwu+ssGuiFmYM6cf/Y4iChiUZ4DUzzpegnGlhXtKJKe4NHntxThJynuRZWKN2AAf48avApDpimg2jW0KDw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-html": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-html/-/packager-html-2.7.0.tgz", + "integrity": "sha512-Zgqd7sdcY/UnR370GR0q2ilmEohUDXsO8A1F28QCJzIsR1iCB6KRUT74+pawfQ1IhXZLaaFLLYe0UWcfm0JeXg==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-js/-/packager-js-2.7.0.tgz", + "integrity": "sha512-wTRdM81PgRVDzWGXdWmqLwguWnTYWzhEDdjXpW2n8uMOu/CjHhMtogk65aaYk3GOnq6OBL/NsrmBiV/zKPj1vA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "globals": "^13.2.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-raw/-/packager-raw-2.7.0.tgz", + "integrity": "sha512-jg2Zp8dI5VpIQlaeahXDCfrPN9m/DKht1NkR9P2CylMAwqCcc1Xc1RRiF0wfwcPZpPMpq1265n+4qnB7rjGBlA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-svg": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-svg/-/packager-svg-2.7.0.tgz", + "integrity": "sha512-EmJg3HpD6/xxKBjir/CdCKJZwI24iVfBuxRS9LUp3xHAIebOzVh1z6IN+i2Di5+NyRwfOFaLliL4uMa1zwbyCA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "posthtml": "^0.16.4" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-webextension/-/packager-webextension-2.7.0.tgz", + "integrity": "sha512-HoGE/6S+beiFuLhYWUctA1UHtN1YIuTeqP3JitDwGEMz2iMaffajTP+8LNGqZjB3X+98rVYiNLdk0uEWUs70kw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">=12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/plugin": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/plugin/-/plugin-2.7.0.tgz", + "integrity": "sha512-qqgx+nnMn6/0lRc4lKbLGmhNtBiT93S2gFNB4Eb4Pfz/SxVYoW+fmml+KdfOSiZffWOAH5L6NwhyD7N8aSikzw==", + "dev": true, + "dependencies": { + "@parcel/types": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/reporter-cli": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-cli/-/reporter-cli-2.7.0.tgz", + "integrity": "sha512-80gEODg8cnAmnxGVuaSVDo8JJ54P9AA2bHwSs1cIkHWlJ3BjDQb83H31bBHncJ5Kn5kQ/j+7WjlqHpTCiOR9PA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "chalk": "^4.1.0", + "term-size": "^2.2.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/reporter-dev-server": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-dev-server/-/reporter-dev-server-2.7.0.tgz", + "integrity": "sha512-ySuou5addK8fGue8aXzo536BaEjMujDrEc1xkp4TasInXHVcA98b+SYX5NAZTGob5CxKvZQ5ylhg77zW30B+iA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/resolver-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/resolver-default/-/resolver-default-2.7.0.tgz", + "integrity": "sha512-v8TvWsbLK7/q7n4gv6OrYNbW18xUx4zKbVMGZb1u4yMhzEH4HFr1D9OeoTq3jk+ximAigds8B6triQbL5exF7A==", + "dev": true, + "dependencies": { + "@parcel/node-resolver-core": "2.7.0", + "@parcel/plugin": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-browser-hmr": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-browser-hmr/-/runtime-browser-hmr-2.7.0.tgz", + "integrity": "sha512-PLbMLdclQeYsi2LkilZVGFV1n3y55G1jaBvby4ekedUZjMw3SWdMY2tDxgSDdFWfLCnYHJXdGUQSzGGi1kPzjA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-js/-/runtime-js-2.7.0.tgz", + "integrity": "sha512-9/YUZTBNrSN2H6rbz/o1EOM0O7I3ZR/x9IDzxjJBD6Mi+0uCgCD02aedare/SNr1qgnbZZWmhpOzC+YgREcfLA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-react-refresh": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-react-refresh/-/runtime-react-refresh-2.7.0.tgz", + "integrity": "sha512-vDKO0rWqRzEpmvoZ4kkYUiSsTxT5NnH904BFPFxKI0wJCl6yEmPuEifmATo73OuYhP6jIP3Qfl1R4TtiDFPJ1Q==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "react-error-overlay": "6.0.9", + "react-refresh": "^0.9.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-service-worker": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-service-worker/-/runtime-service-worker-2.7.0.tgz", + "integrity": "sha512-uD2pAV0yV6+e7JaWH4KVPbG+zRCrxr/OACyS9tIh+Q/R1vRmh8zGM3yhdrcoiZ7tFOnM72vd6xY11eTrUsSVig==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-webextension/-/runtime-webextension-2.7.0.tgz", + "integrity": "sha512-+2gGOOR3HUJGdsr/tUsJjs9tvlOsp2rTgGKt77+s1lqU/DYxh/n6KCSy+7a2DYtnBtZxE6LQhX6g/p4C2hkmMg==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/source-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@parcel/source-map/-/source-map-2.1.0.tgz", + "integrity": "sha512-E7UOEIof2o89LrKk1agSLmwakjigmEdDp1ZaEdsLVEvq63R/bul4Ij5CT+0ZDcijGpl5tnTbQADY9EyYGtjYgQ==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3" + }, + "engines": { + "node": "^12.18.3 || >=14" + } + }, + "node_modules/@parcel/transformer-babel": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-babel/-/transformer-babel-2.7.0.tgz", + "integrity": "sha512-7iklDXXnKH1530+QbI+e4kIJ+Q1puA1ulRS10db3aUJMj5GnvXGDFwhSZ7+T1ps66QHO7cVO29VlbqiRDarH1Q==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "json5": "^2.2.0", + "nullthrows": "^1.1.1", + "semver": "^5.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-css/-/transformer-css-2.7.0.tgz", + "integrity": "sha512-J4EpWK9spQpXyNCmKK8Xnane0xW/1B/EAmfp7Fiv7g+5yUjY4ODf4KUugvE+Eb2gekPkhOKNHermO2KrX0/PFA==", + "dev": true, + "dependencies": { + "@parcel/css": "^1.12.2", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-html": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-html/-/transformer-html-2.7.0.tgz", + "integrity": "sha512-wYJl5rn81W+Rlk9oQwDJcjoVsWVDKyeri84FzmlGXOsg0EYgnqOiG+3MDM8GeZjfuGe5fuoum4eqZeS0WdUHXw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-image": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-image/-/transformer-image-2.7.0.tgz", + "integrity": "sha512-mhi9/R5/ULhCkL2COVIKhNFoLDiZwQgprdaTJr5fnODggVxEX5o7ebFV6KNLMTEkwZUJWoB1hL0ziI0++DtoFA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/transformer-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-js/-/transformer-js-2.7.0.tgz", + "integrity": "sha512-mzerR+D4rDomUSIk5RSTa2w+DXBdXUeQrpDO74WCDdpDi1lIl8ppFpqtmU7O6y6p8QsgkmS9b0g/vhcry6CJTA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "@swc/helpers": "^0.4.2", + "browserslist": "^4.6.6", + "detect-libc": "^1.0.3", + "nullthrows": "^1.1.1", + "regenerator-runtime": "^0.13.7", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@parcel/transformer-json": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-json/-/transformer-json-2.7.0.tgz", + "integrity": "sha512-RQjuxBpYOch+kr4a0zi77KJtOLTPYRM7iq4NN80zKnA0r0dwDUCxZBtaj2l0O0o3R4MMJnm+ncP+cB7XR7dZYA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "json5": "^2.2.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-postcss": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-postcss/-/transformer-postcss-2.7.0.tgz", + "integrity": "sha512-b6RskXBWf0MjpC9qjR2dQ1ZdRnlOiKYseG5CEovWCqM218RtdydFKz7jS+5Gxkb6qBtOG7zGPONXdPe+gTILcA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "clone": "^2.1.1", + "nullthrows": "^1.1.1", + "postcss-value-parser": "^4.2.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-posthtml": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-posthtml/-/transformer-posthtml-2.7.0.tgz", + "integrity": "sha512-cP8YOiSynWJ1ycmBlhnnHeuQb2cwmklZ+BNyLUktj5p78kDy2de7VjX+dRNRHoW4H9OgEcSF4UEfDVVz5RYIhw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-raw/-/transformer-raw-2.7.0.tgz", + "integrity": "sha512-sDnItWCFSDez0izK1i5cgv+kXzZTbcJh4rNpVIgmE1kBLvAz608sqgcCkavb2wVJIvLesxYM+5G4p1CwkDlZ1g==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-react-refresh-wrap": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-react-refresh-wrap/-/transformer-react-refresh-wrap-2.7.0.tgz", + "integrity": "sha512-1vRmIJzyBA1nIiXTAU6tZExq2FvJj/2F0ft6KDw8GYPv0KjmdiPo/PmaZ7JeSVOM6SdXQIQCbTmp1vkMP7DtkA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "react-refresh": "^0.9.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-svg": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-svg/-/transformer-svg-2.7.0.tgz", + "integrity": "sha512-ioER37zceuuE+K6ZrnjCyMUWEnv+63hIAFResc1OXxRhyt+7kzMz9ZqK0Mt6QMLwl1dxhkLmrU41n9IxzKZuSQ==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-typescript-tsc": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-typescript-tsc/-/transformer-typescript-tsc-2.7.0.tgz", + "integrity": "sha512-s7poL/TQk+/zg09GKgxp7uErzzgJe+afuzgngqlOjsP0nXUAthQvtU+RwozOKSCNBh0/RwyD5gokp0SCQtIX+A==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/ts-utils": "2.7.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "typescript": ">=3.0.0" + } + }, + "node_modules/@parcel/transformer-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-webextension/-/transformer-webextension-2.7.0.tgz", + "integrity": "sha512-r7mQJ91oVnL9gMvqURlaq4ru95/685utOc51QaOfSCYjuEbosvPUIDXDRAXFVLea56iLP5nIUsrUGtycE6zsQg==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "content-security-policy-parser": "^0.3.0" + }, + "engines": { + "parcel": "^2.7.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/ts-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/ts-utils/-/ts-utils-2.7.0.tgz", + "integrity": "sha512-hxgWu9p9+zo9OvllYy12DRrAEyAGGLQysI6PyNvYvsZSmb7sQg9YQ7spD1QmWIQUC1H6BkyzQsowpK0hvPK1xg==", + "dev": true, + "dependencies": { + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "typescript": ">=3.0.0" + } + }, + "node_modules/@parcel/types": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/types/-/types-2.7.0.tgz", + "integrity": "sha512-+dhXVUnseTCpJvBTGMp0V6X13z6O/A/+CUtwEpMGZ8XSmZ4Gk44GvaTiBOp0bJpWG4fvCKp+UmC8PYbrDiiziw==", + "dev": true, + "dependencies": { + "@parcel/cache": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/workers": "2.7.0", + "utility-types": "^3.10.0" + } + }, + "node_modules/@parcel/utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/utils/-/utils-2.7.0.tgz", + "integrity": "sha512-jNZ5bIGg1r1RDRKi562o4kuVwnz+XJ2Ie3b0Zwrqwvgfj6AbRFIKzDd+h85dWWmcDYzKUbHp11u6VJl1u8Vapg==", + "dev": true, + "dependencies": { + "@parcel/codeframe": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/markdown-ansi": "2.7.0", + "@parcel/source-map": "^2.0.0", + "chalk": "^4.1.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.0.5.tgz", + "integrity": "sha512-x0hUbjv891omnkcHD7ZOhiyyUqUUR6MNjq89JhEI3BxppeKWAm6NPQsqqRrAkCJBogdT/o/My21sXtTI9rJIsw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "node-addon-api": "^3.2.1", + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/workers": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/workers/-/workers-2.7.0.tgz", + "integrity": "sha512-99VfaOX+89+RaoTSyH9ZQtkMBFZBFMvJmVJ/GeJT6QCd2wtKBStTHlaSnQOkLD/iRjJCNwV2xpZmm8YkTwV+hg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "chrome-trace-event": "^1.0.2", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.7.0" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", + "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@swc/helpers": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.3.tgz", + "integrity": "sha512-6JrF+fdUK2zbGpJIlN7G3v966PQjyx/dPt1T9km2wj+EUBqgrxCk3uX4Kct16MIm9gGxfKRcfax2hVf5jvlTzA==", + "dev": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/chrome": { + "version": "0.0.193", + "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.193.tgz", + "integrity": "sha512-R8C84oqvk8A8C8G1viBd8qLpDr86Y/jwD+KLgzUekbIT9RGds6a9GnlQyg8P7ltnGogTMHkiEQK0ZlcrvTeo3Q==", + "dev": true, + "dependencies": { + "@types/filesystem": "*", + "@types/har-format": "*" + } + }, + "node_modules/@types/filesystem": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz", + "integrity": "sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==", + "dev": true, + "dependencies": { + "@types/filewriter": "*" + } + }, + "node_modules/@types/filewriter": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz", + "integrity": "sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==", + "dev": true + }, + "node_modules/@types/firefox-webext-browser": { + "version": "94.0.1", + "resolved": "https://registry.npmjs.org/@types/firefox-webext-browser/-/firefox-webext-browser-94.0.1.tgz", + "integrity": "sha512-I6iHRQJSTZ+gYt2IxdH2RRAMvcUyK8v5Ig7fHQR0IwUNYP7hz9+cziBVIKxLCO6XI7fiyRsNOWObfl3/4Js2Lg==", + "dev": true + }, + "node_modules/@types/har-format": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.8.tgz", + "integrity": "sha512-OP6L9VuZNdskgNN3zFQQ54ceYD8OLq5IbqO4VK91ORLfOm7WdT/CiT/pHEBSQEqCInJ2y3O6iCm/zGtPElpgJQ==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.6.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.4.tgz", + "integrity": "sha512-I4BD3L+6AWiUobfxZ49DlU43gtI+FTHSv9pE2Zekg6KjMpre4ByusaljW3vYSLJrvQ1ck1hUaeVu8HVlY3vzHg==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "node_modules/@types/react": { + "version": "18.0.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.15.tgz", + "integrity": "sha512-iz3BtLuIYH1uWdsv6wXYdhozhqj20oD4/Hk2DNXIn1kFsmp9x8d9QB6FnPhfkbhd2PgEONt9Q1x/ebkwjfFLow==", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.0.6", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz", + "integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-is": { + "version": "17.0.3", + "resolved": "https://registry.npmjs.org/@types/react-is/-/react-is-17.0.3.tgz", + "integrity": "sha512-aBTIWg1emtu95bLTLx0cpkxwGW3ueZv71nE2YFBpL8k/z5czEW8yYpOo8Dp+UUAFAtKwNaOsh/ioSeQnWlZcfw==", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", + "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.32.0.tgz", + "integrity": "sha512-CHLuz5Uz7bHP2WgVlvoZGhf0BvFakBJKAD/43Ty0emn4wXWv5k01ND0C0fHcl/Im8Td2y/7h44E9pca9qAu2ew==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/type-utils": "5.32.0", + "@typescript-eslint/utils": "5.32.0", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.32.0.tgz", + "integrity": "sha512-IxRtsehdGV9GFQ35IGm5oKKR2OGcazUoiNBxhRV160iF9FoyuXxjY+rIqs1gfnd+4eL98OjeGnMpE7RF/NBb3A==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/typescript-estree": "5.32.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.32.0.tgz", + "integrity": "sha512-KyAE+tUON0D7tNz92p1uetRqVJiiAkeluvwvZOqBmW9z2XApmk5WSMV9FrzOroAcVxJZB3GfUwVKr98Dr/OjOg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/visitor-keys": "5.32.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.32.0.tgz", + "integrity": "sha512-0gSsIhFDduBz3QcHJIp3qRCvVYbqzHg8D6bHFsDMrm0rURYDj+skBK2zmYebdCp+4nrd9VWd13egvhYFJj/wZg==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "5.32.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.32.0.tgz", + "integrity": "sha512-EBUKs68DOcT/EjGfzywp+f8wG9Zw6gj6BjWu7KV/IYllqKJFPlZlLSYw/PTvVyiRw50t6wVbgv4p9uE2h6sZrQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.32.0.tgz", + "integrity": "sha512-ZVAUkvPk3ITGtCLU5J4atCw9RTxK+SRc6hXqLtllC2sGSeMFWN+YwbiJR9CFrSFJ3w4SJfcWtDwNb/DmUIHdhg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/visitor-keys": "5.32.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.32.0.tgz", + "integrity": "sha512-W7lYIAI5Zlc5K082dGR27Fczjb3Q57ECcXefKU/f0ajM5ToM0P+N9NmJWip8GmGu/g6QISNT+K6KYB+iSHjXCQ==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/typescript-estree": "5.32.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.32.0.tgz", + "integrity": "sha512-S54xOHZgfThiZ38/ZGTgB2rqx51CMJ5MCfVT2IplK4Q7hgzGfe0nLzLCcenDnc/cSjP568hdeKfeDcBgqNHD/g==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.32.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/abortcontroller-polyfill": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", + "integrity": "sha512-zetDJxd89y3X99Kvo4qFx8GKlt6GsvN3UcRZHwU6iFA/0KiOmhkTVhe8oRoTBiTVPZu09x3vCra47+w8Yz1+2Q==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "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": "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/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/array-includes": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz", + "integrity": "sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.2", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-macros/node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "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/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/base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "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==", + "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/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "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/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", + "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001370", + "electron-to-chromium": "^1.4.202", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.5" + }, + "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==", + "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": { + "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 + }, + "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==", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001374", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001374.tgz", + "integrity": "sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "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/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "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/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/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "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/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/content-security-policy-parser": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/content-security-policy-parser/-/content-security-policy-parser-0.3.0.tgz", + "integrity": "sha512-ub90B4t9EfDPv3DCH7vEwGe4tVMkSm4Ow1HsmvmEQwinDfpTEDmkuJVa5WpzHDTt2bUirNRZuzL6S0msASlJhg==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/convert-source-map/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "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/css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "dependencies": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csstype": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", + "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==", + "engines": { + "node": ">=0.10" + } + }, + "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/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dotenv": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", + "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.211", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.211.tgz", + "integrity": "sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A==" + }, + "node_modules/entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", + "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "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.1", + "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.4", + "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.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "regexp.prototype.flags": "^1.4.3", + "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/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "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==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.21.0.tgz", + "integrity": "sha512-/XJ1+Qurf1T9G2M5IHrsjp+xrGT73RZf23xA1z5wB1ZzzEAWSZKvRwhWxTFp1rvkvCfwcvAUNAP31bhKTTGfDA==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "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.3.3", + "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", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "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", + "v8-compile-cache": "^2.0.3" + }, + "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-prettier": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", + "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "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.30.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.30.1.tgz", + "integrity": "sha512-NbEvI9jtqO46yJA3wcRF9Mo0lF9T/jhdHqhCHXiXtD+Zcb98812wvokjWpU7Q4QH5edo6dmqrukxVvWWXHlsUg==", + "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/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/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": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.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/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/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/espree": { + "version": "9.3.3", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz", + "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==", + "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/esquery/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/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/esrecurse/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/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "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-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "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/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==" + }, + "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.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "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/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "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/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "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==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", + "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "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-port": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-4.2.0.tgz", + "integrity": "sha512-/b3jarXkH8KJoOMQc3uVGHASwGLPq3gSFJ7tgJm2diza+bydJPTGOibin2steecKeOylE8oY2JERlVWkAJO6yw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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": "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/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "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": "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/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/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "peer": true, + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/htmlnano": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/htmlnano/-/htmlnano-2.0.2.tgz", + "integrity": "sha512-+ZrQFS4Ub+zd+/fWwfvoYCEGNEa0/zrpys6CyXxvZDwtL7Pl+pOtRkiujyvBQ7Lmfp7/iEPxtOFgxWA16Gkj3w==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.1", + "posthtml": "^0.16.5", + "timsort": "^0.3.0" + }, + "peerDependencies": { + "cssnano": "^5.0.11", + "postcss": "^8.3.11", + "purgecss": "^4.0.3", + "relateurl": "^0.2.7", + "srcset": "^5.0.0", + "svgo": "^2.8.0", + "terser": "^5.10.0", + "uncss": "^0.17.3" + }, + "peerDependenciesMeta": { + "cssnano": { + "optional": true + }, + "postcss": { + "optional": true + }, + "purgecss": { + "optional": true + }, + "relateurl": { + "optional": true + }, + "srcset": { + "optional": true + }, + "svgo": { + "optional": true + }, + "terser": { + "optional": true + }, + "uncss": { + "optional": true + } + } + }, + "node_modules/htmlparser2": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", + "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", + "dev": true, + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.2", + "domutils": "^2.8.0", + "entities": "^3.0.1" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "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/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/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==" + }, + "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-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "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.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", + "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "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-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-json/-/is-json-2.0.1.tgz", + "integrity": "sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==", + "dev": true + }, + "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": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "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-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/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "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/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/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/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "peer": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "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.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.2.tgz", + "integrity": "sha512-4ZCADZHRkno244xlNnn4AOG6sRQ7iBZ5BbgZ4vW4y5IZw7cVUD1PPeblm1xx/nfmMxPdt/LHsXZW8z/j58+l9Q==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.2" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/jwt-decode": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", + "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" + }, + "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/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/linkify-it": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz", + "integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==", + "dependencies": { + "uc.micro": "^1.0.1" + } + }, + "node_modules/lmdb": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/lmdb/-/lmdb-2.5.2.tgz", + "integrity": "sha512-V5V5Xa2Hp9i2XsbDALkBTeHXnBXh/lEmk9p22zdr7jtuOIY9TGhjK6vAvTpOOx9IKU4hJkRWZxn/HsvR1ELLtA==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "msgpackr": "^1.5.4", + "node-addon-api": "^4.3.0", + "node-gyp-build-optional-packages": "5.0.3", + "ordered-binary": "^1.2.4", + "weak-lru-cache": "^1.2.2" + }, + "optionalDependencies": { + "@lmdb/lmdb-darwin-arm64": "2.5.2", + "@lmdb/lmdb-darwin-x64": "2.5.2", + "@lmdb/lmdb-linux-arm": "2.5.2", + "@lmdb/lmdb-linux-arm64": "2.5.2", + "@lmdb/lmdb-linux-x64": "2.5.2", + "@lmdb/lmdb-win32-x64": "2.5.2" + } + }, + "node_modules/lmdb/node_modules/node-addon-api": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", + "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", + "dev": true + }, + "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.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/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/markdown-it": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.1.tgz", + "integrity": "sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==", + "dependencies": { + "argparse": "^2.0.1", + "entities": "~3.0.1", + "linkify-it": "^4.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "bin": { + "markdown-it": "bin/markdown-it.js" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "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/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/msgpackr": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.6.2.tgz", + "integrity": "sha512-bqSQ0DYJbXbrJcrZFmMygUZmqQiDfI2ewFVWcrZY12w5XHWtPuW4WppDT/e63Uu311ajwkRRXSoF0uILroBeTA==", + "dev": true, + "optionalDependencies": { + "msgpackr-extract": "^2.0.2" + } + }, + "node_modules/msgpackr-extract": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-2.1.2.tgz", + "integrity": "sha512-cmrmERQFb19NX2JABOGtrKdHMyI6RUyceaPBQ2iRz9GnDkjBWFjNJC0jyyoOfZl2U/LZE3tQCCQc4dlRyA8mcA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.0.3" + }, + "bin": { + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-arm": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-x64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-win32-x64": "2.1.2" + } + }, + "node_modules/nanoid": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz", + "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==", + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "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-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", + "dev": true + }, + "node_modules/node-gyp-build": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", + "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "dev": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.3.tgz", + "integrity": "sha512-k75jcVzk5wnnc/FMxsf4udAoTEUv2jY3ycfdSd3yWu6Cnd1oee6/CfZJApyscA4FJOmdoixWwiwOyf16RzD5JA==", + "dev": true, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", + "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.3", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.3.tgz", + "integrity": "sha512-ZFJnX3zltyjcYJL0RoCJuzb+11zWGyaDbjgxZbdV7rFEcHQuYxrZqhow67aA7xpes6LhojyFDaBKAFfogQrikA==", + "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.5", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", + "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.5.tgz", + "integrity": "sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.1.tgz", + "integrity": "sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "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/openpgp": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.5.0.tgz", + "integrity": "sha512-SpwcJnxrK9Y0HRM6KxSFqkAEOSWEabCH/c8dII/+y2e5f6KvuDG5ZE7JXaPBaVJNE4VUZZeTphxXDoZD0KOHrw==", + "dependencies": { + "asn1.js": "^5.0.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "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/ordered-binary": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.3.0.tgz", + "integrity": "sha512-knIeYepTI6BDAzGxqFEDGtI/iGqs57H32CInAIxEvAHG46vk1Di0CEpyc1A7iY39B1mfik3g3KLYwOTNnnMHLA==", + "dev": true + }, + "node_modules/orderedmap": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.0.tgz", + "integrity": "sha512-/pIFexOm6S70EPdznemIz3BQZoJ4VTFrhqzu0ACBqBgeLsLxq8e6Jim63ImIfwW/zAD1AlXpRMlOv3aghmo4dA==" + }, + "node_modules/os-shim": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz", + "integrity": "sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A==", + "dev": true, + "engines": { + "node": ">= 0.4.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/parcel": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/parcel/-/parcel-2.7.0.tgz", + "integrity": "sha512-pRYwnivwtNP0tip8xYSo4zCB0XhLt7/gJzP1p8OovCqkmFjG9VG+GW9TcAKqMIo0ovEa9tT+/s6gY1Qy+BONGQ==", + "dev": true, + "dependencies": { + "@parcel/config-default": "2.7.0", + "@parcel/core": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/reporter-cli": "2.7.0", + "@parcel/reporter-dev-server": "2.7.0", + "@parcel/utils": "2.7.0", + "chalk": "^4.1.0", + "commander": "^7.0.0", + "get-port": "^4.2.0", + "v8-compile-cache": "^2.0.0" + }, + "bin": { + "parcel": "lib/bin.js" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "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==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/posthtml": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.16.6.tgz", + "integrity": "sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==", + "dev": true, + "dependencies": { + "posthtml-parser": "^0.11.0", + "posthtml-render": "^3.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/posthtml-parser": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.10.2.tgz", + "integrity": "sha512-PId6zZ/2lyJi9LiKfe+i2xv57oEjJgWbsHGGANwos5AvdQp98i6AtamAl8gzSVFGfQ43Glb5D614cvZf012VKg==", + "dev": true, + "dependencies": { + "htmlparser2": "^7.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/posthtml-render": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-3.0.0.tgz", + "integrity": "sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==", + "dev": true, + "dependencies": { + "is-json": "^2.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/posthtml/node_modules/posthtml-parser": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.11.0.tgz", + "integrity": "sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==", + "dev": true, + "dependencies": { + "htmlparser2": "^7.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/pre-commit": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/pre-commit/-/pre-commit-1.2.2.tgz", + "integrity": "sha512-qokTiqxD6GjODy5ETAIgzsRgnBWWQHQH2ghy86PU7mIn/wuWeTwF3otyNQZxWBwVn8XNr8Tdzj/QfUXpH+gRZA==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "cross-spawn": "^5.0.1", + "spawn-sync": "^1.0.15", + "which": "1.2.x" + } + }, + "node_modules/pre-commit/node_modules/cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "dev": true, + "dependencies": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "node_modules/pre-commit/node_modules/lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/pre-commit/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pre-commit/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pre-commit/node_modules/which": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", + "integrity": "sha512-16uPglFkRPzgiUXYMi1Jf8Z5EzN1iB4V0ZtMXcHZnwsBtQhhHeCqoWw7tsUY42hJGNDWtUsVLTjakIa5BgAxCw==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/pre-commit/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + }, + "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/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "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/prosemirror-commands": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.3.1.tgz", + "integrity": "sha512-XTporPgoECkOQACVw0JTe3RZGi+fls3/byqt+tXwGTkD7qLuB4KdVrJamDMJf4kfKga3uB8hZ+kUUyZ5oWpnfg==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-dropcursor": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.6.1.tgz", + "integrity": "sha512-LtyqQpkIknaT7NnZl3vDr3TpkNcG4ABvGRXx37XJ8tJNUGtcrZBh40A0344rDwlRTfUEmynQS/grUsoSWz+HgA==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "node_modules/prosemirror-gapcursor": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.3.1.tgz", + "integrity": "sha512-GKTeE7ZoMsx5uVfc51/ouwMFPq0o8YrZ7Hx4jTF4EeGbXxBveUV8CGv46mSHuBBeXGmvu50guoV2kSnOeZZnUA==", + "dependencies": { + "prosemirror-keymap": "^1.0.0", + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-view": "^1.0.0" + } + }, + "node_modules/prosemirror-history": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.3.0.tgz", + "integrity": "sha512-qo/9Wn4B/Bq89/YD+eNWFbAytu6dmIM85EhID+fz9Jcl9+DfGEo8TTSrRhP15+fFEoaPqpHSxlvSzSEbmlxlUA==", + "dependencies": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "rope-sequence": "^1.3.0" + } + }, + "node_modules/prosemirror-inputrules": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.2.0.tgz", + "integrity": "sha512-eAW/M/NTSSzpCOxfR8Abw6OagdG0MiDAiWHQMQveIsZtoKVYzm0AflSPq/ymqJd56/Su1YPbwy9lM13wgHOFmQ==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-keymap": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.0.tgz", + "integrity": "sha512-TdSfu+YyLDd54ufN/ZeD1VtBRYpgZnTPnnbY+4R08DDgs84KrIPEPbJL8t1Lm2dkljFx6xeBE26YWH3aIzkPKg==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "node_modules/prosemirror-markdown": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.10.1.tgz", + "integrity": "sha512-s7iaTLiX+qO5z8kF2NcMmy2T7mIlxzkS4Sp3vTKSYChPtbMpg6YxFkU0Y06rUg2WtKlvBu7v1bXzlGBkfjUWAA==", + "dependencies": { + "markdown-it": "^13.0.1", + "prosemirror-model": "^1.0.0" + } + }, + "node_modules/prosemirror-model": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.18.1.tgz", + "integrity": "sha512-IxSVBKAEMjD7s3n8cgtwMlxAXZrC7Mlag7zYsAKDndAqnDScvSmp/UdnRTV/B33lTCVU3CCm7dyAn/rVVD0mcw==", + "dependencies": { + "orderedmap": "^2.0.0" + } + }, + "node_modules/prosemirror-schema-basic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.0.tgz", + "integrity": "sha512-JMN/ammP94ObOUS6cpIy121r0MEDN9V95mAxFVALwC4bbmhpWXGjBGHTA5LHPPdbqZKyR6Jar1Akv4Z5k9CNLw==", + "dependencies": { + "prosemirror-model": "^1.2.0" + } + }, + "node_modules/prosemirror-schema-list": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.2.2.tgz", + "integrity": "sha512-rd0pqSDp86p0MUMKG903g3I9VmElFkQpkZ2iOd3EOVg1vo5Cst51rAsoE+5IPy0LPXq64eGcCYlW1+JPNxOj2w==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-state": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.2.tgz", + "integrity": "sha512-puuzLD2mz/oTdfgd8msFbe0A42j5eNudKAAPDB0+QJRw8cO1ygjLmhLrg9RvDpf87Dkd6D4t93qdef00KKNacQ==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "node_modules/prosemirror-transform": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.7.0.tgz", + "integrity": "sha512-O4T697Cqilw06Zvc3Wm+e237R6eZtJL/xGMliCi+Uo8VL6qHk6afz1qq0zNjT3eZMuYwnP8ZS0+YxX/tfcE9TQ==", + "dependencies": { + "prosemirror-model": "^1.0.0" + } + }, + "node_modules/prosemirror-view": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.29.0.tgz", + "integrity": "sha512-bifVd5aD9uCNtpLL1AyhquG/cVbNZSv+ALBxTEGYv51a6OHDhq+aOuzqq4MermNdeBdT+5uyURXCALgzk0EN5g==", + "dependencies": { + "prosemirror-model": "^1.16.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "dev": true + }, + "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": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", + "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==", + "dev": true + }, + "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/react-refresh": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.9.0.tgz", + "integrity": "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + }, + "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": "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/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==", + "engines": { + "node": ">=4" + } + }, + "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/rope-sequence": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.3.tgz", + "integrity": "sha512-85aZYCxweiD5J8yTEbw+E6A27zSnLPNDL0WfPdw3YYodq7WjnTKo0q4dtyQ2gz23iPT8Q9CUyJtAaUNcTxRf5Q==" + }, + "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-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "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/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "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/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.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, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/spawn-sync": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz", + "integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "concat-stream": "^1.4.7", + "os-shim": "^0.1.2" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz", + "integrity": "sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.1", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "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/stylis": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.0.13.tgz", + "integrity": "sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag==" + }, + "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/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==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "dev": 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 + }, + "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/timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", + "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==", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "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/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/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" + }, + "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.5", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", + "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "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/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/w3c-keyname": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz", + "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==" + }, + "node_modules/weak-lru-cache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", + "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", + "dev": true + }, + "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/xxhash-wasm": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-0.4.2.tgz", + "integrity": "sha512-/eyHVRJQCirEkSZ1agRSCwriMhwlyUcFkXD5TPVSLP+IPzjsqMVzZwdoczLp1SoQU0R3dxz1RpIK+4YNQbCVOA==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "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==", + "peer": true, + "requires": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@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==", + "peer": true, + "requires": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + } + } + }, + "@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.18.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.8.tgz", + "integrity": "sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==", + "peer": true + }, + "@babel/core": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz", + "integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==", + "peer": true, + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.10", + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-module-transforms": "^7.18.9", + "@babel/helpers": "^7.18.9", + "@babel/parser": "^7.18.10", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.18.10", + "@babel/types": "^7.18.10", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "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==", + "peer": true + } + } + }, + "@babel/generator": { + "version": "7.18.12", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.12.tgz", + "integrity": "sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg==", + "peer": true, + "requires": { + "@babel/types": "^7.18.10", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz", + "integrity": "sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==", + "peer": true, + "requires": { + "@babel/compat-data": "^7.18.8", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.20.2", + "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==", + "peer": true + } + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "peer": true + }, + "@babel/helper-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz", + "integrity": "sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==", + "peer": true, + "requires": { + "@babel/template": "^7.18.6", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "peer": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-module-transforms": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz", + "integrity": "sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==", + "peer": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.18.6", + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz", + "integrity": "sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==" + }, + "@babel/helper-simple-access": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", + "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "peer": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "peer": true, + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz", + "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==" + }, + "@babel/helper-validator-identifier": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz", + "integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==" + }, + "@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "peer": true + }, + "@babel/helpers": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.9.tgz", + "integrity": "sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==", + "peer": true, + "requires": { + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "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==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "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==", + "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==" + }, + "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==" + }, + "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==" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.18.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.11.tgz", + "integrity": "sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==", + "peer": true + }, + "@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/runtime": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz", + "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==", + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "peer": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + }, + "@babel/traverse": { + "version": "7.18.11", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.11.tgz", + "integrity": "sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==", + "peer": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.10", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.18.11", + "@babel/types": "^7.18.10", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "peer": true + } + } + }, + "@babel/types": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.10.tgz", + "integrity": "sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==", + "requires": { + "@babel/helper-string-parser": "^7.18.10", + "@babel/helper-validator-identifier": "^7.18.6", + "to-fast-properties": "^2.0.0" + } + }, + "@emotion/babel-plugin": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.10.0.tgz", + "integrity": "sha512-xVnpDAAbtxL1dsuSelU5A7BnY/lftws0wUexNJZTPsvX/1tM4GZJbclgODhvW4E+NH7E5VFcH0bBn30NvniPJA==", + "requires": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/plugin-syntax-jsx": "^7.17.12", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/serialize": "^1.1.0", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.0.13" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" + } + } + }, + "@emotion/cache": { + "version": "11.10.1", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.10.1.tgz", + "integrity": "sha512-uZTj3Yz5D69GE25iFZcIQtibnVCFsc/6+XIozyL3ycgWvEdif2uEw9wlUt6umjLr4Keg9K6xRPHmD8LGi+6p1A==", + "requires": { + "@emotion/memoize": "^0.8.0", + "@emotion/sheet": "^1.2.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "stylis": "4.0.13" + } + }, + "@emotion/hash": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.0.tgz", + "integrity": "sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==" + }, + "@emotion/is-prop-valid": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.0.tgz", + "integrity": "sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==", + "requires": { + "@emotion/memoize": "^0.8.0" + } + }, + "@emotion/memoize": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.0.tgz", + "integrity": "sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==" + }, + "@emotion/react": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.10.0.tgz", + "integrity": "sha512-K6z9zlHxxBXwN8TcpwBKcEsBsOw4JWCCmR+BeeOWgqp8GIU1yA2Odd41bwdAAr0ssbQrbJbVnndvv7oiv1bZeQ==", + "peer": true, + "requires": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.0", + "@emotion/cache": "^11.10.0", + "@emotion/serialize": "^1.1.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "hoist-non-react-statics": "^3.3.1" + } + }, + "@emotion/serialize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.0.tgz", + "integrity": "sha512-F1ZZZW51T/fx+wKbVlwsfchr5q97iW8brAnXmsskz4d0hVB4O3M/SiA3SaeH06x02lSNzkkQv+n3AX3kCXKSFA==", + "requires": { + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/unitless": "^0.8.0", + "@emotion/utils": "^1.2.0", + "csstype": "^3.0.2" + } + }, + "@emotion/sheet": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.0.tgz", + "integrity": "sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w==" + }, + "@emotion/styled": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.10.0.tgz", + "integrity": "sha512-V9oaEH6V4KePeQpgUE83i8ht+4Ri3E8Djp/ZPJ4DQlqWhSKITvgzlR3/YQE2hdfP4Jw3qVRkANJz01LLqK9/TA==", + "requires": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.0", + "@emotion/is-prop-valid": "^1.2.0", + "@emotion/serialize": "^1.1.0", + "@emotion/utils": "^1.2.0" + } + }, + "@emotion/unitless": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.0.tgz", + "integrity": "sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==" + }, + "@emotion/utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.0.tgz", + "integrity": "sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==" + }, + "@emotion/weak-memoize": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.0.tgz", + "integrity": "sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==" + }, + "@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "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" + } + }, + "@fontsource/roboto": { + "version": "4.5.7", + "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.7.tgz", + "integrity": "sha512-m57UMER23Mk6Drg9OjtHW1Y+0KPGyZfE5XJoPTOsLARLar6013kJj4X2HICt+iFLJqIgTahA/QAvSn9lwF1EEw==" + }, + "@humanwhocodes/config-array": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", + "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "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.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@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==" + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + }, + "@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, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@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==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@lezer/common": { + "version": "0.15.12", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.12.tgz", + "integrity": "sha512-edfwCxNLnzq5pBA/yaIhwJ3U3Kz8VAUOTRg0hhxaizaI1N+qxV7EXDv/kLCkLeq2RzSFvxexlaj5Mzfn2kY0Ig==", + "dev": true + }, + "@lezer/lr": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-0.15.8.tgz", + "integrity": "sha512-bM6oE6VQZ6hIFxDNKk8bKPa14hqFrV07J/vHGOeiAbJReIaQXmkVb6xQu4MR+JBTLa5arGRyAAjJe1qaQt3Uvg==", + "dev": true, + "requires": { + "@lezer/common": "^0.15.0" + } + }, + "@lmdb/lmdb-darwin-arm64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-2.5.2.tgz", + "integrity": "sha512-+F8ioQIUN68B4UFiIBYu0QQvgb9FmlKw2ctQMSBfW2QBrZIxz9vD9jCGqTCPqZBRbPHAS/vG1zSXnKqnS2ch/A==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-darwin-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-x64/-/lmdb-darwin-x64-2.5.2.tgz", + "integrity": "sha512-KvPH56KRLLx4KSfKBx0m1r7GGGUMXm0jrKmNE7plbHlesZMuPJICtn07HYgQhj1LNsK7Yqwuvnqh1QxhJnF1EA==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-arm": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm/-/lmdb-linux-arm-2.5.2.tgz", + "integrity": "sha512-5kQAP21hAkfW5Bl+e0P57dV4dGYnkNIpR7f/GAh6QHlgXx+vp/teVj4PGRZaKAvt0GX6++N6hF8NnGElLDuIDw==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-arm64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm64/-/lmdb-linux-arm64-2.5.2.tgz", + "integrity": "sha512-aLl89VHL/wjhievEOlPocoefUyWdvzVrcQ/MHQYZm2JfV1jUsrbr/ZfkPPUFvZBf+VSE+Q0clWs9l29PCX1hTQ==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-x64/-/lmdb-linux-x64-2.5.2.tgz", + "integrity": "sha512-xUdUfwDJLGjOUPH3BuPBt0NlIrR7f/QHKgu3GZIXswMMIihAekj2i97oI0iWG5Bok/b+OBjHPfa8IU9velnP/Q==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-win32-x64": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.5.2.tgz", + "integrity": "sha512-zrBczSbXKxEyK2ijtbRdICDygRqWSRPpZMN5dD1T8VMEW5RIhIbwFWw2phDRXuBQdVDpSjalCIUMWMV2h3JaZA==", + "dev": true, + "optional": true + }, + "@mischnic/json-sourcemap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@mischnic/json-sourcemap/-/json-sourcemap-0.1.0.tgz", + "integrity": "sha512-dQb3QnfNqmQNYA4nFSN/uLaByIic58gOXq4Y4XqLOWmOrw73KmJPt/HLyG0wvn1bnR6mBKs/Uwvkh+Hns1T0XA==", + "dev": true, + "requires": { + "@lezer/common": "^0.15.7", + "@lezer/lr": "^0.15.4", + "json5": "^2.2.1" + } + }, + "@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-2.1.2.tgz", + "integrity": "sha512-TyVLn3S/+ikMDsh0gbKv2YydKClN8HaJDDpONlaZR+LVJmsxLFUgA+O7zu59h9+f9gX1aj/ahw9wqa6rosmrYQ==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-2.1.2.tgz", + "integrity": "sha512-YPXtcVkhmVNoMGlqp81ZHW4dMxK09msWgnxtsDpSiZwTzUBG2N+No2bsr7WMtBKCVJMSD6mbAl7YhKUqkp/Few==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-2.1.2.tgz", + "integrity": "sha512-42R4MAFeIeNn+L98qwxAt360bwzX2Kf0ZQkBBucJ2Ircza3asoY4CDbgiu9VWklq8gWJVSJSJBwDI+c/THiWkA==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-2.1.2.tgz", + "integrity": "sha512-vHZ2JiOWF2+DN9lzltGbhtQNzDo8fKFGrf37UJrgqxU0yvtERrzUugnfnX1wmVfFhSsF8OxrfqiNOUc5hko1Zg==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-2.1.2.tgz", + "integrity": "sha512-RjRoRxg7Q3kPAdUSC5EUUPlwfMkIVhmaRTIe+cqHbKrGZ4M6TyCA/b5qMaukQ/1CHWrqYY2FbKOAU8Hg0pQFzg==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-2.1.2.tgz", + "integrity": "sha512-rIZVR48zA8hGkHIK7ED6+ZiXsjRCcAVBJbm8o89OKAMTmEAQ2QvoOxoiu3w2isAaWwzgtQIOFIqHwvZDyLKCvw==", + "dev": true, + "optional": true + }, + "@mui/base": { + "version": "5.0.0-alpha.92", + "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.92.tgz", + "integrity": "sha512-ZgnSLrTXL4iUdLQhjp01dAOTQPQlnwrqjZRwDT3E6LZXEYn6cMv1MY6LZkWcF/zxrUnyasnsyMAgZ5d8AXS7bA==", + "requires": { + "@babel/runtime": "^7.17.2", + "@emotion/is-prop-valid": "^1.1.3", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "@popperjs/core": "^2.11.5", + "clsx": "^1.2.1", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "dependencies": { + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + } + } + }, + "@mui/icons-material": { + "version": "5.8.4", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.8.4.tgz", + "integrity": "sha512-9Z/vyj2szvEhGWDvb+gG875bOGm8b8rlHBKOD1+nA3PcgC3fV6W1AU6pfOorPeBfH2X4mb9Boe97vHvaSndQvA==", + "requires": { + "@babel/runtime": "^7.17.2" + } + }, + "@mui/material": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.9.3.tgz", + "integrity": "sha512-idDJajnfnDr+2pI6h2tzWtWoZJmVHNk6aSjISirMuVOGy0ugWpsCE+KW4++GS7aTCujXm9+cl5bWAyXvGjiPIQ==", + "requires": { + "@babel/runtime": "^7.17.2", + "@mui/base": "5.0.0-alpha.92", + "@mui/system": "^5.9.3", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "@types/react-transition-group": "^4.4.5", + "clsx": "^1.2.1", + "csstype": "^3.1.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" + }, + "dependencies": { + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + } + } + }, + "@mui/private-theming": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.9.3.tgz", + "integrity": "sha512-Ys3WO39WqoGciGX9k5AIi/k2zJhlydv4FzlEEwtw9OqdMaV0ydK/TdZekKzjP9sTI/JcdAP3H5DWtUaPLQJjWg==", + "requires": { + "@babel/runtime": "^7.17.2", + "@mui/utils": "^5.9.3", + "prop-types": "^15.8.1" + } + }, + "@mui/styled-engine": { + "version": "5.8.7", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.8.7.tgz", + "integrity": "sha512-tVqtowjbYmiRq+qcqXK731L9eWoL9H8xTRhuTgaDGKdch1zlt4I2UwInUe1w2N9N/u3/jHsFbLcl1Un3uOwpQg==", + "requires": { + "@babel/runtime": "^7.17.2", + "@emotion/cache": "^11.9.3", + "csstype": "^3.1.0", + "prop-types": "^15.8.1" + } + }, + "@mui/system": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.9.3.tgz", + "integrity": "sha512-EXQV2POwncstHLYII+G4VSYdEFun1TjBbQSBDK76DbIkug8nPjtjAZ+3Kgk3/NoFIigW+vQ9cDVUZtlbRH6YMQ==", + "requires": { + "@babel/runtime": "^7.17.2", + "@mui/private-theming": "^5.9.3", + "@mui/styled-engine": "^5.8.7", + "@mui/types": "^7.1.5", + "@mui/utils": "^5.9.3", + "clsx": "^1.2.1", + "csstype": "^3.1.0", + "prop-types": "^15.8.1" + } + }, + "@mui/types": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.1.5.tgz", + "integrity": "sha512-HnRXrxgHJYJcT8ZDdDCQIlqk0s0skOKD7eWs9mJgBUu70hyW4iA6Kiv3yspJR474RFH8hysKR65VVSzUSzkuwA==", + "requires": {} + }, + "@mui/utils": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.9.3.tgz", + "integrity": "sha512-l0N5bcrenE9hnwZ/jPecpIRqsDFHkPXoFUcmkgysaJwVZzJ3yQkGXB47eqmXX5yyGrSc6HksbbqXEaUya+siew==", + "requires": { + "@babel/runtime": "^7.17.2", + "@types/prop-types": "^15.7.5", + "@types/react-is": "^16.7.1 || ^17.0.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "dependencies": { + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + } + } + }, + "@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" + } + }, + "@parcel/bundler-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/bundler-default/-/bundler-default-2.7.0.tgz", + "integrity": "sha512-PU5MtWWhc+dYI9x8mguYnm9yiG6TkI7niRpxgJgtqAyGHuEyNXVBQQ0X+qyOF4D9LdankBf8uNN18g31IET2Zg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/cache": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/cache/-/cache-2.7.0.tgz", + "integrity": "sha512-JlXNoZXcWzLKdDlfeF3dIj5Vtel5T9vtdBN72PJ+cjC4qNHk4Uwvc5sfOBELuibGN0bVu2bwY9nUgSwCiB1iIA==", + "dev": true, + "requires": { + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/utils": "2.7.0", + "lmdb": "2.5.2" + } + }, + "@parcel/codeframe": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/codeframe/-/codeframe-2.7.0.tgz", + "integrity": "sha512-UTKx0jejJmmO1dwTHSJuRgrO8N6PMlkxRT6sew8N6NC3Bgv6pu0EbO+RtlWt/jCvzcdLOPdIoTzj4MMZvgcMYg==", + "dev": true, + "requires": { + "chalk": "^4.1.0" + } + }, + "@parcel/compressor-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/compressor-raw/-/compressor-raw-2.7.0.tgz", + "integrity": "sha512-SCXwnOOQT6EmpusBsYWNQ/RFri+2JnKuE0gMSf2dROl2xbererX45FYzeDplWALCKAdjMNDpFwU+FyMYoVZSCQ==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0" + } + }, + "@parcel/config-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/config-default/-/config-default-2.7.0.tgz", + "integrity": "sha512-ZzsLr97AYrz8c9k6qn3DlqPzifi3vbP7q3ynUrAFxmt0L4+K0H9N508ZkORYmCgaFjLIQ8Y3eWpwCJ0AewPNIg==", + "dev": true, + "requires": { + "@parcel/bundler-default": "2.7.0", + "@parcel/compressor-raw": "2.7.0", + "@parcel/namer-default": "2.7.0", + "@parcel/optimizer-css": "2.7.0", + "@parcel/optimizer-htmlnano": "2.7.0", + "@parcel/optimizer-image": "2.7.0", + "@parcel/optimizer-svgo": "2.7.0", + "@parcel/optimizer-terser": "2.7.0", + "@parcel/packager-css": "2.7.0", + "@parcel/packager-html": "2.7.0", + "@parcel/packager-js": "2.7.0", + "@parcel/packager-raw": "2.7.0", + "@parcel/packager-svg": "2.7.0", + "@parcel/reporter-dev-server": "2.7.0", + "@parcel/resolver-default": "2.7.0", + "@parcel/runtime-browser-hmr": "2.7.0", + "@parcel/runtime-js": "2.7.0", + "@parcel/runtime-react-refresh": "2.7.0", + "@parcel/runtime-service-worker": "2.7.0", + "@parcel/transformer-babel": "2.7.0", + "@parcel/transformer-css": "2.7.0", + "@parcel/transformer-html": "2.7.0", + "@parcel/transformer-image": "2.7.0", + "@parcel/transformer-js": "2.7.0", + "@parcel/transformer-json": "2.7.0", + "@parcel/transformer-postcss": "2.7.0", + "@parcel/transformer-posthtml": "2.7.0", + "@parcel/transformer-raw": "2.7.0", + "@parcel/transformer-react-refresh-wrap": "2.7.0", + "@parcel/transformer-svg": "2.7.0" + } + }, + "@parcel/config-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/config-webextension/-/config-webextension-2.7.0.tgz", + "integrity": "sha512-5OBhrRfsamI5oInv2APMgz9+qSqDhb07iR98qhRMYt2S34/Npj08vrUtqr2nZiiA5ypThT+FRtRjYAtiHPQMSQ==", + "dev": true, + "requires": { + "@parcel/config-default": "2.7.0", + "@parcel/packager-webextension": "2.7.0", + "@parcel/runtime-webextension": "2.7.0", + "@parcel/transformer-raw": "2.7.0", + "@parcel/transformer-webextension": "2.7.0" + } + }, + "@parcel/core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/core/-/core-2.7.0.tgz", + "integrity": "sha512-7yKZUdh314Q/kU/9+27ZYTfcnXS6VYHuG+iiUlIohnvUUybxLqVJhdMU9Q+z2QcPka1IdJWz4K4Xx0y6/4goyg==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/cache": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/graph": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "abortcontroller-polyfill": "^1.1.9", + "base-x": "^3.0.8", + "browserslist": "^4.6.6", + "clone": "^2.1.1", + "dotenv": "^7.0.0", + "dotenv-expand": "^5.1.0", + "json5": "^2.2.0", + "msgpackr": "^1.5.4", + "nullthrows": "^1.1.1", + "semver": "^5.7.1" + } + }, + "@parcel/css": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css/-/css-1.12.2.tgz", + "integrity": "sha512-Sa0PvZu5u877CupQA8IjEATqjJFynBfA7LxbcyutFe2LDCRSqB5Bm08jKFScyaz56qjZNIxZxXk2SApNkOvoAA==", + "dev": true, + "requires": { + "@parcel/css-darwin-arm64": "1.12.2", + "@parcel/css-darwin-x64": "1.12.2", + "@parcel/css-linux-arm-gnueabihf": "1.12.2", + "@parcel/css-linux-arm64-gnu": "1.12.2", + "@parcel/css-linux-arm64-musl": "1.12.2", + "@parcel/css-linux-x64-gnu": "1.12.2", + "@parcel/css-linux-x64-musl": "1.12.2", + "@parcel/css-win32-x64-msvc": "1.12.2", + "detect-libc": "^1.0.3" + } + }, + "@parcel/css-darwin-arm64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-darwin-arm64/-/css-darwin-arm64-1.12.2.tgz", + "integrity": "sha512-6VvsoYSltBiUh/uyfPzQ+I3DiTFN7tmRv6zm1LH98J7GGCDDhbYEtbQjjCs15ex6fVn1ORZK0JO+mMlsg1JwTA==", + "dev": true, + "optional": true + }, + "@parcel/css-darwin-x64": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-darwin-x64/-/css-darwin-x64-1.12.2.tgz", + "integrity": "sha512-3J0/LrDvt5vevOisnrE0q5mEcuiAY+K7OZwIv84SAnrbjlL5sshmIaaNzL869kb4thza+RClEj0mS5XTm1IUEw==", + "dev": true, + "optional": true + }, + "@parcel/css-linux-arm-gnueabihf": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm-gnueabihf/-/css-linux-arm-gnueabihf-1.12.2.tgz", + "integrity": "sha512-OsX7I3dhBvnxEbAH++08RFe7yhjRp33ulzrCvJTMOP9YkxEEJ8qId3sNzJBHIVQzHyTlPTnBRHbSDhU3TFe/eQ==", + "dev": true, + "optional": true + }, + "@parcel/css-linux-arm64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm64-gnu/-/css-linux-arm64-gnu-1.12.2.tgz", + "integrity": "sha512-R1Kqw+1Rsru9Q4+qvUEC6B8P21bpqhuF9rv8GmBmmnF1i2hMZ1JiY+uh/ej8IaRV0O3fAHeQGIyGBWx6qWDpcw==", + "dev": true, + "optional": true + }, + "@parcel/css-linux-arm64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-arm64-musl/-/css-linux-arm64-musl-1.12.2.tgz", + "integrity": "sha512-nwixgM4SEgPUQata9aAiJW0A5Q9ms+xim1tXT1i+91kOei4Fu2Wr2OuofMk+mlhbgmGKCTcu4gzMPReGxUhuRA==", + "dev": true, + "optional": true + }, + "@parcel/css-linux-x64-gnu": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-x64-gnu/-/css-linux-x64-gnu-1.12.2.tgz", + "integrity": "sha512-cJYVMHnQSGhDwQByyvjFZppjMBNlgxXl/R4cX5DwrQE0QZmK/42BYnMp92rvoprEG6LRyRoiGtCjyfYTPWajog==", + "dev": true, + "optional": true + }, + "@parcel/css-linux-x64-musl": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-linux-x64-musl/-/css-linux-x64-musl-1.12.2.tgz", + "integrity": "sha512-u9zdO/d831/74Tf+TdPUfaIuB9v6FD4Xz8UdWUDOXgQqaOlnJ9fAsAM39EkoWlMxPPljY3f4ay6irSe1a4XgSA==", + "dev": true, + "optional": true + }, + "@parcel/css-win32-x64-msvc": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@parcel/css-win32-x64-msvc/-/css-win32-x64-msvc-1.12.2.tgz", + "integrity": "sha512-kCAKr3vKqvPUv9oXBG3pGZQz5il3sEk35dpmTXFa/7eDNKR5XyLpiJs8JwWJTFfuUqroymDSXA1bCcjvNEYcAg==", + "dev": true, + "optional": true + }, + "@parcel/diagnostic": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/diagnostic/-/diagnostic-2.7.0.tgz", + "integrity": "sha512-pdq/cTwVoL0n8yuDCRXFRSQHVWdmmIXPt3R3iT4KtYDYvOrMT2dLPT79IMqQkhYPANW8GuL15n/WxRngfRdkug==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/events": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/events/-/events-2.7.0.tgz", + "integrity": "sha512-kQDwMKgZ1U4M/G17qeDYF6bW5kybluN6ajYPc7mZcrWg+trEI/oXi81GMFaMX0BSUhwhbiN5+/Vb2wiG/Sn6ig==", + "dev": true + }, + "@parcel/fs": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/fs/-/fs-2.7.0.tgz", + "integrity": "sha512-PU5fo4Hh8y03LZgemgVREttc0wyHQUNmsJCybxTB7EjJie2CqJRumo+DFppArlvdchLwJdc9em03yQV/GNWrEg==", + "dev": true, + "requires": { + "@parcel/fs-search": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/watcher": "^2.0.0", + "@parcel/workers": "2.7.0" + } + }, + "@parcel/fs-search": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/fs-search/-/fs-search-2.7.0.tgz", + "integrity": "sha512-K1Hv25bnRpwQVA15RvcRuB8ZhfclnCHA8N8L6w7Ul1ncSJDxCIkIAc5hAubYNNYW3kWjCC2SOaEgFKnbvMllEQ==", + "dev": true, + "requires": { + "detect-libc": "^1.0.3" + } + }, + "@parcel/graph": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/graph/-/graph-2.7.0.tgz", + "integrity": "sha512-Q6E94GS6q45PtsZh+m+gvFRp/N1Qopxhu2sxjcWsGs5iBd6IWn2oYLWOH5iVzEjWuYpW2HkB08lH6J50O63uOA==", + "dev": true, + "requires": { + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/hash": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/hash/-/hash-2.7.0.tgz", + "integrity": "sha512-k6bSKnIlPJMPU3yjQzfgfvF9zuJZGOAlJgzpL4BbWvdbE8BTdjzLcFn0Ujrtud94EgIkiXd22sC2HpCUWoHGdA==", + "dev": true, + "requires": { + "detect-libc": "^1.0.3", + "xxhash-wasm": "^0.4.2" + } + }, + "@parcel/logger": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/logger/-/logger-2.7.0.tgz", + "integrity": "sha512-qjMY/bYo38+o+OiIrTRldU9CwL1E7J72t+xkTP8QIcUxLWz5LYR0YbynZUVulmBSfqsykjjxCy4a+8siVr+lPw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0" + } + }, + "@parcel/markdown-ansi": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/markdown-ansi/-/markdown-ansi-2.7.0.tgz", + "integrity": "sha512-ipOX0D6FVZFEXeb/z8MnTMq2RQEIuaILY90olVIuHEFLHHfOPEn+RK3u13HA1ChF5/9E3cMD79tu6x9JL9Kqag==", + "dev": true, + "requires": { + "chalk": "^4.1.0" + } + }, + "@parcel/namer-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/namer-default/-/namer-default-2.7.0.tgz", + "integrity": "sha512-lIKMdsmi//7fepecNDYmJYzBlL91HifPsX03lJCdu1dC6q5fBs+gG0XjKKG7yPnSCw1qH/4m7drzt9+dRZYAHQ==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/node-resolver-core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/node-resolver-core/-/node-resolver-core-2.7.0.tgz", + "integrity": "sha512-5UJQHalqMxdhJIs2hhqQzFfQpF7+NAowsRq064lYtiRvcD8wMr3OOQ9wd1iazGpFSl4JKdT7BwDU9/miDJmanQ==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "semver": "^5.7.1" + } + }, + "@parcel/optimizer-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-css/-/optimizer-css-2.7.0.tgz", + "integrity": "sha512-IfnOMACqhcAclKyOW9X9JpsknB6OShk9OVvb8EvbDTKHJhQHNNmzE88OkSI/pS3ZVZP9Zj+nWcVHguV+kvDeiQ==", + "dev": true, + "requires": { + "@parcel/css": "^1.12.2", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1" + } + }, + "@parcel/optimizer-htmlnano": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-htmlnano/-/optimizer-htmlnano-2.7.0.tgz", + "integrity": "sha512-5QrGdWS5Hi4VXE3nQNrGqugmSXt68YIsWwKRAdarOxzyULSJS3gbCiQOXqIPRJobfZjnSIcdtkyxSiCUe1inIA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "htmlnano": "^2.0.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "svgo": "^2.4.0" + } + }, + "@parcel/optimizer-image": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-image/-/optimizer-image-2.7.0.tgz", + "integrity": "sha512-EnaXz5UjR67FUu0BEcqZTT9LsbB/iFAkkghCotbnbOuC5QQsloq6tw54TKU3y+R3qsjgUoMtGxPcGfVoXxZXYw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "detect-libc": "^1.0.3" + } + }, + "@parcel/optimizer-svgo": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-svgo/-/optimizer-svgo-2.7.0.tgz", + "integrity": "sha512-IO1JV4NpfP3V7FrhsqCcV8pDQIHraFi1/ZvEJyssITxjH49Im/txKlwMiQuZZryAPn8Xb8g395Muawuk6AK6sg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "svgo": "^2.4.0" + } + }, + "@parcel/optimizer-terser": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-terser/-/optimizer-terser-2.7.0.tgz", + "integrity": "sha512-07VZjIO8xsl2/WmS/qHI8lI/cpu47iS9eRpqwfZEEsdk1cfz50jhWkmFudHBxiHGMfcZ//1+DdaPg9RDBWZtZA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "terser": "^5.2.0" + } + }, + "@parcel/package-manager": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/package-manager/-/package-manager-2.7.0.tgz", + "integrity": "sha512-wmfSX1mRrTi8MeA4KrnPk/x7zGUsILCQmTo6lA4gygzAxDbM1pGuyFN8/Kt0y0SFO2lbljARtD/4an5qdotH+Q==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "semver": "^5.7.1" + } + }, + "@parcel/packager-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-css/-/packager-css-2.7.0.tgz", + "integrity": "sha512-44nzZwu+ssGuiFmYM6cf/Y4iChiUZ4DUzzpegnGlhXtKJKe4NHntxThJynuRZWKN2AAf48avApDpimg2jW0KDw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/packager-html": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-html/-/packager-html-2.7.0.tgz", + "integrity": "sha512-Zgqd7sdcY/UnR370GR0q2ilmEohUDXsO8A1F28QCJzIsR1iCB6KRUT74+pawfQ1IhXZLaaFLLYe0UWcfm0JeXg==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5" + } + }, + "@parcel/packager-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-js/-/packager-js-2.7.0.tgz", + "integrity": "sha512-wTRdM81PgRVDzWGXdWmqLwguWnTYWzhEDdjXpW2n8uMOu/CjHhMtogk65aaYk3GOnq6OBL/NsrmBiV/zKPj1vA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "globals": "^13.2.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/packager-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-raw/-/packager-raw-2.7.0.tgz", + "integrity": "sha512-jg2Zp8dI5VpIQlaeahXDCfrPN9m/DKht1NkR9P2CylMAwqCcc1Xc1RRiF0wfwcPZpPMpq1265n+4qnB7rjGBlA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0" + } + }, + "@parcel/packager-svg": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-svg/-/packager-svg-2.7.0.tgz", + "integrity": "sha512-EmJg3HpD6/xxKBjir/CdCKJZwI24iVfBuxRS9LUp3xHAIebOzVh1z6IN+i2Di5+NyRwfOFaLliL4uMa1zwbyCA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "posthtml": "^0.16.4" + } + }, + "@parcel/packager-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-webextension/-/packager-webextension-2.7.0.tgz", + "integrity": "sha512-HoGE/6S+beiFuLhYWUctA1UHtN1YIuTeqP3JitDwGEMz2iMaffajTP+8LNGqZjB3X+98rVYiNLdk0uEWUs70kw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/plugin": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/plugin/-/plugin-2.7.0.tgz", + "integrity": "sha512-qqgx+nnMn6/0lRc4lKbLGmhNtBiT93S2gFNB4Eb4Pfz/SxVYoW+fmml+KdfOSiZffWOAH5L6NwhyD7N8aSikzw==", + "dev": true, + "requires": { + "@parcel/types": "2.7.0" + } + }, + "@parcel/reporter-cli": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-cli/-/reporter-cli-2.7.0.tgz", + "integrity": "sha512-80gEODg8cnAmnxGVuaSVDo8JJ54P9AA2bHwSs1cIkHWlJ3BjDQb83H31bBHncJ5Kn5kQ/j+7WjlqHpTCiOR9PA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "chalk": "^4.1.0", + "term-size": "^2.2.1" + } + }, + "@parcel/reporter-dev-server": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-dev-server/-/reporter-dev-server-2.7.0.tgz", + "integrity": "sha512-ySuou5addK8fGue8aXzo536BaEjMujDrEc1xkp4TasInXHVcA98b+SYX5NAZTGob5CxKvZQ5ylhg77zW30B+iA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0" + } + }, + "@parcel/resolver-default": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/resolver-default/-/resolver-default-2.7.0.tgz", + "integrity": "sha512-v8TvWsbLK7/q7n4gv6OrYNbW18xUx4zKbVMGZb1u4yMhzEH4HFr1D9OeoTq3jk+ximAigds8B6triQbL5exF7A==", + "dev": true, + "requires": { + "@parcel/node-resolver-core": "2.7.0", + "@parcel/plugin": "2.7.0" + } + }, + "@parcel/runtime-browser-hmr": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-browser-hmr/-/runtime-browser-hmr-2.7.0.tgz", + "integrity": "sha512-PLbMLdclQeYsi2LkilZVGFV1n3y55G1jaBvby4ekedUZjMw3SWdMY2tDxgSDdFWfLCnYHJXdGUQSzGGi1kPzjA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0" + } + }, + "@parcel/runtime-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-js/-/runtime-js-2.7.0.tgz", + "integrity": "sha512-9/YUZTBNrSN2H6rbz/o1EOM0O7I3ZR/x9IDzxjJBD6Mi+0uCgCD02aedare/SNr1qgnbZZWmhpOzC+YgREcfLA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/runtime-react-refresh": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-react-refresh/-/runtime-react-refresh-2.7.0.tgz", + "integrity": "sha512-vDKO0rWqRzEpmvoZ4kkYUiSsTxT5NnH904BFPFxKI0wJCl6yEmPuEifmATo73OuYhP6jIP3Qfl1R4TtiDFPJ1Q==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "react-error-overlay": "6.0.9", + "react-refresh": "^0.9.0" + } + }, + "@parcel/runtime-service-worker": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-service-worker/-/runtime-service-worker-2.7.0.tgz", + "integrity": "sha512-uD2pAV0yV6+e7JaWH4KVPbG+zRCrxr/OACyS9tIh+Q/R1vRmh8zGM3yhdrcoiZ7tFOnM72vd6xY11eTrUsSVig==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/runtime-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-webextension/-/runtime-webextension-2.7.0.tgz", + "integrity": "sha512-+2gGOOR3HUJGdsr/tUsJjs9tvlOsp2rTgGKt77+s1lqU/DYxh/n6KCSy+7a2DYtnBtZxE6LQhX6g/p4C2hkmMg==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/source-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@parcel/source-map/-/source-map-2.1.0.tgz", + "integrity": "sha512-E7UOEIof2o89LrKk1agSLmwakjigmEdDp1ZaEdsLVEvq63R/bul4Ij5CT+0ZDcijGpl5tnTbQADY9EyYGtjYgQ==", + "dev": true, + "requires": { + "detect-libc": "^1.0.3" + } + }, + "@parcel/transformer-babel": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-babel/-/transformer-babel-2.7.0.tgz", + "integrity": "sha512-7iklDXXnKH1530+QbI+e4kIJ+Q1puA1ulRS10db3aUJMj5GnvXGDFwhSZ7+T1ps66QHO7cVO29VlbqiRDarH1Q==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "json5": "^2.2.0", + "nullthrows": "^1.1.1", + "semver": "^5.7.0" + } + }, + "@parcel/transformer-css": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-css/-/transformer-css-2.7.0.tgz", + "integrity": "sha512-J4EpWK9spQpXyNCmKK8Xnane0xW/1B/EAmfp7Fiv7g+5yUjY4ODf4KUugvE+Eb2gekPkhOKNHermO2KrX0/PFA==", + "dev": true, + "requires": { + "@parcel/css": "^1.12.2", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1" + } + }, + "@parcel/transformer-html": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-html/-/transformer-html-2.7.0.tgz", + "integrity": "sha512-wYJl5rn81W+Rlk9oQwDJcjoVsWVDKyeri84FzmlGXOsg0EYgnqOiG+3MDM8GeZjfuGe5fuoum4eqZeS0WdUHXw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + } + }, + "@parcel/transformer-image": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-image/-/transformer-image-2.7.0.tgz", + "integrity": "sha512-mhi9/R5/ULhCkL2COVIKhNFoLDiZwQgprdaTJr5fnODggVxEX5o7ebFV6KNLMTEkwZUJWoB1hL0ziI0++DtoFA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/transformer-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-js/-/transformer-js-2.7.0.tgz", + "integrity": "sha512-mzerR+D4rDomUSIk5RSTa2w+DXBdXUeQrpDO74WCDdpDi1lIl8ppFpqtmU7O6y6p8QsgkmS9b0g/vhcry6CJTA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/utils": "2.7.0", + "@parcel/workers": "2.7.0", + "@swc/helpers": "^0.4.2", + "browserslist": "^4.6.6", + "detect-libc": "^1.0.3", + "nullthrows": "^1.1.1", + "regenerator-runtime": "^0.13.7", + "semver": "^5.7.1" + } + }, + "@parcel/transformer-json": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-json/-/transformer-json-2.7.0.tgz", + "integrity": "sha512-RQjuxBpYOch+kr4a0zi77KJtOLTPYRM7iq4NN80zKnA0r0dwDUCxZBtaj2l0O0o3R4MMJnm+ncP+cB7XR7dZYA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "json5": "^2.2.0" + } + }, + "@parcel/transformer-postcss": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-postcss/-/transformer-postcss-2.7.0.tgz", + "integrity": "sha512-b6RskXBWf0MjpC9qjR2dQ1ZdRnlOiKYseG5CEovWCqM218RtdydFKz7jS+5Gxkb6qBtOG7zGPONXdPe+gTILcA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "clone": "^2.1.1", + "nullthrows": "^1.1.1", + "postcss-value-parser": "^4.2.0", + "semver": "^5.7.1" + } + }, + "@parcel/transformer-posthtml": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-posthtml/-/transformer-posthtml-2.7.0.tgz", + "integrity": "sha512-cP8YOiSynWJ1ycmBlhnnHeuQb2cwmklZ+BNyLUktj5p78kDy2de7VjX+dRNRHoW4H9OgEcSF4UEfDVVz5RYIhw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + } + }, + "@parcel/transformer-raw": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-raw/-/transformer-raw-2.7.0.tgz", + "integrity": "sha512-sDnItWCFSDez0izK1i5cgv+kXzZTbcJh4rNpVIgmE1kBLvAz608sqgcCkavb2wVJIvLesxYM+5G4p1CwkDlZ1g==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0" + } + }, + "@parcel/transformer-react-refresh-wrap": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-react-refresh-wrap/-/transformer-react-refresh-wrap-2.7.0.tgz", + "integrity": "sha512-1vRmIJzyBA1nIiXTAU6tZExq2FvJj/2F0ft6KDw8GYPv0KjmdiPo/PmaZ7JeSVOM6SdXQIQCbTmp1vkMP7DtkA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "react-refresh": "^0.9.0" + } + }, + "@parcel/transformer-svg": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-svg/-/transformer-svg-2.7.0.tgz", + "integrity": "sha512-ioER37zceuuE+K6ZrnjCyMUWEnv+63hIAFResc1OXxRhyt+7kzMz9ZqK0Mt6QMLwl1dxhkLmrU41n9IxzKZuSQ==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/plugin": "2.7.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^5.7.1" + } + }, + "@parcel/transformer-typescript-tsc": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-typescript-tsc/-/transformer-typescript-tsc-2.7.0.tgz", + "integrity": "sha512-s7poL/TQk+/zg09GKgxp7uErzzgJe+afuzgngqlOjsP0nXUAthQvtU+RwozOKSCNBh0/RwyD5gokp0SCQtIX+A==", + "dev": true, + "requires": { + "@parcel/plugin": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/ts-utils": "2.7.0" + } + }, + "@parcel/transformer-webextension": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-webextension/-/transformer-webextension-2.7.0.tgz", + "integrity": "sha512-r7mQJ91oVnL9gMvqURlaq4ru95/685utOc51QaOfSCYjuEbosvPUIDXDRAXFVLea56iLP5nIUsrUGtycE6zsQg==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/plugin": "2.7.0", + "@parcel/utils": "2.7.0", + "content-security-policy-parser": "^0.3.0" + } + }, + "@parcel/ts-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/ts-utils/-/ts-utils-2.7.0.tgz", + "integrity": "sha512-hxgWu9p9+zo9OvllYy12DRrAEyAGGLQysI6PyNvYvsZSmb7sQg9YQ7spD1QmWIQUC1H6BkyzQsowpK0hvPK1xg==", + "dev": true, + "requires": { + "nullthrows": "^1.1.1" + } + }, + "@parcel/types": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/types/-/types-2.7.0.tgz", + "integrity": "sha512-+dhXVUnseTCpJvBTGMp0V6X13z6O/A/+CUtwEpMGZ8XSmZ4Gk44GvaTiBOp0bJpWG4fvCKp+UmC8PYbrDiiziw==", + "dev": true, + "requires": { + "@parcel/cache": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/source-map": "^2.0.0", + "@parcel/workers": "2.7.0", + "utility-types": "^3.10.0" + } + }, + "@parcel/utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/utils/-/utils-2.7.0.tgz", + "integrity": "sha512-jNZ5bIGg1r1RDRKi562o4kuVwnz+XJ2Ie3b0Zwrqwvgfj6AbRFIKzDd+h85dWWmcDYzKUbHp11u6VJl1u8Vapg==", + "dev": true, + "requires": { + "@parcel/codeframe": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/hash": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/markdown-ansi": "2.7.0", + "@parcel/source-map": "^2.0.0", + "chalk": "^4.1.0" + } + }, + "@parcel/watcher": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.0.5.tgz", + "integrity": "sha512-x0hUbjv891omnkcHD7ZOhiyyUqUUR6MNjq89JhEI3BxppeKWAm6NPQsqqRrAkCJBogdT/o/My21sXtTI9rJIsw==", + "dev": true, + "requires": { + "node-addon-api": "^3.2.1", + "node-gyp-build": "^4.3.0" + } + }, + "@parcel/workers": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@parcel/workers/-/workers-2.7.0.tgz", + "integrity": "sha512-99VfaOX+89+RaoTSyH9ZQtkMBFZBFMvJmVJ/GeJT6QCd2wtKBStTHlaSnQOkLD/iRjJCNwV2xpZmm8YkTwV+hg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/types": "2.7.0", + "@parcel/utils": "2.7.0", + "chrome-trace-event": "^1.0.2", + "nullthrows": "^1.1.1" + } + }, + "@popperjs/core": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", + "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==" + }, + "@swc/helpers": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.3.tgz", + "integrity": "sha512-6JrF+fdUK2zbGpJIlN7G3v966PQjyx/dPt1T9km2wj+EUBqgrxCk3uX4Kct16MIm9gGxfKRcfax2hVf5jvlTzA==", + "dev": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true + }, + "@types/chrome": { + "version": "0.0.193", + "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.193.tgz", + "integrity": "sha512-R8C84oqvk8A8C8G1viBd8qLpDr86Y/jwD+KLgzUekbIT9RGds6a9GnlQyg8P7ltnGogTMHkiEQK0ZlcrvTeo3Q==", + "dev": true, + "requires": { + "@types/filesystem": "*", + "@types/har-format": "*" + } + }, + "@types/filesystem": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz", + "integrity": "sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==", + "dev": true, + "requires": { + "@types/filewriter": "*" + } + }, + "@types/filewriter": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz", + "integrity": "sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==", + "dev": true + }, + "@types/firefox-webext-browser": { + "version": "94.0.1", + "resolved": "https://registry.npmjs.org/@types/firefox-webext-browser/-/firefox-webext-browser-94.0.1.tgz", + "integrity": "sha512-I6iHRQJSTZ+gYt2IxdH2RRAMvcUyK8v5Ig7fHQR0IwUNYP7hz9+cziBVIKxLCO6XI7fiyRsNOWObfl3/4Js2Lg==", + "dev": true + }, + "@types/har-format": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.8.tgz", + "integrity": "sha512-OP6L9VuZNdskgNN3zFQQ54ceYD8OLq5IbqO4VK91ORLfOm7WdT/CiT/pHEBSQEqCInJ2y3O6iCm/zGtPElpgJQ==", + "dev": true + }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "@types/node": { + "version": "18.6.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.4.tgz", + "integrity": "sha512-I4BD3L+6AWiUobfxZ49DlU43gtI+FTHSv9pE2Zekg6KjMpre4ByusaljW3vYSLJrvQ1ck1hUaeVu8HVlY3vzHg==", + "dev": true + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "@types/react": { + "version": "18.0.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.15.tgz", + "integrity": "sha512-iz3BtLuIYH1uWdsv6wXYdhozhqj20oD4/Hk2DNXIn1kFsmp9x8d9QB6FnPhfkbhd2PgEONt9Q1x/ebkwjfFLow==", + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "@types/react-dom": { + "version": "18.0.6", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz", + "integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==", + "dev": true, + "requires": { + "@types/react": "*" + } + }, + "@types/react-is": { + "version": "17.0.3", + "resolved": "https://registry.npmjs.org/@types/react-is/-/react-is-17.0.3.tgz", + "integrity": "sha512-aBTIWg1emtu95bLTLx0cpkxwGW3ueZv71nE2YFBpL8k/z5czEW8yYpOo8Dp+UUAFAtKwNaOsh/ioSeQnWlZcfw==", + "requires": { + "@types/react": "*" + } + }, + "@types/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-juKD/eiSM3/xZYzjuzH6ZwpP+/lejltmiS3QEzV/vmb/Q8+HfDmxu+Baga8UEMGBqV88Nbg4l2hY/K2DkyaLLA==", + "requires": { + "@types/react": "*" + } + }, + "@types/scheduler": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", + "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==" + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.32.0.tgz", + "integrity": "sha512-CHLuz5Uz7bHP2WgVlvoZGhf0BvFakBJKAD/43Ty0emn4wXWv5k01ND0C0fHcl/Im8Td2y/7h44E9pca9qAu2ew==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/type-utils": "5.32.0", + "@typescript-eslint/utils": "5.32.0", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/parser": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.32.0.tgz", + "integrity": "sha512-IxRtsehdGV9GFQ35IGm5oKKR2OGcazUoiNBxhRV160iF9FoyuXxjY+rIqs1gfnd+4eL98OjeGnMpE7RF/NBb3A==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/typescript-estree": "5.32.0", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.32.0.tgz", + "integrity": "sha512-KyAE+tUON0D7tNz92p1uetRqVJiiAkeluvwvZOqBmW9z2XApmk5WSMV9FrzOroAcVxJZB3GfUwVKr98Dr/OjOg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/visitor-keys": "5.32.0" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.32.0.tgz", + "integrity": "sha512-0gSsIhFDduBz3QcHJIp3qRCvVYbqzHg8D6bHFsDMrm0rURYDj+skBK2zmYebdCp+4nrd9VWd13egvhYFJj/wZg==", + "dev": true, + "requires": { + "@typescript-eslint/utils": "5.32.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.32.0.tgz", + "integrity": "sha512-EBUKs68DOcT/EjGfzywp+f8wG9Zw6gj6BjWu7KV/IYllqKJFPlZlLSYw/PTvVyiRw50t6wVbgv4p9uE2h6sZrQ==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.32.0.tgz", + "integrity": "sha512-ZVAUkvPk3ITGtCLU5J4atCw9RTxK+SRc6hXqLtllC2sGSeMFWN+YwbiJR9CFrSFJ3w4SJfcWtDwNb/DmUIHdhg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/visitor-keys": "5.32.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.32.0.tgz", + "integrity": "sha512-W7lYIAI5Zlc5K082dGR27Fczjb3Q57ECcXefKU/f0ajM5ToM0P+N9NmJWip8GmGu/g6QISNT+K6KYB+iSHjXCQ==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.32.0", + "@typescript-eslint/types": "5.32.0", + "@typescript-eslint/typescript-estree": "5.32.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.32.0.tgz", + "integrity": "sha512-S54xOHZgfThiZ38/ZGTgB2rqx51CMJ5MCfVT2IplK4Q7hgzGfe0nLzLCcenDnc/cSjP568hdeKfeDcBgqNHD/g==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.32.0", + "eslint-visitor-keys": "^3.3.0" + } + }, + "abortcontroller-polyfill": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", + "integrity": "sha512-zetDJxd89y3X99Kvo4qFx8GKlt6GsvN3UcRZHwU6iFA/0KiOmhkTVhe8oRoTBiTVPZu09x3vCra47+w8Yz1+2Q==", + "dev": true + }, + "acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "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": "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==" + }, + "array-includes": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + } + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "array.prototype.flatmap": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz", + "integrity": "sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.2", + "es-shim-unscopables": "^1.0.0" + } + }, + "asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + }, + "babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "requires": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "dependencies": { + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^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 + }, + "base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true + }, + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "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" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.21.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", + "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", + "requires": { + "caniuse-lite": "^1.0.30001370", + "electron-to-chromium": "^1.4.202", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.5" + } + }, + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "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 + }, + "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==" + }, + "caniuse-lite": { + "version": "1.0.30001374", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001374.tgz", + "integrity": "sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==" + }, + "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" + } + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true + }, + "clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" + }, + "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 + }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "content-security-policy-parser": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/content-security-policy-parser/-/content-security-policy-parser-0.3.0.tgz", + "integrity": "sha512-ub90B4t9EfDPv3DCH7vEwGe4tVMkSm4Ow1HsmvmEQwinDfpTEDmkuJVa5WpzHDTt2bUirNRZuzL6S0msASlJhg==", + "dev": true + }, + "convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "requires": { + "safe-buffer": "~5.1.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "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" + } + }, + "css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "requires": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + } + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "requires": { + "css-tree": "^1.1.2" + } + }, + "csstype": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", + "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==" + }, + "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" + } + }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "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" + } + }, + "dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "requires": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "dependencies": { + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + } + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dotenv": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", + "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", + "dev": true + }, + "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==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.4.211", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.211.tgz", + "integrity": "sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A==" + }, + "entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==" + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", + "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "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.1", + "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.4", + "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.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "regexp.prototype.flags": "^1.4.3", + "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" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + }, + "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==" + }, + "eslint": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.21.0.tgz", + "integrity": "sha512-/XJ1+Qurf1T9G2M5IHrsjp+xrGT73RZf23xA1z5wB1ZzzEAWSZKvRwhWxTFp1rvkvCfwcvAUNAP31bhKTTGfDA==", + "dev": true, + "requires": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "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.3.3", + "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", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "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", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "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" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "eslint-config-prettier": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", + "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "dev": true, + "requires": {} + }, + "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.30.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.30.1.tgz", + "integrity": "sha512-NbEvI9jtqO46yJA3wcRF9Mo0lF9T/jhdHqhCHXiXtD+Zcb98812wvokjWpU7Q4QH5edo6dmqrukxVvWWXHlsUg==", + "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" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "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": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "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.3.3", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz", + "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==", + "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" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "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" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "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-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "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" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==" + }, + "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.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "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 + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "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" + } + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "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==", + "peer": true + }, + "get-intrinsic": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", + "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "get-port": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-4.2.0.tgz", + "integrity": "sha512-/b3jarXkH8KJoOMQc3uVGHASwGLPq3gSFJ7tgJm2diza+bydJPTGOibin2steecKeOylE8oY2JERlVWkAJO6yw==", + "dev": true + }, + "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": "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" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "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==", + "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": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "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" + } + }, + "hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "peer": true, + "requires": { + "react-is": "^16.7.0" + } + }, + "htmlnano": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/htmlnano/-/htmlnano-2.0.2.tgz", + "integrity": "sha512-+ZrQFS4Ub+zd+/fWwfvoYCEGNEa0/zrpys6CyXxvZDwtL7Pl+pOtRkiujyvBQ7Lmfp7/iEPxtOFgxWA16Gkj3w==", + "dev": true, + "requires": { + "cosmiconfig": "^7.0.1", + "posthtml": "^0.16.5", + "timsort": "^0.3.0" + } + }, + "htmlparser2": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", + "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.2", + "domutils": "^2.8.0", + "entities": "^3.0.1" + } + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "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==" + }, + "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-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "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.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "dev": true + }, + "is-core-module": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", + "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "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-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-json/-/is-json-2.0.1.tgz", + "integrity": "sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==", + "dev": true + }, + "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": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "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-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" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "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==" + }, + "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" + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "peer": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "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.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + }, + "jsx-ast-utils": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.2.tgz", + "integrity": "sha512-4ZCADZHRkno244xlNnn4AOG6sRQ7iBZ5BbgZ4vW4y5IZw7cVUD1PPeblm1xx/nfmMxPdt/LHsXZW8z/j58+l9Q==", + "dev": true, + "requires": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.2" + } + }, + "jwt-decode": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", + "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" + }, + "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" + } + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "linkify-it": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz", + "integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==", + "requires": { + "uc.micro": "^1.0.1" + } + }, + "lmdb": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/lmdb/-/lmdb-2.5.2.tgz", + "integrity": "sha512-V5V5Xa2Hp9i2XsbDALkBTeHXnBXh/lEmk9p22zdr7jtuOIY9TGhjK6vAvTpOOx9IKU4hJkRWZxn/HsvR1ELLtA==", + "dev": true, + "requires": { + "@lmdb/lmdb-darwin-arm64": "2.5.2", + "@lmdb/lmdb-darwin-x64": "2.5.2", + "@lmdb/lmdb-linux-arm": "2.5.2", + "@lmdb/lmdb-linux-arm64": "2.5.2", + "@lmdb/lmdb-linux-x64": "2.5.2", + "@lmdb/lmdb-win32-x64": "2.5.2", + "msgpackr": "^1.5.4", + "node-addon-api": "^4.3.0", + "node-gyp-build-optional-packages": "5.0.3", + "ordered-binary": "^1.2.4", + "weak-lru-cache": "^1.2.2" + }, + "dependencies": { + "node-addon-api": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", + "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", + "dev": true + } + } + }, + "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.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" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "markdown-it": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.1.tgz", + "integrity": "sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==", + "requires": { + "argparse": "^2.0.1", + "entities": "~3.0.1", + "linkify-it": "^4.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "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" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "msgpackr": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.6.2.tgz", + "integrity": "sha512-bqSQ0DYJbXbrJcrZFmMygUZmqQiDfI2ewFVWcrZY12w5XHWtPuW4WppDT/e63Uu311ajwkRRXSoF0uILroBeTA==", + "dev": true, + "requires": { + "msgpackr-extract": "^2.0.2" + } + }, + "msgpackr-extract": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-2.1.2.tgz", + "integrity": "sha512-cmrmERQFb19NX2JABOGtrKdHMyI6RUyceaPBQ2iRz9GnDkjBWFjNJC0jyyoOfZl2U/LZE3tQCCQc4dlRyA8mcA==", + "dev": true, + "optional": true, + "requires": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-arm": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-linux-x64": "2.1.2", + "@msgpackr-extract/msgpackr-extract-win32-x64": "2.1.2", + "node-gyp-build-optional-packages": "5.0.3" + } + }, + "nanoid": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz", + "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==" + }, + "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-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", + "dev": true + }, + "node-gyp-build": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", + "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "dev": true + }, + "node-gyp-build-optional-packages": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.3.tgz", + "integrity": "sha512-k75jcVzk5wnnc/FMxsf4udAoTEUv2jY3ycfdSd3yWu6Cnd1oee6/CfZJApyscA4FJOmdoixWwiwOyf16RzD5JA==", + "dev": true + }, + "node-releases": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", + "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.3", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.3.tgz", + "integrity": "sha512-ZFJnX3zltyjcYJL0RoCJuzb+11zWGyaDbjgxZbdV7rFEcHQuYxrZqhow67aA7xpes6LhojyFDaBKAFfogQrikA==", + "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.5", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", + "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, + "object.fromentries": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.5.tgz", + "integrity": "sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, + "object.hasown": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.1.tgz", + "integrity": "sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==", + "dev": true, + "requires": { + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, + "object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, + "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" + } + }, + "openpgp": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.5.0.tgz", + "integrity": "sha512-SpwcJnxrK9Y0HRM6KxSFqkAEOSWEabCH/c8dII/+y2e5f6KvuDG5ZE7JXaPBaVJNE4VUZZeTphxXDoZD0KOHrw==", + "requires": { + "asn1.js": "^5.0.0" + } + }, + "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" + } + }, + "ordered-binary": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.3.0.tgz", + "integrity": "sha512-knIeYepTI6BDAzGxqFEDGtI/iGqs57H32CInAIxEvAHG46vk1Di0CEpyc1A7iY39B1mfik3g3KLYwOTNnnMHLA==", + "dev": true + }, + "orderedmap": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.0.tgz", + "integrity": "sha512-/pIFexOm6S70EPdznemIz3BQZoJ4VTFrhqzu0ACBqBgeLsLxq8e6Jim63ImIfwW/zAD1AlXpRMlOv3aghmo4dA==" + }, + "os-shim": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/os-shim/-/os-shim-0.1.3.tgz", + "integrity": "sha512-jd0cvB8qQ5uVt0lvCIexBaROw1KyKm5sbulg2fWOHjETisuCzWyt+eTZKEMs8v6HwzoGs8xik26jg7eCM6pS+A==", + "dev": true + }, + "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" + } + }, + "parcel": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/parcel/-/parcel-2.7.0.tgz", + "integrity": "sha512-pRYwnivwtNP0tip8xYSo4zCB0XhLt7/gJzP1p8OovCqkmFjG9VG+GW9TcAKqMIo0ovEa9tT+/s6gY1Qy+BONGQ==", + "dev": true, + "requires": { + "@parcel/config-default": "2.7.0", + "@parcel/core": "2.7.0", + "@parcel/diagnostic": "2.7.0", + "@parcel/events": "2.7.0", + "@parcel/fs": "2.7.0", + "@parcel/logger": "2.7.0", + "@parcel/package-manager": "2.7.0", + "@parcel/reporter-cli": "2.7.0", + "@parcel/reporter-dev-server": "2.7.0", + "@parcel/utils": "2.7.0", + "chalk": "^4.1.0", + "commander": "^7.0.0", + "get-port": "^4.2.0", + "v8-compile-cache": "^2.0.0" + } + }, + "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==", + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "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==" + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "posthtml": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.16.6.tgz", + "integrity": "sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==", + "dev": true, + "requires": { + "posthtml-parser": "^0.11.0", + "posthtml-render": "^3.0.0" + }, + "dependencies": { + "posthtml-parser": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.11.0.tgz", + "integrity": "sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==", + "dev": true, + "requires": { + "htmlparser2": "^7.1.1" + } + } + } + }, + "posthtml-parser": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.10.2.tgz", + "integrity": "sha512-PId6zZ/2lyJi9LiKfe+i2xv57oEjJgWbsHGGANwos5AvdQp98i6AtamAl8gzSVFGfQ43Glb5D614cvZf012VKg==", + "dev": true, + "requires": { + "htmlparser2": "^7.1.1" + } + }, + "posthtml-render": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-3.0.0.tgz", + "integrity": "sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==", + "dev": true, + "requires": { + "is-json": "^2.0.1" + } + }, + "pre-commit": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/pre-commit/-/pre-commit-1.2.2.tgz", + "integrity": "sha512-qokTiqxD6GjODy5ETAIgzsRgnBWWQHQH2ghy86PU7mIn/wuWeTwF3otyNQZxWBwVn8XNr8Tdzj/QfUXpH+gRZA==", + "dev": true, + "requires": { + "cross-spawn": "^5.0.1", + "spawn-sync": "^1.0.15", + "which": "1.2.x" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "which": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", + "integrity": "sha512-16uPglFkRPzgiUXYMi1Jf8Z5EzN1iB4V0ZtMXcHZnwsBtQhhHeCqoWw7tsUY42hJGNDWtUsVLTjakIa5BgAxCw==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } + } + }, + "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" + } + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "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" + } + }, + "prosemirror-commands": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.3.1.tgz", + "integrity": "sha512-XTporPgoECkOQACVw0JTe3RZGi+fls3/byqt+tXwGTkD7qLuB4KdVrJamDMJf4kfKga3uB8hZ+kUUyZ5oWpnfg==", + "requires": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "prosemirror-dropcursor": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.6.1.tgz", + "integrity": "sha512-LtyqQpkIknaT7NnZl3vDr3TpkNcG4ABvGRXx37XJ8tJNUGtcrZBh40A0344rDwlRTfUEmynQS/grUsoSWz+HgA==", + "requires": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "prosemirror-gapcursor": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.3.1.tgz", + "integrity": "sha512-GKTeE7ZoMsx5uVfc51/ouwMFPq0o8YrZ7Hx4jTF4EeGbXxBveUV8CGv46mSHuBBeXGmvu50guoV2kSnOeZZnUA==", + "requires": { + "prosemirror-keymap": "^1.0.0", + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-view": "^1.0.0" + } + }, + "prosemirror-history": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.3.0.tgz", + "integrity": "sha512-qo/9Wn4B/Bq89/YD+eNWFbAytu6dmIM85EhID+fz9Jcl9+DfGEo8TTSrRhP15+fFEoaPqpHSxlvSzSEbmlxlUA==", + "requires": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "rope-sequence": "^1.3.0" + } + }, + "prosemirror-inputrules": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.2.0.tgz", + "integrity": "sha512-eAW/M/NTSSzpCOxfR8Abw6OagdG0MiDAiWHQMQveIsZtoKVYzm0AflSPq/ymqJd56/Su1YPbwy9lM13wgHOFmQ==", + "requires": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "prosemirror-keymap": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.0.tgz", + "integrity": "sha512-TdSfu+YyLDd54ufN/ZeD1VtBRYpgZnTPnnbY+4R08DDgs84KrIPEPbJL8t1Lm2dkljFx6xeBE26YWH3aIzkPKg==", + "requires": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "prosemirror-markdown": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.10.1.tgz", + "integrity": "sha512-s7iaTLiX+qO5z8kF2NcMmy2T7mIlxzkS4Sp3vTKSYChPtbMpg6YxFkU0Y06rUg2WtKlvBu7v1bXzlGBkfjUWAA==", + "requires": { + "markdown-it": "^13.0.1", + "prosemirror-model": "^1.0.0" + } + }, + "prosemirror-model": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.18.1.tgz", + "integrity": "sha512-IxSVBKAEMjD7s3n8cgtwMlxAXZrC7Mlag7zYsAKDndAqnDScvSmp/UdnRTV/B33lTCVU3CCm7dyAn/rVVD0mcw==", + "requires": { + "orderedmap": "^2.0.0" + } + }, + "prosemirror-schema-basic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.0.tgz", + "integrity": "sha512-JMN/ammP94ObOUS6cpIy121r0MEDN9V95mAxFVALwC4bbmhpWXGjBGHTA5LHPPdbqZKyR6Jar1Akv4Z5k9CNLw==", + "requires": { + "prosemirror-model": "^1.2.0" + } + }, + "prosemirror-schema-list": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.2.2.tgz", + "integrity": "sha512-rd0pqSDp86p0MUMKG903g3I9VmElFkQpkZ2iOd3EOVg1vo5Cst51rAsoE+5IPy0LPXq64eGcCYlW1+JPNxOj2w==", + "requires": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "prosemirror-state": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.2.tgz", + "integrity": "sha512-puuzLD2mz/oTdfgd8msFbe0A42j5eNudKAAPDB0+QJRw8cO1ygjLmhLrg9RvDpf87Dkd6D4t93qdef00KKNacQ==", + "requires": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "prosemirror-transform": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.7.0.tgz", + "integrity": "sha512-O4T697Cqilw06Zvc3Wm+e237R6eZtJL/xGMliCi+Uo8VL6qHk6afz1qq0zNjT3eZMuYwnP8ZS0+YxX/tfcE9TQ==", + "requires": { + "prosemirror-model": "^1.0.0" + } + }, + "prosemirror-view": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.29.0.tgz", + "integrity": "sha512-bifVd5aD9uCNtpLL1AyhquG/cVbNZSv+ALBxTEGYv51a6OHDhq+aOuzqq4MermNdeBdT+5uyURXCALgzk0EN5g==", + "requires": { + "prosemirror-model": "^1.16.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "dev": true + }, + "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": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "requires": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + } + }, + "react-error-overlay": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", + "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==", + "dev": true + }, + "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==" + }, + "react-refresh": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.9.0.tgz", + "integrity": "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==", + "dev": true + }, + "react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "requires": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + }, + "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": "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" + } + }, + "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==" + }, + "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" + } + }, + "rope-sequence": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.3.tgz", + "integrity": "sha512-85aZYCxweiD5J8yTEbw+E6A27zSnLPNDL0WfPdw3YYodq7WjnTKo0q4dtyQ2gz23iPT8Q9CUyJtAaUNcTxRf5Q==" + }, + "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-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "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" + } + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" + } + }, + "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, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "spawn-sync": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz", + "integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==", + "dev": true, + "requires": { + "concat-stream": "^1.4.7", + "os-shim": "^0.1.2" + } + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "string.prototype.matchall": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz", + "integrity": "sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.1", + "side-channel": "^1.0.4" + } + }, + "string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, + "string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, + "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 + }, + "stylis": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.0.13.tgz", + "integrity": "sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag==" + }, + "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" + } + }, + "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==" + }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + }, + "term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true + }, + "terser": { + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "dev": 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 + } + } + }, + "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 + }, + "timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", + "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==" + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "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" + } + }, + "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 + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true + }, + "uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" + }, + "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.5", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", + "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", + "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" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "dev": true + }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "w3c-keyname": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz", + "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==" + }, + "weak-lru-cache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", + "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", + "dev": true + }, + "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 + }, + "xxhash-wasm": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-0.4.2.tgz", + "integrity": "sha512-/eyHVRJQCirEkSZ1agRSCwriMhwlyUcFkXD5TPVSLP+IPzjsqMVzZwdoczLp1SoQU0R3dxz1RpIK+4YNQbCVOA==", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "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 new file mode 100644 index 0000000..b0f78b6 --- /dev/null +++ b/package.json @@ -0,0 +1,73 @@ +{ + "name": "pinmenote-extension", + "description": "Browser extension to capture internet content essentials", + "version": "0.0.1", + "license": "GPL-3.0-or-later", + "author": "Michal Szczepanski ", + "scripts": { + "watch": "parcel watch src/manifest.json --host localhost --target pinmenote-dev --no-cache", + "build": "parcel build src/manifest.json --target pinmenote-prod --no-content-hash --no-cache --detailed-report 0", + "build:ff": "parcel build src/manifest.json --target pinmenote-firefox-prod --no-content-hash --no-cache --detailed-report 0", + "lint": "eslint --ext .ts,.tsx src/", + "lint:fix": "eslint --ext .ts,.tsx src/ --fix" + }, + "pre-commit": [ + "lint" + ], + "alias": { + "@common/*": "./src/common/$1" + }, + "targets": { + "pinmenote-dev": { + "sourceMap": { + "inline": true, + "inlineSources": true + } + }, + "pinmenote-prod": {}, + "pinmenote-firefox-prod": {} + }, + "devDependencies": { + "@parcel/config-webextension": "^2.7.0", + "@parcel/transformer-typescript-tsc": "^2.7.0", + "@types/chrome": "^0.0.193", + "@types/firefox-webext-browser": "^94.0.1", + "@types/node": "^18.6.4", + "@types/react": "^18.0.15", + "@types/react-dom": "^18.0.6", + "@typescript-eslint/eslint-plugin": "^5.32.0", + "@typescript-eslint/parser": "^5.32.0", + "buffer": "^6.0.3", + "eslint": "^8.21.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-react": "^7.30.1", + "parcel": "^2.7.0", + "pre-commit": "^1.2.2", + "process": "^0.11.10", + "typescript": "^4.7.4" + }, + "dependencies": { + "@emotion/styled": "^11.10.0", + "@fontsource/roboto": "^4.5.7", + "@mui/icons-material": "^5.8.4", + "@mui/material": "^5.9.3", + "css": "^3.0.0", + "jwt-decode": "^3.1.2", + "nanoid": "^4.0.0", + "openpgp": "^5.5.0", + "prosemirror-commands": "^1.3.1", + "prosemirror-dropcursor": "^1.6.1", + "prosemirror-gapcursor": "^1.3.1", + "prosemirror-history": "^1.3.0", + "prosemirror-inputrules": "^1.2.0", + "prosemirror-markdown": "^1.10.1", + "prosemirror-model": "^1.18.1", + "prosemirror-schema-basic": "^1.2.0", + "prosemirror-schema-list": "^1.2.2", + "prosemirror-state": "^1.4.2", + "prosemirror-view": "^1.29.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + } +} diff --git a/src/assets/README.md b/src/assets/README.md new file mode 100644 index 0000000..861d242 --- /dev/null +++ b/src/assets/README.md @@ -0,0 +1,3 @@ +Assets +--- +Not GPL-3 licensed \ No newline at end of file diff --git a/src/assets/icon/128.png b/src/assets/icon/128.png new file mode 100644 index 0000000..66127ba Binary files /dev/null and b/src/assets/icon/128.png differ diff --git a/src/assets/icon/16.png b/src/assets/icon/16.png new file mode 100644 index 0000000..96ca086 Binary files /dev/null and b/src/assets/icon/16.png differ diff --git a/src/assets/icon/24.png b/src/assets/icon/24.png new file mode 100644 index 0000000..c295dec Binary files /dev/null and b/src/assets/icon/24.png differ diff --git a/src/assets/icon/256.png b/src/assets/icon/256.png new file mode 100644 index 0000000..4926f75 Binary files /dev/null and b/src/assets/icon/256.png differ diff --git a/src/assets/icon/32.png b/src/assets/icon/32.png new file mode 100644 index 0000000..e89ab74 Binary files /dev/null and b/src/assets/icon/32.png differ diff --git a/src/assets/icon/48.png b/src/assets/icon/48.png new file mode 100644 index 0000000..d1a92b7 Binary files /dev/null and b/src/assets/icon/48.png differ diff --git a/src/assets/icon/64.png b/src/assets/icon/64.png new file mode 100644 index 0000000..13fd4e8 Binary files /dev/null and b/src/assets/icon/64.png differ diff --git a/src/assets/icon/light/128.png b/src/assets/icon/light/128.png new file mode 100644 index 0000000..d791a3a Binary files /dev/null and b/src/assets/icon/light/128.png differ diff --git a/src/assets/icon/light/16.png b/src/assets/icon/light/16.png new file mode 100644 index 0000000..e2bcf56 Binary files /dev/null and b/src/assets/icon/light/16.png differ diff --git a/src/assets/icon/light/24.png b/src/assets/icon/light/24.png new file mode 100644 index 0000000..7a3e262 Binary files /dev/null and b/src/assets/icon/light/24.png differ diff --git a/src/assets/icon/light/256.png b/src/assets/icon/light/256.png new file mode 100644 index 0000000..d93e8d9 Binary files /dev/null and b/src/assets/icon/light/256.png differ diff --git a/src/assets/icon/light/32.png b/src/assets/icon/light/32.png new file mode 100644 index 0000000..11cd296 Binary files /dev/null and b/src/assets/icon/light/32.png differ diff --git a/src/assets/icon/light/48.png b/src/assets/icon/light/48.png new file mode 100644 index 0000000..f5ce1b9 Binary files /dev/null and b/src/assets/icon/light/48.png differ diff --git a/src/assets/icon/light/64.png b/src/assets/icon/light/64.png new file mode 100644 index 0000000..7d14cc4 Binary files /dev/null and b/src/assets/icon/light/64.png differ diff --git a/src/common/components/colors.ts b/src/common/components/colors.ts new file mode 100644 index 0000000..f13565d --- /dev/null +++ b/src/common/components/colors.ts @@ -0,0 +1,18 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const COLOR_DEFAULT_RED = '#d32f2f'; +export const COLOR_DEFAULT_GREY = '#eeeeee'; diff --git a/src/common/components/react/styled.input.ts b/src/common/components/react/styled.input.ts new file mode 100644 index 0000000..6a2be03 --- /dev/null +++ b/src/common/components/react/styled.input.ts @@ -0,0 +1,30 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Input, styled } from '@mui/material'; + +export const StyledInput = styled(Input)({ + width: '100%', + ':before': { + borderBottom: 'none' + }, + ':after': { + borderBottom: 'none' + }, + '&:hover:before': { + borderBottom: 'none !important' // not working without !important cause @mui sucks + } +}); diff --git a/src/common/components/text-editor/text.editor.input.rules.ts b/src/common/components/text-editor/text.editor.input.rules.ts new file mode 100644 index 0000000..544d1df --- /dev/null +++ b/src/common/components/text-editor/text.editor.input.rules.ts @@ -0,0 +1,71 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { NodeType, Schema } from 'prosemirror-model'; +import { + ellipsis, + emDash, + inputRules, + smartQuotes, + textblockTypeInputRule, + wrappingInputRule +} from 'prosemirror-inputrules'; + +/// Given a blockquote node type, returns an input rule that turns `"> "` +/// at the start of a textblock into a blockquote. +export function blockQuoteRule(nodeType: NodeType) { + return wrappingInputRule(/^\s*>\s$/, nodeType); +} + +/// Given a list node type, returns an input rule that turns a number +/// followed by a dot at the start of a textblock into an ordered list. +export function orderedListRule(nodeType: NodeType) { + return wrappingInputRule( + /^(\d+)\.\s$/, + nodeType, + (match) => ({ order: +match[1] }), + (match, node) => node.childCount + +node.attrs.order == +match[1] + ); +} + +/// Given a list node type, returns an input rule that turns a bullet +/// (dash, plush, or asterisk) at the start of a textblock into a +/// bullet list. +export function bulletListRule(nodeType: NodeType) { + return wrappingInputRule(/^\s*([-+*])\s$/, nodeType); +} + +/// Given a node type and a maximum level, creates an input rule that +/// turns up to that number of `#` characters followed by a space at +/// the start of a textblock into a heading whose level corresponds to +/// the number of `#` signs. +export function headingRule(nodeType: NodeType, maxLevel: number) { + return textblockTypeInputRule(new RegExp(`^(#{1,${maxLevel}})\\s$`), nodeType, (match) => ({ + level: match[1].length + })); +} + +/// A set of input rules for creating the basic block quotes, lists, +/// code blocks, and heading. +export function buildInputRules(schema: Schema) { + const rules = smartQuotes.concat(ellipsis, emDash); + let type; + if ((type = schema.nodes.blockquote)) rules.push(blockQuoteRule(type)); + if ((type = schema.nodes.ordered_list)) rules.push(orderedListRule(type)); + if ((type = schema.nodes.bullet_list)) rules.push(bulletListRule(type)); + if ((type = schema.nodes.heading)) rules.push(headingRule(type, 6)); + return inputRules({ rules }); +} diff --git a/src/common/components/text-editor/text.editor.keymap.ts b/src/common/components/text-editor/text.editor.keymap.ts new file mode 100644 index 0000000..7bd94f6 --- /dev/null +++ b/src/common/components/text-editor/text.editor.keymap.ts @@ -0,0 +1,126 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { + chainCommands, + exitCode, + joinDown, + joinUp, + lift, + selectParentNode, + setBlockType, + toggleMark, + wrapIn +} from 'prosemirror-commands'; +import { liftListItem, sinkListItem, splitListItem, wrapInList } from 'prosemirror-schema-list'; +import { redo, undo } from 'prosemirror-history'; +import { Command } from 'prosemirror-state'; +import { Schema } from 'prosemirror-model'; +import { undoInputRule } from 'prosemirror-inputrules'; + +const mac = typeof navigator != 'undefined' ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false; + +/// Inspect the given schema looking for marks and nodes from the +/// basic schema, and if found, add key bindings related to them. +/// This will add: +/// +/// * **Mod-b** for toggling [strong](#schema-basic.StrongMark) +/// * **Mod-i** for toggling [emphasis](#schema-basic.EmMark) +/// * **Mod-`** for toggling [code font](#schema-basic.CodeMark) +/// * **Ctrl-Shift-0** for making the current textblock a paragraph +/// * **Ctrl-Shift-1** to **Ctrl-Shift-Digit6** for making the current +/// textblock a heading of the corresponding level +/// * **Ctrl-Shift-Backslash** to make the current textblock a code block +/// * **Ctrl-Shift-8** to wrap the selection in an ordered list +/// * **Ctrl-Shift-9** to wrap the selection in a bullet list +/// * **Ctrl->** to wrap the selection in a block quote +/// * **Enter** to split a non-empty textblock in a list item while at +/// the same time splitting the list item +/// * **Mod-Enter** to insert a hard break +/// * **Mod-_** to insert a horizontal rule +/// * **Backspace** to undo an input rule +/// * **Alt-ArrowUp** to `joinUp` +/// * **Alt-ArrowDown** to `joinDown` +/// * **Mod-BracketLeft** to `lift` +/// * **Escape** to `selectParentNode` +/// +/// You can suppress or map these bindings by passing a `mapKeys` +/// argument, which maps key names (say `"Mod-B"` to either `false`, to +/// remove the binding, or a new key name string. +export function buildKeymap(schema: Schema, mapKeys?: { [key: string]: false | string }) { + const keys: { [key: string]: Command } = {}; + let type; + function bind(key: string, cmd: Command) { + if (mapKeys) { + const mapped = mapKeys[key]; + if (mapped === false) return; + if (mapped) key = mapped; + } + keys[key] = cmd; + } + + bind('Mod-z', undo); + bind('Shift-Mod-z', redo); + bind('Backspace', undoInputRule); + if (!mac) bind('Mod-y', redo); + + bind('Alt-ArrowUp', joinUp); + bind('Alt-ArrowDown', joinDown); + bind('Mod-BracketLeft', lift); + bind('Escape', selectParentNode); + + if ((type = schema.marks.strong)) { + bind('Mod-b', toggleMark(type)); + bind('Mod-B', toggleMark(type)); + } + if ((type = schema.marks.em)) { + bind('Mod-i', toggleMark(type)); + bind('Mod-I', toggleMark(type)); + } + if ((type = schema.marks.code)) bind('Mod-`', toggleMark(type)); + + if ((type = schema.nodes.bullet_list)) bind('Shift-Ctrl-8', wrapInList(type)); + if ((type = schema.nodes.ordered_list)) bind('Shift-Ctrl-9', wrapInList(type)); + if ((type = schema.nodes.blockquote)) bind('Ctrl->', wrapIn(type)); + if ((type = schema.nodes.hard_break)) { + const br = type, + cmd = chainCommands(exitCode, (state, dispatch) => { + if (dispatch) dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView()); + return true; + }); + bind('Mod-Enter', cmd); + bind('Shift-Enter', cmd); + if (mac) bind('Ctrl-Enter', cmd); + } + if ((type = schema.nodes.list_item)) { + bind('Enter', splitListItem(type)); + bind('Mod-[', liftListItem(type)); + bind('Mod-]', sinkListItem(type)); + } + if ((type = schema.nodes.paragraph)) bind('Shift-Ctrl-0', setBlockType(type)); + if ((type = schema.nodes.code_block)) bind('Shift-Ctrl-\\', setBlockType(type)); + if ((type = schema.nodes.heading)) + for (let i = 1; i <= 6; i++) bind(`Shift-Ctrl-${i}`, setBlockType(type, { level: i })); + if ((type = schema.nodes.horizontal_rule)) { + const hr = type; + bind('Mod-_', (state, dispatch) => { + if (dispatch) dispatch(state.tr.replaceSelectionWith(hr.create()).scrollIntoView()); + return true; + }); + } + + return keys; +} diff --git a/src/common/components/text-editor/text.editor.state.ts b/src/common/components/text-editor/text.editor.state.ts new file mode 100644 index 0000000..c89b535 --- /dev/null +++ b/src/common/components/text-editor/text.editor.state.ts @@ -0,0 +1,40 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { defaultMarkdownParser, schema } from 'prosemirror-markdown'; +import { EditorState } from 'prosemirror-state'; +import { history as baseHistory } from 'prosemirror-history'; +import { baseKeymap } from 'prosemirror-commands'; +import { buildInputRules } from './text.editor.input.rules'; +import { buildKeymap } from './text.editor.keymap'; +import { dropCursor } from 'prosemirror-dropcursor'; +import { gapCursor } from 'prosemirror-gapcursor'; +import { keymap } from 'prosemirror-keymap'; + +export const createTextEditorState = (content: string) => { + const doc: any = defaultMarkdownParser.parse(content); + return EditorState.create({ + doc, + plugins: [ + gapCursor(), + dropCursor(), + keymap(buildKeymap(schema)), // custom keys + keymap(baseKeymap), + buildInputRules(schema), // custom rules + baseHistory() + ] + }); +}; diff --git a/src/common/environment.ts b/src/common/environment.ts new file mode 100644 index 0000000..b3d3467 --- /dev/null +++ b/src/common/environment.ts @@ -0,0 +1,42 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +interface EnvironmentConfig { + showAckMessage: boolean; + apiUrl: string; + websiteUrl: string; + shortUrl: string; + isProduction: boolean; +} + +export const environmentConfig: EnvironmentConfig = { + showAckMessage: false, + apiUrl: 'https://pinmenote.com', + websiteUrl: 'https://pinmenote.com', + shortUrl: 'https://pmn.cl', + isProduction: true +}; + +if (process.env.NODE_ENV === 'development') { + environmentConfig.apiUrl = 'http://localhost:3000'; + environmentConfig.websiteUrl = 'http://localhost:4200'; + environmentConfig.shortUrl = 'http://localhost:8001'; + environmentConfig.isProduction = false; +} + +export function getWebsiteUrl(uri: string): string { + return `${environmentConfig.websiteUrl}${uri}`; +} diff --git a/src/common/fn/b64.to.blob.fn.ts b/src/common/fn/b64.to.blob.fn.ts new file mode 100644 index 0000000..a46e21e --- /dev/null +++ b/src/common/fn/b64.to.blob.fn.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const fnB64toBlob = (b64Data: string, contentType = '', sliceSize = 512): Blob => { + const byteCharacters = window.atob(b64Data.split(',')[1]); + const byteArrays = []; + + for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) { + const slice = byteCharacters.slice(offset, offset + sliceSize); + + const byteNumbers = new Array(slice.length); + for (let i = 0; i < slice.length; i++) { + byteNumbers[i] = slice.charCodeAt(i); + } + + const byteArray = new Uint8Array(byteNumbers); + byteArrays.push(byteArray); + } + + return new Blob(byteArrays, { type: contentType }); +}; diff --git a/src/common/fn/compute.element.fn.ts b/src/common/fn/compute.element.fn.ts new file mode 100644 index 0000000..fb7455e --- /dev/null +++ b/src/common/fn/compute.element.fn.ts @@ -0,0 +1,147 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ContentVideoTime, CssData, HtmlIntermediateData } from '@common/model/html.model'; +import { fnConsoleLog } from './console.fn'; +import { fnGetKey } from '@common/kv.utils'; +import { fnXpath } from '@common/fn/xpath.fn'; + +type ComputeCssRule = CSSStyleRule & CSSRule & CSSGroupingRule & CSSConditionRule & CSSImportRule; + +const computeSelectorRules = (cssRules: ComputeCssRule[], unique: Set): string => { + let output = ''; + cssRules.forEach((r: ComputeCssRule) => { + if (fnGetKey(r, 'selectorText')) { + unique.forEach((u) => { + if (u.startsWith('.')) { + if (r.selectorText.startsWith(`${u}:`) || r.selectorText.startsWith(`${u} `) || r.selectorText === u) { + output += `${r.cssText} +`; + } + } else { + const selectors: string[] = r.selectorText.split(','); + selectors.forEach((s) => { + if (u === s || `* ${u}` === s) { + output += `${r.cssText} +`; + } + }); + } + }); + } else if (r.media) { + const ruleText = computeSelectorRules(Array.from(r.cssRules) as ComputeCssRule[], unique); + if (ruleText) { + output += `@media ${r.conditionText} { + ${ruleText} +} +`; + } + } else { + // TODO parse other rules ex CSSKeyFrameRules + } + }); + return output; +}; + +export const fnComputeCssContent = (styles: string[]): CssData => { + let css = ''; + const href: string[] = []; + const unique = new Set(styles); + const styleSheets = Array.from(document.styleSheets); + styleSheets.forEach((s) => { + if (s.href) { + href.push(s.href); + } else { + css += computeSelectorRules(Array.from(s.cssRules) as ComputeCssRule[], unique); + } + }); + return { + href, + css + }; +}; + +export const fnComputeHtmlContent = (ref: Element): HtmlIntermediateData => { + const tagName = ref.tagName.toLowerCase(); + const cssStyles: string[] = [tagName]; + let html = `<${tagName} `; + const videoTime: ContentVideoTime[] = []; + + if (tagName === 'video') { + // fnConsoleLog('VIDEO !!!', (el as HTMLVideoElement).currentTime); + videoTime.push({ + xpath: fnXpath(ref as HTMLElement), + currentTime: (ref as HTMLVideoElement).currentTime + }); + // SET SECONDS (el as HTMLVideoElement).currentTime = 148; + } + + const attributes: Attr[] = Array.from(ref.attributes); + for (const attr of attributes) { + if (attr.name === 'class') { + // CLASS CSS SELECTORS + const a = attr.value.split(' ').filter((e) => !!e); + cssStyles.push(...a.map((e) => `.${e}`)); + html += `${attr.name}="${attr.value}" `; + } else if (attr.name === 'href') { + // HREF + if (attr.value.startsWith('/')) { + html += `href="${window.location.origin}${attr.value}" `; + } else if (!attr.value.startsWith('http')) { + html += `src="${window.location.origin}/${attr.value}" `; + } else { + html += `href="${attr.value}" `; + } + html += `target="_blank" `; + } else if (attr.name === 'target') { + // Skip - we handle it inside href + } else if (attr.name === 'src') { + if (attr.value.startsWith('/')) { + html += `src="${window.location.origin}${attr.value}" `; + } else if (!attr.value.startsWith('http')) { + html += `src="${window.location.origin}/${attr.value}" `; + } else { + html += `src="${attr.value}" `; + } + } else { + html += `${attr.name}="${attr.value}" `; + } + } + html = html.substring(0, html.length - 1) + '>'; + + const nodes = Array.from(ref.childNodes); + + for (const node of nodes) { + if (node.nodeType === Node.TEXT_NODE) { + const nre = new RegExp(String.fromCharCode(160), 'g'); + html += node.textContent ? node.textContent.replace(nre, ' ') : ''; + } else if (node.nodeType === Node.ELEMENT_NODE) { + const computed = fnComputeHtmlContent(node as Element); + html += computed.html; + cssStyles.push(...computed.cssStyles); + videoTime.push(...computed.videoTime); + } else { + fnConsoleLog('PROBLEM !!!', node.nodeType); + } + } + html += ``; + + return { + cssStyles, + html, + videoTime + }; +}; diff --git a/src/common/fn/console.fn.ts b/src/common/fn/console.fn.ts new file mode 100644 index 0000000..82075f8 --- /dev/null +++ b/src/common/fn/console.fn.ts @@ -0,0 +1,31 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { environmentConfig } from '../environment'; + +export const fnConsoleLog = (...args: any[]) => { + if (!environmentConfig.isProduction) { + //eslint-disable-next-line no-console + console.log(...args); + } +}; + +export const fnConsoleError = (...args: any[]) => { + if (!environmentConfig.isProduction) { + //eslint-disable-next-line no-console + console.error(...args); + } +}; diff --git a/src/common/fn/date.fn.ts b/src/common/fn/date.fn.ts new file mode 100644 index 0000000..0352437 --- /dev/null +++ b/src/common/fn/date.fn.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ + +export const fnIsoDateToUtcMiliseconds = (dt: string): number => { + const date = new Date(dt); + return Math.floor(date.getTime()) + date.getTimezoneOffset() * 60000; +}; + +export const fnMilisecondsToUtcDate = (dt: number): Date => { + const date = new Date(dt); + date.setMinutes(date.getMinutes() - date.getTimezoneOffset() * 1000); + return date; +}; diff --git a/src/common/fn/date.format.fn.ts b/src/common/fn/date.format.fn.ts new file mode 100644 index 0000000..e42d9be --- /dev/null +++ b/src/common/fn/date.format.fn.ts @@ -0,0 +1,25 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +const pad = (val: number): string => { + return val < 10 ? `0${val}` : `${val}`; +}; + +export const fnDateFormat = (dt: Date): string => { + return `${dt.getFullYear()}-${pad(dt.getMonth() + 1)}-${pad(dt.getDate())} ${pad(dt.getHours())}:${pad( + dt.getMinutes() + )}:${pad(dt.getSeconds())}`; +}; diff --git a/src/common/fn/diskspace.fn.ts b/src/common/fn/diskspace.fn.ts new file mode 100644 index 0000000..b3206a6 --- /dev/null +++ b/src/common/fn/diskspace.fn.ts @@ -0,0 +1,20 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const fnByteToMb = (value?: number): number => { + if (!value) return 0; + return Math.floor(value / 10000) / 100; +}; diff --git a/src/common/fn/img.resize.fn.ts b/src/common/fn/img.resize.fn.ts new file mode 100644 index 0000000..261d831 --- /dev/null +++ b/src/common/fn/img.resize.fn.ts @@ -0,0 +1,54 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject } from '../model/pin.model'; + +export const fnImgResize = (dto: PinObject, b64image: string): Promise => { + return new Promise((resolve, reject) => { + const img = new Image(); + img.onload = () => { + try { + const can = document.createElement('canvas'); + const { elementSize: rect } = dto.locator; + if (rect.height <= img.naturalHeight) { + can.width = rect.width; + can.height = rect.height; + const ctx = can.getContext('2d'); + ctx?.drawImage(img, rect.x * 2, rect.y * 2, rect.width * 2, rect.height * 2, 0, 0, rect.width, rect.height); + } else { + can.width = rect.width; + can.height = img.naturalHeight / 2 - rect.y; + const ctx = can.getContext('2d'); + ctx?.drawImage(img, rect.x * 2, rect.y * 2, rect.width * 2, rect.height * 2, 0, 0, rect.width, rect.height); + } + b64image = can.toDataURL('image/jpeg', 0.8); + } finally { + window.URL.revokeObjectURL(b64image); + img.onerror = null; + img.onload = null; + // Resolve here + resolve(b64image); + } + }; + img.onerror = (event, source, lineno, colno, error) => { + window.URL.revokeObjectURL(b64image); + img.onerror = null; + img.onload = null; + reject(error); + }; + img.src = b64image; + }); +}; diff --git a/src/common/fn/img.to.b64.fn.ts b/src/common/fn/img.to.b64.fn.ts new file mode 100644 index 0000000..4d81bdd --- /dev/null +++ b/src/common/fn/img.to.b64.fn.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const fnImgToBase64 = (src: string): Promise => { + const img = new Image(); + return new Promise((resolve) => { + img.onload = () => { + const can = document.createElement('canvas'); + can.width = img.naturalWidth; + can.height = img.naturalHeight; + const ctx = can.getContext('2d'); + ctx?.drawImage(img, 0, 0); + resolve(can.toDataURL('image/jpeg', 0.8)); + }; + img.onerror = () => { + resolve(''); + }; + img.crossOrigin = ''; + img.src = src; + }); +}; diff --git a/src/common/fn/normalize.url.fn.ts b/src/common/fn/normalize.url.fn.ts new file mode 100644 index 0000000..a7abd7e --- /dev/null +++ b/src/common/fn/normalize.url.fn.ts @@ -0,0 +1,77 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +interface QueryParam { + key: string; + value: string; +} + +export const fnNormalizeHref = (value: string): string => { + const url = new URL(value); + if (url.search) { + const query = url.search.slice(1); + const result: QueryParam[] = []; + query.split('&').forEach(function (part) { + const item = part.split('='); + result.push({ + key: item[0], + value: decodeURIComponent(item[1]) + }); + }); + const search = trimParams(url.host, result); + if (search) { + return `${url.origin}${url.pathname}?${search}`; + } + return `${url.origin}${url.pathname}`; + } + return `${url.origin}${url.pathname}`; +}; + +const trimParams = (host: string, queryParams: QueryParam[]): string => { + let out = ''; + const toDelete = ['referre']; + if (host.startsWith('www.')) { + host = host.slice(4); + } + if (host.startsWith('youtube')) { + toDelete.push('t', 'start_radio', 'list'); + } + if (host.startsWith('twitter')) { + toDelete.push('src'); + } + for (const param of queryParams) { + // skip utm_ args https://en.wikipedia.org/wiki/UTM_parameters + if (param.key.startsWith('utm_')) continue; + // allegro.pl details + if (param.key.startsWith('bi_')) continue; + if (!toDelete.includes(param.key)) { + out += `&${param.key}=${encodeURIComponent(param.value)}`; + } + } + return out.slice(1); +}; + +export const fnNormalizeOrigin = (value: string): string => { + if (value.startsWith('https')) { + value = value.substring(8); + } else if (value.startsWith('http')) { + value = value.substring(7); + } + if (value.startsWith('www')) { + value = value.substring(4); + } + return value; +}; diff --git a/src/common/fn/page.pin.list.fn.ts b/src/common/fn/page.pin.list.fn.ts new file mode 100644 index 0000000..cdf0873 --- /dev/null +++ b/src/common/fn/page.pin.list.fn.ts @@ -0,0 +1,19 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export function fnPagePinList(): HTMLElement[] { + return Array.from(document.querySelectorAll('div[id^=pinmenote-]')); +} diff --git a/src/common/fn/pin/content-pin-new-url.ts b/src/common/fn/pin/content-pin-new-url.ts new file mode 100644 index 0000000..2fa87d3 --- /dev/null +++ b/src/common/fn/pin/content-pin-new-url.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnNormalizeHref, fnNormalizeOrigin } from '@common/fn/normalize.url.fn'; +import PinUrl = Pinmenote.Pin.PinUrl; + +export const contentPinNewUrl = (): PinUrl => { + return { + href: fnNormalizeHref(window.location.href), + origin: fnNormalizeOrigin(window.location.origin), + pathname: window.location.pathname, + search: window.location.search + }; +}; diff --git a/src/common/fn/pin/pin.iframe.fn.ts b/src/common/fn/pin/pin.iframe.fn.ts new file mode 100644 index 0000000..2fd67f0 --- /dev/null +++ b/src/common/fn/pin/pin.iframe.fn.ts @@ -0,0 +1,47 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlContent } from '@common/model/html.model'; + +export const pinIframeFn = (content: HtmlContent, container?: HTMLElement): string | undefined => { + const iframe = document.createElement('iframe'); + iframe.style.border = 'none'; + const { css, href } = content.css; + let containerBodyStyle = ''; + if (container) containerBodyStyle = `;width: ${window.innerWidth}px`; + + const html = ` + + ${href.map((h) => ``).join('')} + + ${content.html} + + `; + if (!container) return html; + + container.appendChild(iframe); + + if (!iframe.contentWindow) return; + + const doc = iframe.contentWindow.document; + doc.write(html); + doc.close(); + + iframe.width = `${window.innerWidth - 350}px`; + iframe.height = `${window.innerHeight - 350}px`; + + return html; +}; diff --git a/src/common/fn/sleep.fn.ts b/src/common/fn/sleep.fn.ts new file mode 100644 index 0000000..a3b7458 --- /dev/null +++ b/src/common/fn/sleep.fn.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType, TimeoutMessage } from '../model/bus.model'; +import { TinyEventDispatcher } from '../service/tiny.event.dispatcher'; +import { fnUid } from './uid.fn'; +import { sendRuntimeMessage } from '../message/runtime.message'; + +export const fnSleep = async (ms: number): Promise => { + const id = fnUid(); + await sendRuntimeMessage({ type: BusMessageType.CONTENT_TIMEOUT, data: { id, ms } }); + return new Promise((resolve) => { + TinyEventDispatcher.addListener(BusMessageType.CONTENT_TIMEOUT, (event, key, value) => { + TinyEventDispatcher.removeListener(event, key); + if (value.id === id) { + resolve(); + } + }); + }); +}; diff --git a/src/common/fn/uid.fn.ts b/src/common/fn/uid.fn.ts new file mode 100644 index 0000000..dc15859 --- /dev/null +++ b/src/common/fn/uid.fn.ts @@ -0,0 +1,22 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { customAlphabet } from 'nanoid'; +const alphabet = customAlphabet('abcdefghijklmnopqrstuwxyz0123456789'); + +export function fnUid(size = 10): string { + return alphabet(size); +} diff --git a/src/common/fn/xpath.fn.ts b/src/common/fn/xpath.fn.ts new file mode 100644 index 0000000..79b9123 --- /dev/null +++ b/src/common/fn/xpath.fn.ts @@ -0,0 +1,55 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +interface XPathElement { + position: number; + tagName: string; +} + +export function fnXpath(element: HTMLElement): string { + let child = element; + let parent = child.parentElement; + let path: XPathElement[] = []; + while (parent) { + const position = findNodeNameIndex(Array.from(parent.childNodes), child); + path.push({ + position, + tagName: child.tagName + }); + child = parent; + parent = parent.parentElement; + } + path = path.reverse(); + path.splice(0, 1); + return `/html/body/${path.map((p) => `${p.tagName}[${p.position}]`).join('/')}`; +} + +function findNodeNameIndex(nodes: ChildNode[], child: HTMLElement): number { + let index = 1; + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + if (node.nodeName === child.nodeName && child !== node) { + index++; + } else if (child === node) { + break; + } + } + return index; +} + +export function fnFindElementXpath(xpath: string): XPathResult { + return document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE); +} diff --git a/src/common/kv.utils.ts b/src/common/kv.utils.ts new file mode 100644 index 0000000..d9fa8a2 --- /dev/null +++ b/src/common/kv.utils.ts @@ -0,0 +1,23 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export function fnGetKey(obj: any, key: string): T { + return obj[key]; // eslint-disable-line @typescript-eslint/no-unsafe-member-access +} + +export function fnSetKeyValue(obj: any, key: string, value?: any): void { + obj[key] = value; // eslint-disable-line @typescript-eslint/no-unsafe-member-access +} diff --git a/src/common/message/reload.content.script.ts b/src/common/message/reload.content.script.ts new file mode 100644 index 0000000..3b900da --- /dev/null +++ b/src/common/message/reload.content.script.ts @@ -0,0 +1,51 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnConsoleLog } from '@common/fn/console.fn'; +import { fnIsChrome } from '@common/service/browser.api.wrapper'; + +export const reloadContentScript = async (tabId: number): Promise => { + const scripts = chrome.runtime.getManifest().content_scripts; + if (!scripts) return; + try { + await insertJsFiles(tabId, scripts[0]?.js); + await insertCssFiles(tabId, scripts[0].css); + } catch (e) { + fnConsoleLog('Error', e); + } +}; + +const insertJsFiles = async (tabId: number, files: string[] | undefined): Promise => { + if (!files) return; + if (fnIsChrome()) { + await chrome.scripting.executeScript({ target: { tabId }, files }); + } else { + for (const file of files) { + await browser.tabs.executeScript(tabId, { file }); + } + } +}; + +const insertCssFiles = async (tabId: number, files: string[] | undefined): Promise => { + if (!files) return; + if (fnIsChrome()) { + await chrome.scripting.insertCSS({ target: { tabId }, files }); + } else { + for (const file of files) { + await browser.tabs.insertCSS(tabId, { file }); + } + } +}; diff --git a/src/common/message/runtime.message.ts b/src/common/message/runtime.message.ts new file mode 100644 index 0000000..c026c07 --- /dev/null +++ b/src/common/message/runtime.message.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessage } from '@common/model/bus.model'; +import { environmentConfig } from '../environment'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; + +export const sendRuntimeMessage = async (msg: BusMessage): Promise => { + return new Promise((resolve, reject) => { + try { + fnBrowserApi().runtime.sendMessage(msg, (ack: any) => { + if (environmentConfig.showAckMessage) fnConsoleLog(`${msg.type}->ack`); + resolve(ack); + }); + } catch (e) { + fnConsoleLog('runtime.lastError', fnBrowserApi().runtime.lastError); + reject(e); + } + }); +}; diff --git a/src/common/message/tab.message.ts b/src/common/message/tab.message.ts new file mode 100644 index 0000000..0571bbd --- /dev/null +++ b/src/common/message/tab.message.ts @@ -0,0 +1,37 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessage } from '@common/model/bus.model'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '../fn/console.fn'; + +export const sendTabMessage = (msg: BusMessage): Promise => { + return new Promise((resolve: (...arg: any) => void, reject: (...arg: any) => void) => { + /* eslint-disable @typescript-eslint/no-unsafe-call */ + /* eslint-disable @typescript-eslint/no-floating-promises */ + fnBrowserApi().tabs.query({ active: true, currentWindow: true }, (tabs: chrome.tabs.Tab[]) => { + const currentTab: chrome.tabs.Tab | undefined = tabs[0]; + if (currentTab?.id) { + try { + fnBrowserApi().tabs.sendMessage(currentTab.id, msg, resolve); + } catch (e) { + fnConsoleLog('Error sendTabMessage', msg, e); + reject(e); + } + } + }); + }); +}; diff --git a/src/common/model/auth.model.ts b/src/common/model/auth.model.ts new file mode 100644 index 0000000..5263c25 --- /dev/null +++ b/src/common/model/auth.model.ts @@ -0,0 +1,21 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export interface RegisterFormData { + email: string; + username: string; + acceptedVersion: string; +} diff --git a/src/common/model/bus.model.ts b/src/common/model/bus.model.ts new file mode 100644 index 0000000..d589e3d --- /dev/null +++ b/src/common/model/bus.model.ts @@ -0,0 +1,98 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export type BrowserGlobalSender = browser.runtime.MessageSender | chrome.runtime.MessageSender; + +export interface BusMessage { + type: BusMessageType; + data?: T; +} + +export interface TimeoutMessage { + ms: number; + id: string; +} + +export enum BusMessageType { + // Internal content script + CNT_SETTINGS = 'cnt.settings', + // Internal options tab + OPT_PIN_EDIT = 'opt.pin.edit', + OPT_PIN_CANCEL_EDIT = 'opt.pin.cancel.edit', + OPT_PIN_SAVE_EDIT = 'opt.pin.save.edit', + OPT_PIN_SHOW_IMAGE = 'opt.pin.show.image', + // Internal popup + POP_CONSOLE_LOG = 'pop.console.log', + POP_LOGIN_CLICK = 'pop.login.click', + POP_ACCOUNT_CLICK = 'pop.account.click', + POP_REGISTER_CLICK = 'pop.register.click', + // Ack + CONTENT_ACK = 'content.ack', + WORKER_ACK = 'worker.ack', + POPUP_ACK = 'popup.ack', + // Popup + POPUP_OPEN = 'popup.open', + POPUP_INIT = 'popup.init', + POPUP_PIN_START = 'popup.pin.start', + POPUP_PIN_STOP = 'popup.pin.stop', + POPUP_PIN_GET_HREF = 'popup.pin.get.href', + POPUP_PIN_GET_ORIGIN = 'popup.pin.get.origin', + POPUP_PIN_CLEANUP = 'popup.pin.cleanup', + POPUP_PIN_REMOVE = 'popup.pin.remove', + POPUP_PIN_SHARE = 'popup.pin.share', + POPUP_PIN_UPDATE = 'popup.pin.update', + POPUP_PIN_VISIBLE = 'popup.pin.visible', + POPUP_ACCESS_TOKEN = 'popup.access.token', + POPUP_API_ERROR = 'popup.api.error', + POPUP_LOGIN = 'popup.login', + POPUP_LOGOUT = 'popup.logout', + POPUP_REGISTER = 'popup.register', + POPUP_SYNC_PINS = 'popup.sync.pins', + POPUP_SYNC_QUOTA = 'popup.sync.quota', + POPUP_PRIVATE_KEY_GET = 'popup.private.key.get', + POPUP_PRIVATE_KEY_IMPORT = 'popup.private.key.import', + // Content script + CONTENT_LOGIN = 'content.login', + CONTENT_LOGIN_REFRESH = 'content.login.refresh', + CONTENT_PIN_VISIBLE = 'content.pin.visible', + CONTENT_PIN_FOCUS = 'content.pin.focus', + CONTENT_PIN_CHANGED = 'content.pin.changed', + CONTENT_PIN_NAVIGATE = 'content.pin.navigate', + CONTENT_PIN_ID = 'content.pin.id', + CONTENT_PIN_ADD = 'content.pin.add', + CONTENT_LINK_ADD = 'content.link.add', + CONTENT_PIN_UPDATE = 'content.pin.update', + CONTENT_PIN_REMOVE = 'content.pin.remove', + CONTENT_PIN_GET_HREF = 'content.pin.get.href', + CONTENT_PIN_GET_ID = 'content.pin.get.id', + CONTENT_PIN_SCREENSHOT = 'content.pin.screenshot', + CONTENT_REFRESH_TOKEN = 'content.refresh.token', + CONTENT_TIMEOUT = 'content.timeout', + CONTENT_TIMEOUT_SET = 'content.timeout.set', + CONTENT_SETTINGS = 'content.settings', + // Options + OPTIONS_SYNCHRONIZE_DATA = 'options.synchronize.data', + OPTIONS_GET_SETTINGS = 'options.get.settings', + OPTIONS_SET_SETTINGS = 'options.set.settings', + OPTIONS_PIN_GET_HASH_LIST = 'options.pin.get.hash.list', + OPTIONS_PIN_GET_RANGE = 'options.pin.get.range', + OPTIONS_PIN_GET_LAST_ID = 'options.pin.get.last.id', + OPTIONS_PIN_REMOVE = 'options.pin.remove', + OPTIONS_PIN_SHARE = 'options.pin.share', + OPTIONS_PIN_UPDATE = 'options.pin.update', + OPTIONS_PIN_SEARCH = 'options.pin.search', + OPTIONS_GET_ORIGIN_URLS = 'options.get.origin.urls' +} diff --git a/src/common/model/html.model.ts b/src/common/model/html.model.ts new file mode 100644 index 0000000..2a6b89d --- /dev/null +++ b/src/common/model/html.model.ts @@ -0,0 +1,64 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import LinkDto = Pinmenote.Pin.LinkDto; + +export enum ObjectTypeDto { + Pin = 1, + Link = 2, + Note +} + +export interface HtmlIntermediateData { + cssStyles: string[]; + html: string; + videoTime: ContentVideoTime[]; +} + +export interface CssData { + css: string; + href: string[]; +} + +export interface ContentVideoTime { + currentTime: number; + xpath: string; +} + +export interface HtmlContent { + theme?: string; + bodyStyle?: string; + title: string; + html: string; + videoTime: ContentVideoTime[]; + css: CssData; + elementText: string; +} + +export interface HtmlComponent { + object: HtmlObject; + ref: HTMLElement; + get isDrag(): boolean; + render(): HTMLElement; + cleanup(): void; + focus(goto: boolean): void; + resize(): void; +} + +export interface HtmlObject extends LinkDto { + uid: string; + type: ObjectTypeDto; +} diff --git a/src/common/model/pin.model.ts b/src/common/model/pin.model.ts new file mode 100644 index 0000000..8a0892e --- /dev/null +++ b/src/common/model/pin.model.ts @@ -0,0 +1,67 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlContent, HtmlObject } from '@common/model/html.model'; +import PinSize = Pinmenote.Pin.PinSize; +import PinUrl = Pinmenote.Pin.PinUrl; +import ShareUrlDto = Pinmenote.Share.ShareUrlDto; + +export const PIN_HASHTAG_REGEX = new RegExp(/#(\w+)/g); + +export enum PinViewType { + SCREENSHOT = 1, + CONTENT = 2 +} + +export interface PinPopupInitData { + url?: PinUrl; + isAddingNote: boolean; +} + +/* CONTENT */ + +export interface PinObject extends HtmlObject { + id: number; + version: number; + createdDate: string; + updatedDate: string; + visible: boolean; + screenshot?: string; + content: HtmlContent; + viewType: PinViewType; + size: PinSize; + share?: ShareUrlDto; + border: { + radius: string; + style: string; + }; +} + +export interface PinUpdateObject { + pin: PinObject; + oldHashtag?: string[]; + newHashtag?: string[]; +} + +export interface PinRangeRequest { + from: number; + limit?: number; + search?: string; +} + +export interface PinByIdRequest { + id: number; +} diff --git a/src/common/model/settings.model.ts b/src/common/model/settings.model.ts new file mode 100644 index 0000000..33ea1e7 --- /dev/null +++ b/src/common/model/settings.model.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import LinkDto = Pinmenote.Pin.LinkDto; + +export enum ExtensionTheme { + LIGHT = 'light', + DARK = 'dark' +} + +export interface ContentExtensionData { + href: string; + theme: ExtensionTheme; +} + +export interface ContentSettingsData { + borderStyle: string; + borderRadius: string; + link?: LinkDto; +} diff --git a/src/common/popup/log.manager.ts b/src/common/popup/log.manager.ts new file mode 100644 index 0000000..6636bb3 --- /dev/null +++ b/src/common/popup/log.manager.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; + +export class LogManager { + private static logValue = ''; + + static log = (value: string): void => { + this.logValue = '' + value + '
' + this.logValue; + TinyEventDispatcher.dispatch(BusMessageType.POP_CONSOLE_LOG, this.logValue); + }; + + static get logs(): string { + return this.logValue; + } + + static clear(): void { + this.logValue = ''; + TinyEventDispatcher.dispatch(BusMessageType.POP_CONSOLE_LOG, this.logValue); + } +} diff --git a/src/common/service/browser.api.wrapper.ts b/src/common/service/browser.api.wrapper.ts new file mode 100644 index 0000000..63f9198 --- /dev/null +++ b/src/common/service/browser.api.wrapper.ts @@ -0,0 +1,55 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export type BrowserGlobal = typeof chrome | typeof browser; + +let pinMeBrowserApi: BrowserGlobal; +let isChrome = false; +try { + pinMeBrowserApi = browser; +} catch (e) { + pinMeBrowserApi = chrome; + isChrome = true; +} + +export function fnBrowserApi(): BrowserGlobal { + return pinMeBrowserApi; +} + +export function fnExtensionStartUrl(): string { + return isChrome ? 'chrome-extension' : 'moz-extension'; +} + +export function fnOpenOptionsPage(subpage = ''): void { + if (isChrome) { + const optionsPage = chrome.runtime.getManifest().options_ui?.page; + if (optionsPage) window.open(`chrome-extension://${chrome.runtime.id}/${optionsPage}${subpage}`); + return; + } + window.open(browser.runtime.getManifest().options_ui?.page); + window.close(); +} + +export function fnRuntimeUrl(): string { + if (isChrome) { + return `chrome-extension://${chrome.runtime.id}`; + } + return 'moz-extension://'; +} + +export function fnIsChrome(): boolean { + return isChrome; +} diff --git a/src/common/service/browser.storage.wrapper.ts b/src/common/service/browser.storage.wrapper.ts new file mode 100644 index 0000000..920fb6d --- /dev/null +++ b/src/common/service/browser.storage.wrapper.ts @@ -0,0 +1,50 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnBrowserApi } from './browser.api.wrapper'; + +export class BrowserStorageWrapper { + private static get api(): chrome.storage.LocalStorageArea | browser.storage.StorageArea { + return fnBrowserApi().storage.local; + } + + static async get(key: string): Promise { + const value = await this.api.get(key); + return value[key]; + } + + static async getAll(): Promise { + return await this.api.get(); + } + + static async getBytesInUse(key?: string): Promise { + return await this.api.getBytesInUse(key); + } + + static async set(key: string, value: T): Promise { + const v: { [key: string]: any } = {}; + v[key] = value; + await this.api.set(v); + } + + static async remove(key: string): Promise { + await this.api.remove(key); + } + + static async clear(): Promise { + await this.api.clear(); + } +} diff --git a/src/common/service/tiny.event.dispatcher.ts b/src/common/service/tiny.event.dispatcher.ts new file mode 100644 index 0000000..21756b4 --- /dev/null +++ b/src/common/service/tiny.event.dispatcher.ts @@ -0,0 +1,60 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnUid } from '@common/fn/uid.fn'; + +export class TinyEventDispatcher { + private static listeners: { [key: string]: { [key: string]: any } } = {}; + + static addListener(event: string, handler: (event: string, key: string, value: T) => void): string { + if (!this.listeners[event]) { + this.listeners[event] = {}; + } + const key = fnUid(); + this.listeners[event][key] = handler; + // LogManager.log(`Add listener ${event} ${key} ${JSON.stringify(Object.keys(this.listeners[event]))}`); + return key; + } + + static dispatch(event: string, value: T): void { + if (this.listeners[event]) { + for (const key in this.listeners[event]) { + this.listeners[event][key](event, key, value); // eslint-disable-line @typescript-eslint/no-unsafe-call + } + } + } + + static removeListener(event: string, key: string): boolean { + // LogManager.log(`Remove listener ${event} ${key}`); + if (!this.listeners[event]) return false; + if (this.listeners[event][key]) { + delete this.listeners[event][key]; + return true; + } + // LogManager.log(`Not Removed ${JSON.stringify(this.listeners[event])}`); + return false; + } + + static removeAllListener(event: string): boolean { + if (!this.listeners[event]) return false; + delete this.listeners[event]; + return true; + } + + static cleanup() { + this.listeners = {}; + } +} diff --git a/src/common/style.utils.ts b/src/common/style.utils.ts new file mode 100644 index 0000000..fcfb8c5 --- /dev/null +++ b/src/common/style.utils.ts @@ -0,0 +1,22 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export function applyStylesToElement(element: HTMLElement, styles: { [key: string]: string }): void { + for (const key in styles) { + const value = styles[key]; + element.style.setProperty(key, value); + } +} diff --git a/src/content-script/command/link/create-link.command.ts b/src/content-script/command/link/create-link.command.ts new file mode 100644 index 0000000..78d5a74 --- /dev/null +++ b/src/content-script/command/link/create-link.command.ts @@ -0,0 +1,46 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlLinkComponent } from '../../components/html-link.component'; +import { ObjectTypeDto } from '@common/model/html.model'; +import { PinPendingStore } from '../../store/pin-pending.store'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { fnFindElementXpath } from '@common/fn/xpath.fn'; +import { fnUid } from '@common/fn/uid.fn'; +import { isElementHidden } from '../../fn/is-element-hidden'; +import ICommand = Pinmenote.Common.ICommand; +import LinkDto = Pinmenote.Pin.LinkDto; + +export class CreateLinkCommand implements ICommand { + constructor(private link: LinkDto) {} + execute(): boolean { + const value = fnFindElementXpath(this.link.locator.xpath); + const ref = value.singleNodeValue as HTMLElement; + const uid = fnUid(); + const object = { uid, type: ObjectTypeDto.Link, ...this.link }; + fnConsoleLog('CreateLinkCommand->ref', ref, this.link); + if (!ref || isElementHidden(ref)) { + PinPendingStore.add(object); + return false; + } + const pinComponent = new HtmlLinkComponent(ref, object); + document.body.appendChild(pinComponent.render()); + setTimeout(() => { + pinComponent.focus(true); + }, 500); + return true; + } +} diff --git a/src/content-script/command/pin/create-pin-data.command.ts b/src/content-script/command/pin/create-pin-data.command.ts new file mode 100644 index 0000000..abddbc8 --- /dev/null +++ b/src/content-script/command/pin/create-pin-data.command.ts @@ -0,0 +1,48 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BorderStore } from '../../store/border.store'; +import { DocumentMediator } from '../../mediator/document.mediator'; +import { HtmlComponent } from '@common/model/html.model'; +import { PinComponent } from '../../components/pin.component'; +import { PinObject } from '@common/model/pin.model'; +import { PinStore } from '../../store/pin.store'; +import { contentPinNew } from '../../fn/content-pin-new'; +import ICommand = Pinmenote.Common.ICommand; +import PinPoint = Pinmenote.Pin.PinPoint; + +export class CreatePinDataCommand implements ICommand> { + constructor(private ref: HTMLElement, private offset: PinPoint, private dto?: PinObject) {} + async execute(): Promise { + let shouldFocus = false; + if (!this.dto) { + this.dto = await contentPinNew(this.ref, this.offset); + shouldFocus = true; + DocumentMediator.stopListeners(); + } + // TODO !!! CHANGE HTMLElements to interfaces + const pinComponent = new PinComponent(this.ref, this.dto); + document.body.appendChild(pinComponent.render()); + + if (shouldFocus) pinComponent.focus(); + + this.ref.style.border = BorderStore.borderStyle; + this.ref.style.borderRadius = BorderStore.borderRadius; + + // Add Pin data + return PinStore.add(pinComponent); + } +} diff --git a/src/content-script/command/pin/create-pin-xpath.command.ts b/src/content-script/command/pin/create-pin-xpath.command.ts new file mode 100644 index 0000000..995f86f --- /dev/null +++ b/src/content-script/command/pin/create-pin-xpath.command.ts @@ -0,0 +1,40 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CreatePinDataCommand } from './create-pin-data.command'; +import { PinObject } from '@common/model/pin.model'; +import { PinPendingStore } from '../../store/pin-pending.store'; +import { fnFindElementXpath } from '@common/fn/xpath.fn'; +import { isElementHidden } from '../../fn/is-element-hidden'; +import ICommand = Pinmenote.Common.ICommand; + +export class CreatePinXpathCommand implements ICommand> { + constructor(private pin: PinObject) {} + async execute(): Promise { + const value = fnFindElementXpath(this.pin.locator.xpath); + const node = value.singleNodeValue as HTMLElement; + if (!this.pin.visible || !node || isElementHidden(node)) { + // will be created on invalidate + PinPendingStore.add(this.pin); + return false; + } + const pinData = await new CreatePinDataCommand(node, this.pin.locator.offset, this.pin).execute(); + // CHECK IF CREATED + if (pinData) return true; + PinPendingStore.add(this.pin); + return false; + } +} diff --git a/src/content-script/command/pin/invalidate-pins.command.ts b/src/content-script/command/pin/invalidate-pins.command.ts new file mode 100644 index 0000000..a7a2298 --- /dev/null +++ b/src/content-script/command/pin/invalidate-pins.command.ts @@ -0,0 +1,67 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CreateLinkCommand } from '../link/create-link.command'; +import { CreatePinXpathCommand } from './create-pin-xpath.command'; +import { ObjectTypeDto } from '@common/model/html.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinPendingStore } from '../../store/pin-pending.store'; +import { PinStore } from '../../store/pin.store'; +import { RuntimePinGetHrefCommand } from '../runtime/runtime-pin-get-href.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { fnNormalizeHref } from '@common/fn/normalize.url.fn'; +import { isElementHidden } from '../../fn/is-element-hidden'; +import ICommand = Pinmenote.Common.ICommand; + +export class InvalidatePinsCommand implements ICommand> { + constructor(private href: string) {} + async execute(): Promise { + // TODO invalidate if pin element exists and show hide pins based on it + // Sometimes location is changed without popstate event ex. click on youtube video + const href = fnNormalizeHref(window.location.href); + if (this.href !== href) { + fnConsoleLog('PinManager->invalidatePins->CLEAR href changed'); + await new RuntimePinGetHrefCommand().execute(); + PinStore.clear(); + return; + } + // Check for pending pins that should be on page but are not displayed + // might be deferred rendering and stuff like that + const pinList = PinPendingStore.values; + for (const pin of pinList) { + switch (pin.type) { + case ObjectTypeDto.Pin: + if (await new CreatePinXpathCommand(pin as PinObject).execute()) { + PinPendingStore.remove(pin.uid); + } + break; + case ObjectTypeDto.Link: + if (new CreateLinkCommand(pin).execute()) { + PinPendingStore.remove(pin.uid); + } + break; + } + } + // Ok so check if we displayed on some elements that are not visible + PinStore.each((pinData) => { + if (isElementHidden(pinData.ref)) { + const data = PinStore.delByUid(pinData.object.uid); + if (data) PinPendingStore.add(data.object); + } + if (!pinData.isDrag) pinData.resize(); + }); + } +} diff --git a/src/content-script/command/pin/pin-focus.command.ts b/src/content-script/command/pin/pin-focus.command.ts new file mode 100644 index 0000000..6a1b3c2 --- /dev/null +++ b/src/content-script/command/pin/pin-focus.command.ts @@ -0,0 +1,30 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject } from '@common/model/pin.model'; +import { PinStore } from '../../store/pin.store'; +import { resolveVideoTime } from '../../fn/resolve-video-time'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinFocusCommand implements ICommand { + constructor(private data?: PinObject) {} + execute(): void { + if (!this.data) return; + PinStore.focusPin(this.data); + // TODO fixme + setTimeout(() => resolveVideoTime(this.data?.content.videoTime), 1000); + } +} diff --git a/src/content-script/command/pin/pin-get-href.command.ts b/src/content-script/command/pin/pin-get-href.command.ts new file mode 100644 index 0000000..847f724 --- /dev/null +++ b/src/content-script/command/pin/pin-get-href.command.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CreatePinXpathCommand } from './create-pin-xpath.command'; +import { PinObject } from '@common/model/pin.model'; +import { PinStore } from '../../store/pin.store'; +import { RuntimePinFocusCommand } from '../runtime/runtime-pin-focus.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinGetHrefCommand implements ICommand> { + constructor(private pins: PinObject[]) {} + async execute(): Promise { + fnConsoleLog('pin.manager->handlePinGetHref'); + PinStore.clear(); + for (const pin of this.pins) { + await new CreatePinXpathCommand(pin).execute(); + } + await new RuntimePinFocusCommand().execute(); + } +} diff --git a/src/content-script/command/pin/pin-get-id.command.ts b/src/content-script/command/pin/pin-get-id.command.ts new file mode 100644 index 0000000..bb80181 --- /dev/null +++ b/src/content-script/command/pin/pin-get-id.command.ts @@ -0,0 +1,28 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CreatePinXpathCommand } from './create-pin-xpath.command'; +import { PinObject } from '@common/model/pin.model'; +import ICommand = Pinmenote.Common.ICommand; +import { PinStore } from '../../store/pin.store'; + +export class PinGetIdCommand implements ICommand> { + constructor(private pin: PinObject) {} + async execute(): Promise { + PinStore.delByUid(this.pin.uid); + await new CreatePinXpathCommand(this.pin).execute(); + } +} diff --git a/src/content-script/command/pin/pin-navigate.command.ts b/src/content-script/command/pin/pin-navigate.command.ts new file mode 100644 index 0000000..1ab8cdc --- /dev/null +++ b/src/content-script/command/pin/pin-navigate.command.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject } from '@common/model/pin.model'; +import { PinStore } from '../../store/pin.store'; +import { fnNormalizeHref } from '@common/fn/normalize.url.fn'; +import { resolveVideoTime } from '../../fn/resolve-video-time'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinNavigateCommand implements ICommand { + constructor(private data: PinObject) {} + execute(): void { + const url = fnNormalizeHref(window.location.href); + if (this.data.url.href === url) { + PinStore.focusPin(this.data); + resolveVideoTime(this.data.content.videoTime); + } else { + window.location.href = this.data.url.href; + } + } +} diff --git a/src/content-script/command/pin/pin-visible.command.ts b/src/content-script/command/pin/pin-visible.command.ts new file mode 100644 index 0000000..c2ee3f0 --- /dev/null +++ b/src/content-script/command/pin/pin-visible.command.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CreatePinXpathCommand } from './create-pin-xpath.command'; +import { PinObject } from '@common/model/pin.model'; +import { PinPendingStore } from '../../store/pin-pending.store'; +import { PinStore } from '../../store/pin.store'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinVisibleCommand implements ICommand> { + constructor(private pin: PinObject) {} + async execute(): Promise { + if (!this.pin.visible) { + PinStore.delByUid(this.pin.uid); + PinPendingStore.add(this.pin); + } else { + await new CreatePinXpathCommand(this.pin).execute(); + } + } +} diff --git a/src/content-script/command/runtime/runtime-login-refresh.command.ts b/src/content-script/command/runtime/runtime-login-refresh.command.ts new file mode 100644 index 0000000..cf7989e --- /dev/null +++ b/src/content-script/command/runtime/runtime-login-refresh.command.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class RuntimeLoginRefreshCommand implements ICommand> { + async execute(): Promise { + fnConsoleLog('handleContentLoginRefresh'); + await sendRuntimeMessage({ type: BusMessageType.CONTENT_LOGIN, data: window.location.origin }); + } +} diff --git a/src/content-script/command/runtime/runtime-pin-changed.command.ts b/src/content-script/command/runtime/runtime-pin-changed.command.ts new file mode 100644 index 0000000..c9319f6 --- /dev/null +++ b/src/content-script/command/runtime/runtime-pin-changed.command.ts @@ -0,0 +1,31 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class RuntimePinChangedCommand implements ICommand { + constructor(private changedIds: number[]) {} + async execute(): Promise { + for (const id of this.changedIds) { + await sendRuntimeMessage<{ id: number }>({ + type: BusMessageType.CONTENT_PIN_GET_ID, + data: { id } + }); + } + } +} diff --git a/src/content-script/command/runtime/runtime-pin-focus.command.ts b/src/content-script/command/runtime/runtime-pin-focus.command.ts new file mode 100644 index 0000000..dda9464 --- /dev/null +++ b/src/content-script/command/runtime/runtime-pin-focus.command.ts @@ -0,0 +1,32 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class RuntimePinFocusCommand implements ICommand> { + async execute(): Promise { + try { + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_FOCUS + }); + } catch (e: unknown) { + fnConsoleLog('PinNavigationManager->focus', e); + } + } +} diff --git a/src/content-script/command/runtime/runtime-pin-get-href.command.ts b/src/content-script/command/runtime/runtime-pin-get-href.command.ts new file mode 100644 index 0000000..40501a3 --- /dev/null +++ b/src/content-script/command/runtime/runtime-pin-get-href.command.ts @@ -0,0 +1,30 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { contentPinNewUrl } from '@common/fn/pin/content-pin-new-url'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class RuntimePinGetHrefCommand implements ICommand> { + async execute(): Promise { + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_GET_HREF, + data: contentPinNewUrl() + }); + } +} diff --git a/src/content-script/components/action-bar/action-bar.component.ts b/src/content-script/components/action-bar/action-bar.component.ts new file mode 100644 index 0000000..615f418 --- /dev/null +++ b/src/content-script/components/action-bar/action-bar.component.ts @@ -0,0 +1,62 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { MoveIconComponent } from './move-icon.component'; +import { ParentIconComponent } from './parent-icon.component'; +import { PinObject } from '@common/model/pin.model'; +import { RemoveIconComponent } from './remove-icon.component'; +import { applyStylesToElement } from '@common/style.utils'; + +const actionBtnStyles = { + display: 'flex', + 'min-height': '15px', + 'max-height': '15px', + 'background-color': '#ffffff', + color: '#000000', + 'justify-content': 'flex-end' +}; + +export class ActionBarComponent { + private moveIcon: MoveIconComponent; + private parentIcon: ParentIconComponent; + private removeIcon: RemoveIconComponent; + + constructor(private pin: PinObject, private ref: HTMLElement) { + this.moveIcon = new MoveIconComponent(pin); + this.parentIcon = new ParentIconComponent(pin, ref); + this.removeIcon = new RemoveIconComponent(pin); + } + render(): HTMLElement { + const el = document.createElement('div'); + applyStylesToElement(el, actionBtnStyles); + /* TODO drag drop + el.draggable = true; + el.addEventListener('dragstart', () => { + fnConsoleLog('drag'); + }) + */ + el.appendChild(this.moveIcon.render()); + el.appendChild(this.parentIcon.render()); + el.appendChild(this.removeIcon.render()); + return el; + } + + cleanup(): void { + this.moveIcon.cleanup(); + this.parentIcon.cleanup(); + this.removeIcon.cleanup(); + } +} diff --git a/src/content-script/components/action-bar/move-icon.component.ts b/src/content-script/components/action-bar/move-icon.component.ts new file mode 100644 index 0000000..148a2e2 --- /dev/null +++ b/src/content-script/components/action-bar/move-icon.component.ts @@ -0,0 +1,67 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinDragStore } from '../../store/pin-drag.store'; +import { PinObject } from '@common/model/pin.model'; +import { applyStylesToElement } from '@common/style.utils'; +import { iconButtonStyles } from '../styles/icon-button.styles'; + +export class MoveIconComponent { + private start = { x: 0, y: 0 }; + private last = { x: 0, y: 0 }; + private el = document.createElement('div'); + constructor(private pin: PinObject) {} + + render(): HTMLElement { + this.el.innerHTML = ` + + + `; + + this.el.addEventListener('mousedown', this.handleMouseDown); + applyStylesToElement(this.el, iconButtonStyles); + this.el.style.marginRight = '5px'; + return this.el; + } + + private handleMouseDown = (e: MouseEvent) => { + this.start.x = e.clientX; + this.start.y = e.clientY; + PinDragStore.startDragPin(this.pin); + if (PinDragStore.isDrag) { + document.addEventListener('mousemove', this.handleMouseMove); + document.addEventListener('mouseup', this.handleMouseUp); + } + }; + + private handleMouseMove = (e: MouseEvent) => { + this.last.x = e.clientX - this.start.x; + this.last.y = e.clientY - this.start.y; + PinDragStore.dragPin(this.last); + }; + + private handleMouseUp = async () => { + await PinDragStore.stopDragPin(this.last); + document.removeEventListener('mousemove', this.handleMouseMove); + document.removeEventListener('mouseup', this.handleMouseUp); + }; + + cleanup(): void { + this.el.removeEventListener('mousedown', this.handleMouseDown); + document.removeEventListener('mousemove', this.handleMouseMove); + document.removeEventListener('mouseup', this.handleMouseUp); + } +} diff --git a/src/content-script/components/action-bar/parent-icon.component.ts b/src/content-script/components/action-bar/parent-icon.component.ts new file mode 100644 index 0000000..1bf9822 --- /dev/null +++ b/src/content-script/components/action-bar/parent-icon.component.ts @@ -0,0 +1,55 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject } from '@common/model/pin.model'; +import { PinStore } from '../../store/pin.store'; +import { applyStylesToElement } from '@common/style.utils'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { iconButtonStyles } from '../styles/icon-button.styles'; + +export class ParentIconComponent { + private el = document.createElement('div'); + constructor(private pin: PinObject, private ref: HTMLElement) {} + render(): HTMLElement { + this.el.innerHTML = ` + + + `; + + this.el.addEventListener('click', this.handleClick); + + applyStylesToElement(this.el, iconButtonStyles); + + this.el.style.marginRight = '5px'; + + return this.el; + } + + private handleClick = async (): Promise => { + if (this.ref.parentElement?.tagName === 'BODY') { + fnConsoleLog(`No parent for note ${this.pin.uid}`); + return; + } + await PinStore.pinToParent(this.pin, this.ref.parentElement); + if (this.ref.parentElement) { + this.ref = this.ref.parentElement; + } + }; + + cleanup(): void { + this.el.removeEventListener('click', this.handleClick); + } +} diff --git a/src/content-script/components/action-bar/remove-icon.component.ts b/src/content-script/components/action-bar/remove-icon.component.ts new file mode 100644 index 0000000..e6c62bd --- /dev/null +++ b/src/content-script/components/action-bar/remove-icon.component.ts @@ -0,0 +1,44 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { applyStylesToElement } from '@common/style.utils'; +import { iconButtonStyles } from '../styles/icon-button.styles'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class RemoveIconComponent { + private el = document.createElement('div'); + constructor(private pin: PinObject) {} + + render(): HTMLElement { + this.el.innerHTML = ` + + `; + this.el.addEventListener('click', this.handleClick); + applyStylesToElement(this.el, iconButtonStyles); + return this.el; + } + + cleanup(): void { + this.el.removeEventListener('click', this.handleClick); + } + + private handleClick = async () => { + this.el.removeEventListener('click', this.handleClick); + await sendRuntimeMessage({ type: BusMessageType.CONTENT_PIN_REMOVE, data: this.pin }); + }; +} diff --git a/src/content-script/components/editor.component.ts b/src/content-script/components/editor.component.ts new file mode 100644 index 0000000..cfd4c9f --- /dev/null +++ b/src/content-script/components/editor.component.ts @@ -0,0 +1,113 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PIN_HASHTAG_REGEX, PinObject, PinUpdateObject } from '@common/model/pin.model'; +import { BusMessageType } from '@common/model/bus.model'; +import { EditorView } from 'prosemirror-view'; +import { createTextEditorState } from '@common/components/text-editor/text.editor.state'; +import { defaultMarkdownSerializer } from 'prosemirror-markdown'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { scrollToElementFn } from '../fn/scroll-to-element.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class EditorComponent { + private el = document.createElement('div'); + + private editorView?: EditorView; + + constructor(private pin: PinObject) {} + + render(): HTMLElement { + this.el.style.width = `${this.pin.size.width}px`; + this.el.style.height = `${this.pin.size.height}px`; + + this.editorView = this.createEditor(); + // FIXME resize prosemirror element differently + setTimeout(this.deferredResize, 0); + + this.el.addEventListener('mouseup', this.handleMouseUp); + return this.el; + } + + cleanup(): void { + this.editorView?.destroy(); + this.el.removeEventListener('mouseup', this.handleMouseUp); + } + + focus(goto = false): void { + if (goto) scrollToElementFn(this.editorView?.dom, this.pin.size.height); + this.editorView?.focus(); + } + + private deferredResize = () => { + const div: HTMLDivElement = this.el.getElementsByClassName('ProseMirror')[0] as HTMLDivElement; + if (!div) return; + div.style.width = `${this.pin.size.width}px`; + div.style.height = `${this.pin.size.height}px`; + }; + + private handleMouseUp = async () => { + await this.resizeTextArea(); + }; + + private createEditor(): EditorView { + let state = createTextEditorState(this.pin.value); + return new EditorView(this.el, { + state, + handleKeyDown: (view: EditorView, event: KeyboardEvent) => { + event.stopImmediatePropagation(); + }, + dispatchTransaction: async (tx) => { + state = state.apply(tx); + this.editorView?.updateState(state); + await this.resizeTextArea(); + const value = defaultMarkdownSerializer.serialize(state.doc); + /// TODO calculate old -> new hash list here + const oldMatch = this.pin.value.match(PIN_HASHTAG_REGEX); + const newMatch = value.match(PIN_HASHTAG_REGEX); + fnConsoleLog('old', oldMatch, 'new', newMatch); + this.pin.value = value; + try { + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_UPDATE, + data: { + pin: this.pin, + oldHashtag: oldMatch ? Array.from(oldMatch) : [], + newHashtag: newMatch ? Array.from(newMatch) : [] + } + }); + } catch (e) { + fnConsoleLog('ERROR UPDATE PIN', e); + } + } + }); + } + + private resizeTextArea = async () => { + const div: HTMLDivElement = this.el.getElementsByClassName('ProseMirror')[0] as HTMLDivElement; + if (div) { + this.pin.size.width = Math.round(div.offsetWidth); + this.pin.size.height = Math.round(div.offsetHeight); + this.el.style.width = `${this.pin.size.width}px`; + this.el.style.height = `${this.pin.size.height}px`; + } + try { + await sendRuntimeMessage({ type: BusMessageType.CONTENT_PIN_UPDATE, data: { pin: this.pin } }); + } catch (e) { + fnConsoleLog(e); + } + }; +} diff --git a/src/content-script/components/html-link.component.ts b/src/content-script/components/html-link.component.ts new file mode 100644 index 0000000..c2e0536 --- /dev/null +++ b/src/content-script/components/html-link.component.ts @@ -0,0 +1,115 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlComponent, HtmlObject } from '@common/model/html.model'; +import { BorderStore } from '../store/border.store'; +import { applyStylesToElement } from '@common/style.utils'; +import { contentCalculatePinPoint } from '../fn/content-calculate-pin-point'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { pinStyles } from './styles/pin.styles'; +import { scrollToElementFn } from '../fn/scroll-to-element.fn'; +import PinPoint = Pinmenote.Pin.PinPoint; + +class ScrollCheck { + private lastPosition = 0; + private noChanged = 0; + private maxNoChanged = 5; + constructor(private targetPosition: number) {} + + get isTarget(): boolean { + const scrollY = window.scrollY; + + // Check if changed and if not increase security mark for infinite setInterval + scrollY === this.lastPosition ? this.noChanged++ : (this.noChanged = 0); + if (this.noChanged >= this.maxNoChanged) return true; + + this.lastPosition = scrollY; + + return this.targetPosition > 0 && Math.abs(scrollY - this.targetPosition) > 5; + } +} + +export class HtmlLinkComponent implements HtmlComponent { + private el = document.createElement('div'); + private xy?: PinPoint; + private scrollCheck?: ScrollCheck; + + ref: HTMLElement; + readonly object: HtmlObject; + private readonly size = { + width: 163, + height: 34 + }; + + constructor(ref: HTMLElement, object: HtmlObject) { + this.el.id = object.uid; + this.ref = ref; + this.object = object; + } + + get isDrag(): boolean { + return true; + } + + render(): HTMLElement { + this.ref.style.border = BorderStore.borderStyle; + this.ref.style.borderRadius = BorderStore.borderRadius; + const s = document.createElement('div'); + s.innerText = this.object.value; + this.el.appendChild(s); + return this.el; + } + + private apply = (): void => { + if (!this.scrollCheck?.isTarget) { + setTimeout(this.apply, 100); + } else { + this.xy = contentCalculatePinPoint( + this.ref, + this.size, + this.object.locator.elementSize, + this.object.locator.offset + ); + const styles = Object.assign( + { + left: `${Math.floor(this.xy.x)}px`, + top: `${Math.floor(this.xy.y)}px`, + border: BorderStore.borderStyle, + 'border-radius': BorderStore.borderRadius + }, + pinStyles + ); + applyStylesToElement(this.el, styles); + } + }; + + cleanup(): void { + this.el.remove(); + } + + focus(goto: boolean): void { + if (goto) { + const position = scrollToElementFn(this.ref, this.size.height); + this.scrollCheck = new ScrollCheck(position); + } + this.el.focus(); + this.apply(); + } + + resize(): void { + fnConsoleLog('resize'); + } +} diff --git a/src/content-script/components/pin.component.ts b/src/content-script/components/pin.component.ts new file mode 100644 index 0000000..2540387 --- /dev/null +++ b/src/content-script/components/pin.component.ts @@ -0,0 +1,111 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ActionBarComponent } from './action-bar/action-bar.component'; +import { BorderStore } from '../store/border.store'; +import { EditorComponent } from './editor.component'; +import { HtmlComponent } from '@common/model/html.model'; +import { PinObject } from '@common/model/pin.model'; +import { applyStylesToElement } from '@common/style.utils'; +import { contentCalculatePinPoint } from '../fn/content-calculate-pin-point'; +import { pinStyles } from './styles/pin.styles'; +import PinPoint = Pinmenote.Pin.PinPoint; + +export class PinComponent implements HtmlComponent { + private el = document.createElement('div'); + private editor: EditorComponent; + private actionbar: ActionBarComponent; + private xy: PinPoint; + private drag = false; + + ref: HTMLElement; + readonly object: PinObject; + + constructor(ref: HTMLElement, pin: PinObject) { + this.el.id = pin.uid; + this.ref = ref; + this.object = pin; + this.xy = contentCalculatePinPoint(this.ref, pin.size, pin.locator.elementSize, pin.locator.offset); + this.actionbar = new ActionBarComponent(pin, ref); + this.editor = new EditorComponent(this.object); + } + + focus(goto = false): void { + this.editor.focus(goto); + } + + get container(): HTMLElement { + return this.el; + } + + render(): HTMLElement { + const styles = Object.assign( + { + left: `${this.xy.x}px`, + top: `${this.xy.y}px`, + border: BorderStore.borderStyle, + 'border-radius': BorderStore.borderRadius + }, + pinStyles + ); + + applyStylesToElement(this.el, styles); + this.el.appendChild(this.actionbar.render()); + + this.el.appendChild(this.editor.render()); + + return this.el; + } + + startDrag(): void { + this.drag = true; + } + + updateDrag(value: PinPoint): void { + const newX = this.xy.x + value.x; + const newY = this.xy.y + value.y; + this.el.style.left = `${newX}px`; + this.el.style.top = `${newY}px`; + } + + stopDrag(value: PinPoint): void { + const { offset, elementSize } = this.object.locator; + offset.x = offset.x + value.x; + offset.y = offset.y + value.y; + this.object.locator.offset = offset; + this.xy = contentCalculatePinPoint(this.ref, this.object.size, elementSize, offset); + this.drag = false; + } + + get isDrag(): boolean { + return this.drag; + } + + resize(): void { + const { elementSize, offset } = this.object.locator; + this.xy = contentCalculatePinPoint(this.ref, this.object.size, elementSize, offset); + this.el.style.left = `${this.xy.x}px`; + this.el.style.top = `${this.xy.y}px`; + } + + cleanup(): void { + this.ref.style.border = this.object.border.style; + this.ref.style.borderRadius = this.object.border.radius; + this.actionbar.cleanup(); + this.editor.cleanup(); + this.el.remove(); + } +} diff --git a/src/content-script/components/styles/icon-button.styles.ts b/src/content-script/components/styles/icon-button.styles.ts new file mode 100644 index 0000000..a311fe9 --- /dev/null +++ b/src/content-script/components/styles/icon-button.styles.ts @@ -0,0 +1,29 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const iconButtonStyles = { + border: '0px', + 'border-radius': '0px', + color: '#000000', + 'font-family': 'Roboto,serif', + 'font-weight': 'normal', + 'text-transform': 'none', + 'line-height': '100%', + 'background-color': '#ffffff', + padding: '0', + margin: '0', + cursor: 'pointer' +}; diff --git a/src/content-script/components/styles/pin.styles.ts b/src/content-script/components/styles/pin.styles.ts new file mode 100644 index 0000000..107fc90 --- /dev/null +++ b/src/content-script/components/styles/pin.styles.ts @@ -0,0 +1,29 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const pinStyles = { + 'box-sizing': 'border-box', + 'background-color': '#ffffff', + 'border-alpha': '0.5', + padding: '5px', + minWidth: '200px', + minHeight: '50px', + position: 'absolute', + 'font-family': 'Roboto,serif', + 'z-index': 'calc(9e999)', // https://stackoverflow.com/questions/1118198/how-can-you-figure-out-the-highest-z-index-in-your-document + display: 'flex', + 'flex-direction': 'column' +}; diff --git a/src/content-script/content-message.handler.ts b/src/content-script/content-message.handler.ts new file mode 100644 index 0000000..763a463 --- /dev/null +++ b/src/content-script/content-message.handler.ts @@ -0,0 +1,99 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserGlobalSender, BusMessage, BusMessageType } from '@common/model/bus.model'; +import { DocumentMediator } from './mediator/document.mediator'; +import { HtmlObject } from '@common/model/html.model'; +import { PinAddElementStore } from './store/pin-add-element.store'; +import { PinFocusCommand } from './command/pin/pin-focus.command'; +import { PinGetHrefCommand } from './command/pin/pin-get-href.command'; +import { PinGetIdCommand } from './command/pin/pin-get-id.command'; +import { PinNavigateCommand } from './command/pin/pin-navigate.command'; +import { PinPopupInitData } from '@common/model/pin.model'; +import { PinStore } from './store/pin.store'; +import { PinVisibleCommand } from './command/pin/pin-visible.command'; +import { RuntimeLoginRefreshCommand } from './command/runtime/runtime-login-refresh.command'; +import { RuntimePinChangedCommand } from './command/runtime/runtime-pin-changed.command'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { contentPinNewUrl } from '@common/fn/pin/content-pin-new-url'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class ContentMessageHandler { + static start(): void { + fnBrowserApi().runtime.onMessage.addListener(this.handleMessage); + TinyEventDispatcher.addListener(BusMessageType.POPUP_OPEN, this.handlePopupOpen); + } + + static cleanup(): void { + fnBrowserApi().runtime.onMessage.removeListener(this.handleMessage); + } + + private static handleMessage = async ( + msg: BusMessage, + runtime: BrowserGlobalSender, + sendResponse: (response: BusMessage) => void + ): Promise => { + if (![BusMessageType.CONTENT_TIMEOUT, BusMessageType.CONTENT_TIMEOUT_SET].includes(msg.type)) { + fnConsoleLog('content-script->msg', Date.now(), msg); + } + sendResponse({ + type: BusMessageType.CONTENT_ACK + }); + switch (msg.type) { + case BusMessageType.POPUP_PIN_START: + DocumentMediator.startListeners(); + break; + case BusMessageType.POPUP_PIN_STOP: + DocumentMediator.stopListeners(); + break; + case BusMessageType.CONTENT_PIN_CHANGED: + await new RuntimePinChangedCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_NAVIGATE: + new PinNavigateCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_FOCUS: + new PinFocusCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_GET_HREF: + await new PinGetHrefCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_REMOVE: + PinStore.delByUid((msg.data as HtmlObject).uid); + break; + case BusMessageType.CONTENT_PIN_GET_ID: + await new PinGetIdCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_VISIBLE: + await new PinVisibleCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_LOGIN_REFRESH: + await new RuntimeLoginRefreshCommand().execute(); + break; + default: + TinyEventDispatcher.dispatch(msg.type, msg.data); + break; + } + }; + + private static handlePopupOpen = async (): Promise => { + const url = contentPinNewUrl(); + const data: PinPopupInitData = { url, isAddingNote: PinAddElementStore.hasElement }; + await sendRuntimeMessage({ type: BusMessageType.POPUP_INIT, data }); + }; +} diff --git a/src/content-script/content-script.ts b/src/content-script/content-script.ts new file mode 100644 index 0000000..3a1725e --- /dev/null +++ b/src/content-script/content-script.ts @@ -0,0 +1,169 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +/* URL-s Not transformed correctly +import '@fontsource/roboto/300.css'; +import '@fontsource/roboto/400.css'; +import '@fontsource/roboto/500.css'; +import '@fontsource/roboto/700.css'; +*/ + +import '../css/prosemirror.css'; + +import { BusMessageType, TimeoutMessage } from '@common/model/bus.model'; +import { ContentExtensionData, ContentSettingsData, ExtensionTheme } from '@common/model/settings.model'; +import { fnConsoleError, fnConsoleLog } from '@common/fn/console.fn'; +import { BorderStore } from './store/border.store'; +import { ContentMessageHandler } from './content-message.handler'; +import { CreateLinkCommand } from './command/link/create-link.command'; +import { DocumentMediator } from './mediator/document.mediator'; +import { InvalidatePinsCommand } from './command/pin/invalidate-pins.command'; +import { PinStore } from './store/pin.store'; +import { RuntimePinGetHrefCommand } from './command/runtime/runtime-pin-get-href.command'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { WindowMediator } from './mediator/window.mediator'; +import { environmentConfig } from '@common/environment'; +import { fnNormalizeHref } from '@common/fn/normalize.url.fn'; +import { fnUid } from '@common/fn/uid.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import LinkDto = Pinmenote.Pin.LinkDto; + +class PinMeScript { + private href: string; + private redirectInterval = 0; + + constructor(private readonly id: string, private ms: number) { + this.href = fnNormalizeHref(window.location.href); + WindowMediator.start(); + ContentMessageHandler.start(); + document.addEventListener('visibilitychange', this.handleVisibilityChange); + TinyEventDispatcher.addListener(BusMessageType.CONTENT_SETTINGS, this.handleContentSettings); + TinyEventDispatcher.addListener(BusMessageType.CNT_SETTINGS, this.handlePinSettings); + TinyEventDispatcher.dispatch(BusMessageType.CNT_SETTINGS, {}); + + TinyEventDispatcher.addListener(BusMessageType.CONTENT_TIMEOUT, this.handleContentTimeout); + TinyEventDispatcher.addListener(BusMessageType.CONTENT_LINK_ADD, (event, key, value) => { + location.href = value.url.href; + }); + } + + private handleContentTimeout = async (event: string, key: string, value: TimeoutMessage) => { + if (value.id === this.id) { + await new InvalidatePinsCommand(this.href).execute(); + this.href = fnNormalizeHref(window.location.href); + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_TIMEOUT, + data: { id: this.id, ms: this.ms } + }); + this.adaptIntervalMs(); + } + }; + + private handleContentSettings = async (event: string, key: string, data: ContentSettingsData) => { + BorderStore.setBorderSettings(data); + if (data.link) new CreateLinkCommand(data.link).execute(); + await new RuntimePinGetHrefCommand().execute(); + await this.initialTimeout(); + }; + + private handlePinSettings = async (event: string, key: string): Promise => { + this.checkForLink(); + TinyEventDispatcher.removeListener(event, key); + const theme = window.matchMedia('(prefers-color-scheme: light)').matches + ? ExtensionTheme.LIGHT + : ExtensionTheme.DARK; + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_SETTINGS, + data: { + href: this.href, + theme + } + }); + }; + + private checkForLink(): void { + if (!window.location.href.startsWith(environmentConfig.shortUrl)) return; + this.redirectInterval = window.setInterval(this.redirect, 100); + } + + private redirect = async (): Promise => { + const urlData = document.getElementById('urlData'); + if (urlData) { + clearInterval(this.redirectInterval); + if (urlData.innerText) { + const { data } = JSON.parse(urlData.innerText); + await sendRuntimeMessage({ type: BusMessageType.CONTENT_LINK_ADD, data }); + } + } + }; + + private handleVisibilityChange = async (e: Event): Promise => { + fnConsoleLog('visibilitychange', e); + await this.initialTimeout(); + try { + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_CHANGED + }); + } catch (e) { + fnConsoleLog('PROBLEM->handleVisibilityChange !!!', e); + this.cleanup(); + } + }; + + private async initialTimeout(): Promise { + fnConsoleLog('initialTimeout'); + try { + // TODO move to settings + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_TIMEOUT, + data: { id: this.id, ms: this.ms } + }); + this.adaptIntervalMs(); + } catch (e) { + fnConsoleLog('PROBLEM->initialTimeout !!!', e); + this.cleanup(); + } + } + + private cleanup(): void { + document.removeEventListener('visibilitychange', this.handleVisibilityChange); + TinyEventDispatcher.cleanup(); + DocumentMediator.stopListeners(); + PinStore.clear(); + WindowMediator.cleanup(); + ContentMessageHandler.cleanup(); + } + + private adaptIntervalMs() { + switch (this.ms) { + case 250: + this.ms = 500; + break; + case 500: + this.ms = 1000; + break; + default: + this.ms = 2000; + break; + } + } +} +try { + new PinMeScript(fnUid(), 250); + fnConsoleLog('PinMeScript -> STARTED !!!'); +} catch (e: unknown) { + fnConsoleError('PROBLEM !!!', e); +} diff --git a/src/content-script/fn/content-calculate-pin-point.ts b/src/content-script/fn/content-calculate-pin-point.ts new file mode 100644 index 0000000..308a5ad --- /dev/null +++ b/src/content-script/fn/content-calculate-pin-point.ts @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import PinSize = Pinmenote.Pin.PinSize; +import PinRectangle = Pinmenote.Pin.PinRectangle; +import PinPoint = Pinmenote.Pin.PinPoint; + +export const contentCalculatePinPoint = ( + ref: HTMLElement, + pinSize: PinSize, + elementSize: PinRectangle, + offset: PinPoint +): PinPoint => { + const rect = ref.getBoundingClientRect(); + const offsetScaleX = rect.width / elementSize.width; + const offsetScaleY = rect.height / elementSize.height; + let x = rect.left + offset.x * offsetScaleX + window.scrollX; + const y = rect.top + offset.y * offsetScaleY + window.scrollY; + // TODO move only required width to fit + if (x + pinSize.width > window.innerWidth) { + x = rect.right - pinSize.width; + } + /* NOT WORKING + if (y + dto.size.height > window.innerHeight + document.body.scrollHeight) { + y = rect.bottom; + }*/ + return { x, y }; +}; diff --git a/src/content-script/fn/content-pin-new.ts b/src/content-script/fn/content-pin-new.ts new file mode 100644 index 0000000..e351437 --- /dev/null +++ b/src/content-script/fn/content-pin-new.ts @@ -0,0 +1,169 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlContent, ObjectTypeDto } from '@common/model/html.model'; +import { PinObject, PinViewType } from '@common/model/pin.model'; +import { fnComputeCssContent, fnComputeHtmlContent } from '@common/fn/compute.element.fn'; +import { BusMessageType } from '@common/model/bus.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { contentPinNewUrl } from '@common/fn/pin/content-pin-new-url'; +import { fnImgResize } from '@common/fn/img.resize.fn'; +import { fnUid } from '@common/fn/uid.fn'; +import { fnXpath } from '@common/fn/xpath.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import LinkLocator = Pinmenote.Pin.LinkLocator; +import PinPoint = Pinmenote.Pin.PinPoint; + +export const contentPinNew = async (ref: HTMLElement, offset: PinPoint): Promise => { + // Roll back border to take snapshot + const uid = fnUid(); + const locator: LinkLocator = computeLinkLocator(ref, offset); + const content: HtmlContent = computePinContent(ref); + const dt = new Date().toISOString(); + const dto: PinObject = { + id: -1, + uid, + type: ObjectTypeDto.Pin, + version: 1, + visible: true, + createdDate: dt, + updatedDate: dt, + viewType: PinViewType.SCREENSHOT, + url: contentPinNewUrl(), + locator, + content, + value: '', + size: { + width: 163, + height: 34 + }, + border: { + radius: ref.style.borderRadius, + style: ref.style.border + } + }; + + return new Promise((resolve, reject) => { + // Crop screenshot function + let id = -1; + TinyEventDispatcher.addListener( + BusMessageType.CONTENT_PIN_SCREENSHOT, + async (event: string, key: string, value: string) => { + TinyEventDispatcher.removeListener(event, key); + // add pin with screenshot + dto.id = id; + await addNewPinWithScreenshot(dto, value, resolve); + } + ); + TinyEventDispatcher.addListener(BusMessageType.CONTENT_PIN_ID, (event, key, value) => { + TinyEventDispatcher.removeListener(event, key); + id = value; + sendGetPinTakeScreenshot(reject); + }); + sendGetPinNextId(reject); + }); +}; + +const computeLinkLocator = (ref: HTMLElement, offset: PinPoint): LinkLocator => { + const rect = ref.getBoundingClientRect(); + const xpath = fnXpath(ref); + return { + xpath, + offset, + elementSize: { + x: Math.round(rect.x), + y: Math.round(rect.y), + width: Math.round(rect.width), + height: Math.round(rect.height) + } + }; +}; + +const computePinContent = (ref: HTMLElement): HtmlContent => { + const bodyStyle = document.body.getAttribute('style') || undefined; + const title = document.title; + const htmlContent = fnComputeHtmlContent(ref); + // fnConsoleLog('HTML :', htmlContent); + let parent = ref.parentElement; + // MAYBE WILL HELP - COMPUTE PARENT STYLES UP TO BODY + // fnConsoleLog('1: ', htmlContent.cssStyles, parent); + while (parent && parent.tagName.toLowerCase() !== 'html') { + const attr = parent.getAttributeNode('class'); + if (attr) { + const a = attr.value.split(' ').filter((e) => !!e); + htmlContent.cssStyles.push(...a.map((e) => `.${e}`)); + } + // fnConsoleLog('ADD : ', parent.tagName); + htmlContent.cssStyles.push(parent.tagName); + parent = parent.parentElement; + } + // fnConsoleLog('2:', htmlContent.cssStyles, parent); + + const css = fnComputeCssContent(htmlContent.cssStyles); + const elementText = ref.innerText; + const isLightTheme = window.matchMedia('(prefers-color-scheme: light)').matches; + return { + theme: isLightTheme ? 'light' : 'dark', + bodyStyle, + title, + html: htmlContent.html, + videoTime: htmlContent.videoTime, + css, + elementText + }; +}; + +const sendGetPinNextId = (reject: (value: string) => void) => { + sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_ID + }) + .then(() => { + // We handle it above, inside dispatcher + }) + .catch(() => { + reject('PROBLEM !!!'); + }); +}; + +const sendGetPinTakeScreenshot = (reject: (value: string) => void) => { + sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_SCREENSHOT + }) + .then(() => { + // We handle it above, inside dispatcher + }) + .catch(() => { + reject('PROBLEM !!!'); + }); +}; + +const addNewPinWithScreenshot = async ( + dto: PinObject, + screenshot: string, + resolve: (value: PinObject) => void +): Promise => { + // Let's resize screenshot and resolve promise + try { + screenshot = await fnImgResize(dto, screenshot); + } finally { + dto.screenshot = screenshot; + } + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_ADD, + data: dto + }); + resolve(dto); +}; diff --git a/src/content-script/fn/content-swap-pin.ts b/src/content-script/fn/content-swap-pin.ts new file mode 100644 index 0000000..d35610d --- /dev/null +++ b/src/content-script/fn/content-swap-pin.ts @@ -0,0 +1,82 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnComputeCssContent, fnComputeHtmlContent } from '@common/fn/compute.element.fn'; +import { BorderStore } from '../store/border.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinComponent } from '../components/pin.component'; +import { PinUpdateObject } from '@common/model/pin.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { fnImgResize } from '@common/fn/img.resize.fn'; +import { fnSleep } from '@common/fn/sleep.fn'; +import { fnXpath } from '@common/fn/xpath.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export const contentSwapPin = async (pinData: PinComponent, element: HTMLElement): Promise => { + pinData.container.style.display = 'none'; + pinData.ref.style.border = pinData.object.border.style; + pinData.ref.style.borderRadius = pinData.object.border.radius; + await fnSleep(100); + pinData.ref = element; + pinData.object.locator.xpath = fnXpath(element); + pinData.object.content.elementText = element.innerText; + + const htmlContent = fnComputeHtmlContent(element); + const css = fnComputeCssContent(htmlContent.cssStyles); + + pinData.object.content.html = htmlContent.html; + pinData.object.content.videoTime = htmlContent.videoTime; + pinData.object.content.css = css; + + const rect = element.getBoundingClientRect(); + pinData.object.locator.elementSize = { + x: Math.round(rect.x), + y: Math.round(rect.y), + width: Math.round(rect.width), + height: Math.round(rect.height) + }; + pinData.object.locator.offset = { x: 0, y: 0 }; + + return new Promise((resolve, reject) => { + sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_SCREENSHOT + }) + .then(() => { + // We handle it above, inside dispatcher + }) + .catch(() => { + pinData.container.style.display = 'inline-block'; + reject('PROBLEM !!!'); + }); + TinyEventDispatcher.addListener(BusMessageType.CONTENT_PIN_SCREENSHOT, async (event, key, value) => { + // After taking screenshot let's go back to note styles + pinData.container.style.display = 'inline-block'; + element.style.border = BorderStore.borderStyle; + element.style.borderRadius = BorderStore.borderRadius; + + TinyEventDispatcher.removeListener(event, key); + + pinData.object.screenshot = await fnImgResize(pinData.object, value); + + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_UPDATE, + data: { pin: pinData.object } + }); + + resolve(); + }); + }); +}; diff --git a/src/content-script/fn/is-element-hidden.ts b/src/content-script/fn/is-element-hidden.ts new file mode 100644 index 0000000..1f62c33 --- /dev/null +++ b/src/content-script/fn/is-element-hidden.ts @@ -0,0 +1,20 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const isElementHidden = (el: HTMLElement): boolean => { + const style = window.getComputedStyle(el); + return style.display === 'none' || el.offsetParent === null; // !document.body.contains(el); +}; diff --git a/src/content-script/fn/resolve-video-time.ts b/src/content-script/fn/resolve-video-time.ts new file mode 100644 index 0000000..1bf7f00 --- /dev/null +++ b/src/content-script/fn/resolve-video-time.ts @@ -0,0 +1,29 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ContentVideoTime } from '@common/model/html.model'; +import { fnFindElementXpath } from '@common/fn/xpath.fn'; + +export const resolveVideoTime = (videoTime?: ContentVideoTime[]): void => { + if (!videoTime) return; + for (const video of videoTime) { + const value = fnFindElementXpath(video.xpath); + const node = value.singleNodeValue as HTMLVideoElement; + if (!node) continue; + node.currentTime = video.currentTime; + node.pause(); + } +}; diff --git a/src/content-script/fn/scroll-to-element.fn.ts b/src/content-script/fn/scroll-to-element.fn.ts new file mode 100644 index 0000000..91f6598 --- /dev/null +++ b/src/content-script/fn/scroll-to-element.fn.ts @@ -0,0 +1,26 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export const scrollToElementFn = (view?: HTMLElement, offset?: number): number => { + if (!view) return -1; + const rect = view.getBoundingClientRect(); + const top = Math.max(rect.y - (offset || 0), 0); + window.scrollTo({ + top, + behavior: 'smooth' + }); + return top; +}; diff --git a/src/content-script/mediator/document.mediator.ts b/src/content-script/mediator/document.mediator.ts new file mode 100644 index 0000000..c5ee386 --- /dev/null +++ b/src/content-script/mediator/document.mediator.ts @@ -0,0 +1,45 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinAddElementStore } from '../store/pin-add-element.store'; + +export class DocumentMediator { + static startListeners(): void { + document.addEventListener('keydown', this.handleKeyDown); + document.addEventListener('mouseover', this.handleMouseOver); + } + + static stopListeners(): void { + document.removeEventListener('keydown', this.handleKeyDown); + document.removeEventListener('mouseover', this.handleMouseOver); + PinAddElementStore.clearElement(); + } + + private static handleKeyDown = (event: KeyboardEvent): void => { + if (event.key === 'Escape') { + this.stopListeners(); + } + }; + + private static handleMouseOver = (event: MouseEvent): void => { + if (PinAddElementStore.hasElement) { + PinAddElementStore.clearElement(); + } + if (event.target instanceof HTMLElement) { + PinAddElementStore.updateElement(event.target); + } + }; +} diff --git a/src/content-script/mediator/window.mediator.ts b/src/content-script/mediator/window.mediator.ts new file mode 100644 index 0000000..c6c843b --- /dev/null +++ b/src/content-script/mediator/window.mediator.ts @@ -0,0 +1,72 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinStore } from '../store/pin.store'; +import { RuntimeLoginRefreshCommand } from '../command/runtime/runtime-login-refresh.command'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; + +export class WindowMediator { + private static readonly ACCESS_TOKEN_EVENT = 'pinmenote.access.token'; + private static readonly REFRESH_TOKEN_RESPONSE_EVENT = 'pinmenote.refresh.token.response'; + private static readonly REFRESH_TOKEN_EVENT = 'pinmenote.refresh.token'; + + private static readonly LOGIN_EVENT = 'pinmenote.login'; + + static start(): void { + window.addEventListener(this.LOGIN_EVENT, this.handleContentLoginRefresh); + window.addEventListener(this.REFRESH_TOKEN_EVENT, this.handleRefreshToken); + window.addEventListener('resize', this.handleResize); + + TinyEventDispatcher.addListener(BusMessageType.CONTENT_LOGIN, this.handleLogin); + TinyEventDispatcher.addListener(BusMessageType.CONTENT_REFRESH_TOKEN, this.handleContentRefreshToken); + } + + static cleanup(): void { + window.removeEventListener(this.LOGIN_EVENT, this.handleContentLoginRefresh); + window.removeEventListener(this.REFRESH_TOKEN_EVENT, this.handleRefreshToken); + window.removeEventListener('resize', this.handleResize); + } + + private static handleContentLoginRefresh = async () => { + await new RuntimeLoginRefreshCommand().execute(); + }; + + private static handleRefreshToken = async () => { + fnConsoleLog('handleRefreshToken'); + await sendRuntimeMessage({ type: BusMessageType.CONTENT_REFRESH_TOKEN, data: window.location.origin }); + }; + + // Move to message manager + private static handleContentRefreshToken = () => { + fnConsoleLog('content-script->handleContentRefrehToken'); + window.dispatchEvent(new Event(this.REFRESH_TOKEN_RESPONSE_EVENT)); + }; + + private static handleLogin = (event: string, key: string, value: AccessTokenDto | undefined) => { + fnConsoleLog('content-script->handleLogin', event, value); + window.dispatchEvent(new MessageEvent(this.ACCESS_TOKEN_EVENT, { data: value })); + }; + + private static handleResize = (): void => { + PinStore.each((pin) => { + pin.resize(); + }); + }; +} diff --git a/src/content-script/store/border.store.ts b/src/content-script/store/border.store.ts new file mode 100644 index 0000000..231bf2f --- /dev/null +++ b/src/content-script/store/border.store.ts @@ -0,0 +1,35 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ContentSettingsData } from '@common/model/settings.model'; + +export class BorderStore { + private static borderStyleValue = '2px solid #90caf9'; // TODO make it customizable + private static borderRadiusValue = '5px'; // TODO make it customizable + + static get borderStyle(): string { + return this.borderStyleValue; + } + + static get borderRadius(): string { + return this.borderRadiusValue; + } + + static setBorderSettings(data: ContentSettingsData) { + this.borderRadiusValue = data.borderRadius; + this.borderStyleValue = data.borderStyle; + } +} diff --git a/src/content-script/store/pin-add-element.store.ts b/src/content-script/store/pin-add-element.store.ts new file mode 100644 index 0000000..a5a9f4e --- /dev/null +++ b/src/content-script/store/pin-add-element.store.ts @@ -0,0 +1,75 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BorderStore } from './border.store'; +import { CreatePinDataCommand } from '../command/pin/create-pin-data.command'; +import { DocumentMediator } from '../mediator/document.mediator'; +import { fnConsoleLog } from '@common/fn/console.fn'; + +export class PinAddElementStore { + private static currentElement: HTMLElement | null = null; + private static currentElementBorderStyle = ''; + private static currentElementBorderRadius = ''; + + static get hasElement(): boolean { + return !!this.currentElement; + } + + static get borderStyle(): string { + return this.currentElementBorderStyle; + } + + static get borderRadius(): string { + return this.currentElementBorderRadius; + } + + static clearElement(): void { + if (!this.currentElement) return; + this.currentElement.removeEventListener('click', this.handleElementClick); + this.currentElement.style.border = this.currentElementBorderStyle; + this.currentElement.style.borderRadius = this.currentElementBorderRadius; + this.currentElementBorderStyle = ''; + this.currentElementBorderRadius = ''; + this.currentElement = null; + } + + static updateElement(element: HTMLElement): void { + if (this.currentElement !== element) { + this.currentElement = element; + this.currentElement.addEventListener('click', this.handleElementClick); + this.currentElementBorderStyle = this.currentElement.style.border; + this.currentElementBorderRadius = this.currentElement.style.borderRadius; + this.currentElement.style.border = BorderStore.borderStyle; + this.currentElement.style.borderRadius = BorderStore.borderRadius; + } + } + + private static handleElementClick = async (event: MouseEvent): Promise => { + event.preventDefault(); + event.stopImmediatePropagation(); + fnConsoleLog('CLick', event); + if (this.currentElement) { + const element = event.target as HTMLElement; + this.currentElement.style.border = this.currentElementBorderStyle; + this.currentElement.style.borderRadius = this.currentElementBorderRadius; + await new CreatePinDataCommand(element, { + x: event.offsetX, + y: event.offsetY + }).execute(); + } + DocumentMediator.stopListeners(); + }; +} diff --git a/src/content-script/store/pin-drag.store.ts b/src/content-script/store/pin-drag.store.ts new file mode 100644 index 0000000..fe80125 --- /dev/null +++ b/src/content-script/store/pin-drag.store.ts @@ -0,0 +1,54 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinUpdateObject } from '@common/model/pin.model'; +import { BusMessageType } from '@common/model/bus.model'; +import { ObjectTypeDto } from '@common/model/html.model'; +import { PinComponent } from '../components/pin.component'; +import { PinStore } from './pin.store'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import PinPoint = Pinmenote.Pin.PinPoint; + +export class PinDragStore { + private static dragValue?: PinComponent; + + public static startDragPin(pin: PinObject): void { + if (pin.type !== ObjectTypeDto.Pin) return; + this.dragValue = PinStore.getByUid(pin.uid) as PinComponent; + this.dragValue?.startDrag(); + } + + public static dragPin(value: PinPoint): void { + if (!this.dragValue) return; + this.dragValue.updateDrag(value); + } + + public static async stopDragPin(value: PinPoint): Promise { + if (!this.dragValue) return; + this.dragValue.stopDrag(value); + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_UPDATE, + data: { pin: this.dragValue.object } + }); + if (this.dragValue) { + this.dragValue = undefined; + } + } + + public static get isDrag(): boolean { + return !!this.dragValue; + } +} diff --git a/src/content-script/store/pin-pending.store.ts b/src/content-script/store/pin-pending.store.ts new file mode 100644 index 0000000..160852e --- /dev/null +++ b/src/content-script/store/pin-pending.store.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlObject } from '@common/model/html.model'; + +export class PinPendingStore { + // Map of pending pins + private static pendingPins: { [key: string]: HtmlObject } = {}; + + static get values(): HtmlObject[] { + return Object.values(PinPendingStore.pendingPins); + } + + static add(pin: HtmlObject): void { + this.pendingPins[pin.uid] = pin; + } + + static remove(key: string): void { + delete this.pendingPins[key]; + } +} diff --git a/src/content-script/store/pin.store.ts b/src/content-script/store/pin.store.ts new file mode 100644 index 0000000..d7a25ae --- /dev/null +++ b/src/content-script/store/pin.store.ts @@ -0,0 +1,84 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { HtmlComponent, ObjectTypeDto } from '@common/model/html.model'; +import { PinComponent } from '../components/pin.component'; +import { PinObject } from '@common/model/pin.model'; +import { contentSwapPin } from '../fn/content-swap-pin'; +import { fnConsoleLog } from '@common/fn/console.fn'; + +export class PinStore { + private static pinData: HtmlComponent[] = []; + + public static getByUid(uid: string): HtmlComponent | undefined { + const index = this.pinData.findIndex((p) => p.object.uid === uid); + if (index > -1) { + return this.pinData[index]; + } + return undefined; + } + + public static add(data: HtmlComponent): HtmlComponent { + if (this.pinData.findIndex((c) => c.object.uid === data.object.uid) === -1) { + this.pinData.push(data); + } + return data; + } + + public static delByUid(uid: string): HtmlComponent | undefined { + fnConsoleLog('PinStore->delByUid', uid); + const index = this.pinData.findIndex((c) => c.object.uid === uid); + if (index > -1) { + const data = this.pinData.splice(index, 1)[0]; + // Cleanup component + data.cleanup(); + return data; + } + return undefined; + } + + public static clear(): void { + for (const pinData of this.pinData) { + this.delByUid(pinData.object.uid); + } + this.pinData = []; + } + + public static each(fn: (value: HtmlComponent, index: number, array: HtmlComponent[]) => void): void { + this.pinData.forEach(fn); + } + + public static focusPin(pin: PinObject): void { + const obj = this.getByUid(pin.uid); + if (!obj) return; + obj.focus(true); + } + + public static async pinToParent(pin: PinObject, ref: HTMLElement | null): Promise { + // Only pin + if (pin.type !== ObjectTypeDto.Pin) return; + const obj = this.getByUid(pin.uid); + if (!obj || !ref) return; + await contentSwapPin(obj as PinComponent, ref); + const rect = (obj as PinComponent).ref.getBoundingClientRect(); + obj.object.locator.offset.x = 0; + obj.object.locator.offset.y = 0; + obj.object.locator.elementSize.x = rect.x; + obj.object.locator.elementSize.y = rect.y; + obj.object.locator.elementSize.width = rect.width; + obj.object.locator.elementSize.height = rect.height; + } +} diff --git a/src/css/prosemirror.css b/src/css/prosemirror.css new file mode 100644 index 0000000..9ec6490 --- /dev/null +++ b/src/css/prosemirror.css @@ -0,0 +1,49 @@ +.ProseMirror { + min-height: 0; + height: fit-content; + outline: none; + overflow: auto; + border: none; + resize: both; + font-size: 11pt; + font-family: Roboto, serif; + color: #000000; + background-color: #ffffff; + font-weight: normal; + text-transform: none; + line-height: 100%; + box-shadow: none; + margin: 0; + padding: 0; + text-align: left; +} + +.ProseMirror:focus { + outline: none; +} + +.ProseMirror h1 { + font-size: 2em; + font-weight: bold; + line-height: 100%; + margin: 0; + padding: 0; +} + +.ProseMirror p:first-child { + margin: 0px 0px 4px; +} + +.ProseMirror p { + margin: 0px 0px 4px; + padding: 0; +} + +.ProseMirror ul, .ProseMirror ol { + padding-left: 20px; + list-style-type: disc; +} + +.ProseMirror li { + position: relative; +} diff --git a/src/default-popup/components/account/account.component.tsx b/src/default-popup/components/account/account.component.tsx new file mode 100644 index 0000000..e70862d --- /dev/null +++ b/src/default-popup/components/account/account.component.tsx @@ -0,0 +1,178 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Button, IconButton, TextareaAutosize, Typography } from '@mui/material'; +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { COLOR_DEFAULT_GREY } from '@common/components/colors'; +import ContentCopyIcon from '@mui/icons-material/ContentCopy'; +import { StyledInput } from '@common/components/react/styled.input'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { fnByteToMb } from '@common/fn/diskspace.fn'; +import { fnOpenOptionsPage } from '@common/service/browser.api.wrapper'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import DiskQuotaDto = Pinmenote.Sync.DiskQuotaDto; + +class QuotaStore { + private static sent = false; + + static quota?: DiskQuotaDto; + + static async getQuota(): Promise { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_SYNC_QUOTA + }); + } + + static initialize(): void { + if (this.sent) return; + this.getQuota() + .then(() => { + /* ignore */ + }) + .catch(() => { + /* ignore */ + }); + this.sent = true; + } +} + +export const AccountComponent: FunctionComponent = () => { + const [quota, setQuota] = useState(QuotaStore.quota); + const [privateKey, setPrivateKey] = useState(''); + const [privateKeyLabel, setPrivateKeyLabel] = useState('Show Private Key'); + const [importKey, setImportKey] = useState(''); + + useEffect(() => { + const syncKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_SYNC_QUOTA, + (event, key, value) => { + QuotaStore.quota = value; + setQuota(QuotaStore.quota); + } + ); + const pKey = TinyEventDispatcher.addListener(BusMessageType.POPUP_PRIVATE_KEY_GET, (event, key, value) => { + setPrivateKeyLabel('Hide Private Key'); + setPrivateKey(value); + }); + QuotaStore.initialize(); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_SYNC_QUOTA, syncKey); + TinyEventDispatcher.removeListener(BusMessageType.POPUP_PRIVATE_KEY_GET, pKey); + }; + }); + + const handleLogout = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_LOGOUT + }); + }; + + const handleSyncNotes = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_SYNC_PINS + }); + }; + + const handleShowHidePrivateKey = async (): Promise => { + if (privateKey.length === 0) { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PRIVATE_KEY_GET + }); + } else { + setPrivateKey(''); + setPrivateKeyLabel('Show Private Key'); + } + }; + + const handleCopyPrivateKey = async (): Promise => { + await navigator.clipboard.writeText(privateKey); + }; + + const handleImportPrivateKey = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PRIVATE_KEY_IMPORT, + data: importKey + }); + }; + + return ( +
+ + Authenticated + +
+ + + Space Used{' '} + + + {fnByteToMb(quota?.used)} / {fnByteToMb(quota?.quota)} MB + + + + + Last Sync 2022-10-19 21:14:00 + +
+
+ + Private Key + +
+
+ +
+ 0 ? 'inline-block' : 'none' }} + > + + +
+ +
+ + Import key + +
+ setImportKey(e.target.value)} value={importKey} /> +
+ +
+
+
+ + +
+
+ ); +}; diff --git a/src/default-popup/components/account/login.component.tsx b/src/default-popup/components/account/login.component.tsx new file mode 100644 index 0000000..552e2d7 --- /dev/null +++ b/src/default-popup/components/account/login.component.tsx @@ -0,0 +1,113 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { COLOR_DEFAULT_GREY, COLOR_DEFAULT_RED } from '@common/components/colors'; +import React, { ChangeEvent, FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import Button from '@mui/material/Button'; +import Link from '@mui/material/Link'; +import { LogManager } from '@common/popup/log.manager'; +import { StyledInput } from '@common/components/react/styled.input'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { fnOpenOptionsPage } from '@common/service/browser.api.wrapper'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ServerErrorDto = Pinmenote.Common.ServerErrorDto; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; +import LoginDto = Pinmenote.Auth.LoginDto; + +export const LoginComponent: FunctionComponent = () => { + const [email, setEmail] = useState(''); + const [responseError, setResponseError] = useState(undefined); + + useEffect(() => { + const loginKey = TinyEventDispatcher.addListener(BusMessageType.POPUP_LOGIN, (event, key, value) => { + TinyEventDispatcher.dispatch(BusMessageType.POPUP_ACCESS_TOKEN, value); + LogManager.log(`POPUP_LOGIN ${JSON.stringify(value)}`); + }); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_LOGIN, loginKey); + }; + }); + + const handleEmailChange = (e: ChangeEvent): void => { + setEmail(e.target.value); + }; + + const handleLoginClick = async (): Promise => { + setResponseError(undefined); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_LOGIN, + data: { email, signature: '' } + }); + }; + + // Advanced options + + const handleRegisterClick = () => { + TinyEventDispatcher.dispatch(BusMessageType.POP_REGISTER_CLICK, {}); + }; + + const borderStyle = responseError ? `1px solid ${COLOR_DEFAULT_RED}` : `1px solid ${COLOR_DEFAULT_GREY}`; + const advancedDescription = `Don't have account ?`; + + return ( +
+ + Login + +
+ +
+
+ +
+ + {advancedDescription} + + Register + + +
+ + {responseError?.code} {responseError?.message} + +
+ {/* ADVANCED OPTIONS */} +
+ +
+
+ ); +}; diff --git a/src/default-popup/components/account/register.component.tsx b/src/default-popup/components/account/register.component.tsx new file mode 100644 index 0000000..8f8b52a --- /dev/null +++ b/src/default-popup/components/account/register.component.tsx @@ -0,0 +1,177 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { COLOR_DEFAULT_GREY, COLOR_DEFAULT_RED } from '@common/components/colors'; +import React, { ChangeEvent, FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import Button from '@mui/material/Button'; +import Checkbox from '@mui/material/Checkbox'; +import Link from '@mui/material/Link'; +import { LogManager } from '@common/popup/log.manager'; +import { RegisterFormData } from '@common/model/auth.model'; +import { StyledInput } from '@common/components/react/styled.input'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { fnOpenOptionsPage } from '@common/service/browser.api.wrapper'; +import { getWebsiteUrl } from '@common/environment'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ServerErrorDto = Pinmenote.Common.ServerErrorDto; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; + +const inputBorder = { + display: 'flex', + justifyContent: 'space-between', + padding: 5, + borderRadius: 5, + margin: 10 +}; + +const TOS_VERSION = 'v1'; + +export const RegisterComponent: FunctionComponent = () => { + const [username, setUsername] = useState(''); + const [email, setEmail] = useState(''); + const [acceptedVersion, setAcceptedVersion] = useState(undefined); + const [responseError, setResponseError] = useState(undefined); + const [registerSuccess, setRegisterSuccess] = useState(false); + + useEffect(() => { + const registerKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_REGISTER, + (event, key, value) => { + setRegisterSuccess(true); + LogManager.log(`POPUP_REGISTER ${JSON.stringify(value)}`); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_REGISTER, registerKey); + }; + }); + + const handleUsernameChange = (e: ChangeEvent) => { + setUsername(e.target.value); + }; + + const handleEmailChange = (e: ChangeEvent) => { + setEmail(e.target.value); + }; + + const handleRegisterClick = async () => { + if (!acceptedVersion) { + setResponseError({ + code: -1000, + message: 'Accept Terms of use and Privacy Policy before creating account' + }); + } else { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_REGISTER, + data: { username, email, acceptedVersion } + }); + } + }; + + const handleLoginClick = () => { + TinyEventDispatcher.dispatch(BusMessageType.POP_LOGIN_CLICK, undefined); + }; + + const handleAccountClick = () => { + TinyEventDispatcher.dispatch(BusMessageType.POP_ACCOUNT_CLICK, undefined); + }; + + const borderStyle = + responseError && responseError?.code !== -1000 + ? `1px solid ${COLOR_DEFAULT_RED}` + : `1px solid ${COLOR_DEFAULT_GREY}`; + const acceptedColor = responseError?.code === -1000 ? COLOR_DEFAULT_RED : undefined; + + return ( +
+
+
+ + Thank you for registering, check your inbox to verify email + +
+
+ +
+
+
+ +
+ +
+
+ +
+
+ setAcceptedVersion(acceptedVersion ? undefined : TOS_VERSION)} + sx={{ color: acceptedColor }} + > + + I agree to{' '} + + Terms of use + {' '} + and{' '} + + Privacy Policy + + +
+
+ +
+
+ + {responseError?.code} {responseError?.message} + +
+
+ + Already have account ? + + Login + + + {/* ADVANCED OPTIONS */} +
+ +
+
+ ); +}; diff --git a/src/default-popup/components/pins/pin-share.component.tsx b/src/default-popup/components/pins/pin-share.component.tsx new file mode 100644 index 0000000..70f9c17 --- /dev/null +++ b/src/default-popup/components/pins/pin-share.component.tsx @@ -0,0 +1,61 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import ContentCopyIcon from '@mui/icons-material/ContentCopy'; +import { IconButton } from '@mui/material'; +import { PinObject } from '@common/model/pin.model'; +import { StyledInput } from '@common/components/react/styled.input'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import ShareUrlDto = Pinmenote.Share.ShareUrlDto; + +export interface PinShareProps { + pin: PinObject; + visible: boolean; +} + +export const PinShareComponent: FunctionComponent = ({ pin, visible }) => { + const [share, setShare] = useState(); + + useEffect(() => { + const shareKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_PIN_SHARE, + (event, key, value) => { + setShare(value); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_PIN_SHARE, shareKey); + }; + }); + + const handleCopyUrl = async () => { + await navigator.clipboard.writeText(share?.url || ''); + }; + + return ( +
+
Share: {pin.value}
+
+ + + + +
+
+ ); +}; diff --git a/src/default-popup/components/pins/pin.board.button.tsx b/src/default-popup/components/pins/pin.board.button.tsx new file mode 100644 index 0000000..ac2caa1 --- /dev/null +++ b/src/default-popup/components/pins/pin.board.button.tsx @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent } from 'react'; +import { Button } from '@mui/material'; +import { fnOpenOptionsPage } from '@common/service/browser.api.wrapper'; + +export const PinBoardButton: FunctionComponent = () => { + return ( +
+ +
+ ); +}; diff --git a/src/default-popup/components/pins/pin.connection.error.component.tsx b/src/default-popup/components/pins/pin.connection.error.component.tsx new file mode 100644 index 0000000..c3d88c6 --- /dev/null +++ b/src/default-popup/components/pins/pin.connection.error.component.tsx @@ -0,0 +1,68 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Button, Typography } from '@mui/material'; +import React, { FunctionComponent } from 'react'; +import { ActiveTabStore } from '../../store/active-tab.store'; +import { PinBoardButton } from './pin.board.button'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; + +export const PinConnectionErrorComponent: FunctionComponent = () => { + const isExtension = ActiveTabStore.isExtension; + return
{isExtension ? : }
; +}; + +const ExtensionMessage: FunctionComponent = () => { + return ( +
+ + Pinception disabled + + +
+ ); +}; + +const NoUrlMessage: FunctionComponent = () => { + const handleRefreshPage = async (): Promise => { + await fnBrowserApi().tabs.reload(); + window.close(); + }; + + return ( +
+ + Mission failed +
+ refresh page +
+ to add and view pins +
+ + +
+ ); +}; diff --git a/src/default-popup/components/pins/pin.create.component.tsx b/src/default-popup/components/pins/pin.create.component.tsx new file mode 100644 index 0000000..59584c2 --- /dev/null +++ b/src/default-popup/components/pins/pin.create.component.tsx @@ -0,0 +1,60 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { ActiveTabStore } from '../../store/active-tab.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { Button } from '@mui/material'; +import { LogManager } from '@common/popup/log.manager'; +import { PinPopupInitData } from '@common/model/pin.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { sendTabMessage } from '@common/message/tab.message'; + +export const PinCreateComponent: FunctionComponent = () => { + const [isAdding, setIsAdding] = useState(ActiveTabStore.isAddingNote); + + useEffect(() => { + const addingKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_INIT, + (event, key, value) => { + setIsAdding(value.isAddingNote); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_INIT, addingKey); + }; + }); + + const handleClick = async () => { + const type = isAdding ? BusMessageType.POPUP_PIN_STOP : BusMessageType.POPUP_PIN_START; + try { + await sendTabMessage({ + type + }); + } catch (e) { + LogManager.log(JSON.stringify(e)); + } + window.close(); + }; + + return ( +
+ +
+ ); +}; diff --git a/src/default-popup/components/pins/pin.list.component.tsx b/src/default-popup/components/pins/pin.list.component.tsx new file mode 100644 index 0000000..b27eec1 --- /dev/null +++ b/src/default-popup/components/pins/pin.list.component.tsx @@ -0,0 +1,63 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinListElement } from './pin.list.element.component'; +import { PinObject } from '@common/model/pin.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; + +interface PinListProps { + pinList: PinObject[]; + visibility: boolean; +} + +export const PinListComponent: FunctionComponent = ({ pinList, visibility }) => { + const [reRender, setReRender] = useState(false); + + useEffect(() => { + const removeKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_PIN_REMOVE, + (event, key, value) => { + if (value.url.href === pinList[0].url.href) { + for (let i = 0; i < pinList.length; i++) { + const pin = pinList[i]; + if (pin.uid === value.uid) { + pinList.splice(i, 1); + break; + } + } + // Refresh state so component re-renders + setReRender(!reRender); + } + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_PIN_REMOVE, removeKey); + }; + }); + + // Render pins + const pins: React.ReactNode[] = []; + for (const pin of pinList) { + pins.push(); + } + return ( +
+
{pins}
+
+ ); +}; diff --git a/src/default-popup/components/pins/pin.list.element.component.tsx b/src/default-popup/components/pins/pin.list.element.component.tsx new file mode 100644 index 0000000..27f2ea9 --- /dev/null +++ b/src/default-popup/components/pins/pin.list.element.component.tsx @@ -0,0 +1,142 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { IconButton, Typography } from '@mui/material'; +import { PinObject, PinUpdateObject } from '@common/model/pin.model'; +import React, { FunctionComponent, useState } from 'react'; +import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; +import { BusMessageType } from '@common/model/bus.model'; +import CloseIcon from '@mui/icons-material/Close'; +import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; +import NavigateNextIcon from '@mui/icons-material/NavigateNext'; +import { PinPopOver } from './pin.popover.component'; +import { PinShareComponent } from './pin-share.component'; +import ShareIcon from '@mui/icons-material/Share'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import VisibilityIcon from '@mui/icons-material/Visibility'; +import VisibilityOffIcon from '@mui/icons-material/VisibilityOff'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import { sendTabMessage } from '@common/message/tab.message'; + +interface PinListElementProps { + pin: PinObject; + visibility: boolean; +} + +export const PinListElement: FunctionComponent = ({ pin, visibility }) => { + const [isPopoverOpen, setIsPopoverOpen] = useState(false); + const [isShareOpen, setShareOpen] = useState(false); + const [isVisible, setIsVisible] = useState(pin.visible); + const handlePinGo = async (data: PinObject): Promise => { + data.visible = true; + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_UPDATE, + data: { + pin: data + } + }); + + await sendRuntimeMessage({ type: BusMessageType.CONTENT_PIN_NAVIGATE, data }); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_NAVIGATE, data }); + + window.close(); + }; + + const handlePinVisible = async (data: PinObject): Promise => { + data.visible = !data.visible; + await sendRuntimeMessage({ type: BusMessageType.POPUP_PIN_VISIBLE, data }); + setIsVisible(data.visible); + }; + + const handlePinRemove = async (data: PinObject): Promise => { + await sendRuntimeMessage({ type: BusMessageType.POPUP_PIN_REMOVE, data }); + // Send itself cause command sends message to tab + TinyEventDispatcher.dispatch(BusMessageType.POPUP_PIN_REMOVE, data); + }; + + const handleShare = async (data: PinObject): Promise => { + setShareOpen(!isShareOpen); + setIsPopoverOpen(false); + if (!data.share && !isShareOpen) { + await sendRuntimeMessage({ type: BusMessageType.POPUP_PIN_SHARE, data }); + } + }; + + const handlePopover = (): void => { + setIsPopoverOpen(!isPopoverOpen); + setShareOpen(false); + }; + + const expandIcon = isPopoverOpen ? ( + + ) : ( + + ); + + const visibleIcon = visibility ? ( + handlePinVisible(pin)}> + {isVisible ? : } + + ) : ( + '' + ); + + const title = pin.value.length > 30 ? `${pin.value.substring(0, 30)}...` : pin.value; + + return ( +
+
+
+ + {expandIcon} + + + {title} + +
+
+ handleShare(pin)}> + + + {visibleIcon} + handlePinGo(pin)}> + + + handlePinRemove(pin)}> + + +
+
+ + +
+ ); +}; diff --git a/src/default-popup/components/pins/pin.list.origin.component.tsx b/src/default-popup/components/pins/pin.list.origin.component.tsx new file mode 100644 index 0000000..0a34ec5 --- /dev/null +++ b/src/default-popup/components/pins/pin.list.origin.component.tsx @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent } from 'react'; +import { PinListComponent } from './pin.list.component'; +import { PinObject } from '@common/model/pin.model'; +import { Typography } from '@mui/material'; + +interface PinListOriginProps { + pinHref: PinObject[]; + pinOrigin: PinObject[]; + origin?: string; +} + +export const PinListOriginComponent: FunctionComponent = ({ pinHref, pinOrigin, origin }) => { + return ( +
+ + On this page + + + + On {origin} + + +
+ ); +}; diff --git a/src/default-popup/components/pins/pin.popover.component.tsx b/src/default-popup/components/pins/pin.popover.component.tsx new file mode 100644 index 0000000..8e6eb0a --- /dev/null +++ b/src/default-popup/components/pins/pin.popover.component.tsx @@ -0,0 +1,52 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useEffect, useRef } from 'react'; +import { PinObject } from '@common/model/pin.model'; + +interface PinPopOver { + visible: boolean; + pin: PinObject; +} + +export const PinPopOver: FunctionComponent = ({ pin, visible }) => { + const ref = useRef(null); + const img = new Image(); + + useEffect(() => { + img.width = 280; + if (pin.screenshot) img.src = pin.screenshot; + ref.current?.appendChild(img); + return () => { + ref.current?.removeChild(img); + }; + }); + + return ( +
+
{pin.value}
+
+
+ ); +}; diff --git a/src/default-popup/components/tabs/account.tab.component.tsx b/src/default-popup/components/tabs/account.tab.component.tsx new file mode 100644 index 0000000..fe1fbcf --- /dev/null +++ b/src/default-popup/components/tabs/account.tab.component.tsx @@ -0,0 +1,85 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, ReactElement, useEffect, useState } from 'react'; +import { AccountComponent } from '../account/account.component'; +import { BusMessageType } from '@common/model/bus.model'; +import { LogManager } from '@common/popup/log.manager'; +import { LoginComponent } from '../account/login.component'; +import { RegisterComponent } from '../account/register.component'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; + +enum LoginEnum { + LOGIN = 1, + REGISTER, + ACCOUNT +} + +const getAccountComponent = (state: LoginEnum): ReactElement | undefined => { + switch (state) { + case LoginEnum.LOGIN: + return ; + case LoginEnum.REGISTER: + return ; + case LoginEnum.ACCOUNT: + return ; + } + return undefined; +}; + +export const AccountTabComponent: FunctionComponent = () => { + const [loginState, setLoginState] = useState(LoginEnum.LOGIN); + + useEffect(() => { + const loginClickKey = TinyEventDispatcher.addListener(BusMessageType.POP_LOGIN_CLICK, () => { + setLoginState(LoginEnum.LOGIN); + }); + const registerClickKey = TinyEventDispatcher.addListener(BusMessageType.POP_REGISTER_CLICK, () => { + setLoginState(LoginEnum.REGISTER); + }); + const accountClickKey = TinyEventDispatcher.addListener(BusMessageType.POP_ACCOUNT_CLICK, () => { + setLoginState(LoginEnum.ACCOUNT); + }); + const logoutKey = TinyEventDispatcher.addListener(BusMessageType.POPUP_LOGOUT, () => { + setLoginState(LoginEnum.LOGIN); + }); + const accessTokenKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_ACCESS_TOKEN, + (event, key, value) => { + LogManager.log(`POPUP_ACCESS_TOKEN ${JSON.stringify(value)}`); + if (value) { + setLoginState(LoginEnum.ACCOUNT); + } else { + setLoginState(LoginEnum.LOGIN); + } + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POP_LOGIN_CLICK, loginClickKey); + TinyEventDispatcher.removeListener(BusMessageType.POP_REGISTER_CLICK, registerClickKey); + TinyEventDispatcher.removeListener(BusMessageType.POPUP_ACCESS_TOKEN, accessTokenKey); + TinyEventDispatcher.removeListener(BusMessageType.POP_ACCOUNT_CLICK, accountClickKey); + TinyEventDispatcher.removeListener(BusMessageType.POPUP_LOGOUT, logoutKey); + }; + }); + const currentComponent = getAccountComponent(loginState); + return ( +
+
{currentComponent}
+
+ ); +}; diff --git a/src/default-popup/components/tabs/logs.tab.component.tsx b/src/default-popup/components/tabs/logs.tab.component.tsx new file mode 100644 index 0000000..f8ba49d --- /dev/null +++ b/src/default-popup/components/tabs/logs.tab.component.tsx @@ -0,0 +1,62 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Button, Typography } from '@mui/material'; +import React, { FunctionComponent, useEffect, useRef } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { LogManager } from '@common/popup/log.manager'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export const LogsTabComponent: FunctionComponent = () => { + const ref = useRef(null); + + const handleRemoveAllPins = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_CLEANUP + }); + }; + + const handleClearLogs = () => { + LogManager.clear(); + }; + + useEffect(() => { + if (ref.current) ref.current.innerHTML = LogManager.logs; + const key = TinyEventDispatcher.addListener(BusMessageType.POP_CONSOLE_LOG, (event, key, value) => { + if (ref.current) ref.current.innerHTML = value; + }); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POP_CONSOLE_LOG, key); + }; + }); + return ( +
+
+ +
+
+ +
+ Logs +
+
+ ); +}; diff --git a/src/default-popup/components/tabs/pin.tab.component.tsx b/src/default-popup/components/tabs/pin.tab.component.tsx new file mode 100644 index 0000000..d2d870e --- /dev/null +++ b/src/default-popup/components/tabs/pin.tab.component.tsx @@ -0,0 +1,94 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinPopupInitData } from '@common/model/pin.model'; +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { ActiveTabStore } from '../../store/active-tab.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinBoardButton } from '../pins/pin.board.button'; +import { PinConnectionErrorComponent } from '../pins/pin.connection.error.component'; +import { PinCreateComponent } from '../pins/pin.create.component'; +import { PinListOriginComponent } from '../pins/pin.list.origin.component'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import PinUrl = Pinmenote.Pin.PinUrl; + +export const PinTabComponent: FunctionComponent = () => { + const [url, setUrl] = useState(ActiveTabStore.url); + const [isError, setIsError] = useState(ActiveTabStore.showErrorText); + const [originPins, setOriginPins] = useState(ActiveTabStore.originPins); + const [hrefPins, setHrefPins] = useState(ActiveTabStore.hrefPins); + + useEffect(() => { + const originKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_PIN_GET_ORIGIN, + (event, key, value) => { + ActiveTabStore.originPins = value; + setOriginPins(value); + } + ); + const hrefKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_PIN_GET_HREF, + (event, key, value) => { + ActiveTabStore.hrefPins = value; + setHrefPins(value); + } + ); + const urlKey = TinyEventDispatcher.addListener( + BusMessageType.POPUP_INIT, + async (event, key, value) => { + setUrl(ActiveTabStore.url); + setIsError(ActiveTabStore.showErrorText); + if (value.url) await fillPinData(value.url); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.POPUP_PIN_GET_ORIGIN, originKey); + TinyEventDispatcher.removeListener(BusMessageType.POPUP_PIN_GET_HREF, hrefKey); + TinyEventDispatcher.removeListener(BusMessageType.POPUP_INIT, urlKey); + }; + }); + + const fillPinData = async (url: PinUrl) => { + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_GET_ORIGIN, + data: url + }); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_GET_HREF, + data: url + }); + }; + + return ( +
+ {isError ? ( + + ) : ( +
+
+ + {/* marginBottom:155 if test code is uncommented */} +
+ +
+
+ +
+ )} +
+ ); +}; diff --git a/src/default-popup/default-popup.html b/src/default-popup/default-popup.html new file mode 100644 index 0000000..3ab38e9 --- /dev/null +++ b/src/default-popup/default-popup.html @@ -0,0 +1,16 @@ + + + + + + + +
+ + + \ No newline at end of file diff --git a/src/default-popup/default-popup.tsx b/src/default-popup/default-popup.tsx new file mode 100644 index 0000000..c6c0809 --- /dev/null +++ b/src/default-popup/default-popup.tsx @@ -0,0 +1,109 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import '@fontsource/roboto/300.css'; +import '@fontsource/roboto/400.css'; +import '@fontsource/roboto/500.css'; +import '@fontsource/roboto/700.css'; + +import { Box, Tab, Tabs } from '@mui/material'; +import React, { ReactElement, useState } from 'react'; +import { AccountTabComponent } from './components/tabs/account.tab.component'; +import { BusMessageType } from '@common/model/bus.model'; +import { LogManager } from '@common/popup/log.manager'; +import LogoDevIcon from '@mui/icons-material/LogoDev'; +import { LogsTabComponent } from './components/tabs/logs.tab.component'; +import PersonIcon from '@mui/icons-material/Person'; +import { PinTabComponent } from './components/tabs/pin.tab.component'; +import { PopupMessageHandler } from './popup-message.handler'; +import PushPinIcon from '@mui/icons-material/PushPin'; +import { createRoot } from 'react-dom/client'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +enum PanelEnum { + PIN, + ACCOUNT, + LOGS +} + +const getCurrentPanel = (selectedPanel: PanelEnum): ReactElement | undefined => { + switch (selectedPanel) { + case PanelEnum.PIN: + return ; + case PanelEnum.ACCOUNT: + return ; + case PanelEnum.LOGS: + return ; + } + return undefined; +}; + +const App: React.FC = () => { + const [selectedPanel, setSelectedPanel] = useState(PanelEnum.PIN); + + const handleChange = (event: React.SyntheticEvent, newValue: PanelEnum) => { + setSelectedPanel(newValue); + if (newValue === PanelEnum.ACCOUNT) { + sendRuntimeMessage({ + type: BusMessageType.POPUP_ACCESS_TOKEN + }) + .then(() => fnConsoleLog('ack')) + .catch(() => fnConsoleLog('err')); + } + }; + + // Show logs panel only on development environment + let logsTab: any = ''; + if (!environmentConfig.isProduction) { + logsTab = } tabIndex={3} />; + } + + const panel = getCurrentPanel(selectedPanel); + + return ( +
+ + + } /> + } /> + {logsTab} + + + {panel} +
+ ); +}; +const el = document.getElementById('root'); +if (el) { + const root = createRoot(el); + root.render(); +} +try { + PopupMessageHandler.init(); +} catch (e) { + LogManager.log(`Error ${JSON.stringify(e)}`); +} diff --git a/src/default-popup/popup-message.handler.ts b/src/default-popup/popup-message.handler.ts new file mode 100644 index 0000000..257f933 --- /dev/null +++ b/src/default-popup/popup-message.handler.ts @@ -0,0 +1,68 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserGlobalSender, BusMessage, BusMessageType } from '@common/model/bus.model'; +import { fnBrowserApi, fnExtensionStartUrl } from '@common/service/browser.api.wrapper'; +import { ActiveTabStore } from './store/active-tab.store'; +import { LogManager } from '@common/popup/log.manager'; +import { PinPopupInitData } from '@common/model/pin.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; + +export class PopupMessageHandler { + static init(): void { + fnBrowserApi().runtime.onMessage.addListener(this.handleMessage); + sendTabMessage({ + type: BusMessageType.POPUP_OPEN + }) + .then((ack: any) => { + if (!ack) TinyEventDispatcher.dispatch(BusMessageType.POPUP_INIT, {}); + fnConsoleLog(ack); + }) + .catch((e) => { + fnConsoleLog(e); + }); + this.popupInitListener(); + } + + private static popupInitListener(): void { + TinyEventDispatcher.addListener(BusMessageType.POPUP_INIT, (event, key, value) => { + if (value.url) LogManager.log(`${event} ${value.url.href}`); + if (value.url?.href.startsWith(fnExtensionStartUrl())) { + ActiveTabStore.updateState(true, true); + } else if (value.url) { + ActiveTabStore.updateState(false, false, value.isAddingNote, value.url); + } else { + ActiveTabStore.updateState(true, false); + } + }); + } + + private static handleMessage = ( + msg: BusMessage, + runtime: BrowserGlobalSender, + sendResponse: (response: any) => void + ): void => { + sendResponse({ + type: BusMessageType.POPUP_ACK + }); + // Skip not owned messages + if (runtime.id !== fnBrowserApi().runtime.id) return; + + TinyEventDispatcher.dispatch(msg.type, msg.data); + }; +} diff --git a/src/default-popup/store/active-tab.store.ts b/src/default-popup/store/active-tab.store.ts new file mode 100644 index 0000000..62d29a1 --- /dev/null +++ b/src/default-popup/store/active-tab.store.ts @@ -0,0 +1,67 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import PinUrl = Pinmenote.Pin.PinUrl; +import { PinObject } from '@common/model/pin.model'; + +export class ActiveTabStore { + private static urlValue?: PinUrl; + private static isError = false; + private static extensionUrl = false; + private static isAddingNoteValue = false; + + private static originPinsValue: PinObject[] = []; + private static hrefPinsValue: PinObject[] = []; + + static get originPins(): PinObject[] { + return this.originPinsValue; + } + + static set originPins(value: PinObject[]) { + this.originPinsValue = value; + } + + static get hrefPins(): PinObject[] { + return this.hrefPinsValue; + } + + static set hrefPins(value: PinObject[]) { + this.hrefPinsValue = value; + } + + static get isAddingNote(): boolean { + return this.isAddingNoteValue; + } + + static get url(): PinUrl | undefined { + return this.urlValue; + } + + static get showErrorText(): boolean { + return this.isError; + } + + static get isExtension(): boolean { + return this.extensionUrl; + } + + static updateState(isError: boolean, extensionUrl: boolean, isAddingNoteValue = false, urlValue?: PinUrl) { + this.isError = isError; + this.extensionUrl = extensionUrl; + this.urlValue = urlValue; + this.isAddingNoteValue = isAddingNoteValue; + } +} diff --git a/src/manifest.ff.json b/src/manifest.ff.json new file mode 100644 index 0000000..1a8e3dd --- /dev/null +++ b/src/manifest.ff.json @@ -0,0 +1,41 @@ +{ + "manifest_version": 2, + "applications": { + "gecko": { + "id": "contact@pinmenote.com" + } + }, + "name": "pinmenote", + "short_name": "pinmenote", + "description": "Pin note on website, archive content and share with friends", + "homepage_url": "https://pinmenote.com", + "version": "0.0.1", + "icons": { + "16": "assets/icon/16.png", + "48": "assets/icon/48.png", + "128": "assets/icon/128.png" + }, + "author": "pinmenote (contact@pintmenote.com)", + "browser_action": { + "default_icon": { + "16": "assets/icon/16.png", + "24": "assets/icon/24.png", + "32": "assets/icon/32.png" + }, + "default_title": "pinmenote", + "default_popup": "default-popup/default-popup.html" + }, + "permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads", "http://*/*", "https://*/*", ""], + "background": { + "persistent": true, + "scripts": ["service-worker/service-worker.ts"] + }, + "content_scripts": [{ + "matches": [""], + "js": ["content-script/content-script.ts"], + "run_at": "document_start" + }], + "options_ui": { + "page": "options-ui/options-ui.html" + } +} \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json new file mode 100644 index 0000000..532c071 --- /dev/null +++ b/src/manifest.json @@ -0,0 +1,37 @@ +{ + "manifest_version": 3, + "name": "pinmenote", + "short_name": "pinmenote", + "description": "Pin note on website, archive content and share with friends", + "version": "0.0.1", + "icons": { + "16": "assets/icon/16.png", + "32": "assets/icon/32.png", + "64": "assets/icon/64.png", + "128": "assets/icon/128.png" + }, + "author": "pinmenote (contact@pintmenote.com)", + "action": { + "default_icon": { + "16": "assets/icon/16.png", + "24": "assets/icon/24.png", + "32": "assets/icon/32.png" + }, + "default_title": "pinmenote", + "default_popup": "default-popup/default-popup.html" + }, + "permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads"], + "host_permissions": [""], + "background": { + "service_worker": "service-worker/service-worker.ts", + "type": "module" + }, + "content_scripts": [{ + "matches": [""], + "js": ["content-script/content-script.ts"], + "run_at": "document_start" + }], + "options_ui": { + "page": "options-ui/options-ui.html" + } +} \ No newline at end of file diff --git a/src/options-ui/options-message.handler.ts b/src/options-ui/options-message.handler.ts new file mode 100644 index 0000000..37b3e7c --- /dev/null +++ b/src/options-ui/options-message.handler.ts @@ -0,0 +1,48 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserGlobalSender, BusMessage, BusMessageType } from '@common/model/bus.model'; +import { PinPopupInitData } from '@common/model/pin.model'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { contentPinNewUrl } from '@common/fn/pin/content-pin-new-url'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class OptionsMessageHandler { + static init(): void { + fnBrowserApi().runtime.onMessage.addListener(this.handleRemoteMessage); + TinyEventDispatcher.addListener(BusMessageType.POPUP_OPEN, this.handlePopupOpen); + } + + private static handleRemoteMessage = ( + msg: BusMessage, + runtime: BrowserGlobalSender, + sendResponse: (response: BusMessage) => void + ): void => { + fnConsoleLog('OptionsMessageManager->msg', msg); + sendResponse({ + type: BusMessageType.CONTENT_ACK + }); + TinyEventDispatcher.dispatch(msg.type, msg.data); + }; + + private static handlePopupOpen = async (): Promise => { + const url = contentPinNewUrl(); + const data: PinPopupInitData = { url, isAddingNote: false }; + await sendRuntimeMessage({ type: BusMessageType.POPUP_INIT, data }); + }; +} diff --git a/src/options-ui/options-ui.html b/src/options-ui/options-ui.html new file mode 100644 index 0000000..e45e255 --- /dev/null +++ b/src/options-ui/options-ui.html @@ -0,0 +1,21 @@ + + + + + pinmenote board + + + +
+ + + \ No newline at end of file diff --git a/src/options-ui/options-ui.tsx b/src/options-ui/options-ui.tsx new file mode 100644 index 0000000..b48aef3 --- /dev/null +++ b/src/options-ui/options-ui.tsx @@ -0,0 +1,75 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import '../css/prosemirror.css'; + +import React, { FunctionComponent, useEffect, useState } from 'react'; +import { LeftSideMenu } from './view/menu/left-side.menu'; +import { OptionsMessageHandler } from './options-message.handler'; +import { PinBoard } from './view/pin-board/pin.board'; +import { PinBoardStore } from './view/store/pin-board.store'; +import { SettingsComponent } from './view/settings/settings.component'; +import { createRoot } from 'react-dom/client'; +import { fnConsoleError } from '@common/fn/console.fn'; + +const initPinBoardStore = () => { + PinBoardStore.clearSearch(); + PinBoardStore.sendRange() + .then(() => { + /!* Empty*!/; + }) + .catch(() => { + /!* Empty*!/; + }); +}; + +const App: FunctionComponent = () => { + const [showSettings, setShowSettings] = useState(window.location.hash === '#settings'); + + useEffect(() => { + if (!showSettings) { + initPinBoardStore(); + } + window.addEventListener('hashchange', handleHashChange); + return () => { + window.removeEventListener('hashchange', handleHashChange); + }; + }); + const handleHashChange = () => { + if (window.location.hash === '#settings') { + setShowSettings(true); + } else { + setShowSettings(false); + } + }; + + const mainComponent = showSettings ? : ; + return ( +
+ +
{mainComponent}
+
+ ); +}; + +try { + OptionsMessageHandler.init(); +} catch (e: unknown) { + fnConsoleError('PROBLEM !!!', e); +} + +const root = createRoot(document.getElementById('root') as HTMLElement); +root.render(); diff --git a/src/options-ui/view/menu/left-side.menu.tsx b/src/options-ui/view/menu/left-side.menu.tsx new file mode 100644 index 0000000..e97bbef --- /dev/null +++ b/src/options-ui/view/menu/left-side.menu.tsx @@ -0,0 +1,149 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Button, Divider } from '@mui/material'; +import React, { FunctionComponent, ReactNode, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinBoardStore } from '../store/pin-board.store'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { fnGetKey } from '@common/kv.utils'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +class MenuStore { + static readonly ALL_URLS = ''; + private static sent = false; + + static urlList: string[] = []; + static hashList: string[] = []; + + static initialize(): void { + if (this.sent) return; + this.getHashList() + .then(() => { + /* ignore */ + }) + .catch(() => { + /* ignore */ + }); + this.getOriginUrls() + .then(() => { + /* ignore */ + }) + .catch(() => { + /* ignore */ + }); + this.sent = true; + } + + private static async getHashList(): Promise { + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_GET_HASH_LIST }); + } + + private static async getOriginUrls(): Promise { + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_GET_ORIGIN_URLS }); + } +} + +interface MenuLinkItemProps { + url: string; +} + +export const MenuLinkItem: FunctionComponent = ({ url }) => { + const handleClick = async () => { + PinBoardStore.clearSearch(); + if (url === MenuStore.ALL_URLS) { + await PinBoardStore.sendRange(); + } else { + PinBoardStore.setSearch(url); + await PinBoardStore.sendSearch(); + } + }; + + return ( +
+ + {url} + +
+ ); +}; + +export const LeftSideMenu: FunctionComponent = () => { + const [urlList, setUrlList] = useState(MenuStore.urlList); + const [hashList, setHashList] = useState(MenuStore.hashList); + + useEffect(() => { + const urlsKey = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_GET_ORIGIN_URLS, + (event, key, value) => { + MenuStore.urlList = value.sort(); + value.unshift(MenuStore.ALL_URLS); + setUrlList(value.map((v) => )); + } + ); + const hashKey = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_PIN_GET_HASH_LIST, + (event, key, value) => { + MenuStore.hashList = value.sort(); + setHashList(value.map((h) => {h})); + } + ); + MenuStore.initialize(); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_PIN_GET_HASH_LIST, hashKey); + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_GET_ORIGIN_URLS, urlsKey); + }; + }); + + const handleSettingsClick = () => { + window.location.hash = 'settings'; + }; + + return ( +
+
+
+ + + pinmenote + +
+ +
+ + urls + +
{urlList}
+ + tags + +
{hashList}
+
+
+ +
+
+
+ ); +}; diff --git a/src/options-ui/view/pin-board/pin.board.tsx b/src/options-ui/view/pin-board/pin.board.tsx new file mode 100644 index 0000000..21667a9 --- /dev/null +++ b/src/options-ui/view/pin-board/pin.board.tsx @@ -0,0 +1,149 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { ChangeEvent, FunctionComponent, useEffect, useRef, useState } from 'react'; +import Box from '@mui/material/Box'; +import { BusMessageType } from '@common/model/bus.model'; +import ClearIcon from '@mui/icons-material/Clear'; +import { IconButton } from '@mui/material'; +import Input from '@mui/material/Input'; +import { PinBoardStore } from '../store/pin-board.store'; +import { PinElement } from './pin.element'; +import { PinObject } from '@common/model/pin.model'; +import SearchIcon from '@mui/icons-material/Search'; +import Stack from '@mui/material/Stack'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; + +export const PinBoard: FunctionComponent = () => { + const [pinData, setPinData] = useState(PinBoardStore.pins); + const [searchValue, setSearchValue] = useState(PinBoardStore.getSearch() || ''); + + const stackRef = useRef(); + + useEffect(() => { + // Infinite scroll + stackRef.current?.addEventListener('scroll', handleScroll); + + const pinRemove = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_PIN_REMOVE, + (event, key, value) => { + PinBoardStore.removePin(value); + setPinData(PinBoardStore.pins.concat()); + } + ); + + const pinSearch = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_PIN_SEARCH, + (event, key, value) => { + PinBoardStore.pins.push(...value); + setSearchValue(PinBoardStore.getSearch() || ''); + setPinData(PinBoardStore.pins.concat()); + PinBoardStore.setLoading(false); + } + ); + const pinRange = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_PIN_GET_RANGE, + (event, key, value) => { + PinBoardStore.pins.push(...value); + setPinData(PinBoardStore.pins.concat()); + PinBoardStore.setLoading(false); + } + ); + return () => { + stackRef.current?.removeEventListener('scroll', handleScroll); + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_PIN_REMOVE, pinRemove); + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_PIN_SEARCH, pinSearch); + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_PIN_GET_RANGE, pinRange); + }; + }); + + const handleScroll = () => { + if (!stackRef.current) return; + const bottom = stackRef.current.scrollHeight - stackRef.current.clientHeight; + // This is how offensive programming looks like - escape early instead of wrapping code with conditions + if (bottom - stackRef.current.scrollTop > 100) return; // too much up + if (PinBoardStore.isLoading) return; // already loading + + PinBoardStore.setLoading(true); + + // Search for value from last one + if (PinBoardStore.getSearch()) { + PinBoardStore.timeout = window.setTimeout(async () => { + // Last id found + PinBoardStore.setFrom(PinBoardStore.pins[PinBoardStore.pins.length - 1].id); + await PinBoardStore.sendSearch(); + }, 250); + return; + } + + // We can proceed + PinBoardStore.setFrom(PinBoardStore.getFrom() + 10); + window.setTimeout(async () => { + await PinBoardStore.sendRange(); + }, 250); + }; + + const handleSearchChange = (e: ChangeEvent): void => { + clearTimeout(PinBoardStore.timeout); + setSearchValue(e.target.value); + PinBoardStore.clearSearch(); + setPinData([]); + if (e.target.value.length <= 2) { + PinBoardStore.timeout = window.setTimeout(async () => { + await PinBoardStore.sendRange(); + }); + return; + } else { + PinBoardStore.setSearch(e.target.value); + } + PinBoardStore.timeout = window.setTimeout(async () => { + await PinBoardStore.sendSearch(); + }, 1000); + }; + + const handleClearSearch = async () => { + setSearchValue(''); + PinBoardStore.clearSearch(); + await PinBoardStore.sendRange(); + }; + + return ( +
+ + } + placeholder="Find note" + style={{ width: '50%' }} + type="text" + value={searchValue} + onChange={handleSearchChange} + endAdornment={ + PinBoardStore.getSearch() ? ( + + + + ) : undefined + } + /> + + + {pinData.map((pin) => ( + + ))} + +
+ ); +}; diff --git a/src/options-ui/view/pin-board/pin.element.tsx b/src/options-ui/view/pin-board/pin.element.tsx new file mode 100644 index 0000000..4639b43 --- /dev/null +++ b/src/options-ui/view/pin-board/pin.element.tsx @@ -0,0 +1,101 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinViewType } from '@common/model/pin.model'; +import React, { FunctionComponent, useEffect, useRef } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import Card from '@mui/material/Card'; +import CardActions from '@mui/material/CardActions'; +import CardContent from '@mui/material/CardContent'; +import CardHeader from '@mui/material/CardHeader'; +import Link from '@mui/material/Link'; +import { PinValueElement } from './pin.value.element'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { fnDateFormat } from '@common/fn/date.format.fn'; +import { pinIframeFn } from '@common/fn/pin/pin.iframe.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +interface PinElementParams { + pin: PinObject; +} + +export const PinElement: FunctionComponent = ({ pin }) => { + const divRef = useRef(null); + + const renderDiv = (ref: HTMLDivElement) => { + if (pin.viewType === PinViewType.SCREENSHOT) { + const img = new Image(); + img.src = pin.screenshot || ''; + ref.appendChild(img); + } else { + // const el: Node = fnPinToHtmlElement(pin.url.origin, false, pin.content.elementValue); + // const el = document.createElement('div'); + //ref.appendChild(el); + pinIframeFn(pin.content, ref); + } + }; + + useEffect(() => { + if (divRef.current && !divRef.current?.firstChild) { + renderDiv(divRef.current); + } + const skipKey = TinyEventDispatcher.addListener( + BusMessageType.OPT_PIN_SHOW_IMAGE, + (event, key, value) => { + if (value.uid === pin.uid) { + if (divRef.current?.firstChild) { + divRef.current.removeChild(divRef.current.firstChild); + renderDiv(divRef.current); + } + } + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.OPT_PIN_SHOW_IMAGE, skipKey); + }; + }); + + const formatPinDate = (isoDt: string): string => { + return fnDateFormat(new Date(isoDt)); + }; + + const handleUrlClick = async () => { + await sendRuntimeMessage({ + type: BusMessageType.CONTENT_PIN_NAVIGATE, + data: pin + }); + }; + + return ( + + } subheader={formatPinDate(pin.createdDate)} /> + +
+
+
+
+ +
+ {pin.content.title} + handleUrlClick()}> + {pin.url.origin} + +
+
+
+ ); +}; diff --git a/src/options-ui/view/pin-board/pin.value.element.tsx b/src/options-ui/view/pin-board/pin.value.element.tsx new file mode 100644 index 0000000..9927108 --- /dev/null +++ b/src/options-ui/view/pin-board/pin.value.element.tsx @@ -0,0 +1,143 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinViewType } from '@common/model/pin.model'; +import React, { FunctionComponent, useEffect, useRef, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import ClearIcon from '@mui/icons-material/Clear'; +import DownloadIcon from '@mui/icons-material/Download'; +import { EditorView } from 'prosemirror-view'; +import HtmlIcon from '@mui/icons-material/Html'; +import { IconButton } from '@mui/material'; +import ImageIcon from '@mui/icons-material/Image'; +import ShareIcon from '@mui/icons-material/Share'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import { createTextEditorState } from '@common/components/text-editor/text.editor.state'; +import { defaultMarkdownSerializer } from 'prosemirror-markdown'; +import { fnB64toBlob } from '@common/fn/b64.to.blob.fn'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { pinIframeFn } from '@common/fn/pin/pin.iframe.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +interface PinValueProps { + pin: PinObject; +} + +class SaveTimeout { + static timeout = -1; +} + +export const PinValueElement: FunctionComponent = ({ pin }): JSX.Element => { + const [styleIcon, setStyleIcon] = useState(!pin.viewType || pin.viewType === PinViewType.SCREENSHOT); + const handleRemove = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_REMOVE, + data: pin + }); + }; + + const handleImageDownload = async (): Promise => { + if (!pin.screenshot) return; + let url, filename; + if (pin.viewType === PinViewType.SCREENSHOT) { + url = window.URL.createObjectURL(fnB64toBlob(pin.screenshot, 'image/jpeg')); + filename = `${pin.id}.jpg`; + } else { + const html = pinIframeFn(pin.content) || ''; + url = window.URL.createObjectURL(new Blob([html], { type: 'text/html' })); + filename = `${pin.id}.html`; + } + await fnBrowserApi().downloads.download({ + url, + filename, + conflictAction: 'uniquify' + }); + }; + + const handleShowImage = async (): Promise => { + setStyleIcon(!styleIcon); + if (pin.viewType === PinViewType.SCREENSHOT) { + pin.viewType = PinViewType.CONTENT; + } else { + pin.viewType = PinViewType.SCREENSHOT; + } + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_UPDATE, + data: pin + }); + TinyEventDispatcher.dispatch(BusMessageType.OPT_PIN_SHOW_IMAGE, pin); + }; + + const handleShare = async (): Promise => { + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_SHARE, + data: pin + }); + }; + + return ( +
+ +
+ + + + + + + + {styleIcon ? : } + + + + +
+
+ ); +}; + +const EditElement: FunctionComponent = ({ pin }): JSX.Element => { + const divRef = useRef(null); + + const renderDiv = (ref: HTMLDivElement): void => { + let state = createTextEditorState(pin.value); + const view = new EditorView(ref, { + state, + dispatchTransaction: (tx) => { + clearTimeout(SaveTimeout.timeout); + state = state.apply(tx); + view.updateState(state); + clearTimeout(SaveTimeout.timeout); + pin.value = defaultMarkdownSerializer.serialize(state.doc); + SaveTimeout.timeout = window.setTimeout(async () => { + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_UPDATE, + data: pin + }); + TinyEventDispatcher.dispatch(BusMessageType.OPT_PIN_SAVE_EDIT, pin); + }, 200); + } + }); + }; + + useEffect(() => { + if (divRef.current && !divRef.current?.firstChild) { + renderDiv(divRef.current); + } + }); + + return
; +}; diff --git a/src/options-ui/view/settings/content/content-settings.component.tsx b/src/options-ui/view/settings/content/content-settings.component.tsx new file mode 100644 index 0000000..8f675d2 --- /dev/null +++ b/src/options-ui/view/settings/content/content-settings.component.tsx @@ -0,0 +1,99 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { CSSProperties, ChangeEvent, FunctionComponent, useEffect, useState } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { ContentSettingsData } from '@common/model/settings.model'; +import { Input } from '@mui/material'; +import { SettingsStore } from '../../store/settings.store'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +const borderContainer: CSSProperties = { + display: 'flex', + flexDirection: 'row', + alignItems: 'center' +}; + +const initSettingsStore = () => { + SettingsStore.getSettings() + .then(() => { + /* Empty */ + }) + .catch(() => { + /* Empty */ + }); +}; + +export const ContentSettingsComponent: FunctionComponent = () => { + const [borderRadius, setBorderRadius] = useState(SettingsStore.settings?.borderRadius || ''); + const [borderStyle, setBorderStyle] = useState(SettingsStore.settings?.borderStyle || ''); + + useEffect(() => { + if (!borderRadius) { + initSettingsStore(); + } + + const settingsKey = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_GET_SETTINGS, + (event, key, value) => { + SettingsStore.settings = value; + setBorderRadius(value.borderRadius); + setBorderStyle(value.borderStyle); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_GET_SETTINGS, settingsKey); + }; + }); + + const handleBorderRadiusChange = async (e: ChangeEvent): Promise => { + if (SettingsStore.settings) { + SettingsStore.settings.borderRadius = e.target.value; + } + setBorderRadius(e.target.value); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_SET_SETTINGS, data: SettingsStore.settings }); + }; + + const handleBorderStyleChange = async (e: ChangeEvent): Promise => { + if (SettingsStore.settings) { + SettingsStore.settings.borderStyle = e.target.value; + } + setBorderStyle(e.target.value); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_SET_SETTINGS, data: SettingsStore.settings }); + }; + + return ( +
+ + content + +
+ + border radius + + +
+
+ + border style + + +
+
+ ); +}; diff --git a/src/options-ui/view/settings/crypto/crypto-settings.command.tsx b/src/options-ui/view/settings/crypto/crypto-settings.command.tsx new file mode 100644 index 0000000..f11de8c --- /dev/null +++ b/src/options-ui/view/settings/crypto/crypto-settings.command.tsx @@ -0,0 +1,52 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { IconButton, Input } from '@mui/material'; +import React, { FunctionComponent } from 'react'; +import ContentCopyIcon from '@mui/icons-material/ContentCopy'; +import RestartAltIcon from '@mui/icons-material/RestartAlt'; +import Typography from '@mui/material/Typography'; + +export const CryptoSettingsCommand: FunctionComponent = () => { + return ( +
+ + cryptography + +
+ + private key + + + + + + + + +
+
+ + public key + + + + + +
+
+ ); +}; diff --git a/src/options-ui/view/settings/server/add-server.component.tsx b/src/options-ui/view/settings/server/add-server.component.tsx new file mode 100644 index 0000000..011e874 --- /dev/null +++ b/src/options-ui/view/settings/server/add-server.component.tsx @@ -0,0 +1,25 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent } from 'react'; + +export const AddServerComponent: FunctionComponent = () => { + return ( +
+

Specify Server Settings

+
+ ); +}; diff --git a/src/options-ui/view/settings/server/server-settings.component.tsx b/src/options-ui/view/settings/server/server-settings.component.tsx new file mode 100644 index 0000000..774ec9f --- /dev/null +++ b/src/options-ui/view/settings/server/server-settings.component.tsx @@ -0,0 +1,64 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useState } from 'react'; +import AddIcon from '@mui/icons-material/Add'; +import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; +import CheckIcon from '@mui/icons-material/Check'; +import { IconButton } from '@mui/material'; +import Typography from '@mui/material/Typography'; +import { UserSettingsComponent } from '../user/user-settings.component'; + +export const ServerSettingsComponent: FunctionComponent = () => { + const [isAdding, setIsAdding] = useState(false); + + const handleAddClick = () => { + setIsAdding(true); + }; + + return ( +
+ + servers + + + + +
+
+ + pinmenote.com + + + + +
+
+
+ + + localhost:3000 + + (default) +
+
+ +
+
+
+
+ ); +}; diff --git a/src/options-ui/view/settings/settings.component.tsx b/src/options-ui/view/settings/settings.component.tsx new file mode 100644 index 0000000..d91ba6b --- /dev/null +++ b/src/options-ui/view/settings/settings.component.tsx @@ -0,0 +1,65 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { CSSProperties, FunctionComponent } from 'react'; +import ClearIcon from '@mui/icons-material/Clear'; +import { ContentSettingsComponent } from './content/content-settings.component'; +import { CryptoSettingsCommand } from './crypto/crypto-settings.command'; +import { IconButton } from '@mui/material'; +import { ServerSettingsComponent } from './server/server-settings.component'; +import { SyncSettingsComponent } from './sync/sync-settings.component'; +import Typography from '@mui/material/Typography'; + +const containerStyle: CSSProperties = { + margin: 10, + width: '70vw', + borderRadius: 5, + border: '2px dashed #000', + padding: 20 +}; + +export const SettingsComponent: FunctionComponent = () => { + const handleCloseClick = () => { + window.location.hash = ''; + }; + + return ( +
+
+ + Settings + + + + +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ ); +}; diff --git a/src/options-ui/view/settings/sync/sync-settings.component.tsx b/src/options-ui/view/settings/sync/sync-settings.component.tsx new file mode 100644 index 0000000..fa8220f --- /dev/null +++ b/src/options-ui/view/settings/sync/sync-settings.component.tsx @@ -0,0 +1,52 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { FunctionComponent, useEffect } from 'react'; +import { BusMessageType } from '@common/model/bus.model'; +import { Button } from '@mui/material'; +import { TinyEventDispatcher } from '@common/service/tiny.event.dispatcher'; +import Typography from '@mui/material/Typography'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export const SyncSettingsComponent: FunctionComponent = () => { + useEffect(() => { + const syncKey = TinyEventDispatcher.addListener( + BusMessageType.OPTIONS_SYNCHRONIZE_DATA, + (event, key, value) => { + fnConsoleLog('RESULT', value); + } + ); + return () => { + TinyEventDispatcher.removeListener(BusMessageType.OPTIONS_SYNCHRONIZE_DATA, syncKey); + }; + }); + + const handleSynchronize = async () => { + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_SYNCHRONIZE_DATA }); + }; + + return ( +
+ + synchronization + + +
+ ); +}; diff --git a/src/options-ui/view/settings/user/user-settings.component.tsx b/src/options-ui/view/settings/user/user-settings.component.tsx new file mode 100644 index 0000000..127feec --- /dev/null +++ b/src/options-ui/view/settings/user/user-settings.component.tsx @@ -0,0 +1,86 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import React, { CSSProperties, FunctionComponent } from 'react'; +import EditIcon from '@mui/icons-material/Edit'; +import { IconButton } from '@mui/material'; +import ShoppingCartIcon from '@mui/icons-material/ShoppingCart'; +import Typography from '@mui/material/Typography'; +import { fnConsoleLog } from '@common/fn/console.fn'; + +const elementStyle: CSSProperties = { + display: 'flex', + flexDirection: 'column', + border: '1px solid #333333', + width: 500, + padding: 10, + marginBottom: 20, + borderRadius: 5 +}; + +const elementEditStyle: CSSProperties = { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between', + border: '1px solid #333333', + width: 500, + padding: 10, + marginBottom: 20, + borderRadius: 5 +}; + +export const UserSettingsComponent: FunctionComponent = () => { + const handleEmailEditClick = () => { + fnConsoleLog('Email Click'); + }; + + const handleChangePlanClick = () => { + fnConsoleLog('Change Plan Click'); + }; + + return ( +
+ user +
+ username + aaa +
+
+
+ email + aaa@aaa.pl +
+ + + +
+
+
+ plan + free +
+ + + +
+
+ api url + http://localhost:3000 +
+
+ ); +}; diff --git a/src/options-ui/view/store/pin-board.store.ts b/src/options-ui/view/store/pin-board.store.ts new file mode 100644 index 0000000..99d4704 --- /dev/null +++ b/src/options-ui/view/store/pin-board.store.ts @@ -0,0 +1,87 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinRangeRequest } from '@common/model/pin.model'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class PinBoardStore { + static pins: PinObject[] = []; + + private static loading = false; + private static readonly search: PinRangeRequest = { + from: 0, + limit: 10 + }; + + static removePin(value: PinObject) { + for (let i = 0; i < this.pins.length; i++) { + if (this.pins[i].id == value.id) { + this.pins.splice(i, 1); + break; + } + } + } + + static clearSearch(): void { + this.search.from = 0; + this.search.search = undefined; + this.pins = []; + } + + static setLoading(value: boolean): void { + this.loading = value; + } + + static get isLoading(): boolean { + return this.loading; + } + + static timeout?: number; + + static setFrom(from: number): void { + this.search.from = from; + } + + static setSearch(search?: string): void { + this.search.search = search; + } + + static getSearch(): string | undefined { + return this.search.search; + } + + static getFrom(): number { + return this.search.from; + } + + static async sendRange(): Promise { + fnConsoleLog('PinBoardStore->getRange', this.search); + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_GET_RANGE, + data: this.search + }); + } + + static async sendSearch(): Promise { + fnConsoleLog('PinBoardStore->getSearch', this.search); + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_SEARCH, + data: PinBoardStore.search + }); + } +} diff --git a/src/options-ui/view/store/settings.store.ts b/src/options-ui/view/store/settings.store.ts new file mode 100644 index 0000000..a66b597 --- /dev/null +++ b/src/options-ui/view/store/settings.store.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { ContentSettingsData } from '@common/model/settings.model'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; + +export class SettingsStore { + static settings?: ContentSettingsData; + + static async getSettings(): Promise { + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_GET_SETTINGS }); + } +} diff --git a/src/service-worker/command/api/api-login.command.ts b/src/service-worker/command/api/api-login.command.ts new file mode 100644 index 0000000..7e95d86 --- /dev/null +++ b/src/service-worker/command/api/api-login.command.ts @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { CryptoSignCommand } from '../crypto/crypto-sign.command'; +import { FetchService } from '../../service/fetch.service'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import ICommand = Pinmenote.Common.ICommand; +import LoginDto = Pinmenote.Auth.LoginDto; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; + +export class ApiLoginCommand implements ICommand> { + constructor(private data: LoginDto) {} + async execute(): Promise { + this.data.signature = await new CryptoSignCommand(this.data.email).execute(); + + const resp = await FetchService.post(`${environmentConfig.apiUrl}/api/v1/login`, this.data); + fnConsoleLog('WorkerApiManager->login', resp); + + await ApiStore.setAccessToken(resp); + const tokenData = await ApiStore.getTokenData(); + if (!tokenData) throw new Error('No tokenData'); + + return tokenData.data; + } +} diff --git a/src/service-worker/command/api/api-register.command.ts b/src/service-worker/command/api/api-register.command.ts new file mode 100644 index 0000000..f800395 --- /dev/null +++ b/src/service-worker/command/api/api-register.command.ts @@ -0,0 +1,49 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { CryptoGenerateKeyPairCommand } from '../crypto/crypto-generate-key-pair.command'; +import { FetchService } from '../../service/fetch.service'; +import { RegisterFormData } from '@common/model/auth.model'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import ICommand = Pinmenote.Common.ICommand; +import RegisterDto = Pinmenote.Auth.RegisterDto; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; + +export class ApiRegisterCommand implements ICommand> { + constructor(private formData: RegisterFormData) {} + async execute(): Promise { + // Generate cryptographic keys and send public key to server + const keyData = await new CryptoGenerateKeyPairCommand(this.formData.username, this.formData.email).execute(); + const data: RegisterDto = { + email: this.formData.email, + username: this.formData.username, + acceptedVersion: this.formData.acceptedVersion, + publicKey: keyData.publicKey + }; + + const resp = await FetchService.post(`${environmentConfig.apiUrl}/api/v1/register`, data); + fnConsoleLog('WorkerApiManager->register', resp); + await ApiStore.setAccessToken(resp); + + const tokenData = await ApiStore.getTokenData(); + if (!tokenData) throw new Error('No tokenData'); + + return tokenData.data; + } +} diff --git a/src/service-worker/command/api/api-share-pin.command.ts b/src/service-worker/command/api/api-share-pin.command.ts new file mode 100644 index 0000000..4d04582 --- /dev/null +++ b/src/service-worker/command/api/api-share-pin.command.ts @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { FetchService } from '../../service/fetch.service'; +import { ObjectTypeDto } from '@common/model/html.model'; +import { PinObject } from '@common/model/pin.model'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; +import NewShareDto = Pinmenote.Share.NewShareDto; +import ShareUrlDto = Pinmenote.Share.ShareUrlDto; + +export class ApiSharePinCommand implements ICommand> { + constructor(private data: PinObject) {} + async execute(): Promise { + const authHeaders = await ApiStore.getAuthHeaders(); + const { locator, url, value } = this.data; + const data: NewShareDto = { + type: ObjectTypeDto.Pin, + data: { locator, url, value } + }; + fnConsoleLog('Send share', data); + const resp = await FetchService.post(`${environmentConfig.apiUrl}/api/v1/share`, data, authHeaders); + fnConsoleLog('ApiSharePinCommand', resp); + return resp; + } +} diff --git a/src/service-worker/command/api/api-sync-pin.command.ts b/src/service-worker/command/api/api-sync-pin.command.ts new file mode 100644 index 0000000..051bd67 --- /dev/null +++ b/src/service-worker/command/api/api-sync-pin.command.ts @@ -0,0 +1,183 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinByIdRequest, PinObject } from '@common/model/pin.model'; +import { fnIsoDateToUtcMiliseconds, fnMilisecondsToUtcDate } from '@common/fn/date.fn'; +import { ApiStore } from '../../store/api.store'; +import { ApiSyncQuotaCommand } from './api-sync-quota.command'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { CryptoDecryptCommand } from '../crypto/crypto-decrypt.command'; +import { CryptoEncryptSignCommand } from '../crypto/crypto-encrypt-sign.command'; +import { FetchService } from '../../service/fetch.service'; +import { ObjectTypeDto } from '@common/model/html.model'; +import { PinAddCommand } from '../pin/pin-add.command'; +import { PinRemoveCommand } from '../pin/pin-remove.command'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { PinUpdateCommand } from '../pin/pin-update.command'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import BoolDto = Pinmenote.Common.BoolDto; +import DiskQuotaDto = Pinmenote.Sync.DiskQuotaDto; +import EncryptedObjectDto = Pinmenote.Sync.EncryptedObjectDto; +import ICommand = Pinmenote.Common.ICommand; +import ObjectIdsDto = Pinmenote.Sync.ObjectIdsDto; + +export class ApiSyncPinCommand implements ICommand> { + async execute(): Promise { + // Get update dt + let dt = '1970-01-20T00:00:00.000Z'; + fnConsoleLog('syncNotes->dt', dt); + + const username = await ApiStore.getUsername(); + const url = `${environmentConfig.apiUrl}/api/v1/sync/${username}/${ObjectTypeDto.Pin}/list?dt=${dt}`; + const authHeaders = await ApiStore.getAuthHeaders(); + const syncResult = await FetchService.get(url, authHeaders); + fnConsoleLog('syncNotes->server', syncResult); + dt = await this.reconcile(dt, syncResult.ids); + + const ms = fnIsoDateToUtcMiliseconds(dt); + fnConsoleLog('syncNotes->reconcile->dt', dt, ms); + dt = await this.sendAll(dt); + fnConsoleLog('syncNotes->sendAll->dt', dt); + + // Update last date + await BrowserStorageWrapper.set(ApiStore.KEY_NOTE_UPDATE, dt); + + const quota = await new ApiSyncQuotaCommand().execute(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_SYNC_QUOTA, + data: quota + }); + + return { value: true }; + } + + private async sendAll(dt: string): Promise { + let maxMs = fnIsoDateToUtcMiliseconds(dt); + fnConsoleLog('Sync - sendAll - maxMs', maxMs); + const ids = await this.getIds(); + for (const id of ids) { + const pin = await this.pinGetId({ id }); + if (pin) { + const ms = fnIsoDateToUtcMiliseconds(pin.updatedDate); + if (ms <= maxMs) { + fnConsoleLog('Sync - sendAll - skip', id, ms, maxMs, dt); + continue; + } + maxMs = ms; + await this.sendPin(pin); + fnConsoleLog('Sync - sendNote - ok', id, maxMs); + } else { + fnConsoleLog('Sync - sendAll - not found', id); + } + } + return fnMilisecondsToUtcDate(maxMs).toISOString(); + } + + private async reconcile(dt: string, serverIds: number[]): Promise { + let maxMs = fnIsoDateToUtcMiliseconds(dt); + // sync notes that are after last id + for (const id of serverIds) { + const note: PinObject | undefined = await this.pinGetId({ id }); + if (!note) { + const t = await this.addFromServer(id); + maxMs = Math.max(t, maxMs); + } else { + const t = await this.updateFromServer(note); + maxMs = Math.max(t, maxMs); + } + } + return fnMilisecondsToUtcDate(maxMs).toISOString(); + } + + private async updateFromServer(pin: PinObject): Promise { + const username = await ApiStore.getUsername(); + const url = `${environmentConfig.apiUrl}/api/v1/sync/${username}/o/${pin.id}`; + const authHeaders = await ApiStore.getAuthHeaders(); + const syncPin = await FetchService.get(url, authHeaders); + if (syncPin.data) { + // Check if pin local time is less than remote time and update + const serverMs = fnIsoDateToUtcMiliseconds(syncPin.updatedAt); + const clientMs = fnIsoDateToUtcMiliseconds(pin.updatedDate); + if (clientMs < serverMs) { + const data = await new CryptoDecryptCommand(syncPin.data, false).execute(); + if (data) { + fnConsoleLog('Sync - updateFromServer - ok', pin.id); + await new PinUpdateCommand(data).execute(); + return fnIsoDateToUtcMiliseconds(syncPin.updatedAt); + } else { + fnConsoleLog('Sync - updateFromServer - no - decrypted', pin.id); + } + } else { + fnConsoleLog('Sync - updateFromServer - no - local is newer', pin.id); + } + } else { + await new PinRemoveCommand(pin).execute(); + fnConsoleLog('Sync - updateFromServer - ok - remove', pin.id); + return fnIsoDateToUtcMiliseconds(syncPin.updatedAt); + } + return 0; + } + + private async addFromServer(id: number): Promise { + const username = await ApiStore.getUsername(); + const url = `${environmentConfig.apiUrl}/api/v1/sync/${username}/o/${id}`; + // Try to find note + const authHeaders = await ApiStore.getAuthHeaders(); + const syncPin = await FetchService.get(url, authHeaders); + if (syncPin.data) { + const data = await new CryptoDecryptCommand(syncPin.data, false).execute(); + if (data) { + await new PinAddCommand(data).execute(); + } else { + fnConsoleLog('Sync - addFromServer - no - decrypted', id); + } + fnConsoleLog('Sync - addFromServer - ok', id); + return fnIsoDateToUtcMiliseconds(syncPin.updatedAt); + } else { + fnConsoleLog('Sync - addFromServer - no - data empty so added and removed', id); + } + return 0; + } + + private async sendPin(pin: PinObject): Promise { + const username = await ApiStore.getUsername(); + const url = `${environmentConfig.apiUrl}/api/v1/sync/${username}/${ObjectTypeDto.Pin}`; + const data = await new CryptoEncryptSignCommand(pin).execute(); + const dto: EncryptedObjectDto = { + id: pin.id, + type: ObjectTypeDto.Pin as unknown as Pinmenote.Sync.ObjectTypeDto, + createdAt: pin.createdDate, + updatedAt: pin.updatedDate || pin.createdDate, + data + }; + fnConsoleLog('sendNote->dto', dto); + const authHeaders = await ApiStore.getAuthHeaders(); + await FetchService.post(url, dto, authHeaders); + } + + private async pinGetId(pin: PinByIdRequest): Promise { + const key = `${PinStoreKeys.PIN_ID}:${pin.id}`; + return await BrowserStorageWrapper.get(key); + } + + private async getIds(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_ID_LIST); + return value || []; + } +} diff --git a/src/service-worker/command/api/api-sync-quota.command.ts b/src/service-worker/command/api/api-sync-quota.command.ts new file mode 100644 index 0000000..f91f21c --- /dev/null +++ b/src/service-worker/command/api/api-sync-quota.command.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { FetchService } from '../../service/fetch.service'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import DiskQuotaDto = Pinmenote.Sync.DiskQuotaDto; +import ICommand = Pinmenote.Common.ICommand; + +export class ApiSyncQuotaCommand implements ICommand> { + async execute(): Promise { + const username = await ApiStore.getUsername(); + const url = `${environmentConfig.apiUrl}/api/v1/sync/${username}/quota`; + const authHeaders = await ApiStore.getAuthHeaders(); + const quota = await FetchService.get(url, authHeaders); + fnConsoleLog('WorkerApiManager->syncQuota', quota); + return quota; + } +} diff --git a/src/service-worker/command/content/content-icon-color.command.ts b/src/service-worker/command/content/content-icon-color.command.ts new file mode 100644 index 0000000..e7af2f2 --- /dev/null +++ b/src/service-worker/command/content/content-icon-color.command.ts @@ -0,0 +1,47 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { fnBrowserApi, fnRuntimeUrl } from '@common/service/browser.api.wrapper'; +import { ExtensionTheme } from '@common/model/settings.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import icon16 from '../../../assets/icon/light/16.png'; +import icon24 from '../../../assets/icon/light/24.png'; +import icon32 from '../../../assets/icon/light/32.png'; +import ICommand = Pinmenote.Common.ICommand; + +const lightIcons = () => { + const start = fnRuntimeUrl().length + 1; + return { + path: { + '16': (icon16 as string).substring(start).split('?')[0], + '24': (icon24 as string).substring(start).split('?')[0], + '32': (icon32 as string).substring(start).split('?')[0] + } + }; +}; + +export class ContentIconColorCommand implements ICommand { + constructor(private theme: ExtensionTheme) {} + async execute(): Promise { + try { + if (this.theme === ExtensionTheme.LIGHT) { + await fnBrowserApi().browserAction.setIcon(lightIcons()); + } + } catch (e) { + fnConsoleLog('Error', this.theme, e); + } + } +} diff --git a/src/service-worker/command/content/content-link-add.command.ts b/src/service-worker/command/content/content-link-add.command.ts new file mode 100644 index 0000000..60e49a4 --- /dev/null +++ b/src/service-worker/command/content/content-link-add.command.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; +import LinkDto = Pinmenote.Pin.LinkDto; + +export class ContentLinkAddCommand implements ICommand { + constructor(private data: LinkDto) {} + async execute(): Promise { + try { + fnConsoleLog('ContentLinkAddCommand', this.data); + await BrowserStorageWrapper.set(PinStoreKeys.PIN_LINK, this.data); + await sendTabMessage({ type: BusMessageType.CONTENT_LINK_ADD, data: this.data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } +} diff --git a/src/service-worker/command/content/content-login-refresh.command.ts b/src/service-worker/command/content/content-login-refresh.command.ts new file mode 100644 index 0000000..d3f384f --- /dev/null +++ b/src/service-worker/command/content/content-login-refresh.command.ts @@ -0,0 +1,26 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { sendTabMessage } from '@common/message/tab.message'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentLoginRefreshCommand implements ICommand { + async execute(): Promise { + await sendTabMessage({ type: BusMessageType.CONTENT_LOGIN_REFRESH, data: undefined }); + } +} diff --git a/src/service-worker/command/content/content-login.command.ts b/src/service-worker/command/content/content-login.command.ts new file mode 100644 index 0000000..ab9dc6e --- /dev/null +++ b/src/service-worker/command/content/content-login.command.ts @@ -0,0 +1,44 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentLoginCommand implements ICommand { + constructor(private data: string) {} + + async execute(): Promise { + try { + if (environmentConfig.isProduction) { + const key = `${ApiStore.ACCESS_TOKEN}:${this.data}`; + const accessToken = await BrowserStorageWrapper.get(key); + await sendTabMessage({ type: BusMessageType.CONTENT_LOGIN, data: accessToken }); + } else { + const key = `${ApiStore.ACCESS_TOKEN}:${environmentConfig.apiUrl}`; + const accessToken = await BrowserStorageWrapper.get(key); + await sendTabMessage({ type: BusMessageType.CONTENT_LOGIN, data: accessToken }); + } + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-add.command.ts b/src/service-worker/command/content/content-pin-add.command.ts new file mode 100644 index 0000000..a5c018f --- /dev/null +++ b/src/service-worker/command/content/content-pin-add.command.ts @@ -0,0 +1,31 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinAddCommand } from '../pin/pin-add.command'; +import { PinObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinAddCommand implements ICommand { + constructor(private pin: PinObject) {} + async execute(): Promise { + try { + await new PinAddCommand(this.pin).execute(); + } catch (e) { + fnConsoleLog('Error', this.pin, e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-changed.command.ts b/src/service-worker/command/content/content-pin-changed.command.ts new file mode 100644 index 0000000..8b7a42d --- /dev/null +++ b/src/service-worker/command/content/content-pin-changed.command.ts @@ -0,0 +1,40 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinChangedCommand implements ICommand { + async execute(): Promise { + try { + const changedPin = await BrowserStorageWrapper.get(PinStoreKeys.CHANGED_PIN); + + await BrowserStorageWrapper.remove(PinStoreKeys.CHANGED_PIN); + + const data = changedPin || []; + await sendTabMessage({ + type: BusMessageType.CONTENT_PIN_CHANGED, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-focus.command.ts b/src/service-worker/command/content/content-pin-focus.command.ts new file mode 100644 index 0000000..8214a6e --- /dev/null +++ b/src/service-worker/command/content/content-pin-focus.command.ts @@ -0,0 +1,37 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinFocusCommand implements ICommand { + async execute(): Promise { + try { + const data = await BrowserStorageWrapper.get(PinStoreKeys.NAVIGATE_PIN); + + await BrowserStorageWrapper.remove(PinStoreKeys.NAVIGATE_PIN); + + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_FOCUS, data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-get-href.command.ts b/src/service-worker/command/content/content-pin-get-href.command.ts new file mode 100644 index 0000000..9b9c013 --- /dev/null +++ b/src/service-worker/command/content/content-pin-get-href.command.ts @@ -0,0 +1,38 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinGetHrefCommand } from '../pin/pin-get-href.command'; +import { PinObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class ContentPinGetHrefCommand implements ICommand { + constructor(private url: PinUrl) {} + async execute(): Promise { + try { + const data = await new PinGetHrefCommand(this.url, true).execute(); + await sendTabMessage({ + type: BusMessageType.CONTENT_PIN_GET_HREF, + data + }); + } catch (e) { + fnConsoleLog('Error', this.url, e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-get-id.command.ts b/src/service-worker/command/content/content-pin-get-id.command.ts new file mode 100644 index 0000000..db457f9 --- /dev/null +++ b/src/service-worker/command/content/content-pin-get-id.command.ts @@ -0,0 +1,44 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinByIdRequest, PinObject } from '@common/model/pin.model'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinGetIdCommand implements ICommand { + constructor(private pinById: PinByIdRequest) {} + + async execute(): Promise { + try { + const data = await this.pinGetId(this.pinById); + await sendTabMessage({ + type: BusMessageType.CONTENT_PIN_GET_ID, + data + }); + } catch (e) { + fnConsoleLog('Error', this.pinById, e); + } + } + + private async pinGetId(pin: PinByIdRequest): Promise { + const key = `${PinStoreKeys.PIN_ID}:${pin.id}`; + return await BrowserStorageWrapper.get(key); + } +} diff --git a/src/service-worker/command/content/content-pin-navigate.command.ts b/src/service-worker/command/content/content-pin-navigate.command.ts new file mode 100644 index 0000000..93ea787 --- /dev/null +++ b/src/service-worker/command/content/content-pin-navigate.command.ts @@ -0,0 +1,32 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinNavigateCommand implements ICommand { + constructor(private pin: PinObject) {} + async execute(): Promise { + try { + await BrowserStorageWrapper.set(PinStoreKeys.NAVIGATE_PIN, this.pin); + } catch (e) { + fnConsoleLog('Error', this.pin, e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-next-id.command.ts b/src/service-worker/command/content/content-pin-next-id.command.ts new file mode 100644 index 0000000..3b46a0e --- /dev/null +++ b/src/service-worker/command/content/content-pin-next-id.command.ts @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinNextIdCommand implements ICommand { + async execute(): Promise { + try { + const nextId = (await this.getCount()) + 1; + await sendTabMessage({ + type: BusMessageType.CONTENT_PIN_ID, + data: nextId + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } + + async getCount(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_LAST_ID); + return value || 0; + } +} diff --git a/src/service-worker/command/content/content-pin-remove.command.ts b/src/service-worker/command/content/content-pin-remove.command.ts new file mode 100644 index 0000000..1396fee --- /dev/null +++ b/src/service-worker/command/content/content-pin-remove.command.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinRemoveCommand } from '../pin/pin-remove.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinRemoveCommand implements ICommand { + constructor(private pin: PinObject) {} + async execute(): Promise { + try { + await new PinRemoveCommand(this.pin).execute(); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_REMOVE, data: this.pin }); + } catch (e) { + fnConsoleLog('Error', this.pin, e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-screenshot.command.ts b/src/service-worker/command/content/content-pin-screenshot.command.ts new file mode 100644 index 0000000..f9d1243 --- /dev/null +++ b/src/service-worker/command/content/content-pin-screenshot.command.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinScreenshotCommand implements ICommand { + async execute(): Promise { + try { + // TODO allow to change inside settings + const data = await fnBrowserApi().tabs.captureVisibleTab({ + format: 'jpeg', + quality: 80 + }); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_SCREENSHOT, data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/content/content-pin-update.command.ts b/src/service-worker/command/content/content-pin-update.command.ts new file mode 100644 index 0000000..61f8ff7 --- /dev/null +++ b/src/service-worker/command/content/content-pin-update.command.ts @@ -0,0 +1,31 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinUpdateCommand } from '../pin/pin-update.command'; +import { PinUpdateObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentPinUpdateCommand implements ICommand { + constructor(private pin: PinUpdateObject) {} + async execute(): Promise { + try { + await new PinUpdateCommand(this.pin).execute(); + } catch (e) { + fnConsoleLog('Error', this.pin, e); + } + } +} diff --git a/src/service-worker/command/content/content-refresh-token.command.ts b/src/service-worker/command/content/content-refresh-token.command.ts new file mode 100644 index 0000000..40e1089 --- /dev/null +++ b/src/service-worker/command/content/content-refresh-token.command.ts @@ -0,0 +1,31 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { FetchService } from '../../service/fetch.service'; +import { sendTabMessage } from '@common/message/tab.message'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentRefreshTokenCommand implements ICommand { + async execute(): Promise { + // Fill token data + await ApiStore.getTokenData(); + await FetchService.refreshToken(); + await sendTabMessage({ type: BusMessageType.CONTENT_REFRESH_TOKEN, data: undefined }); + } +} diff --git a/src/service-worker/command/content/content-settings.command.ts b/src/service-worker/command/content/content-settings.command.ts new file mode 100644 index 0000000..ee3f391 --- /dev/null +++ b/src/service-worker/command/content/content-settings.command.ts @@ -0,0 +1,50 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ContentExtensionData, ContentSettingsData } from '@common/model/settings.model'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { ContentIconColorCommand } from './content-icon-color.command'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { SettingsKeys } from '../../store/keys/settings.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; +import LinkDto = Pinmenote.Pin.LinkDto; + +export class ContentSettingsCommand implements ICommand { + constructor(private data: ContentExtensionData) {} + + async execute(): Promise { + await new ContentIconColorCommand(this.data.theme).execute(); + + const settingsData = await BrowserStorageWrapper.get(SettingsKeys.CONTENT_SETTINGS_KEY); + + let link = await BrowserStorageWrapper.get(PinStoreKeys.PIN_LINK); + fnConsoleLog('ContentSettingsCommand', link, this.data.href); + if (this.data.href === link?.url.href) { + await BrowserStorageWrapper.remove(PinStoreKeys.PIN_LINK); + } else { + link = undefined; + } + + const data: ContentSettingsData = { + ...settingsData, + link + }; + await sendTabMessage({ type: BusMessageType.CONTENT_SETTINGS, data }); + } +} diff --git a/src/service-worker/command/content/content-timeout.command.ts b/src/service-worker/command/content/content-timeout.command.ts new file mode 100644 index 0000000..2be844c --- /dev/null +++ b/src/service-worker/command/content/content-timeout.command.ts @@ -0,0 +1,40 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType, TimeoutMessage } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class ContentTimeoutCommand implements ICommand { + constructor(private data: TimeoutMessage) {} + async execute(): Promise { + try { + const timeoutId = setTimeout(this.sendTimeoutMessage, this.data.ms); + await this.sendTimeoutSetMessage(+timeoutId); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } + + private sendTimeoutMessage = async (): Promise => { + await sendTabMessage({ type: BusMessageType.CONTENT_TIMEOUT, data: this.data }); + }; + + private sendTimeoutSetMessage = async (data: number): Promise => { + await sendTabMessage({ type: BusMessageType.CONTENT_TIMEOUT_SET, data }); + }; +} diff --git a/src/service-worker/command/crypto/crypto-decrypt.command.ts b/src/service-worker/command/crypto/crypto-decrypt.command.ts new file mode 100644 index 0000000..f61848d --- /dev/null +++ b/src/service-worker/command/crypto/crypto-decrypt.command.ts @@ -0,0 +1,41 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { DecryptOptions, Message, decrypt, readMessage } from 'openpgp'; +import { CryptoStore } from '../../store/crypto.store'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoDecryptCommand implements ICommand> { + constructor(private armoredMessage: string, private checkSignature = false) {} + async execute(): Promise { + await CryptoStore.loadKeys(); + if (!CryptoStore.cryptoKey) return undefined; + const message: Message = await readMessage({ armoredMessage: this.armoredMessage }); + const opts: DecryptOptions = { message, decryptionKeys: CryptoStore.cryptoKey.privateKey }; + if (this.checkSignature) { + opts.verificationKeys = CryptoStore.cryptoKey.publicKey; + } + const { data, signatures } = await decrypt(opts); + if (this.checkSignature) { + try { + await signatures[0].verified; + } catch (e: any) { + throw new Error(`Invalid signature : ${(e as { message: string }).message}`); + } + } + return JSON.parse(data.toString()); + } +} diff --git a/src/service-worker/command/crypto/crypto-encrypt-private-key.command.ts b/src/service-worker/command/crypto/crypto-encrypt-private-key.command.ts new file mode 100644 index 0000000..c15e36f --- /dev/null +++ b/src/service-worker/command/crypto/crypto-encrypt-private-key.command.ts @@ -0,0 +1,32 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CryptoStore } from '../../store/crypto.store'; +import { encryptKey } from 'openpgp'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoEncryptPrivateKeyCommand implements ICommand> { + constructor(private password: string) {} + async execute(): Promise { + await CryptoStore.loadKeys(); + if (!CryptoStore.cryptoKey?.privateKey) return undefined; + const keyOutput = await encryptKey({ + privateKey: CryptoStore.cryptoKey.privateKey, + passphrase: this.password + }); + return btoa(keyOutput.armor()); + } +} diff --git a/src/service-worker/command/crypto/crypto-encrypt-sign.command.ts b/src/service-worker/command/crypto/crypto-encrypt-sign.command.ts new file mode 100644 index 0000000..601eca9 --- /dev/null +++ b/src/service-worker/command/crypto/crypto-encrypt-sign.command.ts @@ -0,0 +1,35 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Message, createMessage, encrypt } from 'openpgp'; +import { CryptoStore } from '../../store/crypto.store'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoEncryptSignCommand implements ICommand> { + constructor(private value: object) {} + async execute(): Promise { + await CryptoStore.loadKeys(); + const text = JSON.stringify(this.value); + const message: Message = await createMessage({ text }); + + const encrypted = await encrypt({ + message, + encryptionKeys: CryptoStore.cryptoKey?.publicKey, + signingKeys: CryptoStore.cryptoKey?.privateKey + }); + return encrypted.toString(); + } +} diff --git a/src/service-worker/command/crypto/crypto-encrypt.command.ts b/src/service-worker/command/crypto/crypto-encrypt.command.ts new file mode 100644 index 0000000..b69da18 --- /dev/null +++ b/src/service-worker/command/crypto/crypto-encrypt.command.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Message, PublicKey, createMessage, encrypt, readKey } from 'openpgp'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoEncryptCommand implements ICommand> { + constructor(private value: object, private armoredKey: string) {} + + async execute(): Promise { + const text = JSON.stringify(this.value); + const message: Message = await createMessage({ text }); + + // Public key + const encryptionKeys: PublicKey = await readKey({ armoredKey: this.armoredKey }); + + const encrypted = await encrypt({ message, encryptionKeys }); + return encrypted.toString(); + } +} diff --git a/src/service-worker/command/crypto/crypto-generate-key-pair.command.ts b/src/service-worker/command/crypto/crypto-generate-key-pair.command.ts new file mode 100644 index 0000000..144ab67 --- /dev/null +++ b/src/service-worker/command/crypto/crypto-generate-key-pair.command.ts @@ -0,0 +1,40 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CryptoKeyData, CryptoStore } from '../../store/crypto.store'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { generateKey } from 'openpgp'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoGenerateKeyPairCommand implements ICommand> { + constructor(private name: string, private email: string) {} + + async execute(): Promise { + const { privateKey, publicKey, revocationCertificate } = await generateKey({ + type: 'rsa', + rsaBits: 2048, + userIDs: [{ name: this.name, email: this.email, comment: 'pinmenote.com' }], + format: 'armored' + }); + const keyData = { privateKey, publicKey, revocationCertificate }; + await BrowserStorageWrapper.set(CryptoStore.PRIVATE_KEY, keyData); + + // load keys to variable after generation + await CryptoStore.loadKeys(); + + return keyData; + } +} diff --git a/src/service-worker/command/crypto/crypto-sign.command.ts b/src/service-worker/command/crypto/crypto-sign.command.ts new file mode 100644 index 0000000..56628b1 --- /dev/null +++ b/src/service-worker/command/crypto/crypto-sign.command.ts @@ -0,0 +1,38 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Message, createMessage, sign } from 'openpgp'; +import { CryptoStore } from '../../store/crypto.store'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoSignCommand implements ICommand> { + constructor(private text: string) {} + + async execute(): Promise { + await CryptoStore.loadKeys(); + if (!CryptoStore.cryptoKey?.privateKey) throw new Error('Private key not found'); + const message: Message = await createMessage({ text: this.text }); + const armoredSignature = await sign({ + message, + signingKeys: CryptoStore.cryptoKey.privateKey, + detached: true + }); + fnConsoleLog('WorkerCryptoManager->sign->text', this.text); + fnConsoleLog('WorkerCryptoManager->sign->signature', armoredSignature.toString()); + return armoredSignature.toString(); + } +} diff --git a/src/service-worker/command/crypto/crypto-verify-signature.command.ts b/src/service-worker/command/crypto/crypto-verify-signature.command.ts new file mode 100644 index 0000000..756c026 --- /dev/null +++ b/src/service-worker/command/crypto/crypto-verify-signature.command.ts @@ -0,0 +1,42 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { Message, createMessage, readSignature, verify } from 'openpgp'; +import { CryptoStore } from '../../store/crypto.store'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class CryptoVerifySignatureCommand implements ICommand { + constructor(private text: string, private armoredSignature: string) {} + async execute(): Promise { + await CryptoStore.loadKeys(); + if (!CryptoStore.cryptoKey?.publicKey) throw new Error('Private key not found'); + + const message: Message = await createMessage({ text: this.text }); + const signature = await readSignature({ + armoredSignature: this.armoredSignature.toString() + }); + + const verificationResult = await verify({ + message, + signature, + verificationKeys: CryptoStore.cryptoKey.publicKey + }); + const { verified, keyID } = verificationResult.signatures[0]; + await verified; // throws on invalid signature + fnConsoleLog('Signed by key id ' + keyID.toHex()); + } +} diff --git a/src/service-worker/command/options/options-get-origin-urls.command.ts b/src/service-worker/command/options/options-get-origin-urls.command.ts new file mode 100644 index 0000000..8d7a667 --- /dev/null +++ b/src/service-worker/command/options/options-get-origin-urls.command.ts @@ -0,0 +1,32 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinHrefOriginStore } from '../../store/pin/pin-href-origin.store'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsGetOriginUrlsCommand implements ICommand { + async execute(): Promise { + try { + const data = await PinHrefOriginStore.getOriginUrls(); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_GET_ORIGIN_URLS, data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/options/options-get-settings.command.ts b/src/service-worker/command/options/options-get-settings.command.ts new file mode 100644 index 0000000..e9a5cbb --- /dev/null +++ b/src/service-worker/command/options/options-get-settings.command.ts @@ -0,0 +1,29 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { ContentSettingsData } from '@common/model/settings.model'; +import { SettingsKeys } from '../../store/keys/settings.keys'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsGetSettingsCommand implements ICommand> { + async execute(): Promise { + const data = await BrowserStorageWrapper.get(SettingsKeys.CONTENT_SETTINGS_KEY); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_GET_SETTINGS, data }); + } +} diff --git a/src/service-worker/command/options/options-pin-get-hash-list.command.ts b/src/service-worker/command/options/options-pin-get-hash-list.command.ts new file mode 100644 index 0000000..783f4f3 --- /dev/null +++ b/src/service-worker/command/options/options-pin-get-hash-list.command.ts @@ -0,0 +1,33 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinHashtagStore } from '../../store/pin/pin-hashtag.store'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinGetHashListCommand implements ICommand { + async execute(): Promise { + try { + const data = await PinHashtagStore.getHashtagList(); + fnConsoleLog('HASHTAG LIST', data); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_GET_HASH_LIST, data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/options/options-pin-get-last-id.command.ts b/src/service-worker/command/options/options-pin-get-last-id.command.ts new file mode 100644 index 0000000..a968d5f --- /dev/null +++ b/src/service-worker/command/options/options-pin-get-last-id.command.ts @@ -0,0 +1,38 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinGetLastIdCommand implements ICommand { + async execute(): Promise { + try { + const data = await this.getCount(); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_GET_LAST_ID, data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } + + private async getCount(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_LAST_ID); + return value || 0; + } +} diff --git a/src/service-worker/command/options/options-pin-get-range.command.ts b/src/service-worker/command/options/options-pin-get-range.command.ts new file mode 100644 index 0000000..e61d24c --- /dev/null +++ b/src/service-worker/command/options/options-pin-get-range.command.ts @@ -0,0 +1,57 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinRangeRequest } from '@common/model/pin.model'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinGetRangeCommand implements ICommand { + constructor(private data: PinRangeRequest) {} + + async execute(): Promise { + try { + const data = await this.getRange(PinStoreKeys.PIN_ID, this.data); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_GET_RANGE, data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } + + private async getRange(idKey: string, range: PinRangeRequest): Promise { + if (range.from === undefined || !range.limit) return []; + // Get ids - can optimise reverse by looking in reverse later + const ids = (await this.getIds()).reverse(); + + // Get ids + const out: PinObject[] = []; + const getIds: number[] = ids.slice(range.from, range.from + range.limit); + for (let i = 0; i < getIds.length; i++) { + const key = `${idKey}:${getIds[i]}`; + const pin = await BrowserStorageWrapper.get(key); + out.push(pin); + } + return out; + } + + private async getIds(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_ID_LIST); + return value || []; + } +} diff --git a/src/service-worker/command/options/options-pin-remove.command.ts b/src/service-worker/command/options/options-pin-remove.command.ts new file mode 100644 index 0000000..b5b63be --- /dev/null +++ b/src/service-worker/command/options/options-pin-remove.command.ts @@ -0,0 +1,34 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinRemoveCommand } from '../pin/pin-remove.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinRemoveCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + try { + await new PinRemoveCommand(this.data).execute(); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_REMOVE, data: this.data }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/options/options-pin-search.command.ts b/src/service-worker/command/options/options-pin-search.command.ts new file mode 100644 index 0000000..6efc7bd --- /dev/null +++ b/src/service-worker/command/options/options-pin-search.command.ts @@ -0,0 +1,70 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinRangeRequest } from '@common/model/pin.model'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinSearchCommand implements ICommand { + constructor(private data: PinRangeRequest) {} + + async execute(): Promise { + try { + const data = await this.getSearch(PinStoreKeys.PIN_ID, this.data); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_SEARCH, data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } + + private async getSearch(idKey: string, range: PinRangeRequest): Promise { + if (!range.search || range.search?.length < 2) return []; + const out: PinObject[] = []; + const ids = (await this.getIds()).reverse(); + + for (let i = 0; i < ids.length; i++) { + // Skip those that were sent + if (range.from && ids[i] >= range.from) continue; + const key = `${idKey}:${ids[i]}`; + const pin = await BrowserStorageWrapper.get(key); + if (pin && this.search(range.search, pin)) { + out.push(pin); + } + if (out.length > 5) { + return out; + } + } + return out; + } + + private search(searchValue: string, pin: PinObject): boolean { + if (pin.value.toLowerCase().indexOf(searchValue) > -1) return true; + if (pin.url.href.indexOf(searchValue) > -1) return true; + if (pin.createdDate.indexOf(searchValue) > -1) return true; + if (pin.content.title.toLowerCase().indexOf(searchValue) > -1) return true; + if (pin.content.elementText && pin.content.elementText.toLowerCase().indexOf(searchValue) > -1) return true; + return false; + } + + private async getIds(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_ID_LIST); + return value || []; + } +} diff --git a/src/service-worker/command/options/options-pin-share.command.ts b/src/service-worker/command/options/options-pin-share.command.ts new file mode 100644 index 0000000..e6e8b57 --- /dev/null +++ b/src/service-worker/command/options/options-pin-share.command.ts @@ -0,0 +1,46 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiSharePinCommand } from '../api/api-share-pin.command'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import ServerErrorDto = Pinmenote.Common.ServerErrorDto; +import ShareUrlDto = Pinmenote.Share.ShareUrlDto; + +export class OptionsPinShareCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + try { + const data = await new ApiSharePinCommand(this.data).execute(); + + await sendRuntimeMessage({ + type: BusMessageType.OPTIONS_PIN_SHARE, + data + }); + } catch (e: unknown) { + fnConsoleLog('OptionsPinShareCommand Error', e); + const { error } = e as { error: ServerErrorDto }; + const data = error.code ? error : { code: -1, message: (e as Error).message }; + await sendRuntimeMessage({ + type: BusMessageType.POPUP_API_ERROR, + data + }); + } + } +} diff --git a/src/service-worker/command/options/options-pin-update.command.ts b/src/service-worker/command/options/options-pin-update.command.ts new file mode 100644 index 0000000..b5b08d0 --- /dev/null +++ b/src/service-worker/command/options/options-pin-update.command.ts @@ -0,0 +1,46 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { PinUpdateCommand } from '../pin/pin-update.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsPinUpdateCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + try { + await new PinUpdateCommand({ pin: this.data }).execute(); + await this.addChangedPin(); + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_PIN_UPDATE, data: this.data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } + private async addChangedPin(): Promise { + let data = await BrowserStorageWrapper.get(PinStoreKeys.CHANGED_PIN); + if (data) { + data.push(this.data.id); + } else { + data = [this.data.id]; + } + await BrowserStorageWrapper.set(PinStoreKeys.CHANGED_PIN, data); + } +} diff --git a/src/service-worker/command/options/options-set-settings.command.ts b/src/service-worker/command/options/options-set-settings.command.ts new file mode 100644 index 0000000..9354176 --- /dev/null +++ b/src/service-worker/command/options/options-set-settings.command.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { ContentSettingsData } from '@common/model/settings.model'; +import { SettingsKeys } from '../../store/keys/settings.keys'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsSetSettingsCommand implements ICommand> { + constructor(private data: ContentSettingsData) {} + async execute(): Promise { + await BrowserStorageWrapper.set(SettingsKeys.CONTENT_SETTINGS_KEY, this.data); + } +} diff --git a/src/service-worker/command/options/options-synchronize-data.command.ts b/src/service-worker/command/options/options-synchronize-data.command.ts new file mode 100644 index 0000000..11237b1 --- /dev/null +++ b/src/service-worker/command/options/options-synchronize-data.command.ts @@ -0,0 +1,25 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class OptionsSynchronizeDataCommand implements ICommand> { + async execute(): Promise { + await sendRuntimeMessage({ type: BusMessageType.OPTIONS_SYNCHRONIZE_DATA, data: 'foo' }); + } +} diff --git a/src/service-worker/command/pin/pin-add.command.ts b/src/service-worker/command/pin/pin-add.command.ts new file mode 100644 index 0000000..e987a89 --- /dev/null +++ b/src/service-worker/command/pin/pin-add.command.ts @@ -0,0 +1,54 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { PinFindHashtagCommand } from './pin-find-hashtag.command'; +import { PinHashtagStore } from '../../store/pin/pin-hashtag.store'; +import { PinHrefOriginStore } from '../../store/pin/pin-href-origin.store'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinAddCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + fnConsoleLog('WorkerPinManager->pinAdd', this.data, this.data.id); + + await this.addId(this.data.id); + + const hashtags = new PinFindHashtagCommand(this.data.value).execute(); + for (const tag of hashtags) { + await PinHashtagStore.addHashtag(tag, this.data.id); + } + + const key = `${PinStoreKeys.PIN_ID}:${this.data.id}`; + await BrowserStorageWrapper.set(key, this.data); + await PinHrefOriginStore.addHrefOriginId(this.data.url, this.data.id); + } + + private async addId(id: number): Promise { + const ids = await this.getIds(); + ids.push(id); + await BrowserStorageWrapper.set(PinStoreKeys.PIN_ID_LIST, ids); + await BrowserStorageWrapper.set(PinStoreKeys.PIN_LAST_ID, id); + } + + private async getIds(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_ID_LIST); + return value || []; + } +} diff --git a/src/service-worker/command/pin/pin-find-hashtag.command.ts b/src/service-worker/command/pin/pin-find-hashtag.command.ts new file mode 100644 index 0000000..434cd39 --- /dev/null +++ b/src/service-worker/command/pin/pin-find-hashtag.command.ts @@ -0,0 +1,27 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PIN_HASHTAG_REGEX } from '@common/model/pin.model'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinFindHashtagCommand implements ICommand { + constructor(private value: string) {} + + execute(): string[] { + const match = this.value.match(PIN_HASHTAG_REGEX); + return match ? Array.from(match) : []; + } +} diff --git a/src/service-worker/command/pin/pin-get-href.command.ts b/src/service-worker/command/pin/pin-get-href.command.ts new file mode 100644 index 0000000..9b60418 --- /dev/null +++ b/src/service-worker/command/pin/pin-get-href.command.ts @@ -0,0 +1,42 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { PinHrefOriginStore } from '../../store/pin/pin-href-origin.store'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class PinGetHrefCommand implements ICommand> { + constructor(private data: PinUrl, private filterVisible = false) {} + + async execute(): Promise { + const pinIds = (await PinHrefOriginStore.hrefIds(this.data.href)).reverse(); + fnConsoleLog('WorkerPinManager->pinGetHref', this.data.href, pinIds); + // await this.test(); + const out: PinObject[] = []; + for (const id of pinIds) { + const key = `${PinStoreKeys.PIN_ID}:${id}`; + const pin = await BrowserStorageWrapper.get(key); + // TODO revisit visible flag in pin.manager.ts in content scripts + if (this.filterVisible && !pin.visible) continue; + out.push(pin); + } + return out; + } +} diff --git a/src/service-worker/command/pin/pin-remove.command.ts b/src/service-worker/command/pin/pin-remove.command.ts new file mode 100644 index 0000000..fafb5ce --- /dev/null +++ b/src/service-worker/command/pin/pin-remove.command.ts @@ -0,0 +1,55 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { PinFindHashtagCommand } from './pin-find-hashtag.command'; +import { PinHashtagStore } from '../../store/pin/pin-hashtag.store'; +import { PinHrefOriginStore } from '../../store/pin/pin-href-origin.store'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinRemoveCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + fnConsoleLog('WorkerPinManager->pinRemove', this.data); + await BrowserStorageWrapper.remove(`${PinStoreKeys.PIN_ID}:${this.data.id}`); + await PinHrefOriginStore.delHrefOriginId(this.data.url, this.data.id); + await this.delId(this.data.id); + + const hashtags = new PinFindHashtagCommand(this.data.value).execute(); + for (const tag of hashtags) { + await PinHashtagStore.delHashtag(tag, this.data.id); + } + } + + private async delId(id: number): Promise { + const ids = await this.getIds(); + for (let i = 0; i < ids.length; i++) { + if (ids[i] === id) { + ids.splice(i, 1); + await BrowserStorageWrapper.set(PinStoreKeys.PIN_ID_LIST, ids); + return; + } + } + } + + private async getIds(): Promise { + const value = await BrowserStorageWrapper.get(PinStoreKeys.PIN_ID_LIST); + return value || []; + } +} diff --git a/src/service-worker/command/pin/pin-update.command.ts b/src/service-worker/command/pin/pin-update.command.ts new file mode 100644 index 0000000..b96853e --- /dev/null +++ b/src/service-worker/command/pin/pin-update.command.ts @@ -0,0 +1,65 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { PinHashtagStore } from '../../store/pin/pin-hashtag.store'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { PinUpdateObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class PinUpdateCommand implements ICommand { + constructor(private data: PinUpdateObject) {} + async execute(): Promise { + fnConsoleLog('WorkerPinManager->pinUpdate', this.data, this.data.pin.id); + const key = `${PinStoreKeys.PIN_ID}:${this.data.pin.id}`; + + const updateTags = this.shouldUpdateTags(this.data.newHashtag, this.data.oldHashtag); + + if (updateTags) await this.clearCurrentHashtags(); + + await BrowserStorageWrapper.set(key, this.data.pin); + + if (updateTags) await this.addNewHashtags(); + } + + private shouldUpdateTags(a?: string[], b?: string[]): boolean { + if (a === b) return false; + if (a == undefined && b == undefined) return false; + if (a == undefined || b == undefined) return true; + if (a.length !== b.length) return true; + for (let i = 0; i < a.length; ++i) { + if (a[i] !== b[i]) return true; + } + return false; + } + + private async addNewHashtags(): Promise { + if (!this.data.newHashtag) return; + const hashtags = this.data.newHashtag; + for (const tag of hashtags) { + await PinHashtagStore.addHashtag(tag, this.data.pin.id); + } + } + + private async clearCurrentHashtags(): Promise { + if (!this.data.oldHashtag) return; + const hashtags = this.data.oldHashtag; + for (const tag of hashtags) { + await PinHashtagStore.delHashtag(tag, this.data.pin.id); + } + } +} diff --git a/src/service-worker/command/popup/popup-access-token.command.ts b/src/service-worker/command/popup/popup-access-token.command.ts new file mode 100644 index 0000000..e7a3677 --- /dev/null +++ b/src/service-worker/command/popup/popup-access-token.command.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import TokenDataDto = Pinmenote.Auth.TokenDataDto; + +export class PopupAccessTokenCommand implements ICommand { + async execute(): Promise { + try { + const tokenData = await ApiStore.getTokenData(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_ACCESS_TOKEN, + data: tokenData + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-login.command.ts b/src/service-worker/command/popup/popup-login.command.ts new file mode 100644 index 0000000..e4c58fd --- /dev/null +++ b/src/service-worker/command/popup/popup-login.command.ts @@ -0,0 +1,45 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiLoginCommand } from '../api/api-login.command'; +import { ApiStore } from '../../store/api.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { ContentLoginRefreshCommand } from '../content/content-login-refresh.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import LoginDto = Pinmenote.Auth.LoginDto; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; + +export class PopupLoginCommand implements ICommand { + constructor(private data: LoginDto) {} + + async execute(): Promise { + try { + await ApiStore.clearToken(); + + const data = await new ApiLoginCommand(this.data).execute(); + + await sendRuntimeMessage({ + type: BusMessageType.POPUP_LOGIN, + data + }); + await new ContentLoginRefreshCommand().execute(); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-logout.command.ts b/src/service-worker/command/popup/popup-logout.command.ts new file mode 100644 index 0000000..66dd529 --- /dev/null +++ b/src/service-worker/command/popup/popup-logout.command.ts @@ -0,0 +1,38 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../../store/api.store'; +import { BusMessageType } from '@common/model/bus.model'; +import { ContentLoginRefreshCommand } from '../content/content-login-refresh.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import BoolDto = Pinmenote.Common.BoolDto; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupLogoutCommand implements ICommand { + async execute(): Promise { + try { + await ApiStore.clearToken(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_LOGOUT, + data: { value: true } + }); + await new ContentLoginRefreshCommand().execute(); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-cleanup.command.ts b/src/service-worker/command/popup/popup-pin-cleanup.command.ts new file mode 100644 index 0000000..cc378bd --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-cleanup.command.ts @@ -0,0 +1,29 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPinCleanupCommand implements ICommand { + async execute(): Promise { + try { + await BrowserStorageWrapper.clear(); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-get-href.command.ts b/src/service-worker/command/popup/popup-pin-get-href.command.ts new file mode 100644 index 0000000..8e73ba7 --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-get-href.command.ts @@ -0,0 +1,39 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinGetHrefCommand } from '../pin/pin-get-href.command'; +import { PinObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class PopupPinGetHrefCommand implements ICommand { + constructor(private data?: PinUrl) {} + async execute(): Promise { + try { + if (!this.data) return; + const data = await new PinGetHrefCommand(this.data).execute(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_GET_HREF, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-get-origin.command.ts b/src/service-worker/command/popup/popup-pin-get-origin.command.ts new file mode 100644 index 0000000..e100b71 --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-get-origin.command.ts @@ -0,0 +1,55 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinHrefOriginStore } from '../../store/pin/pin-href-origin.store'; +import { PinObject } from '@common/model/pin.model'; +import { PinStoreKeys } from '../../store/keys/pin.store.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class PopupPinGetOriginCommand implements ICommand { + constructor(private data?: PinUrl) {} + + async execute(): Promise { + try { + if (!this.data) return; + const data = await this.pinGetOrigin(this.data, true); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_GET_ORIGIN, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } + + private async pinGetOrigin(data: PinUrl, filterHref = false): Promise { + fnConsoleLog('WorkerPinManager->pinGetOrigin', data); + const pinIds = (await PinHrefOriginStore.originIds(data.origin)).reverse(); + const out: PinObject[] = []; + for (const id of pinIds) { + const key = `${PinStoreKeys.PIN_ID}:${id}`; + const pin = await BrowserStorageWrapper.get(key); + if (filterHref && pin.url.href === data.href) continue; + out.push(pin); + } + return out; + } +} diff --git a/src/service-worker/command/popup/popup-pin-remove.command.ts b/src/service-worker/command/popup/popup-pin-remove.command.ts new file mode 100644 index 0000000..b0856f0 --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-remove.command.ts @@ -0,0 +1,35 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinRemoveCommand } from '../pin/pin-remove.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPinRemoveCommand implements ICommand { + constructor(private data: PinObject) {} + + async execute(): Promise { + try { + await new PinRemoveCommand(this.data).execute(); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_REMOVE, data: this.data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-share.command.ts b/src/service-worker/command/popup/popup-pin-share.command.ts new file mode 100644 index 0000000..0ff687e --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-share.command.ts @@ -0,0 +1,46 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiSharePinCommand } from '../api/api-share-pin.command'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import ServerErrorDto = Pinmenote.Common.ServerErrorDto; +import ShareUrlDto = Pinmenote.Share.ShareUrlDto; + +export class PopupPinShareCommand implements ICommand { + constructor(private data: PinObject) {} + async execute(): Promise { + try { + const data = await new ApiSharePinCommand(this.data).execute(); + + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PIN_SHARE, + data + }); + } catch (e: unknown) { + fnConsoleLog('PopupPinShareCommand Error', e); + const { error } = e as { error: ServerErrorDto }; + const data = error.code ? error : { code: -1, message: (e as Error).message }; + await sendRuntimeMessage({ + type: BusMessageType.POPUP_API_ERROR, + data + }); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-update.command.ts b/src/service-worker/command/popup/popup-pin-update.command.ts new file mode 100644 index 0000000..3bfaf64 --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-update.command.ts @@ -0,0 +1,35 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PinObject, PinUpdateObject } from '@common/model/pin.model'; +import { BusMessageType } from '@common/model/bus.model'; +import { PinUpdateCommand } from '../pin/pin-update.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPinUpdateCommand implements ICommand { + constructor(private data: PinUpdateObject) {} + + async execute(): Promise { + try { + await new PinUpdateCommand(this.data).execute(); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_UPDATE, data: this.data.pin }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } +} diff --git a/src/service-worker/command/popup/popup-pin-visible.command.ts b/src/service-worker/command/popup/popup-pin-visible.command.ts new file mode 100644 index 0000000..00470c0 --- /dev/null +++ b/src/service-worker/command/popup/popup-pin-visible.command.ts @@ -0,0 +1,35 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BusMessageType } from '@common/model/bus.model'; +import { PinObject } from '@common/model/pin.model'; +import { PinUpdateCommand } from '../pin/pin-update.command'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendTabMessage } from '@common/message/tab.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPinVisibleCommand implements ICommand { + constructor(private data: PinObject) {} + + async execute(): Promise { + try { + await new PinUpdateCommand({ pin: this.data }).execute(); + await sendTabMessage({ type: BusMessageType.CONTENT_PIN_VISIBLE, data: this.data }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } +} diff --git a/src/service-worker/command/popup/popup-private-key-get.command.ts b/src/service-worker/command/popup/popup-private-key-get.command.ts new file mode 100644 index 0000000..97b0b19 --- /dev/null +++ b/src/service-worker/command/popup/popup-private-key-get.command.ts @@ -0,0 +1,42 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CryptoKeyData, CryptoStore } from '../../store/crypto.store'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPrivateKeyGetCommand implements ICommand { + async execute(): Promise { + try { + const data = await this.getArmoredPrivateKey(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PRIVATE_KEY_GET, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } + + private async getArmoredPrivateKey(): Promise { + const keyData = await BrowserStorageWrapper.get(CryptoStore.PRIVATE_KEY); + if (!keyData) return undefined; + return keyData?.privateKey; + } +} diff --git a/src/service-worker/command/popup/popup-private-key-import.command.ts b/src/service-worker/command/popup/popup-private-key-import.command.ts new file mode 100644 index 0000000..d002301 --- /dev/null +++ b/src/service-worker/command/popup/popup-private-key-import.command.ts @@ -0,0 +1,45 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { CryptoKeyData, CryptoStore } from '../../store/crypto.store'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { readPrivateKey } from 'openpgp'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupPrivateKeyImportCommand implements ICommand { + constructor(private data: string) {} + async execute(): Promise { + try { + await this.importPrivateKey(this.data); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_PRIVATE_KEY_GET, + data: this.data + }); + } catch (e) { + fnConsoleLog('Error', this.data, e); + } + } + + private async importPrivateKey(armoredKey: string): Promise { + const privateKey = await readPrivateKey({ armoredKey }); + const publicKey = privateKey.toPublic().armor(); + const keyData = { privateKey: armoredKey, publicKey, revocationCertificate: '' }; + await BrowserStorageWrapper.set(CryptoStore.PRIVATE_KEY, keyData); + } +} diff --git a/src/service-worker/command/popup/popup-register.command.ts b/src/service-worker/command/popup/popup-register.command.ts new file mode 100644 index 0000000..df25ad1 --- /dev/null +++ b/src/service-worker/command/popup/popup-register.command.ts @@ -0,0 +1,46 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiRegisterCommand } from '../api/api-register.command'; +import { BusMessageType } from '@common/model/bus.model'; +import { RegisterFormData } from '@common/model/auth.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import ICommand = Pinmenote.Common.ICommand; +import TokenUserDto = Pinmenote.Auth.TokenUserDto; +import ServerErrorDto = Pinmenote.Common.ServerErrorDto; + +export class PopupRegisterCommand implements ICommand { + constructor(private data: RegisterFormData) {} + async execute(): Promise { + try { + const data = await new ApiRegisterCommand(this.data).execute(); + + await sendRuntimeMessage({ + type: BusMessageType.POPUP_REGISTER, + data + }); + } catch (e: unknown) { + fnConsoleLog('Register Error', e); + const { error } = e as { error: ServerErrorDto }; + const data = error.code ? error : { code: -1, message: (e as Error).message }; + await sendRuntimeMessage({ + type: BusMessageType.POPUP_API_ERROR, + data + }); + } + } +} diff --git a/src/service-worker/command/popup/popup-sync-pins.command.ts b/src/service-worker/command/popup/popup-sync-pins.command.ts new file mode 100644 index 0000000..1067bc7 --- /dev/null +++ b/src/service-worker/command/popup/popup-sync-pins.command.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiSyncPinCommand } from '../api/api-sync-pin.command'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import BoolDto = Pinmenote.Common.BoolDto; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupSyncPinsCommand implements ICommand { + async execute(): Promise { + try { + const data = await new ApiSyncPinCommand().execute(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_SYNC_PINS, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/popup/popup-sync-quota.command.ts b/src/service-worker/command/popup/popup-sync-quota.command.ts new file mode 100644 index 0000000..43797cf --- /dev/null +++ b/src/service-worker/command/popup/popup-sync-quota.command.ts @@ -0,0 +1,36 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiSyncQuotaCommand } from '../api/api-sync-quota.command'; +import { BusMessageType } from '@common/model/bus.model'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { sendRuntimeMessage } from '@common/message/runtime.message'; +import DiskQuotaDto = Pinmenote.Sync.DiskQuotaDto; +import ICommand = Pinmenote.Common.ICommand; + +export class PopupSyncQuotaCommand implements ICommand { + async execute(): Promise { + try { + const data = await new ApiSyncQuotaCommand().execute(); + await sendRuntimeMessage({ + type: BusMessageType.POPUP_SYNC_QUOTA, + data + }); + } catch (e) { + fnConsoleLog('Error', e); + } + } +} diff --git a/src/service-worker/command/sw/sw-init-settings.command.ts b/src/service-worker/command/sw/sw-init-settings.command.ts new file mode 100644 index 0000000..2d16fd5 --- /dev/null +++ b/src/service-worker/command/sw/sw-init-settings.command.ts @@ -0,0 +1,37 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { ContentSettingsData } from '@common/model/settings.model'; +import { SettingsKeys } from '../../store/keys/settings.keys'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import ICommand = Pinmenote.Common.ICommand; + +export class SwInitSettingsCommand implements ICommand> { + async execute(): Promise { + let settings = await BrowserStorageWrapper.get(SettingsKeys.CONTENT_SETTINGS_KEY); + if (!settings) { + settings = { + borderStyle: '2px solid #90caf9', + borderRadius: '5px' + }; + fnConsoleLog('Settings Initialize'); + await BrowserStorageWrapper.set(SettingsKeys.CONTENT_SETTINGS_KEY, settings); + } else { + fnConsoleLog('Settings Exists', settings); + } + } +} diff --git a/src/service-worker/service-worker.ts b/src/service-worker/service-worker.ts new file mode 100644 index 0000000..833b9a1 --- /dev/null +++ b/src/service-worker/service-worker.ts @@ -0,0 +1,242 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserGlobalSender, BusMessage, BusMessageType } from '@common/model/bus.model'; +import { ContentLinkAddCommand } from './command/content/content-link-add.command'; +import { ContentLoginCommand } from './command/content/content-login.command'; +import { ContentPinAddCommand } from './command/content/content-pin-add.command'; +import { ContentPinChangedCommand } from './command/content/content-pin-changed.command'; +import { ContentPinFocusCommand } from './command/content/content-pin-focus.command'; +import { ContentPinGetHrefCommand } from './command/content/content-pin-get-href.command'; +import { ContentPinGetIdCommand } from './command/content/content-pin-get-id.command'; +import { ContentPinNavigateCommand } from './command/content/content-pin-navigate.command'; +import { ContentPinNextIdCommand } from './command/content/content-pin-next-id.command'; +import { ContentPinRemoveCommand } from './command/content/content-pin-remove.command'; +import { ContentPinScreenshotCommand } from './command/content/content-pin-screenshot.command'; +import { ContentPinUpdateCommand } from './command/content/content-pin-update.command'; +import { ContentRefreshTokenCommand } from './command/content/content-refresh-token.command'; +import { ContentSettingsCommand } from './command/content/content-settings.command'; +import { ContentTimeoutCommand } from './command/content/content-timeout.command'; +import { OptionsGetOriginUrlsCommand } from './command/options/options-get-origin-urls.command'; +import { OptionsGetSettingsCommand } from './command/options/options-get-settings.command'; +import { OptionsPinGetHashListCommand } from './command/options/options-pin-get-hash-list.command'; +import { OptionsPinGetLastIdCommand } from './command/options/options-pin-get-last-id.command'; +import { OptionsPinGetRangeCommand } from './command/options/options-pin-get-range.command'; +import { OptionsPinRemoveCommand } from './command/options/options-pin-remove.command'; +import { OptionsPinSearchCommand } from './command/options/options-pin-search.command'; +import { OptionsPinShareCommand } from './command/options/options-pin-share.command'; +import { OptionsPinUpdateCommand } from './command/options/options-pin-update.command'; +import { OptionsSetSettingsCommand } from './command/options/options-set-settings.command'; +import { OptionsSynchronizeDataCommand } from './command/options/options-synchronize-data.command'; +import { PopupAccessTokenCommand } from './command/popup/popup-access-token.command'; +import { PopupLoginCommand } from './command/popup/popup-login.command'; +import { PopupLogoutCommand } from './command/popup/popup-logout.command'; +import { PopupPinCleanupCommand } from './command/popup/popup-pin-cleanup.command'; +import { PopupPinGetHrefCommand } from './command/popup/popup-pin-get-href.command'; +import { PopupPinGetOriginCommand } from './command/popup/popup-pin-get-origin.command'; +import { PopupPinRemoveCommand } from './command/popup/popup-pin-remove.command'; +import { PopupPinShareCommand } from './command/popup/popup-pin-share.command'; +import { PopupPinUpdateCommand } from './command/popup/popup-pin-update.command'; +import { PopupPinVisibleCommand } from './command/popup/popup-pin-visible.command'; +import { PopupPrivateKeyGetCommand } from './command/popup/popup-private-key-get.command'; +import { PopupPrivateKeyImportCommand } from './command/popup/popup-private-key-import.command'; +import { PopupRegisterCommand } from './command/popup/popup-register.command'; +import { PopupSyncPinsCommand } from './command/popup/popup-sync-pins.command'; +import { PopupSyncQuotaCommand } from './command/popup/popup-sync-quota.command'; +import { SwInitSettingsCommand } from './command/sw/sw-init-settings.command'; +import { fnBrowserApi } from '@common/service/browser.api.wrapper'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import { reloadContentScript } from '@common/message/reload.content.script'; + +const handleMessage = async ( + msg: BusMessage, + runtime: BrowserGlobalSender, + sendResponse: (response: any) => void +): Promise => { + sendResponse({ + type: BusMessageType.WORKER_ACK + }); + + // Skip not owned messages + if (runtime.id !== fnBrowserApi().runtime.id) return; + + switch (msg.type) { + case BusMessageType.CONTENT_LOGIN: + await new ContentLoginCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_FOCUS: + await new ContentPinFocusCommand().execute(); + break; + case BusMessageType.CONTENT_PIN_CHANGED: + await new ContentPinChangedCommand().execute(); + break; + case BusMessageType.CONTENT_PIN_NAVIGATE: + await new ContentPinNavigateCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_ID: + await new ContentPinNextIdCommand().execute(); + break; + case BusMessageType.CONTENT_PIN_ADD: + await new ContentPinAddCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_LINK_ADD: + await new ContentLinkAddCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_UPDATE: + await new ContentPinUpdateCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_REMOVE: + await new ContentPinRemoveCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_GET_HREF: + await new ContentPinGetHrefCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_GET_ID: + await new ContentPinGetIdCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_PIN_SCREENSHOT: + await new ContentPinScreenshotCommand().execute(); + break; + case BusMessageType.CONTENT_REFRESH_TOKEN: + await new ContentRefreshTokenCommand().execute(); + break; + case BusMessageType.CONTENT_TIMEOUT: + await new ContentTimeoutCommand(msg.data).execute(); + break; + case BusMessageType.CONTENT_SETTINGS: + await new ContentSettingsCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_CLEANUP: + await new PopupPinCleanupCommand().execute(); + break; + case BusMessageType.POPUP_PIN_REMOVE: + await new PopupPinRemoveCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_SHARE: + await new PopupPinShareCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_UPDATE: + await new PopupPinUpdateCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_VISIBLE: + await new PopupPinVisibleCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_GET_ORIGIN: + await new PopupPinGetOriginCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PIN_GET_HREF: + await new PopupPinGetHrefCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_ACCESS_TOKEN: + await new PopupAccessTokenCommand().execute(); + break; + case BusMessageType.POPUP_LOGIN: + await new PopupLoginCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_LOGOUT: + await new PopupLogoutCommand().execute(); + break; + case BusMessageType.POPUP_SYNC_PINS: + await new PopupSyncPinsCommand().execute(); + break; + case BusMessageType.POPUP_SYNC_QUOTA: + await new PopupSyncQuotaCommand().execute(); + break; + case BusMessageType.POPUP_REGISTER: + await new PopupRegisterCommand(msg.data).execute(); + break; + case BusMessageType.POPUP_PRIVATE_KEY_GET: + await new PopupPrivateKeyGetCommand().execute(); + break; + case BusMessageType.POPUP_PRIVATE_KEY_IMPORT: + await new PopupPrivateKeyImportCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_GET_ORIGIN_URLS: + await new OptionsGetOriginUrlsCommand().execute(); + break; + case BusMessageType.OPTIONS_GET_SETTINGS: + await new OptionsGetSettingsCommand().execute(); + break; + case BusMessageType.OPTIONS_SET_SETTINGS: + await new OptionsSetSettingsCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_PIN_GET_HASH_LIST: + await new OptionsPinGetHashListCommand().execute(); + break; + case BusMessageType.OPTIONS_PIN_GET_RANGE: + await new OptionsPinGetRangeCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_PIN_SEARCH: + await new OptionsPinSearchCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_PIN_SHARE: + await new OptionsPinShareCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_PIN_GET_LAST_ID: + await new OptionsPinGetLastIdCommand().execute(); + break; + case BusMessageType.OPTIONS_PIN_UPDATE: + await new OptionsPinUpdateCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_PIN_REMOVE: + await new OptionsPinRemoveCommand(msg.data).execute(); + break; + case BusMessageType.OPTIONS_SYNCHRONIZE_DATA: + await new OptionsSynchronizeDataCommand().execute(); + break; + } +}; + +const handleInstalled = async (event: unknown): Promise => { + fnConsoleLog('INSTALLED', event, fnBrowserApi().runtime.id); + // Initial Content Settings + await new SwInitSettingsCommand().execute(); + reloadActiveTabScript(); +}; + +const reloadActiveTabScript = (): void => { + try { + /* eslint-disable @typescript-eslint/no-floating-promises */ + fnBrowserApi() // eslint-disable-line @typescript-eslint/no-unsafe-call + .tabs.query({ active: true, currentWindow: true }, async (tabs: chrome.tabs.Tab[]) => { + const currentTab = tabs[0]; + if (!currentTab?.url) return; + if (currentTab?.url.startsWith('chrome')) return; + if (!currentTab?.id) return; + await reloadContentScript(currentTab.id); + }); + /* eslint-enable @typescript-eslint/no-floating-promises */ + } catch (e) { + fnConsoleLog('Error reloadActiveTabScript', e); + } +}; + +const handleSuspend = () => { + fnConsoleLog('handleSuspend->suspend'); +}; + +const handleTabActivated = async (activeInfo: chrome.tabs.TabActiveInfo): Promise => { + fnConsoleLog('handleTabActivated', activeInfo.tabId); + await reloadContentScript(activeInfo.tabId); +}; + +fnBrowserApi().tabs.onActivated.addListener(handleTabActivated); + +fnBrowserApi().runtime.onInstalled.addListener(handleInstalled); +fnBrowserApi().runtime.onMessage.addListener(handleMessage); +fnBrowserApi().runtime.onSuspend?.addListener(handleSuspend); + +fnConsoleLog(`Pinmenote service-worker start! ${fnBrowserApi().runtime.id}`); diff --git a/src/service-worker/service/fetch.service.ts b/src/service-worker/service/fetch.service.ts new file mode 100644 index 0000000..d9d668f --- /dev/null +++ b/src/service-worker/service/fetch.service.ts @@ -0,0 +1,95 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { ApiStore } from '../store/api.store'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; + +export class ResponseError extends Error { + constructor(message: string, readonly error: Pinmenote.Common.ServerErrorDto) { + super(message); + } + + get code(): number | undefined { + return this.error.code; + } +} + +export class FetchService { + static async post(url: string, data?: any, headers?: { [key: string]: string }): Promise { + headers = this.applyDefaultHeaders(headers); + const response = await fetch(url, { + method: 'POST', + body: data ? JSON.stringify(data) : undefined, + headers + }); + if (!response.ok) { + throw new ResponseError(`Error POST ${url}`, await response.json()); + } + return await response.json(); + } + + static async patch(url: string, data?: any, headers?: { [key: string]: string }): Promise { + headers = this.applyDefaultHeaders(headers); + const response = await fetch(url, { + method: 'PATCH', + body: data ? JSON.stringify(data) : undefined, + headers + }); + if (!response.ok) { + fnConsoleLog(headers); + throw new ResponseError(`Error PATCH ${url}`, await response.json()); + } + return await response.json(); + } + + static async get(url: string, headers: { [key: string]: string }): Promise { + const response = await fetch(url, { + method: 'GET', + headers + }); + if (response.headers.get('x-refresh-token') === 'yes') { + await this.refreshToken(); + } + if (!response.ok) { + throw new ResponseError(`Error GET ${url}`, await response.json()); + } + return await response.json(); + } + + static async refreshToken(): Promise { + const tokenValue = ApiStore.accessToken; + if (!tokenValue) return; + const authHeaders = { + Authorization: `Bearer ${tokenValue.access_token}` + }; + const resp = await this.patch( + `${environmentConfig.apiUrl}/api/v1/refresh-token`, + null, + authHeaders + ); + await ApiStore.setAccessToken(resp); + } + + private static applyDefaultHeaders(headers?: { [key: string]: string }): { [key: string]: string } { + if (!headers) headers = {}; + Object.assign(headers, { + 'Content-Type': 'application/json' + }); + return headers; + } +} diff --git a/src/service-worker/store/api.store.ts b/src/service-worker/store/api.store.ts new file mode 100644 index 0000000..cc2f986 --- /dev/null +++ b/src/service-worker/store/api.store.ts @@ -0,0 +1,79 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import { environmentConfig } from '@common/environment'; +import { fnConsoleLog } from '@common/fn/console.fn'; +import jwtDecode from 'jwt-decode'; +import AccessTokenDto = Pinmenote.Auth.AccessTokenDto; +import TokenDataDto = Pinmenote.Auth.TokenDataDto; + +export class ApiStore { + static readonly KEY_NOTE_UPDATE = 'noteSyncUpdate'; + static readonly ACCESS_TOKEN = 'accessToken'; + + private static accessTokenDto?: AccessTokenDto; + private static tokenDataDto?: TokenDataDto; + + static async getUsername(): Promise { + const tokenData = await this.getTokenData(); + if (!tokenData) throw new Error('Missing tokenData'); + return tokenData.data.username; + } + + static get accessToken(): AccessTokenDto | undefined { + return this.accessTokenDto; + } + + static async getTokenData(): Promise { + await this.refreshTokenFromStorage(); + return this.tokenDataDto; + } + + static async setAccessToken(value: AccessTokenDto): Promise { + this.accessTokenDto = value; + await BrowserStorageWrapper.set(ApiStore.getAccessTokenKey(), value); + this.tokenDataDto = jwtDecode(value.access_token); + } + + static async clearToken(): Promise { + fnConsoleLog('WorkerApiManager->clearToken'); + await BrowserStorageWrapper.remove(this.getAccessTokenKey()); + this.accessTokenDto = undefined; + this.tokenDataDto = undefined; + } + + private static async refreshTokenFromStorage(): Promise { + if (!this.tokenDataDto) { + this.accessTokenDto = await BrowserStorageWrapper.get(this.getAccessTokenKey()); + if (this.accessTokenDto?.access_token) { + this.tokenDataDto = jwtDecode(this.accessTokenDto.access_token); + } + } + } + + private static getAccessTokenKey(): string { + return `${this.ACCESS_TOKEN}:${environmentConfig.apiUrl}`; + } + + static async getAuthHeaders(): Promise<{ [key: string]: string }> { + await this.refreshTokenFromStorage(); + if (!this.accessTokenDto) throw new Error('Empty token'); + return { + Authorization: `Bearer ${this.accessTokenDto.access_token}` + }; + } +} diff --git a/src/service-worker/store/crypto.store.ts b/src/service-worker/store/crypto.store.ts new file mode 100644 index 0000000..11627e3 --- /dev/null +++ b/src/service-worker/store/crypto.store.ts @@ -0,0 +1,69 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { PrivateKey, PublicKey, readKey, readPrivateKey } from 'openpgp'; +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; + +export interface CryptoKey { + privateKey?: PrivateKey; + publicKey?: PublicKey; + revocationCertificate: string; +} + +export interface CryptoPublicKey { + username: string; + key: PublicKey; +} + +export interface CryptoKeyData { + privateKey: string; + publicKey: string; + revocationCertificate: string; +} + +export class CryptoStore { + static readonly PRIVATE_KEY = 'key:prv'; + static readonly PUBLIC_KEY = 'key:pub'; + + private static keyData?: CryptoKey; + + static get cryptoKey(): CryptoKey | undefined { + return this.keyData; + } + + static get keyFingerprint(): string | undefined { + return this.keyData?.privateKey?.getFingerprint(); + } + + static async loadKeys(): Promise { + if (this.keyData) return true; + const keyData = await BrowserStorageWrapper.get(this.PRIVATE_KEY); + if (!keyData) return false; + const privateKey = await readPrivateKey({ armoredKey: keyData.privateKey }); + const publicKey = await readKey({ armoredKey: keyData.publicKey }); + this.keyData = { privateKey, publicKey, revocationCertificate: keyData.revocationCertificate }; + return true; + } + + static async readPublicKey(username: string): Promise { + const key = `${this.PUBLIC_KEY}:${username}`; + return await BrowserStorageWrapper.get(key); + } + + static async delPrivateKey(): Promise { + await BrowserStorageWrapper.remove(this.PRIVATE_KEY); + } +} diff --git a/src/service-worker/store/keys/pin.store.keys.ts b/src/service-worker/store/keys/pin.store.keys.ts new file mode 100644 index 0000000..1f38a93 --- /dev/null +++ b/src/service-worker/store/keys/pin.store.keys.ts @@ -0,0 +1,30 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export class PinStoreKeys { + // PIN STATE + static readonly NAVIGATE_PIN = 'pin:navigate'; + static readonly CHANGED_PIN = 'pin:change'; + + // ID + static readonly PIN_ID = 'pin:id'; + + // LINK + static readonly PIN_LINK = 'pin:link'; + + static readonly PIN_ID_LIST = 'pin:id:list'; + static readonly PIN_LAST_ID = 'pin:last:id'; +} diff --git a/src/service-worker/store/keys/settings.keys.ts b/src/service-worker/store/keys/settings.keys.ts new file mode 100644 index 0000000..fd60ec1 --- /dev/null +++ b/src/service-worker/store/keys/settings.keys.ts @@ -0,0 +1,19 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +export class SettingsKeys { + static readonly CONTENT_SETTINGS_KEY = 'content-settings'; +} diff --git a/src/service-worker/store/pin/pin-hashtag.store.ts b/src/service-worker/store/pin/pin-hashtag.store.ts new file mode 100644 index 0000000..29dff5a --- /dev/null +++ b/src/service-worker/store/pin/pin-hashtag.store.ts @@ -0,0 +1,76 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; + +export class PinHashtagStore { + private static PIN_HASHTAG = 'pin:hashtag'; + private static PIN_LIST_HASHTAG = 'pin:hashtag:list'; + + static async addHashtag(hashtag: string, id: number): Promise { + const ids = await this.getHashtagIds(hashtag); + if (ids.indexOf(id) === -1) { + ids.push(id); + } + const key = `${this.PIN_HASHTAG}:${hashtag}`; + await BrowserStorageWrapper.set(key, ids); + + await this.addListHashtag(hashtag); + } + + static async delHashtag(hashtag: string, id: number): Promise { + const ids = await this.getHashtagIds(hashtag); + const key = `${this.PIN_HASHTAG}:${hashtag}`; + for (let i = 0; i < ids.length; i++) { + if (ids[i] === id) { + ids.splice(i, 1); + break; + } + } + if (ids.length === 0) { + await BrowserStorageWrapper.remove(key); + await this.delListHashtag(hashtag); + } else { + await BrowserStorageWrapper.set(key, ids); + } + } + + static async getHashtagList(): Promise { + const value = await BrowserStorageWrapper.get(this.PIN_LIST_HASHTAG); + return value || []; + } + + private static async getHashtagIds(hashtag: string): Promise { + const key = `${this.PIN_HASHTAG}:${hashtag}`; + return (await BrowserStorageWrapper.get(key)) || []; + } + + private static async addListHashtag(hashtag: string): Promise { + const set = new Set(await this.getHashtagList()); + set.add(hashtag); + await this.setHashtagList(Array.from(set)); + } + + private static async delListHashtag(hashtag: string): Promise { + const s = new Set(await this.getHashtagList()); + s.delete(hashtag); + await this.setHashtagList(Array.from(s)); + } + + private static async setHashtagList(list: string[]): Promise { + await BrowserStorageWrapper.set(this.PIN_LIST_HASHTAG, list); + } +} diff --git a/src/service-worker/store/pin/pin-href-origin.store.ts b/src/service-worker/store/pin/pin-href-origin.store.ts new file mode 100644 index 0000000..413e2a6 --- /dev/null +++ b/src/service-worker/store/pin/pin-href-origin.store.ts @@ -0,0 +1,80 @@ +/* + * This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension). + * Copyright (c) 2022 Michal Szczepanski. + * + * 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, version 3. + * + * 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 . + */ +import { BrowserStorageWrapper } from '@common/service/browser.storage.wrapper'; +import PinUrl = Pinmenote.Pin.PinUrl; + +export class PinHrefOriginStore { + private static PIN_HREF = 'pin:href'; + private static PIN_ORIGIN = 'pin:origin'; + private static PIN_URL_LIST = 'pin:url:list'; + + static async addHrefOriginId(url: PinUrl, id: number): Promise { + // Update hrefs + const hrefIds = await this.hrefIds(url.href); + hrefIds.push(id); + await BrowserStorageWrapper.set(`${this.PIN_HREF}:${url.href}`, hrefIds); + // Update origin + const originIds = await this.originIds(url.origin); + originIds.push(id); + await BrowserStorageWrapper.set(`${this.PIN_ORIGIN}:${url.origin}`, originIds); + await this.addOriginUrl(url); + } + + static async delHrefOriginId(url: PinUrl, id: number): Promise { + // Update hrefs + const hrefIds = await this.hrefIds(url.href); + const newHref = hrefIds.filter((i) => i !== id); + if (newHref.length === 0) { + await BrowserStorageWrapper.remove(`${this.PIN_HREF}:${url.href}`); + } else { + await BrowserStorageWrapper.set(`${this.PIN_HREF}:${url.href}`, newHref); + } + // Update origin + const originIds = await this.originIds(url.origin); + const newOrigin = originIds.filter((i) => i !== id); + if (newOrigin.length === 0) { + await BrowserStorageWrapper.remove(`${this.PIN_ORIGIN}:${url.origin}`); + } else { + await BrowserStorageWrapper.set(`${this.PIN_ORIGIN}:${url.origin}`, newOrigin); + } + } + + static async hrefIds(url: string): Promise { + const key = `${this.PIN_HREF}:${url}`; + const value = await BrowserStorageWrapper.get(key); + return value || []; + } + + static async originIds(url: string): Promise { + const key = `${this.PIN_ORIGIN}:${url}`; + const value = await BrowserStorageWrapper.get(key); + return value || []; + } + + static async getOriginUrls(): Promise { + const value = await BrowserStorageWrapper.get(this.PIN_URL_LIST); + return value || []; + } + + private static async addOriginUrl(url: PinUrl): Promise { + const urls = await this.getOriginUrls(); + if (urls.indexOf(url.origin) === -1) { + urls.push(url.origin); + } + await BrowserStorageWrapper.set(this.PIN_URL_LIST, urls); + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..dde8492 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "noEmit": true, + "jsx": "react", + "baseUrl": "./", + "typeRoots": ["node_modules/@types", "@types"], + "paths": { + "@common/*": [ + "./src/common/*" + ] + } + }, + "include": [ + "src/**/*.tsx", + "src/**/*.ts", + "@types/*.d.ts", + ] +} \ No newline at end of file