diff --git a/.gitignore b/.gitignore index 5dfb51f..650d948 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .env /node_modules -/dist *.zip \ No newline at end of file diff --git a/README.md b/README.md index 963ac37..ba1af44 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,18 @@ Hide YouTube Shorts videos effortlessly with this powerful browser extension ## Installation - Chrome Web Store -Install the extension directly from the [Chrome Web Store](https://chrome.google.com/webstore/detail/aljlkinhomaaahfdojalfmimeidofpih) +Install the latest stable version directly from the [Chrome Web Store](https://chrome.google.com/webstore/detail/aljlkinhomaaahfdojalfmimeidofpih) -## Installation - Unpacked Extension - +## Installation (unstable) - Unpacked Extension + 1. Download the .zip file -2. Extract and install - [Video Demonstration](https://www.youtube.com/watch?v=hIRX1dpfqHc) | [Written Demonstration](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked) +2. Extract the contents of `hide-youtube-shorts-master.zip` + +3. Install from the `dist` directory + +[Video Demonstration](https://www.youtube.com/watch?v=hIRX1dpfqHc) | [Written Demonstration](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked) ## Previous Versions [Click here](https://github.com/ProbablyRaging/hide-youtube-shorts/releases) if you're looking for a previous version of Hide YouTube Shorts diff --git a/dist/LICENSE b/dist/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/dist/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/dist/assets/MainPage.js b/dist/assets/MainPage.js new file mode 100644 index 0000000..663acac --- /dev/null +++ b/dist/assets/MainPage.js @@ -0,0 +1 @@ +import{j as a}from"./index.js";const o=({children:x})=>a.jsx("div",{className:"flex flex-col max-h-[474px] max-w-[450px] overflow-scroll p-4 pt-0 pb-12",children:x});export{o as default}; diff --git a/dist/assets/ModalDisplay.js b/dist/assets/ModalDisplay.js new file mode 100644 index 0000000..2900a98 --- /dev/null +++ b/dist/assets/ModalDisplay.js @@ -0,0 +1 @@ +import{r as o,j as e,e as a,t,f as i,p as h,h as x}from"./index.js";const u=()=>{const[n,c]=o.useState(!1),[d,l]=o.useState(!1);o.useEffect(()=>{(async()=>{try{const s=await h();c(s),l(s)}catch(s){console.error("Error fetching switch data:",s)}})()},[]);const r=()=>{x(),l(!1)};return n&&e.jsxs(a,{closeButton:!0,blur:!0,"aria-labelledby":"modal-title",open:d,onClose:r,className:"max-h-[330px]",children:[e.jsxs(a.Header,{className:"absolute flex flex-col items-start top-0",children:[e.jsx(t,{className:"font-semibold",size:16,children:"What's New In 1.6.7"}),e.jsx(t,{className:"text-[12px]",children:"June 9, 2023"})]}),e.jsxs(a.Body,{className:"mt-[50px]",children:[e.jsx(t,{className:"added mb-4",children:"No More Placeholder Images"}),e.jsx(t,{className:"text-[13px] mb-2",children:"The empty spaces and placeholder images left behind when removing Shorts from the subscription feed is no longer an issue. Massive thank you to Horsy Nox for reaching out and providing the fix!"})]}),e.jsx(a.Footer,{children:e.jsx(i,{flat:!0,color:"none",className:"w-full",onPress:r,children:"Close"})})]})};export{u as default}; diff --git a/dist/assets/SwitchContainer.js b/dist/assets/SwitchContainer.js new file mode 100644 index 0000000..cf63727 --- /dev/null +++ b/dist/assets/SwitchContainer.js @@ -0,0 +1 @@ +import{r as s,s as C,n as F,o as Y,a as Q,j as e,m as W,b as q,t as c,c as B,u as V,d as X,i as Z}from"./index.js";const tt=(r,t=!0)=>{s.useEffect(()=>{const o=()=>r();return t&&o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[])},ot=(r,t)=>{s.useEffect(()=>{const o=l=>{const n=r.current;l&&n&&!n.contains(l.target)&&t(l)};return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[r,t])},et=r=>{s.useEffect(()=>{const t=o=>r(o);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r])},rt=C("div",{width:"max-content",display:"inherit"}),O=C("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),lt=C("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${O}`]:{display:"block"}}}}}),st=C("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}}),nt={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},at=r=>{if(!r||!r.current)return nt;const t=r.current.getBoundingClientRect();return{...t,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top,top:t.top+document.documentElement.scrollTop,bottom:t.bottom+document.documentElement.scrollTop,left:t.left+document.documentElement.scrollLeft,right:t.right+document.documentElement.scrollLeft}},it={top:"-1000px",left:"-1000px",transform:"none"},ct=(r,t,o)=>{const l={top:{top:t.top-o+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-o+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-o+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+o}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+o}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+o}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-o+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-o+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-o+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+o}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+o}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+o}px`,transform:"translate(0, -100%)"}};return l[r]||l.top},pt=(r,t)=>{const o={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:`-${t-1}px`,left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:`-${t-1}px`,left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:`-${t-1}px`,left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:`-${t-1}px`,bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:`-${t-1}px`,bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:`-${t-1}px`,bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return o[r]||o.top},i="nextui-tooltip",U=({children:r,parent:t,visible:o,offset:l,placement:n,rounded:x,animated:f,className:w,hideArrow:p,css:v,...j})=>{const h=Y("tooltip"),y=s.useRef(null),[d,T]=s.useState(it);if(!t)return null;const m=()=>{const u=ct(n,at(t),l);T(u)},{transform:E,top:N,left:S,right:g,bottom:k}=s.useMemo(()=>pt(n,5),[n]);tt(m),et(()=>m()),s.useEffect(()=>{m()},[o]);const a=s.useMemo(()=>o?"open":"closed",[o]);return h?Q.createPortal(e.jsx(W,{enterTime:20,leaveTime:20,name:`${i}-wrapper`,visible:o,children:e.jsx(st,{ref:y,animated:f,className:q(`${i}-content`,`${i}--${a}`,w),css:{left:d.left,top:`calc(${d.top} + 6px)`,transform:d.transform,[`&.${i}-wrapper-enter-active`]:{opacity:1,top:d.top},...v},"data-state":a,onClick:u=>{u.stopPropagation(),u.nativeEvent.stopImmediatePropagation()},...j,children:e.jsxs(lt,{className:q(i,{[`${i}--with-arrow`]:!p}),"data-state":a,hideArrow:p,role:"tooltip",children:[e.jsx(O,{className:`${i}-arrow`,css:{left:S,top:N,right:g,bottom:k,transform:E}}),r]})})}),h):null};U.toString=()=>".nextui-tooltip-content";const dt=F(U,{placement:"top",offset:12,className:""}),H=({children:r,initialVisible:t,content:o,offset:l,placement:n,portalClassName:x,enterDelay:f,leaveDelay:w,trigger:p,rounded:v,animated:j,shadow:h,className:y,color:d,contentColor:T,onVisibleChange:m,hideArrow:E,css:N,triggerCss:S,onClick:g,keepMounted:k,visible:a,isDisabled:u,...M})=>{const D=s.useRef(),z=s.useRef(null),[L,G]=s.useState(t),J={animated:j,visible:L,css:N,shadow:h,offset:l,placement:n,rounded:v,color:d,contentColor:T,hideArrow:E,parent:z,className:x},b=I=>{const R=()=>{clearTimeout(D.current),D.current=void 0},_=P=>{G(P),m(P),R()};R(),D.current=I?window.setTimeout(()=>_(!0),f):window.setTimeout(()=>_(!1),w)},$=I=>{p==="hover"&&b(I)};return ot(z,()=>p==="click"&&!k&&b(!1)),s.useEffect(()=>{a!==void 0&&b(a)},[a]),e.jsxs(rt,{ref:z,className:`nextui-tooltip-button ${y}`,css:S,role:"button",tabIndex:-1,onBlur:()=>$(!1),onClickCapture:()=>{p==="click"&&b(!L),g==null||g()},onFocus:()=>$(!0),onKeyUp:()=>$(!0),onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),...M,children:[r,o&&!u?e.jsx(dt,{...J,children:o}):null]})};H.toString=()=>".nextui-tooltip";const ut=F(H,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,isDisabled:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),ft="/assets/turbo.svg",wt=({darkMode:r,title:t,description:o,switchName:l,state:n,isNew:x,hasInfo:f})=>e.jsx(e.Fragment,{children:t==="TURBO"?e.jsxs(c,{blockquote:!0,className:"flex flex-row justify-between pl-4 pr-4 py-2 mt-2 mb-2 drop-shadow-card",children:[e.jsxs("div",{className:"flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("img",{width:18,height:18,src:ft}),e.jsx(c,{className:"text-[14px] font-semibold gradient-anim",children:t})]}),e.jsx(c,{className:`text-[10px] ${r?"text-textAltDark":"text-textAlt"} pr-5`,children:o})]}),e.jsx(B,{onChange:()=>V(l),checked:n,size:"xs",initialChecked:!0})]}):e.jsxs(c,{blockquote:!0,className:"flex flex-row justify-between pl-4 pr-4 py-2 mt-2 mb-2 drop-shadow-card",children:[e.jsxs("div",{className:"flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(c,{className:"text-[14px] font-medium",children:t}),f&&e.jsx(bt,{darkMode:r}),x&&e.jsx(mt,{content:"new",darkMode:r})]}),e.jsx(c,{className:`text-[10px] ${r?"text-textAltDark":"text-textAlt"} pr-5`,children:o})]}),e.jsx(B,{onChange:()=>V(l),checked:n,size:"xs",initialChecked:!0})]})}),mt=({darkMode:r,content:t})=>e.jsx("div",{className:`flex justify-center items-center px-[4px] py-0 ${r?"bg-[#5086c3]":"bg-[#3694ff]"} rounded-full h-[16px] select-none`,children:e.jsx("span",{className:"text-white text-[10px] font-semibold leading-[0]",children:t})});var A={},$t=Z;Object.defineProperty(A,"__esModule",{value:!0});var K=A.default=void 0,xt=$t(X()),ht=e,gt=(0,xt.default)((0,ht.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline");K=A.default=gt;const bt=({darkMode:r,content:t})=>e.jsx("div",{className:"flex justify-center items-center select-none",children:e.jsx(ut,{hideArrow:!0,color:"invert",offset:0,css:{backgroundColor:r?"#1c1d20":"#f7f7f7",border:`1px solid ${r?"#2f2f2f":"#dbdbdb"}`},content:e.jsxs(c,{className:`text-[12px] ${r?"text-white":"text-black"}`,children:["This feature only works on the ",e.jsx("a",{href:"https://i.imgur.com/j6i2yB4.png",target:"_blank",children:"new YouTube UI"})]}),children:e.jsx(K,{className:"text-[16px] text-[gray]"})})});export{wt as default}; diff --git a/dist/assets/background.js b/dist/assets/background.js new file mode 100644 index 0000000..1252a47 --- /dev/null +++ b/dist/assets/background.js @@ -0,0 +1 @@ +chrome.runtime.onInstalled.addListener(async a=>{if(a.reason==="install"&&(chrome.storage.sync.set({presentModal:!0,toggleState:!0,toggleNavState:!0,toggleHomeFeedState:!0,toggleHomeFeedStateLives:!1,toggleHomeFeedStatePremieres:!1,toggleSubscriptionFeedState:!0,toggleSubscriptionFeedStateLives:!1,toggleSubscriptionFeedStatePremieres:!1,toggleTrendingFeedState:!0,toggleSearchState:!0,toggleRecommendedState:!0,toggleTabState:!0,toggleHomeTabState:!0,toggleTurboState:!1,toggleRegularState:!0,toggleNotificationState:!0}).catch(()=>{console.log("[STORAGE] Could not set storage item")}),chrome.tabs.query({url:["https://www.youtube.com/*","https://m.youtube.com/*"]},function(e){e.forEach(t=>{chrome.tabs.reload(t.id)})}),chrome.action.setBadgeBackgroundColor({color:"#ed5a64"}),chrome.action.setBadgeText({text:"1"})),a.reason==="update"){const e=["toggleState","toggleNavState","toggleHomeFeedState","toggleHomeFeedStateLives","toggleHomeFeedStatePremieres","toggleSubscriptionFeedState","toggleSubscriptionFeedStateLives","toggleSubscriptionFeedStatePremieres","toggleTrendingFeedState","toggleSearchState","toggleRecommendedState","toggleTabState","toggleHomeTabState","toggleTurboState","toggleRegularState","toggleNotificationState"],t=await chrome.storage.sync.get(e);for(const o of e)(!(o in t)||t[o]===void 0)&&await chrome.storage.sync.set({[o]:!1});chrome.storage.sync.set({presentModal:!1}).catch(()=>{console.log("[STORAGE] Could not set storage item")})}});chrome.runtime.onMessage.addListener(function(a,e,t){chrome.tabs.query({url:["https://www.youtube.com/*","https://m.youtube.com/*"]},function(o){o.forEach(g=>{chrome.tabs.sendMessage(g.id,a).catch(()=>{})})})}); diff --git a/dist/assets/index.css b/dist/assets/index.css new file mode 100644 index 0000000..b9df056 --- /dev/null +++ b/dist/assets/index.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-\[4\%\]{bottom:4%!important}.left-0{left:0px!important}.left-\[45\%\]{left:45%!important}.top-0{top:0px!important}.z-50{z-index:50!important}.z-\[9999\]{z-index:9999!important}.m-auto{margin:auto!important}.mx-\[10px\]{margin-left:10px!important;margin-right:10px!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mb-5{margin-bottom:1.25rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-0{margin-top:0!important}.mt-2{margin-top:.5rem!important}.mt-6{margin-top:1.5rem!important}.mt-\[15\%\]{margin-top:15%!important}.mt-\[50px\]{margin-top:50px!important}.flex{display:flex!important}.contents{display:contents!important}.hidden{display:none!important}.h-\[16px\]{height:16px!important}.h-\[32px\]{height:32px!important}.h-\[47px\]{height:47px!important}.h-full{height:100%!important}.max-h-\[330px\]{max-height:330px!important}.max-h-\[474px\]{max-height:474px!important}.w-\[18px\]{width:18px!important}.w-\[20px\]{width:20px!important}.w-\[47px\]{width:47px!important}.w-full{width:100%!important}.max-w-\[385px\]{max-width:385px!important}.max-w-\[450px\]{max-width:450px!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.flex-row{flex-direction:row!important}.flex-col{flex-direction:column!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.overflow-scroll{overflow:scroll!important}.rounded-\[12px\]{border-radius:12px!important}.rounded-full{border-radius:9999px!important}.rounded-bl-\[20px\]{border-bottom-left-radius:20px!important}.rounded-br-\[20px\]{border-bottom-right-radius:20px!important}.rounded-tl-\[12px\]{border-top-left-radius:12px!important}.rounded-tr-\[12px\]{border-top-right-radius:12px!important}.border{border-width:1px!important}.bg-\[\#1a1c1e\]{--tw-bg-opacity: 1 !important;background-color:rgb(26 28 30 / var(--tw-bg-opacity))!important}.bg-\[\#212329\]{--tw-bg-opacity: 1 !important;background-color:rgb(33 35 41 / var(--tw-bg-opacity))!important}.bg-\[\#3694ff\]{--tw-bg-opacity: 1 !important;background-color:rgb(54 148 255 / var(--tw-bg-opacity))!important}.bg-\[\#5086c3\]{--tw-bg-opacity: 1 !important;background-color:rgb(80 134 195 / var(--tw-bg-opacity))!important}.bg-\[\#a5a5a5\]{--tw-bg-opacity: 1 !important;background-color:rgb(165 165 165 / var(--tw-bg-opacity))!important}.bg-\[\#e1e1e1\]{--tw-bg-opacity: 1 !important;background-color:rgb(225 225 225 / var(--tw-bg-opacity))!important}.bg-\[\#fff\]{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity))!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.p-0{padding:0!important}.p-4{padding:1rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-\[18px\]{padding-left:18px!important;padding-right:18px!important}.px-\[4px\]{padding-left:4px!important;padding-right:4px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.pb-1{padding-bottom:.25rem!important}.pb-12{padding-bottom:3rem!important}.pl-4{padding-left:1rem!important}.pr-4{padding-right:1rem!important}.pr-5{padding-right:1.25rem!important}.pt-0{padding-top:0!important}.text-center{text-align:center!important}.text-\[10px\]{font-size:10px!important}.text-\[12px\]{font-size:12px!important}.text-\[13px\]{font-size:13px!important}.text-\[14px\]{font-size:14px!important}.text-\[16px\]{font-size:16px!important}.text-\[22px\]{font-size:22px!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.leading-\[0\]{line-height:0!important}.text-\[\#000\]{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.text-\[\#3b3b3b\]{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity))!important}.text-\[\#e9e9e9\]{--tw-text-opacity: 1 !important;color:rgb(233 233 233 / var(--tw-text-opacity))!important}.text-\[\#fff\]{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-\[gray\]{--tw-text-opacity: 1 !important;color:rgb(128 128 128 / var(--tw-text-opacity))!important}.text-accentDark{--tw-text-opacity: 1 !important;color:rgb(80 134 195 / var(--tw-text-opacity))!important}.text-accentLight{--tw-text-opacity: 1 !important;color:rgb(54 148 255 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.text-textAlt{--tw-text-opacity: 1 !important;color:rgb(87 87 87 / var(--tw-text-opacity))!important}.text-textAltDark{--tw-text-opacity: 1 !important;color:rgb(217 217 217 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.shadow-actionBtn{--tw-shadow: inset 0px 0px 10px 2px #0000002e !important;--tw-shadow-colored: inset 0px 0px 10px 2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.blur{--tw-blur: blur(8px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06)) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-card{--tw-drop-shadow: drop-shadow(1px 3px 6px #00000026) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-header{--tw-drop-shadow: drop-shadow(0 0 2px #00000042) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.invert{--tw-invert: invert(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-200{transition-duration:.2s!important}:root{font-family:Poppins,Segoe UI,Tahoma,Geneva,Verdana,sans-serif!important;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);width:12px;background-clip:padding-box;border:2px solid var(--scrollbar-track-color);border-radius:10px}::-webkit-scrollbar-corner{background-color:var(--scrollbar-track-color)}*{scroll-behavior:smooth}body{font-family:Poppins,Segoe UI,Tahoma,Geneva,Verdana,sans-serif!important;font-size:14px;width:450px;min-width:450px!important;min-height:550px!important;max-height:550px!important;overflow:scroll;background-color:var(--nextui-colors-background)}p{font-family:Poppins,Segoe UI,Tahoma,Geneva,Verdana,sans-serif!important}.nextui-modal-body .added{font-size:14px;font-weight:600;text-transform:uppercase;color:#7fbd86;display:flex;align-items:center;margin-top:14px}.nextui-modal-body .changed{font-size:14px;font-weight:600;text-transform:uppercase;color:#ce9b5d;display:flex;align-items:center;margin-top:14px}.nextui-modal-body .removed{font-size:14px;font-weight:600;text-transform:uppercase;color:#c36262;display:flex;align-items:center;margin-top:14px}.nextui-modal-body .label{font-size:14px;font-weight:600;text-transform:uppercase;display:flex;align-items:center;margin-top:14px}.nextui-modal-body .added:after,.nextui-modal-body .changed:after,.nextui-modal-body .removed:after,.nextui-modal-body .label:after{background-color:currentColor;content:"";height:1px;flex:1 1 auto;margin-left:4px;opacity:.6}.nextui-backdrop-layer-blur{-webkit-backdrop-filter:saturate(180%) blur(2px)!important;backdrop-filter:saturate(180%) blur(2px)!important}.gradient-anim{background:radial-gradient(circle,#d44242 0%,#c6a200 100%);background-clip:text;-webkit-background-clip:text;color:transparent!important;background-size:600%;animation:gradient 4s linear infinite}@keyframes gradient{0%{background-position:100%}to{background-position:0%}}.hover\:bg-\[\#1b1d21\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(27 29 33 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#202225\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(32 34 37 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#2c85e9\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(44 133 233 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#383a3d\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(56 58 61 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#4175b0\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(65 117 176 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#dfdfdf\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(223 223 223 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#e9e9e9\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(233 233 233 / var(--tw-bg-opacity))!important}.hover\:bg-\[\#f5f5f5\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(245 245 245 / var(--tw-bg-opacity))!important}.hover\:text-\[\#3694ff\]:hover{--tw-text-opacity: 1 !important;color:rgb(54 148 255 / var(--tw-text-opacity))!important} diff --git a/dist/assets/index.js b/dist/assets/index.js new file mode 100644 index 0000000..1b2f919 --- /dev/null +++ b/dist/assets/index.js @@ -0,0 +1,161 @@ +function Fw(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function Hm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Iw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Wm={exports:{}},ia={},Um={exports:{}},G={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var us=Symbol.for("react.element"),Dw=Symbol.for("react.portal"),Ow=Symbol.for("react.fragment"),Nw=Symbol.for("react.strict_mode"),Aw=Symbol.for("react.profiler"),zw=Symbol.for("react.provider"),Bw=Symbol.for("react.context"),Kw=Symbol.for("react.forward_ref"),jw=Symbol.for("react.suspense"),_w=Symbol.for("react.memo"),Hw=Symbol.for("react.lazy"),uh=Symbol.iterator;function Ww(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var Vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gm=Object.assign,Ym={};function Qo(e,t,r){this.props=e,this.context=t,this.refs=Ym,this.updater=r||Vm}Qo.prototype.isReactComponent={};Qo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xm(){}Xm.prototype=Qo.prototype;function nf(e,t,r){this.props=e,this.context=t,this.refs=Ym,this.updater=r||Vm}var of=nf.prototype=new Xm;of.constructor=nf;Gm(of,Qo.prototype);of.isPureReactComponent=!0;var dh=Array.isArray,Qm=Object.prototype.hasOwnProperty,sf={current:null},qm={key:!0,ref:!0,__self:!0,__source:!0};function Zm(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Qm.call(t,n)&&!qm.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,X=D[J];if(0>>1;Jo(Ce,H))veo(Et,Ce)?(D[J]=Et,D[ve]=H,J=ve):(D[J]=Ce,D[ue]=H,J=ue);else if(veo(Et,H))D[J]=Et,D[ve]=H,J=ve;else break e}}return K}function o(D,K){var H=D.sortIndex-K.sortIndex;return H!==0?H:D.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,h=null,f=3,g=!1,b=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(D){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=D)n(u),K.sortIndex=K.expirationTime,t(a,K);else break;K=r(u)}}function c(D){if(w=!1,P(D),!b)if(r(a)!==null)b=!0,W(L);else{var K=r(u);K!==null&&B(c,K.startTime-D)}}function L(D,K){b=!1,w&&(w=!1,m(M),M=-1),g=!0;var H=f;try{for(P(K),h=r(a);h!==null&&(!(h.expirationTime>K)||D&&!y());){var J=h.callback;if(typeof J=="function"){h.callback=null,f=h.priorityLevel;var X=J(h.expirationTime<=K);K=e.unstable_now(),typeof X=="function"?h.callback=X:h===r(a)&&n(a),P(K)}else n(a);h=r(a)}if(h!==null)var Oe=!0;else{var ue=r(u);ue!==null&&B(c,ue.startTime-K),Oe=!1}return Oe}finally{h=null,f=H,g=!1}}var T=!1,E=null,M=-1,F=5,I=-1;function y(){return!(e.unstable_now()-ID||125J?(D.sortIndex=H,t(u,D),r(a)===null&&D===r(u)&&(w?(m(M),M=-1):w=!0,B(c,H-J))):(D.sortIndex=X,t(a,D),b||g||(b=!0,W(L))),D},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(D){var K=f;return function(){var H=f;f=K;try{return D.apply(this,arguments)}finally{f=H}}}})(r$);t$.exports=r$;var t2=t$.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n$=p,ft=t2;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=Object.prototype.hasOwnProperty,r2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ph={},hh={};function n2(e){return $u.call(hh,e)?!0:$u.call(ph,e)?!1:r2.test(e)?hh[e]=!0:(ph[e]=!0,!1)}function o2(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function i2(e,t,r,n){if(t===null||typeof t>"u"||o2(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var af=/[\-:]([a-z])/g;function cf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(af,cf);De[t]=new Qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(af,cf);De[t]=new Qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(af,cf);De[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function uf(e,t,r,n){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:n||!(2l||o[s]!==i[l]){var a=` +`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{hc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?wi(e):""}function s2(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=gc(e.type,!1),e;case 11:return e=gc(e.type.render,!1),e;case 1:return e=gc(e.type,!0),e;default:return""}}function xu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case no:return"Portal";case vu:return"Profiler";case df:return"StrictMode";case yu:return"Suspense";case bu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case s$:return(e.displayName||"Context")+".Consumer";case i$:return(e._context.displayName||"Context")+".Provider";case ff:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pf:return t=e.displayName||null,t!==null?t:xu(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return xu(e(t))}catch{}}return null}function l2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xu(t);case 8:return t===df?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function a2(e){var t=a$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ks(e){e._valueTracker||(e._valueTracker=a2(e))}function c$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=a$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wu(e,t){var r=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=zr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function u$(e,t){t=t.checked,t!=null&&uf(e,"checked",t,!1)}function Su(e,t){u$(e,t);var r=zr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pu(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pu(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $h(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Pu(e,t,r){(t!=="number"||Sl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Si=Array.isArray;function Co(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},c2=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){c2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function h$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function g$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=h$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var u2=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ku(e,t){if(t){if(u2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Tu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lu=null;function hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mu=null,Eo=null,ko=null;function bh(e){if(e=ps(e)){if(typeof Mu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ua(t),Mu(e.stateNode,e.type,t))}}function m$(e){Eo?ko?ko.push(e):ko=[e]:Eo=e}function $$(){if(Eo){var e=Eo,t=ko;if(ko=Eo=null,bh(e),t)for(e=0;e>>=0,e===0?32:31-(x2(e)/w2|0)|0}var Ls=64,Ms=4194304;function Pi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~o;l!==0?n=Pi(l):(i&=s,i!==0&&(n=Pi(i)))}else s=r&~o,s!==0?n=Pi(s):i!==0&&(n=Pi(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ds(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=r}function E2(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Fi),Lh=String.fromCharCode(32),Mh=!1;function A$(e,t){switch(e){case"keyup":return eS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function rS(e,t){switch(e){case"compositionend":return z$(t);case"keypress":return t.which!==32?null:(Mh=!0,Lh);case"textInput":return e=t.data,e===Lh&&Mh?null:e;default:return null}}function nS(e,t){if(io)return e==="compositionend"||!wf&&A$(e,t)?(e=O$(),sl=yf=Cr=null,io=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Dh(r)}}function _$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function H$(){for(var e=window,t=Sl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sl(e.document)}return t}function Sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fS(e){var t=H$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_$(r.ownerDocument.documentElement,r)){if(n!==null&&Sf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Oh(r,i);var s=Oh(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,so=null,Nu=null,Di=null,Au=!1;function Nh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Au||so==null||so!==Sl(n)||(n=so,"selectionStart"in n&&Sf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Di&&Gi(Di,n)||(Di=n,n=Ml(Nu,"onSelect"),0co||(e.current=Hu[co],Hu[co]=null,co--)}function oe(e,t){co++,Hu[co]=e.current,e.current=t}var Br={},_e=jr(Br),Je=jr(!1),cn=Br;function zo(e,t){var r=e.type.contextTypes;if(!r)return Br;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function Fl(){se(Je),se(_e)}function Hh(e,t,r){if(_e.current!==Br)throw Error(N(168));oe(_e,t),oe(Je,r)}function Z$(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(N(108,l2(e)||"Unknown",o));return pe({},r,n)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Br,cn=_e.current,oe(_e,e),oe(Je,Je.current),!0}function Wh(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Z$(e,t,cn),n.__reactInternalMemoizedMergedChildContext=e,se(Je),se(_e),oe(_e,e)):se(Je),oe(Je,r)}var ir=null,da=!1,Lc=!1;function J$(e){ir===null?ir=[e]:ir.push(e)}function PS(e){da=!0,J$(e)}function _r(){if(!Lc&&ir!==null){Lc=!0;var e=0,t=ee;try{var r=ir;for(ee=1;e>=s,o-=s,sr=1<<32-Dt(t)+o|r<M?(F=E,E=null):F=E.sibling;var I=f(m,E,P[M],c);if(I===null){E===null&&(E=F);break}e&&E&&I.alternate===null&&t(m,E),v=i(I,v,M),T===null?L=I:T.sibling=I,T=I,E=F}if(M===P.length)return r(m,E),ae&&Yr(m,M),L;if(E===null){for(;MM?(F=E,E=null):F=E.sibling;var y=f(m,E,I.value,c);if(y===null){E===null&&(E=F);break}e&&E&&y.alternate===null&&t(m,E),v=i(y,v,M),T===null?L=y:T.sibling=y,T=y,E=F}if(I.done)return r(m,E),ae&&Yr(m,M),L;if(E===null){for(;!I.done;M++,I=P.next())I=h(m,I.value,c),I!==null&&(v=i(I,v,M),T===null?L=I:T.sibling=I,T=I);return ae&&Yr(m,M),L}for(E=n(m,E);!I.done;M++,I=P.next())I=g(E,m,M,I.value,c),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?M:I.key),v=i(I,v,M),T===null?L=I:T.sibling=I,T=I);return e&&E.forEach(function(R){return t(m,R)}),ae&&Yr(m,M),L}function k(m,v,P,c){if(typeof P=="object"&&P!==null&&P.type===oo&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Es:e:{for(var L=P.key,T=v;T!==null;){if(T.key===L){if(L=P.type,L===oo){if(T.tag===7){r(m,T.sibling),v=o(T,P.props.children),v.return=m,m=v;break e}}else if(T.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===xr&&qh(L)===T.type){r(m,T.sibling),v=o(T,P.props),v.ref=pi(m,T,P),v.return=m,m=v;break e}r(m,T);break}else t(m,T);T=T.sibling}P.type===oo?(v=on(P.props.children,m.mode,c,P.key),v.return=m,m=v):(c=hl(P.type,P.key,P.props,null,m.mode,c),c.ref=pi(m,v,P),c.return=m,m=c)}return s(m);case no:e:{for(T=P.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===P.containerInfo&&v.stateNode.implementation===P.implementation){r(m,v.sibling),v=o(v,P.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=Ac(P,m.mode,c),v.return=m,m=v}return s(m);case xr:return T=P._init,k(m,v,T(P._payload),c)}if(Si(P))return b(m,v,P,c);if(ai(P))return w(m,v,P,c);As(m,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,v!==null&&v.tag===6?(r(m,v.sibling),v=o(v,P),v.return=m,m=v):(r(m,v),v=Nc(P,m.mode,c),v.return=m,m=v),s(m)):r(m,v)}return k}var Ko=l1(!0),a1=l1(!1),hs={},Wt=jr(hs),qi=jr(hs),Zi=jr(hs);function Jr(e){if(e===hs)throw Error(N(174));return e}function Ff(e,t){switch(oe(Zi,t),oe(qi,e),oe(Wt,hs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eu(t,e)}se(Wt),oe(Wt,t)}function jo(){se(Wt),se(qi),se(Zi)}function c1(e){Jr(Zi.current);var t=Jr(Wt.current),r=Eu(t,e.type);t!==r&&(oe(qi,e),oe(Wt,r))}function If(e){qi.current===e&&(se(Wt),se(qi))}var de=jr(0);function Bl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mc=[];function Df(){for(var e=0;er?r:4,e(!0);var n=Rc.transition;Rc.transition={};try{e(!1),t()}finally{ee=r,Rc.transition=n}}function C1(){return St().memoizedState}function TS(e,t,r){var n=Or(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},E1(e))k1(t,r);else if(r=n1(e,t,r,n),r!==null){var o=Ye();Ot(r,e,n,o),T1(r,t,n)}}function LS(e,t,r){var n=Or(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(E1(e))k1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,r);if(o.hasEagerState=!0,o.eagerState=l,Nt(l,s)){var a=t.interleaved;a===null?(o.next=o,Mf(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}r=n1(e,t,o,n),r!==null&&(o=Ye(),Ot(r,e,n,o),T1(r,t,n))}}function E1(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function k1(e,t){Oi=Kl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function T1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mf(e,r)}}var jl={readContext:wt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},MS={readContext:wt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Jh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ul(4194308,4,b1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var r=zt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TS.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Zh,useDebugValue:Bf,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Zh(!1),t=e[0];return e=kS.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=fe,o=zt();if(ae){if(r===void 0)throw Error(N(407));r=r()}else{if(r=t(),Le===null)throw Error(N(349));dn&30||f1(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Jh(h1.bind(null,n,i,e),[e]),n.flags|=2048,ts(9,p1.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zt(),t=Le.identifierPrefix;if(ae){var r=lr,n=sr;r=(n&~(1<<32-Dt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ji++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[jt]=t,e[Qi]=n,A1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Tu(r,n),r){case"dialog":ie("cancel",e),ie("close",e),o=n;break;case"iframe":case"object":case"embed":ie("load",e),o=n;break;case"video":case"audio":for(o=0;oHo&&(t.flags|=128,n=!0,hi(i,!1),t.lanes=4194304)}else{if(!n)if(e=Bl(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),hi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ae)return Ae(t),null}else 2*ye()-i.renderingStartTime>Ho&&r!==1073741824&&(t.flags|=128,n=!0,hi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,r=de.current,oe(de,n?r&1|2:r&1),t):(Ae(t),null);case 22:case 23:return Uf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?it&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function zS(e,t){switch(Cf(t),t.tag){case 1:return et(t.type)&&Fl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jo(),se(Je),se(_e),Df(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return If(t),null;case 13:if(se(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(de),null;case 4:return jo(),null;case 10:return Lf(t.type._context),null;case 22:case 23:return Uf(),null;case 24:return null;default:return null}}var Bs=!1,je=!1,BS=typeof WeakSet=="function"?WeakSet:Set,A=null;function ho(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){$e(e,t,n)}else r.current=null}function td(e,t,r){try{r()}catch(n){$e(e,t,n)}}var a0=!1;function KS(e,t){if(zu=Tl,e=H$(),Sf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,l=-1,a=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var g;h!==r||o!==0&&h.nodeType!==3||(l=s+o),h!==i||n!==0&&h.nodeType!==3||(a=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)f=h,h=g;for(;;){if(h===e)break t;if(f===r&&++u===o&&(l=s),f===i&&++d===n&&(a=s),(g=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=g}r=l===-1||a===-1?null:{start:l,end:a}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bu={focusedElem:e,selectionRange:r},Tl=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,k=b.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:Lt(t.type,w),k);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(c){$e(t,t.return,c)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return b=a0,a0=!1,b}function Ni(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&td(t,r,i)}o=o.next}while(o!==n)}}function ha(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function rd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function K1(e){var t=e.alternate;t!==null&&(e.alternate=null,K1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Qi],delete t[_u],delete t[wS],delete t[SS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function j1(e){return e.tag===5||e.tag===3||e.tag===4}function c0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||j1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Rl));else if(n!==4&&(e=e.child,e!==null))for(nd(e,t,r),e=e.sibling;e!==null;)nd(e,t,r),e=e.sibling}function od(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(od(e,t,r),e=e.sibling;e!==null;)od(e,t,r),e=e.sibling}var Re=null,Mt=!1;function yr(e,t,r){for(r=r.child;r!==null;)_1(e,t,r),r=r.sibling}function _1(e,t,r){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(sa,r)}catch{}switch(r.tag){case 5:je||ho(r,t);case 6:var n=Re,o=Mt;Re=null,yr(e,t,r),Re=n,Mt=o,Re!==null&&(Mt?(e=Re,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Re.removeChild(r.stateNode));break;case 18:Re!==null&&(Mt?(e=Re,r=r.stateNode,e.nodeType===8?Tc(e.parentNode,r):e.nodeType===1&&Tc(e,r),Ui(e)):Tc(Re,r.stateNode));break;case 4:n=Re,o=Mt,Re=r.stateNode.containerInfo,Mt=!0,yr(e,t,r),Re=n,Mt=o;break;case 0:case 11:case 14:case 15:if(!je&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&td(r,t,s),o=o.next}while(o!==n)}yr(e,t,r);break;case 1:if(!je&&(ho(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){$e(r,t,l)}yr(e,t,r);break;case 21:yr(e,t,r);break;case 22:r.mode&1?(je=(n=je)||r.memoizedState!==null,yr(e,t,r),je=n):yr(e,t,r);break;default:yr(e,t,r)}}function u0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BS),t.forEach(function(n){var o=XS.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Tt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_S(n/1960))-n,10e?16:e,Er===null)var n=!1;else{if(e=Er,Er=null,Wl=0,Y&6)throw Error(N(331));var o=Y;for(Y|=4,A=e.current;A!==null;){var i=A,s=i.child;if(A.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aye()-Hf?nn(e,0):_f|=r),tt(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=Ms,Ms<<=1,!(Ms&130023424)&&(Ms=4194304)):t=1);var r=Ye();e=pr(e,t),e!==null&&(ds(e,t,r),tt(e,r))}function YS(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Q1(e,r)}function XS(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(N(314))}n!==null&&n.delete(t),Q1(e,r)}var q1;q1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,NS(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,ae&&t.flags&1048576&&e1(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;dl(e,t),e=t.pendingProps;var o=zo(t,_e.current);Lo(t,r),o=Nf(null,t,n,e,o,r);var i=Af();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(n)?(i=!0,Il(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rf(t),o.updater=fa,t.stateNode=o,o._reactInternals=t,Yu(t,n,e,r),t=qu(null,t,n,!0,i,r)):(t.tag=0,ae&&i&&Pf(t),Ve(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(dl(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=qS(n),e=Lt(n,e),o){case 0:t=Qu(null,t,n,e,r);break e;case 1:t=i0(null,t,n,e,r);break e;case 11:t=n0(null,t,n,e,r);break e;case 14:t=o0(null,t,n,Lt(n.type,e),r);break e}throw Error(N(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Lt(n,o),Qu(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Lt(n,o),i0(e,t,n,o,r);case 3:e:{if(D1(t),e===null)throw Error(N(387));n=t.pendingProps,i=t.memoizedState,o=i.element,o1(e,t),zl(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=_o(Error(N(423)),t),t=s0(e,t,n,r,o);break e}else if(n!==o){o=_o(Error(N(424)),t),t=s0(e,t,n,r,o);break e}else for(at=Fr(t.stateNode.containerInfo.firstChild),ct=t,ae=!0,Ft=null,r=a1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bo(),n===o){t=hr(e,t,r);break e}Ve(e,t,n,r)}t=t.child}return t;case 5:return c1(t),e===null&&Uu(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ku(n,o)?s=null:i!==null&&Ku(n,i)&&(t.flags|=32),I1(e,t),Ve(e,t,s,r),t.child;case 6:return e===null&&Uu(t),null;case 13:return O1(e,t,r);case 4:return Ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ko(t,null,n,r):Ve(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Lt(n,o),n0(e,t,n,o,r);case 7:return Ve(e,t,t.pendingProps,r),t.child;case 8:return Ve(e,t,t.pendingProps.children,r),t.child;case 12:return Ve(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,oe(Nl,n._currentValue),n._currentValue=s,i!==null)if(Nt(i.value,s)){if(i.children===o.children&&!Je.current){t=hr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===n){if(i.tag===1){a=cr(-1,r&-r),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),Vu(i.return,r,t),l.lanes|=r;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Vu(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ve(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Lo(t,r),o=wt(o),n=n(o),t.flags|=1,Ve(e,t,n,r),t.child;case 14:return n=t.type,o=Lt(n,t.pendingProps),o=Lt(n.type,o),o0(e,t,n,o,r);case 15:return R1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Lt(n,o),dl(e,t),t.tag=1,et(n)?(e=!0,Il(t)):e=!1,Lo(t,r),s1(t,n,o),Yu(t,n,o,r),qu(null,t,n,!0,e,r);case 19:return N1(e,t,r);case 22:return F1(e,t,r)}throw Error(N(156,t.tag))};function Z1(e,t){return P$(e,t)}function QS(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,r,n){return new QS(e,t,r,n)}function Gf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qS(e){if(typeof e=="function")return Gf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ff)return 11;if(e===pf)return 14}return 2}function Nr(e,t){var r=e.alternate;return r===null?(r=bt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function hl(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Gf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oo:return on(r.children,o,i,t);case df:s=8,o|=8;break;case vu:return e=bt(12,r,t,o|2),e.elementType=vu,e.lanes=i,e;case yu:return e=bt(13,r,t,o),e.elementType=yu,e.lanes=i,e;case bu:return e=bt(19,r,t,o),e.elementType=bu,e.lanes=i,e;case l$:return ma(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case i$:s=10;break e;case s$:s=9;break e;case ff:s=11;break e;case pf:s=14;break e;case xr:s=16,n=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=bt(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function on(e,t,r,n){return e=bt(7,e,n,t),e.lanes=r,e}function ma(e,t,r,n){return e=bt(22,e,n,t),e.elementType=l$,e.lanes=r,e.stateNode={isHidden:!1},e}function Nc(e,t,r){return e=bt(6,e,null,t),e.lanes=r,e}function Ac(e,t,r){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZS(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$c(0),this.expirationTimes=$c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yf(e,t,r,n,o,i,s,l,a){return e=new ZS(e,t,r,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rf(i),e}function JS(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rv)}catch(e){console.error(e)}}rv(),e$.exports=pt;var Zf=e$.exports;const o5=Hm(Zf);var v0=Zf;mu.createRoot=v0.createRoot,mu.hydrateRoot=v0.hydrateRoot;const i5="modulepreload",s5=function(e){return"/"+e},y0={},Hr=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=s5(i),i in y0)return;y0[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!n)for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":i5,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};/** + * @remix-run/router v1.6.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a5(){return Math.random().toString(36).substr(2,8)}function x0(e,t){return{usr:e.state,key:e.key,idx:t}}function cd(e,t,r,n){return r===void 0&&(r=null),ns({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jo(t):t,{state:r,key:t&&t.key||n||a5()})}function Gl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Jo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function c5(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,s=o.history,l=kr.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(ns({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function h(){l=kr.Pop;let k=d(),m=k==null?null:k-u;u=k,a&&a({action:l,location:w.location,delta:m})}function f(k,m){l=kr.Push;let v=cd(w.location,k,m);r&&r(v,k),u=d()+1;let P=x0(v,u),c=w.createHref(v);try{s.pushState(P,"",c)}catch{o.location.assign(c)}i&&a&&a({action:l,location:w.location,delta:1})}function g(k,m){l=kr.Replace;let v=cd(w.location,k,m);r&&r(v,k),u=d();let P=x0(v,u),c=w.createHref(v);s.replaceState(P,"",c),i&&a&&a({action:l,location:w.location,delta:0})}function b(k){let m=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof k=="string"?k:Gl(k);return be(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let w={get action(){return l},get location(){return e(o,s)},listen(k){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(b0,h),a=k,()=>{o.removeEventListener(b0,h),a=null}},createHref(k){return t(o,k)},createURL:b,encodeLocation(k){let m=b(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:g,go(k){return s.go(k)}};return w}var w0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(w0||(w0={}));function u5(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Jo(t):t,o=ep(n.pathname||"/",r);if(o==null)return null;let i=nv(e);d5(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(be(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let u=Ar([n,a.relativePath]),d=r.concat(a);i.children&&i.children.length>0&&(be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),nv(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:v5(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of ov(i.path))o(i,s,a)}),t}function ov(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let s=ov(n.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function d5(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:y5(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const f5=/^:\w+$/,p5=3,h5=2,g5=1,m5=10,$5=-2,S0=e=>e==="*";function v5(e,t){let r=e.split("/"),n=r.length;return r.some(S0)&&(n+=$5),t&&(n+=h5),r.filter(o=>!S0(o)).reduce((o,i)=>o+(f5.test(i)?p5:i===""?g5:m5),n)}function y5(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function b5(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let s=0;s{if(d==="*"){let f=l[h]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[d]=P5(l[h]||"",d),u},{}),pathname:i,pathnameBase:s,pattern:e}}function w5(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Jf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(n.push(l),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function S5(e){try{return decodeURI(e)}catch(t){return Jf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function P5(e,t){try{return decodeURIComponent(e)}catch(r){return Jf(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function ep(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function C5(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Jo(e):e;return{pathname:r?r.startsWith("/")?r:E5(r,t):t,search:T5(n),hash:L5(o)}}function E5(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function zc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tp(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function rp(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Jo(e):(o=ns({},e),be(!o.pathname||!o.pathname.includes("?"),zc("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),zc("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),zc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(n||s==null)l=r;else{let h=t.length-1;if(s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),h-=1;o.pathname=f.join("/")}l=h>=0?t[h]:"/"}let a=C5(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const Ar=e=>e.join("/").replace(/\/\/+/g,"/"),k5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function M5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iv=["post","put","patch","delete"];new Set(iv);const R5=["get",...iv];new Set(R5);/** + * React Router v6.11.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),s=p.useRef(!1);return lv(()=>{s.current=!0}),p.useCallback(function(a,u){if(u===void 0&&(u={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let d=rp(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ar([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,o,e])}function av(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(Wr),{pathname:o}=Sn(),i=JSON.stringify(tp(n).map(s=>s.pathnameBase));return p.useMemo(()=>rp(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function O5(e,t){return N5(e,t)}function N5(e,t,r){ti()||be(!1);let{navigator:n}=p.useContext(ei),{matches:o}=p.useContext(Wr),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let a=Sn(),u;if(t){var d;let w=typeof t=="string"?Jo(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||be(!1),u=w}else u=a;let h=u.pathname||"/",f=l==="/"?h:h.slice(l.length)||"/",g=u5(e,{pathname:f}),b=j5(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Ar([l,n.encodeLocation?n.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ar([l,n.encodeLocation?n.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,r);return t&&b?p.createElement(xa.Provider,{value:{location:Yl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:kr.Pop}},b):b}function A5(){let e=U5(),t=M5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,i)}const z5=p.createElement(A5,null);class B5 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?p.createElement(Wr.Provider,{value:this.props.routeContext},p.createElement(sv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K5(e){let{routeContext:t,match:r,children:n}=e,o=p.useContext(np);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(Wr.Provider,{value:t},n)}function j5(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,s=(n=r)==null?void 0:n.errors;if(s!=null){let l=i.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));l>=0||be(!1),i=i.slice(0,Math.min(i.length,l+1))}return i.reduceRight((l,a,u)=>{let d=a.route.id?s==null?void 0:s[a.route.id]:null,h=null;r&&(h=a.route.errorElement||z5);let f=t.concat(i.slice(0,u+1)),g=()=>{let b;return d?b=h:a.route.Component?b=p.createElement(a.route.Component,null):a.route.element?b=a.route.element:b=l,p.createElement(K5,{match:a,routeContext:{outlet:l,matches:f,isDataRoute:r!=null},children:b})};return r&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?p.createElement(B5,{location:r.location,revalidation:r.revalidation,component:h,error:d,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()},null)}var ud;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(ud||(ud={}));var os;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(os||(os={}));function _5(e){let t=p.useContext(np);return t||be(!1),t}function H5(e){let t=p.useContext(F5);return t||be(!1),t}function W5(e){let t=p.useContext(Wr);return t||be(!1),t}function cv(e){let t=W5(),r=t.matches[t.matches.length-1];return r.route.id||be(!1),r.route.id}function U5(){var e;let t=p.useContext(sv),r=H5(os.UseRouteError),n=cv(os.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function V5(){let{router:e}=_5(ud.UseNavigateStable),t=cv(os.UseNavigateStable),r=p.useRef(!1);return lv(()=>{r.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Yl({fromRouteId:t},i)))},[e,t])}function G5(e){let{to:t,replace:r,state:n,relative:o}=e;ti()||be(!1);let{matches:i}=p.useContext(Wr),{pathname:s}=Sn(),l=wa(),a=rp(t,tp(i).map(d=>d.pathnameBase),s,o==="path"),u=JSON.stringify(a);return p.useEffect(()=>l(JSON.parse(u),{replace:r,state:n,relative:o}),[l,u,o,r,n]),null}function br(e){be(!1)}function Y5(e){let{basename:t="/",children:r=null,location:n,navigationType:o=kr.Pop,navigator:i,static:s=!1}=e;ti()&&be(!1);let l=t.replace(/^\/*/,"/"),a=p.useMemo(()=>({basename:l,navigator:i,static:s}),[l,i,s]);typeof n=="string"&&(n=Jo(n));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:g="default"}=n,b=p.useMemo(()=>{let w=ep(u,l);return w==null?null:{location:{pathname:w,search:d,hash:h,state:f,key:g},navigationType:o}},[l,u,d,h,f,g,o]);return b==null?null:p.createElement(ei.Provider,{value:a},p.createElement(xa.Provider,{children:r,value:b}))}function X5(e){let{children:t,location:r}=e;return O5(dd(t),r)}var P0;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(P0||(P0={}));new Promise(()=>{});function dd(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,o)=>{if(!p.isValidElement(n))return;let i=[...t,o];if(n.type===p.Fragment){r.push.apply(r,dd(n.props.children,i));return}n.type!==br&&be(!1),!n.props.index||!n.props.children||be(!1);let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=dd(n.props.children,i)),r.push(s)}),r}/** + * React Router DOM v6.11.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function q5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Z5(e,t){return e.button===0&&(!t||t==="_self")&&!q5(e)}const J5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function e4(e){let{basename:t,children:r,window:n}=e,o=p.useRef();o.current==null&&(o.current=l5({window:n,v5Compat:!0}));let i=o.current,[s,l]=p.useState({action:i.action,location:i.location});return p.useLayoutEffect(()=>i.listen(l),[i]),p.createElement(Y5,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i})}const t4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_s=p.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:d}=t,h=Q5(t,J5),{basename:f}=p.useContext(ei),g,b=!1;if(typeof u=="string"&&r4.test(u)&&(g=u,t4))try{let v=new URL(window.location.href),P=u.startsWith("//")?new URL(v.protocol+u):new URL(u),c=ep(P.pathname,f);P.origin===v.origin&&c!=null?u=c+P.search+P.hash:b=!0}catch{}let w=I5(u,{relative:o}),k=n4(u,{replace:s,state:l,target:a,preventScrollReset:d,relative:o});function m(v){n&&n(v),v.defaultPrevented||k(v)}return p.createElement("a",fd({},h,{href:g||w,onClick:b||i?n:m,ref:r,target:a}))});var C0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(C0||(C0={}));var E0;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E0||(E0={}));function n4(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,l=wa(),a=Sn(),u=av(e,{relative:s});return p.useCallback(d=>{if(Z5(d,r)){d.preventDefault();let h=n!==void 0?n:Gl(a)===Gl(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[a,l,u,n,o,r,e,i,s])}const o4=(...e)=>e,i4=o4("default","primary","secondary","success","warning","error","gradient"),uv=e=>{const[t,r]=p.useState(()=>typeof e=="function"?e():e),n=p.useRef(e);return p.useEffect(()=>{n.current=t},[t]),[t,o=>{const i=typeof o=="function"?o(n.current):o;n.current=i,r(i)},n]};var re="colors",We="sizes",z="space",dv={gap:z,gridGap:z,columnGap:z,gridColumnGap:z,rowGap:z,gridRowGap:z,inset:z,insetBlock:z,insetBlockEnd:z,insetBlockStart:z,insetInline:z,insetInlineEnd:z,insetInlineStart:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockEnd:z,marginBlockStart:z,marginInline:z,marginInlineEnd:z,marginInlineStart:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockEnd:z,paddingBlockStart:z,paddingInline:z,paddingInlineEnd:z,paddingInlineStart:z,top:z,right:z,bottom:z,left:z,scrollMargin:z,scrollMarginTop:z,scrollMarginRight:z,scrollMarginBottom:z,scrollMarginLeft:z,scrollMarginX:z,scrollMarginY:z,scrollMarginBlock:z,scrollMarginBlockEnd:z,scrollMarginBlockStart:z,scrollMarginInline:z,scrollMarginInlineEnd:z,scrollMarginInlineStart:z,scrollPadding:z,scrollPaddingTop:z,scrollPaddingRight:z,scrollPaddingBottom:z,scrollPaddingLeft:z,scrollPaddingX:z,scrollPaddingY:z,scrollPaddingBlock:z,scrollPaddingBlockEnd:z,scrollPaddingBlockStart:z,scrollPaddingInline:z,scrollPaddingInlineEnd:z,scrollPaddingInlineStart:z,fontSize:"fontSizes",background:re,backgroundColor:re,backgroundImage:re,borderImage:re,border:re,borderBlock:re,borderBlockEnd:re,borderBlockStart:re,borderBottom:re,borderBottomColor:re,borderColor:re,borderInline:re,borderInlineEnd:re,borderInlineStart:re,borderLeft:re,borderLeftColor:re,borderRight:re,borderRightColor:re,borderTop:re,borderTopColor:re,caretColor:re,color:re,columnRuleColor:re,fill:re,outline:re,outlineColor:re,stroke:re,textDecorationColor:re,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:We,minBlockSize:We,maxBlockSize:We,inlineSize:We,minInlineSize:We,maxInlineSize:We,width:We,minWidth:We,maxWidth:We,height:We,minHeight:We,maxHeight:We,flexBasis:We,gridTemplateColumns:We,gridTemplateRows:We,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},s4=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,ri=()=>{const e=Object.create(null);return(t,r,...n)=>{const o=(i=>JSON.stringify(i,s4))(t);return o in e?e[o]:e[o]=r(t,...n)}},sn=Symbol.for("sxs.internal"),op=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),k0=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:l4}=Object.prototype,pd=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),a4=/\s+(?![^()]*\))/,Ln=e=>t=>e(...typeof t=="string"?String(t).split(a4):[t]),T0={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Ln((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Ln((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Ln((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Ln((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Ln((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Ln((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Bc=/([\d.]+)([^]*)/,c4=(e,t)=>e.length?e.reduce((r,n)=>(r.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(o)?`:is(${n})`:n):n+" "+o)),r),[]):t,u4=(e,t)=>e in d4&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(r,n,o,i)=>n+(o==="stretch"?`-moz-available${i};${pd(e)}:${n}-webkit-fill-available`:`-moz-fit-content${i};${pd(e)}:${n}fit-content`)+i):String(t),d4={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},gr=e=>e?e+"-":"",fv=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(n,o,i,s,l)=>s=="$"==!!i?n:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?gr(t)+(l.includes("$")?"":gr(r))+l.replace(/\$/g,"-"):l)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),f4=/\s*,\s*(?![^()]*\))/,p4=Object.prototype.toString,mo=(e,t,r,n,o)=>{let i,s,l;const a=(u,d,h)=>{let f,g;const b=w=>{for(f in w){const v=f.charCodeAt(0)===64,P=v&&Array.isArray(w[f])?w[f]:[w[f]];for(g of P){const c=/[A-Z]/.test(m=f)?m:m.replace(/-[^]/g,T=>T[1].toUpperCase()),L=typeof g=="object"&&g&&g.toString===p4&&(!n.utils[c]||!d.length);if(c in n.utils&&!L){const T=n.utils[c];if(T!==s){s=T,b(T(g)),s=null;continue}}else if(c in T0){const T=T0[c];if(T!==l){l=T,b(T(g)),l=null;continue}}if(v&&(k=f.slice(1)in n.media?"@media "+n.media[f.slice(1)]:f,f=k.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(T,E,M,F,I,y)=>{const R=Bc.test(E),x=.0625*(R?-1:1),[C,j]=R?[F,E]:[E,F];return"("+(M[0]==="="?"":M[0]===">"===R?"max-":"min-")+C+":"+(M[0]!=="="&&M.length===1?j.replace(Bc,(W,B,D)=>Number(B)+x*(M===">"?1:-1)+D):j)+(I?") and ("+(I[0]===">"?"min-":"max-")+C+":"+(I.length===1?y.replace(Bc,(W,B,D)=>Number(B)+x*(I===">"?-1:1)+D):y):"")+")"})),L){const T=v?h.concat(f):[...h],E=v?[...d]:c4(d,f.split(f4));i!==void 0&&o(L0(...i)),i=void 0,a(g,E,T)}else i===void 0&&(i=[[],d,h]),f=v||f.charCodeAt(0)!==36?f:`--${gr(n.prefix)}${f.slice(1).replace(/\$/g,"-")}`,g=L?g:typeof g=="number"?g&&c in h4?String(g)+"px":String(g):fv(u4(c,g??""),n.prefix,n.themeMap[c]),i[0].push(`${v?`${f} `:`${pd(f)}:`}${g}`)}}var k,m};b(u),i!==void 0&&o(L0(...i)),i=void 0};a(e,t,r)},L0=(e,t,r)=>`${r.map(n=>`${n}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,h4={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},M0=e=>String.fromCharCode(e+(e>25?39:97)),ln=e=>(t=>{let r,n="";for(r=Math.abs(t);r>52;r=r/52|0)n=M0(r%52)+n;return M0(r%52)+n})(((t,r)=>{let n=r.length;for(;n;)t=33*t^r.charCodeAt(--n);return t})(5381,JSON.stringify(e))>>>0),Ei=["themed","global","styled","onevar","resonevar","allvar","inline"],g4=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},m4=e=>{let t;const r=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:l}=i;let a="";if(l.startsWith("--sxs"))return"";if(o[s-1]&&(a=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===i)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return i.cssRules.length?`${a}${l}`:""}return l}).join("")},n=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const o=Object(e).styleSheets||[];for(const l of o)if(g4(l)){for(let a=0,u=l.cssRules;u[a];++a){const d=Object(u[a]);if(d.type!==1)continue;const h=Object(u[a+1]);if(h.type!==4)continue;++a;const{cssText:f}=d;if(!f.startsWith("--sxs"))continue;const g=f.slice(14,-3).trim().split(/\s+/),b=Ei[g[0]];b&&(t||(t={sheet:l,reset:n,rules:{},toString:r}),t.rules[b]={group:h,index:a,cache:new Set(g)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(d,h){this.cssRules.splice(h,0,l(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:n,toString:r}}const{sheet:i,rules:s}=t;for(let l=Ei.length-1;l>=0;--l){const a=Ei[l];if(!s[a]){const u=Ei[l+1],d=s[u]?s[u].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${l}}`,d),s[a]={group:i.cssRules[d+1],index:d,cache:new Set([l])}}$4(s[a])}};return n(),t},$4=e=>{const t=e.group;let r=t.cssRules.length;e.apply=n=>{try{t.insertRule(n,r),++r}catch{}}},mi=Symbol(),v4=ri(),R0=(e,t)=>v4(e,()=>(...r)=>{let n={type:null,composers:new Set};for(const o of r)if(o!=null)if(o[sn]){n.type==null&&(n.type=o[sn].type);for(const i of o[sn].composers)n.composers.add(i)}else o.constructor!==Object||o.$$typeof?n.type==null&&(n.type=o):n.composers.add(y4(o,e));return n.type==null&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),b4(e,n,t)}),y4=({variants:e,compoundVariants:t,defaultVariants:r,...n},o)=>{const i=`${gr(o.prefix)}c-${ln(n)}`,s=[],l=[],a=Object.create(null),u=[];for(const f in r)a[f]=String(r[f]);if(typeof e=="object"&&e)for(const f in e){d=a,h=f,l4.call(d,h)||(a[f]="undefined");const g=e[f];for(const b in g){const w={[f]:String(b)};String(b)==="undefined"&&u.push(f);const k=g[b],m=[w,k,!k0(k)];s.push(m)}}var d,h;if(typeof t=="object"&&t)for(const f of t){let{css:g,...b}=f;g=typeof g=="object"&&g||{};for(const k in b)b[k]=String(b[k]);const w=[b,g,!k0(g)];l.push(w)}return[i,n,s,l,a,u]},b4=(e,t,r)=>{const[n,o,i,s]=x4(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(h=>{function f(){for(let g=0;gf.rules[g]={apply:b=>f[mi].push([g,b])}),f})(r):null,a=(l||r).rules,u=`.${n}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=h=>{h=typeof h=="object"&&h||w4;const{css:f,...g}=h,b={};for(const m in i)if(delete g[m],m in h){let v=h[m];typeof v=="object"&&v?b[m]={"@initial":i[m],...v}:(v=String(v),b[m]=v!=="undefined"||s.has(m)?v:i[m])}else b[m]=i[m];const w=new Set([...o]);for(const[m,v,P,c]of t.composers){r.rules.styled.cache.has(m)||(r.rules.styled.cache.add(m),mo(v,[`.${m}`],[],e,E=>{a.styled.apply(E)}));const L=F0(P,b,e.media),T=F0(c,b,e.media,!0);for(const E of L)if(E!==void 0)for(const[M,F,I]of E){const y=`${m}-${ln(F)}-${M}`;w.add(y);const R=(I?r.rules.resonevar:r.rules.onevar).cache,x=I?a.resonevar:a.onevar;R.has(y)||(R.add(y),mo(F,[`.${y}`],[],e,C=>{x.apply(C)}))}for(const E of T)if(E!==void 0)for(const[M,F]of E){const I=`${m}-${ln(F)}-${M}`;w.add(I),r.rules.allvar.cache.has(I)||(r.rules.allvar.cache.add(I),mo(F,[`.${I}`],[],e,y=>{a.allvar.apply(y)}))}}if(typeof f=="object"&&f){const m=`${n}-i${ln(f)}-css`;w.add(m),r.rules.inline.cache.has(m)||(r.rules.inline.cache.add(m),mo(f,[`.${m}`],[],e,v=>{a.inline.apply(v)}))}for(const m of String(h.className||"").trim().split(/\s+/))m&&w.add(m);const k=g.className=[...w].join(" ");return{type:t.type,className:k,selector:u,props:g,toString:()=>k,deferredInjector:l}};return op(d,{className:n,selector:u,[sn]:t,toString:()=>(r.rules.styled.cache.has(n)||d(),n)})},x4=e=>{let t="";const r=[],n={},o=[];for(const[i,,,,s,l]of e){t===""&&(t=i),r.push(i),o.push(...l);for(const a in s){const u=s[a];(n[a]===void 0||u!=="undefined"||l.includes(u))&&(n[a]=u)}}return[t,r,n,new Set(o)]},F0=(e,t,r,n)=>{const o=[];e:for(let[i,s,l]of e){if(l)continue;let a,u=0,d=!1;for(a in i){const h=i[a];let f=t[a];if(f!==h){if(typeof f!="object"||!f)continue e;{let g,b,w=0;for(const k in f){if(h===String(f[k])){if(k!=="@initial"){const m=k.slice(1);(b=b||[]).push(m in r?r[m]:k.replace(/^@media ?/,"")),d=!0}u+=w,g=!0}++w}if(b&&b.length&&(s={["@media "+b.join(", ")]:s}),!g)continue e}}}(o[u]=o[u]||[]).push([n?"cv":`${a}-${i[a]}`,s,d])}return o},w4={},S4=ri(),P4=(e,t)=>S4(e,()=>(...r)=>{const n=()=>{for(let o of r){o=typeof o=="object"&&o||{};let i=ln(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(o["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete o["@import"]}mo(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return op(n,{toString:n})}),C4=ri(),E4=(e,t)=>C4(e,()=>r=>{const n=`${gr(e.prefix)}k-${ln(r)}`,o=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const i=[];mo(r,[],[],e,l=>i.push(l));const s=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(s)}return n};return op(o,{get name(){return o()},toString:o})}),k4=class{constructor(e,t,r,n){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=r==null?"":String(r),this.prefix=n==null?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+gr(this.prefix)+gr(this.scale)+this.token}toString(){return this.computedValue}},T4=ri(),L4=(e,t)=>T4(e,()=>(r,n)=>{n=typeof r=="object"&&r||Object(n);const o=`.${r=(r=typeof r=="string"?r:"")||`${gr(e.prefix)}t-${ln(n)}`}`,i={},s=[];for(const a in n){i[a]={};for(const u in n[a]){const d=`--${gr(e.prefix)}${a}-${u}`,h=fv(String(n[a][u]),e.prefix,a);i[a][u]=new k4(u,h,a,e.prefix),s.push(`${d}:${h}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const a=`${n===e.theme?":root,":""}.${r}{${s.join(";")}}`;t.rules.themed.apply(a)}return r};return{...i,get className(){return l()},selector:o,toString:l}}),M4=ri(),R4=ri(),F4=e=>{const t=(r=>{let n=!1;const o=M4(r,i=>{n=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",l=typeof i.media=="object"&&i.media||{},a=typeof i.root=="object"?i.root||null:globalThis.document||null,u=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:l,theme:u,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...dv},utils:typeof i.utils=="object"&&i.utils||{}},h=m4(a),f={css:R0(d,h),globalCss:P4(d,h),keyframes:E4(d,h),createTheme:L4(d,h),reset(){h.reset(),f.theme.toString()},theme:{},sheet:h,config:d,prefix:s,getCssText:h.toString,toString:h.toString};return String(f.theme=f.createTheme(u)),f});return n||o.reset(),o})(e);return t.styled=(({config:r,sheet:n})=>R4(r,()=>{const o=R0(r,n);return(...i)=>{const s=o(...i),l=s[sn].type,a=O.forwardRef((u,d)=>{const h=u&&u.as||l,{props:f,deferredInjector:g}=s(u);return delete f.as,f.ref=d,g?O.createElement(O.Fragment,null,O.createElement(h,f),O.createElement(g,null)):O.createElement(h,f)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[sn]=s[sn],a}}))(t),t};function ip(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;)for(r in t=n.shift())t.hasOwnProperty(r)&&(typeof e[r]=="object"&&e[r]&&Object.prototype.toString.call(e[r])!=="[object Array]"&&typeof t[r]=="object"&&t[r]!==null?e[r]=ip({},e[r],t[r]):e[r]=t[r]);return e}const ze={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,"2xl":2,"3xl":2.25,"4xl":2.5,"5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem","2xl":"3rem","3xl":"5rem","4xl":"10rem","5xl":"14rem","6xl":"18rem","7xl":"24rem","8xl":"32rem","9xl":"40rem",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",full:"100%",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px","2xl":"24px","3xl":"32px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.12s ease, transform 0.12s ease, color 0.12s ease, box-shadow 0.12s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},I4={white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondaryShadow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900"},D4={xs:`(min-width: ${ze.breakpoints.xs})`,sm:`(min-width: ${ze.breakpoints.sm})`,md:`(min-width: ${ze.breakpoints.md})`,lg:`(min-width: ${ze.breakpoints.lg})`,xl:`(min-width: ${ze.breakpoints.xl})`,xsMin:`(min-width: ${ze.breakpoints.xs})`,smMin:`(min-width: ${ze.breakpoints.sm})`,mdMin:`(min-width: ${ze.breakpoints.md})`,lgMin:`(min-width: ${ze.breakpoints.lg})`,xlMin:`(min-width: ${ze.breakpoints.xl})`,xsMax:`(max-width: ${ze.breakpoints.xs})`,smMax:`(max-width: ${ze.breakpoints.sm})`,mdMax:`(max-width: ${ze.breakpoints.md})`,lgMax:`(max-width: ${ze.breakpoints.lg})`,xlMax:`(max-width: ${ze.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},O4={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},N4={...dv,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"},an={prefix:"nextui",theme:{...ze,colors:I4,shadows:{},dropShadows:{}},media:D4,utils:O4,themeMap:N4},pv=(e,t=null)=>{if(typeof document>"u"||!e)return"";const r=t||document.documentElement,n=sp(e)?e.replace("var(","").replace(")",""):e.includes("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(n)},sp=e=>!(!e||(e==null?void 0:e.indexOf("var("))!==0),hv=(e,t=1)=>{let r=0,n=0,o=0;return e.length==4?(r="0x"+e[1]+e[1],n="0x"+e[2]+e[2],o="0x"+e[3]+e[3]):e.length==7&&(r="0x"+e[1]+e[2],n="0x"+e[3]+e[4],o="0x"+e[5]+e[6]),`rgba(${+r},${+n},${+o},${t})`},A4=e=>i4.find(r=>r===e)!=null,z4=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(n,o,i,s)=>`${o}${o}${i}${i}${s}${s}`),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(r[1],16),Number.parseInt(r[2],16),Number.parseInt(r[3],16)]},B4=e=>{const t=sp(e)?pv(e):e;if(t.charAt(0)==="#")return z4(t);const r=t.replace(/ /g,""),n=t.substr(0,4),o=r.match(/\((.+)\)/);return n.startsWith("rgb")&&o?o[1].split(",").map(i=>Number.parseFloat(i)):(console.warn('NextUI: Only supports ["RGB", "RGBA", "HEX"] color.'),[0,0,0])},Xl=(e,t=1)=>{if(!e)return"";const r=sp(e)?pv(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(r))return hv(r,t);if(!/^#|rgb|RGB/.test(r))return r;const[n,o,i]=B4(r);return`rgba(${n}, ${o}, ${i}, ${t>1?1:t<0?0:t})`},K4=(e,t=1)=>{const[r,n,o]=e.split(",").map(i=>Number.parseFloat(i));return`rgba(${r}, ${n}, ${o}, ${t>1?1:t<0?0:t})`},I0={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"},D0={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"},j4={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"},_4={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"},H4={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"},W4={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"},U4={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},V4={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"},G4={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},Y4={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"},X4={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},Q4={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"},q4={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},Z4={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"},O0={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"},N0={gray50:"#16181A",gray100:"#26292B",gray200:"#2B2F31",gray300:"#313538",gray400:"#3A3F42",gray500:"#4C5155",gray600:"#697177",gray700:"#787F85",gray800:"#9BA1A6",gray900:"#ECEDEE"},Ro={colors:{background:"$white",backgroundAlpha:"rgba(255, 255, 255, 0.8)",foreground:"$black",backgroundContrast:"$white",...I0,...j4,...H4,...U4,...G4,...X4,...q4,...O0,textLight:Xl(O0.gray900,.2),text:"$gray900",linkLight:Xl(I0.blue600,.2),link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200",border:"rgba(0, 0, 0, 0.15)"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}},J4={colors:{background:"$black",backgroundAlpha:"rgba(0, 0, 0, 0.6)",foreground:"$white",backgroundContrast:"$accents0",...D0,..._4,...W4,...V4,...Y4,...Q4,...Z4,...N0,primaryLight:"$blue50",primaryLightHover:"$blue100",primaryLightActive:"$blue200",primaryLightContrast:"$blue600",secondaryLight:"$purple50",secondaryLightHover:"$purple100",secondaryLightActive:"$purple200",secondaryLightContrast:"$purple800",secondary:"$purple700",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondaryShadow:"$purple500",successLight:"$green50",successLightHover:"$green100",successLightActive:"$green200",warningLight:"$yellow50",warningLightHover:"$yellow100",warningLightActive:"$yellow200",errorLight:"$red50",errorLightHover:"$red100",errorLightActive:"$red200",errorLightContrast:"$red700",neutralLight:"$gray200",neutralLightHover:"$gray300",neutralLightActive:"$gray400",neutralSolidContrast:"$white",textLight:Xl(N0.gray900,.2),text:"$gray900",linkLight:Xl(D0.blue600,.2),link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800",border:"rgba(255, 255, 255, 0.15)"},shadows:{xs:"0 2px 8px 1px rgb(0 0 0 / 0.07), 0 1px 1px -1px rgb(0 0 0 / 0.04)",sm:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",md:"0 12px 20px 6px rgb(0 0 0 / 0.08)",lg:"0 12px 34px 6px rgb(0 0 0 / 0.18)",xl:"0 25px 65px 0px rgb(0 0 0 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(0 0 0 / 0.07)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.04))",md:"drop-shadow(0 4px 12px rgb(0 0 0 / 0.08)) drop-shadow(0 20px 8px rgb(0 0 0 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(0 0 0 / 0.15)) drop-shadow(0 12px 14px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(0 0 0 / 0.35))"}},Ur=F4({...an,theme:{...an.theme,shadows:{...Ro.shadows},dropShadows:{...Ro.dropShadows},colors:{...an.theme.colors,...Ro.colors}}}),e3=Ur.createTheme,U=Ur.styled,Pn=Ur.css,t3=Ur.globalCss,nt=Ur.keyframes,r3=Ur.getCssText,n3=Ur.theme;Ur.config;const gv=({type:e,theme:t,className:r})=>{if(!e)throw new Error("Theme type is required");return e3(r||`${e}-theme`,ip(e==="dark"?J4:Ro,t))},hd={isDark:!1,theme:n3,type:"light"},o3=O.createContext(hd),i3=o3,mv=()=>{const[e,t]=p.useState(!1);return p.useEffect(()=>{t(!!(typeof window<"u"&&window.document&&window.document.createElement))},[]),{isBrowser:e,isServer:!e}},s3=()=>Math.random().toString(32).slice(2,10),l3=(e,t)=>{let r=[];return[O.Children.map(e,n=>O.isValidElement(n)&&n.type===t?(r.push(n),null):n),r.length>=0?r:void 0]},a3=(e,t)=>{if(!e||!t)return!1;let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1},A0=()=>!!(typeof window<"u"&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,z0=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},c3=(e=s3(),t)=>{const r=`nextui-${e}`,{isBrowser:n}=mv(),[o,i]=p.useState(n?z0(r):null);return p.useEffect(()=>{const s=(t?t():null)||document.body,l=s==null?void 0:s.querySelector(`#${r}`),a=l||z0(r);l||s.appendChild(a),i(a)},[]),o},u3={scrollLayer:!1},$i=new Map,B0=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),d3=(e,t)=>{if(typeof document>"u")return[!1,l=>l];const r=e||p.useRef(document.body),[n,o]=p.useState(!1),i={...u3,...t||{}},s=()=>!i.scrollLayer&&!(typeof window>"u"||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return p.useEffect(()=>{if(!r||!r.current)return;const l=r.current.style.overflow;if(n)return $i.has(r.current)?void 0:(s()?document.addEventListener("touchmove",B0,{passive:!1}):r.current.style.overflow="hidden",void $i.set(r.current,{last:l}));if($i.has(r.current)){if(s())document.removeEventListener("touchmove",B0);else{const a=$i.get(r.current);r.current.style.overflow=a.last}$i.delete(r.current)}},[n,r]),[n,o]},K0={},f3=(e,t)=>{const r=`[Next UI]${t?` [${t}]`:" "}: ${e}`;typeof console<"u"&&!K0[r]&&(K0[r]=!0,console.warn(r))},p3=!1;function h3(e){return typeof e=="function"}const lp=e=>e&&typeof e=="object",g3=e=>lp(e)?e instanceof Array?[...e]:{...e}:e,gd=(e,t)=>lp(e)?e instanceof Array?[...e]:e[t]:e,Wo={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220},md={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},m3=()=>({CtrlCmd:A0()?"metaKey":"ctrlKey",WinCtrl:A0()?"ctrlKey":"metaKey"}),$3=e=>{const t=e.filter(n=>!!gd(md,n)),r={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach(n=>{const o=gd(md,n);r[o]=!0}),r},ap=(e,t,r={})=>{const n=Array.isArray(t)?t:[t],{disableGlobalEvent:o=!1,capture:i=!1,stopPropagation:s=!1,preventDefault:l=!1,event:a="keydown"}=r,u=$3(n),d=n.filter(w=>!gd(md,w)),{CtrlCmd:h,WinCtrl:f}=m3(),g=w=>{u.Shift&&!w.shiftKey||u.Alt&&!w.altKey||u.CtrlCmd&&!w[h]||u.WinCtrl&&!w[f]||d.length>0&&!d.includes(w.keyCode)||(s&&w.stopPropagation(),l&&w.preventDefault(),e&&e(w))};p.useEffect(()=>(o||document.addEventListener(a,g),()=>{document.removeEventListener(a,g)}),[o]);const b=(w,k=!1)=>w!==a||k!==i?()=>{}:m=>g(m);return{bindings:{onKeyDown:b("keydown"),onKeyDownCapture:b("keydown",!0),onKeyPress:b("keypress"),onKeyPressCapture:b("keypress",!0),onKeyUp:b("keyup"),onKeyUpCapture:b("keyup",!0)}}},v3=(e=!1,t)=>{const[r,n]=p.useState(e),[o,i]=p.useState(0),[s,l]=p.useState(0);return{visible:r,x:o,y:s,onClick:a=>{if(!t.current)return;const u=t.current.getBoundingClientRect();n(!0),i(a.clientX-u.left),l(a.clientY-u.top)},onCompleted:()=>{n(!1),i(0),l(0)}}},ot=(e,t)=>(e.defaultProps=t,e);function $v(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{const l=p.useRef(null),a=Number.isNaN(+r)?0:r-10,u=Number.isNaN(+t)?0:t-10;return p.useEffect(()=>{let d=l.current;if(d)return d.addEventListener("animationend",o),()=>{d&&d.removeEventListener("animationend",o)}}),e?S.jsx(he,{ref:l,className:ce("nextui-drip",i),...s,children:S.jsx("svg",{height:"20",style:{top:a,left:u},viewBox:"0 0 20 20",width:"20",children:S.jsx("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:S.jsx("g",{className:"nextui-drip-filler",fill:n,children:S.jsx("rect",{height:"100%",rx:"10",width:"100%"})})})})}):null},x3=O.memo(b3),w3=ot(x3,{visible:!1,x:0,y:0,className:""}),S3=t3({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$xs",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",fontSize:"$5xl",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$4xl",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$2xl",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$xl",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$md",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$sm",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus, textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$sm",whiteSpace:"pre-wrap",transition:"opacity 0.25s ease 0s"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$sm",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$sm",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{background:"$border",borderColor:"transparent",borderWidth:"0px",borderStyle:"none",height:"1px"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents7",backgroundColor:"$accents0",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0},kbd:{width:"fit-content",textAlign:"center",display:"inline-block",color:"$accents8",bg:"$accents0",border:"1px solid $border",boxShadow:"0 0 1px 0 rgb(0 0 0 / 14%)",fontFamily:"$sans",borderRadius:"5px",padding:"$1 $3",mx:"$1",lineHeight:"$sm",fontSize:"$sm"},"kbd + kbd":{ml:"$2"},"dl, dd, hr, figure, p":{margin:0}}),P3=({children:e})=>(S3(),S.jsx(O.Fragment,{children:e})),vv=O.memo(P3);vv.flush=()=>S.jsx("style",{dangerouslySetInnerHTML:{__html:r3()},id:"stitches"});const yv=vv,Sa={prefix:String(Math.round(Math.random()*1e10)),current:0},Ql=O.createContext(Sa);function C3(e){let t=p.useContext(Ql),r=p.useMemo(()=>({prefix:t===Sa?"":`${t.prefix}-${++t.current}`,current:0}),[t]);return O.createElement(Ql.Provider,{value:r},e.children)}let E3=!!(typeof window<"u"&&window.document&&window.document.createElement);function k3(e){let t=p.useContext(Ql);return t===Sa&&!E3&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server."),p.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function T3(){let t=p.useContext(Ql)!==Sa,[r,n]=p.useState(t);return typeof window<"u"&&t&&p.useLayoutEffect(()=>{n(!1)},[]),r}class L3{getStringForLocale(t,r){let n=this.strings[r];n||(n=M3(r,this.strings,this.defaultLocale),this.strings[r]=n);let o=n[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}constructor(t,r="en-US"){this.strings={...t},this.defaultLocale=r}}function M3(e,t,r="en-US"){if(t[e])return t[e];let n=R3(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function R3(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const j0=new Map,_0=new Map;class F3{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=j0.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),j0.set(i,s));let l=s.select(t);return o=r[l]||r.other,typeof o=="function"?o():o}number(t){let r=_0.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),_0.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function Pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const I3=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),D3=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function O3(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return I3.has(r)}let t=e.split("-")[0];return D3.has(t)}function bv(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:O3(e)?"rtl":"ltr"}}let $d=bv(),ki=new Set;function H0(){$d=bv();for(let e of ki)e($d)}function N3(){let e=T3(),[t,r]=p.useState($d);return p.useEffect(()=>(ki.size===0&&window.addEventListener("languagechange",H0),ki.add(r),()=>{ki.delete(r),ki.size===0&&window.removeEventListener("languagechange",H0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const A3=O.createContext(null);function xv(){let e=N3();return p.useContext(A3)||e}const W0=new WeakMap;function z3(e){let t=W0.get(e);return t||(t=new L3(e),W0.set(e,t)),t}function wv(e){let{locale:t}=xv(),r=p.useMemo(()=>z3(e),[e]);return p.useMemo(()=>new F3(t,r),[t,r])}function cp(e,t,r){let[n,o]=p.useState(e||t),i=p.useRef(e!==void 0),s=i.current,l=e!==void 0,a=p.useRef(n);s!==l&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l;let u=p.useCallback((d,...h)=>{let f=(g,...b)=>{r&&(Object.is(a.current,g)||r(g,...b)),l||(a.current=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((b,...w)=>{let k=d(l?a.current:b,...w);return f(k,...h),l?b:k})):(l||o(d),f(d,...h))},[l,r]);return l?a.current=e:e=n,[e,u]}const Sv={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},up=O.createContext(Sv);let B3=!!(typeof window<"u"&&window.document&&window.document.createElement),Kc=new WeakMap;function K3(e=!1){let t=p.useContext(up),r=p.useRef(null);if(r.current===null&&!e){var n,o;let i=(n=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(i){let s=Kc.get(i);s==null?Kc.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Kc.delete(i))}r.current=++t.current}return r.current}function j3(e){let t=p.useContext(up);t===Sv&&!B3&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let r=K3(!!e);return e||`react-aria${t.prefix}-${r}`}function _3(){return p.useContext(up).isSSR}function Pv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{};let U0=new Map;function Cv(e){let[t,r]=p.useState(e),n=p.useRef(null),o=j3(t),i=p.useCallback(s=>{n.current=s},[]);return U0.set(o,i),Uo(()=>{let s=o;return()=>{U0.delete(s)}},[o]),p.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}let vi=new Map,V0=new Set;function G0(){if(typeof window>"u")return;let e=r=>{let n=vi.get(r.target);n||(n=new Set,vi.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=vi.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),vi.delete(r.target)),vi.size===0)){for(let o of V0)o();V0.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?G0():document.addEventListener("DOMContentLoaded",G0));function H3(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Cv(r),o&&n?o=[...new Set([...o.trim().split(/\s+/),r])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function W3(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function U3(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function V3(){return U3(/^Mac/i)}function G3(){return W3(/Android/i)}function Y3(e){return e.mozInputSource===0&&e.isTrusted?!0:G3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const X3=O.createContext(null);X3.displayName="PressResponderContext";let Q3=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}};function q3(e){let t=p.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Uo(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var s,l;t.current.isFocused=!1,n.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new Q3("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Z3=new Set,Y0=!1,hn=!1,vd=!1;function dp(e,t){for(let r of Z3)r(e,t)}function J3(e){return!(e.metaKey||!V3()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function X0(e){hn=!0,J3(e)&&dp("keyboard",e)}function Mn(e){(e.type==="mousedown"||e.type==="pointerdown")&&(hn=!0,dp("pointer",e))}function e6(e){Y3(e)&&(hn=!0)}function t6(e){e.target===window||e.target===document||(!hn&&!vd&&dp("virtual",e),hn=!1,vd=!1)}function r6(){hn=!1,vd=!0}function Q0(){if(typeof window>"u"||Y0)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hn=!0,e.apply(this,arguments)},document.addEventListener("keydown",X0,!0),document.addEventListener("keyup",X0,!0),document.addEventListener("click",e6,!0),window.addEventListener("focus",t6,!0),window.addEventListener("blur",r6,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Mn,!0),document.addEventListener("pointermove",Mn,!0),document.addEventListener("pointerup",Mn,!0)):(document.addEventListener("mousedown",Mn,!0),document.addEventListener("mousemove",Mn,!0),document.addEventListener("mouseup",Mn,!0)),Y0=!0}typeof document<"u"&&(document.readyState!=="loading"?Q0():document.addEventListener("DOMContentLoaded",Q0));function n6(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),s=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(u),o&&o(!1))},[r,o,i]),l=q3(s),a=p.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(n&&n(u),o&&o(!0),i.current.isFocusWithin=!0,l(u))},[n,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:a,onBlur:s}}}function o6(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;s.onInteractOutside=r,s.onInteractOutsideStart=o,p.useEffect(()=>{if(n)return;let l=a=>{Hs(a,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(a),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let a=u=>{s.isPointerDown&&s.onInteractOutside&&Hs(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",l,!0),document.addEventListener("pointerup",a,!0),()=>{document.removeEventListener("pointerdown",l,!0),document.removeEventListener("pointerup",a,!0)}}else{let a=d=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Hs(d,t)&&s.onInteractOutside(d),s.isPointerDown=!1},u=d=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Hs(d,t)&&s.onInteractOutside(d),s.isPointerDown=!1};return document.addEventListener("mousedown",l,!0),document.addEventListener("mouseup",a,!0),document.addEventListener("touchstart",l,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("mouseup",a,!0),document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,n])}function Hs(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}const Vt=typeof window<"u"?O.useLayoutEffect:()=>{};let ql=new Map;function fp(e){let[t,r]=p.useState(e),n=p.useRef(null),o=k3(t),i=p.useCallback(s=>{n.current=s},[]);return ql.set(o,i),Vt(()=>{let s=o;return()=>{ql.delete(s)}},[o]),p.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function i6(e,t){if(e===t)return e;let r=ql.get(e);if(r)return r(t),t;let n=ql.get(t);return n?(n(e),e):t}function jc(e=[]){let t=fp(),[r,n]=x6(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Vt(o,[t,o,...e]),r}function s6(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function Pe(...e){let t={...e[0]};for(let r=1;r=65&&o.charCodeAt(2)<=90?t[o]=s6(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=xe(i,s):o==="id"&&i&&s?t.id=i6(i,s):t[o]=s!==void 0?s:i}}return t}const l6=new Set(["id"]),a6=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),c6=/^(data-.*)$/;function u6(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(l6.has(i)||r&&a6.has(i)||n!=null&&n.has(i)||c6.test(i))&&(o[i]=e[i]);return o}function $o(e){if(d6())e.focus({preventScroll:!0});else{let t=f6(e);e.focus(),p6(t)}}let Ws=null;function d6(){if(Ws==null){Ws=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ws=!0,!0}})}catch{}}return Ws}function f6(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight"u")return;let e=r=>{let n=Xn.get(r.target);n||(n=new Set,Xn.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Xn.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Xn.delete(r.target)),Xn.size===0)){for(let o of yd)o();yd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?q0():document.addEventListener("DOMContentLoaded",q0));function Ev(e){requestAnimationFrame(()=>{Xn.size===0?e():yd.add(e)})}function kv(){let e=p.useRef(new Map),t=p.useCallback((o,i,s,l)=>{let a=l!=null&&l.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:a,options:l}),o.addEventListener(i,s,l)},[]),r=p.useCallback((o,i,s,l)=>{var a;let u=((a=e.current.get(s))===null||a===void 0?void 0:a.fn)||s;o.removeEventListener(i,u,l),e.current.delete(s)},[]),n=p.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function h6(e,t){Vt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}let g6=0;const _c=new Map;function m6(e){let[t,r]=p.useState(void 0);return Vt(()=>{if(!e)return;let n=_c.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${g6++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},_c.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),_c.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function $6(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function pp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tv(){return pp(/^Mac/i)}function v6(){return pp(/^iPhone/i)}function y6(){return pp(/^iPad/i)||Tv()&&navigator.maxTouchPoints>1}function Lv(){return v6()||y6()}function b6(){return $6(/Android/i)}function x6(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null);n.current=t;let i=p.useRef(null);i.current=()=>{let l=o.current.next();if(l.done){o.current=null;return}t===l.value?i.current():r(l.value)},Vt(()=>{o.current&&i.current()});let s=p.useCallback(l=>{o.current=l(n.current),i.current()},[o,i]);return[t,s]}function bd(e){return e.mozInputSource===0&&e.isTrusted?!0:b6()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function w6(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let vo="default",xd="",gl=new WeakMap;function Z0(e){Lv()?(vo==="default"&&(xd=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),vo="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(gl.set(e,e.style.userSelect),e.style.userSelect="none")}function Us(e){if(Lv()){if(vo!=="disabled")return;vo="restoring",setTimeout(()=>{Ev(()=>{vo==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=xd||""),xd="",vo="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&gl.has(e)){let t=gl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),gl.delete(e)}}const Mv=O.createContext(null);Mv.displayName="PressResponderContext";function S6(e){let t=p.useContext(Mv);if(t){let{register:r,...n}=t;e=Pe(n,e),r()}return h6(t,e.ref),e}function hp(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...f}=S6(e),g=p.useRef(null);g.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:u};let[b,w]=p.useState(!1),k=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:v}=kv(),P=p.useMemo(()=>{let c=k.current,L=(y,R)=>{let{onPressStart:x,onPressChange:C,isDisabled:j}=g.current;j||c.didFirePressStart||(x&&x({type:"pressstart",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),C&&C(!0),c.didFirePressStart=!0,w(!0))},T=(y,R,x=!0)=>{let{onPressEnd:C,onPressChange:j,onPress:W,isDisabled:B}=g.current;c.didFirePressStart&&(c.ignoreClickAfterPress=!0,c.didFirePressStart=!1,C&&C({type:"pressend",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),j&&j(!1),w(!1),W&&x&&!B&&W({type:"press",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}))},E=(y,R)=>{let{onPressUp:x,isDisabled:C}=g.current;C||x&&x({type:"pressup",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey})},M=y=>{c.isPressed&&(c.isOverTarget&&T(Qt(c.target,y),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Us(c.target))},F={onKeyDown(y){Hc(y.nativeEvent,y.currentTarget)&&y.currentTarget.contains(y.target)?(eg(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),!c.isPressed&&!y.repeat&&(c.target=y.currentTarget,c.isPressed=!0,L(y,"keyboard"),m(document,"keyup",I,!1))):y.key==="Enter"&&wd(y.currentTarget)&&y.stopPropagation()},onKeyUp(y){Hc(y.nativeEvent,y.currentTarget)&&!y.repeat&&y.currentTarget.contains(y.target)&&E(Qt(c.target,y),"keyboard")},onClick(y){y&&!y.currentTarget.contains(y.target)||y&&y.button===0&&(y.stopPropagation(),s&&y.preventDefault(),!c.ignoreClickAfterPress&&!c.ignoreEmulatedMouseEvents&&(c.pointerType==="virtual"||bd(y.nativeEvent))&&(!s&&!a&&$o(y.currentTarget),L(y,"virtual"),E(y,"virtual"),T(y,"virtual")),c.ignoreEmulatedMouseEvents=!1,c.ignoreClickAfterPress=!1)}},I=y=>{if(c.isPressed&&Hc(y,c.target)){eg(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),c.isPressed=!1;let R=y.target;T(Qt(c.target,y),"keyboard",c.target.contains(R)),v(),c.target instanceof HTMLElement&&c.target.contains(R)&&(wd(c.target)||c.target.getAttribute("role")==="link")&&c.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=C=>{if(!(C.button!==0||!C.currentTarget.contains(C.target))){if(w6(C.nativeEvent)){c.pointerType="virtual";return}Wc(C.currentTarget)&&C.preventDefault(),c.pointerType=C.pointerType,C.stopPropagation(),c.isPressed||(c.isPressed=!0,c.isOverTarget=!0,c.activePointerId=C.pointerId,c.target=C.currentTarget,!s&&!a&&$o(C.currentTarget),d||Z0(c.target),L(C,c.pointerType),m(document,"pointermove",y,!1),m(document,"pointerup",R,!1),m(document,"pointercancel",x,!1))}},F.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(Wc(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},F.onPointerUp=C=>{!C.currentTarget.contains(C.target)||c.pointerType==="virtual"||C.button===0&&Rn(C,C.currentTarget)&&E(C,c.pointerType||C.pointerType)};let y=C=>{C.pointerId===c.activePointerId&&(Rn(C,c.target)?c.isOverTarget||(c.isOverTarget=!0,L(Qt(c.target,C),c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(Qt(c.target,C),c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(C)))},R=C=>{C.pointerId===c.activePointerId&&c.isPressed&&C.button===0&&(Rn(C,c.target)?T(Qt(c.target,C),c.pointerType):c.isOverTarget&&T(Qt(c.target,C),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Us(c.target))},x=C=>{M(C)};F.onDragStart=C=>{C.currentTarget.contains(C.target)&&M(C)}}else{F.onMouseDown=x=>{x.button!==0||!x.currentTarget.contains(x.target)||(Wc(x.currentTarget)&&x.preventDefault(),x.stopPropagation(),!c.ignoreEmulatedMouseEvents&&(c.isPressed=!0,c.isOverTarget=!0,c.target=x.currentTarget,c.pointerType=bd(x.nativeEvent)?"virtual":"mouse",!s&&!a&&$o(x.currentTarget),L(x,c.pointerType),m(document,"mouseup",y,!1)))},F.onMouseEnter=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!0,L(x,c.pointerType)))},F.onMouseLeave=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x)))},F.onMouseUp=x=>{x.currentTarget.contains(x.target)&&!c.ignoreEmulatedMouseEvents&&x.button===0&&E(x,c.pointerType)};let y=x=>{if(x.button===0){if(c.isPressed=!1,v(),c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}Rn(x,c.target)?T(Qt(c.target,x),c.pointerType):c.isOverTarget&&T(Qt(c.target,x),c.pointerType,!1),c.isOverTarget=!1}};F.onTouchStart=x=>{if(!x.currentTarget.contains(x.target))return;x.stopPropagation();let C=P6(x.nativeEvent);C&&(c.activePointerId=C.identifier,c.ignoreEmulatedMouseEvents=!0,c.isOverTarget=!0,c.isPressed=!0,c.target=x.currentTarget,c.pointerType="touch",!s&&!a&&$o(x.currentTarget),d||Z0(c.target),L(x,c.pointerType),m(window,"scroll",R,!0))},F.onTouchMove=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=J0(x.nativeEvent,c.activePointerId);C&&Rn(C,x.currentTarget)?c.isOverTarget||(c.isOverTarget=!0,L(x,c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x))},F.onTouchEnd=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=J0(x.nativeEvent,c.activePointerId);C&&Rn(C,x.currentTarget)?(E(x,c.pointerType),T(x,c.pointerType)):c.isOverTarget&&T(x,c.pointerType,!1),c.isPressed=!1,c.activePointerId=null,c.isOverTarget=!1,c.ignoreEmulatedMouseEvents=!0,d||Us(c.target),v()},F.onTouchCancel=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&M(x))};let R=x=>{c.isPressed&&x.target.contains(c.target)&&M({currentTarget:c.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=x=>{x.currentTarget.contains(x.target)&&M(x)}}return F},[m,s,a,v,d]);return p.useEffect(()=>()=>{d||Us(k.current.target)},[d]),{isPressed:l||b,pressProps:Pe(f,P)}}function wd(e){return e.tagName==="A"&&e.hasAttribute("href")}function Hc(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!Rv(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!wd(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function P6(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function J0(e,t){const r=e.changedTouches;for(let n=0;nt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Rn(e,t){let r=t.getBoundingClientRect(),n=C6(e);return E6(r,n)}function Wc(e){return!(e instanceof HTMLElement)||!e.draggable}function eg(e,t){return e instanceof HTMLInputElement?!Rv(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const k6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Rv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":k6.has(e.type)}let T6=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}};function Fv(e){let t=p.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Vt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var s,l;t.current.isFocused=!1,n.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new T6("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function L6(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return n&&n(a),o&&o(!1),!0},[n,o]),s=Fv(i),l=p.useCallback(a=>{a.target===a.currentTarget&&(r&&r(a),o&&o(!0),s(a))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:null}}}let ni=null,Sd=new Set,tg=!1,gn=!1,Pd=!1;const M6={Tab:!0,Escape:!0};function gp(e,t){for(let r of Sd)r(e,t)}function R6(e){return!(e.metaKey||!Tv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rg(e){gn=!0,R6(e)&&(ni="keyboard",gp("keyboard",e))}function Fn(e){ni="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(gn=!0,gp("pointer",e))}function F6(e){bd(e)&&(gn=!0,ni="virtual")}function I6(e){e.target===window||e.target===document||(!gn&&!Pd&&(ni="virtual",gp("virtual",e)),gn=!1,Pd=!1)}function D6(){gn=!1,Pd=!0}function Cd(){if(typeof window>"u"||tg)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){gn=!0,e.apply(this,arguments)},document.addEventListener("keydown",rg,!0),document.addEventListener("keyup",rg,!0),document.addEventListener("click",F6,!0),window.addEventListener("focus",I6,!0),window.addEventListener("blur",D6,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Fn,!0),document.addEventListener("pointermove",Fn,!0),document.addEventListener("pointerup",Fn,!0)):(document.addEventListener("mousedown",Fn,!0),document.addEventListener("mousemove",Fn,!0),document.addEventListener("mouseup",Fn,!0)),tg=!0}typeof document<"u"&&(document.readyState!=="loading"?Cd():document.addEventListener("DOMContentLoaded",Cd));function mp(){return ni!=="pointer"}function O6(){return ni}function N6(e,t,r){return!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!M6[r.key])}function A6(e,t,r){Cd(),p.useEffect(()=>{let n=(o,i)=>{N6(r==null?void 0:r.isTextInput,o,i)&&e(mp())};return Sd.add(n),()=>{Sd.delete(n)}},t)}function Iv(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),s=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(u),o&&o(!1))},[r,o,i]),l=Fv(s),a=p.useCallback(u=>{i.current.isFocusWithin||(n&&n(u),o&&o(!0),i.current.isFocusWithin=!0,l(u))},[n,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:a,onBlur:s}}}let Zl=!1,Uc=0;function Ed(){Zl=!0,setTimeout(()=>{Zl=!1},50)}function ng(e){e.pointerType==="touch"&&Ed()}function z6(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ng):document.addEventListener("touchend",Ed),Uc++,()=>{Uc--,!(Uc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ng):document.removeEventListener("touchend",Ed))}}function $p(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(z6,[]);let{hoverProps:a,triggerHoverEnd:u}=p.useMemo(()=>{let d=(g,b)=>{if(l.pointerType=b,o||b==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let w=g.currentTarget;l.target=w,t&&t({type:"hoverstart",target:w,pointerType:b}),r&&r(!0),s(!0)},h=(g,b)=>{if(l.pointerType="",l.target=null,b==="touch"||!l.isHovered)return;l.isHovered=!1;let w=g.currentTarget;n&&n({type:"hoverend",target:w,pointerType:b}),r&&r(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=g=>{Zl&&g.pointerType==="mouse"||d(g,g.pointerType)},f.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(f.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!Zl&&d(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:f,triggerHoverEnd:h}},[t,r,n,o,l]);return p.useEffect(()=>{o&&u({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:a,isHovered:i}}const B6=500;function K6(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=B6,accessibilityDescription:s}=e;const l=p.useRef(null);let{addGlobalListener:a,removeGlobalListener:u}=kv(),{pressProps:d}=hp({isDisabled:t,onPressStart(f){if((f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),l.current=null},i),f.pointerType==="touch")){let g=b=>{b.preventDefault()};a(f.target,"contextmenu",g,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),h=m6(o&&!t?s:null);return{longPressProps:Pe(d,h)}}const og={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function j6(e={}){let{style:t,isFocusable:r}=e,[n,o]=p.useState(!1),{focusWithinProps:i}=Iv({isDisabled:!r,onFocusWithinChange:l=>o(l)}),s=p.useMemo(()=>n?t:t?{...og,...t}:og,[n]);return{visuallyHiddenProps:{...i,style:s}}}function _6(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=j6(e);return O.createElement(r,Pe(i,s),t)}function H6(e){return e&&e.__esModule?e.default:e}const ig={top:"top",bottom:"top",left:"left",right:"left"},Jl={top:"bottom",bottom:"top",left:"right",right:"left"},W6={top:"left",left:"top"},kd={top:"height",left:"width"},Vs={};let In=typeof window<"u"&&window.visualViewport;function U6(e){let t=0,r=0,n=0,o=0,i={};if(e.tagName==="BODY"){let a=document.documentElement;var s;t=(s=In==null?void 0:In.width)!==null&&s!==void 0?s:a.clientWidth;var l;r=(l=In==null?void 0:In.height)!==null&&l!==void 0?l:a.clientHeight,i.top=a.scrollTop||e.scrollTop,i.left=a.scrollLeft||e.scrollLeft}else({width:t,height:r,top:n,left:o}=Fo(e)),i.top=e.scrollTop,i.left=e.scrollLeft;return{width:t,height:r,scroll:i,top:n,left:o}}function V6(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function sg(e,t,r,n,o){let i=n.scroll[e],s=n[kd[e]],l=t-o-i,a=t+o-i+r;return l<0?-l:a>s?Math.max(s-a,-l):0}function G6(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function lg(e){if(Vs[e])return Vs[e];let[t,r]=e.split(" "),n=ig[t]||"right",o=W6[n];ig[r]||(r="center");let i=kd[n],s=kd[o];return Vs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},Vs[e]}function Vc(e,t,r,n,o,i,s,l){let{placement:a,crossPlacement:u,axis:d,crossAxis:h,size:f,crossSize:g}=n,b={};b[h]=e[h],u==="center"?b[h]+=(e[g]-r[g])/2:u!==h&&(b[h]+=e[g]-r[g]),b[h]+=i;let w=e[h]+e[g]/2-r[g],k=e[h]+e[g]/2;if(b[h]=Math.min(Math.max(w,b[h]),k),a===d){const m=l?s[f]:t[f];b[Jl[d]]=Math.floor(m-e[d]+o)}else b[d]=Math.floor(e[d]+e[f]+o);return b}function Y6(e,t,r,n,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(r.top+e.top)-(o.top+o.bottom+i)):Math.max(0,n.top+r.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function ag(e,t,r,n,o,i){let{placement:s,axis:l,size:a}=i;return s===l?Math.max(0,r[l]-e[l]-e.scroll[l]+t[l]-n[l]-n[Jl[l]]-o):Math.max(0,e[a]+e[l]+e.scroll[l]-t[l]-r[l]-r[a]-n[l]-n[Jl[l]]-o)}function X6(e,t,r,n,o,i,s,l,a,u,d,h,f){let g=lg(e),{size:b,crossAxis:w,crossSize:k,placement:m,crossPlacement:v}=g,P=Vc(t,l,r,g,u,d,a,h),c=u,L=ag(l,a,t,o,i+u,g);if(s&&n[b]>L){let F=lg(`${Jl[m]} ${v}`),I=Vc(t,l,r,F,u,d,a,h);ag(l,a,t,o,i+u,F)>L&&(g=F,P=I,c=u)}let T=sg(w,P[w],r[k],l,i);P[w]+=T;let E=Y6(P,l,a,t,o,i);f&&f{if(!r)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let l=n||Dv.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let Dn=typeof window<"u"&&window.visualViewport;function Z6(e){let{direction:t}=xv(),{targetRef:r,overlayRef:n,scrollRef:o=n,placement:i="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:a=typeof document<"u"?document.body:null,offset:u=0,crossOffset:d=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:g,maxHeight:b}=e,[w,k]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),m=[h,i,n.current,r.current,o.current,s,l,a,u,d,f,t,b],v=p.useCallback(()=>{h===!1||!f||!n.current||!r.current||!o.current||!a||k(Q6({placement:eP(i,t),overlayNode:n.current,targetNode:r.current,scrollNode:o.current,padding:s,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:d,maxHeight:b}))},m);Uo(v,m),J6(v);let P=p.useRef(!1);Uo(()=>{let L,T=()=>{P.current=!0,clearTimeout(L),L=setTimeout(()=>{P.current=!1},500),v()};return Dn==null||Dn.addEventListener("resize",T),()=>{Dn==null||Dn.removeEventListener("resize",T)}},[v]);let c=p.useCallback(()=>{P.current||g()},[g,P]);return q6({triggerRef:r,isOpen:f,onClose:g?c:void 0}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...w.position,maxHeight:w.maxHeight}},placement:w.placement,arrowProps:{style:{left:w.arrowOffsetLeft,top:w.arrowOffsetTop}},updatePosition:v}}function J6(e){Uo(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function eP(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const qt=[];function tP(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;p.useEffect(()=>(o&&qt.push(t),()=>{let b=qt.indexOf(t);b>=0&&qt.splice(b,1)}),[o,t]);let a=()=>{qt[qt.length-1]===t&&r&&r()},u=b=>{(!l||l(b.target))&&qt[qt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!l||l(b.target))&&(qt[qt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),a())},h=b=>{b.key==="Escape"&&!s&&(b.stopPropagation(),b.preventDefault(),a())};o6({ref:t,onInteractOutside:i?d:null,onInteractOutsideStart:u});let{focusWithinProps:f}=n6({isDisabled:!n,onBlurWithin:b=>{(!l||l(b.relatedTarget))&&r()}}),g=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:h,...f},underlayProps:{onPointerDown:g}}}function Ov(e,t,r){let{type:n}=e,{isOpen:o}=t;p.useEffect(()=>{r&&r.current&&Dv.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let s=Cv();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:null,onPress:t.toggle},overlayProps:{id:s}}}const ea=O.createContext(null);function rP(e){let{children:t}=e,r=p.useContext(ea),[n,o]=p.useState(0),i=p.useMemo(()=>({parent:r,modalCount:n,addModal(){o(s=>s+1),r&&r.addModal()},removeModal(){o(s=>s-1),r&&r.removeModal()}}),[r,n]);return O.createElement(ea.Provider,{value:i},t)}function nP(){let e=p.useContext(ea);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function oP(e){let{modalProviderProps:t}=nP();return O.createElement("div",{"data-overlay-container":!0,...e,...t})}function Nv(e){return O.createElement(rP,null,O.createElement(oP,e))}function iP(e){let t=_3(),{portalContainer:r=t?null:document.body,...n}=e;if(O.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let o=O.createElement(Nv,n);return o5.createPortal(o,r)}function sP(e){let t=p.useContext(ea);if(!t)throw new Error("Modal is not contained within a provider");return p.useEffect(()=>{if(!(e!=null&&e.isDisabled||!t||!t.parent))return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,e==null?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(e!=null&&e.isDisabled)}}}var Av={},zv={};zv={dismiss:"تجاهل"};var Bv={};Bv={dismiss:"Отхвърляне"};var Kv={};Kv={dismiss:"Odstranit"};var jv={};jv={dismiss:"Luk"};var _v={};_v={dismiss:"Schließen"};var Hv={};Hv={dismiss:"Απόρριψη"};var Wv={};Wv={dismiss:"Dismiss"};var Uv={};Uv={dismiss:"Descartar"};var Vv={};Vv={dismiss:"Lõpeta"};var Gv={};Gv={dismiss:"Hylkää"};var Yv={};Yv={dismiss:"Rejeter"};var Xv={};Xv={dismiss:"התעלם"};var Qv={};Qv={dismiss:"Odbaci"};var qv={};qv={dismiss:"Elutasítás"};var Zv={};Zv={dismiss:"Ignora"};var Jv={};Jv={dismiss:"閉じる"};var ey={};ey={dismiss:"무시"};var ty={};ty={dismiss:"Atmesti"};var ry={};ry={dismiss:"Nerādīt"};var ny={};ny={dismiss:"Lukk"};var oy={};oy={dismiss:"Negeren"};var iy={};iy={dismiss:"Zignoruj"};var sy={};sy={dismiss:"Descartar"};var ly={};ly={dismiss:"Dispensar"};var ay={};ay={dismiss:"Revocare"};var cy={};cy={dismiss:"Пропустить"};var uy={};uy={dismiss:"Zrušiť"};var dy={};dy={dismiss:"Opusti"};var fy={};fy={dismiss:"Odbaci"};var py={};py={dismiss:"Avvisa"};var hy={};hy={dismiss:"Kapat"};var gy={};gy={dismiss:"Скасувати"};var my={};my={dismiss:"取消"};var $y={};$y={dismiss:"關閉"};Av={"ar-AE":zv,"bg-BG":Bv,"cs-CZ":Kv,"da-DK":jv,"de-DE":_v,"el-GR":Hv,"en-US":Wv,"es-ES":Uv,"et-EE":Vv,"fi-FI":Gv,"fr-FR":Yv,"he-IL":Xv,"hr-HR":Qv,"hu-HU":qv,"it-IT":Zv,"ja-JP":Jv,"ko-KR":ey,"lt-LT":ty,"lv-LV":ry,"nb-NO":ny,"nl-NL":oy,"pl-PL":iy,"pt-BR":sy,"pt-PT":ly,"ro-RO":ay,"ru-RU":cy,"sk-SK":uy,"sl-SI":dy,"sr-SP":fy,"sv-SE":py,"tr-TR":hy,"uk-UA":gy,"zh-CN":my,"zh-TW":$y};function ug(e){let{onDismiss:t,...r}=e,n=wv(H6(Av)),o=H3(r,n.format("dismiss")),i=()=>{t&&t()};return O.createElement(_6,null,O.createElement("button",{...o,tabIndex:-1,onClick:i}))}const lP=O.createContext(null);function aP(){let e=p.useContext(lP);Uo(()=>{e==null||e(!0)},[e])}const Td=(e,t,r=1)=>{if(typeof document>"u"||!e)return"";let n=getComputedStyle(document.documentElement);const o=`--${an.prefix}-${e}-${t}`,i=n.getPropertyValue(o);if(i&&i.includes("var")&&Td(e,i),i&&r!==1){if(i.includes("rgb"))return K4(i,r);if(i.includes("#"))return hv(i,r)}return i},cP=()=>{const e=[...Object.keys(an.theme.colors),...Object.keys(Ro.colors)],t=Object.keys(Ro.shadows);return{colors:e.reduce((r,n)=>{const o=Td("colors",n);return o&&(r[n]={prefix:an.prefix,scale:"colors",token:n,value:o}),r},{}),shadows:t.reduce((r,n)=>{const o=Td("shadows",n);return o&&(r[n]={prefix:an.prefix,scale:"shadows",token:n,value:o}),r},{})}},uP=e=>{var t;const r=(e==null||(t=e.getAttribute("style"))==null?void 0:t.split(";").map(o=>o.trim()).filter(o=>o.includes("color-scheme")))||[],n=r.length>0?r[0].replace("color-scheme: ","").replace(";",""):"";return(e==null?void 0:e.getAttribute("data-theme"))||n},Ld=e=>typeof e=="string"&&e!=null&&e.includes("-theme")?e==null?void 0:e.replace("-theme",""):e,dP=e=>{var t,r;if(!document)return;const n=document.documentElement,o=(n==null||(t=n.getAttribute("class"))==null?void 0:t.split(" ").filter(l=>!l.includes("theme")&&!l.includes("light")&&!l.includes("dark")))||[],i=(n==null||(r=n.getAttribute("style"))==null?void 0:r.split(";").filter(l=>!l.includes("color-scheme")&&l.length).map(l=>`${l};`))||[],s=Ld(e);n==null||n.setAttribute("class",ce(o,`${s}-theme`)),n==null||n.setAttribute("style",ce(i,`color-scheme: ${s};`))},fP=ot(({theme:e,disableBaseline:t,children:r})=>{const{isBrowser:n}=mv(),[o,i]=p.useState(hd.type),s=u=>{i(d=>d!==u?u:d)},l=u=>{const d=uP(u);d&&s(d)},a=p.useMemo(()=>{const u=n?cP():{},d=ip(g3(hd.theme),u),h=Ld(o);return{theme:d,type:h,isDark:h==="dark"}},[o,n]);return p.useEffect(()=>{var u,d,h;l((u=document)==null?void 0:u.documentElement);const f=new MutationObserver(g=>{var b;if(g&&g.length>0&&((b=g[0])==null?void 0:b.target.nodeName)==="BODY"){var w,k,m;const P=(w=document)==null||(k=w.body)==null||(m=k.dataset)==null?void 0:m.theme;P&&s(P)}else{var v;l((v=document)==null?void 0:v.documentElement)}});return f.observe((d=document)==null?void 0:d.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),f.observe((h=document)==null?void 0:h.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>f.disconnect()},[]),p.useEffect(()=>{n&&e&&e!=null&&e.className&&(dP(e.className),s(Ld(e.className)))},[n,e]),S.jsx(C3,{children:S.jsx(Nv,{children:S.jsxs(i3.Provider,{value:a,children:[!t&&S.jsx(yv,{}),r]})})})},{disableBaseline:!1}),vy=Pn({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}),Pa=Pn({outline:"none",variants:{isFocusVisible:{true:{boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{}}}});Pn({transform:"translateZ(0)",backfaceVisibility:"hidden"});const pP=Pn({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),hP=Pn({variants:{hideIn:{xs:{"@xsMax":{display:"none"}},sm:{"@smMax":{display:"none"}},md:{"@mdMax":{display:"none"}},lg:{"@lgMax":{display:"none"}},xl:{"@xlMax":{display:"none"}}}}}),gP=Pn({variants:{showIn:{xs:{"@xs":{display:"none"}},sm:{"@sm":{display:"none"}},md:{"@md":{display:"none"}},lg:{"@lg":{display:"none"}},xl:{"@xl":{display:"none"}}}}}),mP=Pn(hP,gP);function $P(e){if(O6()==="virtual"){let t=document.activeElement;Ev(()=>{document.activeElement===t&&document.contains(e)&&$o(e)})}else $o(e)}function vP(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,n=t!=="none"&&r!=="hidden"&&r!=="collapse";if(n){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);n=i!=="none"&&s!=="hidden"&&s!=="collapse"}return n}function yP(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function yy(e,t){return e.nodeName!=="#comment"&&vP(e)&&yP(e,t)&&(!e.parentElement||yy(e.parentElement,e))}const dg=O.createContext(null);let Ue=null,Io=new Map;function bP(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=p.useRef(),s=p.useRef(),l=p.useRef([]),a=p.useContext(dg),u=a==null?void 0:a.scopeRef;Vt(()=>{let h=i.current.nextSibling,f=[];for(;h&&h!==s.current;)f.push(h),h=h.nextSibling;l.current=f},[t,u]),Vt(()=>(Io.set(l,u),()=>{(l===Ue||Ca(l,Ue))&&(!u||Io.has(u))&&(Ue=u),Io.delete(l)}),[l,u]),PP(l,r),kP(l,n,r),EP(l,o);let d=xP(l);return O.createElement(dg.Provider,{value:{scopeRef:l,focusManager:d}},O.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,O.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function xP(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t,l=n||document.activeElement,a=r[0].previousElementSibling,u=en(yo(r),{tabbable:o,accept:s},r);u.currentNode=It(l,r)?l:a;let d=u.nextNode();return!d&&i&&(u.currentNode=a,d=u.nextNode()),d&&ar(d,!0),d},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t,l=n||document.activeElement,a=r[r.length-1].nextElementSibling,u=en(yo(r),{tabbable:o,accept:s},r);u.currentNode=It(l,r)?l:a;let d=u.previousNode();return!d&&i&&(u.currentNode=a,d=u.previousNode()),d&&ar(d,!0),d},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=en(yo(r),{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let s=i.nextNode();return s&&ar(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=en(yo(r),{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let s=i.previousNode();return s&&ar(s,!0),s}}}const vp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],wP=vp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const SP=vp.join(':not([hidden]):not([tabindex="-1"]),');function yo(e){return e[0].parentElement}function PP(e,t){let r=p.useRef(),n=p.useRef(null);Vt(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=null);return}let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||e!==Ue)return;let u=document.activeElement,d=e.current;if(!It(u,d))return;let h=en(yo(d),{tabbable:!0},d);h.currentNode=u;let f=a.shiftKey?h.previousNode():h.nextNode();f||(h.currentNode=a.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,f=a.shiftKey?h.previousNode():h.nextNode()),a.preventDefault(),f&&ar(f,!0)},s=a=>{!Ue||Ca(Ue,e)?(Ue=e,r.current=a.target):e===Ue&&!fg(a.target,e)?r.current?r.current.focus():Ue&&by(Ue.current):e===Ue&&(r.current=a.target)},l=a=>{n.current=requestAnimationFrame(()=>{e===Ue&&!fg(document.activeElement,e)&&(Ue=e,r.current=a.target,r.current.focus())})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),o.forEach(a=>a.addEventListener("focusin",s,!1)),o.forEach(a=>a.addEventListener("focusout",l,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),o.forEach(a=>a.removeEventListener("focusin",s,!1)),o.forEach(a=>a.removeEventListener("focusout",l,!1))}},[e,t]),p.useEffect(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function CP(e){for(let t of Io.keys())if(It(e,t.current))return!0;return!1}function It(e,t){return t.some(r=>r.contains(e))}function fg(e,t){for(let r of Io.keys())if((r===t||Ca(t,r))&&It(e,r.current))return!0;return!1}function Ca(e,t){let r=Io.get(t);return r?r===e?!0:Ca(e,r):!1}function ar(e,t=!1){if(e!=null&&!t)try{$P(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function by(e){let t=e[0].previousElementSibling,r=en(yo(e),{tabbable:!0},e);r.currentNode=t,ar(r.nextNode())}function EP(e,t){const r=O.useRef(t);p.useEffect(()=>{r.current&&(Ue=e,It(document.activeElement,Ue.current)||by(e.current)),r.current=!1},[])}function kP(e,t,r){const n=p.useRef(typeof document<"u"?document.activeElement:null);Vt(()=>{let o=n.current;if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey)return;let l=document.activeElement;if(!It(l,e.current))return;let a=en(document.body,{tabbable:!0});a.currentNode=l;let u=s.shiftKey?a.previousNode():a.nextNode();if((!document.body.contains(o)||o===document.body)&&(o=null),(!u||!It(u,e.current))&&o){a.currentNode=o;do u=s.shiftKey?a.previousNode():a.nextNode();while(It(u,e.current));s.preventDefault(),s.stopPropagation(),u?ar(u,!0):CP(o)?ar(o,!0):l.blur()}};return r||document.addEventListener("keydown",i,!0),()=>{r||document.removeEventListener("keydown",i,!0),t&&o&&It(document.activeElement,e.current)&&requestAnimationFrame(()=>{document.body.contains(o)&&document.activeElement===document.body&&ar(o)})}},[e,t,r])}function en(e,t,r){let n=t!=null&&t.tabbable?SP:wP,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&yy(i)&&(!r||It(i,r))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Ea(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||mp()}),[i,s]=p.useState(!1),[l,a]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),d=p.useCallback(g=>{o.current.isFocused=g,s(g),u()},[u]);A6(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:r});let{focusProps:h}=L6({isDisabled:n,onFocusChange:d}),{focusWithinProps:f}=Iv({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:o.current.isFocused&&l,focusProps:n?f:h}}function oi(e){const t=p.useRef(null);return p.useImperativeHandle(e,()=>t.current),t}function TP(e,t){p.useLayoutEffect(()=>{if(e&&e.ref&&t&&t.current)return e.ref.current=t.current,()=>{var r;(r=e.ref)!=null&&r.current&&(e.ref.current=null)}},[e,t])}const xy=typeof window<"u"?O.useLayoutEffect:()=>{};let pg=new Map;function LP(e,t){if(e===t)return e;let r=pg.get(e);if(r)return r(t),t;let n=pg.get(t);return n?(n(e),e):t}function MP(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function Vo(...e){let t={...e[0]};for(let r=1;r=65&&o.charCodeAt(2)<=90?t[o]=MP(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=xe(i,s):o==="id"&&i&&s?t.id=LP(i,s):t[o]=s!==void 0?s:i}}return t}const RP=new Set(["id"]),FP=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),IP=/^(data-.*)$/;function DP(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(RP.has(i)||r&&FP.has(i)||n!=null&&n.has(i)||IP.test(i))&&(o[i]=e[i]);return o}function bo(e){if(OP())e.focus({preventScroll:!0});else{let t=NP(e);e.focus(),AP(t)}}let Gs=null;function OP(){if(Gs==null){Gs=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Gs=!0,!0}})}catch{}}return Gs}function NP(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight"u")return;let e=r=>{let n=Qn.get(r.target);n||(n=new Set,Qn.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Qn.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Qn.delete(r.target)),Qn.size===0)){for(let o of Md)o();Md.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?hg():document.addEventListener("DOMContentLoaded",hg));function wy(e){requestAnimationFrame(()=>{Qn.size===0?e():Md.add(e)})}function zP(){let e=p.useRef(new Map),t=p.useCallback((o,i,s,l)=>{let a=l!=null&&l.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:a,options:l}),o.addEventListener(i,s,l)},[]),r=p.useCallback((o,i,s,l)=>{var a;let u=((a=e.current.get(s))===null||a===void 0?void 0:a.fn)||s;o.removeEventListener(i,u,l),e.current.delete(s)},[]),n=p.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Sy(e,t){xy(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function BP(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function yp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Py(){return yp(/^Mac/i)}function KP(){return yp(/^iPhone/i)}function jP(){return yp(/^iPad/i)||Py()&&navigator.maxTouchPoints>1}function Cy(){return KP()||jP()}function _P(){return BP(/Android/i)}function Rd(e){return e.mozInputSource===0&&e.isTrusted?!0:_P()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function HP(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let xo="default",Fd="",ml=new WeakMap;function gg(e){Cy()?(xo==="default"&&(Fd=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),xo="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(ml.set(e,e.style.userSelect),e.style.userSelect="none")}function Ys(e){if(Cy()){if(xo!=="disabled")return;xo="restoring",setTimeout(()=>{wy(()=>{xo==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Fd||""),Fd="",xo="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ml.has(e)){let t=ml.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ml.delete(e)}}const Ey=O.createContext(null);Ey.displayName="PressResponderContext";function WP(e){let t=p.useContext(Ey);if(t){let{register:r,...n}=t;e=Vo(n,e),r()}return Sy(t,e.ref),e}function UP(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...f}=WP(e),g=p.useRef(null);g.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:u};let[b,w]=p.useState(!1),k=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:v}=zP(),P=p.useMemo(()=>{let c=k.current,L=(y,R)=>{let{onPressStart:x,onPressChange:C,isDisabled:j}=g.current;j||c.didFirePressStart||(x&&x({type:"pressstart",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),C&&C(!0),c.didFirePressStart=!0,w(!0))},T=(y,R,x=!0)=>{let{onPressEnd:C,onPressChange:j,onPress:W,isDisabled:B}=g.current;c.didFirePressStart&&(c.ignoreClickAfterPress=!0,c.didFirePressStart=!1,C&&C({type:"pressend",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),j&&j(!1),w(!1),W&&x&&!B&&W({type:"press",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}))},E=(y,R)=>{let{onPressUp:x,isDisabled:C}=g.current;C||x&&x({type:"pressup",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey})},M=y=>{c.isPressed&&(c.isOverTarget&&T(Zt(c.target,y),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Ys(c.target))},F={onKeyDown(y){Gc(y.nativeEvent,y.currentTarget)&&y.currentTarget.contains(y.target)?($g(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),!c.isPressed&&!y.repeat&&(c.target=y.currentTarget,c.isPressed=!0,L(y,"keyboard"),m(document,"keyup",I,!1))):y.key==="Enter"&&Id(y.currentTarget)&&y.stopPropagation()},onKeyUp(y){Gc(y.nativeEvent,y.currentTarget)&&!y.repeat&&y.currentTarget.contains(y.target)&&E(Zt(c.target,y),"keyboard")},onClick(y){y&&!y.currentTarget.contains(y.target)||y&&y.button===0&&(y.stopPropagation(),s&&y.preventDefault(),!c.ignoreClickAfterPress&&!c.ignoreEmulatedMouseEvents&&(c.pointerType==="virtual"||Rd(y.nativeEvent))&&(!s&&!a&&bo(y.currentTarget),L(y,"virtual"),E(y,"virtual"),T(y,"virtual")),c.ignoreEmulatedMouseEvents=!1,c.ignoreClickAfterPress=!1)}},I=y=>{if(c.isPressed&&Gc(y,c.target)){$g(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),c.isPressed=!1;let R=y.target;T(Zt(c.target,y),"keyboard",c.target.contains(R)),v(),c.target instanceof HTMLElement&&c.target.contains(R)&&(Id(c.target)||c.target.getAttribute("role")==="link")&&c.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=C=>{if(!(C.button!==0||!C.currentTarget.contains(C.target))){if(HP(C.nativeEvent)){c.pointerType="virtual";return}Yc(C.currentTarget)&&C.preventDefault(),c.pointerType=C.pointerType,C.stopPropagation(),c.isPressed||(c.isPressed=!0,c.isOverTarget=!0,c.activePointerId=C.pointerId,c.target=C.currentTarget,!s&&!a&&bo(C.currentTarget),d||gg(c.target),L(C,c.pointerType),m(document,"pointermove",y,!1),m(document,"pointerup",R,!1),m(document,"pointercancel",x,!1))}},F.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(Yc(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},F.onPointerUp=C=>{!C.currentTarget.contains(C.target)||c.pointerType==="virtual"||C.button===0&&On(C,C.currentTarget)&&E(C,c.pointerType||C.pointerType)};let y=C=>{C.pointerId===c.activePointerId&&(On(C,c.target)?c.isOverTarget||(c.isOverTarget=!0,L(Zt(c.target,C),c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(Zt(c.target,C),c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(C)))},R=C=>{C.pointerId===c.activePointerId&&c.isPressed&&C.button===0&&(On(C,c.target)?T(Zt(c.target,C),c.pointerType):c.isOverTarget&&T(Zt(c.target,C),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Ys(c.target))},x=C=>{M(C)};F.onDragStart=C=>{C.currentTarget.contains(C.target)&&M(C)}}else{F.onMouseDown=x=>{x.button!==0||!x.currentTarget.contains(x.target)||(Yc(x.currentTarget)&&x.preventDefault(),x.stopPropagation(),!c.ignoreEmulatedMouseEvents&&(c.isPressed=!0,c.isOverTarget=!0,c.target=x.currentTarget,c.pointerType=Rd(x.nativeEvent)?"virtual":"mouse",!s&&!a&&bo(x.currentTarget),L(x,c.pointerType),m(document,"mouseup",y,!1)))},F.onMouseEnter=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!0,L(x,c.pointerType)))},F.onMouseLeave=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x)))},F.onMouseUp=x=>{x.currentTarget.contains(x.target)&&!c.ignoreEmulatedMouseEvents&&x.button===0&&E(x,c.pointerType)};let y=x=>{if(x.button===0){if(c.isPressed=!1,v(),c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}On(x,c.target)?T(Zt(c.target,x),c.pointerType):c.isOverTarget&&T(Zt(c.target,x),c.pointerType,!1),c.isOverTarget=!1}};F.onTouchStart=x=>{if(!x.currentTarget.contains(x.target))return;x.stopPropagation();let C=VP(x.nativeEvent);C&&(c.activePointerId=C.identifier,c.ignoreEmulatedMouseEvents=!0,c.isOverTarget=!0,c.isPressed=!0,c.target=x.currentTarget,c.pointerType="touch",!s&&!a&&bo(x.currentTarget),d||gg(c.target),L(x,c.pointerType),m(window,"scroll",R,!0))},F.onTouchMove=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=mg(x.nativeEvent,c.activePointerId);C&&On(C,x.currentTarget)?c.isOverTarget||(c.isOverTarget=!0,L(x,c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x))},F.onTouchEnd=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=mg(x.nativeEvent,c.activePointerId);C&&On(C,x.currentTarget)?(E(x,c.pointerType),T(x,c.pointerType)):c.isOverTarget&&T(x,c.pointerType,!1),c.isPressed=!1,c.activePointerId=null,c.isOverTarget=!1,c.ignoreEmulatedMouseEvents=!0,d||Ys(c.target),v()},F.onTouchCancel=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&M(x))};let R=x=>{c.isPressed&&x.target.contains(c.target)&&M({currentTarget:c.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=x=>{x.currentTarget.contains(x.target)&&M(x)}}return F},[m,s,a,v,d]);return p.useEffect(()=>()=>{d||Ys(k.current.target)},[d]),{isPressed:l||b,pressProps:Vo(f,P)}}function Id(e){return e.tagName==="A"&&e.hasAttribute("href")}function Gc(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!ky(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!Id(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function VP(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function mg(e,t){const r=e.changedTouches;for(let n=0;nt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function On(e,t){let r=t.getBoundingClientRect(),n=GP(e);return YP(r,n)}function Yc(e){return!(e instanceof HTMLElement)||!e.draggable}function $g(e,t){return e instanceof HTMLInputElement?!ky(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const XP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ky(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":XP.has(e.type)}let QP=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}};function qP(e){let t=p.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,xy(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var s,l;t.current.isFocused=!1,n.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new QP("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function ZP(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return n&&n(a),o&&o(!1),!0},[n,o]),s=qP(i),l=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(r&&r(a),o&&o(!0),s(a))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}let gs=null,JP=new Set,vg=!1,mn=!1,Dd=!1;function bp(e,t){for(let r of JP)r(e,t)}function e7(e){return!(e.metaKey||!Py()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yg(e){mn=!0,e7(e)&&(gs="keyboard",bp("keyboard",e))}function Nn(e){gs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(mn=!0,bp("pointer",e))}function t7(e){Rd(e)&&(mn=!0,gs="virtual")}function r7(e){e.target===window||e.target===document||(!mn&&!Dd&&(gs="virtual",bp("virtual",e)),mn=!1,Dd=!1)}function n7(){mn=!1,Dd=!0}function bg(){if(typeof window>"u"||vg)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){mn=!0,e.apply(this,arguments)},document.addEventListener("keydown",yg,!0),document.addEventListener("keyup",yg,!0),document.addEventListener("click",t7,!0),window.addEventListener("focus",r7,!0),window.addEventListener("blur",n7,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Nn,!0),document.addEventListener("pointermove",Nn,!0),document.addEventListener("pointerup",Nn,!0)):(document.addEventListener("mousedown",Nn,!0),document.addEventListener("mousemove",Nn,!0),document.addEventListener("mouseup",Nn,!0)),vg=!0}typeof document<"u"&&(document.readyState!=="loading"?bg():document.addEventListener("DOMContentLoaded",bg));function o7(){return gs}function xg(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function i7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:xg(e.onKeyDown),onKeyUp:xg(e.onKeyUp)}}}function s7(e){if(o7()==="virtual"){let t=document.activeElement;wy(()=>{document.activeElement===t&&document.contains(e)&&bo(e)})}else bo(e)}function l7(e,t){return t.some(r=>r.contains(e))}let a7=class Ty{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new wg({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&l7(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new Ty;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Pt(this,"fastMap",new Map),this.root=new wg({scopeRef:null}),this.fastMap.set(null,this.root)}},wg=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Pt(this,"children",new Set),Pt(this,"contain",!1),this.scopeRef=t.scopeRef}};new a7;let c7=O.createContext(null);function u7(e){let t=p.useContext(c7)||{};Sy(t,e);let{ref:r,...n}=t;return n}function d7(e,t){let{focusProps:r}=ZP(e),{keyboardProps:n}=i7(e),o=Vo(r,n),i=u7(t),s=e.isDisabled?{}:i,l=p.useRef(e.autoFocus);return p.useEffect(()=>{l.current&&t.current&&s7(t.current),l.current=!1},[t]),{focusableProps:Vo({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Ly(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressChange:l,preventFocusOnPress:a,allowFocusWhenDisabled:u,onClick:d,href:h,target:f,rel:g,type:b="button"}=e,w;r==="button"?w={type:b,disabled:n}:w={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:h,target:r==="a"?f:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:k,isPressed:m}=UP({onPressStart:i,onPressEnd:s,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:a,ref:t}),{focusableProps:v}=d7(e,t);u&&(v.tabIndex=n?-1:v.tabIndex);let P=Vo(v,k,DP(e,{labelable:!0}));return{isPressed:m,buttonProps:Vo(w,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:c=>{d&&(d(c),console.warn("onClick is deprecated, please use onPress"))}})}}function My(e){return p.forwardRef(e)}const f7=(e,t)=>{var r,n,o,i,s,l,a,u,d,h,f;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:(r=t.bordered)!=null?r:e.bordered,borderWeight:(n=t.borderWeight)!=null?n:e.borderWeight,ghost:(o=t.ghost)!=null?o:e.ghost,ripple:(i=t.ripple)!=null?i:e.ripple,flat:(s=t.flat)!=null?s:e.flat,animated:(l=t.animated)!=null?l:e.animated,rounded:(a=t.rounded)!=null?a:e.rounded,light:(u=t.light)!=null?u:e.light,size:(d=t.size)!=null?d:e.size,color:(h=t.color)!=null?h:e.color,disabled:(f=t.disabled)!=null?f:e.disabled}:e},p7=e=>{if(!e.disabled)return e.auto&&e.color==="gradient"&&(e.bordered||e.ghost)?{px:"$$buttonBorderWeight",py:"$$buttonBorderWeight"}:{};const t={bg:"$accents1",color:"$accents7",transform:"none",boxShadow:"none",pe:"none"};return e.bordered||e.flat||e.ghost||e.light?e.color==="gradient"&&(e.bordered||e.ghost)?{color:"$accents4",backgroundImage:"linear-gradient($background, $background), linear-gradient($accents2, $accents2)",transform:"none",boxShadow:"none",pe:"none",pl:"$$buttonBorderWeight",pr:"$$buttonBorderWeight"}:e.bordered||e.ghost||e.light?{...t,bg:"transparent",borderColor:"$accents4"}:e.flat?{...t,bg:"$accents1"}:void 0:t},h7={isButtonGroup:!1,disabled:!1},Ry=O.createContext(h7),g7=()=>O.useContext(Ry),m7=U("span",{dflex:"center",position:"absolute",left:"$$buttonPadding",right:"auto",top:"50%",transform:"translateY(-50%)",color:"inherit",zIndex:"$1","& svg":{background:"transparent"},variants:{isAuto:{true:{position:"relative",transform:"none",top:"0%"}},isRight:{true:{right:"$$buttonPadding",left:"auto"}},isSingle:{true:{position:"static",transform:"none"}},isGradientButtonBorder:{true:{}}},compoundVariants:[{isAuto:!0,isRight:!0,isSingle:!1,css:{order:2,ml:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isAuto:!0,isRight:!1,isSingle:!1,css:{order:0,mr:"calc($$buttonPadding / 2)",right:"0%",left:"0%"}},{isSingle:!0,isRight:!1,css:{ml:0}},{isSingle:!0,isRight:!0,css:{mr:0}},{isSingle:!0,isRight:!1,isGradientButtonBorder:!0,css:{mr:"calc($$buttonPadding / 2)"}}]}),Fy=({children:e,className:t,css:r,...n})=>S.jsx(m7,{className:ce("nextui-button-icon",{"nextui-button-icon-right":n.isRight,"nextui-button-icon-single":n.isSingle},t),css:r,...n,children:e});Fy.toString=()=>".nextui-button-icon";const $7=O.memo(Fy),Sg=ot($7,{className:""}),v7=U("button",{$$buttonBorderRadius:"$radii$md",$$buttonPressedScale:.97,dflex:"center",appearance:"none",boxSizing:"border-box",fontWeight:"$medium",us:"none",lineHeight:"$sm",ta:"center",whiteSpace:"nowrap",transition:"$button",position:"relative",overflow:"hidden",border:"none",cursor:"pointer",pe:"auto",p:0,br:"$$buttonBorderRadius","@motion":{transition:"none"},".nextui-button-text":{dflex:"center",zIndex:"$2","p, pre, div":{margin:0}},[`& ${he}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents2"}},variants:{bordered:{true:{bg:"transparent",borderStyle:"solid",color:"$text"}},ghost:{true:{}},color:{default:{bg:"$primary",color:"$primarySolidContrast"},primary:{bg:"$primary",color:"$primarySolidContrast"},secondary:{bg:"$secondary",color:"$secondarySolidContrast"},success:{bg:"$success",color:"$successSolidContrast"},warning:{bg:"$warning",color:"$warningSolidContrast"},error:{bg:"$error",color:"$errorSolidContrast"},gradient:{bg:"$gradient",color:"$primarySolidContrast"}},size:{xs:{$$buttonPadding:"$space$3",$$buttonBorderRadius:"$radii$xs",$$buttonHeight:"$space$10",px:"$3",height:"$$buttonHeight",lh:"$space$10",width:"auto",minWidth:"$20",fontSize:"$xs"},sm:{$$buttonPadding:"$space$5",$$buttonBorderRadius:"$radii$sm",$$buttonHeight:"$space$12",px:"$5",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$36",fontSize:"$sm"},md:{$$buttonPadding:"$space$7",$$buttonBorderRadius:"$radii$md",$$buttonHeight:"$space$14",px:"$7",height:"$$buttonHeight",lh:"$space$14",width:"auto",minWidth:"$48",fontSize:"$sm"},lg:{$$buttonPadding:"$space$9",$$buttonBorderRadius:"$radii$base",$$buttonHeight:"$space$16",px:"$9",height:"$$buttonHeight",lh:"$space$15",width:"auto",minWidth:"$60",fontSize:"$md"},xl:{$$buttonPadding:"$space$10",$$buttonBorderRadius:"$radii$xl",$$buttonHeight:"$space$18",px:"$10",height:"$$buttonHeight",lh:"$space$17",width:"auto",minWidth:"$72",fontSize:"$lg"}},borderWeight:{light:{bw:"$light",$$buttonBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$buttonBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$buttonBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$buttonBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$buttonBorderWeight:"$borderWeights$black"}},flat:{true:{color:"$text"}},light:{true:{bg:"transparent",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$accents2"}}}},shadow:{true:{bs:"$sm"}},animated:{false:{transition:"none"}},auto:{true:{width:"auto",minWidth:"min-content"}},rounded:{true:{$$buttonBorderRadius:"$radii$pill"}},isPressed:{true:{}},isHovered:{true:{}},isChildLess:{true:{p:0,width:"$$buttonHeight",height:"$$buttonHeight"}},isFocusVisible:{true:{},false:{}}},compoundVariants:[{isPressed:!0,animated:!0,css:{transform:"scale($$buttonPressedScale)"}},{auto:!0,isChildLess:!1,size:"xs",css:{px:"$5",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"sm",css:{px:"$8",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"md",css:{px:"$9",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"lg",css:{px:"$10",minWidth:"min-content"}},{auto:!0,isChildLess:!1,size:"xl",css:{px:"$11",minWidth:"min-content"}},{shadow:!0,isFocusVisible:!1,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,isFocusVisible:!1,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,isFocusVisible:!1,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,isFocusVisible:!1,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,isFocusVisible:!1,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$primaryLightActive"}}}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$secondaryLightActive"}}}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$warningLightActive"}}}},{light:!0,color:"success",css:{bg:"transparent",color:"$success",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$successLightActive"}}}},{light:!0,color:"error",css:{bg:"transparent",color:"$error",[`& ${he}`]:{".nextui-drip-filler":{opacity:.8,fill:"$errorLightActive"}}}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${he}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${he}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${he}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${he}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${he}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${he}`]:{".nextui-drip-filler":{fill:"$error"}}}},{bordered:!0,color:"gradient",css:{bg:"transparent",color:"$text",padding:"$$buttonBorderWeight",bgClip:"content-box, border-box",borderColor:"$primary",backgroundImage:"linear-gradient($background, $background), $gradient",border:"none",[`& ${he}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{ghost:!0,isHovered:!0,color:"default",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"primary",css:{bg:"$primary",color:"$primarySolidContrast"}},{ghost:!0,isHovered:!0,color:"secondary",css:{bg:"$secondary",color:"$secondarySolidContrast"}},{ghost:!0,isHovered:!0,color:"success",css:{bg:"$success",color:"$successSolidContrast"}},{ghost:!0,isHovered:!0,color:"warning",css:{bg:"$warning",color:"$warningSolidContrast"}},{ghost:!0,isHovered:!0,color:"error",css:{bg:"$error",color:"$errorSolidContrast"}},{ghost:!0,color:"gradient",isHovered:!0,css:{bg:"$gradient",color:"$white"}},{flat:!0,color:"default",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primaryLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondaryLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$successLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warningLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$errorLightContrast",[`& ${he}`]:{".nextui-drip-filler":{opacity:.4,fill:"$error"}}}},{flat:!0,isHovered:!0,color:"default",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"primary",css:{bg:"$primaryLightHover"}},{flat:!0,isHovered:!0,color:"secondary",css:{bg:"$secondaryLightHover"}},{flat:!0,isHovered:!0,color:"success",css:{bg:"$successLightHover"}},{flat:!0,isHovered:!0,color:"warning",css:{bg:"$warningLightHover"}},{flat:!0,isHovered:!0,color:"error",css:{bg:"$errorLightHover"}},{flat:!0,isPressed:!0,color:"default",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"primary",css:{bg:"$primaryLightActive"}},{flat:!0,isPressed:!0,color:"secondary",css:{bg:"$secondaryLightActive"}},{flat:!0,isPressed:!0,color:"success",css:{bg:"$successLightActive"}},{flat:!0,isPressed:!0,color:"warning",css:{bg:"$warningLightActive"}},{flat:!0,isPressed:!0,color:"error",css:{bg:"$errorLightActive"}},{auto:!0,color:"gradient",bordered:!0,css:{".nextui-button-text":{px:"$$buttonPadding"},".nextui-button-icon":{ml:"$$buttonPadding"},".nextui-button-icon-right":{mr:"$$buttonPadding"},".nextui-button-text-left":{pl:0},".nextui-button-text-right":{pr:0}}},{rounded:!0,size:"xs",css:{br:"$pill"}},{rounded:!0,size:"sm",css:{br:"$pill"}},{rounded:!0,size:"md",css:{br:"$pill"}},{rounded:!0,size:"lg",css:{br:"$pill"}},{rounded:!0,size:"xl",css:{br:"$pill"}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,size:"md"}},Pa),Qr=v7,Iy=My((e,t)=>{const{as:r,css:n,iconLeftCss:o,iconRightCss:i,onClick:s,onPress:l,onPressStart:a,onPressEnd:u,onPressChange:d,onPressUp:h,...f}=e,g=g7(),b=f7(f,g),w=p7(b),{flat:k,children:m,disabled:v,animated:P,light:c,ripple:L,bordered:T,auto:E,borderWeight:M,icon:F,iconRight:I,ghost:y,autoFocus:R,className:x,...C}=b,j=Xt=>{P&&L&&W.current&&ue(Xt)},W=oi(t),{buttonProps:B,isPressed:D}=Ly({...f,isDisabled:v,elementType:r,onPress:Xt=>{Xt.pointerType==="keyboard"||Xt.pointerType==="virtual"?j(Xt):typeof window<"u"&&window.event&&j(window.event),s&&(s(Xt),console.warn("onClick is deprecated, please use onPress")),l==null||l(Xt)},onPressStart:a,onPressEnd:u,onPressChange:d,onPressUp:h},W),{hoverProps:K,isHovered:H}=$p({isDisabled:v}),{isFocused:J,isFocusVisible:X,focusProps:Oe}=Ea({autoFocus:R}),{onClick:ue,...Ce}=v3(!1,W),ve=F||I,Et=O.Children.count(m)===0,kt=!!I,mt=p.useMemo(()=>D?"pressed":H?"hovered":v?"disabled":"ready",[v,H,D]),Ss=p.useMemo(()=>kt?i:o,[kt,i,o]);return S.jsxs(Qr,{ref:W,animated:P,as:r,auto:E,borderWeight:M,bordered:T||y,className:ce("nextui-button",`nextui-button--${mt}`,x),css:{...n,...w},"data-state":mt,flat:k,ghost:y,isChildLess:Et,isFocusVisible:X&&!v,isHovered:H||y&&J,isPressed:D,light:c,...Pe(B,Oe,K,C),children:[O.Children.count(m)===0?S.jsx(Sg,{isSingle:!0,css:Ss,isAuto:E,isGradientButtonBorder:e.color==="gradient"&&(T||y),isRight:kt,children:ve}):ve?S.jsxs(S.Fragment,{children:[S.jsx(Sg,{css:Ss,isAuto:E,isGradientButtonBorder:e.color==="gradient"&&(T||y),isRight:kt,isSingle:!1,children:ve}),S.jsx("div",{className:ce("nextui-button-text",{"nextui-button-text-right":kt,"nextui-button-text-left":!kt}),children:m})]}):S.jsx("span",{className:"nextui-button-text",children:m}),S.jsx(w3,{className:"nextui-button-drip",color:"white",...Ce})]})});Iy.toString=()=>".nextui-button";const Do=ot(Iy,{ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,autoFocus:!1,auto:!1,className:"",type:"button"}),y7=U("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${Qr}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${Qr}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${Qr}`]:{"&:not(:first-child)":{btlr:0,bblr:0},"&:not(:last-child)":{btrr:0,bbrr:0}}}},size:{xs:{br:"$xs"},sm:{br:"$sm"},md:{br:"$md"},lg:{br:"$base"},xl:{br:"$xl"}},rounded:{true:{br:"$pill"}},bordered:{true:{bg:"transparent"}},gradient:{true:{pl:0}}},defaultVariants:{vertical:!1},compoundVariants:[{bordered:!0,vertical:!0,css:{[`& ${Qr}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${Qr}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{bordered:!0,vertical:!1,gradient:!0,css:{[`& ${Qr}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0},"&:last-child":{pl:0}}}}]}),b7=y7,Dy=e=>{const{disabled:t,size:r,color:n,bordered:o,ghost:i,light:s,flat:l,shadow:a,auto:u,animated:d,rounded:h,ripple:f,borderWeight:g,children:b,...w}=e,k=p.useMemo(()=>({disabled:t,size:r,color:n,bordered:o,light:s,ghost:i,flat:l,shadow:a,auto:u,borderWeight:g,animated:d,rounded:h,ripple:f,isButtonGroup:!0}),[t,d,r,f,n,o,s,i,l,g]);return S.jsx(Ry.Provider,{value:k,children:S.jsx(b7,{bordered:o||i,gradient:e.color==="gradient",size:r,...w,children:b})})};Dy.toString=()=>".nextui-button-group";const x7=O.memo(Dy),w7=ot(x7,{borderWeight:"normal",size:"md",color:"default"});Do.Group=w7;const Pg=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,S7=U("div",{width:"100%",maxWidth:"100%",position:"relative",variants:{color:{default:{bg:"$border"},primary:{bg:"$primary"},secondary:{bg:"$secondary"},success:{bg:"$success"},warning:{bg:"$warning"},error:{bg:"$error"}}},defaultVariants:{color:"default"}}),P7=U("span",{position:"absolute",left:"50%",top:"50%",minHeight:"100%",display:"inline-flex",jc:"center",ai:"center",transform:"translate(-50%, -50%)",padding:"0 $lg",fontSize:"$base",fontWeight:"bold",textTransform:"capitalize",backgroundColor:"$background",zIndex:"$1",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}}}}),Oy=({height:e,x:t,y:r,align:n,children:o,textColor:i,css:s,...l})=>{const a=p.useMemo(()=>{if(n&&n!=="center")return n==="left"||n==="start"?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}},[n]),u=r?Pg(r/2):0,d=t?Pg(t/2):0;return S.jsx(S7,{css:{margin:`${u} ${d}`,height:`calc(${e} * 1px)`,...s},role:"separator",...l,children:o&&S.jsx(P7,{className:"nextui-divider-text",color:i,css:{...a},children:o})})};Oy.toString=()=>".nextui-divider";const C7=O.memo(Oy),E7=ot(C7,{x:0,y:0,height:1,align:"center"});function Ny(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=p.createContext(void 0);return o.displayName=n,[o.Provider,function i(){const s=p.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",Error.captureStackTrace==null||Error.captureStackTrace(l,i),l}return s},o]}const k7=({children:e,onExited:t,onEntered:r,className:n,childrenRef:o,enterTime:i=60,leaveTime:s=60,clearTime:l=60,visible:a=!1,name:u="transition",...d})=>{const[h,f]=p.useState(""),[g,b]=p.useState(a);return p.useLayoutEffect(()=>{const w=a?"enter":"leave";a&&!g&&b(!0),f(`${u}-${w}`);const k=a?i:s,m=setTimeout(()=>{f(`${u}-${w} ${u}-${w}-active`),w==="leave"?t==null||t():r==null||r(),clearTimeout(m)},k),v=setTimeout(()=>{a||(f(""),b(!1)),clearTimeout(v)},k+l);return()=>{clearTimeout(m),clearTimeout(v)}},[a,g]),p.useEffect(()=>{if(o==null||!o.current)return;const w=h.split(" "),k=o.current.className.split(" ").filter(m=>!m.includes(u));o.current.className=ce(k,w)},[o,h]),O.isValidElement(e)&&g?O.cloneElement(e,{...d,className:ce(e.props.className,n,!(o!=null&&o.current)&&h)}):null},xp=O.memo(k7),Ay=typeof window<"u"?O.useLayoutEffect:()=>{};let Cg=new Map;function T7(e,t){if(e===t)return e;let r=Cg.get(e);if(r)return r(t),t;let n=Cg.get(t);return n?(n(e),e):t}function L7(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function Go(...e){let t={...e[0]};for(let r=1;r=65&&o.charCodeAt(2)<=90?t[o]=L7(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=xe(i,s):o==="id"&&i&&s?t.id=T7(i,s):t[o]=s!==void 0?s:i}}return t}const M7=new Set(["id"]),R7=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),F7=/^(data-.*)$/;function I7(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(M7.has(i)||r&&R7.has(i)||n!=null&&n.has(i)||F7.test(i))&&(o[i]=e[i]);return o}function wo(e){if(D7())e.focus({preventScroll:!0});else{let t=O7(e);e.focus(),N7(t)}}let Xs=null;function D7(){if(Xs==null){Xs=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Xs=!0,!0}})}catch{}}return Xs}function O7(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight"u")return;let e=r=>{let n=qn.get(r.target);n||(n=new Set,qn.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=qn.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),qn.delete(r.target)),qn.size===0)){for(let o of Od)o();Od.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Eg():document.addEventListener("DOMContentLoaded",Eg));function zy(e){requestAnimationFrame(()=>{qn.size===0?e():Od.add(e)})}function A7(){let e=p.useRef(new Map),t=p.useCallback((o,i,s,l)=>{let a=l!=null&&l.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:a,options:l}),o.addEventListener(i,s,l)},[]),r=p.useCallback((o,i,s,l)=>{var a;let u=((a=e.current.get(s))===null||a===void 0?void 0:a.fn)||s;o.removeEventListener(i,u,l),e.current.delete(s)},[]),n=p.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function By(e,t){Ay(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function z7(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function wp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ky(){return wp(/^Mac/i)}function B7(){return wp(/^iPhone/i)}function K7(){return wp(/^iPad/i)||Ky()&&navigator.maxTouchPoints>1}function jy(){return B7()||K7()}function j7(){return z7(/Android/i)}function Nd(e){return e.mozInputSource===0&&e.isTrusted?!0:j7()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function _7(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let So="default",Ad="",$l=new WeakMap;function kg(e){jy()?(So==="default"&&(Ad=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),So="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&($l.set(e,e.style.userSelect),e.style.userSelect="none")}function Qs(e){if(jy()){if(So!=="disabled")return;So="restoring",setTimeout(()=>{zy(()=>{So==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Ad||""),Ad="",So="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&$l.has(e)){let t=$l.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),$l.delete(e)}}const _y=O.createContext(null);_y.displayName="PressResponderContext";function H7(e){let t=p.useContext(_y);if(t){let{register:r,...n}=t;e=Go(n,e),r()}return By(t,e.ref),e}function W7(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...f}=H7(e),g=p.useRef(null);g.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:u};let[b,w]=p.useState(!1),k=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:v}=A7(),P=p.useMemo(()=>{let c=k.current,L=(y,R)=>{let{onPressStart:x,onPressChange:C,isDisabled:j}=g.current;j||c.didFirePressStart||(x&&x({type:"pressstart",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),C&&C(!0),c.didFirePressStart=!0,w(!0))},T=(y,R,x=!0)=>{let{onPressEnd:C,onPressChange:j,onPress:W,isDisabled:B}=g.current;c.didFirePressStart&&(c.ignoreClickAfterPress=!0,c.didFirePressStart=!1,C&&C({type:"pressend",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),j&&j(!1),w(!1),W&&x&&!B&&W({type:"press",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}))},E=(y,R)=>{let{onPressUp:x,isDisabled:C}=g.current;C||x&&x({type:"pressup",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey})},M=y=>{c.isPressed&&(c.isOverTarget&&T(Jt(c.target,y),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Qs(c.target))},F={onKeyDown(y){Xc(y.nativeEvent,y.currentTarget)&&y.currentTarget.contains(y.target)?(Lg(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),!c.isPressed&&!y.repeat&&(c.target=y.currentTarget,c.isPressed=!0,L(y,"keyboard"),m(document,"keyup",I,!1))):y.key==="Enter"&&zd(y.currentTarget)&&y.stopPropagation()},onKeyUp(y){Xc(y.nativeEvent,y.currentTarget)&&!y.repeat&&y.currentTarget.contains(y.target)&&E(Jt(c.target,y),"keyboard")},onClick(y){y&&!y.currentTarget.contains(y.target)||y&&y.button===0&&(y.stopPropagation(),s&&y.preventDefault(),!c.ignoreClickAfterPress&&!c.ignoreEmulatedMouseEvents&&(c.pointerType==="virtual"||Nd(y.nativeEvent))&&(!s&&!a&&wo(y.currentTarget),L(y,"virtual"),E(y,"virtual"),T(y,"virtual")),c.ignoreEmulatedMouseEvents=!1,c.ignoreClickAfterPress=!1)}},I=y=>{if(c.isPressed&&Xc(y,c.target)){Lg(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),c.isPressed=!1;let R=y.target;T(Jt(c.target,y),"keyboard",c.target.contains(R)),v(),c.target instanceof HTMLElement&&c.target.contains(R)&&(zd(c.target)||c.target.getAttribute("role")==="link")&&c.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=C=>{if(!(C.button!==0||!C.currentTarget.contains(C.target))){if(_7(C.nativeEvent)){c.pointerType="virtual";return}Qc(C.currentTarget)&&C.preventDefault(),c.pointerType=C.pointerType,C.stopPropagation(),c.isPressed||(c.isPressed=!0,c.isOverTarget=!0,c.activePointerId=C.pointerId,c.target=C.currentTarget,!s&&!a&&wo(C.currentTarget),d||kg(c.target),L(C,c.pointerType),m(document,"pointermove",y,!1),m(document,"pointerup",R,!1),m(document,"pointercancel",x,!1))}},F.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(Qc(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},F.onPointerUp=C=>{!C.currentTarget.contains(C.target)||c.pointerType==="virtual"||C.button===0&&An(C,C.currentTarget)&&E(C,c.pointerType||C.pointerType)};let y=C=>{C.pointerId===c.activePointerId&&(An(C,c.target)?c.isOverTarget||(c.isOverTarget=!0,L(Jt(c.target,C),c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(Jt(c.target,C),c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(C)))},R=C=>{C.pointerId===c.activePointerId&&c.isPressed&&C.button===0&&(An(C,c.target)?T(Jt(c.target,C),c.pointerType):c.isOverTarget&&T(Jt(c.target,C),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Qs(c.target))},x=C=>{M(C)};F.onDragStart=C=>{C.currentTarget.contains(C.target)&&M(C)}}else{F.onMouseDown=x=>{x.button!==0||!x.currentTarget.contains(x.target)||(Qc(x.currentTarget)&&x.preventDefault(),x.stopPropagation(),!c.ignoreEmulatedMouseEvents&&(c.isPressed=!0,c.isOverTarget=!0,c.target=x.currentTarget,c.pointerType=Nd(x.nativeEvent)?"virtual":"mouse",!s&&!a&&wo(x.currentTarget),L(x,c.pointerType),m(document,"mouseup",y,!1)))},F.onMouseEnter=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!0,L(x,c.pointerType)))},F.onMouseLeave=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x)))},F.onMouseUp=x=>{x.currentTarget.contains(x.target)&&!c.ignoreEmulatedMouseEvents&&x.button===0&&E(x,c.pointerType)};let y=x=>{if(x.button===0){if(c.isPressed=!1,v(),c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}An(x,c.target)?T(Jt(c.target,x),c.pointerType):c.isOverTarget&&T(Jt(c.target,x),c.pointerType,!1),c.isOverTarget=!1}};F.onTouchStart=x=>{if(!x.currentTarget.contains(x.target))return;x.stopPropagation();let C=U7(x.nativeEvent);C&&(c.activePointerId=C.identifier,c.ignoreEmulatedMouseEvents=!0,c.isOverTarget=!0,c.isPressed=!0,c.target=x.currentTarget,c.pointerType="touch",!s&&!a&&wo(x.currentTarget),d||kg(c.target),L(x,c.pointerType),m(window,"scroll",R,!0))},F.onTouchMove=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=Tg(x.nativeEvent,c.activePointerId);C&&An(C,x.currentTarget)?c.isOverTarget||(c.isOverTarget=!0,L(x,c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x))},F.onTouchEnd=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=Tg(x.nativeEvent,c.activePointerId);C&&An(C,x.currentTarget)?(E(x,c.pointerType),T(x,c.pointerType)):c.isOverTarget&&T(x,c.pointerType,!1),c.isPressed=!1,c.activePointerId=null,c.isOverTarget=!1,c.ignoreEmulatedMouseEvents=!0,d||Qs(c.target),v()},F.onTouchCancel=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&M(x))};let R=x=>{c.isPressed&&x.target.contains(c.target)&&M({currentTarget:c.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=x=>{x.currentTarget.contains(x.target)&&M(x)}}return F},[m,s,a,v,d]);return p.useEffect(()=>()=>{d||Qs(k.current.target)},[d]),{isPressed:l||b,pressProps:Go(f,P)}}function zd(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xc(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!Hy(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!zd(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function U7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Tg(e,t){const r=e.changedTouches;for(let n=0;nt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function An(e,t){let r=t.getBoundingClientRect(),n=V7(e);return G7(r,n)}function Qc(e){return!(e instanceof HTMLElement)||!e.draggable}function Lg(e,t){return e instanceof HTMLInputElement?!Hy(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Y7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Hy(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Y7.has(e.type)}class X7{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Q7(e){let t=p.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ay(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var s,l;t.current.isFocused=!1,n.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new X7("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function q7(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return n&&n(a),o&&o(!1),!0},[n,o]),s=Q7(i),l=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(r&&r(a),o&&o(!0),s(a))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}let ms=null,Z7=new Set,Mg=!1,$n=!1,Bd=!1;function Sp(e,t){for(let r of Z7)r(e,t)}function J7(e){return!(e.metaKey||!Ky()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Rg(e){$n=!0,J7(e)&&(ms="keyboard",Sp("keyboard",e))}function zn(e){ms="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($n=!0,Sp("pointer",e))}function eC(e){Nd(e)&&($n=!0,ms="virtual")}function tC(e){e.target===window||e.target===document||(!$n&&!Bd&&(ms="virtual",Sp("virtual",e)),$n=!1,Bd=!1)}function rC(){$n=!1,Bd=!0}function Fg(){if(typeof window>"u"||Mg)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){$n=!0,e.apply(this,arguments)},document.addEventListener("keydown",Rg,!0),document.addEventListener("keyup",Rg,!0),document.addEventListener("click",eC,!0),window.addEventListener("focus",tC,!0),window.addEventListener("blur",rC,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",zn,!0),document.addEventListener("pointermove",zn,!0),document.addEventListener("pointerup",zn,!0)):(document.addEventListener("mousedown",zn,!0),document.addEventListener("mousemove",zn,!0),document.addEventListener("mouseup",zn,!0)),Mg=!0}typeof document<"u"&&(document.readyState!=="loading"?Fg():document.addEventListener("DOMContentLoaded",Fg));function nC(){return ms}function Ig(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function oC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ig(e.onKeyDown),onKeyUp:Ig(e.onKeyUp)}}}function iC(e){if(nC()==="virtual"){let t=document.activeElement;zy(()=>{document.activeElement===t&&document.contains(e)&&wo(e)})}else wo(e)}function sC(e,t){return t.some(r=>r.contains(e))}let lC=class Wy{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new Dg({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&sC(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new Wy;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Pt(this,"fastMap",new Map),this.root=new Dg({scopeRef:null}),this.fastMap.set(null,this.root)}},Dg=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Pt(this,"children",new Set),Pt(this,"contain",!1),this.scopeRef=t.scopeRef}};new lC;let aC=O.createContext(null);function cC(e){let t=p.useContext(aC)||{};By(t,e);let{ref:r,...n}=t;return n}function uC(e,t){let{focusProps:r}=q7(e),{keyboardProps:n}=oC(e),o=Go(r,n),i=cC(t),s=e.isDisabled?{}:i,l=p.useRef(e.autoFocus);return p.useEffect(()=>{l.current&&t.current&&iC(t.current),l.current=!1},[t]),{focusableProps:Go({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function dC(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:s,isDisabled:l,...a}=e,u;r!=="a"&&(u={role:"link",tabIndex:l?void 0:0});let{focusableProps:d}=uC(e,t),{pressProps:h,isPressed:f}=W7({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:l,ref:t}),g=I7(a,{labelable:!0}),b=Go(d,h);return{isPressed:f,linkProps:Go(g,{...b,...u,"aria-disabled":l||void 0,onClick:w=>{h.onClick(w),s&&(s(w),console.warn("onClick is deprecated, please use onPress"))}})}}const fC=U("svg",{ml:"$1",as:"center",display:"flex",color:"currentColor"}),pC=U("a",{$$linkColor:"$colors$link",display:"inline-flex",alignItems:"center",lineHeight:"inherit",textDecoration:"none",width:"$fit",backgroundColor:"transparent",backgroundImage:"inherit",backgroundClip:"inherit",WebkitTextFillColor:"inherit",color:"$$linkColor",outline:"none",maxW:"$max","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{inherit:{$$linkColor:"inherit"},default:{$$linkColor:"$colors$link"},text:{$$linkColor:"$colors$text"},primary:{$$linkColor:"$colors$primary"},secondary:{$$linkColor:"$colors$secondary"},success:{$$linkColor:"$colors$success"},warning:{$$linkColor:"$colors$warning"},error:{$$linkColor:"$colors$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base","&:hover":{backgroundColor:"$$linkBackgroundColor"}}},animated:{true:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s"}}},compoundVariants:[{block:!0,animated:!0,css:{transition:"opacity 0.25s ease 0s, box-shadow 0.25s ease 0s, background 0.25s ease 0s","@motion":{transition:"none"}}}],defaultVariants:{color:"default",animated:!0}},Pa),hC=pC,Uy=()=>S.jsxs(fC,{className:"nextui-link-icon",fill:"none",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",children:[S.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),S.jsx("path",{d:"M15 3h6v6"}),S.jsx("path",{d:"M10 14L21 3"})]});Uy.toString=()=>".nextui-link-icon";const gC=O.memo(Uy),Vy=My((e,t)=>{const{children:r,isExternal:n=!1,as:o,css:i,color:s="default",autoFocus:l,className:a,...u}=e,d=oi(t),{linkProps:h}=dC({...u,elementType:o},d),{isFocusVisible:f,focusProps:g}=Ea({autoFocus:l}),b=p.useMemo(()=>{let w=`$colors$${s}Light`;switch(s){case"inherit":case"text":w="$colors$textLight";break;case"default":w="$colors$linkLight"}return{...i,$$linkBackgroundColor:w}},[i,s]);return S.jsx(hC,{ref:d,as:o,className:ce("nextui-link",a),color:s,css:b,isFocusVisible:f,...Pe(h,g,u),children:S.jsxs(S.Fragment,{children:[r,n&&S.jsx(gC,{})]})})});Vy.toString=()=>".nextui-link";const qc=Vy,mC=nt({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Zc=nt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Jc=nt({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),$C=nt({"0%":{opacity:1},"100%":{opacity:.15}}),vC=U("div",{d:"inline-flex",fd:"column",ai:"center",position:"relative",variants:{color:{currentColor:{$$loadingColor:"currentColor"},white:{$$loadingColor:"$colors$white"},default:{$$loadingColor:"$colors$primary"},primary:{$$loadingColor:"$colors$primary"},secondary:{$$loadingColor:"$colors$secondary"},success:{$$loadingColor:"$colors$success"},warning:{$$loadingColor:"$colors$warning"},error:{$$loadingColor:"$colors$error"}},textColor:{white:{$$loadingTextColor:"$colors$white"},default:{$$loadingTextColor:"$colors$text"},primary:{$$loadingTextColor:"$colors$primary"},secondary:{$$loadingTextColor:"$colors$secondary"},success:{$$loadingTextColor:"$colors$success"},warning:{$$loadingTextColor:"$colors$warning"},error:{$$loadingTextColor:"$colors$error"}}},defaultVariants:{color:"default",textColor:"default"}}),yC=U("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),bC=U("div",{d:"flex",fd:"column",jc:"center",ai:"center",position:"relative",variants:{size:{xs:{size:"$6"},sm:{size:"$8"},md:{size:"$9"},lg:{size:"$11"},xl:{size:"$12"}}}}),xC=U("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${$C} 1.2s linear 0s infinite normal none running`,"&:nth-child(1)":{animationDelay:"-1.2s",transform:"rotate(0deg) translate(146%)"},"&:nth-child(2)":{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},"&:nth-child(3)":{animationDelay:"-1s",transform:"rotate(60deg) translate(146%)"},"&:nth-child(4)":{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},"&:nth-child(5)":{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},"&:nth-child(6)":{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},"&:nth-child(7)":{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},"&:nth-child(8)":{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},"&:nth-child(9)":{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},"&:nth-child(10)":{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},"&:nth-child(11)":{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},"&:nth-child(12)":{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}}),wC=U("span",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",dflex:"center",bgColor:"transparent",us:"none",variants:{size:{xs:{$$loadingSize:"$space$8",$$loadingBorder:"$space$1"},sm:{$$loadingSize:"$space$10",$$loadingBorder:"$space$1"},md:{$$loadingSize:"$space$12",$$loadingBorder:"calc($space$1 * 1.5)"},lg:{$$loadingSize:"$space$15",$$loadingBorder:"$space$2"},xl:{$$loadingSize:"$space$18",$$loadingBorder:"$space$3"}},type:{default:{d:"flex",br:"$rounded",position:"relative",size:"$$loadingSize",i:{top:"0px",size:"100%",position:"absolute",br:"inherit"},"._1":{border:"$$loadingBorder solid $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Zc} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Zc} 0.8s linear infinite`,opacity:.5},"._3":{display:"none"}},points:{d:"flex",position:"relative",transform:"translate(0, calc($$loadingSize * 0.6))",i:{size:"$$loadingSize",margin:"0 3px",bg:"$$loadingColor"},"._1":{br:"$rounded",animation:`${Jc} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Jc} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Jc} 0.75s ease infinite 0.5s`}},"points-opacity":{d:"flex",position:"relative",i:{display:"inline-block",size:"$$loadingSize",br:"$rounded",bg:"$$loadingColor",margin:"0 1px",animation:`${mC} 1.4s infinite both`},"._2":{animationDelay:"0.2s"},"._3":{animationDelay:"0.4s"}},spinner:{},gradient:{display:"flex",position:"relative",size:"$$loadingSize","._1":{position:"absolute",size:"100%",border:"0px",animation:`${Zc} 1s linear infinite`,top:"0px",br:"$rounded",bg:"linear-gradient(0deg, $background 33%,$$loadingColor 100%)"},"._2":{top:"2px",position:"absolute",size:"calc(100% - 4px)",border:"0px",bg:"$background",br:"$rounded"},"._3":{display:"none"}}}},compoundVariants:[{size:"xs",type:"points-opacity",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points-opacity",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points-opacity",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points-opacity",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points-opacity",css:{$$loadingSize:"$space$5"}},{size:"xs",type:"points",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points",css:{$$loadingSize:"$space$5"}}],defaultVariants:{type:"default"}}),Gy=U("label",{mt:"$1",color:"$$loadingTextColor",fontSize:"$$loadingSize","*":{margin:0},variants:{size:{xs:{fontSize:"$space$5",marginTop:"$2"},sm:{fontSize:"$space$6",marginTop:"$3"},md:{fontSize:"$base",marginTop:"$4"},lg:{fontSize:"$space$10",marginTop:"$4"},xl:{fontSize:"$space$11",marginTop:"$5"}}}}),Yy=({children:e,size:t,color:r,textColor:n,className:o,...i})=>{const s=Array.isArray(e)?(e==null?void 0:e.length)>1&&e[0]!==void 0:e!==void 0,l=e&&s?"":"Loading";return S.jsxs(bC,{className:ce("nextui-spinner",o),color:r,size:t,...i,children:[S.jsx(yC,{"aria-label":l,className:"nextui-spinner-container",children:[...new Array(12)].map((a,u)=>S.jsx(xC,{},`nextui-spinner-${u}`))}),e&&S.jsx(Gy,{color:n,size:t,children:e})]})};Yy.toString=()=>".nextui-spinner";const SC=Yy,Xy=({children:e,size:t,gradientBackground:r,loadingCss:n,type:o,...i})=>{const s=e?"":"Loading",l=p.useMemo(()=>{if(o==="gradient")return{"._2":{bg:r}}},[o]);return S.jsx(vC,{...i,children:o==="spinner"?S.jsx(SC,{size:t,children:e}):S.jsxs(S.Fragment,{children:[S.jsxs(wC,{"aria-label":s,className:`nextui-loading nextui-loading-${o}`,css:{...n,...l},size:t,type:o,children:[S.jsx("i",{className:"_1"}),S.jsx("i",{className:"_2"}),S.jsx("i",{className:"_3"})]}),e&&S.jsx(Gy,{className:"nextui-loading-label",size:t,children:e})]})})};Xy.toString=()=>".nextui-loading";const PC=O.memo(Xy),CC=ot(PC,{size:"md",type:"default"}),EC=U("p",{variants:{weight:{hairline:{fontWeight:"$hairline"},thin:{fontWeight:"$thin"},light:{fontWeight:"$light"},normal:{fontWeight:"$normal"},medium:{fontWeight:"$medium"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"},extrabold:{fontWeight:"$extrabold"},black:{fontWeight:"$black"}}}},mP),Qy=O.forwardRef((e,t)=>{const{children:r,tag:n,color:o="default",transform:i,size:s,css:l,...a}=e,u=oi(t),d=p.useMemo(()=>A4(o)?o==="default"?"$text":`$${o}`:o,[o]);return S.jsx(EC,{ref:u,as:n,css:{color:d,fontSize:s,tt:i,...l},...a,children:r})});Qy.toString=()=>".nextui-text-child";const qy=O.memo(Qy),Zy=(e,t,r,n)=>{if(!e.length)return t;const o=e.slice(1,e.length);return S.jsx(qy,{size:r,tag:e[0],transform:n,children:Zy(o,t,r)})},Jy=O.forwardRef((e,t)=>{const{h1:r=!1,h2:n=!1,h3:o=!1,h4:i=!1,h5:s=!1,h6:l=!1,b:a=!1,small:u=!1,i:d=!1,span:h=!1,del:f=!1,em:g=!1,blockquote:b=!1,transform:w="none",size:k,children:m,...v}=e,P=oi(t),c={h1:r,h2:n,h3:o,h4:i,h5:s,h6:l,blockquote:b},L={span:h,small:u,b:a,em:g,i:d,del:f},T=Object.keys(c).filter(y=>c[y]),E=Object.keys(L).filter(y=>L[y]),M=p.useMemo(()=>T[0]?T[0]:E[0]?E[0]:"p",[T,E]),F=E.filter(y=>y!==M),I=p.useMemo(()=>F.length?Zy(F,m,k,w):m,[F,m,k,w]);return S.jsx(qy,{ref:P,size:k,tag:M,transform:w,...v,children:I})});Jy.toString=()=>".nextui-text";const Ge=O.memo(Jy),kC=U("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondarySolidHover"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successSolidHover"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningSolidHover"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorSolidHover"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}}),Ke=U("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"calc(50% - $$switchHeight * 0.35)",left:"0",transition:"transform 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),rr=U("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor","&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${Ke}`]:{bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${Ke}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${Ke}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${Ke}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${Ke}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${Ke}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${Ke}`]:{bg:"$background"}}}]},vy),TC=U("input",{[`& + ${rr} > ${Ke}`]:{transform:"translateX(calc($$switchWidth / 15))"},[`&:checked + ${rr} > ${Ke}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchHeight * 0.7))"},variants:{animated:{true:{[`& + ${rr}:active > ${Ke}`]:{transform:"translateX(calc($$switchWidth / 7.5))"},[`&:checked + ${rr}:active > ${Ke}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchHeight * 0.7))"}}},bordered:{true:{[`& + ${rr} > ${Ke}`]:{transform:"translateX(calc($$switchWidth / 15 - $$switchBorderW / 2))"},[`&:checked + ${rr} > ${Ke}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 15 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}},compoundVariants:[{animated:!0,bordered:!0,css:{[`& + ${rr}:active > ${Ke}`]:{transform:"translateX(calc($$switchWidth / 7.5 - $$switchBorderW / 2))"},[`&:checked + ${rr}:active > ${Ke}`]:{transform:"translateX(calc($$switchWidth - $$switchWidth / 7.5 - $$switchWidth / 10 - $$switchBorderW * 1.5 - $$switchHeight * 0.7))"}}}]},pP),Bn="nextui-switch",eb=({initialChecked:e,checked:t,disabled:r,onChange:n,squared:o,bordered:i,shadow:s,icon:l,iconOn:a,iconOff:u,animated:d,preventDefault:h,name:f,...g})=>{const[b,w]=p.useState(e);l&&p3&&(a||u)&&f3('Remove props "icon" if iconOn or iconOff exists.',"Switch");const k=p.useCallback(c=>{if(r)return;const L={target:{checked:!b},stopPropagation:c.stopPropagation,preventDefault:c.preventDefault,nativeEvent:c};w(!b),n&&n(L)},[r,b,n]),{bindings:m}=ap(c=>{k(c)},[Wo.Enter,Wo.Space],{disableGlobalEvent:!0,preventDefault:h}),v=p.useMemo(()=>{const c=l||a||u;return c?!!a&&b?a:!!u&&!b?u:c:null},[b,l,a,u]);p.useEffect(()=>{t!==void 0&&w(t)},[t]);const P=p.useMemo(()=>b?"checked":"unchecked",[b]);return S.jsxs(kC,{animated:d,"data-state":P,disabled:r,...g,children:[S.jsx(TC,{animated:d,bordered:i,checked:b,className:ce(`${Bn}-input`),"data-state":P,disabled:r,tabIndex:-1,type:"checkbox",onChange:k,name:f}),S.jsx(rr,{animated:d,"aria-checked":b,"aria-disabled":r,bordered:i,checked:b,className:ce(Bn,`${Bn}--${P}`,{[`${Bn}-checked`]:b,[`${Bn}-disabled`]:r}),"data-state":P,disabled:r,role:"switch",shadow:s,squared:o,tabIndex:r?-1:0,...m,children:S.jsx(Ke,{className:`${Bn}-circle`,children:v})})]})};eb.toString=()=>".nextui-switch";const LC=O.memo(eb),MC=ot(LC,{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),RC=nt({"0%":{opacity:0},"60%":{opacity:.75},"100%":{opacity:1}}),eu=nt({"0%":{opacity:0}}),FC=nt({"0%":{backdropFilter:"saturate(0%) blur(0)"}}),tb=U("div",{position:"relative",display:"inline-block",zIndex:"$max",outline:"none",width:"100%",margin:"$9 auto",verticalAlign:"middle","@sm":{width:"90%",maxWidth:"90%"},variants:{animated:{true:{"&":{animationName:RC,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"}},false:{transition:"none"}}}}),rb=U("div",{position:"fixed",top:0,left:0,right:0,bottom:0,size:"100%",pe:"none",zIndex:"$max","@motion":{transition:"none"},variants:{blur:{true:{bg:"$black",opacity:"$$backdropOpacity","@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))":{opacity:1,backdropFilter:"saturate(180%) blur(20px)",animationName:`${FC}, ${eu}`,bg:"rgba(0, 0, 0, 0.1)"}},false:{bg:"$black",opacity:"$$backdropOpacity",animationName:`${eu}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{true:{animationName:`${eu}`,animationDuration:"0.2s",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},false:{transition:"none"}}}}),IC=U("div",{position:"fixed",top:0,left:0,right:0,bottom:0,overflow:"auto",zIndex:"$max",WebkitOverflowScrolling:"touch",boxSizing:"border-box",textAlign:"center","&:before":{content:"",display:"inline-block",width:0,height:"100%",verticalAlign:"middle"},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},variants:{fullScreen:{true:{display:"inline-flex",overflow:"hidden",[`& ${tb}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${rb}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),Vr="nextui-backdrop",nb=O.memo(({children:e,onClick:t,onKeyPress:r,visible:n,maxWidth:o,blur:i,animated:s,opacity:l,preventDefault:a,className:u,css:d,...h})=>{const[,f,g]=uv(!1),b=c=>{g.current||t&&t(c)},w=p.useCallback(c=>{c.stopPropagation()},[]),k=()=>{if(!g.current)return;const c=setTimeout(()=>{f(!1),clearTimeout(c)},0)},{bindings:m}=ap(c=>{r&&r(c)},[Wo.Escape,Wo.Space],{disableGlobalEvent:!0,preventDefault:a}),v=p.useMemo(()=>n?"open":"closed",[n]),P=p.useMemo(()=>S.jsxs(IC,{"aria-hidden":!0,className:ce(Vr,`${Vr}--${v}`,u),css:{$$backdropOpacity:l,...d},"data-state":v,role:"button",tabIndex:-1,onClick:b,onMouseUp:k,...m,...h,children:[S.jsx(rb,{animated:s,blur:i,className:ce(`${Vr}-layer`,i?`${Vr}-layer-blur`:`${Vr}-layer-default`)}),S.jsx(tb,{animated:s,className:`${Vr}-content`,css:{maxWidth:o},onClick:w,onMouseDown:()=>f(!0),children:e})]}),[e]);return S.jsx(S.Fragment,{children:s?S.jsx(xp,{clearTime:150,enterTime:20,leaveTime:20,name:`${Vr}-wrapper`,visible:n,children:P}):n?P:null})});nb.toString=()=>".nextui-backdrop";const DC=ot(nb,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),OC=({size:e,fill:t,plain:r,width:n,height:o,className:i,...s})=>S.jsx("svg",r?{className:i,fill:"none",height:e||o,stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e||n,...s,children:S.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}:{className:i,height:e||o,viewBox:"0 0 24 24",width:e||n,...s,children:S.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:t})}),NC=p.memo(OC),AC=ot(NC,{width:24,height:24,plain:!1,className:""}),zC=nt({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),BC=nt({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),KC=nt({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),Og=U("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),ob=U("button",{position:"absolute",background:"transparent",border:"none",zIndex:"$1",top:"$space$3",right:"$space$2",margin:0,d:"inline-flex",ai:"center",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"$default",padding:"calc($space$sm * 0.5)",color:"$accents4",br:"$space$5",svg:{color:"currentColor"},"&:hover":{svg:{opacity:.8}},variants:{disabled:{true:{cursor:"not-allowed"}}}},vy),jC=U("div",{display:"flex",flexShrink:0,ai:"center",ov:"hidden",color:"inherit",padding:"$sm $10",fs:"$xs",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *:last-child":{mb:0}}}}}),_C=U("div",{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:"$sm $10",oy:"auto",position:"relative",ta:"left",variants:{noPadding:{true:{flex:1,padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *":{mb:"$8"},"> *:last-child":{mb:0}}}}}),HC=U("div",{d:"flex",flexWrap:"wrap",flexShrink:0,overflow:"hidden",color:"inherit",ai:"center",fs:"$xs",padding:"$sm $lg",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *":{m:"$2"}}}}}),WC=U("section",{maxWidth:"100%",verticalAlign:"middle",overflow:"hidden",height:"fit-content(20em)",maxHeight:"inherit",display:"flex",outline:"none",flexDirection:"column",position:"relative",boxSizing:"border-box",color:"$foreground",br:"$lg",boxShadow:"$lg",bg:"$backgroundContrast",animationFillMode:"forwards","@motion":{transition:"none"},"&.nextui-modal-wrapper-enter:not(.nextui-modal-rendered)":{animationName:BC,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:KC,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:zC,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${ob}`]:{svg:{size:"$10"}}}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),ib=({onClick:e,...t})=>S.jsx(ob,{"aria-label":"Close",className:"nextui-modal-close-icon",type:"button",onClick:r=>{r.preventDefault(),r.stopPropagation(),r.nativeEvent.stopImmediatePropagation(),e&&e(r)},...t,children:S.jsx(AC,{plain:!0,"aria-hidden":!0,className:"nextui-modal-close-icon-svg",fill:"currentColor",size:18})});ib.toString=()=>".nextui-modal-close-icon";const UC=O.memo(ib),VC=UC,er="nextui-modal",sb=({className:e,children:t,visible:r,fullScreen:n,closeButton:o,rebound:i,animated:s,onCloseButtonClick:l,scroll:a,...u})=>{const d=p.useRef(null),h=p.useRef(null),f=p.useRef(null),[g,b]=p.useState(!1);p.useEffect(()=>{const P=setTimeout(()=>{b(!0),clearTimeout(P)},300);return()=>clearTimeout(P)},[]),p.useEffect(()=>{if(!r)return;const P=document.activeElement;a3(d.current,P)||h.current&&h.current.focus()},[r]);const w=P=>{const c=P.keyCode===Wo.Tab;if(!r||!c)return;const L=document.activeElement;P.shiftKey?L===h.current&&f.current&&f.current.focus():L===f.current&&h.current&&h.current.focus()},k=()=>{l&&l()},m=p.useMemo(()=>r?"open":"closed",[r]),v=p.useMemo(()=>S.jsxs(WC,{ref:d,"aria-modal":r,className:ce(er,`${er}--${m}`,{[`${er}-fullscreen`]:n,[`${er}-with-close-button`]:o,[`${er}-rebound`]:i,[`${er}-rendered`]:g},e),closeButton:o,"data-state":m,fullScreen:n,role:"dialog",scroll:a,tabIndex:-1,...u,onKeyDown:w,children:[S.jsx(Og,{ref:h,"aria-hidden":"true",className:`${er}-hide-tab`,role:"button",tabIndex:0}),o&&S.jsx(VC,{onClick:k}),t,S.jsx(Og,{ref:f,"aria-hidden":"true",className:`${er}-hide-tab`,role:"button",tabIndex:0})]}),[i,t]);return S.jsx(S.Fragment,{children:s?S.jsx(xp,{clearTime:300,enterTime:20,leaveTime:20,name:`${er}-wrapper`,visible:r,children:v}):r?v:null})};sb.toString=()=>".nextui-modal-wrapper";const GC=ot(sb,{className:"",visible:!1,rebound:!1}),YC={},ka=O.createContext(YC),Kd=({children:e,onClose:t,onOpen:r,open:n,autoMargin:o,width:i,className:s,preventClose:l,blur:a,animated:u,fullScreen:d,noPadding:h,...f})=>{const g=c3("modal"),[,b]=d3(null,{scrollLayer:!0}),[w,k,m]=uv(!1),[v,P]=p.useState(!1),c=()=>{t&&t(),k(!1),b(!1)};p.useEffect(()=>{n!==void 0&&(n&&r&&r(),!n&&m.current&&t&&t(),k(n),b(n))},[n]);const L=()=>{P(!0);const M=setTimeout(()=>{P(!1),clearTimeout(M)},300)},{bindings:T}=ap(()=>{l?L():c()},Wo.Escape,{disableGlobalEvent:!0,preventDefault:!0}),E=p.useMemo(()=>({close:c,autoMargin:o,noPadding:h}),[]);return g?Zf.createPortal(S.jsx(ka.Provider,{value:E,children:S.jsx(DC,{animated:u,blur:a,fullScreen:d,maxWidth:i,visible:w,onClick:()=>{l?L():c()},...T,children:S.jsx(GC,{animated:u,className:s,fullScreen:d,rebound:v,visible:w,onCloseButtonClick:c,...f,children:e})})}),g):null};Kd.toString=()=>".nextui-modal",Kd.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const tn=Kd,tu="nextui-modal-header",lb=({children:e,className:t,justify:r,autoMargin:n,css:o,...i})=>{const{autoMargin:s,noPadding:l}=p.useContext(ka),a=p.useMemo(()=>s!==void 0?s:n,[n,s]);return S.jsx(jC,{autoMargin:a,className:ce(tu,{[`${tu}-auto-margin`]:a,[`${tu}-no-padding`]:l},t),css:{justifyContent:r,...o},noPadding:l,...i,children:e})};lb.toString=()=>".nextui-modal-header";const XC=O.memo(lb),QC=ot(XC,{className:"",justify:"center",autoMargin:!0}),ru="nextui-modal-body",ab=({className:e,children:t,autoMargin:r,...n})=>{const{autoMargin:o,noPadding:i}=p.useContext(ka),s=p.useMemo(()=>o!==void 0?o:r,[r,o]);return S.jsx(_C,{autoMargin:s,className:ce(ru,{[`${ru}-auto-margin`]:s,[`${ru}-no-padding`]:i},e),noPadding:i,...n,children:t})};ab.toString=()=>".nextui-modal-body";const qC=O.memo(ab),ZC=ot(qC,{className:"",autoMargin:!0}),nu="nextui-modal-footer",cb=({children:e,className:t,justify:r,autoMargin:n,css:o,...i})=>{const{autoMargin:s,noPadding:l}=p.useContext(ka),a=p.useMemo(()=>s!==void 0?s:n,[n,s]);return S.jsx(HC,{autoMargin:a,className:ce(nu,{[`${nu}-auto-margin`]:a,[`${nu}-no-padding`]:l},t),css:{justifyContent:r,...o},noPadding:l,...i,children:e})};cb.toString=()=>".nextui-modal-footer";const JC=O.memo(cb),eE=ot(JC,{className:"",justify:"flex-end",autoMargin:!0});tn.Header=QC,tn.Body=ZC,tn.Footer=eE;const tE={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},rE=O.createContext(tE);function nE(){return p.useContext(rE).isSSR}const ub=typeof window<"u"?O.useLayoutEffect:()=>{};let Ng=new Map;function oE(e,t){if(e===t)return e;let r=Ng.get(e);if(r)return r(t),t;let n=Ng.get(t);return n?(n(e),e):t}function iE(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function $s(...e){let t={...e[0]};for(let r=1;r=65&&o.charCodeAt(2)<=90?t[o]=iE(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=xe(i,s):o==="id"&&i&&s?t.id=oE(i,s):t[o]=s!==void 0?s:i}}return t}function Tr(e){if(sE())e.focus({preventScroll:!0});else{let t=lE(e);e.focus(),aE(t)}}let qs=null;function sE(){if(qs==null){qs=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return qs=!0,!0}})}catch{}}return qs}function lE(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight"u")return;let e=r=>{let n=Zn.get(r.target);n||(n=new Set,Zn.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Zn.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Zn.delete(r.target)),Zn.size===0)){for(let o of jd)o();jd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ag():document.addEventListener("DOMContentLoaded",Ag));function db(e){requestAnimationFrame(()=>{Zn.size===0?e():jd.add(e)})}function fb(){let e=p.useRef(new Map),t=p.useCallback((o,i,s,l)=>{let a=l!=null&&l.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:a,options:l}),o.addEventListener(i,s,l)},[]),r=p.useCallback((o,i,s,l)=>{var a;let u=((a=e.current.get(s))===null||a===void 0?void 0:a.fn)||s;o.removeEventListener(i,u,l),e.current.delete(s)},[]),n=p.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function cE(e,t){ub(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function zg(e){for(ta(e)&&(e=e.parentElement);e&&!ta(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ta(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let uE=0;const ou=new Map;function dE(e){let[t,r]=p.useState(void 0);return ub(()=>{if(!e)return;let n=ou.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${uE++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},ou.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),ou.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function fE(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Pp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ta(){return Pp(/^Mac/i)}function pE(){return Pp(/^iPhone/i)}function hE(){return Pp(/^iPad/i)||Ta()&&navigator.maxTouchPoints>1}function Cp(){return pE()||hE()}function gE(){return Ta()||Cp()}function mE(){return fE(/Android/i)}function $E(e,t,r,n){let o=p.useRef(r);o.current=r;let i=r==null;p.useEffect(()=>{if(i)return;let s=e.current,l=a=>o.current.call(this,a);return s.addEventListener(t,l,n),()=>{s.removeEventListener(t,l,n)}},[e,t,n,i])}function _d(e,t){let r=Bg(e,t,"left"),n=Bg(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),d=e.scrollLeft+parseInt(u,10),h=e.scrollTop+parseInt(a,10),f=d+e.clientWidth,g=h+e.clientHeight;r<=s?s=r-parseInt(u,10):r+o>f&&(s+=r+o-f),n<=h?l=n-parseInt(a,10):n+i>g&&(l+=n+i-g),e.scrollLeft=s,e.scrollTop=l}function Bg(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function vE(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let a=zg(e);for(;e&&a&&e!==s&&a!==s;)_d(a,e),e=a,a=zg(e)}else{var r;let{left:a,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(a-d)>1||Math.abs(u-h)>1){var n,o,i;t==null||(n=t.containingElement)===null||n===void 0||(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Hd(e){return e.mozInputSource===0&&e.isTrusted?!0:mE()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function yE(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let Po="default",Wd="",vl=new WeakMap;function Kg(e){Cp()?(Po==="default"&&(Wd=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Po="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(vl.set(e,e.style.userSelect),e.style.userSelect="none")}function Zs(e){if(Cp()){if(Po!=="disabled")return;Po="restoring",setTimeout(()=>{db(()=>{Po==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Wd||""),Wd="",Po="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&vl.has(e)){let t=vl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),vl.delete(e)}}const pb=O.createContext(null);pb.displayName="PressResponderContext";function bE(e){let t=p.useContext(pb);if(t){let{register:r,...n}=t;e=$s(n,e),r()}return cE(t,e.ref),e}function hb(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...f}=bE(e),g=p.useRef(null);g.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:u};let[b,w]=p.useState(!1),k=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:v}=fb(),P=p.useMemo(()=>{let c=k.current,L=(y,R)=>{let{onPressStart:x,onPressChange:C,isDisabled:j}=g.current;j||c.didFirePressStart||(x&&x({type:"pressstart",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),C&&C(!0),c.didFirePressStart=!0,w(!0))},T=(y,R,x=!0)=>{let{onPressEnd:C,onPressChange:j,onPress:W,isDisabled:B}=g.current;c.didFirePressStart&&(c.ignoreClickAfterPress=!0,c.didFirePressStart=!1,C&&C({type:"pressend",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}),j&&j(!1),w(!1),W&&x&&!B&&W({type:"press",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey}))},E=(y,R)=>{let{onPressUp:x,isDisabled:C}=g.current;C||x&&x({type:"pressup",pointerType:R,target:y.currentTarget,shiftKey:y.shiftKey,metaKey:y.metaKey,ctrlKey:y.ctrlKey,altKey:y.altKey})},M=y=>{c.isPressed&&(c.isOverTarget&&T(tr(c.target,y),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Zs(c.target))},F={onKeyDown(y){iu(y.nativeEvent,y.currentTarget)&&y.currentTarget.contains(y.target)?(_g(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),!c.isPressed&&!y.repeat&&(c.target=y.currentTarget,c.isPressed=!0,L(y,"keyboard"),m(document,"keyup",I,!1))):y.key==="Enter"&&Ud(y.currentTarget)&&y.stopPropagation()},onKeyUp(y){iu(y.nativeEvent,y.currentTarget)&&!y.repeat&&y.currentTarget.contains(y.target)&&E(tr(c.target,y),"keyboard")},onClick(y){y&&!y.currentTarget.contains(y.target)||y&&y.button===0&&(y.stopPropagation(),s&&y.preventDefault(),!c.ignoreClickAfterPress&&!c.ignoreEmulatedMouseEvents&&(c.pointerType==="virtual"||Hd(y.nativeEvent))&&(!s&&!a&&Tr(y.currentTarget),L(y,"virtual"),E(y,"virtual"),T(y,"virtual")),c.ignoreEmulatedMouseEvents=!1,c.ignoreClickAfterPress=!1)}},I=y=>{if(c.isPressed&&iu(y,c.target)){_g(y.target,y.key)&&y.preventDefault(),y.stopPropagation(),c.isPressed=!1;let R=y.target;T(tr(c.target,y),"keyboard",c.target.contains(R)),v(),c.target instanceof HTMLElement&&c.target.contains(R)&&(Ud(c.target)||c.target.getAttribute("role")==="link")&&c.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=C=>{if(!(C.button!==0||!C.currentTarget.contains(C.target))){if(yE(C.nativeEvent)){c.pointerType="virtual";return}su(C.currentTarget)&&C.preventDefault(),c.pointerType=C.pointerType,C.stopPropagation(),c.isPressed||(c.isPressed=!0,c.isOverTarget=!0,c.activePointerId=C.pointerId,c.target=C.currentTarget,!s&&!a&&Tr(C.currentTarget),d||Kg(c.target),L(C,c.pointerType),m(document,"pointermove",y,!1),m(document,"pointerup",R,!1),m(document,"pointercancel",x,!1))}},F.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(su(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},F.onPointerUp=C=>{!C.currentTarget.contains(C.target)||c.pointerType==="virtual"||C.button===0&&Kn(C,C.currentTarget)&&E(C,c.pointerType||C.pointerType)};let y=C=>{C.pointerId===c.activePointerId&&(Kn(C,c.target)?c.isOverTarget||(c.isOverTarget=!0,L(tr(c.target,C),c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(tr(c.target,C),c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(C)))},R=C=>{C.pointerId===c.activePointerId&&c.isPressed&&C.button===0&&(Kn(C,c.target)?T(tr(c.target,C),c.pointerType):c.isOverTarget&&T(tr(c.target,C),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,v(),d||Zs(c.target))},x=C=>{M(C)};F.onDragStart=C=>{C.currentTarget.contains(C.target)&&M(C)}}else{F.onMouseDown=x=>{x.button!==0||!x.currentTarget.contains(x.target)||(su(x.currentTarget)&&x.preventDefault(),x.stopPropagation(),!c.ignoreEmulatedMouseEvents&&(c.isPressed=!0,c.isOverTarget=!0,c.target=x.currentTarget,c.pointerType=Hd(x.nativeEvent)?"virtual":"mouse",!s&&!a&&Tr(x.currentTarget),L(x,c.pointerType),m(document,"mouseup",y,!1)))},F.onMouseEnter=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!0,L(x,c.pointerType)))},F.onMouseLeave=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&!c.ignoreEmulatedMouseEvents&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x)))},F.onMouseUp=x=>{x.currentTarget.contains(x.target)&&!c.ignoreEmulatedMouseEvents&&x.button===0&&E(x,c.pointerType)};let y=x=>{if(x.button===0){if(c.isPressed=!1,v(),c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}Kn(x,c.target)?T(tr(c.target,x),c.pointerType):c.isOverTarget&&T(tr(c.target,x),c.pointerType,!1),c.isOverTarget=!1}};F.onTouchStart=x=>{if(!x.currentTarget.contains(x.target))return;x.stopPropagation();let C=xE(x.nativeEvent);C&&(c.activePointerId=C.identifier,c.ignoreEmulatedMouseEvents=!0,c.isOverTarget=!0,c.isPressed=!0,c.target=x.currentTarget,c.pointerType="touch",!s&&!a&&Tr(x.currentTarget),d||Kg(c.target),L(x,c.pointerType),m(window,"scroll",R,!0))},F.onTouchMove=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=jg(x.nativeEvent,c.activePointerId);C&&Kn(C,x.currentTarget)?c.isOverTarget||(c.isOverTarget=!0,L(x,c.pointerType)):c.isOverTarget&&(c.isOverTarget=!1,T(x,c.pointerType,!1),g.current.shouldCancelOnPointerExit&&M(x))},F.onTouchEnd=x=>{if(!x.currentTarget.contains(x.target)||(x.stopPropagation(),!c.isPressed))return;let C=jg(x.nativeEvent,c.activePointerId);C&&Kn(C,x.currentTarget)?(E(x,c.pointerType),T(x,c.pointerType)):c.isOverTarget&&T(x,c.pointerType,!1),c.isPressed=!1,c.activePointerId=null,c.isOverTarget=!1,c.ignoreEmulatedMouseEvents=!0,d||Zs(c.target),v()},F.onTouchCancel=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),c.isPressed&&M(x))};let R=x=>{c.isPressed&&x.target.contains(c.target)&&M({currentTarget:c.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=x=>{x.currentTarget.contains(x.target)&&M(x)}}return F},[m,s,a,v,d]);return p.useEffect(()=>()=>{d||Zs(k.current.target)},[d]),{isPressed:l||b,pressProps:$s(f,P)}}function Ud(e){return e.tagName==="A"&&e.hasAttribute("href")}function iu(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!gb(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!Ud(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function xE(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function jg(e,t){const r=e.changedTouches;for(let n=0;nt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Kn(e,t){let r=t.getBoundingClientRect(),n=wE(e);return SE(r,n)}function su(e){return!(e instanceof HTMLElement)||!e.draggable}function _g(e,t){return e instanceof HTMLInputElement?!gb(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const PE=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gb(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":PE.has(e.type)}let vs=null,CE=new Set,Hg=!1,vn=!1,Vd=!1;function Ep(e,t){for(let r of CE)r(e,t)}function EE(e){return!(e.metaKey||!Ta()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wg(e){vn=!0,EE(e)&&(vs="keyboard",Ep("keyboard",e))}function jn(e){vs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(vn=!0,Ep("pointer",e))}function kE(e){Hd(e)&&(vn=!0,vs="virtual")}function TE(e){e.target===window||e.target===document||(!vn&&!Vd&&(vs="virtual",Ep("virtual",e)),vn=!1,Vd=!1)}function LE(){vn=!1,Vd=!0}function Ug(){if(typeof window>"u"||Hg)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){vn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Wg,!0),document.addEventListener("keyup",Wg,!0),document.addEventListener("click",kE,!0),window.addEventListener("focus",TE,!0),window.addEventListener("blur",LE,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",jn,!0),document.addEventListener("pointermove",jn,!0),document.addEventListener("pointerup",jn,!0)):(document.addEventListener("mousedown",jn,!0),document.addEventListener("mousemove",jn,!0),document.addEventListener("mouseup",jn,!0)),Hg=!0}typeof document<"u"&&(document.readyState!=="loading"?Ug():document.addEventListener("DOMContentLoaded",Ug));function mb(){return vs}const ME=500;function RE(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=ME,accessibilityDescription:s}=e;const l=p.useRef(null);let{addGlobalListener:a,removeGlobalListener:u}=fb(),{pressProps:d}=hb({isDisabled:t,onPressStart(f){if((f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),l.current=null},i),f.pointerType==="touch")){let g=b=>{b.preventDefault()};a(f.target,"contextmenu",g,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),h=dE(o&&!t?s:null);return{longPressProps:$s(d,h)}}function $b(e){if(mb()==="virtual"){let t=document.activeElement;db(()=>{document.activeElement===t&&document.contains(e)&&Tr(e)})}else Tr(e)}function FE(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,n=t!=="none"&&r!=="hidden"&&r!=="collapse";if(n){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);n=i!=="none"&&s!=="hidden"&&s!=="collapse"}return n}function IE(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function vb(e,t){return e.nodeName!=="#comment"&&FE(e)&&IE(e,t)&&(!e.parentElement||vb(e.parentElement,e))}const kp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],DE=kp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";kp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const OE=kp.join(':not([hidden]):not([tabindex="-1"]),');function yb(e,t){return t.some(r=>r.contains(e))}function NE(e,t,r){let n=t!=null&&t.tabbable?OE:DE,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(n)&&vb(i)&&(!r||yb(i,r))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}let AE=class bb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new Vg({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&yb(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new bb;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Pt(this,"fastMap",new Map),this.root=new Vg({scopeRef:null}),this.fastMap.set(null,this.root)}},Vg=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Pt(this,"children",new Set),Pt(this,"contain",!1),this.scopeRef=t.scopeRef}};new AE;const zE=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),BE=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function KE(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return zE.has(r)}let t=e.split("-")[0];return BE.has(t)}function xb(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:KE(e)?"rtl":"ltr"}}let Gd=xb(),Ti=new Set;function Gg(){Gd=xb();for(let e of Ti)e(Gd)}function jE(){let e=nE(),[t,r]=p.useState(Gd);return p.useEffect(()=>(Ti.size===0&&window.addEventListener("languagechange",Gg),Ti.add(r),()=>{Ti.delete(r),Ti.size===0&&window.removeEventListener("languagechange",Gg)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const _E=O.createContext(null);function wb(){let e=jE();return p.useContext(_E)||e}let lu=new Map;function HE(e){let{locale:t}=wb(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]{let l=VE(s.key);if(!l||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;l===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=l;let a=t.getKeyForSearch(o.search,r.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(r.setFocusedKey(a),n&&n(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},WE)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function VE(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function GE(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:l=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:f,scrollRef:g=n}=e,{direction:b}=wb(),w=E=>{if(E.altKey&&E.key==="Tab"&&E.preventDefault(),!n.current.contains(E.target))return;const M=(B,D)=>{B!=null&&(t.setFocusedKey(B,D),E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(B):a&&!Sb(E)&&t.replaceSelection(B))};switch(E.key){case"ArrowDown":if(r.getKeyBelow){var F,I;E.preventDefault();let B=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r);B==null&&i&&(B=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r,t.focusedKey)),M(B)}break;case"ArrowUp":if(r.getKeyAbove){var y,R;E.preventDefault();let B=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(y=r.getLastKey)===null||y===void 0?void 0:y.call(r);B==null&&i&&(B=(R=r.getLastKey)===null||R===void 0?void 0:R.call(r,t.focusedKey)),M(B)}break;case"ArrowLeft":if(r.getKeyLeftOf){var x,C;E.preventDefault();let B=r.getKeyLeftOf(t.focusedKey);B==null&&i&&(B=b==="rtl"?(x=r.getFirstKey)===null||x===void 0?void 0:x.call(r,t.focusedKey):(C=r.getLastKey)===null||C===void 0?void 0:C.call(r,t.focusedKey)),M(B,b==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var j,W;E.preventDefault();let B=r.getKeyRightOf(t.focusedKey);B==null&&i&&(B=b==="rtl"?(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,t.focusedKey):(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey)),M(B,b==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){E.preventDefault();let B=r.getFirstKey(t.focusedKey,Jn(E));t.setFocusedKey(B),Jn(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(B):a&&t.replaceSelection(B)}break;case"End":if(r.getLastKey){E.preventDefault();let B=r.getLastKey(t.focusedKey,Jn(E));t.setFocusedKey(B),Jn(E)&&E.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(B):a&&t.replaceSelection(B)}break;case"PageDown":if(r.getKeyPageBelow){E.preventDefault();let B=r.getKeyPageBelow(t.focusedKey);M(B)}break;case"PageUp":if(r.getKeyPageAbove){E.preventDefault();let B=r.getKeyPageAbove(t.focusedKey);M(B)}break;case"a":Jn(E)&&t.selectionMode==="multiple"&&l!==!0&&(E.preventDefault(),t.selectAll());break;case"Escape":E.preventDefault(),s||t.clearSelection();break;case"Tab":if(!h){if(E.shiftKey)n.current.focus();else{let B=NE(n.current,{tabbable:!0}),D,K;do K=B.lastChild(),K&&(D=K);while(K);D&&!D.contains(document.activeElement)&&Tr(D)}break}}},k=p.useRef({top:0,left:0});$E(g,"scroll",f?null:()=>{k.current={top:g.current.scrollTop,left:g.current.scrollLeft}});let m=E=>{if(t.isFocused){E.currentTarget.contains(E.target)||t.setFocused(!1);return}if(E.currentTarget.contains(E.target)){if(t.setFocused(!0),t.focusedKey==null){let I=R=>{R!=null&&(t.setFocusedKey(R),a&&t.replaceSelection(R))},y=E.relatedTarget;var M,F;y&&E.currentTarget.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING?I((M=t.lastSelectedKey)!==null&&M!==void 0?M:r.getLastKey()):I((F=t.firstSelectedKey)!==null&&F!==void 0?F:r.getFirstKey())}else f||(g.current.scrollTop=k.current.top,g.current.scrollLeft=k.current.left);if(!f&&t.focusedKey!=null){let I=g.current.querySelector(`[data-key="${t.focusedKey}"]`);I&&(Tr(I),_d(g.current,I))}}},v=E=>{E.currentTarget.contains(E.relatedTarget)||t.setFocused(!1)};const P=p.useRef(o);p.useEffect(()=>{if(P.current){let E=null;o==="first"&&(E=r.getFirstKey()),o==="last"&&(E=r.getLastKey());let M=t.selectedKeys;M.size&&(E=M.values().next().value),t.setFocused(!0),t.setFocusedKey(E),E==null&&!d&&$b(n.current)}P.current=!1},[]),p.useEffect(()=>{let E=mb();if(!f&&t.isFocused&&t.focusedKey!=null&&(g!=null&&g.current)){let M=g.current.querySelector(`[data-key="${t.focusedKey}"]`);M&&(_d(g.current,M),E==="keyboard"&&vE(M,{containingElement:n.current}))}},[f,g,t.focusedKey,t.isFocused,n]);let c={onKeyDown:w,onFocus:m,onBlur:v,onMouseDown(E){g.current===E.target&&E.preventDefault()}},{typeSelectProps:L}=UE({keyboardDelegate:r,selectionManager:t});u||(c=$s(L,c));let T;return d||(T=t.focusedKey==null?0:-1),{collectionProps:{...c,tabIndex:T}}}function YE(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,isVirtualized:i,shouldUseVirtualFocus:s,focus:l,isDisabled:a,onAction:u,allowsDifferentPressOrigin:d}=e,h=R=>{if(R.pointerType==="keyboard"&&Sb(R))t.toggleSelection(r);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):R&&R.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||R&&(Jn(R)||R.pointerType==="touch"||R.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};p.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!s&&(l?l():document.activeElement!==n.current&&$b(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),a=a||t.isDisabled(r);let f={};!s&&!a?f={tabIndex:r===t.focusedKey?0:-1,onFocus(R){R.target===n.current&&t.setFocusedKey(r)}}:a&&(f.onMouseDown=R=>{R.preventDefault()});let g=!a&&t.canSelectItem(r),b=u&&!a,w=b&&(t.selectionBehavior==="replace"?!g:t.isEmpty),k=b&&g&&t.selectionBehavior==="replace",m=w||k,v=p.useRef(null),P=m&&g,c=p.useRef(!1),L=p.useRef(!1),T={};o?(T.onPressStart=R=>{v.current=R.pointerType,c.current=P,R.pointerType==="keyboard"&&(!m||Xg())&&h(R)},d?(T.onPressUp=R=>{R.pointerType!=="keyboard"&&h(R)},T.onPress=w?()=>u():null):T.onPress=R=>{if(w||k&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!Yg())return;u()}else R.pointerType!=="keyboard"&&h(R)}):(T.onPressStart=R=>{v.current=R.pointerType,c.current=P,L.current=w,(R.pointerType==="mouse"&&!w||R.pointerType==="keyboard"&&(!u||Xg()))&&h(R)},T.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&m&&Yg()||R.pointerType==="mouse"&&L.current)&&(m?u():h(R))}),i||(f["data-key"]=r),T.preventFocusOnPress=s;let{pressProps:E,isPressed:M}=hb(T),F=k?R=>{v.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),u())}:void 0,{longPressProps:I}=RE({isDisabled:!P,onLongPress(R){R.pointerType==="touch"&&(h(R),t.setSelectionBehavior("toggle"))}});return{itemProps:$s(f,g||w?E:{},P?I:{},{onDoubleClick:F,onDragStartCapture:R=>{v.current==="touch"&&c.current&&R.preventDefault()}}),isPressed:M,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:a,allowsSelection:g,hasAction:m}}function Yg(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Xg(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class XE{getKeyBelow(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getKeyAbove(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getKeyRightOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyAbove(t):this.getKeyBelow(t):null}getKeyLeftOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyBelow(t):this.getKeyAbove(t):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!ta(r))return this.getFirstKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,l=Math.max(0,i.x-s+i.width-o.width);for(;n&&i.x-s>l;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,l=Math.max(0,i.y-s+i.height-o.height);for(;n&&i.y-s>l;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),i=n==null?void 0:n.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!ta(r))return this.getLastKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,l=Math.min(r.scrollWidth,i.x-s-i.width+o.width);for(;n&&i.x-si||new XE(r,w==="selection"?new Set:n,o,b),[i,r,n,o,b,w]),{collectionProps:m}=GE({ref:o,selectionManager:t,keyboardDelegate:k,autoFocus:s,shouldFocusWrap:l,disallowEmptySelection:u,selectOnFocus:d,disallowTypeAhead:h,shouldUseVirtualFocus:f,allowsTabNavigation:g,isVirtualized:a,scrollRef:o});return{listProps:m}}function Pb(e){return null}Pb.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:i}=t,s=t.title||t.children,l=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!l&&!(r!=null&&r.suppressTextValueWarning)&&console.warn(" with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:l,"aria-label":t["aria-label"],hasChildNodes:qE(t),*childNodes(){if(n)for(let a of n)yield{type:"item",value:a};else if(o){let a=[];O.Children.forEach(i,u=>{a.push({type:"item",element:u})}),yield*a}}}};function qE(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&O.Children.count(e.children)>0)}let ZE=Pb;function Cb(e){return null}Cb.getCollectionNode=function*(t){let{children:r,title:n,items:o}=t;yield{type:"section",hasChildNodes:!0,rendered:n,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let i of o)yield{type:"item",value:i,renderer:r}}else{let i=[];O.Children.forEach(r,s=>{i.push({type:"item",element:s})}),yield*i}}}};let JE=Cb;class e8{build(t,r){return this.context=r,Qg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];O.Children.forEach(r,s=>{o.push(s)});let i=0;for(let s of o){let l=this.getFullNode({element:s,index:i},{});for(let a of l)i++,yield a}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let l=(s=i.key)!==null&&s!==void 0?s:i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let i=t.element;if(!i&&t.value&&r&&r.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=r.renderer(t.value)}if(O.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),d=t.index,h=u.next();for(;!h.done&&h.value;){let f=h.value;t.index=d;let g=f.key;g||(g=f.element?null:this.getKey(i,t,r,n));let w=[...this.getFullNode({...f,key:g,index:d,wrapper:t8(t.wrapper,f.wrapper)},this.getChildState(r,f),n?`${n}${i.key}`:i.key,o)];for(let k of w){if(k.value=f.value||t.value,k.value&&this.cache.set(k.value,k),t.type&&k.type!==t.type)throw new Error(`Unsupported type <${au(k.type)}> in <${au(o.type)}>. Only <${au(t.type)}> is supported.`);d++,yield k}h=u.next(w)}return}if(t.key==null)return;let s=this,l={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Qg(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=a;let d=s.getFullNode(u,s.getChildState(r,u),l.key,l);for(let h of d)a++,yield h}})};yield l}constructor(){this.cache=new WeakMap}}function Qg(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function t8(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function au(e){return e[0].toUpperCase()+e.slice(1)}function r8(e,t,r,n=[]){let o=p.useMemo(()=>new e8,[]),i=p.useRef(null);return p.useMemo(()=>{let s=o.build(e,r);return i.current=t(s,i.current),i.current},[o,e.children,e.items,r,...n])}const qg=new WeakMap;function Eb(e){let t=qg.get(e);if(t!=null)return t;t=0;for(let r of e)r.type==="section"?t+=Eb(r.childNodes):t++;return qg.set(e,t),t}function n8(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function o8(e){return i8(e,0)}function i8(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function cu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=Zg(e,t),o=Zg(e,r),i=n.slice(0,o.length).findIndex((s,l)=>s!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):-1}function Zg(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class Rt extends Set{constructor(t,r,n){super(t),t instanceof Rt?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function s8(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function l8(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=p.useRef(!1),[,l]=p.useState(!1),a=p.useRef(null),u=p.useRef(null),[,d]=p.useState(null),h=p.useMemo(()=>Jg(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Jg(e.defaultSelectedKeys,new Rt),[e.defaultSelectedKeys]),[g,b]=cp(h,f,e.onSelectionChange),w=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[k,m]=p.useState(o);o==="replace"&&k==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let v=p.useRef(o);return p.useEffect(()=>{o!==v.current&&(m(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:k,setSelectionBehavior:m,get isFocused(){return s.current},setFocused(P){s.current=P,l(P)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(P,c="first"){a.current=P,u.current=c,d(P)},selectedKeys:g,setSelectedKeys(P){(n||!s8(P,g))&&b(P)},disabledKeys:w,disabledBehavior:i}}function Jg(e,t){return e?e==="all"?"all":new Rt(e):t}class a8{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&cu(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&cu(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new Rt([t],t,t);else{let n=this.state.selectedKeys,o=n.anchorKey||t;r=new Rt(n,o,t);for(let i of this.getKeyRange(o,n.currentKey||t))r.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&r.add(i)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?cu(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new Rt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new Rt([t],t,t):new Rt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Rt;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);o.type==="item"&&t.push(n),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(o8(n8(o,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Rt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}function kb(e){let[t,r]=cp(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:r,open(){r(!0)},close(){r(!1)},toggle(){r(!t)}}}function c8(e,t){if(e!=null)if(h3(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}function Tp(...e){return t=>{e.forEach(r=>c8(r,t))}}const u8=e=>e?e.replace("-"," "):"bottom",d8=e=>{if(!e)return"bottom";switch(e){case"bottom":default:return"top center";case"top":return"bottom center";case"left":return"right center";case"right":return"left center";case"bottom-left":return"top left";case"bottom-right":return"top right";case"top-left":return"bottom left";case"top-right":return"bottom right";case"left-top":return"right top";case"left-bottom":return"right bottom";case"right-top":return"left top";case"right-bottom":return"left bottom"}};function f8(e={}){const{ref:t,triggerRef:r,scrollRef:n,isOpen:o,defaultOpen:i,onOpenChange:s,isBordered:l,borderWeight:a,disableShadow:u,shouldFlip:d=!0,offset:h=12,placement:f="bottom",onClose:g,triggerType:b="dialog",isDismissable:w=!0,shouldCloseOnBlur:k=!1,isKeyboardDismissDisabled:m=!1,disableAnimation:v=!1,shouldCloseOnInteractOutside:P}=e,c=p.useRef(null),L=p.useRef(null),T=t||c,E=r||L,M=kb({isOpen:o,defaultOpen:i,onOpenChange:s}),[F,I]=p.useState(!M.isOpen),y=p.useMemo(()=>M.isOpen?"open":"closed",[M.isOpen]),R=p.useCallback(()=>{g==null||g(),M.close()},[M,g]),x=p.useCallback(()=>{I(!1)},[]),C=p.useCallback(()=>{I(!0)},[]),{triggerProps:j,overlayProps:W}=Ov({type:b},M,E),B=p.useMemo(()=>u8(f),[f]),{overlayProps:D}=Z6({isOpen:M.isOpen,targetRef:E,scrollRef:n,placement:B,overlayRef:T,shouldFlip:d,offset:h}),K=p.useMemo(()=>{var X;return!((X=D.style)==null||!X.maxHeight)},[D.style]),H=p.useCallback((X={},Oe=null)=>({...r!=null&&r.current?Pe(j,X):Pe(X,j),ref:Tp(E,Oe)}),[E,r,j]),J=p.useCallback((X={},Oe={})=>{const ue=D.style?Object.keys(D.style):[];let Ce={};ue.forEach(Et=>{const kt=lp(Oe)&&Oe[Et];kt&&(Ce={...Ce,[Et]:kt})});const ve=Object.keys(Ce).length>0?{...D,style:{...D.style,...Ce}}:D;return{css:Oe,...X,...W,...ve,"data-state":y,"data-placement":f}},[y,D,W,f]);return{state:M,exited:F,overlayRef:T,triggerRef:E,placement:f,disableShadow:u,disableAnimation:v,shouldCloseOnBlur:k,isDismissable:w,isBordered:l,borderWeight:a,isKeyboardDismissDisabled:m,shouldCloseOnInteractOutside:P,isOpen:M.isOpen,onClose:R,onExited:C,onEntered:x,triggerProps:j,overlayProps:W,positionProps:D,getTriggerProps:H,getPopoverProps:J,isPositioned:K}}const[p8,Tb]=Ny({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),Lb=O.forwardRef((e,t)=>{const{children:r,...n}=e,o=f8({ref:t,...n}),[i,s]=O.Children.toArray(r),l=o.state.isOpen||!o.exited;return S.jsxs(p8,{value:o,children:[i,l&&S.jsx(iP,{children:s})]})});Lb.toString=()=>".nextui-popover";const is=Lb,Mb=O.forwardRef((e,t)=>{const{triggerRef:r,getTriggerProps:n}=Tb(),{children:o,...i}=e,s=p.useMemo(()=>typeof o=="string"?S.jsx(Ge,{children:o}):p.Children.only(o),[o]),{onPress:l,onKeyDown:a,onPressStart:u,...d}=p.useMemo(()=>n(Pe(s.props,i),s.ref),[n,s.props,i,s.ref]),{buttonProps:h}=Ly({onPress:l,onKeyDown:a,onPressStart:u,...d},r),[,f]=l3(e.children,Do),g=p.useMemo(()=>(f==null?void 0:f[0])!==void 0,[f]),b=p.useMemo(()=>({...d,onPress:l,onKeyDown:a,onPressStart:u}),[d,l,a,u]);return p.cloneElement(s,Pe(d,g?b:h))});Mb.toString=()=>".nextui-popover-trigger";const h8=Mb,Rb={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},Fb=O.createContext(Rb);let g8=!!(typeof window<"u"&&window.document&&window.document.createElement),uu=new WeakMap;function m8(e=!1){let t=p.useContext(Fb),r=p.useRef(null);if(r.current===null&&!e){var n,o;let i=(n=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(i){let s=uu.get(i);s==null?uu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,uu.delete(i))}r.current=++t.current}return r.current}function $8(e){let t=p.useContext(Fb);t===Rb&&!g8&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let r=m8(!!e);return e||`react-aria${t.prefix}-${r}`}const Lp=typeof window<"u"?O.useLayoutEffect:()=>{};function v8(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),i=p.useCallback(()=>{let l=o.current.next();for(;!l.done&&n.current===l.value;)l=o.current.next();if(l.done){o.current=null;return}r(l.value),n.current=l.value},[r,n,o]);Lp(()=>{o.current&&i()});let s=p.useCallback(l=>{o.current=l(n.current),i()},[i,o,n]);return[t,s]}let em=new Map;function y8(e){let[t,r]=p.useState(e),n=p.useRef(null),o=$8(t),i=p.useCallback(s=>{n.current=s},[]);return em.set(o,i),Lp(()=>{let s=o;return()=>{em.delete(s)}},[o]),p.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function b8(e=[]){let t=y8(),[r,n]=v8(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Lp(o,[t,o,...e]),r}const x8=new Set(["id"]),w8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S8=/^(data-.*)$/;function P8(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(x8.has(i)||r&&w8.has(i)||n!=null&&n.has(i)||S8.test(i))&&(o[i]=e[i]);return o}function tm(e){if(C8())e.focus({preventScroll:!0});else{let t=E8(e);e.focus(),k8(t)}}let Js=null;function C8(){if(Js==null){Js=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Js=!0,!0}})}catch{}}return Js}function E8(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight"u")return;let e=r=>{let n=eo.get(r.target);n||(n=new Set,eo.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=eo.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),eo.delete(r.target)),eo.size===0)){for(let o of Yd)o();Yd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?rm():document.addEventListener("DOMContentLoaded",rm));function T8(e){requestAnimationFrame(()=>{eo.size===0?e():Yd.add(e)})}function L8(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function M8(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function R8(){return M8(/^Mac/i)}function F8(){return L8(/Android/i)}function I8(e){return e.mozInputSource===0&&e.isTrusted?!0:F8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const D8=O.createContext(null);D8.displayName="PressResponderContext";let ys=null,O8=new Set,nm=!1,yn=!1,Xd=!1;function Mp(e,t){for(let r of O8)r(e,t)}function N8(e){return!(e.metaKey||!R8()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function om(e){yn=!0,N8(e)&&(ys="keyboard",Mp("keyboard",e))}function _n(e){ys="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yn=!0,Mp("pointer",e))}function A8(e){I8(e)&&(yn=!0,ys="virtual")}function z8(e){e.target===window||e.target===document||(!yn&&!Xd&&(ys="virtual",Mp("virtual",e)),yn=!1,Xd=!1)}function B8(){yn=!1,Xd=!0}function im(){if(typeof window>"u"||nm)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){yn=!0,e.apply(this,arguments)},document.addEventListener("keydown",om,!0),document.addEventListener("keyup",om,!0),document.addEventListener("click",A8,!0),window.addEventListener("focus",z8,!0),window.addEventListener("blur",B8,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_n,!0),document.addEventListener("pointermove",_n,!0),document.addEventListener("pointerup",_n,!0)):(document.addEventListener("mousedown",_n,!0),document.addEventListener("mousemove",_n,!0),document.addEventListener("mouseup",_n,!0)),nm=!0}typeof document<"u"&&(document.readyState!=="loading"?im():document.addEventListener("DOMContentLoaded",im));function K8(){return ys}function sm(e){if(K8()==="virtual"){let t=document.activeElement;T8(()=>{document.activeElement===t&&document.contains(e)&&tm(e)})}else tm(e)}function j8(e,t){return t.some(r=>r.contains(e))}class Rp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new lm({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&j8(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new Rp;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Pt(this,"fastMap",new Map),this.root=new lm({scopeRef:null}),this.fastMap.set(null,this.root)}}class lm{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Pt(this,"children",new Set),Pt(this,"contain",!1),this.scopeRef=t.scopeRef}}new Rp;function _8(e,t){let{role:r="dialog"}=e,n=b8();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){sm(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current.blur(),sm(t.current),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),aP(),{dialogProps:{...P8(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}const H8=nt({"0%":{opacity:0,transform:"translateZ(0) scale(0.95)"},"60%":{opacity:.75,backfaceVisibility:"hidden",webkitFontSmoothing:"antialiased",transform:"translateZ(0) scale(1.05)"},"100%":{opacity:1,transform:"translateZ(0) scale(1)"}}),W8=nt({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.5)"}}),U8=U("div",{$$popoverMinWidth:"$space$fit",$$popoverMinHeight:"$space$fit",$$popoverBorderRadius:"$radii$lg",$$popoverBackground:"$colors$backgroundContrast",$$popoverBoxShadow:"$shadows$md",$$popoverBorderColor:"$colors$border",boxShadow:"$$popoverBoxShadow",outline:"none",overflow:"hidden auto",bg:"$$popoverBackground",display:"inline-flex",flexDirection:"column",boxSizing:"border-box",minWidth:"$$popoverMinWidth",minHeight:"$$popoverMinHeight",maxWidth:"calc(100% - $$popoverMinWidth)",maxHeight:"calc(100% - $$popoverMinWidth)",borderRadius:"$$popoverBorderRadius",animationFillMode:"forwards",willChange:"transform, opacity","@motion":{transition:"none"},"&.nextui-popover-content-enter":{animationName:H8,animationTimingFunction:"ease-out",animationDirection:"normal",animationDuration:"300ms",animationFillMode:"both"},"&.nextui-popover-content-leave":{animationName:W8,animationTimingFunction:"ease-in",animationDuration:"60ms",animationFillMode:"both"},variants:{disableShadow:{true:{boxShadow:"none"}},isBordered:{true:{borderStyle:"solid",borderColor:"$$popoverBorderColor"}},borderWeight:{light:{bw:"$light",$$popoverBorderWeight:"$borderWeights$light"},normal:{bw:"$normal",$$popoverBorderWeight:"$borderWeights$normal"},bold:{bw:"$bold",$$popoverBorderWeight:"$borderWeights$bold"},extrabold:{bw:"$extrabold",$$popoverBorderWeight:"$borderWeights$extrabold"},black:{bw:"$black",$$popoverBorderWeight:"$borderWeights$black"}},isPositioned:{true:{visibility:"visible"},false:{visibility:"hidden"}},disableAnimation:{true:{transition:"none","&.nextui-popover-content-enter":{animation:"none"},"&.nextui-popover-content-leave":{animation:"none"}}}},defaultVariants:{isBordered:!1,borderWeight:"light"}},Pa),V8=U("div",{}),Ib=O.forwardRef((e,t)=>{const{children:r,as:n,css:o,className:i,...s}=e,{state:l,placement:a,overlayRef:u,disableAnimation:d,disableShadow:h,shouldCloseOnBlur:f,isDismissable:g,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:w,getPopoverProps:k,isBordered:m,borderWeight:v,onClose:P,onEntered:c,onExited:L,isPositioned:T}=Tb(),E=d8(a),M=p.useMemo(()=>({transformOrigin:E,...o}),[E,o]),{modalProps:F}=sP({isDisabled:!0}),{dialogProps:I}=_8({role:"dialog"},u),{overlayProps:y}=tP({onClose:P,isOpen:l.isOpen,isDismissable:g&&l.isOpen,shouldCloseOnBlur:f,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:w},u),R=Pe({isBordered:m,disableShadow:h,borderWeight:v},s),{isFocusVisible:x,focusProps:C}=Ea(),j=p.useMemo(()=>({clearTime:d?0:300,enterTime:d?0:20,leaveTime:d?0:60,name:"nextui-popover-content",visible:l.isOpen,onEntered:c,onExited:L}),[d,l.isOpen]),W=S.jsxs(U8,{ref:Tp(u,t),...k(Pe(y,F,I,C,R),M),as:n,className:ce("nextui-popover-content-container",i),disableAnimation:d,isFocusVisible:x,isPositioned:T,children:[S.jsx(ug,{onDismiss:P}),S.jsx(V8,{className:"nextui-popover-content",children:r}),S.jsx(ug,{onDismiss:P})]});return S.jsx(S.Fragment,{children:S.jsx(bP,{restoreFocus:!0,children:S.jsx(xp,{...j,children:W})})})});Ib.toString=()=>".nextui-popover-content";const G8=Ib;is.Content=G8,is.Trigger=h8;const Db=ZE;Db.toString=()=>".nextui-dropdown-item-base";const Y8=Db,[X8,La]=Ny({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),Ob=O.forwardRef((e,t)=>{const{children:r,...n}=e,{getMenuTriggerProps:o}=La();return S.jsx(is.Trigger,{...o(n),children:r})});Ob.toString=()=>".nextui-dropdown-trigger";const Nb=Ob;function Q8(e){return e&&e.__esModule?e.default:e}var Ab={},zb={};zb={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Bb={};Bb={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Kb={};Kb={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var jb={};jb={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var _b={};_b={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Hb={};Hb={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Wb={};Wb={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ub={};Ub={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Vb={};Vb={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Gb={};Gb={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Yb={};Yb={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Xb={};Xb={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Qb={};Qb={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var qb={};qb={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Zb={};Zb={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Jb={};Jb={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ex={};ex={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var tx={};tx={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var rx={};rx={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var nx={};nx={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ox={};ox={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ix={};ix={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var sx={};sx={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var lx={};lx={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ax={};ax={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var cx={};cx={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ux={};ux={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var dx={};dx={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fx={};fx={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var px={};px={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var hx={};hx={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var gx={};gx={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var mx={};mx={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var $x={};$x={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};Ab={"ar-AE":zb,"bg-BG":Bb,"cs-CZ":Kb,"da-DK":jb,"de-DE":_b,"el-GR":Hb,"en-US":Wb,"es-ES":Ub,"et-EE":Vb,"fi-FI":Gb,"fr-FR":Yb,"he-IL":Xb,"hr-HR":Qb,"hu-HU":qb,"it-IT":Zb,"ja-JP":Jb,"ko-KR":ex,"lt-LT":tx,"lv-LV":rx,"nb-NO":nx,"nl-NL":ox,"pl-PL":ix,"pt-BR":sx,"pt-PT":lx,"ro-RO":ax,"ru-RU":cx,"sk-SK":ux,"sl-SI":dx,"sr-SP":fx,"sv-SE":px,"tr-TR":hx,"uk-UA":gx,"zh-CN":mx,"zh-TW":$x};function q8(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,s=fp(),{triggerProps:l,overlayProps:a}=Ov({type:n},t,r),u=g=>{if(!o&&!(i==="longPress"&&!g.altKey)&&r&&r.current)switch(g.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break}},d=wv(Q8(Ab)),{longPressProps:h}=K6({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!o&&t.toggle(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!o&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...i==="press"?f:h,id:s,onKeyDown:u},menuProps:{...a,"aria-labelledby":s,autoFocus:t.focusStrategy,onClose:t.close}}}const vx=new WeakMap;function Z8(e,t,r){let{shouldFocusWrap:n=!0,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=u6(e,{labelable:!0}),{listProps:s}=QE({...o,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n});return vx.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Pe(i,{role:"menu",...s})}}function J8(e,t,r){let{key:n,closeOnSelect:o,isVirtualized:i}=e;var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.disabledKeys.has(n);var a;let u=(a=e.isSelected)!==null&&a!==void 0?a:t.selectionManager.isSelected(n),d=t.selectionManager.focusedKey===n,h=vx.get(t),f=e.onClose||h.onClose,g=e.onAction||h.onAction,b="menuitem";t.selectionManager.selectionMode==="single"?b="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(b="menuitemcheckbox");let w=jc(),k=jc(),m=jc(),v={"aria-disabled":l,role:b,"aria-label":e["aria-label"],"aria-labelledby":w,"aria-describedby":[k,m].filter(Boolean).join(" ")||void 0};t.selectionManager.selectionMode!=="none"&&(v["aria-checked"]=u),i&&(v["aria-posinset"]=t.collection.getItem(n).index,v["aria-setsize"]=Eb(t.collection));let P=I=>{if(!I.repeat)switch(I.key){case" ":!l&&t.selectionManager.selectionMode==="none"&&o!==!1&&f&&f();break;case"Enter":!l&&o!==!1&&f&&f();break}},c=I=>{I.pointerType==="keyboard"&&g&&g(n)},L=I=>{I.pointerType!=="keyboard"&&(g&&g(n),f&&(o??t.selectionManager.selectionMode!=="multiple")&&f())},{itemProps:T}=YE({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:E,isPressed:M}=hp({onPressStart:c,onPressUp:L,isDisabled:l}),{hoverProps:F}=$p({isDisabled:l,onHoverStart(){mp()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}});return{menuItemProps:{...v,...Pe(T,E,F,{onKeyDown:P})},labelProps:{id:w},descriptionProps:{id:k},keyboardShortcutProps:{id:m},isFocused:d,isSelected:u,isPressed:M,isDisabled:l}}function ek(e){let{heading:t,"aria-label":r}=e,n=fp();return{itemProps:{role:"presentation"},headingProps:t?{id:n,"aria-hidden":!0}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var tk=Symbol.iterator;class rk{*[tk](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.iterable=t,r=r||new Set;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||r.has(s.key)))for(let l of s.childNodes)n(l)};for(let s of t)n(s);let o,i=0;for(let[s,l]of this.keyMap)o?(o.nextKey=s,l.prevKey=o.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function nk(e){let[t,r]=cp(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),n=l8(e),o=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=r8(e,l=>new rk(l,{expandedKeys:t}),null,[t]);return p.useEffect(()=>{n.focusedKey!=null&&!i.getItem(n.focusedKey)&&n.setFocusedKey(null)},[i,n.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:l=>{r(ok(t,l))},selectionManager:new a8(i,n)}}function ok(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}const ik=U("ul",{$$dropdownItemHeight:"$space$13",$$dropdownMenuPadding:"$space$4",$$dropdownMenuWidth:"250px",$$dropdownMenuMinWidth:"250px",listStyle:"none",position:"relative",maxWidth:"$$dropdownMenuWidth",minWidth:"$$dropdownMenuMinWidth",width:"100%",p:"$$dropdownMenuPadding",m:0,outline:"none"}),sk=U("span",{dflex:"center",flexShrink:0,mr:"$4"}),nr=U("kbd",{opacity:.8,ml:"$4",mr:0,dflex:"center",color:"$$dropdownItemKeyboardColor",fontSize:"$xs",fontFamily:"$sans",boxShadow:"none",bg:"transparent",transition:"border 0.12s ease 0s"}),lk=U("div",{d:"flex",flex:"1 1 0%",flexDirection:"column",alignItems:"flex-start",lineHeight:1.2}),am=U("span",{flex:"1 1 0%"}),to=U("span",{fontSize:"$xs",color:"$$dropdownItemDescriptionColor",truncateText:"calc($$dropdownMenuWidth * 0.9)",transition:"color 0.12s ease 0s",variants:{hasIcon:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}},hasCommand:{true:{truncateText:"calc($$dropdownMenuWidth * 0.7)"}}},compoundVariants:[{hasIcon:!0,hasCommand:!0,css:{truncateText:"calc($$dropdownMenuWidth * 0.6)"}}]}),ak=U("li",{$$dropdownItemPressedScale:.97,$$dropdownItemTextColor:"$colors$text",$$dropdownItemBorderRadius:"$radii$sm",$$dropdownItemKeyboardColor:"$colors$accents8",$$dropdownItemDescriptionColor:"$colors$accents8",dflex:"center",outline:"none",cursor:"pointer",justifyContent:"space-between",bg:"transparent",position:"relative",height:"$$dropdownItemHeight",px:"$6",br:"$$dropdownItemBorderRadius",color:"$$dropdownItemTextColor",mb:0,transition:"$dropdownItem",transform:"translateZ(0)",backfaceVisibility:"hidden",$$dropdownItemShadow:"$colors$primaryShadow","@motion":{transition:"none",[`& ${nr}`]:{transition:"none"},[`& ${to}`]:{transition:"none"}},variants:{color:{default:{$$dropdownItemHoverBackground:"$colors$neutralLight",$$dropdownItemHoverTextColor:"$colors$neutralLightContrast",$$dropdownItemActiveBackground:"$colors$neutralLightActive",$$dropdownItemSolidHoverBackground:"$colors$neutral",$$dropdownItemSolidHoverTextColor:"$colors$neutralSolidContrast",$$dropdownItemShadow:"$colors$neutralShadow",$$dropdownItemHoverBorderColor:"$colors$neutralBorder"},primary:{$$dropdownItemHoverBackground:"$colors$primaryLight",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast",$$dropdownItemActiveBackground:"$colors$primaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$primary",$$dropdownItemSolidHoverTextColor:"$colors$primarySolidContrast",$$dropdownItemShadow:"$colors$primaryShadow",$$dropdownItemHoverBorderColor:"$colors$primaryBorder"},secondary:{$$dropdownItemHoverBackground:"$colors$secondaryLight",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast",$$dropdownItemActiveBackground:"$colors$secondaryLightActive",$$dropdownItemSolidHoverBackground:"$colors$secondary",$$dropdownItemSolidHoverTextColor:"$colors$secondarySolidContrast",$$dropdownItemShadow:"$colors$secondaryShadow",$$dropdownItemHoverBorderColor:"$colors$secondaryBorder"},success:{$$dropdownItemHoverBackground:"$colors$successLight",$$dropdownItemHoverTextColor:"$colors$successLightContrast",$$dropdownItemActiveBackground:"$colors$successLightActive",$$dropdownItemSolidHoverBackground:"$colors$success",$$dropdownItemSolidHoverTextColor:"$colors$successSolidContrast",$$dropdownItemShadow:"$colors$successShadow",$$dropdownItemHoverBorderColor:"$colors$successBorder"},warning:{$$dropdownItemHoverBackground:"$colors$warningLight",$$dropdownItemHoverTextColor:"$colors$warningLightContrast",$$dropdownItemActiveBackground:"$colors$warningLightActive",$$dropdownItemSolidHoverBackground:"$colors$warning",$$dropdownItemSolidHoverTextColor:"$colors$warningSolidContrast",$$dropdownItemShadow:"$colors$warningShadow",$$dropdownItemHoverBorderColor:"$colors$warningBorder"},error:{$$dropdownItemHoverBackground:"$colors$errorLight",$$dropdownItemHoverTextColor:"$colors$errorLightContrast",$$dropdownItemActiveBackground:"$colors$errorLightActive",$$dropdownItemSolidHoverBackground:"$colors$error",$$dropdownItemSolidHoverTextColor:"$colors$errorSolidContrast",$$dropdownItemShadow:"$colors$errorShadow",$$dropdownItemHoverBorderColor:"$colors$errorBorder"}},textColor:{default:{},primary:{$$dropdownItemTextColor:"$colors$primaryLightContrast",$$dropdownItemHoverTextColor:"$colors$primaryLightContrast"},secondary:{$$dropdownItemTextColor:"$colors$secondaryLightContrast",$$dropdownItemHoverTextColor:"$colors$secondaryLightContrast"},success:{$$dropdownItemTextColor:"$colors$successLightContrast",$$dropdownItemHoverTextColor:"$colors$successLightContrast"},warning:{$$dropdownItemTextColor:"$colors$warningLightContrast",$$dropdownItemHoverTextColor:"$colors$warningLightContrast"},error:{$$dropdownItemTextColor:"$colors$errorLightContrast",$$dropdownItemHoverTextColor:"$colors$errorLightContrast"}},variant:{flat:{true:{}},light:{true:{}},solid:{true:{}},shadow:{true:{}}},isPressed:{true:{bg:"$$dropdownItemActiveBackground"}},isFocused:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",zIndex:"$1",[`& ${nr}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${to}`]:{color:"currentColor"}}},isHovered:{true:{bg:"$$dropdownItemHoverBackground",color:"$$dropdownItemHoverTextColor",[`& ${nr}`]:{color:"$$dropdownItemHoverTextColor",borderColor:"$$dropdownItemHoverBorderColor"},[`& ${to}`]:{color:"currentColor"}}},shouldShowOutline:{true:{outline:"solid 2px $$dropdownItemActiveBackground"}},isSelected:{true:{}},isSelectable:{true:{}},isDisabled:{true:{color:"$accents5",cursor:"default"}},withDescription:{true:{height:"calc($$dropdownItemHeight * 1.2)"}},withDivider:{true:{mt:"$6","&:before":{content:'""',position:"absolute",top:"-$3",left:"-$$dropdownMenuPadding",right:"-$$dropdownMenuPadding",height:"$$dropdownItemBorderWeight",bg:"$border"}}},dividerWeight:{light:{$$dropdownItemBorderWeight:"$borderWeights$light"},normal:{$$dropdownItemBorderWeight:"$borderWeights$normal"},bold:{$$dropdownItemBorderWeight:"$borderWeights$bold"},extrabold:{$$dropdownItemBorderWeight:"$borderWeights$extrabold"},black:{$$dropdownItemBorderWeight:"$borderWeights$black"}},showFullDescription:{true:{[`& ${to}`]:{mt:"$2",overflow:"visible",textOverflow:"visible",whiteSpace:"normal"}}},disableAnimation:{true:{transition:"none",[`& ${nr}`]:{transition:"none"},[`& ${to}`]:{transition:"none"}}}},compoundVariants:[{isPressed:!0,disableAnimation:!1,css:{transform:"scale($$dropdownItemPressedScale)"}},{isHovered:!0,variant:"light",css:{bg:"transparent"}},{isFocused:!0,variant:"light",css:{bg:"transparent"}},{isHovered:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${nr}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"solid",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",[`& ${nr}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isHovered:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${nr}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{isFocused:!0,variant:"shadow",css:{bg:"$$dropdownItemSolidHoverBackground",color:"$$dropdownItemSolidHoverTextColor",boxShadow:"0 3px 10px 0 $$dropdownItemShadow",[`& ${nr}`]:{color:"$$dropdownItemSolidHoverTextColor"}}},{variant:"flat",color:"default",css:{$$dropdownItemHoverTextColor:"$colors$foreground"}}],defaultVariants:{color:"default",textColor:"default",dividerWeight:"light",variant:"flat"}},Pa),ck=U("li",{mb:0}),uk=U("ul",{m:0,p:0,listStyle:"none"}),dk=U("span",{fontWeight:"$medium",fontSize:"$xs",padding:"0 $4",color:"$accents8"}),fk=nt({"100%":{strokeDashoffset:0}}),pk=U("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${fk} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),yx=e=>{const{width:t=24,height:r=24,size:n,strokeWidth:o=3,fill:i="currentColor",css:s,className:l}=e;return S.jsx(pk,{className:ce("nextui-checkmark",l),css:s,height:n||r,role:"img",viewBox:"0 0 52 52",width:n||t,xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M14.1 27.2l7.1 7.2 16.7-16.8",fill:"none",stroke:i,strokeWidth:o})})};yx.toString=()=>".nextui-checkmark";const hk=yx,bx=({as:e,css:t,item:r,state:n,color:o,icon:i,command:s,description:l,textColor:a,variant:u,autoFocus:d,isVirtualized:h,withDivider:f,dividerWeight:g,showFullDescription:b,className:w,onAction:k})=>{const{onClose:m,closeOnSelect:v,disableAnimation:P,borderWeight:c}=La(),{rendered:L,key:T}=r,E=n.selectionManager.isSelected(T),M=n.selectionManager.focusedKey===r.key,F=n.disabledKeys.has(T),I=p.useRef(null),{pressProps:y,isPressed:R}=hp({ref:I,isDisabled:F}),{isFocusVisible:x,focusProps:C}=Ea({autoFocus:d}),{hoverProps:j,isHovered:W}=$p({isDisabled:F}),B=n.selectionManager.selectionMode!=="none"&&!F,{menuItemProps:D,labelProps:K,descriptionProps:H,keyboardShortcutProps:J}=J8({key:T,onClose:m,isSelected:E,isDisabled:F,"aria-label":r["aria-label"],closeOnSelect:v,isVirtualized:h,onAction:k},n,I),X=p.useMemo(()=>W?"hovered":E?"selected":R?"pressed":F?"disabled":"ready",[E,F,W,R]),Oe=p.useMemo(()=>r.props.textColor?r.props.textColor:r.props.color&&a==="default"?r.props.color:a,[a,r.props.color,r.props.textColor]),ue=p.useMemo(()=>l||r.props.description,[l,r.props.description]),Ce=p.useMemo(()=>s||r.props.command,[s,r.props.command]),ve=p.useMemo(()=>i||r.props.icon,[i,r.props.icon]);return S.jsxs(ak,{ref:I,...Pe(D,j,y,C),as:r.props.as||e,className:ce("nextui-dropdown-item",{"is-disabled":F,"is-selected":E,"is-selectable":B,"is-hovered":W,"is-focused":M,"is-pressed":R},w,r.props.className),color:r.props.color||o,css:{...Pe(t,r.props.css)},"data-state":X,disableAnimation:P,dividerWeight:g||r.props.dividerWeight||c,isDisabled:F,isFocusVisible:x,isFocused:M,isHovered:W,isPressed:R,isSelectable:B,isSelected:E,shouldShowOutline:x&&u==="shadow",showFullDescription:b||r.props.showFullDescription,textColor:Oe,variant:r.props.variant||u,withDescription:!!ue,withDivider:f||r.props.withDivider,children:[ve&&S.jsx(sk,{className:"nextui-dropdown-item-icon-wrapper",children:ve}),ue?S.jsxs(lk,{children:[S.jsx(am,{className:"nextui-dropdown-item-content",...K,children:L}),S.jsx(to,{className:"nextui-dropdown-item-description",hasCommand:!!Ce,hasIcon:!!ve,...H,children:ue})]}):S.jsx(am,{className:"nextui-dropdown-item-content",...K,children:L}),Ce&&S.jsx(nr,{className:"nextui-dropdown-item-command",...J,children:Ce}),E&&S.jsx(hk,{css:{ml:"$4"}})]})};bx.toString=()=>".nextui-dropdown-item";const xx=bx,wx=e=>{var t,r;const{item:n,state:o,css:i,as:s,color:l,textColor:a,variant:u,withDivider:d=!0,className:h,onAction:f}=e,{itemProps:g,headingProps:b,groupProps:w}=ek({heading:n.rendered,"aria-label":n["aria-label"]});return S.jsxs(p.Fragment,{children:[n.key!==o.collection.getFirstKey()&&d&&S.jsx(E7,{as:"li",className:"nextui-dropdown-section-divider",css:{my:"$2"}}),S.jsxs(ck,{...g,className:"nextui-dropdown-section-wrapper",children:[n.rendered&&S.jsx(dk,{...b,className:"nextui-dropdown-section-title",children:n.rendered}),S.jsx(uk,{...w,as:((t=n.props)==null?void 0:t.as)||s,className:ce("nextui-dropdown-section",h),css:{...Pe(i,(r=n.props)==null?void 0:r.css)},children:[...n.childNodes].map(k=>{let m=S.jsx(xx,{color:l,item:k,state:o,textColor:a,variant:u,onAction:f},k.key);return k.wrapper&&(m=k.wrapper(m)),m})})]})]})};wx.toString=()=>".nextui-dropdown-section";const gk=wx,Sx=O.forwardRef((e,t)=>{const{as:r,css:n,color:o="default",textColor:i="default",variant:s="flat",containerCss:l,...a}=e,u=La(),d={...Pe(u,a)},h=oi(t),f=nk(d),{menuProps:g}=Z8(d,f,h);return TP(u,h),S.jsx(is.Content,{css:l,children:S.jsx(ik,{ref:h,as:r,className:ce("nextui-dropdown-menu",e.className),css:n,...g,children:[...f.collection].map(b=>{if(b.type==="section")return S.jsx(gk,{color:o,item:b,state:f,textColor:i,variant:s,onAction:d.onAction},b.key);let w=S.jsx(xx,{color:o,item:b,state:f,textColor:i,variant:s,onAction:d.onAction},b.key);return b.wrapper&&(w=b.wrapper(w)),w})})})});Sx.toString=()=>".nextui-dropdown-menu";const mk=Sx,Px=({fill:e,size:t,height:r,width:n,...o})=>S.jsx("svg",{fill:"none",height:t||r||24,viewBox:"0 0 24 24",width:t||n||24,xmlns:"http://www.w3.org/2000/svg",...o,children:S.jsx("path",{d:"M17.9188 8.17969H11.6888H6.07877C5.11877 8.17969 4.63877 9.33969 5.31877 10.0197L10.4988 15.1997C11.3288 16.0297 12.6788 16.0297 13.5088 15.1997L15.4788 13.2297L18.6888 10.0197C19.3588 9.33969 18.8788 8.17969 17.9188 8.17969Z",fill:e})});Px.toString=()=>".nextui-dropdown-icon";const $k=Px,Cx=O.forwardRef((e,t)=>{const{css:r,children:n,className:o,iconRight:i,iconRightCss:s,auto:l=!0,animated:a,...u}=e,{disableAnimation:d}=La(),h=oi(t),f=p.useMemo(()=>i||S.jsx($k,{fill:"currentColor",size:14}),[i]),g=p.useMemo(()=>a||!d,[a,d]);return S.jsx(Nb,{css:{"& .nextui-button-icon-right, & .nextui-button-text-right":{pointerEvents:"none"},...r},children:S.jsx(Do,{ref:h,animated:g,auto:l,className:ce("nextui-dropdown-button",o),iconRight:f,iconRightCss:{mt:"$1",...s},...u,children:n})})});Cx.toString=()=>".nextui-dropdown-button";const vk=Cx;function yk(e){let t=kb(e),[r,n]=p.useState(null);return{focusStrategy:r,...t,open(o=null){n(o),t.open()},toggle(o=null){n(o),t.toggle()}}}function bk(e={}){const{triggerRef:t,type:r="menu",trigger:n="press",isDisabled:o=!1,borderWeight:i,closeOnSelect:s,disableAnimation:l=!1,disableTriggerPressedAnimation:a=!1,isOpen:u,defaultOpen:d,onOpenChange:h,...f}=e,g=p.useRef(null),b=t||g,w=p.useRef(null),k=p.useRef(null),m=yk({...e,isOpen:u,defaultOpen:d,onOpenChange:h}),{menuTriggerProps:v,menuProps:P}=q8({type:r,trigger:n,isDisabled:o},m,b),c=p.useCallback(()=>{m.close(),f.onClose==null||f.onClose()},[m.close,f.onClose]),L=p.useCallback((T={},E=null)=>{const{css:M,...F}=t!=null&&t.current?Pe(v,T):Pe(T,v);return{ref:Tp(g,E),css:a?M:{'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,backfaceVisibility:"hidden",transform:"translateZ(0) scale(0.97)"},...M},...F}},[g,t,v,a]);return{...P,popoverProps:f,state:m,ref:w,onClose:c,autoFocus:m.focusStrategy||!0,disableAnimation:l,disableTriggerPressedAnimation:a,menuRef:w,borderWeight:i,menuPopoverRef:k,menuTriggerRef:b,closeOnSelect:s,getMenuTriggerProps:L}}const Ex=e=>{const{children:t,...r}=e,n=bk(r),[o,i]=O.Children.toArray(t);return S.jsx(X8,{value:n,children:S.jsxs(is,{ref:n.menuPopoverRef,...n.popoverProps,borderWeight:n.borderWeight,disableAnimation:n.disableAnimation,isOpen:n.state.isOpen,scrollRef:n.menuRef,triggerRef:n.menuTriggerRef,onClose:n.onClose,children:[o,i]})})};Ex.toString=()=>".nextui-dropdown";const st=Ex;st.Trigger=Nb,st.Button=vk,st.Menu=mk,st.Section=JE,st.Item=Y8;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var ne={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fp=Symbol.for("react.element"),Ip=Symbol.for("react.portal"),Ma=Symbol.for("react.fragment"),Ra=Symbol.for("react.strict_mode"),Fa=Symbol.for("react.profiler"),Ia=Symbol.for("react.provider"),Da=Symbol.for("react.context"),xk=Symbol.for("react.server_context"),Oa=Symbol.for("react.forward_ref"),Na=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),wk=Symbol.for("react.offscreen"),kx;kx=Symbol.for("react.module.reference");function Ct(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Fp:switch(e=e.type,e){case Ma:case Fa:case Ra:case Na:case Aa:return e;default:switch(e=e&&e.$$typeof,e){case xk:case Da:case Oa:case Ba:case za:case Ia:return e;default:return t}}case Ip:return t}}}ne.ContextConsumer=Da;ne.ContextProvider=Ia;ne.Element=Fp;ne.ForwardRef=Oa;ne.Fragment=Ma;ne.Lazy=Ba;ne.Memo=za;ne.Portal=Ip;ne.Profiler=Fa;ne.StrictMode=Ra;ne.Suspense=Na;ne.SuspenseList=Aa;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return Ct(e)===Da};ne.isContextProvider=function(e){return Ct(e)===Ia};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fp};ne.isForwardRef=function(e){return Ct(e)===Oa};ne.isFragment=function(e){return Ct(e)===Ma};ne.isLazy=function(e){return Ct(e)===Ba};ne.isMemo=function(e){return Ct(e)===za};ne.isPortal=function(e){return Ct(e)===Ip};ne.isProfiler=function(e){return Ct(e)===Fa};ne.isStrictMode=function(e){return Ct(e)===Ra};ne.isSuspense=function(e){return Ct(e)===Na};ne.isSuspenseList=function(e){return Ct(e)===Aa};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ma||e===Fa||e===Ra||e===Na||e===Aa||e===wk||typeof e=="object"&&e!==null&&(e.$$typeof===Ba||e.$$typeof===za||e.$$typeof===Ia||e.$$typeof===Da||e.$$typeof===Oa||e.$$typeof===kx||e.getModuleId!==void 0)};ne.typeOf=Ct;function ro(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Tx(e){if(!ro(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Tx(e[r])}),t}function ur(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ro(e)&&ro(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ro(t[o])&&o in e&&ro(e[o])?n[o]=ur(e[o],t[o],r):r.clone?n[o]=ro(t[o])?Tx(t[o]):t[o]:n[o]=t[o])}),n}function Yo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Pk(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Ck(e,t){return()=>null}function Ek(e,t){return p.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Lx(e){return e&&e.ownerDocument||document}function kk(e){return Lx(e).defaultView||window}function Tk(e,t){return()=>null}function Mx(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Lk=typeof window<"u"?p.useLayoutEffect:p.useEffect,Rx=Lk;let cm=0;function Mk(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(cm+=1,r(`mui-${cm}`))},[t]),n}const um=gu["useId".toString()];function Rk(e){if(um!==void 0){const t=um();return e??t}return Mk(e)}function Fk(e,t,r,n,o){return null}function Ik({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),l=o?e:i,a=p.useCallback(u=>{o||s(u)},[]);return[l,a]}function Li(e){const t=p.useRef(e);return Rx(()=>{t.current=e}),p.useCallback((...r)=>(0,t.current)(...r),[])}function Qd(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Mx(r,t)})},e)}let Ka=!0,qd=!1,dm;const Dk={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ok(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Dk[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Nk(e){e.metaKey||e.altKey||e.ctrlKey||(Ka=!0)}function du(){Ka=!1}function Ak(){this.visibilityState==="hidden"&&qd&&(Ka=!0)}function zk(e){e.addEventListener("keydown",Nk,!0),e.addEventListener("mousedown",du,!0),e.addEventListener("pointerdown",du,!0),e.addEventListener("touchstart",du,!0),e.addEventListener("visibilitychange",Ak,!0)}function Bk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ka||Ok(t)}function Fx(){const e=p.useCallback(o=>{o!=null&&zk(o.ownerDocument)},[]),t=p.useRef(!1);function r(){return t.current?(qd=!0,window.clearTimeout(dm),dm=window.setTimeout(()=>{qd=!1},100),t.current=!1,!0):!1}function n(o){return Bk(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Ix(e,t){const r={...t};return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]={...e[n],...r[n]};else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]={...i},Object.keys(o).forEach(s=>{r[n][s]=Ix(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function ii(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}const fm=e=>e,Kk=()=>{let e=fm;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fm}}},jk=Kk(),Dx=jk,_k={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Cn(e,t,r="Mui"){const n=_k[t];return n?`${r}-${n}`:`${Dx.generate(e)}-${t}`}function En(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Cn(e,o,r)}),n}function Ox(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Hk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Wk=Ox(function(e){return Hk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Uk(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(si,--rt):0,Xo--,we===10&&(Xo=1,_a--),we}function dt(){return we=rt2||ls(we)>3?"":" "}function oT(e,t){for(;--t&&dt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return bs(e,yl()+(t<6&&Ut()==32&&dt()==32))}function Jd(e){for(;dt();)switch(we){case e:return rt;case 34:case 39:e!==34&&e!==39&&Jd(we);break;case 40:e===41&&Jd(e);break;case 92:dt();break}return rt}function iT(e,t){for(;dt()&&e+we!==47+10;)if(e+we===42+42&&Ut()===47)break;return"/*"+bs(t,rt-1)+"*"+ja(e===47?e:dt())}function sT(e){for(;!ls(Ut());)dt();return bs(e,rt)}function lT(e){return jx(xl("",null,null,null,[""],e=Kx(e),0,[0],e))}function xl(e,t,r,n,o,i,s,l,a){for(var u=0,d=0,h=s,f=0,g=0,b=0,w=1,k=1,m=1,v=0,P="",c=o,L=i,T=n,E=P;k;)switch(b=v,v=dt()){case 40:if(b!=108&&Fe(E,h-1)==58){Zd(E+=q(bl(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=bl(v);break;case 9:case 10:case 13:case 32:E+=nT(b);break;case 92:E+=oT(yl()-1,7);continue;case 47:switch(Ut()){case 42:case 47:el(aT(iT(dt(),yl()),t,r),a);break;default:E+="/"}break;case 123*w:l[u++]=Bt(E)*m;case 125*w:case 59:case 0:switch(v){case 0:case 125:k=0;case 59+d:m==-1&&(E=q(E,/\f/g,"")),g>0&&Bt(E)-h&&el(g>32?hm(E+";",n,r,h-1):hm(q(E," ","")+";",n,r,h-2),a);break;case 59:E+=";";default:if(el(T=pm(E,t,r,u,d,o,l,P,c=[],L=[],h),i),v===123)if(d===0)xl(E,t,T,T,c,i,h,l,L);else switch(f===99&&Fe(E,3)===110?100:f){case 100:case 108:case 109:case 115:xl(e,T,T,n&&el(pm(e,T,T,0,0,o,l,P,o,c=[],h),L),o,L,h,l,n?c:L);break;default:xl(E,T,T,T,[""],L,0,l,L)}}u=d=g=0,w=m=1,P=E="",h=s;break;case 58:h=1+Bt(E),g=b;default:if(w<1){if(v==123)--w;else if(v==125&&w++==0&&rT()==125)continue}switch(E+=ja(v),v*w){case 38:m=d>0?1:(E+="\f",-1);break;case 44:l[u++]=(Bt(E)-1)*m,m=1;break;case 64:Ut()===45&&(E+=bl(dt())),f=Ut(),d=h=Bt(P=E+=sT(yl())),v++;break;case 45:b===45&&Bt(E)==2&&(w=0)}}return i}function pm(e,t,r,n,o,i,s,l,a,u,d){for(var h=o-1,f=o===0?i:[""],g=Np(f),b=0,w=0,k=0;b0?f[m]+" "+v:q(v,/&\f/g,f[m])))&&(a[k++]=P);return Ha(e,t,r,o===0?Dp:l,a,u,d)}function aT(e,t,r){return Ha(e,t,r,Nx,ja(tT()),ss(e,2,-2),0)}function hm(e,t,r,n){return Ha(e,t,r,Op,ss(e,0,n),ss(e,n+1,-1),n)}function Oo(e,t){for(var r="",n=Np(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+ra+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zd(e,"stretch")?_x(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Bt(e)-3-(~Zd(e,"!important")&&10))){case 107:return q(e,":",":"+Q)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Q+e+Be+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Be+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Be+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Be+e+e}return e}var $T=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Op:t.return=_x(t.value,t.length);break;case Ax:return Oo([yi(t,{value:q(t.value,"@","@"+Q)})],o);case Dp:if(t.length)return eT(t.props,function(i){switch(Jk(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oo([yi(t,{props:[q(i,/:(read-\w+)/,":"+ra+"$1")]})],o);case"::placeholder":return Oo([yi(t,{props:[q(i,/:(plac\w+)/,":"+Q+"input-$1")]}),yi(t,{props:[q(i,/:(plac\w+)/,":"+ra+"$1")]}),yi(t,{props:[q(i,/:(plac\w+)/,Be+"input-$1")]})],o)}return""})}},vT=[$T],yT=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var k=w.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||vT,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var k=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var FT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},IT=/[A-Z]|^ms/g,DT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yx=function(t){return t.charCodeAt(1)===45},mm=function(t){return t!=null&&typeof t!="boolean"},fu=Ox(function(e){return Yx(e)?e:e.replace(IT,"-$&").toLowerCase()}),$m=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(DT,function(n,o,i){return Kt={name:o,styles:i,next:Kt},o})}return FT[t]!==1&&!Yx(t)&&typeof r=="number"&&r!==0?r+"px":r};function as(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Kt={name:r.name,styles:r.styles,next:Kt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Kt={name:n.name,styles:n.styles,next:Kt},n=n.next;var o=r.styles+";";return o}return OT(e,t,r)}case"function":{if(e!==void 0){var i=Kt,s=r(e);return Kt=i,as(e,t,s)}break}}if(t==null)return r;var l=t[r];return l!==void 0?l:r}function OT(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?jT:_T},bm=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},HT=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Gx(r,n,o),zT(function(){return MT(r,n,o)}),null},WT=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var l=bm(t,r,n),a=l||ym(o),u=!a("as");return function(){var d=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var f=d.length,g=1;g{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},YT=["values","unit","step"],XT=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>_({},r,{[n.key]:n.val}),{})};function QT(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=He(e,YT),i=XT(t),s=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-n/100}${r})`}function d(f){return s.indexOf(f)+1`@media (min-width:${jp[e]}px)`};function mr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||xm;return t.reduce((s,l,a)=>(s[i.up(i.keys[a])]=r(t[a]),s),{})}if(typeof t=="object"){const i=n.breakpoints||xm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||jp).indexOf(l)!==-1){const a=i.up(l);s[a]=r(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return r(t)}function JT(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function e9(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ec(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function na(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ec(e,r)||n,t&&(o=t(o,n,e)),o}function Z(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=ec(a,n)||{};return mr(s,l,h=>{let f=na(u,o,h);return h===f&&typeof h=="string"&&(f=na(u,o,`${t}${h==="default"?"":ut(h)}`,h)),r===!1?f:{[r]:f}})};return i.propTypes={},i.filterProps=[t],i}function t9(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const r9={m:"margin",p:"padding"},n9={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},o9=t9(e=>{if(e.length>2)if(wm[e])e=wm[e];else return[e];const[t,r]=e.split(""),n=r9[t],o=n9[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),_p=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._p,...Hp];function xs(e,t,r,n){var o;const i=(o=ec(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Zx(e){return xs(e,"spacing",8)}function ws(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function i9(e,t){return r=>e.reduce((n,o)=>(n[o]=ws(t,r),n),{})}function s9(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=o9(r),i=i9(o,n),s=e[r];return mr(e,s,i)}function Jx(e,t){const r=Zx(e.theme);return Object.keys(e).map(n=>s9(e,t,n,r)).reduce(Bi,{})}function ge(e){return Jx(e,_p)}ge.propTypes={};ge.filterProps=_p;function me(e){return Jx(e,Hp)}me.propTypes={};me.filterProps=Hp;function l9(e=8){if(e.mui)return e;const t=Zx({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function tc(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Bi(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function _t(e){return typeof e!="number"?e:`${e}px solid`}const a9=Z({prop:"border",themeKey:"borders",transform:_t}),c9=Z({prop:"borderTop",themeKey:"borders",transform:_t}),u9=Z({prop:"borderRight",themeKey:"borders",transform:_t}),d9=Z({prop:"borderBottom",themeKey:"borders",transform:_t}),f9=Z({prop:"borderLeft",themeKey:"borders",transform:_t}),p9=Z({prop:"borderColor",themeKey:"palette"}),h9=Z({prop:"borderTopColor",themeKey:"palette"}),g9=Z({prop:"borderRightColor",themeKey:"palette"}),m9=Z({prop:"borderBottomColor",themeKey:"palette"}),$9=Z({prop:"borderLeftColor",themeKey:"palette"}),rc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xs(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ws(t,n)});return mr(e,e.borderRadius,r)}return null};rc.propTypes={};rc.filterProps=["borderRadius"];tc(a9,c9,u9,d9,f9,p9,h9,g9,m9,$9,rc);const nc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xs(e.theme,"spacing",8),r=n=>({gap:ws(t,n)});return mr(e,e.gap,r)}return null};nc.propTypes={};nc.filterProps=["gap"];const oc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xs(e.theme,"spacing",8),r=n=>({columnGap:ws(t,n)});return mr(e,e.columnGap,r)}return null};oc.propTypes={};oc.filterProps=["columnGap"];const ic=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xs(e.theme,"spacing",8),r=n=>({rowGap:ws(t,n)});return mr(e,e.rowGap,r)}return null};ic.propTypes={};ic.filterProps=["rowGap"];const v9=Z({prop:"gridColumn"}),y9=Z({prop:"gridRow"}),b9=Z({prop:"gridAutoFlow"}),x9=Z({prop:"gridAutoColumns"}),w9=Z({prop:"gridAutoRows"}),S9=Z({prop:"gridTemplateColumns"}),P9=Z({prop:"gridTemplateRows"}),C9=Z({prop:"gridTemplateAreas"}),E9=Z({prop:"gridArea"});tc(nc,oc,ic,v9,y9,b9,x9,w9,S9,P9,C9,E9);function No(e,t){return t==="grey"?t:e}const k9=Z({prop:"color",themeKey:"palette",transform:No}),T9=Z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:No}),L9=Z({prop:"backgroundColor",themeKey:"palette",transform:No});tc(k9,T9,L9);function lt(e){return e<=1&&e!==0?`${e*100}%`:e}const M9=Z({prop:"width",transform:lt}),Wp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o,i;return{maxWidth:((n=e.theme)==null||(o=n.breakpoints)==null||(i=o.values)==null?void 0:i[r])||jp[r]||lt(r)}};return mr(e,e.maxWidth,t)}return null};Wp.filterProps=["maxWidth"];const R9=Z({prop:"minWidth",transform:lt}),F9=Z({prop:"height",transform:lt}),I9=Z({prop:"maxHeight",transform:lt}),D9=Z({prop:"minHeight",transform:lt});Z({prop:"size",cssProperty:"width",transform:lt});Z({prop:"size",cssProperty:"height",transform:lt});const O9=Z({prop:"boxSizing"});tc(M9,Wp,R9,F9,I9,D9,O9);const N9={border:{themeKey:"borders",transform:_t},borderTop:{themeKey:"borders",transform:_t},borderRight:{themeKey:"borders",transform:_t},borderBottom:{themeKey:"borders",transform:_t},borderLeft:{themeKey:"borders",transform:_t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:rc},color:{themeKey:"palette",transform:No},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:No},backgroundColor:{themeKey:"palette",transform:No},p:{style:me},pt:{style:me},pr:{style:me},pb:{style:me},pl:{style:me},px:{style:me},py:{style:me},padding:{style:me},paddingTop:{style:me},paddingRight:{style:me},paddingBottom:{style:me},paddingLeft:{style:me},paddingX:{style:me},paddingY:{style:me},paddingInline:{style:me},paddingInlineStart:{style:me},paddingInlineEnd:{style:me},paddingBlock:{style:me},paddingBlockStart:{style:me},paddingBlockEnd:{style:me},m:{style:ge},mt:{style:ge},mr:{style:ge},mb:{style:ge},ml:{style:ge},mx:{style:ge},my:{style:ge},margin:{style:ge},marginTop:{style:ge},marginRight:{style:ge},marginBottom:{style:ge},marginLeft:{style:ge},marginX:{style:ge},marginY:{style:ge},marginInline:{style:ge},marginInlineStart:{style:ge},marginInlineEnd:{style:ge},marginBlock:{style:ge},marginBlockStart:{style:ge},marginBlockEnd:{style:ge},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nc},rowGap:{style:ic},columnGap:{style:oc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:lt},maxWidth:{style:Wp},minWidth:{transform:lt},height:{transform:lt},maxHeight:{transform:lt},minHeight:{transform:lt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Up=N9;function A9(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function z9(e,t){return typeof e=="function"?e(t):e}function B9(){function e(r,n,o,i){const s={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:a=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=ec(o,u)||{};return h?h(s):mr(s,n,b=>{let w=na(f,d,b);return b===w&&typeof b=="string"&&(w=na(f,d,`${r}${b==="default"?"":ut(b)}`,b)),a===!1?w:{[a]:w}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:Up;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const d=JT(i.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(g=>{const b=z9(u[g],i);if(b!=null)if(typeof b=="object")if(s[g])f=Bi(f,e(g,b,i,s));else{const w=mr({theme:i},b,k=>({[g]:k}));A9(w,b)?f[g]=t({sx:b,theme:i}):f=Bi(f,w)}else f=Bi(f,e(g,b,i,s))}),e9(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const ew=B9();ew.filterProps=["sx"];const Vp=ew,K9=["breakpoints","palette","spacing","shape"];function Gp(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=He(e,K9),l=QT(r),a=l9(o);let u=ur({breakpoints:l,direction:"ltr",components:{},palette:_({mode:"light"},n),spacing:a,shape:_({},ZT,i)},s);return u=t.reduce((d,h)=>ur(d,h),u),u.unstable_sxConfig=_({},Up,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return Vp({sx:h,theme:this})},u}function j9(e){return Object.keys(e).length===0}function _9(e=null){const t=p.useContext(qx);return!t||j9(t)?e:t}const H9=Gp();function W9(e=H9){return _9(e)}const U9=["variant"];function Sm(e){return e.length===0}function tw(e){const{variant:t}=e,r=He(e,U9);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=Sm(n)?e[o]:ut(e[o]):n+=`${Sm(n)?o:ut(o)}${ut(e[o].toString())}`}),n}const V9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function G9(e){return Object.keys(e).length===0}function Y9(e){return typeof e=="string"&&e.charCodeAt(0)>96}const X9=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Q9=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const i=tw(o.props);n[i]=o.style}),n},q9=(e,t,r,n)=>{var o,i;const{ownerState:s={}}=e,l=[],a=r==null||(o=r.components)==null||(i=o[n])==null?void 0:i.variants;return a&&a.forEach(u=>{let d=!0;Object.keys(u.props).forEach(h=>{s[h]!==u.props[h]&&e[h]!==u.props[h]&&(d=!1)}),d&&l.push(t[tw(u.props)])}),l};function wl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Z9=Gp();function bi({defaultTheme:e,theme:t,themeId:r}){return G9(t)?e:t[r]||t}function J9(e={}){const{themeId:t,defaultTheme:r=Z9,rootShouldForwardProp:n=wl,slotShouldForwardProp:o=wl}=e,i=s=>Vp(_({},s,{theme:bi(_({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{GT(s,c=>c.filter(L=>!(L!=null&&L.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f}=l,g=He(l,V9),b=d!==void 0?d:u&&u!=="Root"||!1,w=h||!1;let k,m=wl;u==="Root"?m=n:u?m=o:Y9(s)&&(m=void 0);const v=VT(s,_({shouldForwardProp:m,label:k},g)),P=(c,...L)=>{const T=L?L.map(I=>typeof I=="function"&&I.__emotion_real!==I?y=>I(_({},y,{theme:bi(_({},y,{defaultTheme:r,themeId:t}))})):I):[];let E=c;a&&f&&T.push(I=>{const y=bi(_({},I,{defaultTheme:r,themeId:t})),R=X9(a,y);if(R){const x={};return Object.entries(R).forEach(([C,j])=>{x[C]=typeof j=="function"?j(_({},I,{theme:y})):j}),f(I,x)}return null}),a&&!b&&T.push(I=>{const y=bi(_({},I,{defaultTheme:r,themeId:t}));return q9(I,Q9(a,y),y,a)}),w||T.push(i);const M=T.length-L.length;if(Array.isArray(c)&&M>0){const I=new Array(M).fill("");E=[...c,...I],E.raw=[...c.raw,...I]}else typeof c=="function"&&c.__emotion_real!==c&&(E=I=>c(_({},I,{theme:bi(_({},I,{defaultTheme:r,themeId:t}))})));const F=v(E,...T);return s.muiName&&(F.muiName=s.muiName),F};return v.withConfig&&(P.withConfig=v.withConfig),P}}function eL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ix(t.components[r].defaultProps,n)}function tL({props:e,name:t,defaultTheme:r,themeId:n}){let o=W9(r);return n&&(o=o[n]||o),eL({theme:o,name:t,props:e})}function Yp(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function rL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function bn(e){if(e.type)return e;if(e.charAt(0)==="#")return bn(rL(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Yo(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Yo(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function sc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nL(e){e=bn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,d=(u+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),sc({type:l,values:a})}function Pm(e){e=bn(e);let t=e.type==="hsl"||e.type==="hsla"?bn(nL(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oL(e,t){const r=Pm(e),n=Pm(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Cm(e,t){return e=bn(e),t=Yp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sc(e)}function iL(e,t){if(e=bn(e),t=Yp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return sc(e)}function sL(e,t){if(e=bn(e),t=Yp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return sc(e)}function lL(e,t){return _({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const aL={black:"#000",white:"#fff"},cs=aL,cL={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},uL=cL,dL={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hn=dL,fL={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wn=fL,pL={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xi=pL,hL={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Un=hL,gL={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Vn=gL,mL={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Gn=mL,$L=["mode","contrastThreshold","tonalOffset"],Em={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:cs.white,default:cs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},pu={text:{primary:cs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:cs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function km(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=sL(e.main,o):t==="dark"&&(e.dark=iL(e.main,i)))}function vL(e="light"){return e==="dark"?{main:Un[200],light:Un[50],dark:Un[400]}:{main:Un[700],light:Un[400],dark:Un[800]}}function yL(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[500],light:Hn[300],dark:Hn[700]}}function bL(e="light"){return e==="dark"?{main:Wn[500],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[400],dark:Wn[800]}}function xL(e="light"){return e==="dark"?{main:Vn[400],light:Vn[300],dark:Vn[700]}:{main:Vn[700],light:Vn[500],dark:Vn[900]}}function wL(e="light"){return e==="dark"?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:Gn[800],light:Gn[500],dark:Gn[900]}}function SL(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:"#ed6c02",light:xi[500],dark:xi[900]}}function PL(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=He(e,$L),i=e.primary||vL(t),s=e.secondary||yL(t),l=e.error||bL(t),a=e.info||xL(t),u=e.success||wL(t),d=e.warning||SL(t);function h(w){return oL(w,pu.text.primary)>=r?pu.text.primary:Em.text.primary}const f=({color:w,name:k,mainShade:m=500,lightShade:v=300,darkShade:P=700})=>{if(w=_({},w),!w.main&&w[m]&&(w.main=w[m]),!w.hasOwnProperty("main"))throw new Error(Yo(11,k?` (${k})`:"",m));if(typeof w.main!="string")throw new Error(Yo(12,k?` (${k})`:"",JSON.stringify(w.main)));return km(w,"light",v,n),km(w,"dark",P,n),w.contrastText||(w.contrastText=h(w.main)),w},g={dark:pu,light:Em};return ur(_({common:_({},cs),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:u,name:"success"}),grey:uL,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},g[t]),o)}const CL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function EL(e){return Math.round(e*1e5)/1e5}const Tm={textTransform:"uppercase"},Lm='"Roboto", "Helvetica", "Arial", sans-serif';function kL(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Lm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=He(r,CL),g=o/14,b=h||(m=>`${m/u*g}rem`),w=(m,v,P,c,L)=>_({fontFamily:n,fontWeight:m,fontSize:b(v),lineHeight:P},n===Lm?{letterSpacing:`${EL(c/v)}em`}:{},L,d),k={h1:w(i,96,1.167,-1.5),h2:w(i,60,1.2,-.5),h3:w(s,48,1.167,0),h4:w(s,34,1.235,.25),h5:w(s,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(s,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(s,16,1.5,.15),body2:w(s,14,1.43,.15),button:w(l,14,1.75,.4,Tm),caption:w(s,12,1.66,.4),overline:w(s,12,2.66,1,Tm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ur(_({htmlFontSize:u,pxToRem:b,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},k),f,{clone:!1})}const TL=.2,LL=.14,ML=.12;function le(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${TL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LL})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ML})`].join(",")}const RL=["none",le(0,2,1,-1,0,1,1,0,0,1,3,0),le(0,3,1,-2,0,2,2,0,0,1,5,0),le(0,3,3,-2,0,3,4,0,0,1,8,0),le(0,2,4,-1,0,4,5,0,0,1,10,0),le(0,3,5,-1,0,5,8,0,0,1,14,0),le(0,3,5,-1,0,6,10,0,0,1,18,0),le(0,4,5,-2,0,7,10,1,0,2,16,1),le(0,5,5,-3,0,8,10,1,0,3,14,2),le(0,5,6,-3,0,9,12,1,0,3,16,2),le(0,6,6,-3,0,10,14,1,0,4,18,3),le(0,6,7,-4,0,11,15,1,0,4,20,3),le(0,7,8,-4,0,12,17,2,0,5,22,4),le(0,7,8,-4,0,13,19,2,0,5,24,4),le(0,7,9,-4,0,14,21,2,0,5,26,4),le(0,8,9,-5,0,15,22,2,0,6,28,5),le(0,8,10,-5,0,16,24,2,0,6,30,5),le(0,8,11,-5,0,17,26,2,0,6,32,5),le(0,9,11,-5,0,18,28,2,0,7,34,6),le(0,9,12,-6,0,19,29,2,0,7,36,6),le(0,10,13,-6,0,20,31,3,0,8,38,7),le(0,10,13,-6,0,21,33,3,0,8,40,7),le(0,10,14,-6,0,22,35,3,0,8,42,7),le(0,11,14,-7,0,23,36,3,0,9,44,8),le(0,11,15,-7,0,24,38,3,0,9,46,8)],FL=RL,IL=["duration","easing","delay"],DL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},OL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mm(e){return`${Math.round(e)}ms`}function NL(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function AL(e){const t=_({},DL,e.easing),r=_({},OL,e.duration);return _({getAutoHeightDuration:NL,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:a=0}=i;return He(i,IL),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Mm(s)} ${l} ${typeof a=="string"?a:Mm(a)}`).join(",")}},e,{easing:t,duration:r})}const zL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},BL=zL,KL=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function jL(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=He(e,KL);if(e.vars)throw new Error(Yo(18));const l=PL(n),a=Gp(e);let u=ur(a,{mixins:lL(a.breakpoints,r),palette:l,shadows:FL.slice(),typography:kL(l,i),transitions:AL(o),zIndex:_({},BL)});return u=ur(u,s),u=t.reduce((d,h)=>ur(d,h),u),u.unstable_sxConfig=_({},Up,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return Vp({sx:h,theme:this})},u}const _L=jL(),rw=_L,nw="$$material",ow=e=>wl(e)&&e!=="classes",HL=J9({themeId:nw,defaultTheme:rw,rootShouldForwardProp:ow}),vr=HL;function kn({props:e,name:t}){return tL({props:e,name:t,defaultTheme:rw,themeId:nw})}function WL(e){return Cn("MuiBottomNavigation",e)}En("MuiBottomNavigation",["root"]);const UL=["children","className","component","onChange","showLabels","value"],VL=e=>{const{classes:t}=e;return ii({root:["root"]},WL,t)},GL=vr("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper})),YL=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiBottomNavigation"}),{children:o,className:i,component:s="div",onChange:l,showLabels:a=!1,value:u}=n,d=He(n,UL),h=_({},n,{component:s,showLabels:a}),f=VL(h);return S.jsx(GL,_({as:s,className:xe(f.root,i),ref:r,ownerState:h},d,{children:p.Children.map(o,(g,b)=>{if(!p.isValidElement(g))return null;const w=g.props.value===void 0?b:g.props.value;return p.cloneElement(g,{selected:w===u,showLabel:g.props.showLabel!==void 0?g.props.showLabel:a,value:w,onChange:l})})}))}),XL=YL;function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},tf(e,t)}function QL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tf(e,t)}const Rm=O.createContext(null);function qL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xp(e,t){var r=function(i){return t&&p.isValidElement(i)?t(i):i},n=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ZL(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,l={};for(var a in t){if(n[a])for(s=0;s{if(!l&&a!=null){const w=setTimeout(a,u);return()=>{clearTimeout(w)}}},[a,l,u]),S.jsx("span",{className:f,style:g,children:S.jsx("span",{className:b})})}const iM=En("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$t=iM,sM=["center","classes","className"];let lc=e=>e,Fm,Im,Dm,Om;const rf=550,lM=80,aM=Kp(Fm||(Fm=lc` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),cM=Kp(Im||(Im=lc` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),uM=Kp(Dm||(Dm=lc` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),dM=vr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fM=vr(oM,{name:"MuiTouchRipple",slot:"Ripple"})(Om||(Om=lc` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),$t.rippleVisible,aM,rf,({theme:e})=>e.transitions.easing.easeInOut,$t.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$t.child,$t.childLeaving,cM,rf,({theme:e})=>e.transitions.easing.easeInOut,$t.childPulsate,uM,({theme:e})=>e.transitions.easing.easeInOut),pM=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=n,l=He(n,sM),[a,u]=p.useState([]),d=p.useRef(0),h=p.useRef(null);p.useEffect(()=>{h.current&&(h.current(),h.current=null)},[a]);const f=p.useRef(!1),g=p.useRef(null),b=p.useRef(null),w=p.useRef(null);p.useEffect(()=>()=>{clearTimeout(g.current)},[]);const k=p.useCallback(c=>{const{pulsate:L,rippleX:T,rippleY:E,rippleSize:M,cb:F}=c;u(I=>[...I,S.jsx(fM,{classes:{ripple:xe(i.ripple,$t.ripple),rippleVisible:xe(i.rippleVisible,$t.rippleVisible),ripplePulsate:xe(i.ripplePulsate,$t.ripplePulsate),child:xe(i.child,$t.child),childLeaving:xe(i.childLeaving,$t.childLeaving),childPulsate:xe(i.childPulsate,$t.childPulsate)},timeout:rf,pulsate:L,rippleX:T,rippleY:E,rippleSize:M},d.current)]),d.current+=1,h.current=F},[i]),m=p.useCallback((c={},L={},T=()=>{})=>{const{pulsate:E=!1,center:M=o||L.pulsate,fakeElement:F=!1}=L;if((c==null?void 0:c.type)==="mousedown"&&f.current){f.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(f.current=!0);const I=F?null:w.current,y=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,x,C;if(M||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)R=Math.round(y.width/2),x=Math.round(y.height/2);else{const{clientX:j,clientY:W}=c.touches&&c.touches.length>0?c.touches[0]:c;R=Math.round(j-y.left),x=Math.round(W-y.top)}if(M)C=Math.sqrt((2*y.width**2+y.height**2)/3),C%2===0&&(C+=1);else{const j=Math.max(Math.abs((I?I.clientWidth:0)-R),R)*2+2,W=Math.max(Math.abs((I?I.clientHeight:0)-x),x)*2+2;C=Math.sqrt(j**2+W**2)}c!=null&&c.touches?b.current===null&&(b.current=()=>{k({pulsate:E,rippleX:R,rippleY:x,rippleSize:C,cb:T})},g.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},lM)):k({pulsate:E,rippleX:R,rippleY:x,rippleSize:C,cb:T})},[o,k]),v=p.useCallback(()=>{m({},{pulsate:!0})},[m]),P=p.useCallback((c,L)=>{if(clearTimeout(g.current),(c==null?void 0:c.type)==="touchend"&&b.current){b.current(),b.current=null,g.current=setTimeout(()=>{P(c,L)});return}b.current=null,u(T=>T.length>0?T.slice(1):T),h.current=L},[]);return p.useImperativeHandle(r,()=>({pulsate:v,start:m,stop:P}),[v,m,P]),S.jsx(dM,_({className:xe($t.root,i.root,s),ref:w},l,{children:S.jsx(nM,{component:null,exit:!0,children:a})}))}),hM=pM;function gM(e){return Cn("MuiButtonBase",e)}const mM=En("MuiButtonBase",["root","disabled","focusVisible"]),$M=mM,vM=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],yM=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,s=ii({root:["root",t&&"disabled",r&&"focusVisible"]},gM,o);return r&&n&&(s.root+=` ${n}`),s},bM=vr("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$M.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xM=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:f=!1,LinkComponent:g="a",onBlur:b,onClick:w,onContextMenu:k,onDragLeave:m,onFocus:v,onFocusVisible:P,onKeyDown:c,onKeyUp:L,onMouseDown:T,onMouseLeave:E,onMouseUp:M,onTouchEnd:F,onTouchMove:I,onTouchStart:y,tabIndex:R=0,TouchRippleProps:x,touchRippleRef:C,type:j}=n,W=He(n,vM),B=p.useRef(null),D=p.useRef(null),K=Qd(D,C),{isFocusVisibleRef:H,onFocus:J,onBlur:X,ref:Oe}=Fx(),[ue,Ce]=p.useState(!1);u&&ue&&Ce(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{Ce(!0),B.current.focus()}}),[]);const[ve,Et]=p.useState(!1);p.useEffect(()=>{Et(!0)},[]);const kt=ve&&!d&&!u;p.useEffect(()=>{ue&&f&&!d&&ve&&D.current.pulsate()},[d,f,ue,ve]);function mt(V,ah,Rw=h){return Li(ch=>(ah&&ah(ch),!Rw&&D.current&&D.current[V](ch),!0))}const Ss=mt("start",T),Xt=mt("stop",k),yw=mt("stop",m),bw=mt("stop",M),xw=mt("stop",V=>{ue&&V.preventDefault(),E&&E(V)}),ww=mt("start",y),Sw=mt("stop",F),Pw=mt("stop",I),Cw=mt("stop",V=>{X(V),H.current===!1&&Ce(!1),b&&b(V)},!1),Ew=Li(V=>{B.current||(B.current=V.currentTarget),J(V),H.current===!0&&(Ce(!0),P&&P(V)),v&&v(V)}),uc=()=>{const V=B.current;return a&&a!=="button"&&!(V.tagName==="A"&&V.href)},dc=p.useRef(!1),kw=Li(V=>{f&&!dc.current&&ue&&D.current&&V.key===" "&&(dc.current=!0,D.current.stop(V,()=>{D.current.start(V)})),V.target===V.currentTarget&&uc()&&V.key===" "&&V.preventDefault(),c&&c(V),V.target===V.currentTarget&&uc()&&V.key==="Enter"&&!u&&(V.preventDefault(),w&&w(V))}),Tw=Li(V=>{f&&V.key===" "&&D.current&&ue&&!V.defaultPrevented&&(dc.current=!1,D.current.stop(V,()=>{D.current.pulsate(V)})),L&&L(V),w&&V.target===V.currentTarget&&uc()&&V.key===" "&&!V.defaultPrevented&&w(V)});let Ps=a;Ps==="button"&&(W.href||W.to)&&(Ps=g);const li={};Ps==="button"?(li.type=j===void 0?"button":j,li.disabled=u):(!W.href&&!W.to&&(li.role="button"),u&&(li["aria-disabled"]=u));const Lw=Qd(r,Oe,B),lh=_({},n,{centerRipple:i,component:a,disabled:u,disableRipple:d,disableTouchRipple:h,focusRipple:f,tabIndex:R,focusVisible:ue}),Mw=yM(lh);return S.jsxs(bM,_({as:Ps,className:xe(Mw.root,l),ownerState:lh,onBlur:Cw,onClick:w,onContextMenu:Xt,onFocus:Ew,onKeyDown:kw,onKeyUp:Tw,onMouseDown:Ss,onMouseLeave:xw,onMouseUp:bw,onDragLeave:yw,onTouchEnd:Sw,onTouchMove:Pw,onTouchStart:ww,ref:Lw,tabIndex:u?-1:R,type:j},li,W,{children:[s,kt?S.jsx(hM,_({ref:K,center:i},x)):null]}))}),iw=xM;function wM(e){return Cn("MuiBottomNavigationAction",e)}const SM=En("MuiBottomNavigationAction",["root","iconOnly","selected","label"]),sw=SM,PM=["className","icon","label","onChange","onClick","selected","showLabel","value"],CM=e=>{const{classes:t,showLabel:r,selected:n}=e;return ii({root:["root",!r&&!n&&"iconOnly",n&&"selected"],label:["label",!r&&!n&&"iconOnly",n&&"selected"]},wM,t)},EM=vr(iw,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.showLabel&&!r.selected&&t.iconOnly]}})(({theme:e,ownerState:t})=>_({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:14},!t.showLabel&&!t.selected&&!t.label&&{paddingTop:0},{[`&.${sw.selected}`]:{color:(e.vars||e).palette.primary.main}})),kM=vr("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e,ownerState:t})=>_({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${sw.selected}`]:{fontSize:e.typography.pxToRem(14)}})),TM=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiBottomNavigationAction"}),{className:o,icon:i,label:s,onChange:l,onClick:a,value:u}=n,d=He(n,PM),h=n,f=CM(h),g=b=>{l&&l(b,u),a&&a(b)};return S.jsxs(EM,_({ref:r,className:xe(f.root,o),focusRipple:!0,onClick:g,ownerState:h},d,{children:[i,S.jsx(kM,{className:f.label,ownerState:h,children:s})]}))}),tl=TM;var qp={},lw={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lw);var Gt=lw.exports,hu={};function LM(e){return Cn("MuiSvgIcon",e)}En("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MM=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RM=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ut(t)}`,`fontSize${ut(r)}`]};return ii(o,LM,n)},FM=vr("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ut(r.color)}`],t[`fontSize${ut(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,l,a,u,d,h,f,g,b,w,k,m,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(u=a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem",large:((d=e.typography)==null||(h=d.pxToRem)==null?void 0:h.call(d,35))||"2.1875rem"}[t.fontSize],color:(f=(g=(e.vars||e).palette)==null||(b=g[t.color])==null?void 0:b.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(k=w.action)==null?void 0:k.active,disabled:(m=(e.vars||e).palette)==null||(v=m.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),aw=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,g=He(n,MM),b=_({},n,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f}),w={};d||(w.viewBox=f);const k=RM(b);return S.jsxs(FM,_({as:l,className:xe(k.root,i),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},w,g,{ownerState:b,children:[o,h?S.jsx("title",{children:h}):null]}))});aw.muiName="SvgIcon";const Nm=aw;function IM(e,t){function r(n,o){return S.jsx(Nm,_({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Nm.muiName,p.memo(p.forwardRef(r))}const DM={configure:e=>{Dx.configure(e)}},OM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ut,createChainedFunction:Sk,createSvgIcon:IM,debounce:Pk,deprecatedPropType:Ck,isMuiElement:Ek,ownerDocument:Lx,ownerWindow:kk,requirePropFactory:Tk,setRef:Mx,unstable_ClassNameGenerator:DM,unstable_useEnhancedEffect:Rx,unstable_useId:Rk,unsupportedProp:Fk,useControlled:Ik,useEventCallback:Li,useForkRef:Qd,useIsFocusVisible:Fx},Symbol.toStringTag,{value:"Module"})),NM=Iw(OM);var Am;function Yt(){return Am||(Am=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=NM}(hu)),hu}var AM=Gt;Object.defineProperty(qp,"__esModule",{value:!0});var cw=qp.default=void 0,zM=AM(Yt()),BM=S,KM=(0,zM.default)((0,BM.jsx)("path",{d:"M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4-6-3.27v6.53L16 16z"}),"Subscriptions");cw=qp.default=KM;var Zp={},jM=Gt;Object.defineProperty(Zp,"__esModule",{value:!0});var uw=Zp.default=void 0,_M=jM(Yt()),HM=S,WM=(0,_M.default)((0,HM.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10z"}),"VideoLabelRounded");uw=Zp.default=WM;var Jp={},UM=Gt;Object.defineProperty(Jp,"__esModule",{value:!0});var dw=Jp.default=void 0,VM=UM(Yt()),GM=S,YM=(0,VM.default)((0,GM.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"}),"Speed");dw=Jp.default=YM;var eh={},XM=Gt;Object.defineProperty(eh,"__esModule",{value:!0});var fw=eh.default=void 0,QM=XM(Yt()),qM=S,ZM=(0,QM.default)((0,qM.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart");fw=eh.default=ZM;const JM=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zm=JM;function eR(e){return Cn("MuiPaper",e)}En("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tR=["className","component","elevation","square","variant"],rR=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ii(i,eR,o)},nR=vr("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return _({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&_({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Cm("#fff",zm(t.elevation))}, ${Cm("#fff",zm(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),oR=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=n,u=He(n,tR),d=_({},n,{component:i,elevation:s,square:l,variant:a}),h=rR(d);return S.jsx(nR,_({as:i,ownerState:d,className:xe(h.root,o),ref:r},u))}),iR=oR,sR=({darkMode:e})=>{const[t,r]=p.useState(0),n=Sn(),o=n.pathname==="/disabled";p.useEffect(()=>{switch(n.pathname){case"/":r(0);break;case"/feed":r(0);break;case"/channel":r(1);break;case"/misc":r(2);break;case"/stats":r(3);break;default:r(99)}},[n.pathname]);const i=e?"#ecedee":"#3b3b3b",s=e?"#5086c3":"#3694ff";return S.jsx(iR,{elevation:3,sx:{position:"absolute",bottom:0,left:0,right:0,zIndex:999,borderTopLeftRadius:"20px",borderTopRightRadius:"20px",filter:"drop-shadow(2px 4px 6px #00000042)",backgroundColor:e?"#1a1c1e":""},children:S.jsxs(XL,{value:t,onChange:(l,a)=>{r(a)},sx:{height:"42px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",backgroundColor:e?"#1a1c1e":""},children:[S.jsx(_s,{to:o?"/disabled":"/feed",className:"flex w-full",children:S.jsx(tl,{className:`${e?"hover:bg-[#202225]":"hover:bg-[#f5f5f5]"} transition-colors duration-200`,icon:S.jsx(cw,{className:"w-[20px]"}),sx:{height:"100%",color:t===0?s:i,backgroundColor:t===0?e?"#202225":"#f5f5f5":"",borderTopLeftRadius:"20px",borderTopRightRadius:"20px"}})}),S.jsx(_s,{to:o?"/disabled":"/channel",className:"flex w-full",children:S.jsx(tl,{className:`${e?"hover:bg-[#202225]":"hover:bg-[#f5f5f5]"} transition-colors duration-200`,icon:S.jsx(uw,{className:"w-[20px]"}),sx:{height:"100%",color:t===1?s:i,backgroundColor:t===1?e?"#202225":"#f5f5f5":"",borderTopLeftRadius:"20px",borderTopRightRadius:"20px"}})}),S.jsx(_s,{to:o?"/disabled":"/misc",className:"flex w-full",children:S.jsx(tl,{className:`${e?"hover:bg-[#202225]":"hover:bg-[#f5f5f5]"} transition-colors duration-200`,icon:S.jsx(dw,{}),sx:{height:"100%",color:t===2?s:i,backgroundColor:t===2?e?"#202225":"#f5f5f5":"",borderTopLeftRadius:"20px",borderTopRightRadius:"20px"}})}),S.jsx(_s,{to:o?"/disabled":"/stats",className:"flex w-full",children:S.jsx(tl,{className:`${e?"hover:bg-[#202225]":"hover:bg-[#f5f5f5]"} transition-colors duration-200`,icon:S.jsx(fw,{}),sx:{height:"100%",color:t===3?s:i,backgroundColor:t===3?e?"#202225":"#f5f5f5":"",borderTopLeftRadius:"20px",borderTopRightRadius:"20px"}})})]})})},lR=({darkMode:e,toggleDarkMode:t,title:r})=>{const n=Sn();return n.pathname==="/"&&(r="Feed Pages"),n.pathname==="/feed"&&(r="Feed Pages"),n.pathname==="/channel"&&(r="Channel Pages"),n.pathname==="/misc"&&(r="Miscellaneous"),n.pathname==="/stats"&&(r="Statistics"),n.pathname==="/disabled"&&(r="Disabled"),S.jsxs("div",{className:`relative flex justify-between w-full px-[18px] py-3 pb-1 ${e?"bg-[#1a1c1e]":"bg-[#fff]"} drop-shadow-header rounded-br-[20px] rounded-bl-[20px]`,children:[S.jsx(Ge,{className:"font-semibold select-none",children:r}),S.jsx(MR,{darkMode:e,toggleDarkMode:t})]})};var th={},aR=Gt;Object.defineProperty(th,"__esModule",{value:!0});var pw=th.default=void 0,cR=aR(Yt()),uR=S,dR=(0,cR.default)((0,uR.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");pw=th.default=dR;const fR=({fill:e="#ebc934",filled:t,size:r,height:n,width:o,label:i,...s})=>t?S.jsx("svg",{width:r||o||24,height:r||n||24,viewBox:"0 0 24 24",...s,children:S.jsxs("g",{fill:e,children:[S.jsx("path",{d:"M19 12a7 7 0 11-7-7 7 7 0 017 7z"}),S.jsx("path",{d:"M12 22.96a.969.969 0 01-1-.96v-.08a1 1 0 012 0 1.038 1.038 0 01-1 1.04zm7.14-2.82a1.024 1.024 0 01-.71-.29l-.13-.13a1 1 0 011.41-1.41l.13.13a1 1 0 010 1.41.984.984 0 01-.7.29zm-14.28 0a1.024 1.024 0 01-.71-.29 1 1 0 010-1.41l.13-.13a1 1 0 011.41 1.41l-.13.13a1 1 0 01-.7.29zM22 13h-.08a1 1 0 010-2 1.038 1.038 0 011.04 1 .969.969 0 01-.96 1zM2.08 13H2a1 1 0 010-2 1.038 1.038 0 011.04 1 .969.969 0 01-.96 1zm16.93-7.01a1.024 1.024 0 01-.71-.29 1 1 0 010-1.41l.13-.13a1 1 0 011.41 1.41l-.13.13a.984.984 0 01-.7.29zm-14.02 0a1.024 1.024 0 01-.71-.29l-.13-.14a1 1 0 011.41-1.41l.13.13a1 1 0 010 1.41.97.97 0 01-.7.3zM12 3.04a.969.969 0 01-1-.96V2a1 1 0 012 0 1.038 1.038 0 01-1 1.04z"})]})}):S.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r||o||24,height:r||n||24,viewBox:"0 0 24 24",...s,children:[S.jsx("path",{fill:e,d:"M6.993 12c0 2.761 2.246 5.007 5.007 5.007s5.007-2.246 5.007-5.007S14.761 6.993 12 6.993 6.993 9.239 6.993 12zM12 8.993c1.658 0 3.007 1.349 3.007 3.007S13.658 15.007 12 15.007 8.993 13.658 8.993 12 10.342 8.993 12 8.993zM10.998 19H12.998V22H10.998zM10.998 2H12.998V5H10.998zM1.998 11H4.998V13H1.998zM18.998 11H21.998V13H18.998z"}),S.jsx("path",{fill:e,transform:"rotate(-45.017 5.986 18.01)",d:"M4.487 17.01H7.487V19.01H4.487z"}),S.jsx("path",{fill:e,transform:"rotate(-45.001 18.008 5.99)",d:"M16.508 4.99H19.509V6.99H16.508z"}),S.jsx("path",{fill:e,transform:"rotate(-134.983 5.988 5.99)",d:"M4.487 4.99H7.487V6.99H4.487z"}),S.jsx("path",{fill:e,transform:"rotate(134.999 18.008 18.01)",d:"M17.008 16.51H19.008V19.511000000000003H17.008z"})]}),pR=({fill:e="currentColor",filled:t,size:r,height:n,width:o,label:i,...s})=>t?S.jsx("svg",{width:r||o||24,height:r||n||24,viewBox:"0 0 24 24",...s,children:S.jsx("path",{d:"M21.53 15.93c-.16-.27-.61-.69-1.73-.49a8.46 8.46 0 01-1.88.13 8.409 8.409 0 01-5.91-2.82 8.068 8.068 0 01-1.44-8.66c.44-1.01.13-1.54-.09-1.76s-.77-.55-1.83-.11a10.318 10.318 0 00-6.32 10.21 10.475 10.475 0 007.04 8.99 10 10 0 002.89.55c.16.01.32.02.48.02a10.5 10.5 0 008.47-4.27c.67-.93.49-1.519.32-1.79z",fill:e})}):S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r||o||24,height:r||n||24,viewBox:"0 0 24 24",...s,children:S.jsx("path",{fill:e,d:"M20.742,13.045c-0.677,0.18-1.376,0.271-2.077,0.271c-2.135,0-4.14-0.83-5.646-2.336c-2.008-2.008-2.799-4.967-2.064-7.723 c0.092-0.345-0.007-0.713-0.259-0.965C10.444,2.04,10.077,1.938,9.73,2.034C8.028,2.489,6.476,3.382,5.241,4.616 c-3.898,3.898-3.898,10.243,0,14.143c1.889,1.889,4.401,2.93,7.072,2.93c2.671,0,5.182-1.04,7.07-2.929 c1.236-1.237,2.13-2.791,2.583-4.491c0.092-0.345-0.008-0.713-0.26-0.965C21.454,13.051,21.085,12.951,20.742,13.045z M17.97,17.346c-1.511,1.511-3.52,2.343-5.656,2.343c-2.137,0-4.146-0.833-5.658-2.344c-3.118-3.119-3.118-8.195,0-11.314 c0.602-0.602,1.298-1.102,2.06-1.483c-0.222,2.885,0.814,5.772,2.89,7.848c2.068,2.069,4.927,3.12,7.848,2.891 C19.072,16.046,18.571,16.743,17.97,17.346z"})});var rh={},hR=Gt;Object.defineProperty(rh,"__esModule",{value:!0});var hw=rh.default=void 0;$R(p);var gR=hR(Yt()),mR=S;function gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(gw=function(n){return n?r:t})(e)}function $R(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=gw(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var vR=(0,gR.default)((0,mR.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");hw=rh.default=vR;var nh={},yR=Gt;Object.defineProperty(nh,"__esModule",{value:!0});var mw=nh.default=void 0,bR=yR(Yt()),rl=S,xR=(0,bR.default)([(0,rl.jsx)("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62z"},"0"),(0,rl.jsx)("circle",{cx:"9",cy:"13",r:"1"},"1"),(0,rl.jsx)("circle",{cx:"15",cy:"13",r:"1"},"2"),(0,rl.jsx)("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47z"},"3")],"SupportAgent");mw=nh.default=xR;var oh={},wR=Gt;Object.defineProperty(oh,"__esModule",{value:!0});var $w=oh.default=void 0,SR=wR(Yt()),PR=S,CR=(0,SR.default)((0,PR.jsx)("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"}),"ThumbUpAlt");$w=oh.default=CR;var ih={},ER=Gt;Object.defineProperty(ih,"__esModule",{value:!0});var vw=ih.default=void 0,kR=ER(Yt()),TR=S,LR=(0,kR.default)((0,TR.jsx)("path",{d:"M18.5 3H6c-1.1 0-2 .9-2 2v5.71c0 3.83 2.95 7.18 6.78 7.29 3.96.12 7.22-3.06 7.22-7v-1h.5c1.93 0 3.5-1.57 3.5-3.5S20.43 3 18.5 3zM16 5v3H6V5h10zm2.5 3H18V5h.5c.83 0 1.5.67 1.5 1.5S19.33 8 18.5 8zM4 19h16v2H4v-2z"}),"Coffee");vw=ih.default=LR;const MR=({darkMode:e,toggleDarkMode:t})=>{const r=n=>{n==="github"&&window.open("https://github.com/probablyraging/hide-youtube-shorts"),n==="help"&&window.open("https://github.com/ProbablyRaging/hide-youtube-shorts/issues/new/choose"),n==="review"&&window.open("https://chrome.google.com/webstore/detail/hide-youtube-shorts/aljlkinhomaaahfdojalfmimeidofpih/reviews"),n==="coffee"&&window.open("https://www.buymeacoffee.com/probablyraging")};return S.jsx("div",{className:`${e?"text-[#e9e9e9]":"text-[#3b3b3b]"} cursor-pointer`,children:S.jsxs(st,{closeOnSelect:!1,placement:"bottom-right",children:[S.jsx(st.Trigger,{children:S.jsx(pw,{className:`${e?"hover:bg-[#383a3d]":"hover:bg-[#dfdfdf]"} hover:text-[#3694ff] transition-colors duration-200`,sx:{width:"28px",height:"28px",padding:"4px",backgroundColor:`${e?"#2f3235":"#e9e9e9"}`,borderRadius:"8px"}})}),S.jsxs(st.Menu,{css:{border:`1px solid ${e?"#2f2f2f":"#dbdbdb"}`,borderRadius:"16px",padding:"4px"},variant:"light","aria-label":"settings",children:[S.jsx(st.Item,{textValue:"theme",css:{fontSize:"14px"},children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("div",{className:"w-full",onClick:t,children:e?"Dark":"Light"}),S.jsx(MC,{id:"theme-switch",checked:!e,onChange:t,size:"xs",iconOn:S.jsx(fR,{filled:!0}),iconOff:S.jsx(pR,{filled:!0})})]})},"theme"),S.jsx(st.Item,{textValue:"github",icon:S.jsx(hw,{className:"w-[18px]"}),css:{fontSize:"14px"},withDivider:!0,children:S.jsx("div",{onClick:()=>r("github"),children:"GitHub"})},"github"),S.jsx(st.Item,{textValue:"help & support",icon:S.jsx(mw,{className:"w-[18px]"}),css:{fontSize:"14px"},children:S.jsx("div",{onClick:()=>r("help"),children:"Help & Support"})},"support"),S.jsx(st.Item,{textValue:"review",icon:S.jsx($w,{className:"w-[18px]"}),css:{fontSize:"14px"},children:S.jsx("div",{onClick:()=>r("review"),children:"Leave A Review"})},"review"),S.jsx(st.Item,{textValue:"coffee",icon:S.jsx(vw,{className:"w-[18px]"}),css:{fontSize:"14px"},children:S.jsx("div",{onClick:()=>r("coffee"),children:"Buy Me A Coffee"})},"coffee")]})]})})},ac=({darkMode:e})=>S.jsx("div",{className:`fixed top-0 left-0 w-full h-full flex items-center justify-center z-50 ${e?"bg-black":"bg-white"}`,children:S.jsx(CC,{size:"lg",color:"secondary",type:"points-opacity"})}),RR="/assets/plug.svg",cc=async()=>await chrome.storage.sync.get(["toggleState","toggleNavState","toggleHomeFeedState","toggleHomeFeedStateLives","toggleHomeFeedStatePremieres","toggleSubscriptionFeedState","toggleSubscriptionFeedStateLives","toggleSubscriptionFeedStatePremieres","toggleTrendingFeedState","toggleSearchState","toggleRecommendedState","toggleTabState","toggleHomeTabState","toggleTurboState","toggleRegularState","toggleNotificationState"]),FR=async()=>await chrome.storage.sync.get(["navButton","shortsShelf","homeFeedShorts","subFeedShorts","trendFeedShorts","searchResultShorts","recommendedShorts","channelTabs","channelShorts","playedAsRegular"]),IR=async()=>{const e=["navButton","shortsShelf","homeFeedShorts","subFeedShorts","trendFeedShorts","searchResultShorts","recommendedShorts","channelTabs","channelShorts","playedAsRegular"];for(const t of e)await chrome.storage.sync.set({[t]:0})},DR=async e=>{const n=!(await chrome.storage.sync.get([e]))[e];if(chrome.storage.sync.set({[e]:n}),e==="toggleState"){const o=n?"/icons/icon16.png":"/icons/icon16_disabled.png";chrome.action.setIcon({path:{16:o}}).catch(()=>{})}chrome.runtime.sendMessage({checkStates:!0})},aF=async()=>{const{presentModal:e}=await chrome.storage.sync.get(["presentModal"]);if(e)return new Promise(t=>{setTimeout(()=>{$("body").animate({width:"425px"},250),t(e)},250)})},cF=()=>{chrome.storage.sync.set({presentModal:!1}),chrome.action.setBadgeText({text:""}),$("body").animate({width:"400px"},250)};function OR(e){return Cn("MuiFab",e)}const NR=En("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Bm=NR,AR=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],zR=e=>{const{color:t,variant:r,classes:n,size:o}=e,i={root:["root",r,`size${ut(o)}`,t==="inherit"?"colorInherit":t]},s=ii(i,OR,n);return _({},n,s)},BR=vr(iw,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ow(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ut(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ut(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return _({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Bm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>_({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${Bm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),KR=p.forwardRef(function(t,r){const n=kn({props:t,name:"MuiFab"}),{children:o,className:i,color:s="default",component:l="button",disabled:a=!1,disableFocusRipple:u=!1,focusVisibleClassName:d,size:h="large",variant:f="circular"}=n,g=He(n,AR),b=_({},n,{color:s,component:l,disabled:a,disableFocusRipple:u,size:h,variant:f}),w=zR(b);return S.jsx(BR,_({className:xe(w.root,i),component:l,disabled:a,focusRipple:!u,focusVisibleClassName:xe(w.focusVisible,d),ownerState:b,ref:r},g,{classes:w,children:o}))}),Km=KR;var sh={},jR=Gt;Object.defineProperty(sh,"__esModule",{value:!0});var oa=sh.default=void 0,_R=jR(Yt()),HR=S,WR=(0,_R.default)((0,HR.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");oa=sh.default=WR;const UR=({darkMode:e})=>{const[t,r]=p.useState(!0),[n,o]=p.useState(),i=wa();p.useEffect(()=>{(async()=>{try{const a=await cc();o(a.toggleState),r(!1)}catch(a){console.error("Error fetching switch data:",a)}})()},[]);const s=async()=>{await DR("toggleState"),o(!n),n&&i("/disabled"),n||i("/")};return n?S.jsx("div",{className:`absolute flex bottom-[4%] left-[45%] w-[47px] h-[47px] ${e?"bg-[#1a1c1e]":"bg-[#fff]"} rounded-full z-[9999] shadow-actionBtn`,onClick:s,children:S.jsx(Km,{className:`m-auto ${e?"bg-[#5086c3] text-[#000]":"bg-[#3694ff] text-[#fff]"} shadow-none`,size:"small","aria-label":"add",children:S.jsx(oa,{})})}):S.jsx("div",{className:`absolute flex bottom-[4%] left-[45%] w-[47px] h-[47px] ${e?"bg-[#1a1c1e]":"bg-[#fff]"} rounded-full z-[9999] shadow-actionBtn`,onClick:s,children:S.jsx(Km,{className:`m-auto ${e?"bg-[#a5a5a5] text-[#000]":"bg-[#a5a5a5] text-[#fff]"} shadow-none`,size:"small","aria-label":"add",children:S.jsx(oa,{})})})},Gr=p.lazy(()=>Hr(()=>import("./SwitchContainer.js"),[])),VR=p.lazy(()=>Hr(()=>import("./ModalDisplay.js"),[])),jm=({darkMode:e})=>{const[t,r]=p.useState({}),n=wa();return p.useEffect(()=>{(async()=>{try{const i=await cc();r(i)}catch(i){console.error("Error fetching switch data:",i)}})()},[]),t.toggleState===!1&&n("/disabled"),S.jsx(p.Suspense,{fallback:S.jsx(ac,{darkMode:e}),children:S.jsxs("div",{className:"flex flex-col justify-center items-center w-full h-full",children:[S.jsx(VR,{}),S.jsx("div",{className:"w-full mt-6 mb-5",children:S.jsxs(Ge,{className:`text-[12px] ${e?"text-textAltDark":"text-textAlt"}`,children:["Control the view of Shorts videos on pages such as ",S.jsx(qc,{isExternal:!0,href:"https://www.youtube.com/",target:"_blank",children:"Home"}),", ",S.jsx(qc,{isExternal:!0,href:"https://www.youtube.com/feed/subscriptions",target:"_blank",children:"Subscriptions"}),", and ",S.jsx(qc,{isExternal:!0,href:"https://www.youtube.com/feed/trending",target:"_blank",children:"Trending"})]})}),S.jsxs("div",{className:"flex flex-col w-full",children:[S.jsx(Gr,{title:"Home Feed Shorts",description:"Hide Shorts videos on the home page",darkMode:e,switchName:"toggleHomeFeedState",state:t.toggleHomeFeedState}),S.jsx(Gr,{title:"Home Feed Lives",description:"Hide Live videos on the home page",darkMode:e,switchName:"toggleHomeFeedStateLives",state:t.toggleHomeFeedStateLives,isNew:!0,hasInfo:!0}),S.jsx(Gr,{title:"Home Feed Premieres",description:"Hide Premiere videos on the home page",darkMode:e,switchName:"toggleHomeFeedStatePremieres",state:t.toggleHomeFeedStatePremieres,isNew:!0,hasInfo:!0}),S.jsx(Gr,{title:"Subscriptions Feed Shorts",description:"Hide Shorts videos on the subscriptions page",darkMode:e,switchName:"toggleSubscriptionFeedState",state:t.toggleSubscriptionFeedState}),S.jsx(Gr,{title:"Subscriptions Feed Lives",description:"Hide Live videos on the subscriptions page",darkMode:e,switchName:"toggleSubscriptionFeedStateLives",state:t.toggleSubscriptionFeedStateLives,isNew:!0,hasInfo:!0}),S.jsx(Gr,{title:"Subscriptions Feed Premieres",description:"Hide Premiere videos on the subscriptions page",darkMode:e,switchName:"toggleSubscriptionFeedStatePremieres",state:t.toggleSubscriptionFeedStatePremieres,isNew:!0,hasInfo:!0}),S.jsx(Gr,{title:"Trending Feed Shorts",description:"Hide Shorts videos on the trending page",darkMode:e,switchName:"toggleTrendingFeedState",state:t.toggleTrendingFeedState})]})]})})},_m=p.lazy(()=>Hr(()=>import("./SwitchContainer.js"),[])),GR=({darkMode:e})=>{const[t,r]=p.useState({});return p.useEffect(()=>{(async()=>{try{const o=await cc();r(o)}catch(o){console.error("Error fetching switch data:",o)}})()},[]),S.jsx(p.Suspense,{fallback:S.jsx(ac,{darkMode:e}),children:S.jsxs("div",{className:"flex flex-col justify-center items-center w-full h-full",children:[S.jsx("div",{className:"w-full mt-6 mb-5",children:S.jsx(Ge,{className:`text-[12px] ${e?"text-textAltDark":"text-textAlt"}`,children:"Control the view of the Shorts tab and Shorts videos on user's channel pages"})}),S.jsxs("div",{className:"flex flex-col w-full",children:[S.jsx(_m,{title:"Shorts Tab",description:"Hide the Shorts tab on channel pages",darkMode:e,switchName:"toggleTabState",state:t.toggleTabState}),S.jsx(_m,{title:"Home Tab Shorts",description:"Hide Shorts videos in the home tab on channel pages",darkMode:e,switchName:"toggleHomeTabState",state:t.toggleHomeTabState})]})]})})},Yn=p.lazy(()=>Hr(()=>import("./SwitchContainer.js"),[])),YR=({darkMode:e})=>{const[t,r]=p.useState({});return p.useEffect(()=>{(async()=>{try{const o=await cc();r(o)}catch(o){console.error("Error fetching switch data:",o)}})()},[]),S.jsx(p.Suspense,{fallback:S.jsx(ac,{darkMode:e}),children:S.jsxs("div",{className:"flex flex-col justify-center items-center w-full h-full",children:[S.jsx("div",{className:"w-full mt-6 mb-5",children:S.jsx(Ge,{className:`text-[12px] ${e?"text-textAltDark":"text-textAlt"}`,children:"Miscellaneous options for hiding Shorts elements all across YouTube"})}),S.jsxs("div",{className:"flex flex-col w-full",children:[S.jsx(Yn,{title:"Shorts Navigation Button",description:"Hide the Shorts button on the navigation panel",darkMode:e,switchName:"toggleNavState",state:t.toggleNavState}),S.jsx(Yn,{title:"Search Results",description:"Hide Shorts videos in search results",darkMode:e,switchName:"toggleSearchState",state:t.toggleSearchState}),S.jsx(Yn,{title:"Recommended List",description:"Hide Shorts videos in the recommended list on video watch pages",darkMode:e,switchName:"toggleRecommendedState",state:t.toggleRecommendedState}),S.jsx(Yn,{title:"Notification Menu",description:"Hide notifications about Shorts in the notification menu",darkMode:e,switchName:"toggleNotificationState",state:t.toggleNotificationState}),S.jsx(Yn,{title:"Play In Regular Mode",description:"Play Shorts videos on a regular video page",darkMode:e,switchName:"toggleRegularState",state:t.toggleRegularState}),S.jsx(Yn,{title:"TURBO",description:"Boosts speed and efficiency at the cost of system resources",darkMode:e,switchName:"toggleTurboState",state:t.toggleTurboState})]})]})})},XR=({darkMode:e})=>{const[t,r]=p.useState({}),[n,o]=p.useState(!1),i=["navButton","homeFeedShorts","subFeedShorts","trendFeedShorts","shortsShelf","searchResultShorts","recommendedShorts","channelTabs","channelShorts","playedAsRegular"],s={navButton:"Hidden the Shorts navigation button",homeFeedShorts:"Hidden Shorts in the Home feed",subFeedShorts:"Hidden Shorts in the Subscriptions feed",trendFeedShorts:"Hidden Shorts in the Trending feed",shortsShelf:"Hidden Shorts shelves",searchResultShorts:"Hidden Shorts in Search results",recommendedShorts:"Hidden Shorts in the Recommended list",channelTabs:"Hidden the Shorts tab on Channel pages",channelShorts:"Hidden Shorts in the channel's Home tab",playedAsRegular:"Played Shorts as regular videos"},l=async()=>{try{const f=await FR();r(f)}catch(f){console.error("Error fetching switch data:",f)}};p.useEffect(()=>{l()},[]);const a=()=>{o(!0)},u=()=>{IR(),r({}),setTimeout(()=>{l(),o(!1)},100)},d=()=>{o(!1)},h=()=>i.map(f=>{const g=t[f]||0,b=s[f]||"";return S.jsxs("div",{className:`flex justify-between items-center w-full px-4 py-1 rounded-[12px] ${e?"hover:bg-[#1b1d21]":"hover:bg-[#e9e9e9]"}`,children:[S.jsx(Ge,{className:"text-[12px] font-medium",children:b}),S.jsx(Ge,{className:`font-semibold ${e?"text-accentDark":"text-accentLight"}`,children:g.toLocaleString()})]},f)});return S.jsxs("div",{className:"flex flex-col w-full h-full",children:[S.jsx("div",{className:"w-full mt-6 mb-5",children:S.jsx(Ge,{className:`text-[12px] ${e?"text-textAltDark":"text-textAlt"}`,children:"Here is a breakdown of what HYS has done to make your browsing experience better"})}),S.jsxs(Ge,{blockquote:!0,className:"w-full p-0 mt-0",children:[S.jsxs("div",{className:`flex justify-between px-4 rounded-tl-[12px] rounded-tr-[12px] ${e?"bg-[#212329]":"bg-[#e1e1e1]"}`,children:[S.jsx(Ge,{className:"text-[14px] font-semibold",children:"Event"}),S.jsx(Ge,{className:"text-[14px] font-semibold",children:"Times"})]}),h()]}),S.jsx(Do,{onPress:a,className:`h-[32px] ${e?"bg-[#5086c3] hover:bg-[#4175b0]":"bg-[#3694ff] hover:bg-[#2c85e9]"}`,children:"Reset Statistics"}),S.jsxs(tn,{blur:!0,"aria-labelledby":"modal-title",open:n,onClose:d,className:"max-w-[385px] mx-[10px]",children:[S.jsx(tn.Header,{className:"flex flex-col items-start",children:S.jsx(Ge,{className:"font-semibold",size:16,children:"Confirm Reset"})}),S.jsx(tn.Body,{children:"Are you sure you want to reset your statistics?"}),S.jsxs(tn.Footer,{children:[S.jsx(Do,{flat:!0,auto:!0,color:"none",onPress:d,children:"Cancel"}),S.jsx(Do,{flat:!0,auto:!0,color:"primary",onPress:u,children:"Confirm"})]})]})]})},QR=({darkMode:e})=>S.jsxs("div",{className:"flex flex-col justify-center items-center text-center w-full mt-[15%]",children:[S.jsx("img",{src:RR,width:64,height:64}),S.jsx(Ge,{className:"text-[22px] mb-3",children:"Extension disabled"}),S.jsx(Ge,{className:`text-[16px] mb-6 ${e?"text-textAltDark":"text-textAlt"}`,children:"When HYS is disabled, so are all of its features. This means you will start seeing Shorts content on YouTube again"}),S.jsxs(Ge,{className:`text-[16px] ${e?"text-textAltDark":"text-textAlt"}`,children:["Press the ",S.jsx(oa,{className:"text-[16px]"})," button below to continue using HYS"]})]}),qR=gv({type:"dark",theme:{colors:{background:"#121212",navText:"#ffffff",gradient:"linear-gradient(112deg, #3694ff -63.59%, #adc8e7 -20.3%, var(--nextui-colors-blue600) 70.46%);",primary:"#5086c3",primaryLight:"#1d68bd",primaryLightHover:"#3694ff",primaryLightContrast:"$white",accents2:"#3d3f41"}}}),ZR=gv({type:"light",theme:{colors:{navText:"#000000",gradient:"linear-gradient(112deg, #3694ff -63.59%, #adc8e7 -20.3%, var(--nextui-colors-blue600) 70.46%);",primary:"#3694ff",primaryLight:"#1d68bd",primaryLightHover:"#3694ff",primaryLightContrast:"$white",neutralLight:"#d3d3d3",accents2:"#bbbbbb"}}}),JR=p.lazy(()=>Hr(()=>import("./MainPage.js"),[]));p.lazy(()=>Hr(()=>import("./background.js"),[]));p.lazy(()=>Hr(()=>import("./main.js"),[]));p.lazy(()=>Hr(()=>Promise.resolve({}),["assets/styles.css"]));const eF=()=>{const[e,t]=p.useState(!1);p.useEffect(()=>{const o=localStorage.getItem("darkMode");if(o)t(o==="true"),r(o==="true");else{const i=window.matchMedia("(prefers-color-scheme: dark)").matches;t(i),r(i)}},[]);const r=o=>{const i=o?"#121212":"#fff",s=o?"#5086c3":"#3694ff";document.documentElement.style.setProperty("--scrollbar-track-color",i),document.documentElement.style.setProperty("--scrollbar-thumb-color",s)},n=()=>{const o=!e;t(o),r(o),localStorage.setItem("darkMode",o.toString())};return S.jsx(e4,{children:S.jsxs(fP,{theme:e?qR:ZR,children:[S.jsx(yv,{}),S.jsxs(p.Suspense,{fallback:S.jsx(ac,{darkMode:e}),children:[S.jsx(lR,{darkMode:e,toggleDarkMode:n}),S.jsxs(JR,{children:[S.jsx(sR,{darkMode:e}),S.jsx(UR,{darkMode:e}),S.jsxs(X5,{children:[S.jsx(br,{path:"/",element:S.jsx(jm,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"/feed",element:S.jsx(jm,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"/channel",element:S.jsx(GR,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"/misc",element:S.jsx(YR,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"/stats",element:S.jsx(XR,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"/disabled",element:S.jsx(QR,{darkMode:e,toggleDarkMode:n})}),S.jsx(br,{path:"*",element:S.jsx(G5,{to:"/"})})]})]})]})]})})};window.React=O;mu.createRoot(document.getElementById("root")).render(S.jsx(O.StrictMode,{children:S.jsx(eF,{})}));export{Zf as a,ce as b,MC as c,Yt as d,tn as e,Do as f,cF as h,Gt as i,S as j,xp as m,ot as n,c3 as o,aF as p,p as r,U as s,Ge as t,DR as u}; diff --git a/dist/assets/main.js b/dist/assets/main.js new file mode 100644 index 0000000..c031e60 --- /dev/null +++ b/dist/assets/main.js @@ -0,0 +1 @@ +let m=!1,F=!1;function d(){location.href==="https://www.youtube.com/feed/subscriptions"?document.readyState==="complete"?(m=!0,setTimeout(()=>{const o=document.querySelector("#contents");getComputedStyle(o).width==="90%"&&m&&F?location.reload():setTimeout(d,1e3)},1e3)):setTimeout(d,1e3):(m&&location.href!=="https://www.youtube.com/"&&(F=!0),setTimeout(d,1e3))}d();function v(){return chrome.runtime.id?chrome.storage.sync.get(["toggleState","toggleNavState","toggleHomeFeedState","toggleHomeFeedStateLives","toggleHomeFeedStatePremieres","toggleSubscriptionFeedState","toggleSubscriptionFeedStateLives","toggleSubscriptionFeedStatePremieres","toggleTrendingFeedState","toggleSearchState","toggleRecommendedState","toggleTabState","toggleHomeTabState","toggleTurboState","toggleRegularState","toggleNotificationState"]):location.reload()}async function u(){if(!chrome.runtime.id)return;const o=await v();if(!o.toggleState)return;const r=location.href.includes("https://m.youtube.com/");o.toggleNavState&&C(r),o.toggleHomeFeedState&&(H(r),P(r)),o.toggleHomeFeedStateLives&&G(r),o.toggleHomeFeedStatePremieres&&V(r),o.toggleSubscriptionFeedState&&x(r),o.toggleSubscriptionFeedStateLives&&D(r),o.toggleSubscriptionFeedStatePremieres&&O(r),o.toggleTrendingFeedState&&I(r),o.toggleSearchState&&M(r),o.toggleRecommendedState&&k(r),o.toggleTabState&&B(r),o.toggleHomeTabState&&j(r),o.toggleRegularState&&z(),o.toggleNotificationState&&Y(r)}let g=0,p=0,N=0,l=0,f=0,h=0,S=0,b=0,E=0,w=0;function C(o){if(o)document.querySelectorAll(".pivot-shorts").forEach(n=>{const e=n.parentNode;e.style.display="none"});else if(document.querySelector('#endpoint[title="Shorts"]')){document.querySelectorAll('#endpoint[title="Shorts"]').forEach(e=>{const t=e.parentNode;t.parentNode.removeChild(t),g++}),i("navButton",g),g=0;return}else setTimeout(function(){C(o)},1e3)}function H(o){o?location.href==="https://m.youtube.com/"&&document.querySelectorAll(".reel-shelf-items").forEach(n=>{const e=n.parentNode.parentNode.parentNode;e.style.display="none"}):location.href==="https://www.youtube.com/"&&(document.querySelectorAll(".style-scope ytd-rich-shelf-renderer").forEach(e=>{const t=e.parentNode;t.parentNode.removeChild(t),p++}),document.querySelectorAll(".style-scope ytd-reel-shelf-renderer").forEach(e=>{const t=e.parentNode;t.parentNode.removeChild(t),p++}),i("shortsShelf",p),p=0)}function P(o){o?location.href==="https://m.youtube.com/"&&document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode.parentNode.parentNode;e.style.display="none"}):location.href==="https://www.youtube.com/"&&(document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode,t=e.parentNode.parentNode;e.hasAttribute("rich-grid-thumbnail")&&t.style.display!=="none"&&N++,e.hasAttribute("rich-grid-thumbnail")&&(t.style.display="none")}),i("homeFeedShorts",N),N=0)}function G(o){o||location.href==="https://www.youtube.com/"&&document.querySelectorAll("ytd-badge-supported-renderer").forEach(n=>{if(n.innerText.replace(/\s/g,"").replace(/\n/g,"")==="LIVE"){const e=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;(e.classList.contains("ytd-rich-grid-row")||e.classList.contains("ytd-rich-item-renderer"))&&(e.style.display="none")}})}function V(o){o||location.href==="https://www.youtube.com/"&&document.querySelectorAll("ytd-badge-supported-renderer").forEach(n=>{if(n.innerText.replace(/\s/g,"").replace(/\n/g,"")==="PREMIERE"){const e=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;(e.classList.contains("ytd-rich-grid-row")||e.classList.contains("ytd-rich-item-renderer"))&&(e.style.display="none")}})}function x(o){o?location.href.includes("youtube.com/feed/subscriptions")&&document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode.parentNode.parentNode;e.style.display="none"}):location.href.includes("youtube.com/feed/subscriptions")&&(document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode.parentNode.parentNode,t=e.parentNode.parentNode,s=e.parentNode.parentNode.parentNode.parentNode.parentNode;t.style.display!=="none"&&l++,(t.classList.contains("ytd-rich-grid-row")||t.classList.contains("ytd-rich-item-renderer"))&&t.style.display!=="none"&&(t.style.display="none"),!(t.classList.contains("ytd-rich-grid-row")||t.classList.contains("ytd-rich-item-renderer"))&&((t.nodeName==="YTD-GRID-VIDEO-RENDERER"||t.classList.contains("ytd-shelf-renderer"))&&(e.style.display!=="none"&&l++,e.style.display="none"),s.nodeName==="YTD-EXPANDED-SHELF-CONTENTS-RENDERER"&&(e.style.display!=="none"&&l++,s.parentNode.parentNode.style.display="none"))}),i("subFeedShorts",l),l=0)}function D(o){o||location.href.includes("youtube.com/feed/subscriptions")&&document.querySelectorAll("ytd-badge-supported-renderer").forEach(n=>{if(n.innerText.replace(/\s/g,"").replace(/\n/g,"")==="LIVE"){const e=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,t=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;(e.classList.contains("ytd-rich-grid-row")||e.classList.contains("ytd-rich-item-renderer"))&&(e.style.display="none"),t.classList.contains("ytd-shelf-renderer")&&(t.style.display="none")}})}function O(o){o||location.href.includes("youtube.com/feed/subscriptions")&&document.querySelectorAll("ytd-badge-supported-renderer").forEach(n=>{if(n.innerText.replace(/\s/g,"").replace(/\n/g,"")==="PREMIERE"){const e=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,t=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;(e.classList.contains("ytd-rich-grid-row")||e.classList.contains("ytd-rich-item-renderer"))&&(e.style.display="none"),t.classList.contains("ytd-shelf-renderer")&&(t.style.display="none")}})}function I(o){o?(location.href.includes("youtube.com/feed/explore")||location.href.includes("youtube.com/gaming"))&&(document.querySelectorAll('[href^="/shorts/"]').forEach(e=>{const t=e.parentNode.parentNode.parentNode;t.style.display="none"}),document.querySelectorAll(".reel-shelf-items").forEach(e=>{const t=e.parentNode.parentNode.parentNode;t.style.display="none"})):(location.href.includes("youtube.com/feed/trending")||location.href.includes("youtube.com/gaming"))&&(document.querySelectorAll('[href^="/shorts/"]').forEach(e=>{if(e.classList.contains("ytd-notification-renderer"))return;const t=e.parentNode.parentNode.parentNode;t.style.display!=="none"&&f++,t.style.display="none"}),document.querySelectorAll(".style-scope ytd-reel-shelf-renderer").forEach(e=>{const t=e.parentNode;t.parentNode.removeChild(t),f++}),i("trendFeedShorts",f),f=0)}function M(o){if(o){if(!document.querySelector("ytm-search"))return;document.querySelectorAll(".reel-shelf-items").forEach(t=>{const s=t.parentNode;s.style.display="none"}),document.querySelectorAll('[aria-label="Shorts"]').forEach(t=>{if(t.classList.contains("ytd-notification-renderer"))return;const s=t.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;s.style.display="none"})}else{if(!document.querySelector(".style-scope ytd-two-column-search-results-renderer"))return;document.querySelectorAll(".style-scope yt-horizontal-list-renderer").forEach(t=>{const s=t.parentNode.parentNode;s.style.display!=="none"&&h++,s.style.display="none"}),document.querySelectorAll('[href^="/shorts/"]').forEach(t=>{if(t.classList.contains("ytd-notification-renderer"))return;const s=t.parentNode.parentNode.parentNode;s.style.display!=="none"&&h++,s.style.display="none"}),i("searchResultShorts",h),h=0}}function k(o){o?location.href.includes("youtube.com/watch")&&document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode.parentNode;e.style.display="none"}):location.href.includes("youtube.com/watch")&&(document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer"))return;const e=n.parentNode.parentNode;e.style.display!=="none"&&S++,e.style.display="none"}),i("recommendedShorts",S),S=0)}function B(o){if(o){const r=document.querySelectorAll(".scbrr-tab.center");Array.from(r).filter(e=>e.innerText.toLowerCase()==="shorts").forEach(e=>{e.parentNode.removeChild(e)})}else{const r=document.querySelectorAll(".tab-content");Array.from(r).filter(e=>e.textContent.replace(/\s/g,"").replace(/\n/g,"")==="Shorts").forEach(e=>{const t=e.parentNode;t.parentNode.removeChild(t),b++}),i("channelTabs",b),b=0}}function Y(o){o||document.querySelectorAll('[href^="/shorts/"]').forEach(n=>{if(n.classList.contains("ytd-notification-renderer")){const e=n.parentNode;e.style.display="none"}})}function j(o){o?(location.href.includes("/channel/")||location.href.includes("@")||location.href.includes("/user/")||location.href.includes("/c/"))&&(document.querySelectorAll(".reel-shelf-items").forEach(e=>{const t=e.parentNode.parentNode.parentNode;t.style.display="none"}),document.querySelectorAll(".scbrr-tab.center").forEach(e=>{e.getAttribute("role")==="tab"&&e.getAttribute("aria-selected")==="true"&&e.innerText.toLowerCase()!=="shorts"&&document.querySelectorAll('[href^="/shorts/"]').forEach(s=>{if(s.classList.contains("ytd-notification-renderer"))return;const a=s.parentNode;a.style.display="none"})})):(location.href.includes("/channel/")||location.href.includes("@")||location.href.includes("/user/")||location.href.includes("/c/"))&&document.querySelectorAll(".ytd-c4-tabbed-header-renderer").forEach(n=>{n.getAttribute("role")==="tab"&&n.getAttribute("aria-selected")==="true"&&n.innerText.toLowerCase()!=="shorts"&&(document.querySelectorAll('[href^="/shorts/"]').forEach(t=>{if(t.classList.contains("ytd-notification-renderer"))return;const s=t.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;s.style.display!=="none"&&E++,s.style.display="none"}),i("channelShorts",E),E=0)})}function z(){function o(r){const n=/\/shorts\/([^/]+)/,e=r.match(n);return e?e[1]:null}o(location.href)&&(location.href=`https://youtube.com/watch?v=${o(location.href)}`,w++,i("playedAsRegular",w),w=0)}async function i(o,r){const n=await chrome.storage.sync.get([o]),e=n[o]?n[o]:0,t=r/2,s=Math.ceil(e+t);chrome.storage.sync.set({[o]:s})}let y,R;async function L(o){const r=await v();if(!r.toggleState)return;const n=document.body;if(n!=null){if(o&&u(),setTimeout(()=>{u()},1500),r.toggleTurboState)R=setInterval(()=>{u()},500);else{let t=function(s,a){let A,c;return function(){const T=this,q=arguments;c?(clearTimeout(A),A=setTimeout(function(){Date.now()-c>=a&&(s.apply(T,q),c=Date.now())},a-(Date.now()-c))):(s.apply(T,q),c=Date.now())}};var e=t;y=new MutationObserver(t(async function(s,a){setTimeout(()=>{u()},1500)},3e3)),y.observe(n,{childList:!0,subtree:!0})}return}else setTimeout(function(){L()},1e3)}window.addEventListener("load",async function(){L()});chrome.runtime.onMessage.addListener(async function(o,r,n){o.checkStates&&(y&&y.disconnect(),clearInterval(R),L(!0))}); diff --git a/dist/assets/plug.svg b/dist/assets/plug.svg new file mode 100644 index 0000000..fe71c44 --- /dev/null +++ b/dist/assets/plug.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/assets/styles.css b/dist/assets/styles.css new file mode 100644 index 0000000..579cdb7 --- /dev/null +++ b/dist/assets/styles.css @@ -0,0 +1 @@ +#contents{width:90%!important;justify-content:flex-start!important}#contents>ytd-rich-grid-row,#contents>ytd-rich-grid-row>#contents{display:contents}#contents>ytd-rich-grid-row>#contents>ytd-rich-item-renderer{margin-bottom:18px;margin-top:18px} diff --git a/dist/assets/turbo.svg b/dist/assets/turbo.svg new file mode 100644 index 0000000..cd6978c --- /dev/null +++ b/dist/assets/turbo.svg @@ -0,0 +1,3 @@ + + + diff --git a/dist/icons/icon128.png b/dist/icons/icon128.png new file mode 100644 index 0000000..73b558c Binary files /dev/null and b/dist/icons/icon128.png differ diff --git a/dist/icons/icon16.png b/dist/icons/icon16.png new file mode 100644 index 0000000..3fe5499 Binary files /dev/null and b/dist/icons/icon16.png differ diff --git a/dist/icons/icon16_disabled.png b/dist/icons/icon16_disabled.png new file mode 100644 index 0000000..186132d Binary files /dev/null and b/dist/icons/icon16_disabled.png differ diff --git a/dist/icons/icon32.png b/dist/icons/icon32.png new file mode 100644 index 0000000..8cb083f Binary files /dev/null and b/dist/icons/icon32.png differ diff --git a/dist/icons/icon48.png b/dist/icons/icon48.png new file mode 100644 index 0000000..c933a69 Binary files /dev/null and b/dist/icons/icon48.png differ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..36767c8 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/dist/libs/jquery.min.js b/dist/libs/jquery.min.js new file mode 100644 index 0000000..b04d0fc --- /dev/null +++ b/dist/libs/jquery.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+c+"))"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=ce(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),d.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement("div")),(fe=S.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||E.expando+"_"+Ct.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||E.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=S.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0