diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..dca9e76 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Official website + url: https://www.zzhow.com/MagicShare + about: Please read the official documentation before submitting an issue, and if that doesn't solve your problem, then ask an issue. + - name: 官方网站 + url: https://www.zzhow.com/MagicShare + about: 请在提交问题之前先阅读官方文档,如果还不能解决问题,则再提问题。 diff --git a/.github/ISSUE_TEMPLATE/issue-template-bug.md b/.github/ISSUE_TEMPLATE/issue-template-bug.md new file mode 100644 index 0000000..5138e9b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue-template-bug.md @@ -0,0 +1,19 @@ +--- +name: Bug Report | Bug反馈 +about: Create a "Bug Report" | 创建一个"Bug反馈" +title: '' +labels: ["bug"] +assignees: '' +--- + + + +### Bug description | bug 描述 + +### Desired outcome | 期望的结果 + +### MagicEncoding version | MagicEncoding 版本 + +### Operating system version | 操作系统版本 + +### Screenshot | 截图 diff --git a/.github/ISSUE_TEMPLATE/template-feature.md b/.github/ISSUE_TEMPLATE/template-feature.md new file mode 100644 index 0000000..a7bb8b4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/template-feature.md @@ -0,0 +1,13 @@ +--- +name: Desired functionality | 期望的功能 +about: Tell us what features you would like | 告诉我们您期望的功能 +title: '' +labels: ["enhancement"] +assignees: '' +--- + + + +### Scenes to be used | 使用场景 + +### Functional Description | 功能描述 diff --git a/.github/ISSUE_TEMPLATE/template-question.md b/.github/ISSUE_TEMPLATE/template-question.md new file mode 100644 index 0000000..3a62d35 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/template-question.md @@ -0,0 +1,19 @@ +--- +name: Question Exchange | 问题交流 +about: Create a "Question Exchange" | 创建一个“问题交流” +title: '' +labels: ["question"] +assignees: '' +--- + + + +### Question description | 问题描述 + +### Desired outcome | 期望的结果 + +### MagicEncoding version | MagicEncoding 版本 + +### Operating system version | 操作系统版本 + +### Screenshot | 截图 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..192e7d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ + +/.idea +/backend/out +/backend/src/main/resources/META-INF diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..21a3c54 --- /dev/null +++ b/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) 2025 ZZHow(ZZHow1024) + + 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: + + MagicShare Copyright (C) 2025 ZZHow(ZZHow1024) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md index e7e2f55..3ec4faf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,124 @@ -# MagicShare -MagicShare +# [C/S项目]神奇分享_**MagicShare**(中文说明) + +--- + +Website: + +[[C/S项目]神奇分享_MagicShare | ZZHow](https://www.zzhow.com/MagicShare) + +Source Code: + +https://github.com/ZZHow1024/MagicShare + +Releases: + +https://github.com/ZZHow1024/MagicShare/releases + +--- + +## 它是什么? + +MagicShare 是一款跨平台的内网文件分享工具,发送方使用桌面客户端选择需要分享的文件,接收方使用 Web 页面下载分享的文件。 + +--- + +## 技术路线 + +![TechnicalRoute.png](./TechnicalRoute.png) + +- 编程语言:Java 和 JavaScript + +--- + +## 许可证 + +该项目根据 GNU 通用公共许可证 v3.0 获得许可 - 有关详细信息,请参阅 [LICENSE](./LICENSE) 文件。 + +--- + +## 用户许可协议 + +**使用本软件前,请仔细阅读:** + +- 合法使用:本软件仅限于合法文件分享,严禁分享任何侵犯版权、涉及色情、暴力、欺诈、违法或其他有害内容的文件。 +- 个人责任:您对分享内容的合法性负全部责任,请确保您拥有分享文件的合法授权。 +- 风险提示:本软件无法保证所分享文件的安全性,请您自行检查文件的安全性。 +- 免责声明:软件作者不对因使用本软件造成的任何直接或间接损失承担责任。 + +使用 MagicShare 须同意并遵守以上内容。 + +--- + +## 使用说明 + +下载地址: + +https://github.com/ZZHow1024/MagicShare/releases + +### 桌面客户端 + +- 确定您使用的操作系统。 + - Linux: + - 选择 .deb安装包(Debian, Ubuntu) / .rpm(Red Hat, Fedora, SUSE)安装包。 + - macOS: + - 确定您使用的 Mac 的芯片(Apple Silicon / Intel)。 + - 选择 .dmg磁盘镜像 / .pkg安装包。 + - Windows: + - 选择 .zip压缩包 / .exe安装包 / .msi安装包。 + - 通用: + - 选择 .jar包(计算机需要配置好 JRE) +- 下载对应的文件。 +- Linux 和 macOS 需要执行安装操作后再运行,Windows 可直接运行 .zip 压缩包中的 .exe 可执行程序或选择 .exe 安装包与 .msi 安装包执行安装操作,.jar 包可直接通过 `java -jar` 命令运行。 +- 启动 MagicShare 并认真阅读启动页说明,同意 “用户许可协议” 可继续使用。 +- 自定义端口后单击 “启动服务” 按钮 + - 若提示 “启动成功”,则表示服务正常启动,可将 ”分享URL“ 提供给接收方。 + - 若提示 ”端口被占用“,请尝试更换端口号。 + - 若提示 “端口号错误”,请检查自定义的端口号是否为 1~65535 的整数。 +- 将待分享的文件添加进分享列表中 + - 方式一:拖拽待分享的文件/文件夹至软件主界面上半部分。 + - 方式二:单击 “选择文件夹” 按钮选择待分享的文件夹。 + - 方式三:在 “分享的文件/文件夹” 文本输入框中输入待分享的文件/文件夹路径,按下 “Enter” 键。 +- 按下 “停止服务” 按钮可立即终止分享。 +- 按下 “清空分享列表” 按钮可立即清空分享列表。 + +### Web端 + +- 打开浏览器,访问 ”分享URL“。 +- 启动 MagicShare 并认真阅读启动页说明,同意 “用户许可协议” 可继续使用。 +- 下载文件 + - 单击 ”快速下载“ 使用浏览器下载器通过 HTTP 协议快速下载文件。 + - 单击 ”加密下载“ 使用 MagicShare 加密下载器通过 WebSocket 协议并使用 RSA+AES 混合加密下载文件,不支持同时加密下载多个文件。 +- 单击 “查看加密下载进度” 按钮,页面下方将弹出加密下载进度抽屉。 + +--- + +## 依赖项 + +该项目需要以下库: + +- [**Vue.js**](https://github.com/vuejs) 及配套组件:用于构建 Web 前端程序。 +- [**Spring Boot**](https://github.com/spring-projects/spring-boot) 及配套组件:用于构建 Web 后端程序。 +- [**OpenJFX**](https://openjfx.io/):用于构建图形用户界面的 JavaFX 库。 + +--- + +## 各版本功能介绍 + +- MagicShare1.0.0 + - 自定义端口启动服务。 + - 按文件夹/文件路径查找文件并生成列表。 + - Web 网页下载文件。 + - 支持通过 HTTP 协议快速下载文件 + - 支持通过 WebSocket 协议并使用 RSA+AES 混合加密下载文件 + +--- + +## 各版本主界面 + +![MagicShare1.0.0-Desktop](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fcc029b9b-e911-4cd4-b9c7-4b0853fa6d04%2FMagicShare1.0.0-Desktop.png?table=block&id=17fe64bd-e40f-8066-8c2d-f5f8b1ab0a23&t=17fe64bd-e40f-8066-8c2d-f5f8b1ab0a23&width=707&cache=v2) + +MagicShare1.0.0-Desktop + +![MagicShare1.0.0-Web](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4b165318-6383-451c-8845-110b786c9f0a%2Fa457bfec-f826-4936-8721-75fc46632fc2%2FMagicShare1.0.0-Web.png?table=block&id=17fe64bd-e40f-80d7-9c7c-fca929d6904d&t=17fe64bd-e40f-80d7-9c7c-fca929d6904d&width=707&cache=v2) + +MagicShare1.0.0-Web diff --git a/TechnicalRoute.png b/TechnicalRoute.png new file mode 100644 index 0000000..6a59f62 Binary files /dev/null and b/TechnicalRoute.png differ diff --git a/backend/.gitattributes b/backend/.gitattributes new file mode 100755 index 0000000..3b41682 --- /dev/null +++ b/backend/.gitattributes @@ -0,0 +1,2 @@ +/mvnw text eol=lf +*.cmd text eol=crlf diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100755 index 0000000..549e00a --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/backend/.mvn/wrapper/maven-wrapper.properties b/backend/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 0000000..d58dfb7 --- /dev/null +++ b/backend/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip diff --git a/backend/mvnw b/backend/mvnw new file mode 100755 index 0000000..19529dd --- /dev/null +++ b/backend/mvnw @@ -0,0 +1,259 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Apache Maven Wrapper startup batch script, version 3.3.2 +# +# Optional ENV vars +# ----------------- +# JAVA_HOME - location of a JDK home dir, required when download maven via java source +# MVNW_REPOURL - repo url base for downloading maven distribution +# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output +# ---------------------------------------------------------------------------- + +set -euf +[ "${MVNW_VERBOSE-}" != debug ] || set -x + +# OS specific support. +native_path() { printf %s\\n "$1"; } +case "$(uname)" in +CYGWIN* | MINGW*) + [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")" + native_path() { cygpath --path --windows "$1"; } + ;; +esac + +# set JAVACMD and JAVACCMD +set_java_home() { + # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched + if [ -n "${JAVA_HOME-}" ]; then + if [ -x "$JAVA_HOME/jre/sh/java" ]; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACCMD="$JAVA_HOME/jre/sh/javac" + else + JAVACMD="$JAVA_HOME/bin/java" + JAVACCMD="$JAVA_HOME/bin/javac" + + if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then + echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2 + echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2 + return 1 + fi + fi + else + JAVACMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v java + )" || : + JAVACCMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v javac + )" || : + + if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then + echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2 + return 1 + fi + fi +} + +# hash string like Java String::hashCode +hash_string() { + str="${1:-}" h=0 + while [ -n "$str" ]; do + char="${str%"${str#?}"}" + h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296)) + str="${str#?}" + done + printf %x\\n $h +} + +verbose() { :; } +[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; } + +die() { + printf %s\\n "$1" >&2 + exit 1 +} + +trim() { + # MWRAPPER-139: + # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds. + # Needed for removing poorly interpreted newline sequences when running in more + # exotic environments such as mingw bash on Windows. + printf "%s" "${1}" | tr -d '[:space:]' +} + +# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties +while IFS="=" read -r key value; do + case "${key-}" in + distributionUrl) distributionUrl=$(trim "${value-}") ;; + distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; + esac +done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties" + +case "${distributionUrl##*/}" in +maven-mvnd-*bin.*) + MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ + case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in + *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;; + :Darwin*x86_64) distributionPlatform=darwin-amd64 ;; + :Darwin*arm64) distributionPlatform=darwin-aarch64 ;; + :Linux*x86_64*) distributionPlatform=linux-amd64 ;; + *) + echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2 + distributionPlatform=linux-amd64 + ;; + esac + distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" + ;; +maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; +*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; +esac + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}" +distributionUrlName="${distributionUrl##*/}" +distributionUrlNameMain="${distributionUrlName%.*}" +distributionUrlNameMain="${distributionUrlNameMain%-bin}" +MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}" +MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")" + +exec_maven() { + unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || : + exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD" +} + +if [ -d "$MAVEN_HOME" ]; then + verbose "found existing MAVEN_HOME at $MAVEN_HOME" + exec_maven "$@" +fi + +case "${distributionUrl-}" in +*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;; +*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;; +esac + +# prepare tmp dir +if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then + clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; } + trap clean HUP INT TERM EXIT +else + die "cannot create temp dir" +fi + +mkdir -p -- "${MAVEN_HOME%/*}" + +# Download and Install Apache Maven +verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +verbose "Downloading from: $distributionUrl" +verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +# select .zip or .tar.gz +if ! command -v unzip >/dev/null; then + distributionUrl="${distributionUrl%.zip}.tar.gz" + distributionUrlName="${distributionUrl##*/}" +fi + +# verbose opt +__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR='' +[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v + +# normalize http auth +case "${MVNW_PASSWORD:+has-password}" in +'') MVNW_USERNAME='' MVNW_PASSWORD='' ;; +has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;; +esac + +if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then + verbose "Found wget ... using wget" + wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl" +elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then + verbose "Found curl ... using curl" + curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl" +elif set_java_home; then + verbose "Falling back to use Java to download" + javaSource="$TMP_DOWNLOAD_DIR/Downloader.java" + targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName" + cat >"$javaSource" <<-END + public class Downloader extends java.net.Authenticator + { + protected java.net.PasswordAuthentication getPasswordAuthentication() + { + return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() ); + } + public static void main( String[] args ) throws Exception + { + setDefault( new Downloader() ); + java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); + } + } + END + # For Cygwin/MinGW, switch paths to Windows format before running javac and java + verbose " - Compiling Downloader.java ..." + "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java" + verbose " - Running Downloader.java ..." + "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" +fi + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +if [ -n "${distributionSha256Sum-}" ]; then + distributionSha256Result=false + if [ "$MVN_CMD" = mvnd.sh ]; then + echo "Checksum validation is not supported for maven-mvnd." >&2 + echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + elif command -v sha256sum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then + distributionSha256Result=true + fi + elif command -v shasum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then + distributionSha256Result=true + fi + else + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2 + echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + fi + if [ $distributionSha256Result = false ]; then + echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2 + echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2 + exit 1 + fi +fi + +# unzip and move +if command -v unzip >/dev/null; then + unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip" +else + tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" +fi +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" + +clean || : +exec_maven "$@" diff --git a/backend/mvnw.cmd b/backend/mvnw.cmd new file mode 100755 index 0000000..249bdf3 --- /dev/null +++ b/backend/mvnw.cmd @@ -0,0 +1,149 @@ +<# : batch portion +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Apache Maven Wrapper startup batch script, version 3.3.2 +@REM +@REM Optional ENV vars +@REM MVNW_REPOURL - repo url base for downloading maven distribution +@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output +@REM ---------------------------------------------------------------------------- + +@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0) +@SET __MVNW_CMD__= +@SET __MVNW_ERROR__= +@SET __MVNW_PSMODULEP_SAVE=%PSModulePath% +@SET PSModulePath= +@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @( + IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B) +) +@SET PSModulePath=%__MVNW_PSMODULEP_SAVE% +@SET __MVNW_PSMODULEP_SAVE= +@SET __MVNW_ARG0_NAME__= +@SET MVNW_USERNAME= +@SET MVNW_PASSWORD= +@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*) +@echo Cannot start maven from wrapper >&2 && exit /b 1 +@GOTO :EOF +: end batch / begin powershell #> + +$ErrorActionPreference = "Stop" +if ($env:MVNW_VERBOSE -eq "true") { + $VerbosePreference = "Continue" +} + +# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties +$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl +if (!$distributionUrl) { + Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" +} + +switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) { + "maven-mvnd-*" { + $USE_MVND = $true + $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip" + $MVN_CMD = "mvnd.cmd" + break + } + default { + $USE_MVND = $false + $MVN_CMD = $script -replace '^mvnw','mvn' + break + } +} + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +if ($env:MVNW_REPOURL) { + $MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" } + $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')" +} +$distributionUrlName = $distributionUrl -replace '^.*/','' +$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$','' +$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain" +if ($env:MAVEN_USER_HOME) { + $MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain" +} +$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join '' +$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME" + +if (Test-Path -Path "$MAVEN_HOME" -PathType Container) { + Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME" + Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" + exit $? +} + +if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) { + Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl" +} + +# prepare tmp dir +$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile +$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir" +$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null +trap { + if ($TMP_DOWNLOAD_DIR.Exists) { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } + } +} + +New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null + +# Download and Install Apache Maven +Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +Write-Verbose "Downloading from: $distributionUrl" +Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +$webclient = New-Object System.Net.WebClient +if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) { + $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD) +} +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum +if ($distributionSha256Sum) { + if ($USE_MVND) { + Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." + } + Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash + if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) { + Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property." + } +} + +# unzip and move +Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null +Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null +try { + Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null +} catch { + if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { + Write-Error "fail to move MAVEN_HOME" + } +} finally { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } +} + +Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" diff --git a/backend/pom.xml b/backend/pom.xml new file mode 100755 index 0000000..46882e4 --- /dev/null +++ b/backend/pom.xml @@ -0,0 +1,100 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.4.1 + + + com.zzhow + MagicShare + 1.0.0 + MagicShare + MagicShare + + + + + + + + + + + + + + + 21 + 21 + 21 + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-websocket + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.openjfx + javafx-controls + 21 + + + org.openjfx + javafx-fxml + 21 + + + org.springframework.boot + spring-boot-starter-web + + + + + com.fasterxml.jackson.core + jackson-core + 2.18.2 + + + + + + + + org.openjfx + javafx-maven-plugin + 0.0.8 + + + + default-cli + + com.zzhow.magicshare/com.zzhow.magicshare.ui.MainView + app + app + app + true + true + true + + + + + + + + diff --git a/backend/src/main/java/com/zzhow/magicshare/MagicShareApplication.java b/backend/src/main/java/com/zzhow/magicshare/MagicShareApplication.java new file mode 100755 index 0000000..1f972ea --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/MagicShareApplication.java @@ -0,0 +1,13 @@ +package com.zzhow.magicshare; + +import com.zzhow.magicshare.ui.window.PromptWindow; + +/** + * @author ZZHow + * @date 2025/1/12 + */ +public class MagicShareApplication { + public static void main(String[] args) { + PromptWindow.show(); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/config/WebSocketConfig.java b/backend/src/main/java/com/zzhow/magicshare/config/WebSocketConfig.java new file mode 100644 index 0000000..4e9ac33 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/config/WebSocketConfig.java @@ -0,0 +1,21 @@ +package com.zzhow.magicshare.config; + +import com.zzhow.magicshare.websocket.FileWebSocketHandler; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.socket.config.annotation.EnableWebSocket; +import org.springframework.web.socket.config.annotation.WebSocketConfigurer; +import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; + +/** + * @author ZZHow + * @date 2025/01/16 + */ +@Configuration +@EnableWebSocket +public class WebSocketConfig implements WebSocketConfigurer { + @Override + public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { + // 注册 WebSocket 端点并指定处理器 + registry.addHandler(new FileWebSocketHandler(), "/ws/download").setAllowedOrigins("*"); + } +} \ No newline at end of file diff --git a/backend/src/main/java/com/zzhow/magicshare/controller/DownloadController.java b/backend/src/main/java/com/zzhow/magicshare/controller/DownloadController.java new file mode 100644 index 0000000..34ea671 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/controller/DownloadController.java @@ -0,0 +1,60 @@ +package com.zzhow.magicshare.controller; + +import com.zzhow.magicshare.pojo.entity.FileDetail; +import com.zzhow.magicshare.repository.FileRepository; +import org.springframework.core.io.Resource; +import org.springframework.core.io.UrlResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; + +import java.io.*; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.nio.file.Path; +import java.util.List; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +@RestController() +@RequestMapping("/api/download") +public class DownloadController { + @GetMapping("/{fileId}") + public ResponseEntity downloadFile(String shareId, @PathVariable String fileId) { + if (shareId == null || fileId == null) { + return ResponseEntity.badRequest().build(); + } + + if (!shareId.equals(FileRepository.getUuid())) { + return ResponseEntity.notFound().build(); + } + + try { + // 构建文件路径 + List files = FileRepository.getFiles(); + int index = files.indexOf(new FileDetail(fileId)); + if (index == -1) + return ResponseEntity.notFound().build(); + + String path = FileRepository.getBasePath() + files.get(index).getPath(); + Path filePath = new File(path).toPath(); + + Resource resource = new UrlResource(filePath.toUri()); + + // 检查文件是否存在和可读 + if (!resource.exists() || !resource.isReadable()) { + return ResponseEntity.notFound().build(); + } + + // 返回文件作为响应 + return ResponseEntity.ok() + .header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + URLEncoder.encode(resource.getFilename(), StandardCharsets.UTF_8) + "\"") + .body(resource); + } catch (Exception ex) { + ex.printStackTrace(); + return ResponseEntity.internalServerError().build(); + } + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/controller/FileController.java b/backend/src/main/java/com/zzhow/magicshare/controller/FileController.java new file mode 100644 index 0000000..5a848ef --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/controller/FileController.java @@ -0,0 +1,29 @@ +package com.zzhow.magicshare.controller; + +import com.zzhow.magicshare.pojo.dto.CryptoDTO; +import com.zzhow.magicshare.pojo.vo.CryptoVO; +import com.zzhow.magicshare.result.Result; +import com.zzhow.magicshare.service.FileService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +@RestController() +@RequestMapping("/api/file") +public class FileController { + @Autowired + private FileService fileService; + + @PostMapping(path = "/list") + public Result fileList(@RequestBody CryptoDTO cryptoDTO) { + return Result.success(fileService.getFileList(cryptoDTO.getKey())); + } + + @GetMapping(path = "/check") + public Result checkCurrentShare(@RequestParam String shareId) { + return Result.success(fileService.checkCurrentShare(shareId)); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/controller/VueController.java b/backend/src/main/java/com/zzhow/magicshare/controller/VueController.java new file mode 100644 index 0000000..97019d2 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/controller/VueController.java @@ -0,0 +1,16 @@ +package com.zzhow.magicshare.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +@Controller +public class VueController { + @RequestMapping("/{path:[^\\.]*}") + public String redirect() { + return "forward:/index.html"; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/filter/CorsFilter.java b/backend/src/main/java/com/zzhow/magicshare/filter/CorsFilter.java new file mode 100644 index 0000000..1fbf82b --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/filter/CorsFilter.java @@ -0,0 +1,31 @@ +package com.zzhow.magicshare.filter; + +import jakarta.servlet.*; +import org.springframework.stereotype.Component; +import jakarta.servlet.http.HttpServletResponse; + +import java.io.IOException; + +/** + * 添加响应头,允许跨域 + * + * @author ZZHow + * @date 2025/01/14 + */ +@Component +public class CorsFilter implements Filter { + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException { + HttpServletResponse httpResponse = (HttpServletResponse) response; + + httpResponse.setHeader("Access-Control-Allow-Origin", "*"); + httpResponse.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); + httpResponse.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, token"); + httpResponse.setHeader("Access-Control-Allow-Credentials", "true"); + + chain.doFilter(request, response); + } + +} \ No newline at end of file diff --git a/backend/src/main/java/com/zzhow/magicshare/pojo/dto/CryptoDTO.java b/backend/src/main/java/com/zzhow/magicshare/pojo/dto/CryptoDTO.java new file mode 100644 index 0000000..c8eedbf --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/pojo/dto/CryptoDTO.java @@ -0,0 +1,24 @@ +package com.zzhow.magicshare.pojo.dto; + +/** + * @author ZZHow + * @date 2025/01/15 + */ +public class CryptoDTO { + private String key; + + public CryptoDTO() { + } + + public CryptoDTO(String key) { + this.key = key; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/pojo/entity/AesCrypto.java b/backend/src/main/java/com/zzhow/magicshare/pojo/entity/AesCrypto.java new file mode 100644 index 0000000..d788a62 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/pojo/entity/AesCrypto.java @@ -0,0 +1,36 @@ +package com.zzhow.magicshare.pojo.entity; + +import javax.crypto.SecretKey; + +/** + * @author ZZHow + * @date 2025/01/16 + */ +public class AesCrypto { + private SecretKey key; + private byte[] iv; + + public AesCrypto() { + } + + public AesCrypto(SecretKey key, byte[] iv) { + this.key = key; + this.iv = iv; + } + + public SecretKey getKey() { + return key; + } + + public void setKey(SecretKey key) { + this.key = key; + } + + public byte[] getIv() { + return iv; + } + + public void setIv(byte[] iv) { + this.iv = iv; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/pojo/entity/FileDetail.java b/backend/src/main/java/com/zzhow/magicshare/pojo/entity/FileDetail.java new file mode 100644 index 0000000..5f20bd5 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/pojo/entity/FileDetail.java @@ -0,0 +1,98 @@ +package com.zzhow.magicshare.pojo.entity; + +import java.util.Objects; + +/** + * 文件实体类 + * + * @author ZZHow + * @date 2025/01/14 + */ +public class FileDetail { + // 文件 ID + private String fileId; + // 文件名 + private String name; + // 文件类型 + private String type; + // 文件大小(KB) + private double size; + // 文件路径 + private String path; + + public FileDetail() { + } + + public FileDetail(String fileId) { + this.fileId = fileId; + } + + public FileDetail(String fileId, String name, String type, double size, String path) { + this.fileId = fileId; + this.name = name; + this.type = type; + this.size = size; + this.path = path; + } + + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public double getSize() { + return size; + } + + public void setSize(double size) { + this.size = size; + } + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + @Override + public String toString() { + return "FileDetail{" + + "name='" + name + '\'' + + ", type='" + type + '\'' + + ", path='" + path + '\'' + + "}\n"; + } + + @Override + public boolean equals(Object o) { + if (o == null || getClass() != o.getClass()) return false; + FileDetail that = (FileDetail) o; + return this.fileId.equals(that.fileId); + } + + @Override + public int hashCode() { + return Objects.hashCode(fileId); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/pojo/vo/CryptoVO.java b/backend/src/main/java/com/zzhow/magicshare/pojo/vo/CryptoVO.java new file mode 100644 index 0000000..35b8e5d --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/pojo/vo/CryptoVO.java @@ -0,0 +1,44 @@ +package com.zzhow.magicshare.pojo.vo; + +/** + * @author ZZHow + * @date 2025/01/15 + */ +public class CryptoVO { + private String key; + private String iv; + private String data; + + public CryptoVO() { + } + + public CryptoVO(String key, String iv, String data) { + this.key = key; + this.iv = iv; + this.data = data; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getIv() { + return iv; + } + + public void setIv(String iv) { + this.iv = iv; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/pojo/vo/FileListVO.java b/backend/src/main/java/com/zzhow/magicshare/pojo/vo/FileListVO.java new file mode 100644 index 0000000..f84adbb --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/pojo/vo/FileListVO.java @@ -0,0 +1,51 @@ +package com.zzhow.magicshare.pojo.vo; + +import com.zzhow.magicshare.pojo.entity.FileDetail; + +import java.util.List; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public class FileListVO { + // 分享 ID + private String shareId; + // 总文件数 + private Integer count; + // 文件列表 + private List files; + + public FileListVO() { + } + + public FileListVO(String shareId, Integer count, List files) { + this.shareId = shareId; + this.count = count; + this.files = files; + } + + public String getShareId() { + return shareId; + } + + public void setShareId(String shareId) { + this.shareId = shareId; + } + + public List getFiles() { + return files; + } + + public void setFiles(List files) { + this.files = files; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/repository/AesKeyRepository.java b/backend/src/main/java/com/zzhow/magicshare/repository/AesKeyRepository.java new file mode 100644 index 0000000..dcb9ae4 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/repository/AesKeyRepository.java @@ -0,0 +1,38 @@ +package com.zzhow.magicshare.repository; + +import com.zzhow.magicshare.pojo.entity.AesCrypto; + +import javax.crypto.SecretKey; +import java.util.HashMap; +import java.util.Map; + +/** + * @author ZZHow + * @date 2025/01/16 + */ +public class AesKeyRepository { + private static final Map keys = new HashMap<>(); + + private AesKeyRepository() { + } + + public static void clear() { + keys.clear(); + } + + public static void set(String session, AesCrypto aesCrypto) { + keys.put(session, aesCrypto); + } + + public static void set(String session, SecretKey key, byte[] iv) { + keys.put(session, new AesCrypto(key, iv)); + } + + public static void delete(String session) { + keys.remove(session); + } + + public static AesCrypto get(String session) { + return keys.get(session); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/repository/FileRepository.java b/backend/src/main/java/com/zzhow/magicshare/repository/FileRepository.java new file mode 100644 index 0000000..836127b --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/repository/FileRepository.java @@ -0,0 +1,58 @@ +package com.zzhow.magicshare.repository; + +import com.zzhow.magicshare.pojo.entity.FileDetail; + +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public class FileRepository { + // 分享 ID + private static String uuid = UUID.randomUUID().toString(); + // 文件基路径 + private static String basePath = ""; + // 文件列表 + private static List files = new ArrayList<>(); + + private FileRepository() { + } + + public static List getFiles() { + return files; + } + + public static void clearFiles() { + uuid = UUID.randomUUID().toString(); + basePath = ""; + files.clear(); + } + + public static void addFile(FileDetail fileDetail) { + files.add(fileDetail); + } + + public static int size() { + return files.size(); + } + + public static String getUuid() { + return uuid; + } + + public static void setFiles(String bashPath, List files) { + FileRepository.basePath = bashPath; + FileRepository.files = files; + } + + public static void setBasePath(String basePath) { + FileRepository.basePath = basePath; + } + + public static String getBasePath() { + return basePath; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/result/Result.java b/backend/src/main/java/com/zzhow/magicshare/result/Result.java new file mode 100644 index 0000000..386eb98 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/result/Result.java @@ -0,0 +1,82 @@ +package com.zzhow.magicshare.result; + +/** + * 统一的结果 + * + * @author ZZHow + * @date 2025/01/14 + */ +public class Result { + private Integer code; // 代码:1 成功,0 和其它数字为失败 + private String message; // 信息 + private T data; // 数据 + + public Result() { + } + + public Result(Integer code, String message, T data) { + this.code = code; + this.message = message; + this.data = data; + } + + public static Result success() { + return new Result<>(0, "success", null); + } + + public static Result success(String message, T object) { + return new Result<>(0, message, object); + } + + public static Result success(T object) { + return new Result<>(0, "success", object); + } + + public static Result error(String message) { + return new Result<>(1, message, null); + } + + public static Result error(Integer code, String message) { + return new Result<>(code, message, null); + } + + public static Result loginSuccessful(T object) { + return new Result<>(0, "Login successful", object); + } + + public static Result loginFailed(Integer code, String message) { + return new Result<>(code, message, null); + } + + public static Result unauthorized() { + return new Result<>(1, "Unauthorized", null); + } + + public static Result resourceNotFound() { + return new Result<>(1, "Resource Not Found", null); + } + + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public T getData() { + return data; + } + + public void setData(T data) { + this.data = data; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/service/FileService.java b/backend/src/main/java/com/zzhow/magicshare/service/FileService.java new file mode 100644 index 0000000..dc53121 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/service/FileService.java @@ -0,0 +1,26 @@ +package com.zzhow.magicshare.service; + +import com.zzhow.magicshare.pojo.vo.CryptoVO; +import com.zzhow.magicshare.pojo.vo.FileListVO; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public interface FileService { + /** + * 获得分享的文件列表 + * + * @param publicKey 公钥 + * @return 分享的文件列表(经过 AES 加密) + */ + CryptoVO getFileList(String publicKey); + + /** + * 检查是否为当前分享 + * + * @param shareId 分享 ID + * @return 是否为当前分享 + */ + boolean checkCurrentShare(String shareId); +} diff --git a/backend/src/main/java/com/zzhow/magicshare/service/impl/FileServiceImpl.java b/backend/src/main/java/com/zzhow/magicshare/service/impl/FileServiceImpl.java new file mode 100644 index 0000000..2e61c2e --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/service/impl/FileServiceImpl.java @@ -0,0 +1,95 @@ +package com.zzhow.magicshare.service.impl; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.zzhow.magicshare.pojo.vo.CryptoVO; +import com.zzhow.magicshare.pojo.vo.FileListVO; +import com.zzhow.magicshare.repository.FileRepository; +import com.zzhow.magicshare.service.FileService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import javax.crypto.*; +import javax.crypto.spec.IvParameterSpec; +import java.security.*; +import java.security.spec.InvalidKeySpecException; +import java.security.spec.X509EncodedKeySpec; +import java.util.Base64; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +@Service +public class FileServiceImpl implements FileService { + private static final Logger log = LoggerFactory.getLogger(FileServiceImpl.class); + + /** + * 获得分享的文件列表 + * + * @param publicKey 公钥 + * @return 分享的文件列表 + */ + @Override + public CryptoVO getFileList(String publicKey) { + FileListVO fileListVO = new FileListVO(FileRepository.getUuid(), FileRepository.size(), FileRepository.getFiles()); + + try { + // Base64 解码 + publicKey = new String(Base64.getDecoder().decode(publicKey)); + // 去除 PEM 格式的头尾 + String publicKeyContent = publicKey.replaceAll("-----\\w+ PUBLIC KEY-----", "").replaceAll("\\s+", ""); + byte[] keyBytes = Base64.getDecoder().decode(publicKeyContent); + + // 加载公钥 + X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + PublicKey clientPublicKey = keyFactory.generatePublic(spec); + + // 生成随机 AES 密钥 + KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); + keyGenerator.init(256); // 选择 AES 256 位密钥 + SecretKey aesKey = keyGenerator.generateKey(); + + // 生成随机 IV(初始化向量) + byte[] iv = new byte[16]; // AES 块大小 128 位 + SecureRandom secureRandom = new SecureRandom(); + secureRandom.nextBytes(iv); // 填充随机数据到 iv 数组 + + // 使用 RSA 加密 AES 密钥 + Cipher rsaCipher = Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding"); + rsaCipher.init(Cipher.ENCRYPT_MODE, clientPublicKey); + byte[] encryptedAesKey = rsaCipher.doFinal(aesKey.getEncoded()); + + // 初始化 AES 加密器 + Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); + IvParameterSpec ivSpec = new IvParameterSpec(iv); + cipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec); + + // 加密数据 + ObjectMapper objectMapper = new ObjectMapper(); + String jsonString = objectMapper.writeValueAsString(fileListVO); // 将对象序列化为 JSON 字符串 + byte[] encryptedData = cipher.doFinal(jsonString.getBytes()); + + // 返回加密的 AES 密钥、IV 和加密数据 + return new CryptoVO(Base64.getEncoder().encodeToString(encryptedAesKey), Base64.getEncoder().encodeToString(iv), Base64.getEncoder().encodeToString(encryptedData)); + } catch (NoSuchAlgorithmException | NoSuchPaddingException | IllegalBlockSizeException | + InvalidKeySpecException | BadPaddingException | InvalidKeyException | JsonProcessingException | + InvalidAlgorithmParameterException e) { + throw new RuntimeException(e); + } + + } + + /** + * 检查是否为当前分享 + * + * @param shareId 分享 ID + * @return 是否为当前分享 + */ + @Override + public boolean checkCurrentShare(String shareId) { + return FileRepository.getUuid().equals(shareId); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/controller/MainController.java b/backend/src/main/java/com/zzhow/magicshare/ui/controller/MainController.java new file mode 100644 index 0000000..f1a164b --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/controller/MainController.java @@ -0,0 +1,181 @@ +package com.zzhow.magicshare.ui.controller; + +import com.zzhow.magicshare.repository.FileRepository; +import com.zzhow.magicshare.pojo.entity.FileDetail; +import com.zzhow.magicshare.ui.service.ShareService; +import com.zzhow.magicshare.ui.service.impl.ShareServiceImpl; +import com.zzhow.magicshare.ui.window.AboutWindow; +import com.zzhow.magicshare.ui.window.MainWindow; +import com.zzhow.magicshare.util.InternetUtil; +import com.zzhow.magicshare.util.MessageBox; +import javafx.beans.property.SimpleStringProperty; +import javafx.fxml.FXML; +import javafx.scene.control.*; +import javafx.scene.input.DragEvent; +import javafx.scene.input.KeyCode; +import javafx.scene.input.KeyEvent; +import javafx.scene.input.TransferMode; +import javafx.stage.DirectoryChooser; +import javafx.stage.FileChooser; + +import java.io.File; +import java.util.List; + +/** + * @author ZZHow + * @date 2025/1/13 + */ +public class MainController { + @FXML + private Label label1; + @FXML + private Label label2; + @FXML + private Label label3; + @FXML + private Label label4; + @FXML + private Label label5; + @FXML + private Label label6; + @FXML + private TextField textField1; + @FXML + private TextField textField2; + @FXML + private Button button1; + @FXML + private Button button2; + @FXML + private TableView tableView1; + + private final ShareService shareService = new ShareServiceImpl(); + + private boolean serviceIsStarted = false; + + @FXML + private void initialize() { + label2.setText(InternetUtil.getLocalIpAddress()); + + // 创建列 + TableColumn fileNameCol = new TableColumn<>("文件名"); + fileNameCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getName())); + TableColumn fileTypeCol = new TableColumn<>("类型"); + fileTypeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getType())); + TableColumn fileSizeCol = new TableColumn<>("大小(KB)"); + fileSizeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getSize() + "")); + TableColumn filePathCol = new TableColumn<>("相对路径"); + filePathCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getPath())); + tableView1.getColumns().addAll(fileNameCol, fileTypeCol, fileSizeCol, filePathCol); + tableView1.setPlaceholder(new Label("分享列表为空")); + + // 设置列的宽度比例 + tableView1.widthProperty().addListener((obs, oldWidth, newWidth) -> { + double totalWidth = newWidth.doubleValue(); + fileNameCol.setPrefWidth(totalWidth * 0.25); + fileTypeCol.setPrefWidth(totalWidth * 0.12); + fileSizeCol.setPrefWidth(totalWidth * 0.13); + filePathCol.setPrefWidth(totalWidth * 0.50); + }); + } + + @FXML + private void onStartOrStopServiceKeyDown(KeyEvent keyEvent) { + if (keyEvent.getCode().equals(KeyCode.ENTER)) + onStartOrStopServiceClicked(); + } + + @FXML + private void onStartOrStopServiceClicked() { + if (serviceIsStarted) { + textField1.setDisable(false); + label1.setText("内网IPv4地址:"); + label2.setText(InternetUtil.getLocalIpAddress()); + button1.setText("启动服务"); + shareService.stopService(); + MessageBox.success("停止成功", "MagicShare 服务停止成功"); + serviceIsStarted = false; + + return; + } + + + byte i = shareService.startService(textField1.getText()); + switch (i) { + case 0 -> { + textField1.setDisable(true); + label1.setText("分享URL:"); + label2.setText("http://" + InternetUtil.getLocalIpAddress() + ":" + textField1.getText()); + MessageBox.success("启动成功", "MagicShare 服务启动成功"); + button1.setText("停止服务"); + serviceIsStarted = true; + } + case 1 -> { + MessageBox.error("端口号错误", "端口号应为 1~65535 的整数"); + } + case 2 -> { + MessageBox.error("端口被占用", "请尝试更换端口号"); + } + } + } + + @FXML + private void onSelectFileClicked() { + DirectoryChooser directoryChooser = new DirectoryChooser(); + directoryChooser.setTitle("选择文件夹"); + try { + textField2.setText(directoryChooser.showDialog(MainWindow.getStage()).getAbsolutePath()); + onSearchFileClicked(); + } catch (NullPointerException e) { + // 未选择文件夹 + } + } + + @FXML + private void onClearFileClicked() { + textField2.setText(""); + onSearchFileClicked(); + } + + @FXML + private void onSearchFileKeyDown(KeyEvent keyEvent) { + if (keyEvent.getCode() == KeyCode.ENTER) + onSearchFileClicked(); + } + + @FXML + private void onSearchFileClicked() { + label6.setText("0"); + tableView1.getItems().clear(); + + shareService.searchFile(textField2.getText()); + + for (FileDetail fileDetail : FileRepository.getFiles()) + tableView1.getItems().add(fileDetail); + label6.setText(FileRepository.size() + ""); + } + + @FXML + private void handleDragOver(DragEvent event) { + if (event.getGestureSource() != event.getTarget() // 是否从外部拖拽 + && event.getDragboard().hasFiles()) { // 是否拖拽了文件 + event.acceptTransferModes(TransferMode.COPY_OR_MOVE); // 接受拖拽的文件 + } + event.consume(); + } + + @FXML + private void onDragFile(DragEvent event) { + List files = event.getDragboard().getFiles(); + if (!files.isEmpty()) { + textField2.setText(files.get(0).getAbsolutePath()); + } + + onSearchFileClicked(); + } + + @FXML + private void onAboutClicked() { + AboutWindow.open(); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/controller/PromptController.java b/backend/src/main/java/com/zzhow/magicshare/ui/controller/PromptController.java new file mode 100644 index 0000000..9c8b35e --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/controller/PromptController.java @@ -0,0 +1,20 @@ +package com.zzhow.magicshare.ui.controller; + +import com.zzhow.magicshare.ui.window.PromptWindow; +import javafx.fxml.FXML; + +/** + * @author ZZHow + * @date 2025/01/17 + */ +public class PromptController { + @FXML + private void onAgreeClicked() { + PromptWindow.close(); + } + + @FXML + private void onExitClicked() { + System.exit(0); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/service/ShareService.java b/backend/src/main/java/com/zzhow/magicshare/ui/service/ShareService.java new file mode 100644 index 0000000..17e0aa8 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/service/ShareService.java @@ -0,0 +1,27 @@ +package com.zzhow.magicshare.ui.service; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public interface ShareService { + /** + * 启动 MagicShare 服务 + * + * @param port 端口号 + * @return 0-启动成功;1-端口号错误;2-端口被占用 + */ + byte startService(String port); + + /** + * 停止 MagicShare 服务 + */ + void stopService(); + + /** + * 查找文件 + * + * @param path 路径 + */ + void searchFile(String path); +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/service/impl/ShareServiceImpl.java b/backend/src/main/java/com/zzhow/magicshare/ui/service/impl/ShareServiceImpl.java new file mode 100644 index 0000000..f64fff7 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/service/impl/ShareServiceImpl.java @@ -0,0 +1,61 @@ +package com.zzhow.magicshare.ui.service.impl; + +import com.zzhow.magicshare.repository.FileRepository; +import com.zzhow.magicshare.util.Application; +import com.zzhow.magicshare.ui.service.ShareService; +import com.zzhow.magicshare.util.FileUtil; +import com.zzhow.magicshare.util.InternetUtil; +import org.springframework.boot.SpringApplication; +import org.springframework.context.ConfigurableApplicationContext; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public class ShareServiceImpl implements ShareService { + private ConfigurableApplicationContext applicationContext; + + /** + * 启动 MagicShare 服务 + * + * @param portStr 端口号 + * @return 0-启动成功;1-端口号错误;2-端口被占用 + */ + @Override + public byte startService(String portStr) { + try { + int port = Integer.parseInt(portStr); + if (port < 1 || port > 65535) + return 1; + if (InternetUtil.isPortInUse(port)) + return 2; + else { + applicationContext = Application.startSpringBoot("--server.port=" + port); + + return 0; + } + } catch (NumberFormatException e) { + return 1; + } + } + + /** + * 停止 MagicShare 服务 + */ + @Override + public void stopService() { + SpringApplication.exit(applicationContext, () -> 0); + } + + /** + * 查找文件 + * + * @param path 路径 + */ + @Override + public void searchFile(String path) { + FileRepository.clearFiles(); + FileRepository.setBasePath(path); + FileUtil.find(path, FileRepository.getFiles()); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/window/AboutWindow.java b/backend/src/main/java/com/zzhow/magicshare/ui/window/AboutWindow.java new file mode 100644 index 0000000..63acf31 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/window/AboutWindow.java @@ -0,0 +1,57 @@ +package com.zzhow.magicshare.ui.window; + +import com.zzhow.magicshare.MagicShareApplication; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.image.Image; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; + +import java.io.IOException; +import java.util.Objects; + +/** + * @author ZZHow + * @date 2025/01/17 + */ +public class AboutWindow extends javafx.application.Application { + private static Stage stage = null; + + @Override + public void start(Stage stage) throws IOException { + AboutWindow.stage = stage; + FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource("about-window.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 600, 400); + stage.setTitle("MagicShare-About"); + stage.setScene(scene); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + stage.setResizable(false); + stage.show(); + } + + public static void open() { + Stage stage = new Stage(); + stage.setTitle("MagicShare-About"); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + stage.setResizable(false); + try { + Pane load = FXMLLoader.load(Objects.requireNonNull(MainWindow.class.getResource("about-window.fxml"))); + Scene scene = new Scene(load); + stage.setScene(scene); + stage.show(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public static void close() { + stage.close(); + MainWindow.open(); + } + + public static void show() { + launch(); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/window/MainWindow.java b/backend/src/main/java/com/zzhow/magicshare/ui/window/MainWindow.java new file mode 100755 index 0000000..ddc0579 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/window/MainWindow.java @@ -0,0 +1,61 @@ +package com.zzhow.magicshare.ui.window; + +import com.zzhow.magicshare.MagicShareApplication; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.image.Image; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; + +import java.io.IOException; +import java.util.Objects; + +/** + * @author ZZHow + * @date 2025/1/12 + */ +public class MainWindow extends javafx.application.Application { + private static Stage stage = null; + + @Override + public void start(Stage stage) throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource("main-window.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 600, 400); + stage.setTitle("MagicShare"); + stage.setScene(scene); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + stage.setResizable(false); + stage.setOnHiding(windowEvent -> { + System.exit(0); + }); + stage.show(); + } + + public static void open() { + Stage stage = new Stage(); + stage.setTitle("MagicShare"); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + stage.setResizable(false); + try { + Pane load = FXMLLoader.load(Objects.requireNonNull(MainWindow.class.getResource("main-window.fxml"))); + Scene scene = new Scene(load); + stage.setScene(scene); + stage.setOnHiding(windowEvent -> { + System.exit(0); + }); + stage.show(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public static Stage getStage() { + return stage; + } + + public static void show() { + launch(); + } +} \ No newline at end of file diff --git a/backend/src/main/java/com/zzhow/magicshare/ui/window/PromptWindow.java b/backend/src/main/java/com/zzhow/magicshare/ui/window/PromptWindow.java new file mode 100644 index 0000000..4f9dd54 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/ui/window/PromptWindow.java @@ -0,0 +1,40 @@ +package com.zzhow.magicshare.ui.window; + +import com.zzhow.magicshare.MagicShareApplication; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.image.Image; +import javafx.stage.Stage; + +import java.io.IOException; +import java.util.Objects; + +/** + * @author ZZHow + * @date 2025/01/17 + */ +public class PromptWindow extends javafx.application.Application { + private static Stage stage = null; + + @Override + public void start(Stage stage) throws IOException { + PromptWindow.stage = stage; + FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource("prompt-window.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 780, 450); + stage.setTitle("MagicShare"); + stage.setScene(scene); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + stage.setResizable(false); + stage.show(); + } + + public static void close() { + stage.close(); + MainWindow.open(); + } + + public static void show() { + launch(); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/util/Application.java b/backend/src/main/java/com/zzhow/magicshare/util/Application.java new file mode 100644 index 0000000..0bed754 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/util/Application.java @@ -0,0 +1,16 @@ +package com.zzhow.magicshare.util; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.ConfigurableApplicationContext; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +@SpringBootApplication(proxyBeanMethods = false, scanBasePackages = "com.zzhow.magicshare") +public class Application { + public static ConfigurableApplicationContext startSpringBoot(String args) { + return SpringApplication.run(Application.class, args); + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/util/FileUtil.java b/backend/src/main/java/com/zzhow/magicshare/util/FileUtil.java new file mode 100644 index 0000000..9559882 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/util/FileUtil.java @@ -0,0 +1,56 @@ +package com.zzhow.magicshare.util; + +import com.zzhow.magicshare.pojo.entity.FileDetail; +import com.zzhow.magicshare.repository.FileRepository; + +import java.io.File; +import java.util.List; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public class FileUtil { + public static final SnowflakeIdGenerator generator = new SnowflakeIdGenerator(1); + + /** + * 查找指定路径下的所有文件 + * + * @param path 路径 + * @param res 所有文件的路径 + */ + public static void find(String path, List res) { + File currentPath = new File(path); + + if (!currentPath.exists()) + return; + + if (!currentPath.isDirectory()) { + String fileName = currentPath.getName(); + String fileType = "unknown"; + if (fileName.lastIndexOf(".") != -1) + fileType = fileName.substring(fileName.lastIndexOf(".") + 1); + FileDetail fileDetail = new FileDetail(generator.generateId() + "", fileName, fileType, Math.round(currentPath.length() / 1024.0 * 10.0) / 10.0, ""); + res.add(fileDetail); + return; + } + + File[] files = currentPath.listFiles(); + + if (files == null) return; + + for (File file : files) { + if (file.isDirectory()) { + find(file.getAbsolutePath(), res); + } else { + String fileName = file.getName(); + String fileType = "unknown"; + if (fileName.lastIndexOf(".") != -1) + fileType = fileName.substring(fileName.lastIndexOf(".") + 1); + + FileDetail fileDetail = new FileDetail(generator.generateId() + "", fileName, fileType, Math.round(file.length() / 1024.0 * 10.0) / 10.0, file.getAbsolutePath().replace(FileRepository.getBasePath(), "")); + res.add(fileDetail); + } + } + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/util/InternetUtil.java b/backend/src/main/java/com/zzhow/magicshare/util/InternetUtil.java new file mode 100644 index 0000000..4bda041 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/util/InternetUtil.java @@ -0,0 +1,62 @@ +package com.zzhow.magicshare.util; + +import java.io.IOException; +import java.net.*; +import java.util.Enumeration; +import java.util.regex.Pattern; + +/** + * @author ZZHow + * @date 2025/1/13 + */ +public class InternetUtil { + /** + * 获取内网 IPv4 地址 + * + * @return 内网 IPv4 地址 + */ + public static String getLocalIpAddress() { + try { + /*内网 IP 正则表达式 + A: 10.0.0.0 - 10.255.255.255 + B: 172.16.0.0 - 172.31.255.255 + C: 192.168.0.0 - 192.168.255.255 + */ + String privateIpRegex = "^(10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|172\\.(1[6-9]|2[0-9]|3[0-1])\\.\\d{1,3}\\.\\d{1,3}|192\\.168\\.\\d{1,3}\\.\\d{1,3})$"; + Pattern pattern = Pattern.compile(privateIpRegex); + + // 获取所有网络接口 + Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces(); + + while (networkInterfaces.hasMoreElements()) { + NetworkInterface networkInterface = networkInterfaces.nextElement(); + + // 跳过未启用或回环接口 + if (!networkInterface.isUp() || networkInterface.isLoopback()) { + continue; + } + + // 获取当前网络接口的 IP 地址 + Enumeration inetAddresses = networkInterface.getInetAddresses(); + while (inetAddresses.hasMoreElements()) { + InetAddress inetAddress = inetAddresses.nextElement(); + if (inetAddress instanceof Inet4Address && pattern.matcher(inetAddress.getHostAddress()).matches()) { + return inetAddress.getHostAddress(); + } + } + } + } catch (SocketException e) { + e.printStackTrace(); + } + + return null; + } + + public static boolean isPortInUse(int port) { + try (ServerSocket socket = new ServerSocket(port)) { + return false; + } catch (IOException e) { + return true; + } + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/util/MessageBox.java b/backend/src/main/java/com/zzhow/magicshare/util/MessageBox.java new file mode 100644 index 0000000..935bc6b --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/util/MessageBox.java @@ -0,0 +1,43 @@ +package com.zzhow.magicshare.util; + +import com.zzhow.magicshare.MagicShareApplication; +import javafx.scene.control.Alert; +import javafx.scene.image.Image; +import javafx.stage.Stage; + +import java.util.Objects; + +/** + * @author ZZHow + * @date 2025/01/14 + */ +public class MessageBox { + + public static void alert(Alert.AlertType type, String title, String headerText, String contentText) { + Alert alert = new Alert(type); + alert.setTitle(title); + alert.setHeaderText(headerText); + alert.setContentText(contentText); + + Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); + Image icon = new Image(Objects.requireNonNull(MagicShareApplication.class.getResourceAsStream("/image/icon.png"))); + stage.getIcons().add(icon); + + alert.showAndWait(); + } + + public static void error(String headerText, String contentText) { + alert(Alert.AlertType.ERROR, + "错误", + headerText, + contentText); + } + + public static void success(String headerText, String contentText) { + alert(Alert.AlertType.INFORMATION, + "成功", + headerText, + contentText); + } + +} diff --git a/backend/src/main/java/com/zzhow/magicshare/util/SnowflakeIdGenerator.java b/backend/src/main/java/com/zzhow/magicshare/util/SnowflakeIdGenerator.java new file mode 100644 index 0000000..9335102 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/util/SnowflakeIdGenerator.java @@ -0,0 +1,69 @@ +package com.zzhow.magicshare.util; + +/** + * 雪花算法(Snowflake)ID 生成器 + */ +public class SnowflakeIdGenerator { + + // 配置参数 + private final long epoch = 1640995200000L; // 自定义起始时间戳(2022-01-01 00:00:00) + private final long machineIdBits = 10L; // 机器 ID 部分的位数 + private final long sequenceBits = 12L; // 序列号部分的位数 + private final long machineIdMax = -1L ^ (-1L << machineIdBits); // 机器 ID 最大值 + private final long sequenceMask = -1L ^ (-1L << sequenceBits); // 序列号掩码 + + // 位移量 + private final long machineIdShift = sequenceBits; // 机器 ID 左移的位数 + private final long timestampShift = sequenceBits + machineIdBits; // 时间戳左移的位数 + private final long epochShift = 22; // 基准时间(自定义起始时间戳) + + private long lastTimestamp = -1L; // 上一次生成 ID 的时间戳 + private long sequence = 0L; // 序列号 + private final long machineId; // 机器 ID + + public SnowflakeIdGenerator(long machineId) { + if (machineId > machineIdMax || machineId < 0) { + throw new IllegalArgumentException("机器 ID 必须在 0 到 " + machineIdMax); + } + this.machineId = machineId; + } + + // 生成唯一的 ID + public synchronized long generateId() { + long timestamp = timeGen(); // 当前时间戳 + if (timestamp < lastTimestamp) { + throw new RuntimeException("系统时钟出现回退,无法生成 ID"); + } + + if (timestamp == lastTimestamp) { + // 同一毫秒内,序列号递增 + sequence = (sequence + 1) & sequenceMask; + if (sequence == 0) { + // 序列号溢出,等待下一毫秒 + timestamp = tilNextMillis(lastTimestamp); + } + } else { + // 不同毫秒,序列号重置 + sequence = 0; + } + + lastTimestamp = timestamp; + + // 组装雪花算法生成的唯一 ID + return ((timestamp - epoch) << timestampShift) | (machineId << machineIdShift) | sequence; + } + + // 获取当前时间戳(毫秒) + private long timeGen() { + return System.currentTimeMillis(); + } + + // 等待下一毫秒 + private long tilNextMillis(long lastTimestamp) { + long timestamp = timeGen(); + while (timestamp <= lastTimestamp) { + timestamp = timeGen(); + } + return timestamp; + } +} diff --git a/backend/src/main/java/com/zzhow/magicshare/websocket/FileWebSocketHandler.java b/backend/src/main/java/com/zzhow/magicshare/websocket/FileWebSocketHandler.java new file mode 100644 index 0000000..7b9e585 --- /dev/null +++ b/backend/src/main/java/com/zzhow/magicshare/websocket/FileWebSocketHandler.java @@ -0,0 +1,132 @@ +package com.zzhow.magicshare.websocket; + +import com.zzhow.magicshare.pojo.entity.AesCrypto; +import com.zzhow.magicshare.pojo.entity.FileDetail; +import com.zzhow.magicshare.repository.AesKeyRepository; +import com.zzhow.magicshare.repository.FileRepository; +import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.TextMessage; +import org.springframework.web.socket.WebSocketSession; +import org.springframework.web.socket.handler.TextWebSocketHandler; + +import javax.crypto.Cipher; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; +import javax.crypto.spec.IvParameterSpec; +import java.io.BufferedInputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.security.KeyFactory; +import java.security.PublicKey; +import java.security.SecureRandom; +import java.security.spec.X509EncodedKeySpec; +import java.util.Arrays; +import java.util.Base64; +import java.util.List; + +/** + * @author ZZHow + * @date 2025/01/16 + */ +public class FileWebSocketHandler extends TextWebSocketHandler { + private static final int CHUNK_SIZE = 8192; + + @Override + public void afterConnectionClosed(WebSocketSession session, CloseStatus status) { + AesKeyRepository.delete(session.getId()); + } + + @Override + public void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception { + // 消息格式:a,publicKey,fileId + if (message.getPayload().charAt(0) == 'a') { + String[] split = message.getPayload().split(","); + + // 计算分块数量 + List files = FileRepository.getFiles(); + int index = files.indexOf(new FileDetail(split[2])); + if (index == -1) { + session.sendMessage(new TextMessage("Not found")); + session.close(CloseStatus.NOT_ACCEPTABLE); + return; + } + int block = (int) Math.ceil(files.get(index).getSize() / (CHUNK_SIZE / 1024.0)); + + // Base64 解码 + String key = new String(Base64.getDecoder().decode(split[1])); + + // 去除 PEM 格式的头尾 + key = key.replaceAll("-----\\w+ PUBLIC KEY-----", "").replaceAll("\\s+", ""); + byte[] keyBytes = Base64.getDecoder().decode(key); + + // 加载公钥 + X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + PublicKey publicKey = keyFactory.generatePublic(spec); + + // 生成随机 AES 密钥 + KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); + keyGenerator.init(256); // 选择 AES 256 位密钥 + SecretKey aesKey = keyGenerator.generateKey(); + + // 生成随机 IV(初始化向量) + byte[] iv = new byte[16]; // AES 块大小 128 位 + SecureRandom secureRandom = new SecureRandom(); + secureRandom.nextBytes(iv); // 填充随机数据到 iv 数组 + + // 使用 RSA 加密 AES 密钥 + Cipher rsaCipher = Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding"); + rsaCipher.init(Cipher.ENCRYPT_MODE, publicKey); + byte[] encryptedAesKey = rsaCipher.doFinal(aesKey.getEncoded()); + + AesKeyRepository.set(session.getId(), aesKey, iv); + session.sendMessage(new TextMessage("key#" + Base64.getEncoder().encodeToString(encryptedAesKey) + ",iv#" + Base64.getEncoder().encodeToString(iv) + ",block#" + block)); + + // 消息格式:b,fileId + } else if ((message.getPayload().charAt(0) == 'b')) { + String[] split = message.getPayload().split(","); + + // 构建文件路径 + List files = FileRepository.getFiles(); + int index = files.indexOf(new FileDetail(split[1])); + if (index == -1) { + session.sendMessage(new TextMessage("Not found")); + session.close(CloseStatus.NOT_ACCEPTABLE); + return; + } + + String filePath = FileRepository.getBasePath() + files.get(index).getPath(); + + // 初始化 AES 加密器 + Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); + AesCrypto aesCrypto = AesKeyRepository.get(session.getId()); + IvParameterSpec ivSpec = new IvParameterSpec(aesCrypto.getIv()); + cipher.init(Cipher.ENCRYPT_MODE, aesCrypto.getKey(), ivSpec); + + try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(filePath))) { + byte[] buffer = new byte[CHUNK_SIZE]; + int bytesRead; + while ((bytesRead = bis.read(buffer)) != -1) { + // 通过 WebSocket 传输文件数据 + byte[] encryptedData; + if (bytesRead == CHUNK_SIZE) + encryptedData = cipher.doFinal(buffer); + else { + byte[] newBuffer = Arrays.copyOf(buffer, bytesRead); + encryptedData = cipher.doFinal(newBuffer); + } + session.sendMessage(new TextMessage(new String(Base64.getEncoder().encode(encryptedData)))); + } + + // 发送结束 + session.sendMessage(new TextMessage("fin")); + } catch (IOException e) { + session.sendMessage(new TextMessage("Error: " + e.getMessage())); + session.close(); + } + } else { + session.sendMessage(new TextMessage("Bad Request")); + session.close(); + } + } +} \ No newline at end of file diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml new file mode 100644 index 0000000..0d3a046 --- /dev/null +++ b/backend/src/main/resources/application.yml @@ -0,0 +1,7 @@ +spring: + application: + name: MagicShare + + web: + resources: + static-locations: classpath:/static/ diff --git a/backend/src/main/resources/banner.txt b/backend/src/main/resources/banner.txt new file mode 100644 index 0000000..2a2ce69 --- /dev/null +++ b/backend/src/main/resources/banner.txt @@ -0,0 +1,9 @@ + + __ __ _ _____ _ + | \/ | (_) / ____| | + | \ / | __ _ __ _ _ ___| (___ | |__ __ _ _ __ ___ + | |\/| |/ _` |/ _` | |/ __|\___ \| '_ \ / _` | '__/ _ \ + | | | | (_| | (_| | | (__ ____) | | | | (_| | | | __/ + |_| |_|\__,_|\__, |_|\___|_____/|_| |_|\__,_|_| \___| + __/ | + |___/ diff --git a/backend/src/main/resources/com/zzhow/magicshare/ui/window/about-window.fxml b/backend/src/main/resources/com/zzhow/magicshare/ui/window/about-window.fxml new file mode 100644 index 0000000..f7cb21f --- /dev/null +++ b/backend/src/main/resources/com/zzhow/magicshare/ui/window/about-window.fxml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/backend/src/main/resources/com/zzhow/magicshare/ui/window/main-window.fxml b/backend/src/main/resources/com/zzhow/magicshare/ui/window/main-window.fxml new file mode 100755 index 0000000..4b3da2f --- /dev/null +++ b/backend/src/main/resources/com/zzhow/magicshare/ui/window/main-window.fxml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/backend/src/main/resources/image/icon.png b/backend/src/main/resources/image/icon.png new file mode 100644 index 0000000..3b76931 Binary files /dev/null and b/backend/src/main/resources/image/icon.png differ diff --git a/backend/src/main/resources/static/assets/AboutPage-B8ON9FDS.js b/backend/src/main/resources/static/assets/AboutPage-B8ON9FDS.js new file mode 100644 index 0000000..784b9d2 --- /dev/null +++ b/backend/src/main/resources/static/assets/AboutPage-B8ON9FDS.js @@ -0,0 +1 @@ +import{_ as t}from"./MagicShare-DLx5ZzAx.js";import{_ as d,e as c,$ as e,g as s}from"./index-moUN8hPO.js";const o={},i={class:"about-page"};function r(v,a){return s(),c("div",i,a[0]||(a[0]=[e('
 MagicShare
神奇分享
新特性:
1. 自定义端口启动服务。
2. 按文件夹/文件路径查找文件并生成列表。
3. Web网页下载文件。
- 支持通过HTTP协议快速下载文件
- 支持通过WebSocket协议并使用RSA+AES混合加密下载文件
Version:1.0.0
ZZHow.com
',3)]))}const l=d(o,[["render",r],["__scopeId","data-v-3fc3299d"]]);export{l as default}; diff --git a/backend/src/main/resources/static/assets/AboutPage-BBS5eMWh.css b/backend/src/main/resources/static/assets/AboutPage-BBS5eMWh.css new file mode 100644 index 0000000..927e5b3 --- /dev/null +++ b/backend/src/main/resources/static/assets/AboutPage-BBS5eMWh.css @@ -0,0 +1 @@ +.title[data-v-3fc3299d]{display:flex;margin-top:5vh;align-items:center;justify-content:center;text-align:center;font-size:6vh}.title .logo[data-v-3fc3299d]{width:20vw;height:auto}.feat-container[data-v-3fc3299d]{margin-top:10vh;display:flex;flex-direction:column;justify-content:center;align-items:center}.feat-container .feat-title[data-v-3fc3299d]{font-size:2vh}.feat-container .feat-content[data-v-3fc3299d]{font-size:2vh;margin:0 2vh}.content[data-v-3fc3299d]{display:flex;margin-top:5vh;align-items:center;justify-content:center;text-align:center;font-size:2vh} diff --git a/backend/src/main/resources/static/assets/HomeIndex-DOQHzWHL.js b/backend/src/main/resources/static/assets/HomeIndex-DOQHzWHL.js new file mode 100644 index 0000000..da7f39c --- /dev/null +++ b/backend/src/main/resources/static/assets/HomeIndex-DOQHzWHL.js @@ -0,0 +1,185 @@ +import{w as wt,_ as L,P as ae,a as ie,c as we,T as Hu,j as Kt,p as rr,O as mf,K as Me,i as kt,k as cn,l as da,n as xr,s as bn,o as Et,q as ju,r as Cn,I as Ft,C as fa,v as Wu,x as pa,y as yf,z as qu,A as Gu,B as Qo,D as bf,E as Cf,F as xf,G as Wt,H as $t,J as Xu,N as Qu,Q as Yu,U as Ju,V as Jr,W as Zr,m as xt,X as Zu,g as Zt,Y as ec,Z as Pt,$ as dt,a0 as ze,a1 as je,u as vt,a2 as tc,a3 as tr,a4 as Yo,a5 as Sf,a6 as Ef,a7 as wf,a8 as If,a9 as Bt,aa as Tf,ab as ea,ac as Af,ad as Jo,ae as Bf,af as $f,ag as Rf,ah as kn,ai as _f,R as ta,aj as Xt,ak as Of,al as Ln,am as Dt,an as nc,ao as rc,ap as Bn,aq as ac,ar as oc,as as Nf,at as Pf,au as Df,av as kf,aw as Lf,ax as Ff,ay as Zo,az as Di,aA as Ur,aB as Cl,b as xl,t as Kf,aC as un,aD as Mf,aE as Sl,aF as ur,aG as Uf,aH as Vf,aI as ic,aJ as zf,L as El,aK as ei,aL as lc,aM as Hf,aN as jf,aO as ki,aP as Wf,aQ as qf,aR as Gf,aS as _n,aT as wl,aU as Il,aV as Xf,aW as Qf,h as na,aX as Yf,aY as Jf,aZ as Zf,a_ as Tl,a$ as cr,b0 as ep,e as tp,M as np}from"./index-8CVYBXsu.js";import{d as Be,a as H,r as Ee,c as P,m as Nn,n as yr,s as ye,w as ke,i as Tt,q as et,o as gt,j as Ut,F as It,b as Rt,p as _t,t as rp,v as Ht,x as Vr,y as ar,z as nr,A as St,B as Sr,C as ap,D as st,E as Er,G as sc,T as ti,H as ni,I as ri,J as op,K as ip,_ as lp,e as dr,h as Ct,L as fr,f as In,M as Ma,g as Gn,N as sp}from"./index-moUN8hPO.js";const up=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function cp(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function ai(e){return e!=null&&e===e.window}function dp(e,t){var n,r;if(typeof window>"u")return 0;const a="scrollTop";let l=0;return ai(e)?l=e.scrollY:e instanceof Document?l=e.documentElement[a]:(e instanceof HTMLElement||e)&&(l=e[a]),e&&!ai(e)&&typeof l!="number"&&(l=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[a]),l}function fp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),i=dp(l),o=Date.now(),f=()=>{const p=Date.now()-o,S=cp(p>a?a:p,i,e,a);ai(l)?l.scrollTo(window.scrollX,S):l instanceof Document?l.documentElement.scrollTop=S:l.scrollTop=S,p1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:a,value:l,options:i}=uc(t,!1);function o(f,u){f.forEach(p=>{const S=p[a];if(u||!(i in p)){const b=p[l];r.push({key:Al(p,r.length),groupOption:u,data:p,label:S,value:b})}else{let b=S;b===void 0&&n&&(b=p.label),r.push({key:Al(p,r.length),group:!0,data:p,label:b}),o(p[i],!0)}})}return o(e,!1),r}function oi(e){const t=L({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function hp(e,t){if(!t||!t.length)return null;let n=!1;function r(l,i){let[o,...f]=i;if(!o)return[l];const u=l.split(o);return n=n||u.length>1,u.reduce((p,S)=>[...p,...r(S,f)],[]).filter(p=>p)}const a=r(e,t);return n?a:null}var gp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},mp=Be({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ae.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ae.oneOfType([Number,Boolean]).def(!0),popupElement:ae.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:r,expose:a}=t;const l=H(()=>{const{dropdownMatchSelectWidth:o}=e;return vp(o)}),i=Ee();return a({getPopupElement:()=>i.value}),()=>{const o=L(L({},e),r),{empty:f=!1}=o,u=gp(o,["empty"]),{visible:p,dropdownAlign:S,prefixCls:b,popupElement:g,dropdownClassName:v,dropdownStyle:m,direction:h="ltr",placement:s,dropdownMatchSelectWidth:y,containerWidth:C,dropdownRender:w,animation:T,transitionName:x,getPopupContainer:c,getTriggerDOMNode:d,onPopupVisibleChange:A,onPopupMouseEnter:B,onPopupFocusin:O,onPopupFocusout:_}=u,k=`${b}-dropdown`;let M=g;w&&(M=w({menuNode:g,props:e}));const V=T?`${k}-${T}`:x,q=L({minWidth:`${C}px`},m);return typeof y=="number"?q.width=`${y}px`:y&&(q.width=`${C}px`),P(Hu,ie(ie({},e),{},{showAction:A?["click"]:[],hideAction:A?["click"]:[],popupPlacement:s||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:l.value,prefixCls:k,popupTransitionName:V,popupAlign:S,popupVisible:p,getPopupContainer:c,popupClassName:we(v,{[`${k}-empty`]:f}),popupStyle:q,getTriggerDOMNode:d,onPopupVisibleChange:A}),{default:n.default,popup:()=>P("div",{ref:i,onMouseenter:B,onFocusin:O,onFocusout:_},[M])})}}}),Fn=(e,t)=>{let{slots:n}=t;var r;const{class:a,customizeIcon:l,customizeIconProps:i,onMousedown:o,onClick:f}=e;let u;return typeof l=="function"?u=l(i):u=Nn(l)?yr(l):l,P("span",{class:a,onMousedown:p=>{p.preventDefault(),o&&o(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[u!==void 0?u:P("span",{class:a.split(/\s+/).map(p=>`${p}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};Fn.inheritAttrs=!1;Fn.displayName="TransBtn";Fn.props={class:String,customizeIcon:ae.any,customizeIconProps:ae.any,onMousedown:Function,onClick:Function};var yp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(f,u,p)=>{var S;(S=r.value)===null||S===void 0||S.setSelectionRange(f,u,p)},select:()=>{var f;(f=r.value)===null||f===void 0||f.select()},getSelectionStart:()=>{var f;return(f=r.value)===null||f===void 0?void 0:f.selectionStart},getSelectionEnd:()=>{var f;return(f=r.value)===null||f===void 0?void 0:f.selectionEnd},getScrollTop:()=>{var f;return(f=r.value)===null||f===void 0?void 0:f.scrollTop}}),()=>{const{tag:f,value:u}=e,p=yp(e,["tag","value"]);return P(f,ie(ie({},p),{},{ref:r,value:u}),null)}}});function Bl(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Cp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return typeof r>"u"||r===null||(t+=`${n}: ${e[n]};`),t},"")}var xp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae.value,o],()=>{o.value||(i.value=e.value)},{immediate:!0});const f=c=>{n("change",c)},u=c=>{o.value=!0,c.target.composing=!0,n("compositionstart",c)},p=c=>{o.value=!1,c.target.composing=!1,n("compositionend",c);const d=document.createEvent("HTMLEvents");d.initEvent("input",!0,!0),c.target.dispatchEvent(d),f(c)},S=c=>{if(o.value&&e.lazy){i.value=c.target.value;return}n("input",c)},b=c=>{n("blur",c)},g=c=>{n("focus",c)},v=()=>{l.value&&l.value.focus()},m=()=>{l.value&&l.value.blur()},h=c=>{n("keydown",c)},s=c=>{n("keyup",c)},y=(c,d,A)=>{var B;(B=l.value)===null||B===void 0||B.setSelectionRange(c,d,A)},C=()=>{var c;(c=l.value)===null||c===void 0||c.select()};a({focus:v,blur:m,input:H(()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.input}),setSelectionRange:y,select:C,getSelectionStart:()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.getSelectionStart()},getSelectionEnd:()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.getSelectionEnd()},getScrollTop:()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.getScrollTop()}});const w=c=>{n("mousedown",c)},T=c=>{n("paste",c)},x=H(()=>e.style&&typeof e.style!="string"?Cp(e.style):e.style);return()=>{const c=xp(e,["style","lazy"]);return P(bp,ie(ie(ie({},c),r),{},{style:x.value,onInput:S,onChange:f,onBlur:b,onFocus:g,ref:l,value:i.value,onCompositionstart:u,onCompositionend:p,onKeyup:s,onKeydown:h,onPaste:T,onMousedown:w}),null)}}}),Sp={inputRef:ae.any,prefixCls:String,id:String,inputElement:ae.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ae.oneOfType([ae.number,ae.string]),attrs:ae.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},cc=Be({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:Sp,setup(e){let t=null;const n=Tt("VCSelectContainerEvent");return()=>{var r;const{prefixCls:a,id:l,inputElement:i,disabled:o,tabindex:f,autofocus:u,autocomplete:p,editable:S,activeDescendantId:b,value:g,onKeydown:v,onMousedown:m,onChange:h,onPaste:s,onCompositionstart:y,onCompositionend:C,onFocus:w,onBlur:T,open:x,inputRef:c,attrs:d}=e;let A=i||P(wr,null,null);const B=A.props||{},{onKeydown:O,onInput:_,onFocus:k,onBlur:M,onMousedown:V,onCompositionstart:q,onCompositionend:Q,style:X}=B;return A=Kt(A,L(L(L(L(L({type:"search"},B),{id:l,ref:c,disabled:o,tabindex:f,lazy:!1,autocomplete:p||"off",autofocus:u,class:we(`${a}-selection-search-input`,(r=A==null?void 0:A.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":b}),d),{value:S?g:"",readonly:!S,unselectable:S?null:"on",style:L(L({},X),{opacity:S?null:0}),onKeydown:K=>{v(K),O&&O(K)},onMousedown:K=>{m(K),V&&V(K)},onInput:K=>{h(K),_&&_(K)},onCompositionstart(K){y(K),q&&q(K)},onCompositionend(K){C(K),Q&&Q(K)},onPaste:s,onFocus:function(){clearTimeout(t),k&&k(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var K=arguments.length,j=new Array(K),Z=0;Z{M&&M(j[0]),T&&T(j[0]),n==null||n.blur(j[0])},100)}}),A.type==="textarea"?{}:{type:"search"}),!0,!0),A}}}),Ep=Symbol("TreeSelectLegacyContextPropsKey");function Li(){return Tt(Ep,{})}const wp={id:String,prefixCls:String,values:ae.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ae.any,placeholder:ae.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ae.oneOfType([ae.number,ae.string]),compositionStatus:Boolean,removeIcon:ae.any,choiceTransitionName:String,maxTagCount:ae.oneOfType([ae.number,ae.string]),maxTagTextLength:Number,maxTagPlaceholder:ae.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},$l=e=>{e.preventDefault(),e.stopPropagation()},Ip=Be({name:"MultipleSelectSelector",inheritAttrs:!1,props:wp,setup(e){const t=ye(),n=ye(0),r=ye(!1),a=Li(),l=H(()=>`${e.prefixCls}-selection`),i=H(()=>e.open||e.mode==="tags"?e.searchValue:""),o=H(()=>e.mode==="tags"||e.showSearch&&(e.open||r.value)),f=Ee("");et(()=>{f.value=i.value}),gt(()=>{ke(f,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(v,m,h,s,y){return P("span",{class:we(`${l.value}-item`,{[`${l.value}-item-disabled`]:h}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[P("span",{class:`${l.value}-item-content`},[m]),s&&P(Fn,{class:`${l.value}-item-remove`,onMousedown:$l,onClick:y,customizeIcon:e.removeIcon},{default:()=>[Ut("×")]})])}function p(v,m,h,s,y,C){var w;const T=c=>{$l(c),e.onToggleOpen(!open)};let x=C;return a.keyEntities&&(x=((w=a.keyEntities[v])===null||w===void 0?void 0:w.node)||{}),P("span",{key:v,onMousedown:T},[e.tagRender({label:m,value:v,disabled:h,closable:s,onClose:y,option:x})])}function S(v){const{disabled:m,label:h,value:s,option:y}=v,C=!e.disabled&&!m;let w=h;if(typeof e.maxTagTextLength=="number"&&(typeof h=="string"||typeof h=="number")){const x=String(w);x.length>e.maxTagTextLength&&(w=`${x.slice(0,e.maxTagTextLength)}...`)}const T=x=>{var c;x&&x.stopPropagation(),(c=e.onRemove)===null||c===void 0||c.call(e,v)};return typeof e.tagRender=="function"?p(s,w,m,C,T,y):u(h,w,m,C,T)}function b(v){const{maxTagPlaceholder:m=s=>`+ ${s.length} ...`}=e,h=typeof m=="function"?m(v):m;return u(h,h,!1)}const g=v=>{const m=v.target.composing;f.value=v.target.value,m||e.onInputChange(v)};return()=>{const{id:v,prefixCls:m,values:h,open:s,inputRef:y,placeholder:C,disabled:w,autofocus:T,autocomplete:x,activeDescendantId:c,tabindex:d,compositionStatus:A,onInputPaste:B,onInputKeyDown:O,onInputMouseDown:_,onInputCompositionStart:k,onInputCompositionEnd:M}=e,V=P("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[P(cc,{inputRef:y,open:s,prefixCls:m,id:v,inputElement:null,disabled:w,autofocus:T,autocomplete:x,editable:o.value,activeDescendantId:c,value:f.value,onKeydown:O,onMousedown:_,onChange:g,onPaste:B,onCompositionstart:k,onCompositionend:M,tabindex:d,attrs:rr(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),P("span",{ref:t,class:`${l.value}-search-mirror`,"aria-hidden":!0},[f.value,Ut(" ")])]),q=P(mf,{prefixCls:`${l.value}-overflow`,data:h,renderItem:S,renderRest:b,suffix:V,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return P(It,null,[q,!h.length&&!i.value&&!A&&P("span",{class:`${l.value}-placeholder`},[C])])}}}),Tp={inputElement:ae.any,id:String,prefixCls:String,values:ae.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ae.any,placeholder:ae.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ae.oneOfType([ae.number,ae.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Fi=Be({name:"SingleSelector",setup(e){const t=ye(!1),n=H(()=>e.mode==="combobox"),r=H(()=>n.value||e.showSearch),a=H(()=>{let p=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(p=e.activeValue),p}),l=Li();ke([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=H(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!a.value||e.compositionStatus),o=H(()=>{const p=e.values[0];return p&&(typeof p.label=="string"||typeof p.label=="number")?p.label.toString():void 0}),f=()=>{if(e.values[0])return null;const p=i.value?{visibility:"hidden"}:void 0;return P("span",{class:`${e.prefixCls}-selection-placeholder`,style:p},[e.placeholder])},u=p=>{p.target.composing||(t.value=!0,e.onInputChange(p))};return()=>{var p,S,b,g;const{inputElement:v,prefixCls:m,id:h,values:s,inputRef:y,disabled:C,autofocus:w,autocomplete:T,activeDescendantId:x,open:c,tabindex:d,optionLabelRender:A,onInputKeyDown:B,onInputMouseDown:O,onInputPaste:_,onInputCompositionStart:k,onInputCompositionEnd:M}=e,V=s[0];let q=null;if(V&&l.customSlots){const Q=(p=V.key)!==null&&p!==void 0?p:V.value,X=((S=l.keyEntities[Q])===null||S===void 0?void 0:S.node)||{};q=l.customSlots[(b=X.slots)===null||b===void 0?void 0:b.title]||l.customSlots.title||V.label,typeof q=="function"&&(q=q(X))}else q=A&&V?A(V.option):V==null?void 0:V.label;return P(It,null,[P("span",{class:`${m}-selection-search`},[P(cc,{inputRef:y,prefixCls:m,id:h,open:c,inputElement:v,disabled:C,autofocus:w,autocomplete:T,editable:r.value,activeDescendantId:x,value:a.value,onKeydown:B,onMousedown:O,onChange:u,onPaste:_,onCompositionstart:k,onCompositionend:M,tabindex:d,attrs:rr(e,!0)},null)]),!n.value&&V&&!i.value&&P("span",{class:`${m}-selection-item`,title:o.value},[P(It,{key:(g=V.key)!==null&&g!==void 0?g:V.value},[q])]),f()])}}});Fi.props=Tp;Fi.inheritAttrs=!1;function Ap(e){return![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(e)}function dc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Rt(()=>{clearTimeout(n)});function r(a){(a||t===null)&&(t=a),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,r]}function br(){const e=t=>{e.current=t};return e}const Bp=Be({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ae.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ae.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ae.oneOfType([ae.number,ae.string]),disabled:{type:Boolean,default:void 0},placeholder:ae.any,removeIcon:ae.any,maxTagCount:ae.oneOfType([ae.number,ae.string]),maxTagTextLength:Number,maxTagPlaceholder:ae.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const r=br(),a=Ee(!1),[l,i]=dc(0),o=s=>{const{which:y}=s;(y===Me.UP||y===Me.DOWN)&&s.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(s),y===Me.ENTER&&e.mode==="tags"&&!a.value&&!e.open&&e.onSearchSubmit(s.target.value),Ap(y)&&e.onToggleOpen(!0)},f=()=>{i(!0)};let u=null;const p=s=>{e.onSearch(s,!0,a.value)!==!1&&e.onToggleOpen(!0)},S=()=>{a.value=!0},b=s=>{a.value=!1,e.mode!=="combobox"&&p(s.target.value)},g=s=>{let{target:{value:y}}=s;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const C=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");y=y.replace(C,u)}u=null,p(y)},v=s=>{const{clipboardData:y}=s;u=y.getData("text")},m=s=>{let{target:y}=s;y!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},h=s=>{const y=l();s.target!==r.current&&!y&&s.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!y)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:s,domRef:y,mode:C}=e,w={inputRef:r,onInputKeyDown:o,onInputMouseDown:f,onInputChange:g,onInputPaste:v,compositionStatus:a.value,onInputCompositionStart:S,onInputCompositionEnd:b},T=C==="multiple"||C==="tags"?P(Ip,ie(ie({},e),w),null):P(Fi,ie(ie({},e),w),null);return P("div",{ref:y,class:`${s}-selector`,onClick:m,onMousedown:h},[T])}}});function $p(e,t,n){function r(a){var l,i,o;let f=a.target;f.shadowRoot&&a.composed&&(f=a.composedPath()[0]||f);const u=[(l=e[0])===null||l===void 0?void 0:l.value,(o=(i=e[1])===null||i===void 0?void 0:i.value)===null||o===void 0?void 0:o.getPopupElement()];t.value&&u.every(p=>p&&!p.contains(f)&&p!==f)&&n(!1)}gt(()=>{window.addEventListener("mousedown",r)}),Rt(()=>{window.removeEventListener("mousedown",r)})}function Rp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=ye(!1);let n;const r=()=>{clearTimeout(n)};return gt(()=>{r()}),[t,(l,i)=>{r(),n=setTimeout(()=>{t.value=l,i&&i()},e)},r]}const fc=Symbol("BaseSelectContextKey");function _p(e){return _t(fc,e)}function Op(){return Tt(fc,{})}const Np=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substring(0,4))};function pc(e){if(!rp(e))return Ht(e);const t=new Proxy({},{get(n,r,a){return Reflect.get(e.value,r,a)},set(n,r,a){return e.value[r]=a,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Ht(t)}var Pp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ae.any,emptyOptions:Boolean}),hc=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ae.any,placeholder:ae.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ae.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ae.any,clearIcon:ae.any,removeIcon:ae.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Lp=()=>L(L({},kp()),hc());function gc(e){return e==="tags"||e==="multiple"}const Fp=Be({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:kt(Lp(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:r,slots:a}=t;const l=H(()=>gc(e.mode)),i=H(()=>e.showSearch!==void 0?e.showSearch:l.value||e.mode==="combobox"),o=ye(!1);gt(()=>{o.value=Np()});const f=Li(),u=ye(null),p=br(),S=ye(null),b=ye(null),g=ye(null),v=Ee(!1),[m,h,s]=Rp();r({focus:()=>{var R;(R=b.value)===null||R===void 0||R.focus()},blur:()=>{var R;(R=b.value)===null||R===void 0||R.blur()},scrollTo:R=>{var $;return($=g.value)===null||$===void 0?void 0:$.scrollTo(R)}});const w=H(()=>{var R;if(e.mode!=="combobox")return e.searchValue;const $=(R=e.displayValues[0])===null||R===void 0?void 0:R.value;return typeof $=="string"||typeof $=="number"?String($):""}),T=e.open!==void 0?e.open:e.defaultOpen,x=ye(T),c=ye(T),d=R=>{x.value=e.open!==void 0?e.open:R,c.value=x.value};ke(()=>e.open,()=>{d(e.open)});const A=H(()=>!e.notFoundContent&&e.emptyOptions);et(()=>{c.value=x.value,(e.disabled||A.value&&c.value&&e.mode==="combobox")&&(c.value=!1)});const B=H(()=>A.value?!1:c.value),O=R=>{const $=R!==void 0?R:!c.value;c.value!==$&&!e.disabled&&(d($),e.onDropdownVisibleChange&&e.onDropdownVisibleChange($),!$&&G.value&&(G.value=!1,h(!1,()=>{j.value=!1,v.value=!1})))},_=H(()=>(e.tokenSeparators||[]).some(R=>[` +`,`\r +`].includes(R))),k=(R,$,E)=>{var N,W;let z=!0,Y=R;(N=e.onActiveValueChange)===null||N===void 0||N.call(e,null);const de=E?null:hp(R,e.tokenSeparators);return e.mode!=="combobox"&&de&&(Y="",(W=e.onSearchSplit)===null||W===void 0||W.call(e,de),O(!1),z=!1),e.onSearch&&w.value!==Y&&e.onSearch(Y,{source:$?"typing":"effect"}),z},M=R=>{var $;!R||!R.trim()||($=e.onSearch)===null||$===void 0||$.call(e,R,{source:"submit"})};ke(c,()=>{!c.value&&!l.value&&e.mode!=="combobox"&&k("",!1,!1)},{immediate:!0,flush:"post"}),ke(()=>e.disabled,()=>{x.value&&e.disabled&&d(!1),e.disabled&&!v.value&&h(!1)},{immediate:!0});const[V,q]=dc(),Q=function(R){var $;const E=V(),{which:N}=R;if(N===Me.ENTER&&(e.mode!=="combobox"&&R.preventDefault(),c.value||O(!0)),q(!!w.value),N===Me.BACKSPACE&&!E&&l.value&&!w.value&&e.displayValues.length){const de=[...e.displayValues];let oe=null;for(let ee=de.length-1;ee>=0;ee-=1){const pe=de[ee];if(!pe.disabled){de.splice(ee,1),oe=pe;break}}oe&&e.onDisplayValuesChange(de,{type:"remove",values:[oe]})}for(var W=arguments.length,z=new Array(W>1?W-1:0),Y=1;Y1?$-1:0),N=1;N<$;N++)E[N-1]=arguments[N];c.value&&g.value&&g.value.onKeyup(R,...E),e.onKeyup&&e.onKeyup(R,...E)},K=R=>{const $=e.displayValues.filter(E=>E!==R);e.onDisplayValuesChange($,{type:"remove",values:[R]})},j=ye(!1),Z=function(){h(!0),e.disabled||(e.onFocus&&!j.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&O(!0)),j.value=!0},G=Ee(!1),se=function(){if(G.value||(v.value=!0,h(!1,()=>{j.value=!1,v.value=!1,O(!1)}),e.disabled))return;const R=w.value;R&&(e.mode==="tags"?e.onSearch(R,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},J=()=>{G.value=!0},he=()=>{G.value=!1};_t("VCSelectContainerEvent",{focus:Z,blur:se});const re=[];gt(()=>{re.forEach(R=>clearTimeout(R)),re.splice(0,re.length)}),Rt(()=>{re.forEach(R=>clearTimeout(R)),re.splice(0,re.length)});const _e=function(R){var $,E;const{target:N}=R,W=($=S.value)===null||$===void 0?void 0:$.getPopupElement();if(W&&W.contains(N)){const oe=setTimeout(()=>{var ee;const pe=re.indexOf(oe);pe!==-1&&re.splice(pe,1),s(),!o.value&&!W.contains(document.activeElement)&&((ee=b.value)===null||ee===void 0||ee.focus())});re.push(oe)}for(var z=arguments.length,Y=new Array(z>1?z-1:0),de=1;de{};return gt(()=>{ke(B,()=>{var R;if(B.value){const $=Math.ceil((R=u.value)===null||R===void 0?void 0:R.offsetWidth);be.value!==$&&!Number.isNaN($)&&(be.value=$)}},{immediate:!0,flush:"post"})}),$p([u,S],B,O),_p(pc(L(L({},Vr(e)),{open:c,triggerOpen:B,showSearch:i,multiple:l,toggleOpen:O}))),()=>{const R=L(L({},e),n),{prefixCls:$,id:E,open:N,defaultOpen:W,mode:z,showSearch:Y,searchValue:de,onSearch:oe,allowClear:ee,clearIcon:pe,showArrow:Te,inputIcon:Ie,disabled:xe,loading:Fe,getInputElement:le,getPopupContainer:te,placement:ue,animation:Ae,transitionName:De,dropdownStyle:Le,dropdownClassName:ce,dropdownMatchSelectWidth:ge,dropdownRender:ve,dropdownAlign:Se,showAction:Oe,direction:Pe,tokenSeparators:$e,tagRender:Ke,optionLabelRender:He,onPopupScroll:Ue,onDropdownVisibleChange:Ve,onFocus:We,onBlur:ut,onKeyup:mt,onKeydown:Qe,onMousedown:Ge,onClear:Ye,omitDomProps:Ze,getRawInputElement:tt,displayValues:rt,onDisplayValuesChange:nt,emptyOptions:ft,activeDescendantId:ct,activeValue:lt,OptionList:yt}=R,bt=Pp(R,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),at=z==="combobox"&&le&&le()||null,ot=typeof tt=="function"&&tt(),pt=L({},bt);let ht;ot&&(ht=pn=>{O(pn)}),Dp.forEach(pn=>{delete pt[pn]}),Ze==null||Ze.forEach(pn=>{delete pt[pn]});const jn=Te!==void 0?Te:Fe||!l.value&&z!=="combobox";let Wn;jn&&(Wn=P(Fn,{class:we(`${$}-arrow`,{[`${$}-arrow-loading`]:Fe}),customizeIcon:Ie,customizeIconProps:{loading:Fe,searchValue:w.value,open:c.value,focused:m.value,showSearch:i.value}},null));let qn;const Mt=()=>{Ye==null||Ye(),nt([],{type:"clear",values:rt}),k("",!1,!1)};!xe&&ee&&(rt.length||w.value)&&(qn=P(Fn,{class:`${$}-clear`,onMousedown:Mt,customizeIcon:pe},{default:()=>[Ut("×")]}));const ka=P(yt,{ref:g},L(L({},f.customSlots),{option:a.option})),La=we($,n.class,{[`${$}-focused`]:m.value,[`${$}-multiple`]:l.value,[`${$}-single`]:!l.value,[`${$}-allow-clear`]:ee,[`${$}-show-arrow`]:jn,[`${$}-disabled`]:xe,[`${$}-loading`]:Fe,[`${$}-open`]:c.value,[`${$}-customize-input`]:at,[`${$}-show-search`]:i.value}),Or=P(mp,{ref:S,disabled:xe,prefixCls:$,visible:B.value,popupElement:ka,containerWidth:be.value,animation:Ae,transitionName:De,dropdownStyle:Le,dropdownClassName:ce,direction:Pe,dropdownMatchSelectWidth:ge,dropdownRender:ve,dropdownAlign:Se,placement:ue,getPopupContainer:te,empty:ft,getTriggerDOMNode:()=>p.current,onPopupVisibleChange:ht,onPopupMouseEnter:I,onPopupFocusin:J,onPopupFocusout:he},{default:()=>ot?cn(ot)&&Kt(ot,{ref:p},!1,!0):P(Bp,ie(ie({},e),{},{domRef:p,prefixCls:$,inputElement:at,ref:b,id:E,showSearch:i.value,mode:z,activeDescendantId:ct,tagRender:Ke,optionLabelRender:He,values:rt,open:c.value,onToggleOpen:O,activeValue:lt,searchValue:w.value,onSearch:k,onSearchSubmit:M,onRemove:K,tokenWithEnter:_.value}),null)});let sr;return ot?sr=Or:sr=P("div",ie(ie({},pt),{},{class:La,ref:u,onMousedown:_e,onKeydown:Q,onKeyup:X}),[m.value&&!c.value&&P("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${rt.map(pn=>{let{label:Nr,value:Fa}=pn;return["number","string"].includes(typeof Nr)?Nr:Fa}).join(", ")}`]),Or,Wn,qn]),sr}}}),ha=(e,t)=>{let{height:n,offset:r,prefixCls:a,onInnerResize:l}=e,{slots:i}=t;var o;let f={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:`${n}px`,position:"relative",overflow:"hidden"},u=L(L({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),P("div",{style:f},[P(da,{onResize:p=>{let{offsetHeight:S}=p;S&&l&&l()}},{default:()=>[P("div",{style:u,class:we({[`${a}-holder-inner`]:a})},[(o=i.default)===null||o===void 0?void 0:o.call(i)])]})])};ha.displayName="Filter";ha.inheritAttrs=!1;ha.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const vc=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var a;const l=xr((a=r.default)===null||a===void 0?void 0:a.call(r));return l.length?yr(l[0],{ref:n}):l};vc.props={setRef:{type:Function,default:()=>{}}};const Kp=20;function Rl(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Mp=Be({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:br(),thumbRef:br(),visibleTimeout:null,state:Ht({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,bn?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,bn?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,bn?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,bn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,bn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,bn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),wt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;L(this.state,{dragging:!0,pageY:Rl(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:a}=this.$props;if(wt.cancel(this.moveRaf),t){const l=Rl(e)-n,i=r+l,o=this.getEnableScrollRange(),f=this.getEnableHeightRange(),u=f?i/f:0,p=Math.ceil(u*o);this.moveRaf=wt(()=>{a(p)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,Kp),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",a=this.getTop()+"px",l=this.showScroll(),i=l&&t;return P("div",{ref:this.scrollbarRef,class:we(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[P("div",{ref:this.thumbRef,class:we(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Up(e,t,n,r){const a=new Map,l=new Map,i=Ee(Symbol("update"));ke(e,()=>{i.value=Symbol("update")});let o;function f(){wt.cancel(o)}function u(){f(),o=wt(()=>{a.forEach((S,b)=>{if(S&&S.offsetParent){const{offsetHeight:g}=S;l.get(b)!==g&&(i.value=Symbol("update"),l.set(b,S.offsetHeight))}})})}function p(S,b){const g=t(S);a.get(g),b?(a.set(g,b.$el||b),u()):a.delete(g)}return ar(()=>{f()}),[p,u,l,i]}function Vp(e,t,n,r,a,l,i,o){let f;return u=>{if(u==null){o();return}wt.cancel(f);const p=t.value,S=r.itemHeight;if(typeof u=="number")i(u);else if(u&&typeof u=="object"){let b;const{align:g}=u;"index"in u?{index:b}=u:b=p.findIndex(h=>a(h)===u.key);const{offset:v=0}=u,m=(h,s)=>{if(h<0||!e.value)return;const y=e.value.clientHeight;let C=!1,w=s;if(y){const T=s||g;let x=0,c=0,d=0;const A=Math.min(p.length,b);for(let _=0;_<=A;_+=1){const k=a(p[_]);c=x;const M=n.get(k);d=c+(M===void 0?S:M),x=d,_===b&&M===void 0&&(C=!0)}const B=e.value.scrollTop;let O=null;switch(T){case"top":O=c-v;break;case"bottom":O=d-y+v;break;default:{const _=B+y;c_&&(w="bottom")}}O!==null&&O!==B&&i(O)}f=wt(()=>{C&&l(),m(h-1,w)},2)};m(5)}}}const zp=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),mc=(e,t)=>{let n=!1,r=null;function a(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=l<0&&e.value||l>0&&t.value;return i&&o?(clearTimeout(r),n=!1):(!o||n)&&a(),!n&&o}};function Hp(e,t,n,r){let a=0,l=null,i=null,o=!1;const f=mc(t,n);function u(S){if(!e.value)return;wt.cancel(l);const{deltaY:b}=S;a+=b,i=b,!f(b)&&(zp||S.preventDefault(),l=wt(()=>{r(a*(o?10:1)),a=0}))}function p(S){e.value&&(o=S.detail===i)}return[u,p]}const jp=14/15;function Wp(e,t,n){let r=!1,a=0,l=null,i=null;const o=()=>{l&&(l.removeEventListener("touchmove",f),l.removeEventListener("touchend",u))},f=b=>{if(r){const g=Math.ceil(b.touches[0].pageY);let v=a-g;a=g,n(v)&&b.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=jp,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},u=()=>{r=!1,o()},p=b=>{o(),b.touches.length===1&&!r&&(r=!0,a=Math.ceil(b.touches[0].pageY),l=b.target,l.addEventListener("touchmove",f,{passive:!1}),l.addEventListener("touchend",u))},S=()=>{};gt(()=>{document.addEventListener("touchmove",S,{passive:!1}),ke(e,b=>{t.value.removeEventListener("touchstart",p),o(),clearInterval(i),b&&t.value.addEventListener("touchstart",p,{passive:!1})},{immediate:!0})}),Rt(()=>{document.removeEventListener("touchmove",S)})}var qp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const u=t+f,p=a(o,u,{}),S=i(o);return P(vc,{key:S,setRef:b=>r(o,b)},{default:()=>[p]})})}const yc=Be({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ae.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const r=H(()=>{const{height:K,itemHeight:j,virtual:Z}=e;return!!(Z!==!1&&K&&j)}),a=H(()=>{const{height:K,itemHeight:j,data:Z}=e;return r.value&&Z&&j*Z.length>K}),l=Ht({scrollTop:0,scrollMoving:!1}),i=H(()=>e.data||Gp),o=ye([]);ke(i,()=>{o.value=nr(i.value).slice()},{immediate:!0});const f=ye(K=>{});ke(()=>e.itemKey,K=>{typeof K=="function"?f.value=K:f.value=j=>j==null?void 0:j[K]},{immediate:!0});const u=ye(),p=ye(),S=ye(),b=K=>f.value(K),g={getKey:b};function v(K){let j;typeof K=="function"?j=K(l.scrollTop):j=K;const Z=x(j);u.value&&(u.value.scrollTop=Z),l.scrollTop=Z}const[m,h,s,y]=Up(o,b),C=Ht({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=ye(0);gt(()=>{St(()=>{var K;w.value=((K=p.value)===null||K===void 0?void 0:K.offsetHeight)||0})}),Sr(()=>{St(()=>{var K;w.value=((K=p.value)===null||K===void 0?void 0:K.offsetHeight)||0})}),ke([r,o],()=>{r.value||L(C,{scrollHeight:void 0,start:0,end:o.value.length-1,offset:void 0})},{immediate:!0}),ke([r,o,w,a],()=>{r.value&&!a.value&&L(C,{scrollHeight:w.value,start:0,end:o.value.length-1,offset:void 0}),u.value&&(l.scrollTop=u.value.scrollTop)},{immediate:!0}),ke([a,r,()=>l.scrollTop,o,y,()=>e.height,w],()=>{if(!r.value||!a.value)return;let K=0,j,Z,G;const se=o.value.length,J=o.value,he=l.scrollTop,{itemHeight:re,height:_e}=e,be=he+_e;for(let I=0;I=he&&(j=I,Z=K),G===void 0&&N>be&&(G=I),K=N}j===void 0&&(j=0,Z=0,G=Math.ceil(_e/re)),G===void 0&&(G=se-1),G=Math.min(G+1,se),L(C,{scrollHeight:K,start:j,end:G,offset:Z})},{immediate:!0});const T=H(()=>C.scrollHeight-e.height);function x(K){let j=K;return Number.isNaN(T.value)||(j=Math.min(j,T.value)),j=Math.max(j,0),j}const c=H(()=>l.scrollTop<=0),d=H(()=>l.scrollTop>=T.value),A=mc(c,d);function B(K){v(K)}function O(K){var j;const{scrollTop:Z}=K.currentTarget;Z!==l.scrollTop&&v(Z),(j=e.onScroll)===null||j===void 0||j.call(e,K)}const[_,k]=Hp(r,c,d,K=>{v(j=>j+K)});Wp(r,u,(K,j)=>A(K,j)?!1:(_({preventDefault(){},deltaY:K}),!0));function M(K){r.value&&K.preventDefault()}const V=()=>{u.value&&(u.value.removeEventListener("wheel",_,bn?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",k),u.value.removeEventListener("MozMousePixelScroll",M))};et(()=>{St(()=>{u.value&&(V(),u.value.addEventListener("wheel",_,bn?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",k),u.value.addEventListener("MozMousePixelScroll",M))})}),Rt(()=>{V()});const q=Vp(u,o,s,e,b,h,v,()=>{var K;(K=S.value)===null||K===void 0||K.delayHidden()});n({scrollTo:q});const Q=H(()=>{let K=null;return e.height&&(K=L({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Xp),r.value&&(K.overflowY="hidden",l.scrollMoving&&(K.pointerEvents="none"))),K});return ke([()=>C.start,()=>C.end,o],()=>{if(e.onVisibleChange){const K=o.value.slice(C.start,C.end+1);e.onVisibleChange(K,o.value)}},{flush:"post"}),{state:l,mergedData:o,componentStyle:Q,onFallbackScroll:O,onScrollBar:B,componentRef:u,useVirtual:r,calRes:C,collectHeight:h,setInstance:m,sharedConfig:g,scrollBarRef:S,fillerInnerRef:p,delayHideScrollBar:()=>{var K;(K=S.value)===null||K===void 0||K.delayHidden()}}},render(){const e=L(L({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:r,fullHeight:a,data:l,itemKey:i,virtual:o,component:f="div",onScroll:u,children:p=this.$slots.default,style:S,class:b}=e,g=qp(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=we(t,b),{scrollTop:m}=this.state,{scrollHeight:h,offset:s,start:y,end:C}=this.calRes,{componentStyle:w,onFallbackScroll:T,onScrollBar:x,useVirtual:c,collectHeight:d,sharedConfig:A,setInstance:B,mergedData:O,delayHideScrollBar:_}=this;return P("div",ie({style:L(L({},S),{position:"relative"}),class:v},g),[P(f,{class:`${t}-holder`,style:w,ref:"componentRef",onScroll:T,onMouseenter:_},{default:()=>[P(ha,{prefixCls:t,height:h,offset:s,onInnerResize:d,ref:"fillerInnerRef"},{default:()=>Qp(O,y,C,B,p,A)})]}),c&&P(Mp,{ref:"scrollBarRef",prefixCls:t,scrollTop:m,height:n,scrollHeight:h,count:O.length,onScroll:x,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Yp(e,t,n){const r=Ee(e());return ke(t,(a,l)=>{n(a,l)&&(r.value=e())}),r}function Jp(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const bc=Symbol("SelectContextKey");function Zp(e){return _t(bc,e)}function eh(){return Tt(bc,{})}var th=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a`${a.prefixCls}-item`),o=Yp(()=>l.flattenOptions,[()=>a.open,()=>l.flattenOptions],T=>T[0]),f=br(),u=T=>{T.preventDefault()},p=T=>{f.current&&f.current.scrollTo(typeof T=="number"?{index:T}:T)},S=function(T){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const c=o.value.length;for(let d=0;d1&&arguments[1]!==void 0?arguments[1]:!1;b.activeIndex=T;const c={source:x?"keyboard":"mouse"},d=o.value[T];if(!d){l.onActiveValue(null,-1,c);return}l.onActiveValue(d.value,T,c)};ke([()=>o.value.length,()=>a.searchValue],()=>{g(l.defaultActiveFirstOption!==!1?S(0):-1)},{immediate:!0});const v=T=>l.rawValues.has(T)&&a.mode!=="combobox";ke([()=>a.open,()=>a.searchValue],()=>{if(!a.multiple&&a.open&&l.rawValues.size===1){const T=Array.from(l.rawValues)[0],x=nr(o.value).findIndex(c=>{let{data:d}=c;return d[l.fieldNames.value]===T});x!==-1&&(g(x),St(()=>{p(x)}))}a.open&&St(()=>{var T;(T=f.current)===null||T===void 0||T.scrollTo(void 0)})},{immediate:!0,flush:"post"});const m=T=>{T!==void 0&&l.onSelect(T,{selected:!l.rawValues.has(T)}),a.multiple||a.toggleOpen(!1)},h=T=>typeof T.label=="function"?T.label():T.label;function s(T){const x=o.value[T];if(!x)return null;const c=x.data||{},{value:d}=c,{group:A}=x,B=rr(c,!0),O=h(x);return x?P("div",ie(ie({"aria-label":typeof O=="string"&&!A?O:null},B),{},{key:T,role:A?"presentation":"option",id:`${a.id}_list_${T}`,"aria-selected":v(d)}),[d]):null}return n({onKeydown:T=>{const{which:x,ctrlKey:c}=T;switch(x){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{let d=0;if(x===Me.UP?d=-1:x===Me.DOWN?d=1:Jp()&&c&&(x===Me.N?d=1:x===Me.P&&(d=-1)),d!==0){const A=S(b.activeIndex+d,d);p(A),g(A,!0)}break}case Me.ENTER:{const d=o.value[b.activeIndex];d&&!d.data.disabled?m(d.value):m(void 0),a.open&&T.preventDefault();break}case Me.ESC:a.toggleOpen(!1),a.open&&T.stopPropagation()}},onKeyup:()=>{},scrollTo:T=>{p(T)}}),()=>{const{id:T,notFoundContent:x,onPopupScroll:c}=a,{menuItemSelectedIcon:d,fieldNames:A,virtual:B,listHeight:O,listItemHeight:_}=l,k=r.option,{activeIndex:M}=b,V=Object.keys(A).map(q=>A[q]);return o.value.length===0?P("div",{role:"listbox",id:`${T}_list`,class:`${i.value}-empty`,onMousedown:u},[x]):P(It,null,[P("div",{role:"listbox",id:`${T}_list`,style:{height:0,width:0,overflow:"hidden"}},[s(M-1),s(M),s(M+1)]),P(yc,{itemKey:"key",ref:f,data:o.value,height:O,itemHeight:_,fullHeight:!1,onMousedown:u,onScroll:c,virtual:B},{default:(q,Q)=>{var X;const{group:K,groupOption:j,data:Z,value:G}=q,{key:se}=Z,J=typeof q.label=="function"?q.label():q.label;if(K){const pe=(X=Z.title)!==null&&X!==void 0?X:_l(J)&&J;return P("div",{class:we(i.value,`${i.value}-group`),title:pe},[k?k(Z):J!==void 0?J:se])}const{disabled:he,title:re,children:_e,style:be,class:I,className:R}=Z,$=th(Z,["disabled","title","children","style","class","className"]),E=Et($,V),N=v(G),W=`${i.value}-option`,z=we(i.value,W,I,R,{[`${W}-grouped`]:j,[`${W}-active`]:M===Q&&!he,[`${W}-disabled`]:he,[`${W}-selected`]:N}),Y=h(q),de=!d||typeof d=="function"||N,oe=typeof Y=="number"?Y:Y||G;let ee=_l(oe)?oe.toString():void 0;return re!==void 0&&(ee=re),P("div",ie(ie({},E),{},{"aria-selected":N,class:z,title:ee,onMousemove:pe=>{$.onMousemove&&$.onMousemove(pe),!(M===Q||he)&&g(Q)},onClick:pe=>{he||m(G),$.onClick&&$.onClick(pe)},style:be}),[P("div",{class:`${W}-content`},[k?k(Z):oe]),cn(d)||N,de&&P(Fn,{class:`${i.value}-option-state`,customizeIcon:d,customizeIconProps:{isSelected:N}},{default:()=>[N?"✓":null]})])}})])}}});var rh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a1&&arguments[1]!==void 0?arguments[1]:!1;return xr(e).map((r,a)=>{var l;if(!cn(r)||!r.type)return null;const{type:{isSelectOptGroup:i},key:o,children:f,props:u}=r;if(t||!i)return ah(r);const p=f&&f.default?f.default():void 0,S=(u==null?void 0:u.label)||((l=f.label)===null||l===void 0?void 0:l.call(f))||o;return L(L({key:`__RC_SELECT_GRP__${o===null?a:String(o)}__`},u),{label:S,options:Cc(p||[])})}).filter(r=>r)}function oh(e,t,n){const r=ye(),a=ye(),l=ye(),i=ye([]);return ke([e,t],()=>{e.value?i.value=nr(e.value).slice():i.value=Cc(t.value)},{immediate:!0,deep:!0}),et(()=>{const o=i.value,f=new Map,u=new Map,p=n.value;function S(b){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:Ee("");const t=`rc_select_${lh()}`;return e.value||t}function xc(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Ua(e,t){return xc(e).join("").toUpperCase().includes(t)}const uh=(e,t,n,r,a)=>H(()=>{const l=n.value,i=a==null?void 0:a.value,o=r==null?void 0:r.value;if(!l||o===!1)return e.value;const{options:f,label:u,value:p}=t.value,S=[],b=typeof o=="function",g=l.toUpperCase(),v=b?o:(h,s)=>i?Ua(s[i],g):s[f]?Ua(s[u!=="children"?u:"label"],g):Ua(s[p],g),m=b?h=>oi(h):h=>h;return e.value.forEach(h=>{if(h[f]){if(v(l,m(h)))S.push(h);else{const y=h[f].filter(C=>v(l,m(C)));y.length&&S.push(L(L({},h),{[f]:y}))}return}v(l,m(h))&&S.push(h)}),S}),ch=(e,t)=>{const n=ye({values:new Map,options:new Map});return[H(()=>{const{values:l,options:i}=n.value,o=e.value.map(p=>{var S;return p.label===void 0?L(L({},p),{label:(S=l.get(p.value))===null||S===void 0?void 0:S.label}):p}),f=new Map,u=new Map;return o.forEach(p=>{f.set(p.value,p),u.set(p.value,t.value.get(p.value)||i.get(p.value))}),n.value.values=f,n.value.options=u,o}),l=>t.value.get(l)||n.value.options.get(l)]};function ii(e,t){const{defaultValue:n,value:r=Ee()}=t||{};let a=typeof e=="function"?e():e;r.value!==void 0&&(a=ap(r)),n!==void 0&&(a=typeof n=="function"?n():n);const l=Ee(a),i=Ee(a);et(()=>{let f=r.value!==void 0?r.value:l.value;t.postState&&(f=t.postState(f)),i.value=f});function o(f){const u=i.value;l.value=f,nr(i.value)!==f&&t.onChange&&t.onChange(f,u)}return ke(r,()=>{l.value=r.value}),[i,o]}const dh=["inputValue"];function Sc(){return L(L({},hc()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ae.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ae.any,defaultValue:ae.any,onChange:Function,children:Array})}function fh(e){return!e||typeof e!="object"}const ph=Be({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:kt(Sc(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:r,slots:a}=t;const l=sh(st(e,"id")),i=H(()=>gc(e.mode)),o=H(()=>!!(!e.options&&e.children)),f=H(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=H(()=>uc(e.fieldNames,o.value)),[p,S]=ii("",{value:H(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:I=>I||""}),b=oh(st(e,"options"),st(e,"children"),u),{valueOptions:g,labelOptions:v,options:m}=b,h=I=>xc(I).map($=>{var E,N;let W,z,Y,de;fh($)?W=$:(Y=$.key,z=$.label,W=(E=$.value)!==null&&E!==void 0?E:Y);const oe=g.value.get(W);return oe&&(z===void 0&&(z=oe==null?void 0:oe[e.optionLabelProp||u.value.label]),Y===void 0&&(Y=(N=oe==null?void 0:oe.key)!==null&&N!==void 0?N:W),de=oe==null?void 0:oe.disabled),{label:z,value:W,key:Y,disabled:de,option:oe}}),[s,y]=ii(e.defaultValue,{value:st(e,"value")}),C=H(()=>{var I;const R=h(s.value);return e.mode==="combobox"&&!(!((I=R[0])===null||I===void 0)&&I.value)?[]:R}),[w,T]=ch(C,g),x=H(()=>{if(!e.mode&&w.value.length===1){const I=w.value[0];if(I.value===null&&(I.label===null||I.label===void 0))return[]}return w.value.map(I=>{var R;return L(L({},I),{label:(R=typeof I.label=="function"?I.label():I.label)!==null&&R!==void 0?R:I.value})})}),c=H(()=>new Set(w.value.map(I=>I.value)));et(()=>{var I;if(e.mode==="combobox"){const R=(I=w.value[0])===null||I===void 0?void 0:I.value;R!=null&&S(String(R))}},{flush:"post"});const d=(I,R)=>{const $=R??I;return{[u.value.value]:I,[u.value.label]:$}},A=ye();et(()=>{if(e.mode!=="tags"){A.value=m.value;return}const I=m.value.slice(),R=$=>g.value.has($);[...w.value].sort(($,E)=>$.value{const E=$.value;R(E)||I.push(d(E,$.label))}),A.value=I});const B=uh(A,u,p,f,st(e,"optionFilterProp")),O=H(()=>e.mode!=="tags"||!p.value||B.value.some(I=>I[e.optionFilterProp||"value"]===p.value)?B.value:[d(p.value),...B.value]),_=H(()=>e.filterSort?[...O.value].sort((I,R)=>e.filterSort(I,R)):O.value),k=H(()=>pp(_.value,{fieldNames:u.value,childrenAsData:o.value})),M=I=>{const R=h(I);if(y(R),e.onChange&&(R.length!==w.value.length||R.some(($,E)=>{var N;return((N=w.value[E])===null||N===void 0?void 0:N.value)!==($==null?void 0:$.value)}))){const $=e.labelInValue?R.map(N=>L(L({},N),{originLabel:N.label,label:typeof N.label=="function"?N.label():N.label})):R.map(N=>N.value),E=R.map(N=>oi(T(N.value)));e.onChange(i.value?$:$[0],i.value?E:E[0])}},[V,q]=Cn(null),[Q,X]=Cn(0),K=H(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),j=function(I,R){let{source:$="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};X(R),e.backfill&&e.mode==="combobox"&&I!==null&&$==="keyboard"&&q(String(I))},Z=(I,R)=>{const $=()=>{var E;const N=T(I),W=N==null?void 0:N[u.value.label];return[e.labelInValue?{label:typeof W=="function"?W():W,originLabel:W,value:I,key:(E=N==null?void 0:N.key)!==null&&E!==void 0?E:I}:I,oi(N)]};if(R&&e.onSelect){const[E,N]=$();e.onSelect(E,N)}else if(!R&&e.onDeselect){const[E,N]=$();e.onDeselect(E,N)}},G=(I,R)=>{let $;const E=i.value?R.selected:!0;E?$=i.value?[...w.value,I]:[I]:$=w.value.filter(N=>N.value!==I),M($),Z(I,E),e.mode==="combobox"?q(""):(!i.value||e.autoClearSearchValue)&&(S(""),q(""))},se=(I,R)=>{M(I),(R.type==="remove"||R.type==="clear")&&R.values.forEach($=>{Z($.value,!1)})},J=(I,R)=>{var $;if(S(I),q(null),R.source==="submit"){const E=(I||"").trim();if(E){const N=Array.from(new Set([...c.value,E]));M(N),Z(E,!0),S("")}return}R.source!=="blur"&&(e.mode==="combobox"&&M(I),($=e.onSearch)===null||$===void 0||$.call(e,I))},he=I=>{let R=I;e.mode!=="tags"&&(R=I.map(E=>{const N=v.value.get(E);return N==null?void 0:N.value}).filter(E=>E!==void 0));const $=Array.from(new Set([...c.value,...R]));M($),$.forEach(E=>{Z(E,!0)})},re=H(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Zp(pc(L(L({},b),{flattenOptions:k,onActiveValue:j,defaultActiveFirstOption:K,onSelect:G,menuItemSelectedIcon:st(e,"menuItemSelectedIcon"),rawValues:c,fieldNames:u,virtual:re,listHeight:st(e,"listHeight"),listItemHeight:st(e,"listItemHeight"),childrenAsData:o})));const _e=Ee();n({focus(){var I;(I=_e.value)===null||I===void 0||I.focus()},blur(){var I;(I=_e.value)===null||I===void 0||I.blur()},scrollTo(I){var R;(R=_e.value)===null||R===void 0||R.scrollTo(I)}});const be=H(()=>Et(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>P(Fp,ie(ie(ie({},be.value),r),{},{id:l,prefixCls:e.prefixCls,ref:_e,omitDomProps:dh,mode:e.mode,displayValues:x.value,onDisplayValuesChange:se,searchValue:p.value,onSearch:J,onSearchSplit:he,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:nh,emptyOptions:!k.value.length,activeValue:V.value,activeDescendantId:`${l}_list_${Q.value}`}),a)}}),Ki=()=>null;Ki.isSelectOption=!0;Ki.displayName="ASelectOption";const Mi=()=>null;Mi.isSelectOptGroup=!0;Mi.displayName="ASelectOptGroup";var hh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Nl(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:a,hasFeedback:l,feedbackIcon:i,showArrow:o}=e,f=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),p=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),S=e.removeIcon||t.removeIcon&&t.removeIcon(),b=u??P(fa,null,null),g=s=>P(It,null,[o!==!1&&s,l&&i]);let v=null;if(f!==void 0)v=g(f);else if(n)v=g(P(Wu,{spin:!0},null));else{const s=`${a}-suffix`;v=y=>{let{open:C,showSearch:w}=y;return g(C&&w?P(Ir,{class:s},null):P(ga,{class:s},null))}}let m=null;p!==void 0?m=p:r?m=P(va,null,null):m=null;let h=null;return S!==void 0?h=S:h=P(pa,null,null),{clearIcon:b,suffixIcon:v,itemIcon:m,removeIcon:h}}const kl=Symbol("ContextProps"),Ll=Symbol("InternalContextProps"),Fl={id:H(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Kl={addFormItemField:()=>{},removeFormItemField:()=>{}},Vn=()=>{const e=Tt(Ll,Kl),t=Symbol("FormItemFieldKey"),n=Er();return e.addFormItemField(t,n.type),Rt(()=>{e.removeFormItemField(t)}),_t(Ll,Kl),_t(kl,Fl),Tt(kl,Fl)},Sn=yf({}),Ml=Be({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Sn.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Jn(e,t,n){return we({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ma=(e,t)=>t||e;var xh="[object Symbol]";function Sh(e){return typeof e=="symbol"||qu(e)&&Gu(e)==xh}var Eh=/\s/;function wh(e){for(var t=e.length;t--&&Eh.test(e.charAt(t)););return t}var Ih=/^\s+/;function Th(e){return e&&e.slice(0,wh(e)+1).replace(Ih,"")}var Ul=NaN,Ah=/^[-+]0x[0-9a-f]+$/i,Bh=/^0b[01]+$/i,$h=/^0o[0-7]+$/i,Rh=parseInt;function Vl(e){if(typeof e=="number")return e;if(Sh(e))return Ul;if(Qo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Th(e);var n=Bh.test(e);return n||$h.test(e)?Rh(e.slice(2),n?2:8):Ah.test(e)?Ul:+e}var _h=bf(Object.getPrototypeOf,Object),Oh="[object Object]",Nh=Function.prototype,Ph=Object.prototype,Ec=Nh.toString,Dh=Ph.hasOwnProperty,kh=Ec.call(Object);function Lh(e){if(!qu(e)||Gu(e)!=Oh)return!1;var t=_h(e);if(t===null)return!0;var n=Dh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ec.call(n)==kh}var Va=function(){return Cf.Date.now()},Fh="Expected a function",Kh=Math.max,Mh=Math.min;function Uh(e,t,n){var r,a,l,i,o,f,u=0,p=!1,S=!1,b=!0;if(typeof e!="function")throw new TypeError(Fh);t=Vl(t)||0,Qo(n)&&(p=!!n.leading,S="maxWait"in n,l=S?Kh(Vl(n.maxWait)||0,t):l,b="trailing"in n?!!n.trailing:b);function g(x){var c=r,d=a;return r=a=void 0,u=x,i=e.apply(d,c),i}function v(x){return u=x,o=setTimeout(s,t),p?g(x):i}function m(x){var c=x-f,d=x-u,A=t-c;return S?Mh(A,l-d):A}function h(x){var c=x-f,d=x-u;return f===void 0||c>=t||c<0||S&&d>=l}function s(){var x=Va();if(h(x))return y(x);o=setTimeout(s,m(x))}function y(x){return o=void 0,b&&r?g(x):(r=a=void 0,i)}function C(){o!==void 0&&clearTimeout(o),u=0,r=f=a=o=void 0}function w(){return o===void 0?i:y(Va())}function T(){var x=Va(),c=h(x);if(r=arguments,a=this,f=x,c){if(o===void 0)return v(f);if(S)return clearTimeout(o),o=setTimeout(s,t),g(f)}return o===void 0&&(o=setTimeout(s,t)),i}return T.cancel=C,T.flush=w,T}function Vh(e){for(var t=-1,n=e==null?0:e.length,r={};++t{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=Yh[t];return[xf(r,a,l,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},zl=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Jh=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:L(L({},$t(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:Xu},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:Qu},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Yu},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Ju},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:L(L({},zl(e)),{color:e.colorTextDisabled}),[`${r}`]:L(L({},zl(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":L({flex:"auto"},Jr),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Zr(e,"slide-up"),Zr(e,"slide-down"),ra(e,"move-up"),ra(e,"move-down")]},Xn=2;function wc(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const a=(n-t)/2-r,l=Math.ceil(a/2);return[a,l]}function za(e,t){const{componentCls:n,iconCls:r}=e,a=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=wc(e),o=t?`${n}-${t}`:"";return{[`${n}-multiple${o}`]:{fontSize:e.fontSize,[a]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Xn}px ${Xn*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Xn}px 0`,lineHeight:`${l}px`,content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:Xn,marginBottom:Xn,lineHeight:`${l-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Xn*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":L(L({},Zu()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Zh(e){const{componentCls:t}=e,n=xt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=wc(e);return[za(e),za(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},za(xt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Ha(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,l=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:L(L({},$t(e)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function e0(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Ha(e),Ha(xt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.fontSize*1.5}}}},Ha(xt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const t0=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ja=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:a,outlineColor:l,antCls:i}=t,o=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:L(L({},o),{[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:a,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},n0=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},r0=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:L(L({},$t(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:L(L({},t0(e)),n0(e)),[`${t}-selection-item`]:L({flex:1,fontWeight:"normal"},Jr),[`${t}-selection-placeholder`]:L(L({},Jr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:L(L({},Zu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},a0=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},r0(e),e0(e),Zh(e),Jh(e),{[`${t}-rtl`]:{direction:"rtl"}},ja(t,xt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ja(`${t}-status-error`,xt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ja(`${t}-status-warning`,xt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ec(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},o0=Zt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=xt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[a0(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Ui=()=>L(L({},Et(Sc(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Pt([Array,Object,String,Number]),defaultValue:Pt([Array,Object,String,Number]),notFoundContent:ae.any,suffixIcon:ae.any,itemIcon:ae.any,size:dt(),mode:dt(),bordered:ze(!0),transitionName:String,choiceTransitionName:dt(""),popupClassName:String,dropdownClassName:String,placement:dt(),status:dt(),"onUpdate:value":je()}),Hl="SECRET_COMBOBOX_MODE_DO_NOT_USE",Gt=Be({compatConfig:{MODE:3},name:"ASelect",Option:Ki,OptGroup:Mi,inheritAttrs:!1,props:kt(Ui(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Hl,slots:Object,setup(e,t){let{attrs:n,emit:r,slots:a,expose:l}=t;const i=Ee(),o=Vn(),f=Sn.useInject(),u=H(()=>ma(f.status,e.status)),p=()=>{var G;(G=i.value)===null||G===void 0||G.focus()},S=()=>{var G;(G=i.value)===null||G===void 0||G.blur()},b=G=>{var se;(se=i.value)===null||se===void 0||se.scrollTo(G)},g=H(()=>{const{mode:G}=e;if(G!=="combobox")return G===Hl?"combobox":G}),{prefixCls:v,direction:m,configProvider:h,renderEmpty:s,size:y,getPrefixCls:C,getPopupContainer:w,disabled:T,select:x}=vt("select",e),{compactSize:c,compactItemClassnames:d}=tc(v,m),A=H(()=>c.value||y.value),B=tr(),O=H(()=>{var G;return(G=T.value)!==null&&G!==void 0?G:B.value}),[_,k]=o0(v),M=H(()=>C()),V=H(()=>e.placement!==void 0?e.placement:m.value==="rtl"?"bottomRight":"bottomLeft"),q=H(()=>Yo(M.value,Sf(V.value),e.transitionName)),Q=H(()=>we({[`${v.value}-lg`]:A.value==="large",[`${v.value}-sm`]:A.value==="small",[`${v.value}-rtl`]:m.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:f.isFormItemInput},Jn(v.value,u.value,f.hasFeedback),d.value,k.value)),X=function(){for(var G=arguments.length,se=new Array(G),J=0;J{r("blur",G),o.onFieldBlur()};l({blur:S,focus:p,scrollTo:b});const j=H(()=>g.value==="multiple"||g.value==="tags"),Z=H(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(j.value||g.value==="combobox"));return()=>{var G,se,J,he;const{notFoundContent:re,listHeight:_e=256,listItemHeight:be=24,popupClassName:I,dropdownClassName:R,virtual:$,dropdownMatchSelectWidth:E,id:N=o.id.value,placeholder:W=(G=a.placeholder)===null||G===void 0?void 0:G.call(a),showArrow:z}=e,{hasFeedback:Y,feedbackIcon:de}=f;let oe;re!==void 0?oe=re:a.notFoundContent?oe=a.notFoundContent():g.value==="combobox"?oe=null:oe=(s==null?void 0:s("Select"))||P(Ef,{componentName:"Select"},null);const{suffixIcon:ee,itemIcon:pe,removeIcon:Te,clearIcon:Ie}=Ch(L(L({},e),{multiple:j.value,prefixCls:v.value,hasFeedback:Y,feedbackIcon:de,showArrow:Z.value}),a),xe=Et(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Fe=we(I||R,{[`${v.value}-dropdown-${m.value}`]:m.value==="rtl"},k.value);return _(P(ph,ie(ie(ie({ref:i,virtual:$,dropdownMatchSelectWidth:E},xe),n),{},{showSearch:(se=e.showSearch)!==null&&se!==void 0?se:(J=x==null?void 0:x.value)===null||J===void 0?void 0:J.showSearch,placeholder:W,listHeight:_e,listItemHeight:be,mode:g.value,prefixCls:v.value,direction:m.value,inputIcon:ee,menuItemSelectedIcon:pe,removeIcon:Te,clearIcon:Ie,notFoundContent:oe,class:[Q.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:Fe,onChange:X,onBlur:K,id:N,dropdownRender:xe.dropdownRender||a.dropdownRender,transitionName:q.value,children:(he=a.default)===null||he===void 0?void 0:he.call(a),tagRender:e.tagRender||a.tagRender,optionLabelRender:a.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||a.maxTagPlaceholder,showArrow:Y||z,disabled:O.value}),{option:a.option}))}}});Gt.install=function(e){return e.component(Gt.name,Gt),e.component(Gt.Option.displayName,Gt.Option),e.component(Gt.OptGroup.displayName,Gt.OptGroup),e};Gt.Option;Gt.OptGroup;const i0=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function l0(){const[,e]=wf();return H(()=>{const t=i0(e.value),n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(l){return a=l,n.forEach(i=>i(a)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(a),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(t).forEach(l=>{const i=t[l],o=this.matchHandlers[i];o==null||o.mql.removeListener(o==null?void 0:o.listener)}),n.clear()},register(){Object.keys(t).forEach(l=>{const i=t[l],o=u=>{let{matches:p}=u;this.dispatch(L(L({},a),{[l]:p}))},f=window.matchMedia(i);f.addListener(o),this.matchHandlers[i]={mql:f,listener:o},o(f)})},responsiveMap:t}})}function Ic(){const e=ye({});let t=null;const n=l0();return gt(()=>{t=n.value.subscribe(r=>{e.value=r})}),ar(()=>{n.value.unsubscribe(t)}),e}function rn(e){const t=ye();return et(()=>{t.value=e()},{flush:"sync"}),t}const Qn={adjustX:1,adjustY:1},Yn=[0,0],s0={topLeft:{points:["bl","tl"],overflow:Qn,offset:[0,-4],targetOffset:Yn},topCenter:{points:["bc","tc"],overflow:Qn,offset:[0,-4],targetOffset:Yn},topRight:{points:["br","tr"],overflow:Qn,offset:[0,-4],targetOffset:Yn},bottomLeft:{points:["tl","bl"],overflow:Qn,offset:[0,4],targetOffset:Yn},bottomCenter:{points:["tc","bc"],overflow:Qn,offset:[0,4],targetOffset:Yn},bottomRight:{points:["tr","br"],overflow:Qn,offset:[0,4],targetOffset:Yn}};var u0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae.visible,g=>{g!==void 0&&(l.value=g)});const i=Ee();a({triggerRef:i});const o=g=>{e.visible===void 0&&(l.value=!1),r("overlayClick",g)},f=g=>{e.visible===void 0&&(l.value=g),r("visibleChange",g)},u=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),m={prefixCls:`${e.prefixCls}-menu`,onClick:o};return P(It,{key:If},[e.arrow&&P("div",{class:`${e.prefixCls}-arrow`},null),Kt(v,m,!1)])},p=H(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),S=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return l.value&&v?Kt(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},b=H(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:m,overlayStyle:h,trigger:s,placement:y,align:C,getPopupContainer:w,transitionName:T,animation:x,overlayClassName:c}=e,d=u0(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return P(Hu,ie(ie({},d),{},{prefixCls:g,ref:i,popupClassName:we(c,{[`${g}-show-arrow`]:v}),popupStyle:h,builtinPlacements:s0,action:s,showAction:m,hideAction:b.value||[],popupPlacement:y,popupAlign:C,popupTransitionName:T,popupAnimation:x,popupVisible:l.value,stretch:p.value?"minWidth":"",onPopupVisibleChange:f,getPopupContainer:w}),{popup:u,default:S})}}}),Tc=()=>({arrow:Pt([Boolean,Object]),trigger:{type:[Array,String]},menu:Bt(),overlay:ae.any,visible:ze(),open:ze(),disabled:ze(),danger:ze(),autofocus:ze(),align:Bt(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Bt(),forceRender:ze(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:ze(),destroyPopupOnHide:ze(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Wa=Tf(),d0=()=>L(L({},Tc()),{type:Wa.type,size:String,htmlType:Wa.htmlType,href:String,disabled:ze(),prefixCls:String,icon:ae.any,title:String,loading:Wa.loading,onClick:ea()}),f0=e=>{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:a}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:a},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},p0=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},h0=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,dropdownArrowOffset:l,sizePopupArrow:i,antCls:o,iconCls:f,motionDurationMid:u,dropdownPaddingVertical:p,fontSize:S,dropdownEdgeChildPadding:b,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:m,colorBgElevated:h,boxShadowPopoverArrow:s}=e;return[{[t]:L(L({},$t(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-a+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${f}-down`]:{fontSize:v},[`${f}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${f}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` + &-show-arrow${t}-placement-topLeft, + &-show-arrow${t}-placement-top, + &-show-arrow${t}-placement-topRight + `]:{paddingBottom:a},[` + &-show-arrow${t}-placement-bottomLeft, + &-show-arrow${t}-placement-bottom, + &-show-arrow${t}-placement-bottomRight + `]:{paddingTop:a},[`${t}-arrow`]:L({position:"absolute",zIndex:1,display:"block"},Af(i,e.borderRadiusXS,e.borderRadiusOuter,h,s)),[` + &-placement-top > ${t}-arrow, + &-placement-topLeft > ${t}-arrow, + &-placement-topRight > ${t}-arrow + `]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[` + &-placement-bottom > ${t}-arrow, + &-placement-bottomLeft > ${t}-arrow, + &-placement-bottomRight > ${t}-arrow + `]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Xu},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Qu},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Yu},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ju}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:L(L({padding:b,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Jo(e)),{[`${n}-item-group-title`]:{padding:`${p}px ${m}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:S,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:L(L({clear:"both",margin:0,padding:`${p}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:S,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Jo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Zr(e,"slide-up"),Zr(e,"slide-down"),ra(e,"move-up"),ra(e,"move-down"),Bf(e,"zoom-big")]]},Ac=Zt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:a,controlHeight:l,fontSize:i,lineHeight:o,paddingXXS:f,componentCls:u,borderRadiusOuter:p,borderRadiusLG:S}=e,b=(l-i*o)/2,{dropdownArrowOffset:g}=$f({sizePopupArrow:a,contentRadius:S,borderRadiusOuter:p}),v=xt(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:a/2+r,dropdownArrowOffset:g,dropdownPaddingVertical:b,dropdownEdgeChildPadding:f});return[h0(v),f0(v),p0(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var g0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{a("update:visible",b),a("visibleChange",b),a("update:open",b),a("openChange",b)},{prefixCls:i,direction:o,getPopupContainer:f}=vt("dropdown",e),u=H(()=>`${i.value}-button`),[p,S]=Ac(i);return()=>{var b,g;const v=L(L({},e),r),{type:m="default",disabled:h,danger:s,loading:y,htmlType:C,class:w="",overlay:T=(b=n.overlay)===null||b===void 0?void 0:b.call(n),trigger:x,align:c,open:d,visible:A,onVisibleChange:B,placement:O=o.value==="rtl"?"bottomLeft":"bottomRight",href:_,title:k,icon:M=((g=n.icon)===null||g===void 0?void 0:g.call(n))||P(Rf,null,null),mouseEnterDelay:V,mouseLeaveDelay:q,overlayClassName:Q,overlayStyle:X,destroyPopupOnHide:K,onClick:j,"onUpdate:open":Z}=v,G=g0(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),se={align:c,disabled:h,trigger:h?[]:x,placement:O,getPopupContainer:f==null?void 0:f.value,onOpenChange:l,mouseEnterDelay:V,mouseLeaveDelay:q,open:d??A,overlayClassName:Q,overlayStyle:X,destroyPopupOnHide:K},J=P(kn,{danger:s,type:m,disabled:h,loading:y,onClick:j,htmlType:C,href:_,title:k},{default:n.default}),he=P(kn,{danger:s,type:m,icon:M},null);return p(P(v0,ie(ie({},G),{},{class:we(u.value,w,S.value)}),{default:()=>[n.leftButton?n.leftButton({button:J}):J,P(An,se,{default:()=>[n.rightButton?n.rightButton({button:he}):he],overlay:()=>T})]}))}}}),An=Be({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:kt(Tc(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:a}=t;const{prefixCls:l,rootPrefixCls:i,direction:o,getPopupContainer:f}=vt("dropdown",e),[u,p]=Ac(l),S=H(()=>{const{placement:h="",transitionName:s}=e;return s!==void 0?s:h.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});_f({prefixCls:H(()=>`${l.value}-menu`),expandIcon:H(()=>P("span",{class:`${l.value}-menu-submenu-arrow`},[P(ta,{class:`${l.value}-menu-submenu-arrow-icon`},null)])),mode:H(()=>"vertical"),selectable:H(()=>!1),onClick:()=>{},validator:h=>{}});const b=()=>{var h,s,y;const C=e.overlay||((h=n.overlay)===null||h===void 0?void 0:h.call(n)),w=Array.isArray(C)?C[0]:C;if(!w)return null;const T=w.props||{};Xt(!T.mode||T.mode==="vertical","Dropdown",`mode="${T.mode}" is not supported for Dropdown's Menu.`);const{selectable:x=!1,expandIcon:c=(y=(s=w.children)===null||s===void 0?void 0:s.expandIcon)===null||y===void 0?void 0:y.call(s)}=T,d=typeof c<"u"&&cn(c)?c:P("span",{class:`${l.value}-menu-submenu-arrow`},[P(ta,{class:`${l.value}-menu-submenu-arrow-icon`},null)]);return cn(w)?Kt(w,{mode:"vertical",selectable:x,expandIcon:()=>d}):w},g=H(()=>{const h=e.placement;if(!h)return o.value==="rtl"?"bottomRight":"bottomLeft";if(h.includes("Center")){const s=h.slice(0,h.indexOf("Center"));return Xt(!h.includes("Center"),"Dropdown",`You are using '${h}' placement in Dropdown, which is deprecated. Try to use '${s}' instead.`),s}return h}),v=H(()=>typeof e.visible=="boolean"?e.visible:e.open),m=h=>{a("update:visible",h),a("visibleChange",h),a("update:open",h),a("openChange",h)};return()=>{var h,s;const{arrow:y,trigger:C,disabled:w,overlayClassName:T}=e,x=(h=n.default)===null||h===void 0?void 0:h.call(n)[0],c=Kt(x,L({class:we((s=x==null?void 0:x.props)===null||s===void 0?void 0:s.class,{[`${l.value}-rtl`]:o.value==="rtl"},`${l.value}-trigger`)},w?{disabled:w}:{})),d=we(T,p.value,{[`${l.value}-rtl`]:o.value==="rtl"}),A=w?[]:C;let B;A&&A.includes("contextmenu")&&(B=!0);const O=Of({arrowPointAtCenter:typeof y=="object"&&y.pointAtCenter,autoAdjustOverflow:!0}),_=Et(L(L(L({},e),r),{visible:v.value,builtinPlacements:O,overlayClassName:d,arrow:!!y,alignPoint:B,prefixCls:l.value,getPopupContainer:f==null?void 0:f.value,transitionName:S.value,trigger:A,onVisibleChange:m,placement:g.value}),["overlay","onUpdate:visible"]);return u(P(c0,_,{default:()=>[c],overlay:b}))}}});An.Button=aa;var m0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var C0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae.checked,()=>{l.value=e.checked}),a({focus(){var p;(p=i.value)===null||p===void 0||p.focus()},blur(){var p;(p=i.value)===null||p===void 0||p.blur()}});const o=Ee(),f=p=>{if(e.disabled)return;e.checked===void 0&&(l.value=p.target.checked),p.shiftKey=o.value;const S={target:L(L({},e),{checked:p.target.checked}),stopPropagation(){p.stopPropagation()},preventDefault(){p.preventDefault()},nativeEvent:p};e.checked!==void 0&&(i.value.checked=!!e.checked),r("change",S),o.value=!1},u=p=>{r("click",p),o.value=p.shiftKey};return()=>{const{prefixCls:p,name:S,id:b,type:g,disabled:v,readonly:m,tabindex:h,autofocus:s,value:y,required:C}=e,w=C0(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:T,onFocus:x,onBlur:c,onKeydown:d,onKeypress:A,onKeyup:B}=n,O=L(L({},w),n),_=Object.keys(O).reduce((V,q)=>((q.startsWith("data-")||q.startsWith("aria-")||q==="role")&&(V[q]=O[q]),V),{}),k=we(p,T,{[`${p}-checked`]:l.value,[`${p}-disabled`]:v}),M=L(L({name:S,id:b,type:g,readonly:m,disabled:v,tabindex:h,class:`${p}-input`,checked:!!l.value,autofocus:s,value:y},_),{onChange:f,onClick:u,onFocus:x,onBlur:c,onKeydown:d,onKeypress:A,onKeyup:B,required:C});return P("span",{class:k},[P("input",ie({ref:i},M),null),P("span",{class:`${p}-inner`},null)])}}}),$c=Symbol("radioGroupContextKey"),S0=e=>{_t($c,e)},E0=()=>Tt($c,void 0),Rc=Symbol("radioOptionTypeContextKey"),w0=e=>{_t(Rc,e)},I0=()=>Tt(Rc,void 0),T0=new Wt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),A0=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:L(L({},$t(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},B0=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:a,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:o,motionEaseInOutCirc:f,radioButtonBg:u,colorBorder:p,lineWidth:S,radioDotSize:b,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:m,radioDotDisabledColor:h,lineType:s,radioDotDisabledSize:y,wireframe:C,colorWhite:w}=e,T=`${t}-inner`;return{[`${t}-wrapper`]:L(L({},$t(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${S}px ${s} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:T0,animationDuration:l,animationTimingFunction:o,animationFillMode:"both",content:'""'},[t]:L(L({},$t(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, + &:hover ${T}`]:{borderColor:r},[`${t}-input:focus-visible + ${T}`]:L({},Ln(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:a,height:a,marginBlockStart:a/-2,marginInlineStart:a/-2,backgroundColor:C?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:a,transform:"scale(0)",opacity:0,transition:`all ${l} ${f}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:a,height:a,backgroundColor:u,borderColor:p,borderStyle:"solid",borderWidth:S,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[T]:{borderColor:r,backgroundColor:C?u:r,"&::after":{transform:`scale(${b/a})`,opacity:1,transition:`all ${l} ${f}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[T]:{backgroundColor:g,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[T]:{"&::after":{transform:`scale(${y/a})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},$0=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:l,colorBorder:i,motionDurationSlow:o,motionDurationMid:f,radioButtonPaddingHorizontal:u,fontSize:p,radioButtonBg:S,fontSizeLG:b,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:h,borderRadiusSM:s,borderRadiusLG:y,radioCheckedColor:C,radioButtonCheckedBg:w,radioButtonHoverColor:T,radioButtonActiveColor:x,radioSolidCheckedColor:c,colorTextDisabled:d,colorBgContainerDisabled:A,radioDisabledButtonCheckedColor:B,radioDisabledButtonCheckedBg:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:p,lineHeight:`${n-a*2}px`,background:S,border:`${a}px ${l} ${i}`,borderBlockStartWidth:a+.02,borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${f}`,`background ${f}`,`border-color ${f}`,`box-shadow ${f}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-a,insetInlineStart:-a,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${o}`,content:'""'}},"&:first-child":{borderInlineStart:`${a}px ${l} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:g,fontSize:b,lineHeight:`${g-a*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:m-a,paddingBlock:0,lineHeight:`${v-a*2}px`,"&:first-child":{borderStartStartRadius:s,borderEndStartRadius:s},"&:last-child":{borderStartEndRadius:s,borderEndEndRadius:s}},"&:hover":{position:"relative",color:C},"&:has(:focus-visible)":L({},Ln(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:C,background:w,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:c,background:C,borderColor:C,"&:hover":{color:c,background:T,borderColor:T},"&:active":{color:c,background:x,borderColor:x}},"&-disabled":{color:d,backgroundColor:A,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:d,backgroundColor:A,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:B,backgroundColor:O,borderColor:i,boxShadow:"none"}}}},_c=Zt("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:a,colorBgContainer:l,fontSizeLG:i,controlOutline:o,colorPrimaryHover:f,colorPrimaryActive:u,colorText:p,colorPrimary:S,marginXS:b,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:m}=e,h=`0 0 0 ${g}px ${o}`,s=h,y=i,C=4,w=y-C*2,T=m?w:y-(C+n)*2,x=S,c=p,d=f,A=u,B=t-n,k=xt(e,{radioFocusShadow:h,radioButtonFocusShadow:s,radioSize:y,radioDotSize:T,radioDotDisabledSize:w,radioCheckedColor:x,radioDotDisabledColor:a,radioSolidCheckedColor:v,radioButtonBg:l,radioButtonCheckedBg:l,radioButtonColor:c,radioButtonHoverColor:d,radioButtonActiveColor:A,radioButtonPaddingHorizontal:B,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:a,radioWrapperMarginRight:b});return[A0(k),B0(k),$0(k)]});var R0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({prefixCls:String,checked:ze(),disabled:ze(),isGroup:ze(),value:ae.any,name:String,id:String,autofocus:ze(),onChange:je(),onFocus:je(),onBlur:je(),onClick:je(),"onUpdate:checked":je(),"onUpdate:value":je()}),Vt=Be({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Oc(),setup(e,t){let{emit:n,expose:r,slots:a,attrs:l}=t;const i=Vn(),o=Sn.useInject(),f=I0(),u=E0(),p=tr(),S=H(()=>{var d;return(d=m.value)!==null&&d!==void 0?d:p.value}),b=Ee(),{prefixCls:g,direction:v,disabled:m}=vt("radio",e),h=H(()=>(u==null?void 0:u.optionType.value)==="button"||f==="button"?`${g.value}-button`:g.value),s=tr(),[y,C]=_c(g);r({focus:()=>{b.value.focus()},blur:()=>{b.value.blur()}});const x=d=>{const A=d.target.checked;n("update:checked",A),n("update:value",A),n("change",d),i.onFieldChange()},c=d=>{n("change",d),u&&u.onChange&&u.onChange(d)};return()=>{var d;const A=u,{prefixCls:B,id:O=i.id.value}=e,_=R0(e,["prefixCls","id"]),k=L(L({prefixCls:h.value,id:O},Et(_,["onUpdate:checked","onUpdate:value"])),{disabled:(d=m.value)!==null&&d!==void 0?d:s.value});A?(k.name=A.name.value,k.onChange=c,k.checked=e.value===A.value.value,k.disabled=S.value||A.disabled.value):k.onChange=x;const M=we({[`${h.value}-wrapper`]:!0,[`${h.value}-wrapper-checked`]:k.checked,[`${h.value}-wrapper-disabled`]:k.disabled,[`${h.value}-wrapper-rtl`]:v.value==="rtl",[`${h.value}-wrapper-in-form-item`]:o.isFormItemInput},l.class,C.value);return y(P("label",ie(ie({},l),{},{class:M}),[P(Bc,ie(ie({},k),{},{type:"radio",ref:b}),null),a.default&&P("span",null,[a.default()])]))}}}),_0=()=>({prefixCls:String,value:ae.any,size:dt(),options:Dt(),disabled:ze(),name:String,buttonStyle:dt("outline"),id:String,optionType:dt("default"),onChange:je(),"onUpdate:value":je()}),O0=Be({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:_0(),setup(e,t){let{slots:n,emit:r,attrs:a}=t;const l=Vn(),{prefixCls:i,direction:o,size:f}=vt("radio",e),[u,p]=_c(i),S=Ee(e.value),b=Ee(!1);return ke(()=>e.value,v=>{S.value=v,b.value=!1}),S0({onChange:v=>{const m=S.value,{value:h}=v.target;"value"in e||(S.value=h),!b.value&&h!==m&&(b.value=!0,r("update:value",h),r("change",v),l.onFieldChange()),St(()=>{b.value=!1})},value:S,disabled:H(()=>e.disabled),name:H(()=>e.name),optionType:H(()=>e.optionType)}),()=>{var v;const{options:m,buttonStyle:h,id:s=l.id.value}=e,y=`${i.value}-group`,C=we(y,`${y}-${h}`,{[`${y}-${f.value}`]:f.value,[`${y}-rtl`]:o.value==="rtl"},a.class,p.value);let w=null;return m&&m.length>0?w=m.map(T=>{if(typeof T=="string"||typeof T=="number")return P(Vt,{key:T,prefixCls:i.value,disabled:e.disabled,value:T,checked:S.value===T},{default:()=>[T]});const{value:x,disabled:c,label:d}=T;return P(Vt,{key:`radio-group-value-options-${x}`,prefixCls:i.value,disabled:c||e.disabled,value:x,checked:S.value===x},{default:()=>[d]})}):w=(v=n.default)===null||v===void 0?void 0:v.call(n),u(P("div",ie(ie({},a),{},{class:C,id:s}),[w]))}}}),N0=Be({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Oc(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:a}=vt("radio",e);return w0("button"),()=>{var l;return P(Vt,ie(ie(ie({},r),e),{},{prefixCls:a.value}),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}}});Vt.Group=O0;Vt.Button=N0;Vt.install=function(e){return e.component(Vt.name,Vt),e.component(Vt.Group.name,Vt.Group),e.component(Vt.Button.name,Vt.Button),e};const P0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Vi=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),li=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),D0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":L({},Vi(xt(e,{inputBorderHoverColor:e.colorBorder})))}),Nc=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:a,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:r,borderRadius:a}},zi=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Pc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:a,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:o,colorWarningBorderHover:f}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:o},"&:focus, &-focused":L({},li(xt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:a,"&:hover":{borderColor:f},"&:focus, &-focused":L({},li(xt(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:i}))),[`${n}-prefix`]:{color:a}}}},Hi=e=>L(L({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},P0(e.colorTextPlaceholder)),{"&:hover":L({},Vi(e)),"&:focus, &-focused":L({},li(e)),"&-disabled, &[disabled]":L({},D0(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":L({},Nc(e)),"&-sm":L({},zi(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),k0=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:L({},Nc(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:L({},zi(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:L(L({display:"block"},nc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},L0=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,l=(n-r*2-16)/2;return{[t]:L(L(L(L({},$t(e)),Hi(e)),Pc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}}})}},F0=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},K0=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:l,colorIconHover:i,iconCls:o}=e;return{[`${t}-affix-wrapper`]:L(L(L(L(L({},Hi(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:L(L({},Vi(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),F0(e)),{[`${o}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),Pc(e,`${t}-affix-wrapper`))}},M0=e=>{const{componentCls:t,colorError:n,colorSuccess:r,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-group`]:L(L(L({},$t(e)),k0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:a}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},U0=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Dc(e){return xt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const V0=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,a=`${t}-textarea`;return{[a]:{position:"relative",[`${a}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${a}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},ji=Zt("Input",e=>{const t=Dc(e);return[L0(t),V0(t),K0(t),M0(t),U0(t),ec(t)]}),z0=()=>{const e=Ee(new Map),t=n=>r=>{e.value.set(n,r)};return sc(()=>{e.value=new Map}),[t,e]},kc=Symbol("TreeContextKey"),H0=Be({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return _t(kc,H(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Wi=()=>Tt(kc,H(()=>({}))),Lc=Symbol("KeysStateKey"),j0=e=>{_t(Lc,e)},Fc=()=>Tt(Lc,{expandedKeys:ye([]),selectedKeys:ye([]),loadedKeys:ye([]),loadingKeys:ye([]),checkedKeys:ye([]),halfCheckedKeys:ye([]),expandedKeysSet:H(()=>new Set),selectedKeysSet:H(()=>new Set),loadedKeysSet:H(()=>new Set),loadingKeysSet:H(()=>new Set),checkedKeysSet:H(()=>new Set),halfCheckedKeysSet:H(()=>new Set),flattenNodes:ye([])}),W0=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:a}=e;const l=`${t}-indent-unit`,i=[];for(let o=0;o({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:ae.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:ae.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:ae.any,switcherIcon:ae.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var G0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a"`v-slot:"+le+"` ")}instead`);const l=ye(!1),i=Wi(),{expandedKeysSet:o,selectedKeysSet:f,loadedKeysSet:u,loadingKeysSet:p,checkedKeysSet:S,halfCheckedKeysSet:b}=Fc(),{dragOverNodeKey:g,dropPosition:v,keyEntities:m}=i.value,h=H(()=>zr(e.eventKey,{expandedKeysSet:o.value,selectedKeysSet:f.value,loadedKeysSet:u.value,loadingKeysSet:p.value,checkedKeysSet:S.value,halfCheckedKeysSet:b.value,dragOverNodeKey:g,dropPosition:v,keyEntities:m})),s=rn(()=>h.value.expanded),y=rn(()=>h.value.selected),C=rn(()=>h.value.checked),w=rn(()=>h.value.loaded),T=rn(()=>h.value.loading),x=rn(()=>h.value.halfChecked),c=rn(()=>h.value.dragOver),d=rn(()=>h.value.dragOverGapTop),A=rn(()=>h.value.dragOverGapBottom),B=rn(()=>h.value.pos),O=ye(),_=H(()=>{const{eventKey:le}=e,{keyEntities:te}=i.value,{children:ue}=te[le]||{};return!!(ue||[]).length}),k=H(()=>{const{isLeaf:le}=e,{loadData:te}=i.value,ue=_.value;return le===!1?!1:le||!te&&!ue||te&&w.value&&!ue}),M=H(()=>k.value?null:s.value?jl:Wl),V=H(()=>{const{disabled:le}=e,{disabled:te}=i.value;return!!(te||le)}),q=H(()=>{const{checkable:le}=e,{checkable:te}=i.value;return!te||le===!1?!1:te}),Q=H(()=>{const{selectable:le}=e,{selectable:te}=i.value;return typeof le=="boolean"?le:te}),X=H(()=>{const{data:le,active:te,checkable:ue,disableCheckbox:Ae,disabled:De,selectable:Le}=e;return L(L({active:te,checkable:ue,disableCheckbox:Ae,disabled:De,selectable:Le},le),{dataRef:le,data:le,isLeaf:k.value,checked:C.value,expanded:s.value,loading:T.value,selected:y.value,halfChecked:x.value})}),K=Er(),j=H(()=>{const{eventKey:le}=e,{keyEntities:te}=i.value,{parent:ue}=te[le]||{};return L(L({},Hr(L({},e,h.value))),{parent:ue})}),Z=Ht({eventData:j,eventKey:H(()=>e.eventKey),selectHandle:O,pos:B,key:K.vnode.key});a(Z);const G=le=>{const{onNodeDoubleClick:te}=i.value;te(le,j.value)},se=le=>{if(V.value)return;const{onNodeSelect:te}=i.value;le.preventDefault(),te(le,j.value)},J=le=>{if(V.value)return;const{disableCheckbox:te}=e,{onNodeCheck:ue}=i.value;if(!q.value||te)return;le.preventDefault();const Ae=!C.value;ue(le,j.value,Ae)},he=le=>{const{onNodeClick:te}=i.value;te(le,j.value),Q.value?se(le):J(le)},re=le=>{const{onNodeMouseEnter:te}=i.value;te(le,j.value)},_e=le=>{const{onNodeMouseLeave:te}=i.value;te(le,j.value)},be=le=>{const{onNodeContextMenu:te}=i.value;te(le,j.value)},I=le=>{const{onNodeDragStart:te}=i.value;le.stopPropagation(),l.value=!0,te(le,Z);try{le.dataTransfer.setData("text/plain","")}catch{}},R=le=>{const{onNodeDragEnter:te}=i.value;le.preventDefault(),le.stopPropagation(),te(le,Z)},$=le=>{const{onNodeDragOver:te}=i.value;le.preventDefault(),le.stopPropagation(),te(le,Z)},E=le=>{const{onNodeDragLeave:te}=i.value;le.stopPropagation(),te(le,Z)},N=le=>{const{onNodeDragEnd:te}=i.value;le.stopPropagation(),l.value=!1,te(le,Z)},W=le=>{const{onNodeDrop:te}=i.value;le.preventDefault(),le.stopPropagation(),l.value=!1,te(le,Z)},z=le=>{const{onNodeExpand:te}=i.value;T.value||te(le,j.value)},Y=()=>{const{data:le}=e,{draggable:te}=i.value;return!!(te&&(!te.nodeDraggable||te.nodeDraggable(le)))},de=()=>{const{draggable:le,prefixCls:te}=i.value;return le&&(le!=null&&le.icon)?P("span",{class:`${te}-draggable-icon`},[le.icon]):null},oe=()=>{var le,te,ue;const{switcherIcon:Ae=r.switcherIcon||((le=i.value.slots)===null||le===void 0?void 0:le[(ue=(te=e.data)===null||te===void 0?void 0:te.slots)===null||ue===void 0?void 0:ue.switcherIcon])}=e,{switcherIcon:De}=i.value,Le=Ae||De;return typeof Le=="function"?Le(X.value):Le},ee=()=>{const{loadData:le,onNodeLoad:te}=i.value;T.value||le&&s.value&&!k.value&&!_.value&&!w.value&&te(j.value)};gt(()=>{ee()}),Sr(()=>{ee()});const pe=()=>{const{prefixCls:le}=i.value,te=oe();if(k.value)return te!==!1?P("span",{class:we(`${le}-switcher`,`${le}-switcher-noop`)},[te]):null;const ue=we(`${le}-switcher`,`${le}-switcher_${s.value?jl:Wl}`);return te!==!1?P("span",{onClick:z,class:ue},[te]):null},Te=()=>{var le,te;const{disableCheckbox:ue}=e,{prefixCls:Ae}=i.value,De=V.value;return q.value?P("span",{class:we(`${Ae}-checkbox`,C.value&&`${Ae}-checkbox-checked`,!C.value&&x.value&&`${Ae}-checkbox-indeterminate`,(De||ue)&&`${Ae}-checkbox-disabled`),onClick:J},[(te=(le=i.value).customCheckable)===null||te===void 0?void 0:te.call(le)]):null},Ie=()=>{const{prefixCls:le}=i.value;return P("span",{class:we(`${le}-iconEle`,`${le}-icon__${M.value||"docu"}`,T.value&&`${le}-icon_loading`)},null)},xe=()=>{const{disabled:le,eventKey:te}=e,{draggable:ue,dropLevelOffset:Ae,dropPosition:De,prefixCls:Le,indent:ce,dropIndicatorRender:ge,dragOverNodeKey:ve,direction:Se}=i.value;return!le&&ue!==!1&&ve===te?ge({dropPosition:De,dropLevelOffset:Ae,indent:ce,prefixCls:Le,direction:Se}):null},Fe=()=>{var le,te,ue,Ae,De,Le;const{icon:ce=r.icon,data:ge}=e,ve=r.title||((le=i.value.slots)===null||le===void 0?void 0:le[(ue=(te=e.data)===null||te===void 0?void 0:te.slots)===null||ue===void 0?void 0:ue.title])||((Ae=i.value.slots)===null||Ae===void 0?void 0:Ae.title)||e.title,{prefixCls:Se,showIcon:Oe,icon:Pe,loadData:$e}=i.value,Ke=V.value,He=`${Se}-node-content-wrapper`;let Ue;if(Oe){const ut=ce||((De=i.value.slots)===null||De===void 0?void 0:De[(Le=ge==null?void 0:ge.slots)===null||Le===void 0?void 0:Le.icon])||Pe;Ue=ut?P("span",{class:we(`${Se}-iconEle`,`${Se}-icon__customize`)},[typeof ut=="function"?ut(X.value):ut]):Ie()}else $e&&T.value&&(Ue=Ie());let Ve;typeof ve=="function"?Ve=ve(X.value):Ve=ve,Ve=Ve===void 0?X0:Ve;const We=P("span",{class:`${Se}-title`},[Ve]);return P("span",{ref:O,title:typeof ve=="string"?ve:"",class:we(`${He}`,`${He}-${M.value||"normal"}`,!Ke&&(y.value||l.value)&&`${Se}-node-selected`),onMouseenter:re,onMouseleave:_e,onContextmenu:be,onClick:he,onDblclick:G},[Ue,We,xe()])};return()=>{const le=L(L({},e),n),{eventKey:te,isLeaf:ue,isStart:Ae,isEnd:De,domRef:Le,active:ce,data:ge,onMousemove:ve,selectable:Se}=le,Oe=G0(le,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:Pe,filterTreeNode:$e,keyEntities:Ke,dropContainerKey:He,dropTargetKey:Ue,draggingNodeKey:Ve}=i.value,We=V.value,ut=rr(Oe,{aria:!0,data:!0}),{level:mt}=Ke[te]||{},Qe=De[De.length-1],Ge=Y(),Ye=!We&&Ge,Ze=Ve===te,tt=Se!==void 0?{"aria-selected":!!Se}:void 0;return P("div",ie(ie({ref:Le,class:we(n.class,`${Pe}-treenode`,{[`${Pe}-treenode-disabled`]:We,[`${Pe}-treenode-switcher-${s.value?"open":"close"}`]:!ue,[`${Pe}-treenode-checkbox-checked`]:C.value,[`${Pe}-treenode-checkbox-indeterminate`]:x.value,[`${Pe}-treenode-selected`]:y.value,[`${Pe}-treenode-loading`]:T.value,[`${Pe}-treenode-active`]:ce,[`${Pe}-treenode-leaf-last`]:Qe,[`${Pe}-treenode-draggable`]:Ye,dragging:Ze,"drop-target":Ue===te,"drop-container":He===te,"drag-over":!We&&c.value,"drag-over-gap-top":!We&&d.value,"drag-over-gap-bottom":!We&&A.value,"filter-node":$e&&$e(j.value)}),style:n.style,draggable:Ye,"aria-grabbed":Ze,onDragstart:Ye?I:void 0,onDragenter:Ge?R:void 0,onDragover:Ge?$:void 0,onDragleave:Ge?E:void 0,onDrop:Ge?W:void 0,onDragend:Ge?N:void 0,onMousemove:ve},tt),ut),[P(W0,{prefixCls:Pe,level:mt,isStart:Ae,isEnd:De},null),de(),pe(),Te(),Fe()])}}});function sn(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function vn(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function qi(e){return e.split("-")}function Uc(e,t){return`${e}-${t}`}function Q0(e){return e&&e.type&&e.type.isTreeNode}function Y0(e,t){const n=[],r=t[e];function a(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:o,children:f}=i;n.push(o),a(f)})}return a(r.children),n}function J0(e){if(e.parent){const t=qi(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Z0(e){const t=qi(e.pos);return Number(t[t.length-1])===0}function ql(e,t,n,r,a,l,i,o,f,u){var p;const{clientX:S,clientY:b}=e,{top:g,height:v}=e.target.getBoundingClientRect(),h=((u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-S)-12)/r;let s=o[n.eventKey];if(bk.key===s.key),O=B<=0?0:B-1,_=i[O].key;s=o[_]}const y=s.key,C=s,w=s.key;let T=0,x=0;if(!f.has(y))for(let B=0;B-1.5?l({dragNode:c,dropNode:d,dropPosition:1})?T=1:A=!1:l({dragNode:c,dropNode:d,dropPosition:0})?T=0:l({dragNode:c,dropNode:d,dropPosition:1})?T=1:A=!1:l({dragNode:c,dropNode:d,dropPosition:1})?T=1:A=!1,{dropPosition:T,dropLevelOffset:x,dropTargetKey:s.key,dropTargetPos:s.pos,dragOverNodeKey:w,dropContainerKey:T===0?null:((p=s.parent)===null||p===void 0?void 0:p.key)||null,dropAllowed:A}}function Gl(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function qa(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function ui(e,t){const n=new Set;function r(a){if(n.has(a))return;const l=t[a];if(!l)return;n.add(a);const{parent:i,node:o}=l;o.disabled||i&&r(i.key)}return(e||[]).forEach(a=>{r(a)}),[...n]}var eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a0&&arguments[0]!==void 0?arguments[0]:[];return Bn(n).map(a=>{var l,i,o,f;if(!Q0(a))return null;const u=a.children||{},p=a.key,S={};for(const[B,O]of Object.entries(a.props))S[ac(B)]=O;const{isLeaf:b,checkable:g,selectable:v,disabled:m,disableCheckbox:h}=S,s={isLeaf:b||b===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:m||m===""||void 0,disableCheckbox:h||h===""||void 0},y=L(L({},S),s),{title:C=(l=u.title)===null||l===void 0?void 0:l.call(u,y),icon:w=(i=u.icon)===null||i===void 0?void 0:i.call(u,y),switcherIcon:T=(o=u.switcherIcon)===null||o===void 0?void 0:o.call(u,y)}=S,x=eg(S,["title","icon","switcherIcon"]),c=(f=u.default)===null||f===void 0?void 0:f.call(u),d=L(L(L({},x),{title:C,icon:w,switcherIcon:T,key:p,isLeaf:b}),s),A=t(c);return A.length&&(d.children=A),d})}return t(e)}function tg(e,t,n){const{_title:r,key:a,children:l}=ya(n),i=new Set(t===!0?[]:t),o=[];function f(u){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((S,b)=>{const g=Uc(p?p.pos:"0",b),v=Tr(S[a],g);let m;for(let s=0;sb[l]:typeof l=="function"&&(p=b=>l(b)):p=(b,g)=>Tr(b[o],g);function S(b,g,v,m){const h=b?b[u]:e,s=b?Uc(v.pos,g):"0",y=b?[...m,b]:[];if(b){const C=p(b,s),w={node:b,index:g,pos:s,key:C,parentPos:v.node?v.pos:null,level:v.level+1,nodes:y};t(w)}h&&h.forEach((C,w)=>{S(C,w,{node:b,pos:s,level:v?v.level+1:-1},y)})}S(null)}function Gi(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:a,childrenPropName:l,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f=a||o,u={},p={};let S={posEntities:u,keyEntities:p};return t&&(S=t(S)||S),ng(e,b=>{const{node:g,index:v,pos:m,key:h,parentPos:s,level:y,nodes:C}=b,w={node:g,nodes:C,index:v,key:h,pos:m,level:y},T=Tr(h,m);u[m]=w,p[T]=w,w.parent=u[s],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,S)},{externalGetKey:f,childrenPropName:l,fieldNames:i}),r&&r(S),S}function zr(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:a,loadingKeysSet:l,checkedKeysSet:i,halfCheckedKeysSet:o,dragOverNodeKey:f,dropPosition:u,keyEntities:p}=t;const S=p[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:a.has(e),loading:l.has(e),checked:i.has(e),halfChecked:o.has(e),pos:String(S?S.pos:""),parent:S.parent,dragOver:f===e&&u===0,dragOverGapTop:f===e&&u===-1,dragOverGapBottom:f===e&&u===1}}function Hr(e){const{data:t,expanded:n,selected:r,checked:a,loaded:l,loading:i,halfChecked:o,dragOver:f,dragOverGapTop:u,dragOverGapBottom:p,pos:S,active:b,eventKey:g}=e,v=L(L({dataRef:t},t),{expanded:n,selected:r,checked:a,loaded:l,loading:i,halfChecked:o,dragOver:f,dragOverGapTop:u,dragOverGapBottom:p,pos:S,active:b,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}function Vc(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function rg(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function ag(e,t,n,r){const a=new Set(e),l=new Set;for(let o=0;o<=n;o+=1)(t.get(o)||new Set).forEach(u=>{const{key:p,node:S,children:b=[]}=u;a.has(p)&&!r(S)&&b.filter(g=>!r(g.node)).forEach(g=>{a.add(g.key)})});const i=new Set;for(let o=n;o>=0;o-=1)(t.get(o)||new Set).forEach(u=>{const{parent:p,node:S}=u;if(r(S)||!u.parent||i.has(u.parent.key))return;if(r(u.parent.node)){i.add(p.key);return}let b=!0,g=!1;(p.children||[]).filter(v=>!r(v.node)).forEach(v=>{let{key:m}=v;const h=a.has(m);b&&!h&&(b=!1),!g&&(h||l.has(m))&&(g=!0)}),b&&a.add(p.key),g&&l.add(p.key),i.add(p.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Vc(l,a))}}function og(e,t,n,r,a){const l=new Set(e);let i=new Set(t);for(let f=0;f<=r;f+=1)(n.get(f)||new Set).forEach(p=>{const{key:S,node:b,children:g=[]}=p;!l.has(S)&&!i.has(S)&&!a(b)&&g.filter(v=>!a(v.node)).forEach(v=>{l.delete(v.key)})});i=new Set;const o=new Set;for(let f=r;f>=0;f-=1)(n.get(f)||new Set).forEach(p=>{const{parent:S,node:b}=p;if(a(b)||!p.parent||o.has(p.parent.key))return;if(a(p.parent.node)){o.add(S.key);return}let g=!0,v=!1;(S.children||[]).filter(m=>!a(m.node)).forEach(m=>{let{key:h}=m;const s=l.has(h);g&&!s&&(g=!1),!v&&(s||i.has(h))&&(v=!0)}),g||l.delete(S.key),v&&i.add(S.key),o.add(S.key)});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(Vc(i,l))}}function Zn(e,t,n,r,a,l){let i;l?i=l:i=rg;const o=new Set(e.filter(u=>!!n[u]));let f;return t===!0?f=ag(o,a,r,i):f=og(o,t.halfCheckedKeys,a,r,i),f}function zc(e){const t=Ee(0),n=ye();return et(()=>{const r=new Map;let a=0;const l=e.value||{};for(const i in l)if(Object.prototype.hasOwnProperty.call(l,i)){const o=l[i],{level:f}=o;let u=r.get(f);u||(u=new Set,r.set(f,u)),u.add(o),a=Math.max(a,f)}t.value=a,n.value=r}),{maxLevel:t,levelEntities:n}}const ig=new Wt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),lg=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:L(L({},$t(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:L(L({},$t(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:L(L({},$t(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:L({},Ln(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:ig,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Hc(e,t){const n=xt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[lg(n)]}const jc=Zt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Hc(n,e)]}),sg=()=>({name:String,prefixCls:String,options:Dt([]),disabled:Boolean,id:String}),ug=()=>L(L({},sg()),{defaultValue:Dt(),value:Dt(),onChange:je(),"onUpdate:value":je()}),cg=()=>({prefixCls:String,defaultChecked:ze(),checked:ze(),disabled:ze(),isGroup:ze(),value:ae.any,name:String,id:String,indeterminate:ze(),type:dt("checkbox"),autofocus:ze(),onChange:je(),"onUpdate:checked":je(),onClick:je(),skipGroup:ze(!1)}),dg=()=>L(L({},cg()),{indeterminate:ze(!1)}),Wc=Symbol("CheckboxGroupContext");var Xl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(v==null?void 0:v.disabled.value)||p.value);et(()=>{!e.skipGroup&&v&&v.registerValue(m,e.value)}),Rt(()=>{v&&v.cancelValue(m)}),gt(()=>{oc(!!(e.checked!==void 0||v||e.value===void 0))});const s=T=>{const x=T.target.checked;n("update:checked",x),n("change",T),i.onFieldChange()},y=Ee();return l({focus:()=>{var T;(T=y.value)===null||T===void 0||T.focus()},blur:()=>{var T;(T=y.value)===null||T===void 0||T.blur()}}),()=>{var T;const x=xr((T=a.default)===null||T===void 0?void 0:T.call(a)),{indeterminate:c,skipGroup:d,id:A=i.id.value}=e,B=Xl(e,["indeterminate","skipGroup","id"]),{onMouseenter:O,onMouseleave:_,onInput:k,class:M,style:V}=r,q=Xl(r,["onMouseenter","onMouseleave","onInput","class","style"]),Q=L(L(L(L({},B),{id:A,prefixCls:f.value}),q),{disabled:h.value});v&&!d?(Q.onChange=function(){for(var Z=arguments.length,G=new Array(Z),se=0;se`${o.value}-group`),[p,S]=jc(u),b=Ee((e.value===void 0?e.defaultValue:e.value)||[]);ke(()=>e.value,()=>{b.value=e.value||[]});const g=H(()=>e.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),v=Ee(Symbol()),m=Ee(new Map),h=w=>{m.value.delete(w),v.value=Symbol()},s=(w,T)=>{m.value.set(w,T),v.value=Symbol()},y=Ee(new Map);return ke(v,()=>{const w=new Map;for(const T of m.value.values())w.set(T,!0);y.value=w}),_t(Wc,{cancelValue:h,registerValue:s,toggleOption:w=>{const T=b.value.indexOf(w.value),x=[...b.value];T===-1?x.push(w.value):x.splice(T,1),e.value===void 0&&(b.value=x);const c=x.filter(d=>y.value.has(d)).sort((d,A)=>{const B=g.value.findIndex(_=>_.value===d),O=g.value.findIndex(_=>_.value===A);return B-O});a("update:value",c),a("change",c),i.onFieldChange()},mergedValue:b,name:H(()=>e.name),disabled:H(()=>e.disabled)}),l({mergedValue:b}),()=>{var w;const{id:T=i.id.value}=e;let x=null;return g.value&&g.value.length>0&&(x=g.value.map(c=>{var d;return P(xn,{prefixCls:o.value,key:c.value.toString(),disabled:"disabled"in c?c.disabled:e.disabled,indeterminate:c.indeterminate,value:c.value,checked:b.value.indexOf(c.value)!==-1,onChange:c.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(d=n.label)===null||d===void 0?void 0:d.call(n,c):c.label]})})),p(P("div",ie(ie({},r),{},{class:[u.value,{[`${u.value}-rtl`]:f.value==="rtl"},r.class,S.value],id:T}),[x||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});xn.Group=di;xn.install=function(e){return e.component(xn.name,xn),e.component(di.name,di),e};const kr=(e,t,n)=>{const r=Nf(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},fg=e=>Pf(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:l,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:l,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),pg=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a}=e,l=r-n,i=t-n;return{[a]:L(L({},$t(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${a}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},qc=Zt("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:a}=e,l=Math.round(t*n),i=e.fontSizeSM,o=l-r*2,f=e.colorFillAlter,u=e.colorText,p=xt(e,{tagFontSize:i,tagLineHeight:o,tagDefaultBg:f,tagDefaultColor:u,tagIconSize:a-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[pg(p),fg(p),kr(p,"success","Success"),kr(p,"processing","Info"),kr(p,"error","Error"),kr(p,"warning","Warning")]}),hg=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),fi=Be({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:hg(),setup(e,t){let{slots:n,emit:r,attrs:a}=t;const{prefixCls:l}=vt("tag",e),[i,o]=qc(l),f=p=>{const{checked:S}=e;r("update:checked",!S),r("change",!S),r("click",p)},u=H(()=>we(l.value,o.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:e.checked}));return()=>{var p;return i(P("span",ie(ie({},a),{},{class:[u.value,a.class],onClick:f}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}}),gg=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:ae.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:ea(),"onUpdate:visible":Function,icon:ae.any,bordered:{type:Boolean,default:!0}}),hr=Be({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:gg(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:a}=t;const{prefixCls:l,direction:i}=vt("tag",e),[o,f]=qc(l),u=ye(!0);et(()=>{e.visible!==void 0&&(u.value=e.visible)});const p=v=>{v.stopPropagation(),r("update:visible",!1),r("close",v),!v.defaultPrevented&&e.visible===void 0&&(u.value=!1)},S=H(()=>kf(e.color)||Lf(e.color)),b=H(()=>we(l.value,f.value,{[`${l.value}-${e.color}`]:S.value,[`${l.value}-has-color`]:e.color&&!S.value,[`${l.value}-hidden`]:!u.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-borderless`]:!e.bordered})),g=v=>{r("click",v)};return()=>{var v,m,h;const{icon:s=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:y,closeIcon:C=(m=n.closeIcon)===null||m===void 0?void 0:m.call(n),closable:w=!1}=e,T=()=>w?C?P("span",{class:`${l.value}-close-icon`,onClick:p},[C]):P(pa,{class:`${l.value}-close-icon`,onClick:p},null):null,x={backgroundColor:y&&!S.value?y:void 0},c=s||null,d=(h=n.default)===null||h===void 0?void 0:h.call(n),A=c?P(It,null,[c,P("span",null,[d])]):d,B=e.onClick!==void 0,O=P("span",ie(ie({},a),{},{onClick:g,class:[b.value,a.class],style:[x,a.style]}),[A,T()]);return o(B?P(Df,null,{default:()=>[O]}):O)}}});hr.CheckableTag=fi;hr.install=function(e){return e.component(hr.name,hr),e.component(fi.name,fi),e};An.Button=aa;An.install=function(e){return e.component(An.name,An),e.component(aa.name,aa),e};const Gc=()=>({prefixCls:String,width:ae.oneOfType([ae.string,ae.number]),height:ae.oneOfType([ae.string,ae.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:Bt(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Dt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:je(),maskMotion:Bt()}),vg=()=>L(L({},Gc()),{forceRender:{type:Boolean,default:void 0},getContainer:ae.oneOfType([ae.string,ae.func,ae.object,ae.looseBool])}),mg=()=>L(L({},Gc()),{getContainer:Function,getOpenCount:Function,scrollLocker:ae.any,inline:Boolean});function yg(e){return Array.isArray(e)?e:[e]}const bg={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(bg).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Cg=!(typeof window<"u"&&window.document&&window.document.createElement);var xg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{St(()=>{var s;const{open:y,getContainer:C,showMask:w,autofocus:T}=e,x=C==null?void 0:C();v(e),y&&(x&&(x.parentNode,document.body),St(()=>{T&&p()}),w&&((s=e.scrollLocker)===null||s===void 0||s.lock()))})}),ke(()=>e.level,()=>{v(e)},{flush:"post"}),ke(()=>e.open,()=>{const{open:s,getContainer:y,scrollLocker:C,showMask:w,autofocus:T}=e,x=y==null?void 0:y();x&&(x.parentNode,document.body),s?(T&&p(),w&&(C==null||C.lock())):C==null||C.unLock()},{flush:"post"}),ar(()=>{var s;const{open:y}=e;y&&(document.body.style.touchAction=""),(s=e.scrollLocker)===null||s===void 0||s.unLock()}),ke(()=>e.placement,s=>{s&&(f.value=null)});const p=()=>{var s,y;(y=(s=l.value)===null||s===void 0?void 0:s.focus)===null||y===void 0||y.call(s)},S=s=>{n("close",s)},b=s=>{s.keyCode===Me.ESC&&(s.stopPropagation(),S(s))},g=()=>{const{open:s,afterVisibleChange:y}=e;y&&y(!!s)},v=s=>{let{level:y,getContainer:C}=s;if(Cg)return;const w=C==null?void 0:C(),T=w?w.parentNode:null;u=[],y==="all"?(T?Array.prototype.slice.call(T.children):[]).forEach(c=>{c.nodeName!=="SCRIPT"&&c.nodeName!=="STYLE"&&c.nodeName!=="LINK"&&c!==w&&u.push(c)}):y&&yg(y).forEach(x=>{document.querySelectorAll(x).forEach(c=>{u.push(c)})})},m=s=>{n("handleClick",s)},h=ye(!1);return ke(l,()=>{St(()=>{h.value=!0})}),()=>{var s,y;const{width:C,height:w,open:T,prefixCls:x,placement:c,level:d,levelMove:A,ease:B,duration:O,getContainer:_,onChange:k,afterVisibleChange:M,showMask:V,maskClosable:q,maskStyle:Q,keyboard:X,getOpenCount:K,scrollLocker:j,contentWrapperStyle:Z,style:G,class:se,rootClassName:J,rootStyle:he,maskMotion:re,motion:_e,inline:be}=e,I=xg(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),R=T&&h.value,$=we(x,{[`${x}-${c}`]:!0,[`${x}-open`]:R,[`${x}-inline`]:be,"no-mask":!V,[J]:!0}),E=typeof _e=="function"?_e(c):_e;return P("div",ie(ie({},Et(I,["autofocus"])),{},{tabindex:-1,class:$,style:he,ref:l,onKeydown:R&&X?b:void 0}),[P(ti,re,{default:()=>[V&&ni(P("div",{class:`${x}-mask`,onClick:q?S:void 0,style:Q,ref:i},null),[[ri,R]])]}),P(ti,ie(ie({},E),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[ni(P("div",{class:`${x}-content-wrapper`,style:[Z],ref:a},[P("div",{class:[`${x}-content`,se],style:G,ref:f},[(s=r.default)===null||s===void 0?void 0:s.call(r)]),r.handler?P("div",{onClick:m,ref:o},[(y=r.handler)===null||y===void 0?void 0:y.call(r)]):null]),[[ri,R]])]})])}}});var Yl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:r}=t;const a=Ee(null),l=o=>{n("handleClick",o)},i=o=>{n("close",o)};return()=>{const{getContainer:o,wrapperClassName:f,rootClassName:u,rootStyle:p,forceRender:S}=e,b=Yl(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!o)return P(Ql,ie(ie({},b),{},{rootClassName:u,rootStyle:p,open:e.open,onClose:i,onHandleClick:l,inline:!0}),r);const v=!!r.handler||S;return(v||e.open||a.value)&&(g=P(Ff,{autoLock:!0,visible:e.open,forceRender:v,getContainer:o,wrapperClassName:f},{default:m=>{var{visible:h,afterClose:s}=m,y=Yl(m,["visible","afterClose"]);return P(Ql,ie(ie(ie({ref:a},b),y),{},{rootClassName:u,rootStyle:p,open:h!==void 0?h:e.open,afterVisibleChange:s!==void 0?s:e.afterVisibleChange,onClose:i,onHandleClick:l}),r)}})),g}}}),Eg=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},wg=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:a,motionDurationSlow:l,motionDurationMid:i,padding:o,paddingLG:f,fontSizeLG:u,lineHeightLG:p,lineWidth:S,lineType:b,colorSplit:g,marginSM:v,colorIcon:m,colorIconHover:h,colorText:s,fontWeightStrong:y,drawerFooterPaddingVertical:C,drawerFooterPaddingHorizontal:w}=e,T=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:a,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:n,transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${o}px ${f}px`,fontSize:u,lineHeight:p,borderBottom:`${S}px ${b} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:m,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:s,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:p},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:f,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${C}px ${w}px`,borderTop:`${S}px ${b} ${g}`},"&-rtl":{direction:"rtl"}}}},Ig=Zt("Drawer",e=>{const t=xt(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[wg(t),Eg(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Tg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:ae.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:Bt(),rootClassName:String,rootStyle:Bt(),size:{type:String},drawerStyle:Bt(),headerStyle:Bt(),bodyStyle:Bt(),contentWrapperStyle:{type:Object,default:void 0},title:ae.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:ae.oneOfType([ae.string,ae.number]),height:ae.oneOfType([ae.string,ae.number]),zIndex:Number,prefixCls:String,push:ae.oneOfType([ae.looseBool,{type:Object}]),placement:ae.oneOf(Ag),keyboard:{type:Boolean,default:void 0},extra:ae.any,footer:ae.any,footerStyle:Bt(),level:ae.any,levelMove:{type:[Number,Array,Function]},handle:ae.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),$g=Be({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:kt(Bg(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Jl}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:a}=t;const l=ye(!1),i=ye(!1),o=ye(null),f=ye(!1),u=ye(!1),p=H(()=>{var K;return(K=e.open)!==null&&K!==void 0?K:e.visible});ke(p,()=>{p.value?f.value=!0:u.value=!1},{immediate:!0}),ke([p,f],()=>{p.value&&f.value&&(u.value=!0)},{immediate:!0});const S=Tt("parentDrawerOpts",null),{prefixCls:b,getPopupContainer:g,direction:v}=vt("drawer",e),[m,h]=Ig(b),s=H(()=>e.getContainer===void 0&&(g!=null&&g.value)?()=>g.value(document.body):e.getContainer);Xt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),_t("parentDrawerOpts",{setPush:()=>{l.value=!0},setPull:()=>{l.value=!1,St(()=>{w()})}}),gt(()=>{p.value&&S&&S.setPush()}),ar(()=>{S&&S.setPull()}),ke(u,()=>{S&&(u.value?S.setPush():S.setPull())},{flush:"post"});const w=()=>{var K,j;(j=(K=o.value)===null||K===void 0?void 0:K.domFocus)===null||j===void 0||j.call(K)},T=K=>{n("update:visible",!1),n("update:open",!1),n("close",K)},x=K=>{var j;K||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(f.value=!1)),(j=e.afterVisibleChange)===null||j===void 0||j.call(e,K),n("afterVisibleChange",K),n("afterOpenChange",K)},c=H(()=>{const{push:K,placement:j}=e;let Z;return typeof K=="boolean"?Z=K?Jl.distance:0:Z=K.distance,Z=parseFloat(String(Z||0)),j==="left"||j==="right"?`translateX(${j==="left"?Z:-Z}px)`:j==="top"||j==="bottom"?`translateY(${j==="top"?Z:-Z}px)`:null}),d=H(()=>{var K;return(K=e.width)!==null&&K!==void 0?K:e.size==="large"?736:378}),A=H(()=>{var K;return(K=e.height)!==null&&K!==void 0?K:e.size==="large"?736:378}),B=H(()=>{const{mask:K,placement:j}=e;if(!u.value&&!K)return{};const Z={};return j==="left"||j==="right"?Z.width=xl(d.value)?`${d.value}px`:d.value:Z.height=xl(A.value)?`${A.value}px`:A.value,Z}),O=H(()=>{const{zIndex:K,contentWrapperStyle:j}=e,Z=B.value;return[{zIndex:K,transform:l.value?c.value:void 0},L({},j),Z]}),_=K=>{const{closable:j,headerStyle:Z}=e,G=Ur(r,e,"extra"),se=Ur(r,e,"title");return!se&&!j?null:P("div",{class:we(`${K}-header`,{[`${K}-header-close-only`]:j&&!se&&!G}),style:Z},[P("div",{class:`${K}-header-title`},[k(K),se&&P("div",{class:`${K}-title`},[se])]),G&&P("div",{class:`${K}-extra`},[G])])},k=K=>{var j;const{closable:Z}=e,G=r.closeIcon?(j=r.closeIcon)===null||j===void 0?void 0:j.call(r):e.closeIcon;return Z&&P("button",{key:"closer",onClick:T,"aria-label":"Close",class:`${K}-close`},[G===void 0?P(pa,null,null):G])},M=K=>{var j;if(i.value&&!e.forceRender&&!f.value)return null;const{bodyStyle:Z,drawerStyle:G}=e;return P("div",{class:`${K}-wrapper-body`,style:G},[_(K),P("div",{key:"body",class:`${K}-body`,style:Z},[(j=r.default)===null||j===void 0?void 0:j.call(r)]),V(K)])},V=K=>{const j=Ur(r,e,"footer");if(!j)return null;const Z=`${K}-footer`;return P("div",{class:Z,style:e.footerStyle},[j])},q=H(()=>we({"no-mask":!e.mask,[`${b.value}-rtl`]:v.value==="rtl"},e.rootClassName,h.value)),Q=H(()=>Cl(Yo(b.value,"mask-motion"))),X=K=>Cl(Yo(b.value,`panel-motion-${K}`));return()=>{const{width:K,height:j,placement:Z,mask:G,forceRender:se}=e,J=Tg(e,["width","height","placement","mask","forceRender"]),he=L(L(L({},a),Et(J,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:se,onClose:T,afterVisibleChange:x,handler:!1,prefixCls:b.value,open:u.value,showMask:G,placement:Z,ref:o});return m(P(Zo,null,{default:()=>[P(Sg,ie(ie({},he),{},{maskMotion:Q.value,motion:X,width:d.value,height:A.value,getContainer:s.value,rootClassName:q.value,rootStyle:e.rootStyle,contentWrapperStyle:O.value}),{handler:e.handle?()=>e.handle:r.handle,default:()=>M(b.value)})]}))}}}),Rg=Di($g),gr=e=>e!=null&&(Array.isArray(e)?Bn(e).length:!0);function Xi(e){return gr(e.prefix)||gr(e.suffix)||gr(e.allowClear)}function jr(e){return gr(e.addonBefore)||gr(e.addonAfter)}function pi(e){return typeof e>"u"||e===null?"":String(e)}function vr(e,t,n,r){if(!n)return;const a=t;if(t.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});const l=e.cloneNode(!0);a.target=l,a.currentTarget=l,l.value="",n(a);return}if(r!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=e,a.currentTarget=e,e.value=r,n(a);return}n(a)}function Xc(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const _g=()=>({addonBefore:ae.any,addonAfter:ae.any,prefix:ae.any,suffix:ae.any,clearIcon:ae.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),Qc=()=>L(L({},_g()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:ae.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),Yc=()=>L(L({},Qc()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:dt("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Og=Be({name:"BaseInput",inheritAttrs:!1,props:Qc(),setup(e,t){let{slots:n,attrs:r}=t;const a=Ee(),l=o=>{var f;if(!((f=a.value)===null||f===void 0)&&f.contains(o.target)){const{triggerFocus:u}=e;u==null||u()}},i=()=>{var o;const{allowClear:f,value:u,disabled:p,readonly:S,handleReset:b,suffix:g=n.suffix,prefixCls:v}=e;if(!f)return null;const m=!p&&!S&&u,h=`${v}-clear-icon`,s=((o=n.clearIcon)===null||o===void 0?void 0:o.call(n))||"*";return P("span",{onClick:b,onMousedown:y=>y.preventDefault(),class:we({[`${h}-hidden`]:!m,[`${h}-has-suffix`]:!!g},h),role:"button",tabindex:-1},[s])};return()=>{var o,f;const{focused:u,value:p,disabled:S,allowClear:b,readonly:g,hidden:v,prefixCls:m,prefix:h=(o=n.prefix)===null||o===void 0?void 0:o.call(n),suffix:s=(f=n.suffix)===null||f===void 0?void 0:f.call(n),addonAfter:y=n.addonAfter,addonBefore:C=n.addonBefore,inputElement:w,affixWrapperClassName:T,wrapperClassName:x,groupClassName:c}=e;let d=Kt(w,{value:p,hidden:v});if(Xi({prefix:h,suffix:s,allowClear:b})){const A=`${m}-affix-wrapper`,B=we(A,{[`${A}-disabled`]:S,[`${A}-focused`]:u,[`${A}-readonly`]:g,[`${A}-input-with-clear-btn`]:s&&b&&p},!jr({addonAfter:y,addonBefore:C})&&r.class,T),O=(s||b)&&P("span",{class:`${m}-suffix`},[i(),s]);d=P("span",{class:B,style:r.style,hidden:!jr({addonAfter:y,addonBefore:C})&&v,onMousedown:l,ref:a},[h&&P("span",{class:`${m}-prefix`},[h]),Kt(w,{style:null,value:p,hidden:null}),O])}if(jr({addonAfter:y,addonBefore:C})){const A=`${m}-group`,B=`${A}-addon`,O=we(`${m}-wrapper`,A,x),_=we(`${m}-group-wrapper`,r.class,c);return P("span",{class:_,style:r.style,hidden:v},[P("span",{class:O},[C&&P("span",{class:B},[C]),Kt(d,{style:null,hidden:null}),y&&P("span",{class:B},[y])])])}return d}}});var Ng=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae.value,()=>{i.value=e.value}),ke(()=>e.disabled,()=>{e.disabled&&(o.value=!1)});const p=c=>{f.value&&Xc(f.value.input,c)},S=()=>{var c;(c=f.value.input)===null||c===void 0||c.blur()},b=(c,d,A)=>{var B;(B=f.value.input)===null||B===void 0||B.setSelectionRange(c,d,A)},g=()=>{var c;(c=f.value.input)===null||c===void 0||c.select()};a({focus:p,blur:S,input:H(()=>{var c;return(c=f.value.input)===null||c===void 0?void 0:c.input}),stateValue:i,setSelectionRange:b,select:g});const v=c=>{l("change",c)},m=(c,d)=>{i.value!==c&&(e.value===void 0?i.value=c:St(()=>{var A;f.value.input.value!==i.value&&((A=u.value)===null||A===void 0||A.$forceUpdate())}),St(()=>{d&&d()}))},h=c=>{const{value:d}=c.target;if(i.value===d)return;const A=c.target.value;vr(f.value.input,c,v),m(A)},s=c=>{c.keyCode===13&&l("pressEnter",c),l("keydown",c)},y=c=>{o.value=!0,l("focus",c)},C=c=>{o.value=!1,l("blur",c)},w=c=>{vr(f.value.input,c,v),m("",()=>{p()})},T=()=>{var c,d;const{addonBefore:A=n.addonBefore,addonAfter:B=n.addonAfter,disabled:O,valueModifiers:_={},htmlSize:k,autocomplete:M,prefixCls:V,inputClassName:q,prefix:Q=(c=n.prefix)===null||c===void 0?void 0:c.call(n),suffix:X=(d=n.suffix)===null||d===void 0?void 0:d.call(n),allowClear:K,type:j="text"}=e,Z=Et(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),G=L(L(L({},Z),r),{autocomplete:M,onChange:h,onInput:h,onFocus:y,onBlur:C,onKeydown:s,class:we(V,{[`${V}-disabled`]:O},q,!jr({addonAfter:B,addonBefore:A})&&!Xi({prefix:Q,suffix:X,allowClear:K})&&r.class),ref:f,key:"ant-input",size:k,type:j,lazy:e.lazy});return _.lazy&&delete G.onInput,G.autofocus||delete G.autofocus,P(wr,Et(G,["size"]),null)},x=()=>{var c;const{maxlength:d,suffix:A=(c=n.suffix)===null||c===void 0?void 0:c.call(n),showCount:B,prefixCls:O}=e,_=Number(d)>0;if(A||B){const k=[...pi(i.value)].length,M=typeof B=="object"?B.formatter({count:k,maxlength:d}):`${k}${_?` / ${d}`:""}`;return P(It,null,[!!B&&P("span",{class:we(`${O}-show-count-suffix`,{[`${O}-show-count-has-suffix`]:!!A})},[M]),A])}return null};return gt(()=>{}),()=>{const{prefixCls:c,disabled:d}=e,A=Ng(e,["prefixCls","disabled"]);return P(Og,ie(ie(ie({},A),r),{},{ref:u,prefixCls:c,inputElement:T(),handleReset:w,value:pi(i.value),focused:o.value,triggerFocus:p,suffix:x(),disabled:d}),n)}}}),ba=()=>Et(Yc(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),Jc=()=>L(L({},Et(ba(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:ea(),onCompositionend:ea(),valueModifiers:Object});var Dg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ama(f.status,e.status)),{direction:p,prefixCls:S,size:b,autocomplete:g}=vt("input",e),{compactSize:v,compactItemClassnames:m}=tc(S,p),h=H(()=>v.value||b.value),[s,y]=ji(S),C=tr();a({focus:k=>{var M;(M=i.value)===null||M===void 0||M.focus(k)},blur:()=>{var k;(k=i.value)===null||k===void 0||k.blur()},input:i,setSelectionRange:(k,M,V)=>{var q;(q=i.value)===null||q===void 0||q.setSelectionRange(k,M,V)},select:()=>{var k;(k=i.value)===null||k===void 0||k.select()}});const d=Ee([]),A=()=>{d.value.push(setTimeout(()=>{var k,M,V,q;!((k=i.value)===null||k===void 0)&&k.input&&((M=i.value)===null||M===void 0?void 0:M.input.getAttribute("type"))==="password"&&(!((V=i.value)===null||V===void 0)&&V.input.hasAttribute("value"))&&((q=i.value)===null||q===void 0||q.input.removeAttribute("value"))}))};gt(()=>{A()}),sc(()=>{d.value.forEach(k=>clearTimeout(k))}),Rt(()=>{d.value.forEach(k=>clearTimeout(k))});const B=k=>{A(),l("blur",k),o.onFieldBlur()},O=k=>{A(),l("focus",k)},_=k=>{l("update:value",k.target.value),l("change",k),l("input",k),o.onFieldChange()};return()=>{var k,M,V,q,Q,X;const{hasFeedback:K,feedbackIcon:j}=f,{allowClear:Z,bordered:G=!0,prefix:se=(k=n.prefix)===null||k===void 0?void 0:k.call(n),suffix:J=(M=n.suffix)===null||M===void 0?void 0:M.call(n),addonAfter:he=(V=n.addonAfter)===null||V===void 0?void 0:V.call(n),addonBefore:re=(q=n.addonBefore)===null||q===void 0?void 0:q.call(n),id:_e=(Q=o.id)===null||Q===void 0?void 0:Q.value}=e,be=Dg(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),I=(K||J)&&P(It,null,[J,K&&j]),R=S.value,$=Xi({prefix:se,suffix:J})||!!K,E=n.clearIcon||(()=>P(fa,null,null));return s(P(Pg,ie(ie(ie({},r),Et(be,["onUpdate:value","onChange","onInput"])),{},{onChange:_,id:_e,disabled:(X=e.disabled)!==null&&X!==void 0?X:C.value,ref:i,prefixCls:R,autocomplete:g.value,onBlur:B,onFocus:O,prefix:se,suffix:I,allowClear:Z,addonAfter:he&&P(Zo,null,{default:()=>[P(Ml,null,{default:()=>[he]})]}),addonBefore:re&&P(Zo,null,{default:()=>[P(Ml,null,{default:()=>[re]})]}),class:[r.class,m.value],inputClassName:we({[`${R}-sm`]:h.value==="small",[`${R}-lg`]:h.value==="large",[`${R}-rtl`]:p.value==="rtl",[`${R}-borderless`]:!G},!$&&Jn(R,u.value),y.value),affixWrapperClassName:we({[`${R}-affix-wrapper-sm`]:h.value==="small",[`${R}-affix-wrapper-lg`]:h.value==="large",[`${R}-affix-wrapper-rtl`]:p.value==="rtl",[`${R}-affix-wrapper-borderless`]:!G},Jn(`${R}-affix-wrapper`,u.value,K),y.value),wrapperClassName:we({[`${R}-group-rtl`]:p.value==="rtl"},y.value),groupClassName:we({[`${R}-group-wrapper-sm`]:h.value==="small",[`${R}-group-wrapper-lg`]:h.value==="large",[`${R}-group-wrapper-rtl`]:p.value==="rtl"},Jn(`${R}-group-wrapper`,u.value,K),y.value)}),L(L({},n),{clearIcon:E})))}}}),kg=Be({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:a,direction:l,getPrefixCls:i}=vt("input-group",e),o=Sn.useInject();Sn.useProvide(o,{isFormItemInput:!1});const f=H(()=>i("input")),[u,p]=ji(f),S=H(()=>{const b=a.value;return{[`${b}`]:!0,[p.value]:!0,[`${b}-lg`]:e.size==="large",[`${b}-sm`]:e.size==="small",[`${b}-compact`]:e.compact,[`${b}-rtl`]:l.value==="rtl"}});return()=>{var b;return u(P("span",ie(ie({},r),{},{class:we(S.value,r.class)}),[(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});var Lg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var T;(T=i.value)===null||T===void 0||T.focus()},blur:()=>{var T;(T=i.value)===null||T===void 0||T.blur()}});const p=T=>{l("update:value",T.target.value),T&&T.target&&T.type==="click"&&l("search",T.target.value,T),l("change",T)},S=T=>{var x;document.activeElement===((x=i.value)===null||x===void 0?void 0:x.input)&&T.preventDefault()},b=T=>{var x,c;l("search",(c=(x=i.value)===null||x===void 0?void 0:x.input)===null||c===void 0?void 0:c.stateValue,T)},g=T=>{o.value||e.loading||b(T)},v=T=>{o.value=!0,l("compositionstart",T)},m=T=>{o.value=!1,l("compositionend",T)},{prefixCls:h,getPrefixCls:s,direction:y,size:C}=vt("input-search",e),w=H(()=>s("input",e.inputPrefixCls));return()=>{var T,x,c,d;const{disabled:A,loading:B,addonAfter:O=(T=n.addonAfter)===null||T===void 0?void 0:T.call(n),suffix:_=(x=n.suffix)===null||x===void 0?void 0:x.call(n)}=e,k=Lg(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:M=(d=(c=n.enterButton)===null||c===void 0?void 0:c.call(n))!==null&&d!==void 0?d:!1}=e;M=M||M==="";const V=typeof M=="boolean"?P(Ir,null,null):null,q=`${h.value}-button`,Q=Array.isArray(M)?M[0]:M;let X;const K=Q.type&&Lh(Q.type)&&Q.type.__ANT_BUTTON;if(K||Q.tagName==="button")X=Kt(Q,L({onMousedown:S,onClick:b,key:"enterButton"},K?{class:q,size:C.value}:{}),!1);else{const Z=V&&!M;X=P(kn,{class:q,type:M?"primary":void 0,size:C.value,disabled:A,key:"enterButton",onMousedown:S,onClick:b,loading:B,icon:Z?V:null},{default:()=>[Z?null:V||M]})}O&&(X=[X,O]);const j=we(h.value,{[`${h.value}-rtl`]:y.value==="rtl",[`${h.value}-${C.value}`]:!!C.value,[`${h.value}-with-button`]:!!M},r.class);return P(Nt,ie(ie(ie({ref:i},Et(k,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:m,size:C.value,prefixCls:w.value,addonAfter:X,suffix:_,onChange:p,class:j,disabled:A}),n)}}}),Zl=e=>e!=null&&(Array.isArray(e)?Bn(e).length:!0);function Kg(e){return Zl(e.addonBefore)||Zl(e.addonAfter)}const Mg=["text","input"],Ug=Be({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ae.oneOf(Kf("text","input")),value:un(),defaultValue:un(),allowClear:{type:Boolean,default:void 0},element:un(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:un(),prefix:un(),addonBefore:un(),addonAfter:un(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const a=Sn.useInject(),l=o=>{const{value:f,disabled:u,readonly:p,handleReset:S,suffix:b=n.suffix}=e,g=!u&&!p&&f,v=`${o}-clear-icon`;return P(fa,{onClick:S,onMousedown:m=>m.preventDefault(),class:we({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!b},v),role:"button"},null)},i=(o,f)=>{const{value:u,allowClear:p,direction:S,bordered:b,hidden:g,status:v,addonAfter:m=n.addonAfter,addonBefore:h=n.addonBefore,hashId:s}=e,{status:y,hasFeedback:C}=a;if(!p)return Kt(f,{value:u,disabled:e.disabled});const w=we(`${o}-affix-wrapper`,`${o}-affix-wrapper-textarea-with-clear-btn`,Jn(`${o}-affix-wrapper`,ma(y,v),C),{[`${o}-affix-wrapper-rtl`]:S==="rtl",[`${o}-affix-wrapper-borderless`]:!b,[`${r.class}`]:!Kg({addonAfter:m,addonBefore:h})&&r.class},s);return P("span",{class:w,style:r.style,hidden:g},[Kt(f,{style:null,value:u,disabled:e.disabled}),l(o)])};return()=>{var o;const{prefixCls:f,inputType:u,element:p=(o=n.element)===null||o===void 0?void 0:o.call(n)}=e;return u===Mg[0]?i(f,p):null}}}),Vg=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,zg=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ga={};let Jt;function Hg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ga[n])return Ga[n];const r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),f={sizingStyle:zg.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:a};return t&&n&&(Ga[n]=f),f}function jg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Jt||(Jt=document.createElement("textarea"),Jt.setAttribute("tab-index","-1"),Jt.setAttribute("aria-hidden","true"),document.body.appendChild(Jt)),e.getAttribute("wrap")?Jt.setAttribute("wrap",e.getAttribute("wrap")):Jt.removeAttribute("wrap");const{paddingSize:a,borderSize:l,boxSizing:i,sizingStyle:o}=Hg(e,t);Jt.setAttribute("style",`${o};${Vg}`),Jt.value=e.value||e.placeholder||"";let f,u,p,S=Jt.scrollHeight;if(i==="border-box"?S+=l:i==="content-box"&&(S-=a),n!==null||r!==null){Jt.value=" ";const g=Jt.scrollHeight-a;n!==null&&(f=g*n,i==="border-box"&&(f=f+a+l),S=Math.max(f,S)),r!==null&&(u=g*r,i==="border-box"&&(u=u+a+l),p=S>u?"":"hidden",S=Math.min(u,S))}const b={height:`${S}px`,overflowY:p,resize:"none"};return f&&(b.minHeight=`${f}px`),u&&(b.maxHeight=`${u}px`),b}const Xa=0,Qa=1,Ya=2,Wg=Be({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:Jc(),setup(e,t){let{attrs:n,emit:r,expose:a}=t,l,i;const o=Ee(),f=Ee({}),u=Ee(Ya);Rt(()=>{wt.cancel(l),wt.cancel(i)});const p=()=>{try{if(o.value&&document.activeElement===o.value.input){const x=o.value.getSelectionStart(),c=o.value.getSelectionEnd(),d=o.value.getScrollTop();o.value.setSelectionRange(x,c),o.value.setScrollTop(d)}}catch{}},S=Ee(),b=Ee();et(()=>{const x=e.autoSize||e.autosize;x?(S.value=x.minRows,b.value=x.maxRows):(S.value=void 0,b.value=void 0)});const g=H(()=>!!(e.autoSize||e.autosize)),v=()=>{u.value=Xa};ke([()=>e.value,S,b,g],()=>{g.value&&v()},{immediate:!0});const m=Ee();ke([u,o],()=>{if(o.value)if(u.value===Xa)u.value=Qa;else if(u.value===Qa){const x=jg(o.value.input,!1,S.value,b.value);u.value=Ya,m.value=x}else p()},{immediate:!0,flush:"post"});const h=Er(),s=Ee(),y=()=>{wt.cancel(s.value)},C=x=>{u.value===Ya&&(r("resize",x),g.value&&(y(),s.value=wt(()=>{v()})))};Rt(()=>{y()}),a({resizeTextarea:()=>{v()},textArea:H(()=>{var x;return(x=o.value)===null||x===void 0?void 0:x.input}),instance:h}),oc(e.autosize===void 0);const T=()=>{const{prefixCls:x,disabled:c}=e,d=Et(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),A=we(x,n.class,{[`${x}-disabled`]:c}),B=g.value?m.value:null,O=[n.style,f.value,B],_=L(L(L({},d),n),{style:O,class:A});return(u.value===Xa||u.value===Qa)&&O.push({overflowX:"hidden",overflowY:"hidden"}),_.autofocus||delete _.autofocus,_.rows===0&&delete _.rows,P(da,{onResize:C,disabled:!g.value},{default:()=>[P(wr,ie(ie({},_),{},{ref:o,tag:"textarea"}),null)]})};return()=>T()}});function Zc(e,t){return[...e||""].slice(0,t).join("")}function es(e,t,n,r){let a=n;return e?a=Zc(n,r):[...t||""].lengthr&&(a=t),a}const qg=Be({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:Jc(),setup(e,t){let{attrs:n,expose:r,emit:a}=t;var l;const i=Vn(),o=Sn.useInject(),f=H(()=>ma(o.status,e.status)),u=ye((l=e.value)!==null&&l!==void 0?l:e.defaultValue),p=ye(),S=ye(""),{prefixCls:b,size:g,direction:v}=vt("input",e),[m,h]=ji(b),s=tr(),y=H(()=>e.showCount===""||e.showCount||!1),C=H(()=>Number(e.maxlength)>0),w=ye(!1),T=ye(),x=ye(0),c=K=>{w.value=!0,T.value=S.value,x.value=K.currentTarget.selectionStart,a("compositionstart",K)},d=K=>{var j;w.value=!1;let Z=K.currentTarget.value;if(C.value){const G=x.value>=e.maxlength+1||x.value===((j=T.value)===null||j===void 0?void 0:j.length);Z=es(G,T.value,Z,e.maxlength)}Z!==S.value&&(_(Z),vr(K.currentTarget,K,V,Z)),a("compositionend",K)},A=Er();ke(()=>e.value,()=>{var K;"value"in A.vnode.props,u.value=(K=e.value)!==null&&K!==void 0?K:""});const B=K=>{var j;Xc((j=p.value)===null||j===void 0?void 0:j.textArea,K)},O=()=>{var K,j;(j=(K=p.value)===null||K===void 0?void 0:K.textArea)===null||j===void 0||j.blur()},_=(K,j)=>{u.value!==K&&(e.value===void 0?u.value=K:St(()=>{var Z,G,se;p.value.textArea.value!==S.value&&((se=(Z=p.value)===null||Z===void 0?void 0:(G=Z.instance).update)===null||se===void 0||se.call(G))}),St(()=>{j&&j()}))},k=K=>{K.keyCode===13&&a("pressEnter",K),a("keydown",K)},M=K=>{const{onBlur:j}=e;j==null||j(K),i.onFieldBlur()},V=K=>{a("update:value",K.target.value),a("change",K),a("input",K),i.onFieldChange()},q=K=>{vr(p.value.textArea,K,V),_("",()=>{B()})},Q=K=>{let j=K.target.value;if(u.value!==j){if(C.value){const Z=K.target,G=Z.selectionStart>=e.maxlength+1||Z.selectionStart===j.length||!Z.selectionStart;j=es(G,S.value,j,e.maxlength)}vr(K.currentTarget,K,V,j),_(j)}},X=()=>{var K,j;const{class:Z}=n,{bordered:G=!0}=e,se=L(L(L({},Et(e,["allowClear"])),n),{class:[{[`${b.value}-borderless`]:!G,[`${Z}`]:Z&&!y.value,[`${b.value}-sm`]:g.value==="small",[`${b.value}-lg`]:g.value==="large"},Jn(b.value,f.value),h.value],disabled:s.value,showCount:null,prefixCls:b.value,onInput:Q,onChange:Q,onBlur:M,onKeydown:k,onCompositionstart:c,onCompositionend:d});return!((K=e.valueModifiers)===null||K===void 0)&&K.lazy&&delete se.onInput,P(Wg,ie(ie({},se),{},{id:(j=se==null?void 0:se.id)!==null&&j!==void 0?j:i.id.value,ref:p,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:B,blur:O,resizableTextArea:p}),et(()=>{let K=pi(u.value);!w.value&&C.value&&(e.value===null||e.value===void 0)&&(K=Zc(K,e.maxlength)),S.value=K}),()=>{var K;const{maxlength:j,bordered:Z=!0,hidden:G}=e,{style:se,class:J}=n,he=L(L(L({},e),n),{prefixCls:b.value,inputType:"text",handleReset:q,direction:v.value,bordered:Z,style:y.value?void 0:se,hashId:h.value,disabled:(K=e.disabled)!==null&&K!==void 0?K:s.value});let re=P(Ug,ie(ie({},he),{},{value:S.value,status:e.status}),{element:X});if(y.value||o.hasFeedback){const _e=[...S.value].length;let be="";typeof y.value=="object"?be=y.value.formatter({value:S.value,count:_e,maxlength:j}):be=`${_e}${C.value?` / ${j}`:""}`,re=P("div",{hidden:G,class:we(`${b.value}-textarea`,{[`${b.value}-textarea-rtl`]:v.value==="rtl",[`${b.value}-textarea-show-count`]:y.value,[`${b.value}-textarea-in-form-item`]:o.isFormItemInput},`${b.value}-textarea-show-count`,J,h.value),style:se,"data-count":typeof be!="object"?be:void 0},[re,o.hasFeedback&&P("span",{class:`${b.value}-textarea-suffix`},[o.feedbackIcon])])}return m(re)}}});var Gg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function ts(e){for(var t=1;te?P(Qi,null,null):P(Yi,null,null),tv=Be({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:L(L({},ba()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:a,emit:l}=t;const i=ye(!1),o=()=>{const{disabled:h}=e;h||(i.value=!i.value,l("update:visible",i.value))};et(()=>{e.visible!==void 0&&(i.value=!!e.visible)});const f=ye();a({focus:()=>{var h;(h=f.value)===null||h===void 0||h.focus()},blur:()=>{var h;(h=f.value)===null||h===void 0||h.blur()}});const S=h=>{const{action:s,iconRender:y=n.iconRender||ev}=e,C=Zg[s]||"",w=y(i.value),T={[C]:o,class:`${h}-icon`,key:"passwordIcon",onMousedown:x=>{x.preventDefault()},onMouseup:x=>{x.preventDefault()}};return Kt(cn(w)?w:P("span",null,[w]),T)},{prefixCls:b,getPrefixCls:g}=vt("input-password",e),v=H(()=>g("input",e.inputPrefixCls)),m=()=>{const{size:h,visibilityToggle:s}=e,y=Jg(e,["size","visibilityToggle"]),C=s&&S(b.value),w=we(b.value,r.class,{[`${b.value}-${h}`]:!!h}),T=L(L(L({},Et(y,["suffix","iconRender","action"])),r),{type:i.value?"text":"password",class:w,prefixCls:v.value,suffix:C});return h&&(T.size=h),P(Nt,ie({ref:f},T),n)};return()=>m()}});Nt.Group=kg;Nt.Search=Fg;Nt.TextArea=qg;Nt.Password=tv;Nt.install=function(e){return e.component(Nt.name,Nt),e.component(Nt.Group.name,Nt.Group),e.component(Nt.Search.name,Nt.Search),e.component(Nt.TextArea.name,Nt.TextArea),e.component(Nt.Password.name,Nt.Password),e};function nv(e,t,n){var r=n,a=r.noTrailing,l=a===void 0?!1:a,i=r.noLeading,o=i===void 0?!1:i,f=r.debounceMode,u=f===void 0?void 0:f,p,S=!1,b=0;function g(){p&&clearTimeout(p)}function v(h){var s=h||{},y=s.upcomingOnly,C=y===void 0?!1:y;g(),S=!C}function m(){for(var h=arguments.length,s=new Array(h),y=0;ye?o?(b=Date.now(),l||(p=setTimeout(u?x:T,e))):T():l!==!0&&(p=setTimeout(u?x:T,u===void 0?e-w:e))}return m.cancel=v,m}function rv(e,t,n){var r={},a=r.atBegin,l=a===void 0?!1:a;return nv(e,t,{debounceMode:l!==!1})}const av=new Wt("antSpinMove",{to:{opacity:1}}),ov=new Wt("antRotate",{to:{transform:"rotate(405deg)"}}),iv=e=>({[`${e.componentCls}`]:L(L({},$t(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:av,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ov,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),lv=Zt("Spin",e=>{const t=xt(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[iv(t)]},{contentHeight:400});var sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ae.any,delay:Number,indicator:ae.any});let Wr=null;function cv(e,t){return!!e&&!!t&&!isNaN(Number(t))}function dv(e){const t=e.indicator;Wr=typeof t=="function"?t:()=>P(t,null,null)}const mr=Be({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:kt(uv(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:a,size:l,direction:i}=vt("spin",e),[o,f]=lv(a),u=ye(e.spinning&&!cv(e.spinning,e.delay));let p;return ke([()=>e.spinning,()=>e.delay],()=>{p==null||p.cancel(),p=rv(e.delay,()=>{u.value=e.spinning}),p==null||p()},{immediate:!0,flush:"post"}),Rt(()=>{p==null||p.cancel()}),()=>{var S,b;const{class:g}=n,v=sv(n,["class"]),{tip:m=(S=r.tip)===null||S===void 0?void 0:S.call(r)}=e,h=(b=r.default)===null||b===void 0?void 0:b.call(r),s={[f.value]:!0,[a.value]:!0,[`${a.value}-sm`]:l.value==="small",[`${a.value}-lg`]:l.value==="large",[`${a.value}-spinning`]:u.value,[`${a.value}-show-text`]:!!m,[`${a.value}-rtl`]:i.value==="rtl",[g]:!!g};function y(w){const T=`${w}-dot`;let x=Ur(r,e,"indicator");return x===null?null:(Array.isArray(x)&&(x=x.length===1?x[0]:x),Nn(x)?yr(x,{class:T}):Wr&&Nn(Wr())?yr(Wr(),{class:T}):P("span",{class:`${T} ${w}-dot-spin`},[P("i",{class:`${w}-dot-item`},null),P("i",{class:`${w}-dot-item`},null),P("i",{class:`${w}-dot-item`},null),P("i",{class:`${w}-dot-item`},null)]))}const C=P("div",ie(ie({},v),{},{class:s,"aria-live":"polite","aria-busy":u.value}),[y(a.value),m?P("div",{class:`${a.value}-text`},[m]):null]);if(h&&Bn(h).length){const w={[`${a.value}-container`]:!0,[`${a.value}-blur`]:u.value};return o(P("div",{class:[`${a.value}-nested-loading`,e.wrapperClassName,f.value]},[u.value&&P("div",{key:"loading"},[C]),P("div",{class:w,key:"container"},[h])]))}return o(C)}}});mr.setDefaultIndicator=dv;mr.install=function(e){return e.component(mr.name,mr),e};var fv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function rs(e){for(var t=1;t{const a=L(L(L({},e),{size:"small"}),n);return P(Gt,a,r)}}}),mv=Be({name:"MiddleSelect",inheritAttrs:!1,props:Ui(),Option:Gt.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const a=L(L(L({},e),{size:"middle"}),n);return P(Gt,a,r)}}}),$n=Be({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:ae.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:r}=t;const a=()=>{n("click",e.page)},l=i=>{n("keypress",i,a,e.page)};return()=>{const{showTitle:i,page:o,itemRender:f}=e,{class:u,style:p}=r,S=`${e.rootPrefixCls}-item`,b=we(S,`${S}-${e.page}`,{[`${S}-active`]:e.active,[`${S}-disabled`]:!e.page},u);return P("li",{onClick:a,onKeypress:l,title:i?String(o):null,tabindex:"0",class:b,style:p},[f({page:o,type:"page",originalElement:P("a",{rel:"nofollow"},[o])})])}}}),Rn={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},yv=Be({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:ae.any,current:Number,pageSizeOptions:ae.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:ae.object,rootPrefixCls:String,selectPrefixCls:String,goButton:ae.any},setup(e){const t=Ee(""),n=H(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=f=>`${f.value} ${e.locale.items_per_page}`,a=f=>{const{value:u}=f.target;t.value!==u&&(t.value=u)},l=f=>{const{goButton:u,quickGo:p,rootPrefixCls:S}=e;if(!(u||t.value===""))if(f.relatedTarget&&(f.relatedTarget.className.indexOf(`${S}-item-link`)>=0||f.relatedTarget.className.indexOf(`${S}-item`)>=0)){t.value="";return}else p(n.value),t.value=""},i=f=>{t.value!==""&&(f.keyCode===Rn.ENTER||f.type==="click")&&(e.quickGo(n.value),t.value="")},o=H(()=>{const{pageSize:f,pageSizeOptions:u}=e;return u.some(p=>p.toString()===f.toString())?u:u.concat([f.toString()]).sort((p,S)=>{const b=isNaN(Number(p))?0:Number(p),g=isNaN(Number(S))?0:Number(S);return b-g})});return()=>{const{rootPrefixCls:f,locale:u,changeSize:p,quickGo:S,goButton:b,selectComponentClass:g,selectPrefixCls:v,pageSize:m,disabled:h}=e,s=`${f}-options`;let y=null,C=null,w=null;if(!p&&!S)return null;if(p&&g){const T=e.buildOptionText||r,x=o.value.map((c,d)=>P(g.Option,{key:d,value:c},{default:()=>[T({value:c})]}));y=P(g,{disabled:h,prefixCls:v,showSearch:!1,class:`${s}-size-changer`,optionLabelProp:"children",value:(m||o.value[0]).toString(),onChange:c=>p(Number(c)),getPopupContainer:c=>c.parentNode},{default:()=>[x]})}return S&&(b&&(w=typeof b=="boolean"?P("button",{type:"button",onClick:i,onKeyup:i,disabled:h,class:`${s}-quick-jumper-button`},[u.jump_to_confirm]):P("span",{onClick:i,onKeyup:i},[b])),C=P("div",{class:`${s}-quick-jumper`},[u.jump_to,P(wr,{disabled:h,type:"text",value:t.value,onInput:a,onChange:a,onKeyup:i,onBlur:l},null),u.page,w])),P("li",{class:`${s}`},[y,C])}}}),bv={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var Cv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a"u"?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}const Ev=Be({compatConfig:{MODE:3},name:"Pagination",mixins:[Mf],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ae.string.def("rc-pagination"),selectPrefixCls:ae.string.def("rc-select"),current:Number,defaultCurrent:ae.number.def(1),total:ae.number.def(0),pageSize:Number,defaultPageSize:ae.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ae.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ae.oneOfType([ae.looseBool,ae.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ae.arrayOf(ae.oneOfType([ae.number,ae.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ae.object.def(bv),itemRender:ae.func.def(Sv),prevIcon:ae.any,nextIcon:ae.any,jumpPrevIcon:ae.any,jumpNextIcon:ae.any,totalBoundaryShowSizeChanger:ae.number.def(50)},data(){const e=this.$props;let t=Sl([this.current,this.defaultCurrent]);const n=Sl([this.pageSize,this.defaultPageSize]);return t=Math.min(t,gn(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const r=gn(e,this.$data,this.$props);n=n>r?r:n,ur(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=gn(this.pageSize,this.$data,this.$props);if(ur(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(gn(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return Uf(this,e,this.$props)||P("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=gn(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data;let a;return t===""?a=t:isNaN(Number(t))?a=r:t>=n?a=n:a=Number(t),a},isValid(e){return xv(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===Rn.ARROW_UP||e.keyCode===Rn.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===Rn.ENTER?this.handleChange(t):e.keyCode===Rn.ARROW_UP?this.handleChange(t-1):e.keyCode===Rn.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,r=gn(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e=="number"&&(ur(this,"pageSize")||this.setState({statePageSize:e}),ur(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const r=gn(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),ur(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a0?s-1:0,q=s+1=M*2&&s!==3&&(c[0]=P($n,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:he,page:he,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:p},null),c.unshift(d)),x-s>=M*2&&s!==x-2&&(c[c.length-1]=P($n,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:re,page:re,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:p},null),c.push(A)),he!==1&&c.unshift(B),re!==x&&c.push(O)}let K=null;f&&(K=P("li",{class:`${e}-total-text`},[f(r,[r===0?0:(s-1)*y+1,s*y>r?r:s*y])]));const j=!Q||!x,Z=!X||!x,G=this.buildOptionText||this.$slots.buildOptionText;return P("ul",ie(ie({unselectable:"on",ref:"paginationNode"},T),{},{class:we({[`${e}`]:!0,[`${e}-disabled`]:t},w)}),[K,P("li",{title:o?a.prev_page:null,onClick:this.prev,tabindex:j?null:0,onKeypress:this.runIfEnterPrev,class:we(`${e}-prev`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderPrev(V)]),c,P("li",{title:o?a.next_page:null,onClick:this.next,tabindex:Z?null:0,onKeypress:this.runIfEnterNext,class:we(`${e}-next`,{[`${e}-disabled`]:Z}),"aria-disabled":Z},[this.renderNext(q)]),P(yv,{disabled:t,locale:a,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:m,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:s,pageSize:y,pageSizeOptions:h,buildOptionText:G||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:k},null)])}}),wv=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Iv=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:L(L({},zi(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Tv=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Av=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":L({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ln(e))},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:L({},Ln(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:L(L({},Hi(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Bv=e=>{const{componentCls:t}=e;return{[`${t}-item`]:L(L({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Jo(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},$v=e=>{const{componentCls:t}=e;return{[t]:L(L(L(L(L(L(L(L({},$t(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Bv(e)),Av(e)),Tv(e)),Iv(e)),wv(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Rv=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},_v=Zt("Pagination",e=>{const t=xt(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Dc(e));return[$v(t),e.wireframe&&Rv(t)]});var Ov=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a({total:Number,defaultCurrent:Number,disabled:ze(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:ze(),showSizeChanger:ze(),pageSizeOptions:Dt(),buildOptionText:je(),showQuickJumper:Pt([Boolean,Object]),showTotal:je(),size:dt(),simple:ze(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:je(),role:String,responsive:Boolean,showLessItems:ze(),onChange:je(),onShowSizeChange:je(),"onUpdate:current":je(),"onUpdate:pageSize":je()}),Pv=Be({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:Nv(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:a,configProvider:l,direction:i,size:o}=vt("pagination",e),[f,u]=_v(a),p=H(()=>l.getPrefixCls("select",e.selectPrefixCls)),S=Ic(),[b]=ic("Pagination",zf,st(e,"locale")),g=v=>{const m=P("span",{class:`${v}-item-ellipsis`},[Ut("•••")]),h=P("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?P(ta,null,null):P(El,null,null)]),s=P("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?P(El,null,null):P(ta,null,null)]),y=P("a",{rel:"nofollow",class:`${v}-item-link`},[P("div",{class:`${v}-item-container`},[i.value==="rtl"?P(ia,{class:`${v}-item-link-icon`},null):P(oa,{class:`${v}-item-link-icon`},null),m])]),C=P("a",{rel:"nofollow",class:`${v}-item-link`},[P("div",{class:`${v}-item-container`},[i.value==="rtl"?P(oa,{class:`${v}-item-link-icon`},null):P(ia,{class:`${v}-item-link-icon`},null),m])]);return{prevIcon:h,nextIcon:s,jumpPrevIcon:y,jumpNextIcon:C}};return()=>{var v;const{itemRender:m=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:s,responsive:y}=e,C=Ov(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),w=o.value==="small"||!!(!((v=S.value)===null||v===void 0)&&v.xs&&!o.value&&y),T=L(L(L(L(L({},C),g(a.value)),{prefixCls:a.value,selectPrefixCls:p.value,selectComponentClass:s||(w?vv:mv),locale:b.value,buildOptionText:h}),r),{class:we({[`${a.value}-mini`]:w,[`${a.value}-rtl`]:i.value==="rtl"},r.class,u.value),itemRender:m});return f(P(Ev,T,null))}}}),Dv=Di(Pv),kv=["normal","exception","active","success"],Ca=()=>({prefixCls:String,type:dt(),percent:Number,format:je(),status:dt(),showInfo:ze(),strokeWidth:Number,strokeLinecap:dt(),strokeColor:un(),trailColor:String,width:Number,success:Bt(),gapDegree:Number,gapPosition:dt(),size:Pt([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:dt()});function Pn(e){return!e||e<0?0:e>100?100:e}function la(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(Xt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function Lv(e){let{percent:t,success:n,successPercent:r}=e;const a=Pn(la({success:n,successPercent:r}));return[a,Pn(Pn(t)-a)]}function Fv(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||ei.green,n||null]}const xa=(e,t,n)=>{var r,a,l,i;let o=-1,f=-1;if(t==="step"){const u=n.steps,p=n.strokeWidth;typeof e=="string"||typeof e>"u"?(o=e==="small"?2:14,f=p??8):typeof e=="number"?[o,f]=[e,e]:[o=14,f=8]=e,o*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?f=u||(e==="small"?6:8):typeof e=="number"?[o,f]=[e,e]:[o=-1,f=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[o,f]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[o,f]=[e,e]:(o=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,f=(i=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&i!==void 0?i:120));return{width:o,height:f}};var Kv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);aL(L({},Ca()),{strokeColor:un(),direction:dt()}),Uv=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},Vv=(e,t)=>{const{from:n=ei.blue,to:r=ei.blue,direction:a=t==="rtl"?"to left":"to right"}=e,l=Kv(e,["from","to","direction"]);if(Object.keys(l).length!==0){const i=Uv(l);return{backgroundImage:`linear-gradient(${a}, ${i})`}}return{backgroundImage:`linear-gradient(${a}, ${n}, ${r})`}},zv=Be({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:Mv(),setup(e,t){let{slots:n,attrs:r}=t;const a=H(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Vv(g,v):{backgroundColor:g}}),l=H(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=H(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),o=H(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),f=H(()=>xa(o.value,"line",{strokeWidth:e.strokeWidth})),u=H(()=>{const{percent:g}=e;return L({width:`${Pn(g)}%`,height:`${f.value.height}px`,borderRadius:l.value},a.value)}),p=H(()=>la(e)),S=H(()=>{const{success:g}=e;return{width:`${Pn(p.value)}%`,height:`${f.value.height}px`,borderRadius:l.value,backgroundColor:g==null?void 0:g.strokeColor}}),b={width:f.value.width<0?"100%":f.value.width,height:`${f.value.height}px`};return()=>{var g;return P(It,null,[P("div",ie(ie({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,b]}),[P("div",{class:`${e.prefixCls}-inner`,style:i.value},[P("div",{class:`${e.prefixCls}-bg`,style:u.value},null),p.value!==void 0?P("div",{class:`${e.prefixCls}-success-bg`,style:S.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),Hv={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},jv=e=>{const t=Ee(null);return Sr(()=>{const n=Date.now();let r=!1;e.value.forEach(a=>{const l=(a==null?void 0:a.$el)||a;if(!l)return;r=!0;const i=l.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},Wv={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let o=0,f=-i,u=0,p=-2*i;switch(l){case"left":o=-i,f=0,u=2*i,p=0;break;case"right":o=i,f=0,u=-2*i,p=0;break;case"bottom":f=i,p=2*i;break}const S=`M 50,50 m ${o},${f} + a ${i},${i} 0 1 1 ${u},${-p} + a ${i},${i} 0 1 1 ${-u},${p}`,b=Math.PI*2*i,g={stroke:n,strokeDasharray:`${t/100*(b-a)}px ${b}px`,strokeDashoffset:`-${a/2+e/100*(b-a)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:S,pathStyle:g}}const Gv=Be({compatConfig:{MODE:3},name:"VCCircle",props:kt(Wv,Hv),setup(e){os+=1;const t=Ee(os),n=H(()=>ls(e.percent)),r=H(()=>ls(e.strokeColor)),[a,l]=z0();jv(l);const i=()=>{const{prefixCls:o,strokeWidth:f,strokeLinecap:u,gapDegree:p,gapPosition:S}=e;let b=0;return n.value.map((g,v)=>{const m=r.value[v]||r.value[r.value.length-1],h=Object.prototype.toString.call(m)==="[object Object]"?`url(#${o}-gradient-${t.value})`:"",{pathString:s,pathStyle:y}=ss(b,g,m,f,p,S);b+=g;const C={key:v,d:s,stroke:h,"stroke-linecap":u,"stroke-width":f,opacity:g===0?0:1,"fill-opacity":"0",class:`${o}-circle-path`,style:y};return P("path",ie({ref:a(v)},C),null)})};return()=>{const{prefixCls:o,strokeWidth:f,trailWidth:u,gapDegree:p,gapPosition:S,trailColor:b,strokeLinecap:g,strokeColor:v}=e,m=qv(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:h,pathStyle:s}=ss(0,100,b,f,p,S);delete m.percent;const y=r.value.find(w=>Object.prototype.toString.call(w)==="[object Object]"),C={d:h,stroke:b,"stroke-linecap":g,"stroke-width":u||f,"fill-opacity":"0",class:`${o}-circle-trail`,style:s};return P("svg",ie({class:`${o}-circle`,viewBox:"0 0 100 100"},m),[y&&P("defs",null,[P("linearGradient",{id:`${o}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(y).sort((w,T)=>is(w)-is(T)).map((w,T)=>P("stop",{key:T,offset:w,"stop-color":y[w]},null))])]),P("path",C,null),i().reverse()])}}}),Xv=()=>L(L({},Ca()),{strokeColor:un()}),Qv=3,Yv=e=>Qv/e*100,Jv=Be({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:kt(Xv(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t;const a=H(()=>{var m;return(m=e.width)!==null&&m!==void 0?m:120}),l=H(()=>{var m;return(m=e.size)!==null&&m!==void 0?m:[a.value,a.value]}),i=H(()=>xa(l.value,"circle")),o=H(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),f=H(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),u=H(()=>{var m;return(m=e.strokeWidth)!==null&&m!==void 0?m:Math.max(Yv(i.value.width),6)}),p=H(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),S=H(()=>Lv(e)),b=H(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=H(()=>Fv({success:e.success,strokeColor:e.strokeColor})),v=H(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:b.value}));return()=>{var m;const h=P(Gv,{percent:S.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:o.value,gapPosition:p.value},null);return P("div",ie(ie({},r),{},{class:[v.value,r.class],style:[r.style,f.value]}),[i.value.width<=20?P(lc,null,{default:()=>[P("span",null,[h])],title:n.default}):P(It,null,[h,(m=n.default)===null||m===void 0?void 0:m.call(n)])])}}}),Zv=()=>L(L({},Ca()),{steps:Number,strokeColor:Pt(),trailColor:String}),em=Be({compatConfig:{MODE:3},name:"Steps",props:Zv(),setup(e,t){let{slots:n}=t;const r=H(()=>Math.round(e.steps*((e.percent||0)/100))),a=H(()=>{var o;return(o=e.size)!==null&&o!==void 0?o:[e.size==="small"?2:14,e.strokeWidth||8]}),l=H(()=>xa(a.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=H(()=>{const{steps:o,strokeColor:f,trailColor:u,prefixCls:p}=e,S=[];for(let b=0;b{var o;return P("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),tm=new Wt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),nm=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:L(L({},$t(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:tm,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},rm=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},am=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},om=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},im=Zt("Progress",e=>{const t=e.marginXXS/2,n=xt(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[nm(n),rm(n),am(n),om(n)]});var lm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);aArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=H(()=>{const{percent:v=0}=e,m=la(e);return parseInt(m!==void 0?m.toString():v.toString(),10)}),p=H(()=>{const{status:v}=e;return!kv.includes(v)&&u.value>=100?"success":v||"normal"}),S=H(()=>{const{type:v,showInfo:m,size:h}=e,s=a.value;return{[s]:!0,[`${s}-inline-circle`]:v==="circle"&&xa(h,"circle").width<=20,[`${s}-${v==="dashboard"&&"circle"||v}`]:!0,[`${s}-status-${p.value}`]:!0,[`${s}-show-info`]:m,[`${s}-${h}`]:h,[`${s}-rtl`]:l.value==="rtl",[o.value]:!0}}),b=H(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:m,type:h,percent:s,title:y}=e,C=la(e);if(!v)return null;let w;const T=m||(n==null?void 0:n.format)||(c=>`${c}%`),x=h==="line";return m||n!=null&&n.format||p.value!=="exception"&&p.value!=="success"?w=T(Pn(s),Pn(C)):p.value==="exception"?w=x?P(fa,null,null):P(pa,null,null):p.value==="success"&&(w=x?P(Hf,null,null):P(va,null,null)),P("span",{class:`${a.value}-text`,title:y===void 0&&typeof w=="string"?w:void 0},[w])};return()=>{const{type:v,steps:m,title:h}=e,{class:s}=r,y=lm(r,["class"]),C=g();let w;return v==="line"?w=m?P(em,ie(ie({},e),{},{strokeColor:b.value,prefixCls:a.value,steps:m}),{default:()=>[C]}):P(zv,ie(ie({},e),{},{strokeColor:f.value,prefixCls:a.value,direction:l.value}),{default:()=>[C]}):(v==="circle"||v==="dashboard")&&(w=P(Jv,ie(ie({},e),{},{prefixCls:a.value,strokeColor:f.value,progressStatus:p.value}),{default:()=>[C]})),i(P("div",ie(ie({role:"progressbar"},y),{},{class:[S.value,s],title:h}),[w]))}}}),um=Di(sm),ed=Symbol("TableContextProps"),cm=e=>{_t(ed,e)},dn=()=>Tt(ed,{}),dm="RC_TABLE_KEY";function td(e){return e==null?[]:Array.isArray(e)?e:[e]}function nd(e,t){if(!t&&typeof t!="number")return e;const n=td(t);let r=e;for(let a=0;a{const{key:a,dataIndex:l}=r||{};let i=a||td(l).join("-")||dm;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function fm(){const e={};function t(l,i){i&&Object.keys(i).forEach(o=>{const f=i[o];f&&typeof f=="object"?(l[o]=l[o]||{},t(l[o],f)):l[o]=f})}for(var n=arguments.length,r=new Array(n),a=0;a{t(e,l)}),e}function hi(e){return e!=null}const rd=Symbol("SlotsContextProps"),pm=e=>{_t(rd,e)},Ji=()=>Tt(rd,H(()=>({}))),ad=Symbol("ContextProps"),hm=e=>{_t(ad,e)},gm=()=>Tt(ad,{onResizeColumn:()=>{}}),er="RC_TABLE_INTERNAL_COL_DEFINE",od=Symbol("HoverContextProps"),vm=e=>{_t(od,e)},mm=()=>Tt(od,{startRow:ye(-1),endRow:ye(-1),onHover(){}}),gi=ye(!1),ym=()=>{gt(()=>{gi.value=gi.value||jf("position","sticky")})},bm=()=>gi;var Cm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a=n}function Sm(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Nn(e)}const Ea=Be({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const r=Ji(),{onHover:a,startRow:l,endRow:i}=mm(),o=H(()=>{var m,h,s,y;return(s=(m=e.colSpan)!==null&&m!==void 0?m:(h=e.additionalProps)===null||h===void 0?void 0:h.colSpan)!==null&&s!==void 0?s:(y=e.additionalProps)===null||y===void 0?void 0:y.colspan}),f=H(()=>{var m,h,s,y;return(s=(m=e.rowSpan)!==null&&m!==void 0?m:(h=e.additionalProps)===null||h===void 0?void 0:h.rowSpan)!==null&&s!==void 0?s:(y=e.additionalProps)===null||y===void 0?void 0:y.rowspan}),u=rn(()=>{const{index:m}=e;return xm(m,f.value||1,l.value,i.value)}),p=bm(),S=(m,h)=>{var s;const{record:y,index:C,additionalProps:w}=e;y&&a(C,C+h-1),(s=w==null?void 0:w.onMouseenter)===null||s===void 0||s.call(w,m)},b=m=>{var h;const{record:s,additionalProps:y}=e;s&&a(-1,-1),(h=y==null?void 0:y.onMouseleave)===null||h===void 0||h.call(y,m)},g=m=>{const h=Bn(m)[0];return Nn(h)?h.type===op?h.children:Array.isArray(h.children)?g(h.children):void 0:h},v=ye(null);return ke([u,()=>e.prefixCls,v],()=>{const m=Wf(v.value);m&&(u.value?qf(m,`${e.prefixCls}-cell-row-hover`):Gf(m,`${e.prefixCls}-cell-row-hover`))}),()=>{var m,h,s,y,C,w;const{prefixCls:T,record:x,index:c,renderIndex:d,dataIndex:A,customRender:B,component:O="td",fixLeft:_,fixRight:k,firstFixLeft:M,lastFixLeft:V,firstFixRight:q,lastFixRight:Q,appendNode:X=(m=n.appendNode)===null||m===void 0?void 0:m.call(n),additionalProps:K={},ellipsis:j,align:Z,rowType:G,isSticky:se,column:J={},cellType:he}=e,re=`${T}-cell`;let _e,be;const I=(h=n.default)===null||h===void 0?void 0:h.call(n);if(hi(I)||he==="header")be=I;else{const le=nd(x,A);if(be=le,B){const te=B({text:le,value:le,record:x,index:c,renderIndex:d,column:J.__originColumn__});Sm(te)?(be=te.children,_e=te.props):be=te}if(!(er in J)&&he==="body"&&r.value.bodyCell&&!(!((s=J.slots)===null||s===void 0)&&s.customRender)){const te=ki(r.value,"bodyCell",{text:le,value:le,record:x,index:c,column:J.__originColumn__},()=>{const ue=be===void 0?le:be;return[typeof ue=="object"&&cn(ue)||typeof ue!="object"?ue:null]});be=xr(te)}e.transformCellText&&(be=e.transformCellText({text:be,record:x,index:c,column:J.__originColumn__}))}typeof be=="object"&&!Array.isArray(be)&&!Nn(be)&&(be=null),j&&(V||q)&&(be=P("span",{class:`${re}-content`},[be])),Array.isArray(be)&&be.length===1&&(be=be[0]);const R=_e||{},{colSpan:$,rowSpan:E,style:N,class:W}=R,z=Cm(R,["colSpan","rowSpan","style","class"]),Y=(y=$!==void 0?$:o.value)!==null&&y!==void 0?y:1,de=(C=E!==void 0?E:f.value)!==null&&C!==void 0?C:1;if(Y===0||de===0)return null;const oe={},ee=typeof _=="number"&&p.value,pe=typeof k=="number"&&p.value;ee&&(oe.position="sticky",oe.left=`${_}px`),pe&&(oe.position="sticky",oe.right=`${k}px`);const Te={};Z&&(Te.textAlign=Z);let Ie;const xe=j===!0?{showTitle:!0}:j;xe&&(xe.showTitle||G==="header")&&(typeof be=="string"||typeof be=="number"?Ie=be.toString():Nn(be)&&(Ie=g([be])));const Fe=L(L(L({title:Ie},z),K),{colSpan:Y!==1?Y:null,rowSpan:de!==1?de:null,class:we(re,{[`${re}-fix-left`]:ee&&p.value,[`${re}-fix-left-first`]:M&&p.value,[`${re}-fix-left-last`]:V&&p.value,[`${re}-fix-right`]:pe&&p.value,[`${re}-fix-right-first`]:q&&p.value,[`${re}-fix-right-last`]:Q&&p.value,[`${re}-ellipsis`]:j,[`${re}-with-append`]:X,[`${re}-fix-sticky`]:(ee||pe)&&se&&p.value},K.class,W),onMouseenter:le=>{S(le,de)},onMouseleave:b,style:[K.style,Te,oe,N]});return P(O,ie(ie({},Fe),{},{ref:v}),{default:()=>[X,be,(w=n.dragHandle)===null||w===void 0?void 0:w.call(n)]})}}});function Zi(e,t,n,r,a){const l=n[e]||{},i=n[t]||{};let o,f;l.fixed==="left"?o=r.left[e]:i.fixed==="right"&&(f=r.right[t]);let u=!1,p=!1,S=!1,b=!1;const g=n[t+1],v=n[e-1];return a==="rtl"?o!==void 0?b=!(v&&v.fixed==="left"):f!==void 0&&(S=!(g&&g.fixed==="right")):o!==void 0?u=!(g&&g.fixed==="left"):f!==void 0&&(p=!(v&&v.fixed==="right")),{fixLeft:o,fixRight:f,lastFixLeft:u,firstFixRight:p,lastFixRight:S,firstFixLeft:b,isSticky:r.isSticky}}const us={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},cs=50,Em=Be({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:cs},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}};const a=()=>{n.remove(),r.remove()};ar(()=>{a()}),et(()=>{Xt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:l}=gm(),i=H(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:cs),o=H(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),f=Er();let u=0;const p=ye(!1);let S;const b=C=>{let w=0;C.touches?C.touches.length?w=C.touches[0].pageX:w=C.changedTouches[0].pageX:w=C.pageX;const T=t-w;let x=Math.max(u-T,i.value);x=Math.min(x,o.value),wt.cancel(S),S=wt(()=>{l(x,e.column.__originColumn__)})},g=C=>{b(C)},v=C=>{p.value=!1,b(C),a()},m=(C,w)=>{p.value=!0,a(),u=f.vnode.el.parentNode.getBoundingClientRect().width,!(C instanceof MouseEvent&&C.which!==1)&&(C.stopPropagation&&C.stopPropagation(),t=C.touches?C.touches[0].pageX:C.pageX,n=_n(document.documentElement,w.move,g),r=_n(document.documentElement,w.stop,v))},h=C=>{C.stopPropagation(),C.preventDefault(),m(C,us.mouse)},s=C=>{C.stopPropagation(),C.preventDefault(),m(C,us.touch)},y=C=>{C.stopPropagation(),C.preventDefault()};return()=>{const{prefixCls:C}=e,w={[bn?"onTouchstartPassive":"onTouchstart"]:T=>s(T)};return P("div",ie(ie({class:`${C}-resize-handle ${p.value?"dragging":""}`,onMousedown:h},w),{},{onClick:y}),[P("div",{class:`${C}-resize-handle-line`},null)])}}}),wm=Be({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=dn();return()=>{const{prefixCls:n,direction:r}=t,{cells:a,stickyOffsets:l,flattenColumns:i,rowComponent:o,cellComponent:f,customHeaderRow:u,index:p}=e;let S;u&&(S=u(a.map(g=>g.column),p));const b=Sa(a.map(g=>g.column));return P(o,S,{default:()=>[a.map((g,v)=>{const{column:m}=g,h=Zi(g.colStart,g.colEnd,i,l,r);let s;m&&m.customHeaderCell&&(s=g.column.customHeaderCell(m));const y=m;return P(Ea,ie(ie(ie({},g),{},{cellType:"header",ellipsis:m.ellipsis,align:m.align,component:f,prefixCls:n,key:b[v]},h),{},{additionalProps:s,rowType:"header",column:m}),{default:()=>m.title,dragHandle:()=>y.resizable?P(Em,{prefixCls:n,width:y.width,minWidth:y.minWidth,maxWidth:y.maxWidth,column:y},null):null})})]})}}});function Im(e){const t=[];function n(a,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let o=l;return a.filter(Boolean).map(u=>{const p={key:u.key,class:we(u.className,u.class),column:u,colStart:o};let S=1;const b=u.children;return b&&b.length>0&&(S=n(b,o,i+1).reduce((g,v)=>g+v,0),p.hasSubColumns=!0),"colSpan"in u&&({colSpan:S}=u),"rowSpan"in u&&(p.rowSpan=u.rowSpan),p.colSpan=S,p.colEnd=p.colStart+S-1,t[i].push(p),o+=S,S})}n(e,0);const r=t.length;for(let a=0;a{!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-a)});return t}const ds=Be({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=dn(),n=H(()=>Im(e.columns));return()=>{const{prefixCls:r,getComponent:a}=t,{stickyOffsets:l,flattenColumns:i,customHeaderRow:o}=e,f=a(["header","wrapper"],"thead"),u=a(["header","row"],"tr"),p=a(["header","cell"],"th");return P(f,{class:`${r}-thead`},{default:()=>[n.value.map((S,b)=>P(wm,{key:b,flattenColumns:i,cells:S,stickyOffsets:l,rowComponent:u,cellComponent:p,customHeaderRow:o,index:b},null))]})}}}),id=Symbol("ExpandedRowProps"),Tm=e=>{_t(id,e)},Am=()=>Tt(id,{}),ld=Be({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:r}=t;const a=dn(),l=Am(),{fixHeader:i,fixColumn:o,componentWidth:f,horizonScroll:u}=l;return()=>{const{prefixCls:p,component:S,cellComponent:b,expanded:g,colSpan:v,isEmpty:m}=e;return P(S,{class:r.class,style:{display:g?null:"none"}},{default:()=>[P(Ea,{component:b,prefixCls:p,colSpan:v},{default:()=>{var h;let s=(h=n.default)===null||h===void 0?void 0:h.call(n);return(m?u.value:o.value)&&(s=P("div",{style:{width:`${f.value-(i.value?a.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${p}-expanded-row-fixed`},[s])),s}})]})}}}),Bm=Be({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const r=Ee();return gt(()=>{r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)}),()=>P(da,{onResize:a=>{let{offsetWidth:l}=a;n("columnResize",e.columnKey,l)}},{default:()=>[P("td",{ref:r,style:{padding:0,border:0,height:0}},[P("div",{style:{height:0,overflow:"hidden"}},[Ut(" ")])])]})}}),sd=Symbol("BodyContextProps"),$m=e=>{_t(sd,e)},ud=()=>Tt(sd,{}),Rm=Be({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const r=dn(),a=ud(),l=ye(!1),i=H(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));et(()=>{i.value&&(l.value=!0)});const o=H(()=>a.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),f=H(()=>a.expandableType==="nest"),u=H(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),p=H(()=>o.value||f.value),S=(h,s)=>{a.onTriggerExpand(h,s)},b=H(()=>{var h;return((h=e.customRow)===null||h===void 0?void 0:h.call(e,e.record,e.index))||{}}),g=function(h){var s,y;a.expandRowByClick&&p.value&&S(e.record,h);for(var C=arguments.length,w=new Array(C>1?C-1:0),T=1;T{const{record:h,index:s,indent:y}=e,{rowClassName:C}=a;return typeof C=="string"?C:typeof C=="function"?C(h,s,y):""}),m=H(()=>Sa(a.flattenColumns));return()=>{const{class:h,style:s}=n,{record:y,index:C,rowKey:w,indent:T=0,rowComponent:x,cellComponent:c}=e,{prefixCls:d,fixedInfoList:A,transformCellText:B}=r,{flattenColumns:O,expandedRowClassName:_,indentSize:k,expandIcon:M,expandedRowRender:V,expandIconColumnIndex:q}=a,Q=P(x,ie(ie({},b.value),{},{"data-row-key":w,class:we(h,`${d}-row`,`${d}-row-level-${T}`,v.value,b.value.class),style:[s,b.value.style],onClick:g}),{default:()=>[O.map((K,j)=>{const{customRender:Z,dataIndex:G,className:se}=K,J=m[j],he=A[j];let re;K.customCell&&(re=K.customCell(y,C,K));const _e=j===(q||0)&&f.value?P(It,null,[P("span",{style:{paddingLeft:`${k*T}px`},class:`${d}-row-indent indent-level-${T}`},null),M({prefixCls:d,expanded:i.value,expandable:u.value,record:y,onExpand:S})]):null;return P(Ea,ie(ie({cellType:"body",class:se,ellipsis:K.ellipsis,align:K.align,component:c,prefixCls:d,key:J,record:y,index:C,renderIndex:e.renderIndex,dataIndex:G,customRender:Z},he),{},{additionalProps:re,column:K,transformCellText:B,appendNode:_e}),null)})]});let X;if(o.value&&(l.value||i.value)){const K=V({record:y,index:C,indent:T+1,expanded:i.value}),j=_&&_(y,C,T);X=P(ld,{expanded:i.value,class:we(`${d}-expanded-row`,`${d}-expanded-row-level-${T+1}`,j),prefixCls:d,component:x,cellComponent:c,colSpan:O.length,isEmpty:!1},{default:()=>[K]})}return P(It,null,[Q,X])}}});function cd(e,t,n,r,a,l){const i=[];i.push({record:e,indent:t,index:l});const o=a(e),f=r==null?void 0:r.has(o);if(e&&Array.isArray(e[n])&&f)for(let u=0;u{const l=t.value,i=n.value,o=e.value;if(i!=null&&i.size){const f=[];for(let u=0;u<(o==null?void 0:o.length);u+=1){const p=o[u];f.push(...cd(p,0,l,i,r.value,u))}return f}return o==null?void 0:o.map((f,u)=>({record:f,indent:0,index:u}))})}const dd=Symbol("ResizeContextProps"),Om=e=>{_t(dd,e)},Nm=()=>Tt(dd,{onColumnResize:()=>{}}),Pm=Be({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const r=Nm(),a=dn(),l=ud(),i=_m(st(e,"data"),st(e,"childrenColumnName"),st(e,"expandedKeys"),st(e,"getRowKey")),o=ye(-1),f=ye(-1);let u;return vm({startRow:o,endRow:f,onHover:(p,S)=>{clearTimeout(u),u=setTimeout(()=>{o.value=p,f.value=S},100)}}),()=>{var p;const{data:S,getRowKey:b,measureColumnWidth:g,expandedKeys:v,customRow:m,rowExpandable:h,childrenColumnName:s}=e,{onColumnResize:y}=r,{prefixCls:C,getComponent:w}=a,{flattenColumns:T}=l,x=w(["body","wrapper"],"tbody"),c=w(["body","row"],"tr"),d=w(["body","cell"],"td");let A;S.length?A=i.value.map((O,_)=>{const{record:k,indent:M,index:V}=O,q=b(k,_);return P(Rm,{key:q,rowKey:q,record:k,recordKey:q,index:_,renderIndex:V,rowComponent:c,cellComponent:d,expandedKeys:v,customRow:m,getRowKey:b,rowExpandable:h,childrenColumnName:s,indent:M},null)}):A=P(ld,{expanded:!0,class:`${C}-placeholder`,prefixCls:C,component:c,cellComponent:d,colSpan:T.length,isEmpty:!0},{default:()=>[(p=n.emptyNode)===null||p===void 0?void 0:p.call(n)]});const B=Sa(T);return P(x,{class:`${C}-tbody`},{default:()=>[g&&P("tr",{"aria-hidden":"true",class:`${C}-measure-row`,style:{height:0,fontSize:0}},[B.map(O=>P(Bm,{key:O,columnKey:O,onColumnResize:y},null))]),A]})}}}),Tn={};var Dm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{fixed:r}=n,a=r===!0?"left":r,l=n.children;return l&&l.length>0?[...t,...vi(l).map(i=>L({fixed:a},i))]:[...t,L(L({},n),{fixed:a})]},[])}function km(e){return e.map(t=>{const{fixed:n}=t,r=Dm(t,["fixed"]);let a=n;return n==="left"?a="right":n==="right"&&(a="left"),L({fixed:a},r)})}function Lm(e,t){let{prefixCls:n,columns:r,expandable:a,expandedKeys:l,getRowKey:i,onTriggerExpand:o,expandIcon:f,rowExpandable:u,expandIconColumnIndex:p,direction:S,expandRowByClick:b,expandColumnWidth:g,expandFixed:v}=e;const m=Ji(),h=H(()=>{if(a.value){let C=r.value.slice();if(!C.includes(Tn)){const k=p.value||0;k>=0&&C.splice(k,0,Tn)}const w=C.indexOf(Tn);C=C.filter((k,M)=>k!==Tn||M===w);const T=r.value[w];let x;(v.value==="left"||v.value)&&!p.value?x="left":(v.value==="right"||v.value)&&p.value===r.value.length?x="right":x=T?T.fixed:null;const c=l.value,d=u.value,A=f.value,B=n.value,O=b.value,_={[er]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:ki(m.value,"expandColumnTitle",{},()=>[""]),fixed:x,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:k=>{let{record:M,index:V}=k;const q=i.value(M,V),Q=c.has(q),X=d?d(M):!0,K=A({prefixCls:B,expanded:Q,expandable:X,record:M,onExpand:o});return O?P("span",{onClick:j=>j.stopPropagation()},[K]):K}};return C.map(k=>k===Tn?_:k)}return r.value.filter(C=>C!==Tn)}),s=H(()=>{let C=h.value;return t.value&&(C=t.value(C)),C.length||(C=[{customRender:()=>null}]),C}),y=H(()=>S.value==="rtl"?km(vi(s.value)):vi(s.value));return[s,y]}function fd(e){const t=ye(e);let n;const r=ye([]);function a(l){r.value.push(l),wt.cancel(n),n=wt(()=>{const i=r.value;r.value=[],i.forEach(o=>{t.value=o(t.value)})})}return Rt(()=>{wt.cancel(n)}),[t,a]}function Fm(e){const t=Ee(null),n=Ee();function r(){clearTimeout(n.value)}function a(i){t.value=i,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function l(){return t.value}return Rt(()=>{r()}),[a,l]}function Km(e,t,n){return H(()=>{const a=[],l=[];let i=0,o=0;const f=e.value,u=t.value,p=n.value;for(let S=0;S=0;o-=1){const f=t[o],u=n&&n[o],p=u&&u[er];if(f||p||i){const S=p||{},b=Mm(S,["columnType"]);a.unshift(P("col",ie({key:o,style:{width:typeof f=="number"?`${f}px`:f}},b),null)),i=!0}}return P("colgroup",null,[a])}function mi(e,t){let{slots:n}=t;var r;return P("div",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}mi.displayName="Panel";let Um=0;const Vm=Be({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const r=dn(),a=`table-summary-uni-key-${++Um}`,l=H(()=>e.fixed===""||e.fixed);return et(()=>{r.summaryCollect(a,l.value)}),Rt(()=>{r.summaryCollect(a,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),zm=Be({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var r;return P("tr",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),hd=Symbol("SummaryContextProps"),Hm=e=>{_t(hd,e)},jm=()=>Tt(hd,{}),Wm=Be({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:r}=t;const a=dn(),l=jm();return()=>{const{index:i,colSpan:o=1,rowSpan:f,align:u}=e,{prefixCls:p,direction:S}=a,{scrollColumnIndex:b,stickyOffsets:g,flattenColumns:v}=l,h=i+o-1+1===b?o+1:o,s=Zi(i,i+h-1,v,g,S);return P(Ea,ie({class:n.class,index:i,component:"td",prefixCls:p,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:f,customRender:()=>{var y;return(y=r.default)===null||y===void 0?void 0:y.call(r)}},s),null)}}}),Lr=Be({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const r=dn();return Hm(Ht({stickyOffsets:st(e,"stickyOffsets"),flattenColumns:st(e,"flattenColumns"),scrollColumnIndex:H(()=>{const a=e.flattenColumns.length-1,l=e.flattenColumns[a];return l!=null&&l.scrollbar?a:null})})),()=>{var a;const{prefixCls:l}=r;return P("tfoot",{class:`${l}-summary`},[(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),qm=Vm;function Gm(e){let{prefixCls:t,record:n,onExpand:r,expanded:a,expandable:l}=e;const i=`${t}-row-expand-icon`;if(!l)return P("span",{class:[i,`${t}-row-spaced`]},null);const o=f=>{r(n,f),f.stopPropagation()};return P("span",{class:{[i]:!0,[`${t}-row-expanded`]:a,[`${t}-row-collapsed`]:!a},onClick:o},null)}function Xm(e,t,n){const r=[];function a(l){(l||[]).forEach((i,o)=>{r.push(t(i,o)),a(i[n])})}return a(e),r}const Qm=Be({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:r}=t;const a=dn(),l=ye(0),i=ye(0),o=ye(0);et(()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,o.value=l.value&&i.value*(i.value/l.value)},{flush:"post"});const f=ye(),[u,p]=fd({scrollLeft:0,isHiddenScrollBar:!0}),S=Ee({delta:0,x:0}),b=ye(!1),g=()=>{b.value=!1},v=c=>{S.value={delta:c.pageX-u.value.scrollLeft,x:0},b.value=!0,c.preventDefault()},m=c=>{const{buttons:d}=c||(window==null?void 0:window.event);if(!b.value||d===0){b.value&&(b.value=!1);return}let A=S.value.x+c.pageX-S.value.x-S.value.delta;A<=0&&(A=0),A+o.value>=i.value&&(A=i.value-o.value),n("scroll",{scrollLeft:A/i.value*(l.value+2)}),S.value.x=c.pageX},h=()=>{if(!e.scrollBodyRef.value)return;const c=Bl(e.scrollBodyRef.value).top,d=c+e.scrollBodyRef.value.offsetHeight,A=e.container===window?document.documentElement.scrollTop+window.innerHeight:Bl(e.container).top+e.container.clientHeight;d-wl()<=A||c>=A-e.offsetScroll?p(B=>L(L({},B),{isHiddenScrollBar:!0})):p(B=>L(L({},B),{isHiddenScrollBar:!1}))};r({setScrollLeft:c=>{p(d=>L(L({},d),{scrollLeft:c/l.value*i.value||0}))}});let y=null,C=null,w=null,T=null;gt(()=>{y=_n(document.body,"mouseup",g,!1),C=_n(document.body,"mousemove",m,!1),w=_n(window,"resize",h,!1)}),ip(()=>{St(()=>{h()})}),gt(()=>{setTimeout(()=>{ke([o,b],()=>{h()},{immediate:!0,flush:"post"})})}),ke(()=>e.container,()=>{T==null||T.remove(),T=_n(e.container,"scroll",h,!1)},{immediate:!0,flush:"post"}),Rt(()=>{y==null||y.remove(),C==null||C.remove(),T==null||T.remove(),w==null||w.remove()}),ke(()=>L({},u.value),(c,d)=>{c.isHiddenScrollBar!==(d==null?void 0:d.isHiddenScrollBar)&&!c.isHiddenScrollBar&&p(A=>{const B=e.scrollBodyRef.value;return B?L(L({},A),{scrollLeft:B.scrollLeft/B.scrollWidth*B.clientWidth}):A})},{immediate:!0});const x=wl();return()=>{if(l.value<=i.value||!o.value||u.value.isHiddenScrollBar)return null;const{prefixCls:c}=a;return P("div",{style:{height:`${x}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${c}-sticky-scroll`},[P("div",{onMousedown:v,ref:f,class:we(`${c}-sticky-scroll-bar`,{[`${c}-sticky-scroll-bar-active`]:b.value}),style:{width:`${o.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),fs=ju()?window:null;function Ym(e,t){return H(()=>{const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:a=0,getContainer:l=()=>fs}=typeof e.value=="object"?e.value:{},i=l()||fs,o=!!e.value;return{isSticky:o,stickyClassName:o?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:a,container:i}})}function Jm(e,t){return H(()=>{const n=[],r=e.value,a=t.value;for(let l=0;ll.isSticky&&!e.fixHeader?0:l.scrollbarSize),o=Ee(),f=m=>{const{currentTarget:h,deltaX:s}=m;s&&(a("scroll",{currentTarget:h,scrollLeft:h.scrollLeft+s}),m.preventDefault())},u=Ee();gt(()=>{St(()=>{u.value=_n(o.value,"wheel",f)})}),Rt(()=>{var m;(m=u.value)===null||m===void 0||m.remove()});const p=H(()=>e.flattenColumns.every(m=>m.width&&m.width!==0&&m.width!=="0px")),S=Ee([]),b=Ee([]);et(()=>{const m=e.flattenColumns[e.flattenColumns.length-1],h={fixed:m?m.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};S.value=i.value?[...e.columns,h]:e.columns,b.value=i.value?[...e.flattenColumns,h]:e.flattenColumns});const g=H(()=>{const{stickyOffsets:m,direction:h}=e,{right:s,left:y}=m;return L(L({},m),{left:h==="rtl"?[...y.map(C=>C+i.value),0]:y,right:h==="rtl"?s:[...s.map(C=>C+i.value),0],isSticky:l.isSticky})}),v=Jm(st(e,"colWidths"),st(e,"columCount"));return()=>{var m;const{noData:h,columCount:s,stickyTopOffset:y,stickyBottomOffset:C,stickyClassName:w,maxContentScroll:T}=e,{isSticky:x}=l;return P("div",{style:L({overflow:"hidden"},x?{top:`${y}px`,bottom:`${C}px`}:{}),ref:o,class:we(n.class,{[w]:!!w})},[P("table",{style:{tableLayout:"fixed",visibility:h||v.value?null:"hidden"}},[(!h||!T||p.value)&&P(pd,{colWidths:v.value?[...v.value,i.value]:[],columCount:s+1,columns:b.value},null),(m=r.default)===null||m===void 0?void 0:m.call(r,L(L({},e),{stickyOffsets:g.value,columns:S.value,flattenColumns:b.value}))])])}}});function hs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r[a,st(e,a)])))}const Zm=[],ey={},yi="rc-table-internal-hook",ty=Be({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:r,emit:a}=t;const l=H(()=>e.data||Zm),i=H(()=>!!l.value.length),o=H(()=>fm(e.components,{})),f=(te,ue)=>nd(o.value,te)||ue,u=H(()=>{const te=e.rowKey;return typeof te=="function"?te:ue=>ue&&ue[te]}),p=H(()=>e.expandIcon||Gm),S=H(()=>e.childrenColumnName||"children"),b=H(()=>e.expandedRowRender?"row":e.canExpandable||l.value.some(te=>te&&typeof te=="object"&&te[S.value])?"nest":!1),g=ye([]);et(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Xm(l.value,u.value,S.value))})();const m=H(()=>new Set(e.expandedRowKeys||g.value||[])),h=te=>{const ue=u.value(te,l.value.indexOf(te));let Ae;const De=m.value.has(ue);De?(m.value.delete(ue),Ae=[...m.value]):Ae=[...m.value,ue],g.value=Ae,a("expand",!De,te),a("update:expandedRowKeys",Ae),a("expandedRowsChange",Ae)},s=Ee(0),[y,C]=Lm(L(L({},Vr(e)),{expandable:H(()=>!!e.expandedRowRender),expandedKeys:m,getRowKey:u,onTriggerExpand:h,expandIcon:p}),H(()=>e.internalHooks===yi?e.transformColumns:null)),w=H(()=>({columns:y.value,flattenColumns:C.value})),T=Ee(),x=Ee(),c=Ee(),d=Ee({scrollWidth:0,clientWidth:0}),A=Ee(),[B,O]=Cn(!1),[_,k]=Cn(!1),[M,V]=fd(new Map),q=H(()=>Sa(C.value)),Q=H(()=>q.value.map(te=>M.value.get(te))),X=H(()=>C.value.length),K=Km(Q,X,st(e,"direction")),j=H(()=>e.scroll&&hi(e.scroll.y)),Z=H(()=>e.scroll&&hi(e.scroll.x)||!!e.expandFixed),G=H(()=>Z.value&&C.value.some(te=>{let{fixed:ue}=te;return ue})),se=Ee(),J=Ym(st(e,"sticky"),st(e,"prefixCls")),he=Ht({}),re=H(()=>{const te=Object.values(he)[0];return(j.value||J.value.isSticky)&&te}),_e=(te,ue)=>{ue?he[te]=ue:delete he[te]},be=Ee({}),I=Ee({}),R=Ee({});et(()=>{j.value&&(I.value={overflowY:"scroll",maxHeight:Il(e.scroll.y)}),Z.value&&(be.value={overflowX:"auto"},j.value||(I.value={overflowY:"hidden"}),R.value={width:e.scroll.x===!0?"auto":Il(e.scroll.x),minWidth:"100%"})});const $=(te,ue)=>{Qf(T.value)&&V(Ae=>{if(Ae.get(te)!==ue){const De=new Map(Ae);return De.set(te,ue),De}return Ae})},[E,N]=Fm();function W(te,ue){if(!ue)return;if(typeof ue=="function"){ue(te);return}const Ae=ue.$el||ue;Ae.scrollLeft!==te&&(Ae.scrollLeft=te)}const z=te=>{let{currentTarget:ue,scrollLeft:Ae}=te;var De;const Le=e.direction==="rtl",ce=typeof Ae=="number"?Ae:ue.scrollLeft,ge=ue||ey;if((!N()||N()===ge)&&(E(ge),W(ce,x.value),W(ce,c.value),W(ce,A.value),W(ce,(De=se.value)===null||De===void 0?void 0:De.setScrollLeft)),ue){const{scrollWidth:ve,clientWidth:Se}=ue;Le?(O(-ce0)):(O(ce>0),k(ce{Z.value&&c.value?z({currentTarget:c.value}):(O(!1),k(!1))};let de;const oe=te=>{te!==s.value&&(Y(),s.value=T.value?T.value.offsetWidth:te)},ee=te=>{let{width:ue}=te;if(clearTimeout(de),s.value===0){oe(ue);return}de=setTimeout(()=>{oe(ue)},100)};ke([Z,()=>e.data,()=>e.columns],()=>{Z.value&&Y()},{flush:"post"});const[pe,Te]=Cn(0);ym(),gt(()=>{St(()=>{var te,ue;Y(),Te(Xf(c.value).width),d.value={scrollWidth:((te=c.value)===null||te===void 0?void 0:te.scrollWidth)||0,clientWidth:((ue=c.value)===null||ue===void 0?void 0:ue.clientWidth)||0}})}),Sr(()=>{St(()=>{var te,ue;const Ae=((te=c.value)===null||te===void 0?void 0:te.scrollWidth)||0,De=((ue=c.value)===null||ue===void 0?void 0:ue.clientWidth)||0;(d.value.scrollWidth!==Ae||d.value.clientWidth!==De)&&(d.value={scrollWidth:Ae,clientWidth:De})})}),et(()=>{e.internalHooks===yi&&e.internalRefs&&e.onUpdateInternalRefs({body:c.value?c.value.$el||c.value:null})},{flush:"post"});const Ie=H(()=>e.tableLayout?e.tableLayout:G.value?e.scroll.x==="max-content"?"auto":"fixed":j.value||J.value.isSticky||C.value.some(te=>{let{ellipsis:ue}=te;return ue})?"fixed":"auto"),xe=()=>{var te;return i.value?null:((te=r.emptyText)===null||te===void 0?void 0:te.call(r))||"No Data"};cm(Ht(L(L({},Vr(hs(e,"prefixCls","direction","transformCellText"))),{getComponent:f,scrollbarSize:pe,fixedInfoList:H(()=>C.value.map((te,ue)=>Zi(ue,ue,C.value,K.value,e.direction))),isSticky:H(()=>J.value.isSticky),summaryCollect:_e}))),$m(Ht(L(L({},Vr(hs(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:y,flattenColumns:C,tableLayout:Ie,expandIcon:p,expandableType:b,onTriggerExpand:h}))),Om({onColumnResize:$}),Tm({componentWidth:s,fixHeader:j,fixColumn:G,horizonScroll:Z});const Fe=()=>P(Pm,{data:l.value,measureColumnWidth:j.value||Z.value||J.value.isSticky,expandedKeys:m.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:S.value},{emptyNode:xe}),le=()=>P(pd,{colWidths:C.value.map(te=>{let{width:ue}=te;return ue}),columns:C.value},null);return()=>{var te;const{prefixCls:ue,scroll:Ae,tableLayout:De,direction:Le,title:ce=r.title,footer:ge=r.footer,id:ve,showHeader:Se,customHeaderRow:Oe}=e,{isSticky:Pe,offsetHeader:$e,offsetSummary:Ke,offsetScroll:He,stickyClassName:Ue,container:Ve}=J.value,We=f(["table"],"table"),ut=f(["body"]),mt=(te=r.summary)===null||te===void 0?void 0:te.call(r,{pageData:l.value});let Qe=()=>null;const Ge={colWidths:Q.value,columCount:C.value.length,stickyOffsets:K.value,customHeaderRow:Oe,fixHeader:j.value,scroll:Ae};if(j.value||Pe){let tt=()=>null;typeof ut=="function"?(tt=()=>ut(l.value,{scrollbarSize:pe.value,ref:c,onScroll:z}),Ge.colWidths=C.value.map((nt,ft)=>{let{width:ct}=nt;const lt=ft===y.value.length-1?ct-pe.value:ct;return typeof lt=="number"&&!Number.isNaN(lt)?lt:0})):tt=()=>P("div",{style:L(L({},be.value),I.value),onScroll:z,ref:c,class:we(`${ue}-body`)},[P(We,{style:L(L({},R.value),{tableLayout:Ie.value})},{default:()=>[le(),Fe(),!re.value&&mt&&P(Lr,{stickyOffsets:K.value,flattenColumns:C.value},{default:()=>[mt]})]})]);const rt=L(L(L({noData:!l.value.length,maxContentScroll:Z.value&&Ae.x==="max-content"},Ge),w.value),{direction:Le,stickyClassName:Ue,onScroll:z});Qe=()=>P(It,null,[Se!==!1&&P(ps,ie(ie({},rt),{},{stickyTopOffset:$e,class:`${ue}-header`,ref:x}),{default:nt=>P(It,null,[P(ds,nt,null),re.value==="top"&&P(Lr,nt,{default:()=>[mt]})])}),tt(),re.value&&re.value!=="top"&&P(ps,ie(ie({},rt),{},{stickyBottomOffset:Ke,class:`${ue}-summary`,ref:A}),{default:nt=>P(Lr,nt,{default:()=>[mt]})}),Pe&&c.value&&P(Qm,{ref:se,offsetScroll:He,scrollBodyRef:c,onScroll:z,container:Ve,scrollBodySizeInfo:d.value},null)])}else Qe=()=>P("div",{style:L(L({},be.value),I.value),class:we(`${ue}-content`),onScroll:z,ref:c},[P(We,{style:L(L({},R.value),{tableLayout:Ie.value})},{default:()=>[le(),Se!==!1&&P(ds,ie(ie({},Ge),w.value),null),Fe(),mt&&P(Lr,{stickyOffsets:K.value,flattenColumns:C.value},{default:()=>[mt]})]})]);const Ye=rr(n,{aria:!0,data:!0}),Ze=()=>P("div",ie(ie({},Ye),{},{class:we(ue,{[`${ue}-rtl`]:Le==="rtl",[`${ue}-ping-left`]:B.value,[`${ue}-ping-right`]:_.value,[`${ue}-layout-fixed`]:De==="fixed",[`${ue}-fixed-header`]:j.value,[`${ue}-fixed-column`]:G.value,[`${ue}-scroll-horizontal`]:Z.value,[`${ue}-has-fix-left`]:C.value[0]&&C.value[0].fixed,[`${ue}-has-fix-right`]:C.value[X.value-1]&&C.value[X.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:ve,ref:T}),[ce&&P(mi,{class:`${ue}-title`},{default:()=>[ce(l.value)]}),P("div",{class:`${ue}-container`},[Qe()]),ge&&P(mi,{class:`${ue}-footer`},{default:()=>[ge(l.value)]})]);return Z.value?P(da,{onResize:ee},{default:Ze}):Ze()}}});function ny(){const e=L({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e}const bi=10;function ry(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const l=e[a];typeof l!="function"&&(n[a]=l)}),n}function ay(e,t,n){const r=H(()=>t.value&&typeof t.value=="object"?t.value:{}),a=H(()=>r.value.total||0),[l,i]=Cn(()=>({current:"defaultCurrent"in r.value?r.value.defaultCurrent:1,pageSize:"defaultPageSize"in r.value?r.value.defaultPageSize:bi})),o=H(()=>{const p=ny(l.value,r.value,{total:a.value>0?a.value:e.value}),S=Math.ceil((a.value||e.value)/p.pageSize);return p.current>S&&(p.current=S||1),p}),f=(p,S)=>{t.value!==!1&&i({current:p??1,pageSize:S||o.value.pageSize})},u=(p,S)=>{var b,g;t.value&&((g=(b=r.value).onChange)===null||g===void 0||g.call(b,p,S)),f(p,S),n(p,S||o.value.pageSize)};return[H(()=>t.value===!1?{}:L(L({},o.value),{onChange:u})),f]}function oy(e,t,n){const r=ye({});ke([e,t,n],()=>{const l=new Map,i=n.value,o=t.value;function f(u){u.forEach((p,S)=>{const b=i(p,S);l.set(b,p),p&&typeof p=="object"&&o in p&&f(p[o]||[])})}f(e.value),r.value={kvMap:l}},{deep:!0,immediate:!0});function a(l){return r.value.kvMap.get(l)}return[a]}const mn={},Ci="SELECT_ALL",xi="SELECT_INVERT",Si="SELECT_NONE",iy=[];function gd(e,t){let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[...n,...gd(e,r[e])])}),n}function ly(e,t){const n=H(()=>{const A=e.value||{},{checkStrictly:B=!0}=A;return L(L({},A),{checkStrictly:B})}),[r,a]=ii(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||iy,{value:H(()=>n.value.selectedRowKeys)}),l=ye(new Map),i=A=>{if(n.value.preserveSelectedRowKeys){const B=new Map;A.forEach(O=>{let _=t.getRecordByKey(O);!_&&l.value.has(O)&&(_=l.value.get(O)),B.set(O,_)}),l.value=B}};et(()=>{i(r.value)});const o=H(()=>n.value.checkStrictly?null:Gi(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),f=H(()=>gd(t.childrenColumnName.value,t.pageData.value)),u=H(()=>{const A=new Map,B=t.getRowKey.value,O=n.value.getCheckboxProps;return f.value.forEach((_,k)=>{const M=B(_,k),V=(O?O(_):null)||{};A.set(M,V)}),A}),{maxLevel:p,levelEntities:S}=zc(o),b=A=>{var B;return!!(!((B=u.value.get(t.getRowKey.value(A)))===null||B===void 0)&&B.disabled)},g=H(()=>{if(n.value.checkStrictly)return[r.value||[],[]];const{checkedKeys:A,halfCheckedKeys:B}=Zn(r.value,!0,o.value,p.value,S.value,b);return[A||[],B]}),v=H(()=>g.value[0]),m=H(()=>g.value[1]),h=H(()=>{const A=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(A)}),s=H(()=>n.value.type==="radio"?new Set:new Set(m.value)),[y,C]=Cn(null),w=A=>{let B,O;i(A);const{preserveSelectedRowKeys:_,onChange:k}=n.value,{getRecordByKey:M}=t;_?(B=A,O=A.map(V=>l.value.get(V))):(B=[],O=[],A.forEach(V=>{const q=M(V);q!==void 0&&(B.push(V),O.push(q))})),a(B),k==null||k(B,O)},T=(A,B,O,_)=>{const{onSelect:k}=n.value,{getRecordByKey:M}=t;if(k){const V=O.map(q=>M(q));k(M(A),B,V,_)}w(O)},x=H(()=>{const{onSelectInvert:A,onSelectNone:B,selections:O,hideSelectAll:_}=n.value,{data:k,pageData:M,getRowKey:V,locale:q}=t;return!O||_?null:(O===!0?[Ci,xi,Si]:O).map(X=>X===Ci?{key:"all",text:q.value.selectionAll,onSelect(){w(k.value.map((K,j)=>V.value(K,j)).filter(K=>{const j=u.value.get(K);return!(j!=null&&j.disabled)||h.value.has(K)}))}}:X===xi?{key:"invert",text:q.value.selectInvert,onSelect(){const K=new Set(h.value);M.value.forEach((Z,G)=>{const se=V.value(Z,G),J=u.value.get(se);J!=null&&J.disabled||(K.has(se)?K.delete(se):K.add(se))});const j=Array.from(K);A&&(Xt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),A(j)),w(j)}}:X===Si?{key:"none",text:q.value.selectNone,onSelect(){B==null||B(),w(Array.from(h.value).filter(K=>{const j=u.value.get(K);return j==null?void 0:j.disabled}))}}:X)}),c=H(()=>f.value.length);return[A=>{var B;const{onSelectAll:O,onSelectMultiple:_,columnWidth:k,type:M,fixed:V,renderCell:q,hideSelectAll:Q,checkStrictly:X}=n.value,{prefixCls:K,getRecordByKey:j,getRowKey:Z,expandType:G,getPopupContainer:se}=t;if(!e.value)return A.filter(oe=>oe!==mn);let J=A.slice();const he=new Set(h.value),re=f.value.map(Z.value).filter(oe=>!u.value.get(oe).disabled),_e=re.every(oe=>he.has(oe)),be=re.some(oe=>he.has(oe)),I=()=>{const oe=[];_e?re.forEach(pe=>{he.delete(pe),oe.push(pe)}):re.forEach(pe=>{he.has(pe)||(he.add(pe),oe.push(pe))});const ee=Array.from(he);O==null||O(!_e,ee.map(pe=>j(pe)),oe.map(pe=>j(pe))),w(ee)};let R;if(M!=="radio"){let oe;if(x.value){const xe=P(na,{getPopupContainer:se.value},{default:()=>[x.value.map((Fe,le)=>{const{key:te,text:ue,onSelect:Ae}=Fe;return P(na.Item,{key:te||le,onClick:()=>{Ae==null||Ae(re)}},{default:()=>[ue]})})]});oe=P("div",{class:`${K.value}-selection-extra`},[P(An,{overlay:xe,getPopupContainer:se.value},{default:()=>[P("span",null,[P(ga,null,null)])]})])}const ee=f.value.map((xe,Fe)=>{const le=Z.value(xe,Fe),te=u.value.get(le)||{};return L({checked:he.has(le)},te)}).filter(xe=>{let{disabled:Fe}=xe;return Fe}),pe=!!ee.length&&ee.length===c.value,Te=pe&&ee.every(xe=>{let{checked:Fe}=xe;return Fe}),Ie=pe&&ee.some(xe=>{let{checked:Fe}=xe;return Fe});R=!Q&&P("div",{class:`${K.value}-selection`},[P(xn,{checked:pe?Te:!!c.value&&_e,indeterminate:pe?!Te&&Ie:!_e&&be,onChange:I,disabled:c.value===0||pe,"aria-label":oe?"Custom selection":"Select all",skipGroup:!0},null),oe])}let $;M==="radio"?$=oe=>{let{record:ee,index:pe}=oe;const Te=Z.value(ee,pe),Ie=he.has(Te);return{node:P(Vt,ie(ie({},u.value.get(Te)),{},{checked:Ie,onClick:xe=>xe.stopPropagation(),onChange:xe=>{he.has(Te)||T(Te,!0,[Te],xe.nativeEvent)}}),null),checked:Ie}}:$=oe=>{let{record:ee,index:pe}=oe;var Te;const Ie=Z.value(ee,pe),xe=he.has(Ie),Fe=s.value.has(Ie),le=u.value.get(Ie);let te;return G.value==="nest"?(te=Fe,Xt(typeof(le==null?void 0:le.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):te=(Te=le==null?void 0:le.indeterminate)!==null&&Te!==void 0?Te:Fe,{node:P(xn,ie(ie({},le),{},{indeterminate:te,checked:xe,skipGroup:!0,onClick:ue=>ue.stopPropagation(),onChange:ue=>{let{nativeEvent:Ae}=ue;const{shiftKey:De}=Ae;let Le=-1,ce=-1;if(De&&X){const ge=new Set([y.value,Ie]);re.some((ve,Se)=>{if(ge.has(ve))if(Le===-1)Le=Se;else return ce=Se,!0;return!1})}if(ce!==-1&&Le!==ce&&X){const ge=re.slice(Le,ce+1),ve=[];xe?ge.forEach(Oe=>{he.has(Oe)&&(ve.push(Oe),he.delete(Oe))}):ge.forEach(Oe=>{he.has(Oe)||(ve.push(Oe),he.add(Oe))});const Se=Array.from(he);_==null||_(!xe,Se.map(Oe=>j(Oe)),ve.map(Oe=>j(Oe))),w(Se)}else{const ge=v.value;if(X){const ve=xe?sn(ge,Ie):vn(ge,Ie);T(Ie,!xe,ve,Ae)}else{const ve=Zn([...ge,Ie],!0,o.value,p.value,S.value,b),{checkedKeys:Se,halfCheckedKeys:Oe}=ve;let Pe=Se;if(xe){const $e=new Set(Se);$e.delete(Ie),Pe=Zn(Array.from($e),{checked:!1,halfCheckedKeys:Oe},o.value,p.value,S.value,b).checkedKeys}T(Ie,!xe,Pe,Ae)}}C(Ie)}}),null),checked:xe}};const E=oe=>{let{record:ee,index:pe}=oe;const{node:Te,checked:Ie}=$({record:ee,index:pe});return q?q(Ie,ee,pe,Te):Te};if(!J.includes(mn))if(J.findIndex(oe=>{var ee;return((ee=oe[er])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"})===0){const[oe,...ee]=J;J=[oe,mn,...ee]}else J=[mn,...J];const N=J.indexOf(mn);J=J.filter((oe,ee)=>oe!==mn||ee===N);const W=J[N-1],z=J[N+1];let Y=V;Y===void 0&&((z==null?void 0:z.fixed)!==void 0?Y=z.fixed:(W==null?void 0:W.fixed)!==void 0&&(Y=W.fixed)),Y&&W&&((B=W[er])===null||B===void 0?void 0:B.columnType)==="EXPAND_COLUMN"&&W.fixed===void 0&&(W.fixed=Y);const de={fixed:Y,width:k,className:`${K.value}-selection-column`,title:n.value.columnTitle||R,customRender:E,[er]:{class:`${K.value}-selection-col`}};return J.map(oe=>oe===mn?de:oe)},h]}var sy={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function gs(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=xr(e),n=[];return t.forEach(r=>{var a,l,i,o;if(!r)return;const f=r.key,u=((a=r.props)===null||a===void 0?void 0:a.style)||{},p=((l=r.props)===null||l===void 0?void 0:l.class)||"",S=r.props||{};for(const[h,s]of Object.entries(S))S[ac(h)]=s;const b=r.children||{},{default:g}=b,v=fy(b,["default"]),m=L(L(L({},v),S),{style:u,class:p});if(f&&(m.key=f),!((i=r.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)m.children=vd(typeof g=="function"?g():g);else{const h=(o=r.children)===null||o===void 0?void 0:o.default;m.customRender=m.customRender||h}n.push(m)}),n}const qr="ascend",Ja="descend";function sa(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function ms(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function py(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Ei(e,t,n){let r=[];function a(l,i){r.push({column:l,key:Kn(l,i),multiplePriority:sa(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,i)=>{const o=Ar(i,n);l.children?("sortOrder"in l&&a(l,o),r=[...r,...Ei(l.children,t,o)]):l.sorter&&("sortOrder"in l?a(l,o):t&&l.defaultSortOrder&&r.push({column:l,key:Kn(l,o),multiplePriority:sa(l),sortOrder:l.defaultSortOrder}))}),r}function md(e,t,n,r,a,l,i,o){return(t||[]).map((f,u)=>{const p=Ar(u,o);let S=f;if(S.sorter){const b=S.sortDirections||a,g=S.showSorterTooltip===void 0?i:S.showSorterTooltip,v=Kn(S,p),m=n.find(A=>{let{key:B}=A;return B===v}),h=m?m.sortOrder:null,s=py(b,h),y=b.includes(qr)&&P(tl,{class:we(`${e}-column-sorter-up`,{active:h===qr}),role:"presentation"},null),C=b.includes(Ja)&&P(el,{role:"presentation",class:we(`${e}-column-sorter-down`,{active:h===Ja})},null),{cancelSort:w,triggerAsc:T,triggerDesc:x}=l||{};let c=w;s===Ja?c=x:s===qr&&(c=T);const d=typeof g=="object"?g:{title:c};S=L(L({},S),{className:we(S.className,{[`${e}-column-sort`]:h}),title:A=>{const B=P("div",{class:`${e}-column-sorters`},[P("span",{class:`${e}-column-title`},[nl(f.title,A)]),P("span",{class:we(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(y&&C)})},[P("span",{class:`${e}-column-sorter-inner`},[y,C])])]);return g?P(lc,d,{default:()=>[B]}):B},customHeaderCell:A=>{const B=f.customHeaderCell&&f.customHeaderCell(A)||{},O=B.onClick,_=B.onKeydown;return B.onClick=k=>{r({column:f,key:v,sortOrder:s,multiplePriority:sa(f)}),O&&O(k)},B.onKeydown=k=>{k.keyCode===Me.ENTER&&(r({column:f,key:v,sortOrder:s,multiplePriority:sa(f)}),_==null||_(k))},h&&(B["aria-sort"]=h==="ascend"?"ascending":"descending"),B.class=we(B.class,`${e}-column-has-sorters`),B.tabindex=0,B}})}return"children"in S&&(S=L(L({},S),{children:md(e,S.children,n,r,a,l,i,p)})),S})}function ys(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function bs(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(ys);return t.length===0&&e.length?L(L({},ys(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function wi(e,t,n){const r=t.slice().sort((i,o)=>o.multiplePriority-i.multiplePriority),a=e.slice(),l=r.filter(i=>{let{column:{sorter:o},sortOrder:f}=i;return ms(o)&&f});return l.length?a.sort((i,o)=>{for(let f=0;f{const o=i[n];return o?L(L({},i),{[n]:wi(o,t,n)}):i}):a}function hy(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:a,tableLocale:l,showSorterTooltip:i}=e;const[o,f]=Cn(Ei(n.value,!0)),u=H(()=>{let v=!0;const m=Ei(n.value,!1);if(!m.length)return o.value;const h=[];function s(C){v?h.push(C):h.push(L(L({},C),{sortOrder:null}))}let y=null;return m.forEach(C=>{y===null?(s(C),C.sortOrder&&(C.multiplePriority===!1?v=!1:y=!0)):(y&&C.multiplePriority!==!1||(v=!1),s(C))}),h}),p=H(()=>{const v=u.value.map(m=>{let{column:h,sortOrder:s}=m;return{column:h,order:s}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function S(v){let m;v.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?m=[v]:m=[...u.value.filter(h=>{let{key:s}=h;return s!==v.key}),v],f(m),r(bs(m),m)}const b=v=>md(t.value,v,u.value,S,a.value,l.value,i.value),g=H(()=>bs(u.value));return[b,u,p,g]}var gy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function Cs(e){for(var t=1;t{const{keyCode:t}=e;t===Me.ENTER&&e.stopPropagation()},yy=(e,t)=>{let{slots:n}=t;var r;return P("div",{onClick:a=>a.stopPropagation(),onKeydown:my},[(r=n.default)===null||r===void 0?void 0:r.call(n)])},xs=Be({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:dt(),onChange:je(),filterSearch:Pt([Boolean,Function]),tablePrefixCls:dt(),locale:Bt()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:r,tablePrefixCls:a,locale:l}=e;return r?P("div",{class:`${a}-filter-dropdown-search`},[P(Nt,{placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${a}-filter-dropdown-search-input`},{prefix:()=>P(Ir,null,null)})]):null}}});var Ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae.motion?e.motion:Yf()),f=(u,p)=>{var S,b,g,v;p==="appear"?(b=(S=o.value)===null||S===void 0?void 0:S.onAfterEnter)===null||b===void 0||b.call(S,u):p==="leave"&&((v=(g=o.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,u)),i.value||e.onMotionEnd(),i.value=!0};return ke(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&a.value&&St(()=>{a.value=!1})},{immediate:!0,flush:"post"}),gt(()=>{e.motionNodes&&e.onMotionStart()}),Rt(()=>{e.motionNodes&&f()}),()=>{const{motion:u,motionNodes:p,motionType:S,active:b,eventKey:g}=e,v=Ss(e,["motion","motionNodes","motionType","active","eventKey"]);return p?P(ti,ie(ie({},o.value),{},{appear:S==="show",onAfterAppear:m=>f(m,"appear"),onAfterLeave:m=>f(m,"leave")}),{default:()=>[ni(P("div",{class:`${l.value.prefixCls}-treenode-motion`},[p.map(m=>{const h=Ss(m.data,[]),{title:s,key:y,isStart:C,isEnd:w}=m;return delete h.children,P(si,ie(ie({},h),{},{title:s,active:b,data:m.data,key:y,eventKey:y,isStart:C,isEnd:w}),r)})]),[[ri,a.value]])]}):P(si,ie(ie({class:n.class,style:n.style},v),{},{active:b,eventKey:g}),r)}}});function Cy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(l,i){const o=new Map;l.forEach(u=>{o.set(u,!0)});const f=i.filter(u=>!o.has(u));return f.length===1?f[0]:null}return ni.key===n),a=e[r+1],l=t.findIndex(i=>i.key===n);if(a){const i=t.findIndex(o=>o.key===a.key);return t.slice(l+1,i)}return t.slice(l+1)}var ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{},Mn=`RC_TREE_MOTION_${Math.random()}`,Ii={key:Mn},yd={key:Mn,level:0,index:0,pos:"0",node:Ii,nodes:[Ii]},Ts={parent:null,children:[],pos:yd.pos,data:Ii,title:null,key:Mn,isStart:[],isEnd:[]};function As(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Bs(e){const{key:t,pos:n}=e;return Tr(t,n)}function Sy(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const Ey=Be({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:q0,setup(e,t){let{expose:n,attrs:r}=t;const a=Ee(),l=Ee(),{expandedKeys:i,flattenNodes:o}=Fc();n({scrollTo:m=>{a.value.scrollTo(m)},getIndentWidth:()=>l.value.offsetWidth});const f=ye(o.value),u=ye([]),p=Ee(null);function S(){f.value=o.value,u.value=[],p.value=null,e.onListChangeEnd()}const b=Wi();ke([()=>i.value.slice(),o],(m,h)=>{let[s,y]=m,[C,w]=h;const T=Cy(C,s);if(T.key!==null){const{virtual:x,height:c,itemHeight:d}=e;if(T.add){const A=w.findIndex(_=>{let{key:k}=_;return k===T.key}),B=As(Es(w,y,T.key),x,c,d),O=w.slice();O.splice(A+1,0,Ts),f.value=O,u.value=B,p.value="show"}else{const A=y.findIndex(_=>{let{key:k}=_;return k===T.key}),B=As(Es(y,w,T.key),x,c,d),O=y.slice();O.splice(A+1,0,Ts),f.value=O,u.value=B,p.value="hide"}}else w!==y&&(f.value=y)}),ke(()=>b.value.dragging,m=>{m||S()});const g=H(()=>e.motion===void 0?f.value:o.value),v=()=>{e.onActiveChange(null)};return()=>{const m=L(L({},e),r),{prefixCls:h,selectable:s,checkable:y,disabled:C,motion:w,height:T,itemHeight:x,virtual:c,focusable:d,activeItem:A,focused:B,tabindex:O,onKeydown:_,onFocus:k,onBlur:M,onListChangeStart:V,onListChangeEnd:q}=m,Q=ws(m,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return P(It,null,[B&&A&&P("span",{style:Is,"aria-live":"assertive"},[Sy(A)]),P("div",null,[P("input",{style:Is,disabled:d===!1||C,tabindex:d!==!1?O:null,onKeydown:_,onFocus:k,onBlur:M,value:"",onChange:xy,"aria-label":"for screen reader"},null)]),P("div",{class:`${h}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[P("div",{class:`${h}-indent`},[P("div",{ref:l,class:`${h}-indent-unit`},null)])]),P(yc,ie(ie({},Et(Q,["onActiveChange"])),{},{data:g.value,itemKey:Bs,height:T,fullHeight:!1,virtual:c,itemHeight:x,prefixCls:`${h}-list`,ref:a,onVisibleChange:(X,K)=>{const j=new Set(X);K.filter(G=>!j.has(G)).some(G=>Bs(G)===Mn)&&S()}}),{default:X=>{const{pos:K}=X,j=ws(X.data,[]),{title:Z,key:G,isStart:se,isEnd:J}=X,he=Tr(G,K);return delete j.key,delete j.children,P(by,ie(ie({},j),{},{eventKey:he,title:Z,active:!!A&&G===A.key,data:X.data,isStart:se,isEnd:J,motion:w,motionNodes:G===Mn?u.value:null,motionType:p.value,onMotionStart:V,onMotionEnd:S,onMousemove:v}),null)}})])}}});function wy(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e;const a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:a.top=0,a.left=`${-n*r}px`;break;case 1:a.bottom=0,a.left=`${-n*r}px`;break;case 0:a.bottom=0,a.left=`${r}`;break}return P("div",{style:a},null)}const Iy=10,Ty=Be({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:kt(Mc(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wy,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:r,expose:a}=t;const l=ye(!1);let i={};const o=ye(),f=ye([]),u=ye([]),p=ye([]),S=ye([]),b=ye([]),g=ye([]),v={},m=Ht({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=ye([]);ke([()=>e.treeData,()=>e.children],()=>{h.value=e.treeData!==void 0?e.treeData.slice():ci(nr(e.children))},{immediate:!0,deep:!0});const s=ye({}),y=ye(!1),C=ye(null),w=ye(!1),T=H(()=>ya(e.fieldNames)),x=ye();let c=null,d=null,A=null;const B=H(()=>({expandedKeysSet:O.value,selectedKeysSet:_.value,loadedKeysSet:k.value,loadingKeysSet:M.value,checkedKeysSet:V.value,halfCheckedKeysSet:q.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:s.value})),O=H(()=>new Set(g.value)),_=H(()=>new Set(f.value)),k=H(()=>new Set(S.value)),M=H(()=>new Set(b.value)),V=H(()=>new Set(u.value)),q=H(()=>new Set(p.value));et(()=>{if(h.value){const ce=Gi(h.value,{fieldNames:T.value});s.value=L({[Mn]:yd},ce.keyEntities)}});let Q=!1;ke([()=>e.expandedKeys,()=>e.autoExpandParent,s],(ce,ge)=>{let[ve,Se]=ce,[Oe,Pe]=ge,$e=g.value;if(e.expandedKeys!==void 0||Q&&Se!==Pe)$e=e.autoExpandParent||!Q&&e.defaultExpandParent?ui(e.expandedKeys,s.value):e.expandedKeys;else if(!Q&&e.defaultExpandAll){const Ke=L({},s.value);delete Ke[Mn],$e=Object.keys(Ke).map(He=>Ke[He].key)}else!Q&&e.defaultExpandedKeys&&($e=e.autoExpandParent||e.defaultExpandParent?ui(e.defaultExpandedKeys,s.value):e.defaultExpandedKeys);$e&&(g.value=$e),Q=!0},{immediate:!0});const X=ye([]);et(()=>{X.value=tg(h.value,g.value,T.value)}),et(()=>{e.selectable&&(e.selectedKeys!==void 0?f.value=Gl(e.selectedKeys,e):!Q&&e.defaultSelectedKeys&&(f.value=Gl(e.defaultSelectedKeys,e)))});const{maxLevel:K,levelEntities:j}=zc(s);et(()=>{if(e.checkable){let ce;if(e.checkedKeys!==void 0?ce=qa(e.checkedKeys)||{}:!Q&&e.defaultCheckedKeys?ce=qa(e.defaultCheckedKeys)||{}:h.value&&(ce=qa(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:p.value}),ce){let{checkedKeys:ge=[],halfCheckedKeys:ve=[]}=ce;e.checkStrictly||({checkedKeys:ge,halfCheckedKeys:ve}=Zn(ge,!0,s.value,K.value,j.value)),u.value=ge,p.value=ve}}}),et(()=>{e.loadedKeys&&(S.value=e.loadedKeys)});const Z=()=>{L(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},G=ce=>{x.value.scrollTo(ce)};ke(()=>e.activeKey,()=>{e.activeKey!==void 0&&(C.value=e.activeKey)},{immediate:!0}),ke(C,ce=>{St(()=>{ce!==null&&G({key:ce})})},{immediate:!0,flush:"post"});const se=ce=>{e.expandedKeys===void 0&&(g.value=ce)},J=()=>{m.draggingNodeKey!==null&&L(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),c=null,A=null},he=(ce,ge)=>{const{onDragend:ve}=e;m.dragOverNodeKey=null,J(),ve==null||ve({event:ce,node:ge.eventData}),d=null},re=ce=>{he(ce,null),window.removeEventListener("dragend",re)},_e=(ce,ge)=>{const{onDragstart:ve}=e,{eventKey:Se,eventData:Oe}=ge;d=ge,c={x:ce.clientX,y:ce.clientY};const Pe=sn(g.value,Se);m.draggingNodeKey=Se,m.dragChildrenKeys=Y0(Se,s.value),o.value=x.value.getIndentWidth(),se(Pe),window.addEventListener("dragend",re),ve&&ve({event:ce,node:Oe})},be=(ce,ge)=>{const{onDragenter:ve,onExpand:Se,allowDrop:Oe,direction:Pe}=e,{pos:$e,eventKey:Ke}=ge;if(A!==Ke&&(A=Ke),!d){Z();return}const{dropPosition:He,dropLevelOffset:Ue,dropTargetKey:Ve,dropContainerKey:We,dropTargetPos:ut,dropAllowed:mt,dragOverNodeKey:Qe}=ql(ce,d,ge,o.value,c,Oe,X.value,s.value,O.value,Pe);if(m.dragChildrenKeys.indexOf(Ve)!==-1||!mt){Z();return}if(i||(i={}),Object.keys(i).forEach(Ge=>{clearTimeout(i[Ge])}),d.eventKey!==ge.eventKey&&(i[$e]=window.setTimeout(()=>{if(m.draggingNodeKey===null)return;let Ge=g.value.slice();const Ye=s.value[ge.eventKey];Ye&&(Ye.children||[]).length&&(Ge=vn(g.value,ge.eventKey)),se(Ge),Se&&Se(Ge,{node:ge.eventData,expanded:!0,nativeEvent:ce})},800)),d.eventKey===Ve&&Ue===0){Z();return}L(m,{dragOverNodeKey:Qe,dropPosition:He,dropLevelOffset:Ue,dropTargetKey:Ve,dropContainerKey:We,dropTargetPos:ut,dropAllowed:mt}),ve&&ve({event:ce,node:ge.eventData,expandedKeys:g.value})},I=(ce,ge)=>{const{onDragover:ve,allowDrop:Se,direction:Oe}=e;if(!d)return;const{dropPosition:Pe,dropLevelOffset:$e,dropTargetKey:Ke,dropContainerKey:He,dropAllowed:Ue,dropTargetPos:Ve,dragOverNodeKey:We}=ql(ce,d,ge,o.value,c,Se,X.value,s.value,O.value,Oe);m.dragChildrenKeys.indexOf(Ke)!==-1||!Ue||(d.eventKey===Ke&&$e===0?m.dropPosition===null&&m.dropLevelOffset===null&&m.dropTargetKey===null&&m.dropContainerKey===null&&m.dropTargetPos===null&&m.dropAllowed===!1&&m.dragOverNodeKey===null||Z():Pe===m.dropPosition&&$e===m.dropLevelOffset&&Ke===m.dropTargetKey&&He===m.dropContainerKey&&Ve===m.dropTargetPos&&Ue===m.dropAllowed&&We===m.dragOverNodeKey||L(m,{dropPosition:Pe,dropLevelOffset:$e,dropTargetKey:Ke,dropContainerKey:He,dropTargetPos:Ve,dropAllowed:Ue,dragOverNodeKey:We}),ve&&ve({event:ce,node:ge.eventData}))},R=(ce,ge)=>{A===ge.eventKey&&!ce.currentTarget.contains(ce.relatedTarget)&&(Z(),A=null);const{onDragleave:ve}=e;ve&&ve({event:ce,node:ge.eventData})},$=function(ce,ge){let ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Se;const{dragChildrenKeys:Oe,dropPosition:Pe,dropTargetKey:$e,dropTargetPos:Ke,dropAllowed:He}=m;if(!He)return;const{onDrop:Ue}=e;if(m.dragOverNodeKey=null,J(),$e===null)return;const Ve=L(L({},zr($e,nr(B.value))),{active:((Se=ue.value)===null||Se===void 0?void 0:Se.key)===$e,data:s.value[$e].node});Oe.indexOf($e);const We=qi(Ke),ut={event:ce,node:Hr(Ve),dragNode:d?d.eventData:null,dragNodesKeys:[d.eventKey].concat(Oe),dropToGap:Pe!==0,dropPosition:Pe+Number(We[We.length-1])};ve||Ue==null||Ue(ut),d=null},E=(ce,ge)=>{const{expanded:ve,key:Se}=ge,Oe=X.value.filter($e=>$e.key===Se)[0],Pe=Hr(L(L({},zr(Se,B.value)),{data:Oe.data}));se(ve?sn(g.value,Se):vn(g.value,Se)),xe(ce,Pe)},N=(ce,ge)=>{const{onClick:ve,expandAction:Se}=e;Se==="click"&&E(ce,ge),ve&&ve(ce,ge)},W=(ce,ge)=>{const{onDblclick:ve,expandAction:Se}=e;(Se==="doubleclick"||Se==="dblclick")&&E(ce,ge),ve&&ve(ce,ge)},z=(ce,ge)=>{let ve=f.value;const{onSelect:Se,multiple:Oe}=e,{selected:Pe}=ge,$e=ge[T.value.key],Ke=!Pe;Ke?Oe?ve=vn(ve,$e):ve=[$e]:ve=sn(ve,$e);const He=s.value,Ue=ve.map(Ve=>{const We=He[Ve];return We?We.node:null}).filter(Ve=>Ve);e.selectedKeys===void 0&&(f.value=ve),Se&&Se(ve,{event:"select",selected:Ke,node:ge,selectedNodes:Ue,nativeEvent:ce})},Y=(ce,ge,ve)=>{const{checkStrictly:Se,onCheck:Oe}=e,Pe=ge[T.value.key];let $e;const Ke={event:"check",node:ge,checked:ve,nativeEvent:ce},He=s.value;if(Se){const Ue=ve?vn(u.value,Pe):sn(u.value,Pe),Ve=sn(p.value,Pe);$e={checked:Ue,halfChecked:Ve},Ke.checkedNodes=Ue.map(We=>He[We]).filter(We=>We).map(We=>We.node),e.checkedKeys===void 0&&(u.value=Ue)}else{let{checkedKeys:Ue,halfCheckedKeys:Ve}=Zn([...u.value,Pe],!0,He,K.value,j.value);if(!ve){const We=new Set(Ue);We.delete(Pe),{checkedKeys:Ue,halfCheckedKeys:Ve}=Zn(Array.from(We),{checked:!1,halfCheckedKeys:Ve},He,K.value,j.value)}$e=Ue,Ke.checkedNodes=[],Ke.checkedNodesPositions=[],Ke.halfCheckedKeys=Ve,Ue.forEach(We=>{const ut=He[We];if(!ut)return;const{node:mt,pos:Qe}=ut;Ke.checkedNodes.push(mt),Ke.checkedNodesPositions.push({node:mt,pos:Qe})}),e.checkedKeys===void 0&&(u.value=Ue,p.value=Ve)}Oe&&Oe($e,Ke)},de=ce=>{const ge=ce[T.value.key],ve=new Promise((Se,Oe)=>{const{loadData:Pe,onLoad:$e}=e;if(!Pe||k.value.has(ge)||M.value.has(ge))return null;Pe(ce).then(()=>{const He=vn(S.value,ge),Ue=sn(b.value,ge);$e&&$e(He,{event:"load",node:ce}),e.loadedKeys===void 0&&(S.value=He),b.value=Ue,Se()}).catch(He=>{const Ue=sn(b.value,ge);if(b.value=Ue,v[ge]=(v[ge]||0)+1,v[ge]>=Iy){const Ve=vn(S.value,ge);e.loadedKeys===void 0&&(S.value=Ve),Se()}Oe(He)}),b.value=vn(b.value,ge)});return ve.catch(()=>{}),ve},oe=(ce,ge)=>{const{onMouseenter:ve}=e;ve&&ve({event:ce,node:ge})},ee=(ce,ge)=>{const{onMouseleave:ve}=e;ve&&ve({event:ce,node:ge})},pe=(ce,ge)=>{const{onRightClick:ve}=e;ve&&(ce.preventDefault(),ve({event:ce,node:ge}))},Te=ce=>{const{onFocus:ge}=e;y.value=!0,ge&&ge(ce)},Ie=ce=>{const{onBlur:ge}=e;y.value=!1,te(null),ge&&ge(ce)},xe=(ce,ge)=>{let ve=g.value;const{onExpand:Se,loadData:Oe}=e,{expanded:Pe}=ge,$e=ge[T.value.key];if(w.value)return;ve.indexOf($e);const Ke=!Pe;if(Ke?ve=vn(ve,$e):ve=sn(ve,$e),se(ve),Se&&Se(ve,{node:ge,expanded:Ke,nativeEvent:ce}),Ke&&Oe){const He=de(ge);He&&He.then(()=>{}).catch(Ue=>{const Ve=sn(g.value,$e);se(Ve),Promise.reject(Ue)})}},Fe=()=>{w.value=!0},le=()=>{setTimeout(()=>{w.value=!1})},te=ce=>{const{onActiveChange:ge}=e;C.value!==ce&&(e.activeKey!==void 0&&(C.value=ce),ce!==null&&G({key:ce}),ge&&ge(ce))},ue=H(()=>C.value===null?null:X.value.find(ce=>{let{key:ge}=ce;return ge===C.value})||null),Ae=ce=>{let ge=X.value.findIndex(Se=>{let{key:Oe}=Se;return Oe===C.value});ge===-1&&ce<0&&(ge=X.value.length),ge=(ge+ce+X.value.length)%X.value.length;const ve=X.value[ge];if(ve){const{key:Se}=ve;te(Se)}else te(null)},De=H(()=>Hr(L(L({},zr(C.value,B.value)),{data:ue.value.data,active:!0}))),Le=ce=>{const{onKeydown:ge,checkable:ve,selectable:Se}=e;switch(ce.which){case Me.UP:{Ae(-1),ce.preventDefault();break}case Me.DOWN:{Ae(1),ce.preventDefault();break}}const Oe=ue.value;if(Oe&&Oe.data){const Pe=Oe.data.isLeaf===!1||!!(Oe.data.children||[]).length,$e=De.value;switch(ce.which){case Me.LEFT:{Pe&&O.value.has(C.value)?xe({},$e):Oe.parent&&te(Oe.parent.key),ce.preventDefault();break}case Me.RIGHT:{Pe&&!O.value.has(C.value)?xe({},$e):Oe.children&&Oe.children.length&&te(Oe.children[0].key),ce.preventDefault();break}case Me.ENTER:case Me.SPACE:{ve&&!$e.disabled&&$e.checkable!==!1&&!$e.disableCheckbox?Y({},$e,!V.value.has(C.value)):!ve&&Se&&!$e.disabled&&$e.selectable!==!1&&z({},$e);break}}}ge&&ge(ce)};return a({onNodeExpand:xe,scrollTo:G,onKeydown:Le,selectedKeys:H(()=>f.value),checkedKeys:H(()=>u.value),halfCheckedKeys:H(()=>p.value),loadedKeys:H(()=>S.value),loadingKeys:H(()=>b.value),expandedKeys:H(()=>g.value)}),ar(()=>{window.removeEventListener("dragend",re),l.value=!0}),j0({expandedKeys:g,selectedKeys:f,loadedKeys:S,loadingKeys:b,checkedKeys:u,halfCheckedKeys:p,expandedKeysSet:O,selectedKeysSet:_,loadedKeysSet:k,loadingKeysSet:M,checkedKeysSet:V,halfCheckedKeysSet:q,flattenNodes:X}),()=>{const{draggingNodeKey:ce,dropLevelOffset:ge,dropContainerKey:ve,dropTargetKey:Se,dropPosition:Oe,dragOverNodeKey:Pe}=m,{prefixCls:$e,showLine:Ke,focusable:He,tabindex:Ue=0,selectable:Ve,showIcon:We,icon:ut=r.icon,switcherIcon:mt,draggable:Qe,checkable:Ge,checkStrictly:Ye,disabled:Ze,motion:tt,loadData:rt,filterTreeNode:nt,height:ft,itemHeight:ct,virtual:lt,dropIndicatorRender:yt,onContextmenu:bt,onScroll:at,direction:ot,rootClassName:pt,rootStyle:ht}=e,{class:jn,style:Wn}=n,qn=rr(L(L({},e),n),{aria:!0,data:!0});let Mt;return Qe?typeof Qe=="object"?Mt=Qe:typeof Qe=="function"?Mt={nodeDraggable:Qe}:Mt={}:Mt=!1,P(H0,{value:{prefixCls:$e,selectable:Ve,showIcon:We,icon:ut,switcherIcon:mt,draggable:Mt,draggingNodeKey:ce,checkable:Ge,customCheckable:r.checkable,checkStrictly:Ye,disabled:Ze,keyEntities:s.value,dropLevelOffset:ge,dropContainerKey:ve,dropTargetKey:Se,dropPosition:Oe,dragOverNodeKey:Pe,dragging:ce!==null,indent:o.value,direction:ot,dropIndicatorRender:yt,loadData:rt,filterTreeNode:nt,onNodeClick:N,onNodeDoubleClick:W,onNodeExpand:xe,onNodeSelect:z,onNodeCheck:Y,onNodeLoad:de,onNodeMouseEnter:oe,onNodeMouseLeave:ee,onNodeContextMenu:pe,onNodeDragStart:_e,onNodeDragEnter:be,onNodeDragOver:I,onNodeDragLeave:R,onNodeDragEnd:he,onNodeDrop:$,slots:r}},{default:()=>[P("div",{role:"tree",class:we($e,jn,pt,{[`${$e}-show-line`]:Ke,[`${$e}-focused`]:y.value,[`${$e}-active-focused`]:C.value!==null}),style:ht},[P(Ey,ie({ref:x,prefixCls:$e,style:Wn,disabled:Ze,selectable:Ve,checkable:!!Ge,motion:tt,height:ft,itemHeight:ct,virtual:lt,focusable:He,focused:y.value,tabindex:Ue,activeItem:ue.value,onFocus:Te,onBlur:Ie,onKeydown:Le,onActiveChange:te,onListChangeStart:Fe,onListChangeEnd:le,onContextmenu:bt,onScroll:at},qn),null)])]})}}});var Ay={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function $s(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Ky=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),My=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,treeTitleHeight:l}=t,i=(l-t.fontSizeLG)/2,o=t.paddingXS;return{[n]:L(L({},$t(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:L({},Ln(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ly,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${a}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:L({},Ln(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:l,lineHeight:`${l}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:L(L({},Fy(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${l}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-a,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l/2*.8,height:l/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:o,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${l}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${l}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:L({lineHeight:`${l}px`,userSelect:"none"},Ky(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-a,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${l/2}px !important`}}}}})}},Uy=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Vy=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.paddingXS/2,l=t.controlHeightSM,i=xt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a,treeTitleHeight:l});return[My(e,i),Uy(i)]},zy=Zt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Hc(`${n}-checkbox`,e)},Vy(n,e),Jf(e)]}),bd=()=>{const e=Mc();return L(L({},e),{showLine:Pt([Boolean,Object]),multiple:ze(),autoExpandParent:ze(),checkStrictly:ze(),checkable:ze(),disabled:ze(),defaultExpandAll:ze(),defaultExpandParent:ze(),defaultExpandedKeys:Dt(),expandedKeys:Dt(),checkedKeys:Pt([Array,Object]),defaultCheckedKeys:Dt(),selectedKeys:Dt(),defaultSelectedKeys:Dt(),selectable:ze(),loadedKeys:Dt(),draggable:ze(),showIcon:ze(),icon:je(),switcherIcon:ae.any,prefixCls:String,replaceFields:Bt(),blockNode:ze(),openAnimation:ae.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":je(),"onUpdate:checkedKeys":je(),"onUpdate:expandedKeys":je()})},Gr=Be({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:kt(bd(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:r,emit:a,slots:l}=t;rc(!(e.treeData===void 0&&l.default));const{prefixCls:i,direction:o,virtual:f}=vt("tree",e),[u,p]=zy(i),S=Ee();r({treeRef:S,onNodeExpand:function(){var h;(h=S.value)===null||h===void 0||h.onNodeExpand(...arguments)},scrollTo:h=>{var s;(s=S.value)===null||s===void 0||s.scrollTo(h)},selectedKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.selectedKeys}),checkedKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.checkedKeys}),halfCheckedKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.halfCheckedKeys}),loadedKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.loadedKeys}),loadingKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.loadingKeys}),expandedKeys:H(()=>{var h;return(h=S.value)===null||h===void 0?void 0:h.expandedKeys})}),et(()=>{Xt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(h,s)=>{a("update:checkedKeys",h),a("check",h,s)},v=(h,s)=>{a("update:expandedKeys",h),a("expand",h,s)},m=(h,s)=>{a("update:selectedKeys",h),a("select",h,s)};return()=>{const{showIcon:h,showLine:s,switcherIcon:y=l.switcherIcon,icon:C=l.icon,blockNode:w,checkable:T,selectable:x,fieldNames:c=e.replaceFields,motion:d=e.openAnimation,itemHeight:A=28,onDoubleclick:B,onDblclick:O}=e,_=L(L(L({},n),Et(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!s,dropIndicatorRender:ky,fieldNames:c,icon:C,itemHeight:A}),k=l.default?Bn(l.default()):void 0;return u(P(Ty,ie(ie({},_),{},{virtual:f.value,motion:d,ref:S,prefixCls:i.value,class:we({[`${i.value}-icon-hide`]:!h,[`${i.value}-block-node`]:w,[`${i.value}-unselectable`]:!x,[`${i.value}-rtl`]:o.value==="rtl"},n.class,p.value),direction:o.value,checkable:T,selectable:x,switcherIcon:M=>Dy(i.value,y,M,l.leafIcon,s),onCheck:g,onExpand:v,onSelect:m,onDblclick:O||B,children:k}),L(L({},l),{checkable:()=>P("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var Hy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function Ps(e){for(var t=1;t{if(o===yn.End)return!1;if(f(u)){if(i.push(u),o===yn.None)o=yn.Start;else if(o===yn.Start)return o=yn.End,!1}else o===yn.Start&&i.push(u);return n.includes(u)}),i}function Za(e,t,n){const r=[...t],a=[];return ul(e,n,(l,i)=>{const o=r.indexOf(l);return o!==-1&&(a.push(i),r.splice(o,1)),!!r.length}),a}var Xy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);aL(L({},bd()),{expandAction:Pt([Boolean,String])});function Yy(e){const{isLeaf:t,expanded:n}=e;return t?P(wa,null,null):n?P(ll,null,null):P(sl,null,null)}const eo=Be({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:kt(Qy(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:a,expose:l}=t;var i;const o=Ee(e.treeData||ci(Bn((i=r.default)===null||i===void 0?void 0:i.call(r))));ke(()=>e.treeData,()=>{o.value=e.treeData}),Sr(()=>{St(()=>{var A;e.treeData===void 0&&r.default&&(o.value=ci(Bn((A=r.default)===null||A===void 0?void 0:A.call(r))))})});const f=Ee(),u=Ee(),p=H(()=>ya(e.fieldNames)),S=Ee();l({scrollTo:A=>{var B;(B=S.value)===null||B===void 0||B.scrollTo(A)},selectedKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.selectedKeys}),checkedKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.checkedKeys}),halfCheckedKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.halfCheckedKeys}),loadedKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.loadedKeys}),loadingKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.loadingKeys}),expandedKeys:H(()=>{var A;return(A=S.value)===null||A===void 0?void 0:A.expandedKeys})});const g=()=>{const{keyEntities:A}=Gi(o.value,{fieldNames:p.value});let B;return e.defaultExpandAll?B=Object.keys(A):e.defaultExpandParent?B=ui(e.expandedKeys||e.defaultExpandedKeys||[],A):B=e.expandedKeys||e.defaultExpandedKeys,B},v=Ee(e.selectedKeys||e.defaultSelectedKeys||[]),m=Ee(g());ke(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),ke(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(m.value=e.expandedKeys)},{immediate:!0});const s=Uh((A,B)=>{const{isLeaf:O}=B;O||A.shiftKey||A.metaKey||A.ctrlKey||S.value.onNodeExpand(A,B)},200,{leading:!0}),y=(A,B)=>{e.expandedKeys===void 0&&(m.value=A),a("update:expandedKeys",A),a("expand",A,B)},C=(A,B)=>{const{expandAction:O}=e;O==="click"&&s(A,B),a("click",A,B)},w=(A,B)=>{const{expandAction:O}=e;(O==="dblclick"||O==="doubleclick")&&s(A,B),a("doubleclick",A,B),a("dblclick",A,B)},T=(A,B)=>{const{multiple:O}=e,{node:_,nativeEvent:k}=B,M=_[p.value.key],V=L(L({},B),{selected:!0}),q=(k==null?void 0:k.ctrlKey)||(k==null?void 0:k.metaKey),Q=k==null?void 0:k.shiftKey;let X;O&&q?(X=A,f.value=M,u.value=X,V.selectedNodes=Za(o.value,X,p.value)):O&&Q?(X=Array.from(new Set([...u.value||[],...Gy({treeData:o.value,expandedKeys:m.value,startKey:M,endKey:f.value,fieldNames:p.value})])),V.selectedNodes=Za(o.value,X,p.value)):(X=[M],f.value=M,u.value=X,V.selectedNodes=Za(o.value,X,p.value)),a("update:selectedKeys",X),a("select",X,V),e.selectedKeys===void 0&&(v.value=X)},x=(A,B)=>{a("update:checkedKeys",A),a("check",A,B)},{prefixCls:c,direction:d}=vt("tree",e);return()=>{const A=we(`${c.value}-directory`,{[`${c.value}-directory-rtl`]:d.value==="rtl"},n.class),{icon:B=r.icon,blockNode:O=!0}=e,_=Xy(e,["icon","blockNode"]);return P(Gr,ie(ie(ie({},n),{},{icon:B||Yy,ref:S,blockNode:O},_),{},{prefixCls:c.value,class:A,expandedKeys:m.value,selectedKeys:v.value,onSelect:T,onClick:C,onDblclick:w,onExpand:y,onCheck:x}),r)}}}),to=si,Jy=L(Gr,{DirectoryTree:eo,TreeNode:to,install:e=>(e.component(Gr.name,Gr),e.component(to.name,to),e.component(eo.name,eo),e)});function ks(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=new Set;function a(l,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const f=r.has(l);if(Zf(!f,"Warning: There may be circular references"),f)return!1;if(l===i)return!0;if(n&&o>1)return!1;r.add(l);const u=o+1;if(Array.isArray(l)){if(!Array.isArray(i)||l.length!==i.length)return!1;for(let p=0;pa(l[S],i[S],u))}return!1}return a(e,t)}const{SubMenu:Zy,Item:eb}=na;function tb(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function Cd(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function xd(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:l,filterSearch:i}=e;return t.map((o,f)=>{const u=String(o.value);if(o.children)return P(Zy,{key:u||f,title:o.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[xd({filters:o.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:l,filterSearch:i})]});const p=a?xn:Vt,S=P(eb,{key:o.value!==void 0?u:f},{default:()=>[P(p,{checked:r.includes(u)},null),P("span",null,[o.text])]});return l.trim()?typeof i=="function"?i(l,o)?S:void 0:Cd(l,o.text)?S:void 0:S})}const nb=Be({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const r=Ji(),a=H(()=>{var G;return(G=e.filterMode)!==null&&G!==void 0?G:"menu"}),l=H(()=>{var G;return(G=e.filterSearch)!==null&&G!==void 0?G:!1}),i=H(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),o=H(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),f=ye(!1),u=H(()=>{var G;return!!(e.filterState&&(!((G=e.filterState.filteredKeys)===null||G===void 0)&&G.length||e.filterState.forceFiltered))}),p=H(()=>{var G;return Ia((G=e.column)===null||G===void 0?void 0:G.filters)}),S=H(()=>{const{filterDropdown:G,slots:se={},customFilterDropdown:J}=e.column;return G||se.filterDropdown&&r.value[se.filterDropdown]||J&&r.value.customFilterDropdown}),b=H(()=>{const{filterIcon:G,slots:se={}}=e.column;return G||se.filterIcon&&r.value[se.filterIcon]||r.value.customFilterIcon}),g=G=>{var se;f.value=G,(se=o.value)===null||se===void 0||se.call(o,G)},v=H(()=>typeof i.value=="boolean"?i.value:f.value),m=H(()=>{var G;return(G=e.filterState)===null||G===void 0?void 0:G.filteredKeys}),h=ye([]),s=G=>{let{selectedKeys:se}=G;h.value=se},y=(G,se)=>{let{node:J,checked:he}=se;e.filterMultiple?s({selectedKeys:G}):s({selectedKeys:he&&J.key?[J.key]:[]})};ke(m,()=>{f.value&&s({selectedKeys:m.value||[]})},{immediate:!0});const C=ye([]),w=ye(),T=G=>{w.value=setTimeout(()=>{C.value=G})},x=()=>{clearTimeout(w.value)};Rt(()=>{clearTimeout(w.value)});const c=ye(""),d=G=>{const{value:se}=G.target;c.value=se};ke(f,()=>{f.value||(c.value="")});const A=G=>{const{column:se,columnKey:J,filterState:he}=e,re=G&&G.length?G:null;if(re===null&&(!he||!he.filteredKeys)||ks(re,he==null?void 0:he.filteredKeys,!0))return null;e.triggerFilter({column:se,key:J,filteredKeys:re})},B=()=>{g(!1),A(h.value)},O=function(){let{confirm:G,closeDropdown:se}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};G&&A([]),se&&g(!1),c.value="",e.column.filterResetToDefaultFilteredValue?h.value=(e.column.defaultFilteredValue||[]).map(J=>String(J)):h.value=[]},_=function(){let{closeDropdown:G}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};G&&g(!1),A(h.value)},k=G=>{G&&m.value!==void 0&&(h.value=m.value||[]),g(G),!G&&!S.value&&B()},{direction:M}=vt("",e),V=G=>{if(G.target.checked){const se=p.value;h.value=se}else h.value=[]},q=G=>{let{filters:se}=G;return(se||[]).map((J,he)=>{const re=String(J.value),_e={title:J.text,key:J.value!==void 0?re:he};return J.children&&(_e.children=q({filters:J.children})),_e})},Q=G=>{var se;return L(L({},G),{text:G.title,value:G.key,children:((se=G.children)===null||se===void 0?void 0:se.map(J=>Q(J)))||[]})},X=H(()=>q({filters:e.column.filters})),K=H(()=>we({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!tb(e.column.filters||[])})),j=()=>{const G=h.value,{column:se,locale:J,tablePrefixCls:he,filterMultiple:re,dropdownPrefixCls:_e,getPopupContainer:be,prefixCls:I}=e;return(se.filters||[]).length===0?P(Tl,{image:Tl.PRESENTED_IMAGE_SIMPLE,description:J.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):a.value==="tree"?P(It,null,[P(xs,{filterSearch:l.value,value:c.value,onChange:d,tablePrefixCls:he,locale:J},null),P("div",{class:`${he}-filter-dropdown-tree`},[re?P(xn,{class:`${he}-filter-dropdown-checkall`,onChange:V,checked:G.length===p.value.length,indeterminate:G.length>0&&G.length[J.filterCheckall]}):null,P(Jy,{checkable:!0,selectable:!1,blockNode:!0,multiple:re,checkStrictly:!re,class:`${_e}-menu`,onCheck:y,checkedKeys:G,selectedKeys:G,showIcon:!1,treeData:X.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:c.value.trim()?R=>typeof l.value=="function"?l.value(c.value,Q(R)):Cd(c.value,R.title):void 0},null)])]):P(It,null,[P(xs,{filterSearch:l.value,value:c.value,onChange:d,tablePrefixCls:he,locale:J},null),P(na,{multiple:re,prefixCls:`${_e}-menu`,class:K.value,onClick:x,onSelect:s,onDeselect:s,selectedKeys:G,getPopupContainer:be,openKeys:C.value,onOpenChange:T},{default:()=>xd({filters:se.filters||[],filterSearch:l.value,prefixCls:I,filteredKeys:h.value,filterMultiple:re,searchValue:c.value})})])},Z=H(()=>{const G=h.value;return e.column.filterResetToDefaultFilteredValue?ks((e.column.defaultFilteredValue||[]).map(se=>String(se)),G,!0):G.length===0});return()=>{var G;const{tablePrefixCls:se,prefixCls:J,column:he,dropdownPrefixCls:re,locale:_e,getPopupContainer:be}=e;let I;typeof S.value=="function"?I=S.value({prefixCls:`${re}-custom`,setSelectedKeys:E=>s({selectedKeys:E}),selectedKeys:h.value,confirm:_,clearFilters:O,filters:he.filters,visible:v.value,column:he.__originColumn__,close:()=>{g(!1)}}):S.value?I=S.value:I=P(It,null,[j(),P("div",{class:`${J}-dropdown-btns`},[P(kn,{type:"link",size:"small",disabled:Z.value,onClick:()=>O()},{default:()=>[_e.filterReset]}),P(kn,{type:"primary",size:"small",onClick:B},{default:()=>[_e.filterConfirm]})])]);const R=P(yy,{class:`${J}-dropdown`},{default:()=>[I]});let $;return typeof b.value=="function"?$=b.value({filtered:u.value,column:he.__originColumn__}):b.value?$=b.value:$=P(rl,null,null),P("div",{class:`${J}-column`},[P("span",{class:`${se}-column-title`},[(G=n.default)===null||G===void 0?void 0:G.call(n)]),P(An,{overlay:R,trigger:["click"],open:v.value,onOpenChange:k,getPopupContainer:be,placement:M.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[P("span",{role:"button",tabindex:-1,class:we(`${J}-trigger`,{active:u.value}),onClick:E=>{E.stopPropagation()}},[$])]})])}}});function Ti(e,t,n){let r=[];return(e||[]).forEach((a,l)=>{var i,o;const f=Ar(l,n),u=a.filterDropdown||((i=a==null?void 0:a.slots)===null||i===void 0?void 0:i.filterDropdown)||a.customFilterDropdown;if(a.filters||u||"onFilter"in a)if("filteredValue"in a){let p=a.filteredValue;u||(p=(o=p==null?void 0:p.map(String))!==null&&o!==void 0?o:p),r.push({column:a,key:Kn(a,f),filteredKeys:p,forceFiltered:a.filtered})}else r.push({column:a,key:Kn(a,f),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[...r,...Ti(a.children,t,f)])}),r}function Sd(e,t,n,r,a,l,i,o){return n.map((f,u)=>{var p;const S=Ar(u,o),{filterMultiple:b=!0,filterMode:g,filterSearch:v}=f;let m=f;const h=f.filterDropdown||((p=f==null?void 0:f.slots)===null||p===void 0?void 0:p.filterDropdown)||f.customFilterDropdown;if(m.filters||h){const s=Kn(m,S),y=r.find(C=>{let{key:w}=C;return s===w});m=L(L({},m),{title:C=>P(nb,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:s,filterState:y,filterMultiple:b,filterMode:g,filterSearch:v,triggerFilter:l,locale:a,getPopupContainer:i},{default:()=>[nl(f.title,C)]})})}return"children"in m&&(m=L(L({},m),{children:Sd(e,t,m.children,r,a,l,i,S)})),m})}function Ia(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[...t,...Ia(a)])}),t}function Ls(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:l}=n;var i;const o=l.filterDropdown||((i=l==null?void 0:l.slots)===null||i===void 0?void 0:i.filterDropdown)||l.customFilterDropdown,{filters:f}=l;if(o)t[r]=a||null;else if(Array.isArray(a)){const u=Ia(f);t[r]=u.filter(p=>a.includes(String(p)))}else t[r]=null}),t}function Fs(e,t){return t.reduce((n,r)=>{const{column:{onFilter:a,filters:l},filteredKeys:i}=r;return a&&i&&i.length?n.filter(o=>i.some(f=>{const u=Ia(l),p=u.findIndex(b=>String(b)===String(f)),S=p!==-1?u[p]:f;return a(S,o)})):n},e)}function Ed(e){return e.flatMap(t=>"children"in t?[t,...Ed(t.children||[])]:[t])}function rb(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,locale:a,onFilterChange:l,getPopupContainer:i}=e;const o=H(()=>Ed(r.value)),[f,u]=Cn(Ti(o.value,!0)),p=H(()=>{const v=Ti(o.value,!1);if(v.length===0)return v;let m=!0,h=!0;if(v.forEach(s=>{let{filteredKeys:y}=s;y!==void 0?m=!1:h=!1}),m){const s=(o.value||[]).map((y,C)=>Kn(y,Ar(C)));return f.value.filter(y=>{let{key:C}=y;return s.includes(C)}).map(y=>{const C=o.value[s.findIndex(w=>w===y.key)];return L(L({},y),{column:L(L({},y.column),C),forceFiltered:C.filtered})})}return Xt(h,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),S=H(()=>Ls(p.value)),b=v=>{const m=p.value.filter(h=>{let{key:s}=h;return s!==v.key});m.push(v),u(m),l(Ls(m),m)};return[v=>Sd(t.value,n.value,v,p.value,a.value,b,i.value),p,S]}function wd(e,t){return e.map(n=>{const r=L({},n);return r.title=nl(r.title,t),"children"in r&&(r.children=wd(r.children,t)),r})}function ab(e){return[n=>wd(n,e.value)]}function ob(e){return function(n){let{prefixCls:r,onExpand:a,record:l,expanded:i,expandable:o}=n;const f=`${r}-row-expand-icon`;return P("button",{type:"button",onClick:u=>{a(l,u),u.stopPropagation()},class:we(f,{[`${f}-spaced`]:!o,[`${f}-expanded`]:o&&i,[`${f}-collapsed`]:o&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function Id(e,t){const n=t.value;return e.map(r=>{var a;if(r===mn||r===Tn)return r;const l=L({},r),{slots:i={}}=l;return l.__originColumn__=r,Xt(!("slots"in l),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(o=>{const f=i[o];l[o]===void 0&&n[f]&&(l[o]=n[f])}),t.value.headerCell&&!(!((a=r.slots)===null||a===void 0)&&a.title)&&(l.title=ki(t.value,"headerCell",{title:r.title,column:r},()=>[r.title])),"children"in l&&Array.isArray(l.children)&&(l.children=Id(l.children,t)),l})}function ib(e){return[n=>Id(n,e)]}const lb=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(a,l,i)=>({[`&${t}-${a}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${l}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:L(L(L({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` + > ${t}-content, + > ${t}-header + `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},sb=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:L(L({},Jr),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ub=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},cb=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:a,lineWidth:l,paddingXS:i,lineType:o,tableBorderColor:f,tableExpandIconBg:u,tableExpandColumnWidth:p,borderRadius:S,fontSize:b,fontSizeSM:g,lineHeight:v,tablePaddingVertical:m,tablePaddingHorizontal:h,tableExpandedRowBg:s,paddingXXS:y}=e,C=r/2-l,w=C*2+l*3,T=`${l}px ${o} ${f}`,x=y-l;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:p},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:L(L({},up(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:`${w}px`,background:u,border:T,borderRadius:S,transform:`scale(${r/w})`,transition:`all ${a}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${a} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:x,insetInlineStart:x,height:l},"&::after":{top:x,bottom:x,insetInlineStart:C,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(b*v-l*3)/2-Math.ceil((g*1.4-l*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:s}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${m}px -${h}px`,padding:`${m}px ${h}px`}}}},db=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:o,colorText:f,lineWidth:u,lineType:p,tableBorderColor:S,tableHeaderIconColor:b,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:m,motionDurationSlow:h,colorTextDescription:s,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:w,tableFilterDropdownBg:T,tableFilterDropdownHeight:x,controlItemBgHover:c,controlItemBgActive:d,boxShadowSecondary:A}=e,B=`${n}-dropdown`,O=`${t}-filter-dropdown`,_=`${n}-tree`,k=`${u}px ${p} ${S}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:b,fontSize:g,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:s,background:C},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[O]:L(L({},$t(e)),{minWidth:a,backgroundColor:T,borderRadius:m,boxShadow:A,[`${B}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${o}px 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${O}-tree`]:{paddingBlock:`${o}px 0`,paddingInline:o,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:c},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:d}}},[`${O}-search`]:{padding:o,borderBottom:k,"&-input":{input:{minWidth:l},[r]:{color:w}}},[`${O}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${O}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${o-u}px ${o}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:k}})}},{[`${n}-dropdown ${O}, ${O}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:o,color:f},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fb=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:o}=e,f=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:l,background:i},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:o+1,width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${f}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${f}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${f}`}}}}},pb=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},hb=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},gb=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},vb=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,paddingXS:l,tableHeaderIconColor:i,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+l*2},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:a,verticalAlign:"baseline","&:hover":{color:o}}}}}},mb=e=>{const{componentCls:t}=e,n=(r,a,l,i)=>({[`${t}${t}-${r}`]:{fontSize:i,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${a}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${a}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${a}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:L(L({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},yb=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},bb=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:a,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Cb=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:o}=e,f=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:o,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:o,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},Ks=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,a=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},xb=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,lineWidth:l,lineType:i,tableBorderColor:o,tableFontSize:f,tableBg:u,tableRadius:p,tableHeaderTextColor:S,motionDurationMid:b,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:m,tableSelectedRowBg:h,tableSelectedRowHoverBg:s,tableFooterTextColor:y,tableFooterBg:C,paddingContentVerticalLG:w}=e,T=`${l}px ${i} ${o}`;return{[`${t}-wrapper`]:L(L({clear:"both",maxWidth:"100%"},nc()),{[t]:L(L({},$t(e)),{fontSize:f,background:u,borderRadius:`${p}px ${p}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${p}px ${p}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${w}px ${a}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${a}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:S,fontWeight:n,textAlign:"start",background:g,borderBottom:T,transition:`background ${b} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${b}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:T,borderBottom:"transparent"},"&:last-child > td":{borderBottom:T},[`&:first-child > td, + &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:T}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${b}, border-color ${b}`,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` + &${t}-row:hover > td, + > td${t}-cell-row-hover + `]:{background:m},[`&${t}-row-selected`]:{"> td":{background:h},"&:hover > td":{background:s}}}},[`${t}-footer`]:{padding:`${r}px ${a}px`,color:y,background:C}})}},Sb=Zt("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:a,colorSplit:l,colorBorderSecondary:i,fontSize:o,padding:f,paddingXS:u,paddingSM:p,controlHeight:S,colorFillAlter:b,colorIcon:g,colorIconHover:v,opacityLoading:m,colorBgContainer:h,borderRadiusLG:s,colorFillContent:y,colorFillSecondary:C,controlInteractiveSize:w}=e,T=new cr(g),x=new cr(v),c=t,d=2,A=new cr(C).onBackground(h).toHexString(),B=new cr(y).onBackground(h).toHexString(),O=new cr(b).onBackground(h).toHexString(),_=xt(e,{tableFontSize:o,tableBg:h,tableRadius:s,tablePaddingVertical:f,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:p,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:i,tableHeaderTextColor:a,tableHeaderBg:O,tableFooterTextColor:a,tableFooterBg:O,tableHeaderCellSplitColor:i,tableHeaderSortBg:A,tableHeaderSortHoverBg:B,tableHeaderIconColor:T.clone().setAlpha(T.getAlpha()*m).toRgbString(),tableHeaderIconColorHover:x.clone().setAlpha(x.getAlpha()*m).toRgbString(),tableBodySortBg:O,tableFixedHeaderSortActiveBg:A,tableHeaderFilterActiveBg:y,tableFilterDropdownBg:h,tableRowHoverBg:O,tableSelectedRowBg:c,tableSelectedRowHoverBg:n,zIndexTableFixed:d,zIndexTableSticky:d+1,tableFontSizeMiddle:o,tableFontSizeSmall:o,tableSelectionColumnWidth:S,tableExpandIconBg:h,tableExpandColumnWidth:w+2*e.padding,tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollBg:l});return[xb(_),pb(_),Ks(_),bb(_),db(_),lb(_),hb(_),cb(_),Ks(_),ub(_),vb(_),fb(_),Cb(_),sb(_),mb(_),yb(_),gb(_)]}),Eb=[],Td=()=>({prefixCls:dt(),columns:Dt(),rowKey:Pt([String,Function]),tableLayout:dt(),rowClassName:Pt([String,Function]),title:je(),footer:je(),id:dt(),showHeader:ze(),components:Bt(),customRow:je(),customHeaderRow:je(),direction:dt(),expandFixed:Pt([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Dt(),defaultExpandedRowKeys:Dt(),expandedRowRender:je(),expandRowByClick:ze(),expandIcon:je(),onExpand:je(),onExpandedRowsChange:je(),"onUpdate:expandedRowKeys":je(),defaultExpandAllRows:ze(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:ze(),expandedRowClassName:je(),childrenColumnName:dt(),rowExpandable:je(),sticky:Pt([Boolean,Object]),dropdownPrefixCls:String,dataSource:Dt(),pagination:Pt([Boolean,Object]),loading:Pt([Boolean,Object]),size:dt(),bordered:ze(),locale:Bt(),onChange:je(),onResizeColumn:je(),rowSelection:Bt(),getPopupContainer:je(),scroll:Bt(),sortDirections:Dt(),showSorterTooltip:Pt([Boolean,Object],!0),transformCellText:je()}),wb=Be({name:"InternalTable",inheritAttrs:!1,props:kt(L(L({},Td()),{contextSlots:Bt()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:a,emit:l}=t;Xt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),pm(H(()=>e.contextSlots)),hm({onResizeColumn:(Y,de)=>{l("resizeColumn",Y,de)}});const i=Ic(),o=H(()=>{const Y=new Set(Object.keys(i.value).filter(de=>i.value[de]));return e.columns.filter(de=>!de.responsive||de.responsive.some(oe=>Y.has(oe)))}),{size:f,renderEmpty:u,direction:p,prefixCls:S,configProvider:b}=vt("table",e),[g,v]=Sb(S),m=H(()=>{var Y;return e.transformCellText||((Y=b.transformCellText)===null||Y===void 0?void 0:Y.value)}),[h]=ic("Table",ep.Table,st(e,"locale")),s=H(()=>e.dataSource||Eb),y=H(()=>b.getPrefixCls("dropdown",e.dropdownPrefixCls)),C=H(()=>e.childrenColumnName||"children"),w=H(()=>s.value.some(Y=>Y==null?void 0:Y[C.value])?"nest":e.expandedRowRender?"row":null),T=Ht({body:null}),x=Y=>{L(T,Y)},c=H(()=>typeof e.rowKey=="function"?e.rowKey:Y=>Y==null?void 0:Y[e.rowKey]),[d]=oy(s,C,c),A={},B=function(Y,de){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ee,scroll:pe,onChange:Te}=e,Ie=L(L({},A),Y);oe&&(A.resetPagination(),Ie.pagination.current&&(Ie.pagination.current=1),ee&&ee.onChange&&ee.onChange(1,Ie.pagination.pageSize)),pe&&pe.scrollToFirstRowOnChange!==!1&&T.body&&fp(0,{getContainer:()=>T.body}),Te==null||Te(Ie.pagination,Ie.filters,Ie.sorter,{currentDataSource:Fs(wi(s.value,Ie.sorterStates,C.value),Ie.filterStates),action:de})},O=(Y,de)=>{B({sorter:Y,sorterStates:de},"sort",!1)},[_,k,M,V]=hy({prefixCls:S,mergedColumns:o,onSorterChange:O,sortDirections:H(()=>e.sortDirections||["ascend","descend"]),tableLocale:h,showSorterTooltip:st(e,"showSorterTooltip")}),q=H(()=>wi(s.value,k.value,C.value)),Q=(Y,de)=>{B({filters:Y,filterStates:de},"filter",!0)},[X,K,j]=rb({prefixCls:S,locale:h,dropdownPrefixCls:y,mergedColumns:o,onFilterChange:Q,getPopupContainer:st(e,"getPopupContainer")}),Z=H(()=>Fs(q.value,K.value)),[G]=ib(st(e,"contextSlots")),se=H(()=>{const Y={},de=j.value;return Object.keys(de).forEach(oe=>{de[oe]!==null&&(Y[oe]=de[oe])}),L(L({},M.value),{filters:Y})}),[J]=ab(se),he=(Y,de)=>{B({pagination:L(L({},A.pagination),{current:Y,pageSize:de})},"paginate")},[re,_e]=ay(H(()=>Z.value.length),st(e,"pagination"),he);et(()=>{A.sorter=V.value,A.sorterStates=k.value,A.filters=j.value,A.filterStates=K.value,A.pagination=e.pagination===!1?{}:ry(re.value,e.pagination),A.resetPagination=_e});const be=H(()=>{if(e.pagination===!1||!re.value.pageSize)return Z.value;const{current:Y=1,total:de,pageSize:oe=bi}=re.value;return Xt(Y>0,"Table","`current` should be positive number."),Z.value.lengthoe?Z.value.slice((Y-1)*oe,Y*oe):Z.value:Z.value.slice((Y-1)*oe,Y*oe)});et(()=>{St(()=>{const{total:Y,pageSize:de=bi}=re.value;Z.value.lengthde&&Xt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const I=H(()=>e.showExpandColumn===!1?-1:w.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),R=Ee();ke(()=>e.rowSelection,()=>{R.value=e.rowSelection?L({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[$,E]=ly(R,{prefixCls:S,data:Z,pageData:be,getRowKey:c,getRecordByKey:d,expandType:w,childrenColumnName:C,locale:h,getPopupContainer:H(()=>e.getPopupContainer)}),N=(Y,de,oe)=>{let ee;const{rowClassName:pe}=e;return typeof pe=="function"?ee=we(pe(Y,de,oe)):ee=we(pe),we({[`${S.value}-row-selected`]:E.value.has(c.value(Y,de))},ee)};a({selectedKeySet:E});const W=H(()=>typeof e.indentSize=="number"?e.indentSize:15),z=Y=>J($(X(_(G(Y)))));return()=>{var Y;const{expandIcon:de=r.expandIcon||ob(h.value),pagination:oe,loading:ee,bordered:pe}=e;let Te,Ie;if(oe!==!1&&(!((Y=re.value)===null||Y===void 0)&&Y.total)){let te;re.value.size?te=re.value.size:te=f.value==="small"||f.value==="middle"?"small":void 0;const ue=Le=>P(Dv,ie(ie({},re.value),{},{class:[`${S.value}-pagination ${S.value}-pagination-${Le}`,re.value.class],size:te}),null),Ae=p.value==="rtl"?"left":"right",{position:De}=re.value;if(De!==null&&Array.isArray(De)){const Le=De.find(ve=>ve.includes("top")),ce=De.find(ve=>ve.includes("bottom")),ge=De.every(ve=>`${ve}`=="none");!Le&&!ce&&!ge&&(Ie=ue(Ae)),Le&&(Te=ue(Le.toLowerCase().replace("top",""))),ce&&(Ie=ue(ce.toLowerCase().replace("bottom","")))}else Ie=ue(Ae)}let xe;typeof ee=="boolean"?xe={spinning:ee}:typeof ee=="object"&&(xe=L({spinning:!0},ee));const Fe=we(`${S.value}-wrapper`,{[`${S.value}-wrapper-rtl`]:p.value==="rtl"},n.class,v.value),le=Et(e,["columns"]);return g(P("div",{class:Fe,style:n.style},[P(mr,ie({spinning:!1},xe),{default:()=>[Te,P(ty,ie(ie(ie({},n),le),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:I.value,indentSize:W.value,expandIcon:de,columns:o.value,direction:p.value,prefixCls:S.value,class:we({[`${S.value}-middle`]:f.value==="middle",[`${S.value}-small`]:f.value==="small",[`${S.value}-bordered`]:pe,[`${S.value}-empty`]:s.value.length===0}),data:be.value,rowKey:c.value,rowClassName:N,internalHooks:yi,internalRefs:T,onUpdateInternalRefs:x,transformColumns:z,transformCellText:m.value}),L(L({},r),{emptyText:()=>{var te,ue;return((te=r.emptyText)===null||te===void 0?void 0:te.call(r))||((ue=e.locale)===null||ue===void 0?void 0:ue.emptyText)||u("Table")}})),Ie]})]))}}}),no=Be({name:"ATable",inheritAttrs:!1,props:kt(Td(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:a}=t;const l=Ee();return a({table:l}),()=>{var i;const o=e.columns||vd((i=r.default)===null||i===void 0?void 0:i.call(r));return P(wb,ie(ie(ie({ref:l},n),e),{},{columns:o,expandedRowRender:r.expandedRowRender||e.expandedRowRender,contextSlots:L({},r)}),r)}}}),ro=Be({name:"ATableColumn",slots:Object,render(){return null}}),ao=Be({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Ai=zm,Bi=Wm,oo=L(qm,{Cell:Bi,Row:Ai,name:"ATableSummary"}),Ib=L(no,{SELECTION_ALL:Ci,SELECTION_INVERT:xi,SELECTION_NONE:Si,SELECTION_COLUMN:mn,EXPAND_COLUMN:Tn,Column:ro,ColumnGroup:ao,Summary:oo,install:e=>(e.component(oo.name,oo),e.component(Bi.name,Bi),e.component(Ai.name,Ai),e.component(no.name,no),e.component(ro.name,ro),e.component(ao.name,ao),e)});function Ad(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tb}=Object.prototype,{getPrototypeOf:cl}=Object,Ta=(e=>t=>{const n=Tb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),an=e=>(e=e.toLowerCase(),t=>Ta(t)===e),Aa=e=>t=>typeof t===e,{isArray:or}=Array,Cr=Aa("undefined");function Ab(e){return e!==null&&!Cr(e)&&e.constructor!==null&&!Cr(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bd=an("ArrayBuffer");function Bb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bd(e.buffer),t}const $b=Aa("string"),Qt=Aa("function"),$d=Aa("number"),Ba=e=>e!==null&&typeof e=="object",Rb=e=>e===!0||e===!1,Xr=e=>{if(Ta(e)!=="object")return!1;const t=cl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_b=an("Date"),Ob=an("File"),Nb=an("Blob"),Pb=an("FileList"),Db=e=>Ba(e)&&Qt(e.pipe),kb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=Ta(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},Lb=an("URLSearchParams"),[Fb,Kb,Mb,Ub]=["ReadableStream","Request","Response","Headers"].map(an),Vb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Br(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),or(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_d=e=>!Cr(e)&&e!==On;function $i(){const{caseless:e}=_d(this)&&this||{},t={},n=(r,a)=>{const l=e&&Rd(t,a)||a;Xr(t[l])&&Xr(r)?t[l]=$i(t[l],r):Xr(r)?t[l]=$i({},r):or(r)?t[l]=r.slice():t[l]=r};for(let r=0,a=arguments.length;r(Br(t,(a,l)=>{n&&Qt(a)?e[l]=Ad(a,n):e[l]=a},{allOwnKeys:r}),e),Hb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Wb=(e,t,n,r)=>{let a,l,i;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)i=a[l],(!r||r(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=n!==!1&&cl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Gb=e=>{if(!e)return null;if(or(e))return e;let t=e.length;if(!$d(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cl(Uint8Array)),Qb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},Yb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jb=an("HTMLFormElement"),Zb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Ms=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eC=an("RegExp"),Od=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Br(n,(a,l)=>{let i;(i=t(a,l,e))!==!1&&(r[l]=i||a)}),Object.defineProperties(e,r)},tC=e=>{Od(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nC=(e,t)=>{const n={},r=a=>{a.forEach(l=>{n[l]=!0})};return or(e)?r(e):r(String(e).split(t)),n},rC=()=>{},aC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,io="abcdefghijklmnopqrstuvwxyz",Us="0123456789",Nd={DIGIT:Us,ALPHA:io,ALPHA_DIGIT:io+io.toUpperCase()+Us},oC=(e=16,t=Nd.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function iC(e){return!!(e&&Qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lC=e=>{const t=new Array(10),n=(r,a)=>{if(Ba(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const l=or(r)?[]:{};return Br(r,(i,o)=>{const f=n(i,a+1);!Cr(f)&&(l[o]=f)}),t[a]=void 0,l}}return r};return n(e,0)},sC=an("AsyncFunction"),uC=e=>e&&(Ba(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Pd=((e,t)=>e?setImmediate:t?((n,r)=>(On.addEventListener("message",({source:a,data:l})=>{a===On&&l===n&&r.length&&r.shift()()},!1),a=>{r.push(a),On.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(On.postMessage)),cC=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||Pd,fe={isArray:or,isArrayBuffer:Bd,isBuffer:Ab,isFormData:kb,isArrayBufferView:Bb,isString:$b,isNumber:$d,isBoolean:Rb,isObject:Ba,isPlainObject:Xr,isReadableStream:Fb,isRequest:Kb,isResponse:Mb,isHeaders:Ub,isUndefined:Cr,isDate:_b,isFile:Ob,isBlob:Nb,isRegExp:eC,isFunction:Qt,isStream:Db,isURLSearchParams:Lb,isTypedArray:Xb,isFileList:Pb,forEach:Br,merge:$i,extend:zb,trim:Vb,stripBOM:Hb,inherits:jb,toFlatObject:Wb,kindOf:Ta,kindOfTest:an,endsWith:qb,toArray:Gb,forEachEntry:Qb,matchAll:Yb,isHTMLForm:Jb,hasOwnProperty:Ms,hasOwnProp:Ms,reduceDescriptors:Od,freezeMethods:tC,toObjectSet:nC,toCamelCase:Zb,noop:rC,toFiniteNumber:aC,findKey:Rd,global:On,isContextDefined:_d,ALPHABET:Nd,generateString:oC,isSpecCompliantForm:iC,toJSONObject:lC,isAsyncFn:sC,isThenable:uC,setImmediate:Pd,asap:cC};function qe(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}fe.inherits(qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const Dd=qe.prototype,kd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kd[e]={value:e}});Object.defineProperties(qe,kd);Object.defineProperty(Dd,"isAxiosError",{value:!0});qe.from=(e,t,n,r,a,l)=>{const i=Object.create(Dd);return fe.toFlatObject(e,i,function(f){return f!==Error.prototype},o=>o!=="isAxiosError"),qe.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const dC=null;function Ri(e){return fe.isPlainObject(e)||fe.isArray(e)}function Ld(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function Vs(e,t,n){return e?e.concat(t).map(function(a,l){return a=Ld(a),!n&&l?"["+a+"]":a}).join(n?".":""):t}function fC(e){return fe.isArray(e)&&!e.some(Ri)}const pC=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function $a(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!fe.isUndefined(h[m])});const r=n.metaTokens,a=n.visitor||p,l=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(fe.isDate(v))return v.toISOString();if(!f&&fe.isBlob(v))throw new qe("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(v)||fe.isTypedArray(v)?f&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,m,h){let s=v;if(v&&!h&&typeof v=="object"){if(fe.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(fe.isArray(v)&&fC(v)||(fe.isFileList(v)||fe.endsWith(m,"[]"))&&(s=fe.toArray(v)))return m=Ld(m),s.forEach(function(C,w){!(fe.isUndefined(C)||C===null)&&t.append(i===!0?Vs([m],w,l):i===null?m:m+"[]",u(C))}),!1}return Ri(v)?!0:(t.append(Vs(h,m,l),u(v)),!1)}const S=[],b=Object.assign(pC,{defaultVisitor:p,convertValue:u,isVisitable:Ri});function g(v,m){if(!fe.isUndefined(v)){if(S.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));S.push(v),fe.forEach(v,function(s,y){(!(fe.isUndefined(s)||s===null)&&a.call(t,s,fe.isString(y)?y.trim():y,m,b))===!0&&g(s,m?m.concat(y):[y])}),S.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function zs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dl(e,t){this._pairs=[],e&&$a(e,this,t)}const Fd=dl.prototype;Fd.append=function(t,n){this._pairs.push([t,n])};Fd.toString=function(t){const n=t?function(r){return t.call(this,r,zs)}:zs;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function hC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kd(e,t,n){if(!t)return e;const r=n&&n.encode||hC;fe.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let l;if(a?l=a(t,n):l=fe.isURLSearchParams(t)?t.toString():new dl(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Hs{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Md={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gC=typeof URLSearchParams<"u"?URLSearchParams:dl,vC=typeof FormData<"u"?FormData:null,mC=typeof Blob<"u"?Blob:null,yC={isBrowser:!0,classes:{URLSearchParams:gC,FormData:vC,Blob:mC},protocols:["http","https","file","blob","url","data"]},fl=typeof window<"u"&&typeof document<"u",_i=typeof navigator=="object"&&navigator||void 0,bC=fl&&(!_i||["ReactNative","NativeScript","NS"].indexOf(_i.product)<0),CC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xC=fl&&window.location.href||"http://localhost",SC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fl,hasStandardBrowserEnv:bC,hasStandardBrowserWebWorkerEnv:CC,navigator:_i,origin:xC},Symbol.toStringTag,{value:"Module"})),Lt={...SC,...yC};function EC(e,t){return $a(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,l){return Lt.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function wC(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function IC(e){const t={},n=Object.keys(e);let r;const a=n.length;let l;for(r=0;r=n.length;return i=!i&&fe.isArray(a)?a.length:i,f?(fe.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!o):((!a[i]||!fe.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],l)&&fe.isArray(a[i])&&(a[i]=IC(a[i])),!o)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,a)=>{t(wC(r),a,n,0)}),n}return null}function TC(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const $r={transitional:Md,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,l=fe.isObject(t);if(l&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return a?JSON.stringify(Ud(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return EC(t,this.formSerializer).toString();if((o=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return $a(o?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),TC(t)):t}],transformResponse:[function(t){const n=this.transitional||$r.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t))return t;if(t&&fe.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?qe.from(o,qe.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{$r.headers[e]={}});const AC=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BC=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&AC[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},js=Symbol("internals");function pr(e){return e&&String(e).trim().toLowerCase()}function Qr(e){return e===!1||e==null?e:fe.isArray(e)?e.map(Qr):String(e)}function $C(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const RC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lo(e,t,n,r,a){if(fe.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function _C(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OC(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,l,i){return this[r].call(this,t,a,l,i)},configurable:!0})})}class jt{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function l(o,f,u){const p=pr(f);if(!p)throw new Error("header name must be a non-empty string");const S=fe.findKey(a,p);(!S||a[S]===void 0||u===!0||u===void 0&&a[S]!==!1)&&(a[S||f]=Qr(o))}const i=(o,f)=>fe.forEach(o,(u,p)=>l(u,p,f));if(fe.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(fe.isString(t)&&(t=t.trim())&&!RC(t))i(BC(t),n);else if(fe.isHeaders(t))for(const[o,f]of t.entries())l(f,o,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=pr(t),t){const r=fe.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return $C(a);if(fe.isFunction(n))return n.call(this,a,r);if(fe.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=pr(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||lo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function l(i){if(i=pr(i),i){const o=fe.findKey(r,i);o&&(!n||lo(r,r[o],o,n))&&(delete r[o],a=!0)}}return fe.isArray(t)?t.forEach(l):l(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const l=n[r];(!t||lo(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const n=this,r={};return fe.forEach(this,(a,l)=>{const i=fe.findKey(r,l);if(i){n[i]=Qr(a),delete n[l];return}const o=t?_C(l):String(l).trim();o!==l&&delete n[l],n[o]=Qr(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[js]=this[js]={accessors:{}}).accessors,a=this.prototype;function l(i){const o=pr(i);r[o]||(OC(a,i),r[o]=!0)}return fe.isArray(t)?t.forEach(l):l(t),this}}jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(jt);function so(e,t){const n=this||$r,r=t||n,a=jt.from(r.headers);let l=r.data;return fe.forEach(e,function(o){l=o.call(n,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function Vd(e){return!!(e&&e.__CANCEL__)}function ir(e,t,n){qe.call(this,e??"canceled",qe.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(ir,qe,{__CANCEL__:!0});function zd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new qe("Request failed with status code "+n.status,[qe.ERR_BAD_REQUEST,qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,l=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),p=r[l];i||(i=u),n[a]=f,r[a]=u;let S=l,b=0;for(;S!==a;)b+=n[S++],S=S%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),u-i{n=p,a=null,l&&(clearTimeout(l),l=null),e.apply(null,u)};return[(...u)=>{const p=Date.now(),S=p-n;S>=r?i(u,p):(a=u,l||(l=setTimeout(()=>{l=null,i(a)},r-S)))},()=>a&&i(a)]}const ua=(e,t,n=3)=>{let r=0;const a=PC(50,250);return DC(l=>{const i=l.loaded,o=l.lengthComputable?l.total:void 0,f=i-r,u=a(f),p=i<=o;r=i;const S={loaded:i,total:o,progress:o?i/o:void 0,bytes:f,rate:u||void 0,estimated:u&&o&&p?(o-i)/u:void 0,event:l,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(S)},n)},Ws=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qs=e=>(...t)=>fe.asap(()=>e(...t)),kC=Lt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lt.origin),Lt.navigator&&/(msie|trident)/i.test(Lt.navigator.userAgent)):()=>!0,LC=Lt.hasStandardBrowserEnv?{write(e,t,n,r,a,l){const i=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&i.push("path="+r),fe.isString(a)&&i.push("domain="+a),l===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function FC(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function KC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hd(e,t){return e&&!FC(t)?KC(e,t):t}const Gs=e=>e instanceof jt?{...e}:e;function Un(e,t){t=t||{};const n={};function r(u,p,S,b){return fe.isPlainObject(u)&&fe.isPlainObject(p)?fe.merge.call({caseless:b},u,p):fe.isPlainObject(p)?fe.merge({},p):fe.isArray(p)?p.slice():p}function a(u,p,S,b){if(fe.isUndefined(p)){if(!fe.isUndefined(u))return r(void 0,u,S,b)}else return r(u,p,S,b)}function l(u,p){if(!fe.isUndefined(p))return r(void 0,p)}function i(u,p){if(fe.isUndefined(p)){if(!fe.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function o(u,p,S){if(S in t)return r(u,p);if(S in e)return r(void 0,u)}const f={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(u,p,S)=>a(Gs(u),Gs(p),S,!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(p){const S=f[p]||a,b=S(e[p],t[p],p);fe.isUndefined(b)&&S!==o||(n[p]=b)}),n}const jd=e=>{const t=Un({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:l,headers:i,auth:o}=t;t.headers=i=jt.from(i),t.url=Kd(Hd(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let f;if(fe.isFormData(n)){if(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...p]=f?f.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...p].join("; "))}}if(Lt.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&kC(t.url))){const u=a&&l&&LC.read(l);u&&i.set(a,u)}return t},MC=typeof XMLHttpRequest<"u",UC=MC&&function(e){return new Promise(function(n,r){const a=jd(e);let l=a.data;const i=jt.from(a.headers).normalize();let{responseType:o,onUploadProgress:f,onDownloadProgress:u}=a,p,S,b,g,v;function m(){g&&g(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let h=new XMLHttpRequest;h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout;function s(){if(!h)return;const C=jt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};zd(function(c){n(c),m()},function(c){r(c),m()},T),h=null}"onloadend"in h?h.onloadend=s:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(s)},h.onabort=function(){h&&(r(new qe("Request aborted",qe.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new qe("Network Error",qe.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const T=a.transitional||Md;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new qe(w,T.clarifyTimeoutError?qe.ETIMEDOUT:qe.ECONNABORTED,e,h)),h=null},l===void 0&&i.setContentType(null),"setRequestHeader"in h&&fe.forEach(i.toJSON(),function(w,T){h.setRequestHeader(T,w)}),fe.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),o&&o!=="json"&&(h.responseType=a.responseType),u&&([b,v]=ua(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([S,g]=ua(f),h.upload.addEventListener("progress",S),h.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(p=C=>{h&&(r(!C||C.type?new ir(null,e,h):C),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const y=NC(a.url);if(y&&Lt.protocols.indexOf(y)===-1){r(new qe("Unsupported protocol "+y+":",qe.ERR_BAD_REQUEST,e));return}h.send(l||null)})},VC=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const l=function(u){if(!a){a=!0,o();const p=u instanceof Error?u:this.reason;r.abort(p instanceof qe?p:new ir(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,l(new qe(`timeout ${t} of ms exceeded`,qe.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:f}=r;return f.unsubscribe=()=>fe.asap(o),f}},zC=function*(e,t){let n=e.byteLength;if(n{const a=HC(e,t);let l=0,i,o=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:p}=await a.next();if(u){o(),f.close();return}let S=p.byteLength;if(n){let b=l+=S;n(b)}f.enqueue(new Uint8Array(p))}catch(u){throw o(u),u}},cancel(f){return o(f),a.return()}},{highWaterMark:2})},Ra=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wd=Ra&&typeof ReadableStream=="function",WC=Ra&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qC=Wd&&qd(()=>{let e=!1;const t=new Request(Lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qs=64*1024,Oi=Wd&&qd(()=>fe.isReadableStream(new Response("").body)),ca={stream:Oi&&(e=>e.body)};Ra&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ca[t]&&(ca[t]=fe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new qe(`Response type '${t}' is not supported`,qe.ERR_NOT_SUPPORT,r)})})})(new Response);const GC=async e=>{if(e==null)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e))return(await new Request(Lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e))return e.byteLength;if(fe.isURLSearchParams(e)&&(e=e+""),fe.isString(e))return(await WC(e)).byteLength},XC=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n??GC(t)},QC=Ra&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:l,timeout:i,onDownloadProgress:o,onUploadProgress:f,responseType:u,headers:p,withCredentials:S="same-origin",fetchOptions:b}=jd(e);u=u?(u+"").toLowerCase():"text";let g=VC([a,l&&l.toAbortSignal()],i),v;const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(f&&qC&&n!=="get"&&n!=="head"&&(h=await XC(p,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(fe.isFormData(r)&&(x=T.headers.get("content-type"))&&p.setContentType(x),T.body){const[c,d]=Ws(h,ua(qs(f)));r=Xs(T.body,Qs,c,d)}}fe.isString(S)||(S=S?"include":"omit");const s="credentials"in Request.prototype;v=new Request(t,{...b,signal:g,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:s?S:void 0});let y=await fetch(v);const C=Oi&&(u==="stream"||u==="response");if(Oi&&(o||C&&m)){const T={};["status","statusText","headers"].forEach(A=>{T[A]=y[A]});const x=fe.toFiniteNumber(y.headers.get("content-length")),[c,d]=o&&Ws(x,ua(qs(o),!0))||[];y=new Response(Xs(y.body,Qs,c,()=>{d&&d(),m&&m()}),T)}u=u||"text";let w=await ca[fe.findKey(ca,u)||"text"](y,e);return!C&&m&&m(),await new Promise((T,x)=>{zd(T,x,{data:w,headers:jt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:v})})}catch(s){throw m&&m(),s&&s.name==="TypeError"&&/fetch/i.test(s.message)?Object.assign(new qe("Network Error",qe.ERR_NETWORK,e,v),{cause:s.cause||s}):qe.from(s,s&&s.code,e,v)}}),Ni={http:dC,xhr:UC,fetch:QC};fe.forEach(Ni,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ys=e=>`- ${e}`,YC=e=>fe.isFunction(e)||e===null||e===!1,Gd={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let l=0;l`adapter ${o} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : +`+l.map(Ys).join(` +`):" "+Ys(l[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ni};function uo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ir(null,e)}function Js(e){return uo(e),e.headers=jt.from(e.headers),e.data=so.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gd.getAdapter(e.adapter||$r.adapter)(e).then(function(r){return uo(e),r.data=so.call(e,e.transformResponse,r),r.headers=jt.from(r.headers),r},function(r){return Vd(r)||(uo(e),r&&r.response&&(r.response.data=so.call(e,e.transformResponse,r.response),r.response.headers=jt.from(r.response.headers))),Promise.reject(r)})}const Xd="1.7.9",_a={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Zs={};_a.transitional=function(t,n,r){function a(l,i){return"[Axios v"+Xd+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,o)=>{if(t===!1)throw new qe(a(i," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED);return n&&!Zs[i]&&(Zs[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,o):!0}};_a.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function JC(e,t,n){if(typeof e!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const l=r[a],i=t[l];if(i){const o=e[l],f=o===void 0||i(o,l,e);if(f!==!0)throw new qe("option "+l+" must be "+f,qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qe("Unknown option "+l,qe.ERR_BAD_OPTION)}}const Yr={assertOptions:JC,validators:_a},ln=Yr.validators;class Dn{constructor(t){this.defaults=t,this.interceptors={request:new Hs,response:new Hs}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Un(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:l}=n;r!==void 0&&Yr.assertOptions(r,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),a!=null&&(fe.isFunction(a)?n.paramsSerializer={serialize:a}:Yr.assertOptions(a,{encode:ln.function,serialize:ln.function},!0)),Yr.assertOptions(n,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&fe.merge(l.common,l[n.method]);l&&fe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=jt.concat(i,l);const o=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let p,S=0,b;if(!f){const v=[Js.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,u),b=v.length,p=Promise.resolve(n);S{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](a);r._listeners=null}),this.promise.then=a=>{let l;const i=new Promise(o=>{r.subscribe(o),l=o}).then(a);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,o){r.reason||(r.reason=new ir(l,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pl(function(a){t=a}),cancel:t}}}function ZC(e){return function(n){return e.apply(null,n)}}function ex(e){return fe.isObject(e)&&e.isAxiosError===!0}const Pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pi).forEach(([e,t])=>{Pi[t]=e});function Qd(e){const t=new Dn(e),n=Ad(Dn.prototype.request,t);return fe.extend(n,Dn.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Qd(Un(e,a))},n}const At=Qd($r);At.Axios=Dn;At.CanceledError=ir;At.CancelToken=pl;At.isCancel=Vd;At.VERSION=Xd;At.toFormData=$a;At.AxiosError=qe;At.Cancel=At.CanceledError;At.all=function(t){return Promise.all(t)};At.spread=ZC;At.isAxiosError=ex;At.mergeConfig=Un;At.AxiosHeaders=jt;At.formToJSON=e=>Ud(fe.isHTMLForm(e)?new FormData(e):e);At.getAdapter=Gd.getAdapter;At.HttpStatusCode=Pi;At.default=At;const tx=window.location.protocol,nx=window.location.hostname,rx=window.location.port,ax=tx+"//"+nx+":"+rx+"/api",Oa=At.create({baseURL:ax});Oa.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)});Oa.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const ox=e=>Oa.get("/file/check",{params:{shareId:e}}),ix=e=>Oa.post("/file/list",{key:e});var co,eu;function Xe(){return eu||(eu=1,co={options:{usePureJavaScript:!1}}),co}var fo={exports:{}},po,tu;function lx(){if(tu)return po;tu=1;var e={};po=e;var t={};e.encode=function(r,a,l){if(typeof a!="string")throw new TypeError('"alphabet" must be a string.');if(l!==void 0&&typeof l!="number")throw new TypeError('"maxline" must be a number.');var i="";if(!(r instanceof Uint8Array))i=n(r,a);else{var o=0,f=a.length,u=a.charAt(0),p=[0];for(o=0;o0;)p.push(b%f),b=b/f|0}for(o=0;r[o]===0&&o=0;--o)i+=a[p[o]]}if(l){var g=new RegExp(".{1,"+l+"}","g");i=i.match(g).join(`\r +`)}return i},e.decode=function(r,a){if(typeof r!="string")throw new TypeError('"input" must be a string.');if(typeof a!="string")throw new TypeError('"alphabet" must be a string.');var l=t[a];if(!l){l=t[a]=[];for(var i=0;i>=8;for(;b>0;)u.push(b&255),b>>=8}for(var g=0;r[g]===f&&g0;)f.push(p%i),p=p/i|0}var S="";for(l=0;r.at(l)===0&&l=0;--l)S+=a[f[l]];return S}return po}var nu;function Je(){if(nu)return fo.exports;nu=1;var e=Xe(),t=lx(),n=fo.exports=e.util=e.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){n.nextTick=process.nextTick,typeof setImmediate=="function"?n.setImmediate=setImmediate:n.setImmediate=n.nextTick;return}if(typeof setImmediate=="function"){n.setImmediate=function(){return setImmediate.apply(void 0,arguments)},n.nextTick=function(c){return setImmediate(c)};return}if(n.setImmediate=function(c){setTimeout(c,0)},typeof window<"u"&&typeof window.postMessage=="function"){let c=function(d){if(d.source===window&&d.data===s){d.stopPropagation();var A=y.slice();y.length=0,A.forEach(function(B){B()})}};var s="forge.setImmediate",y=[];n.setImmediate=function(d){y.push(d),y.length===1&&window.postMessage(s,"*")},window.addEventListener("message",c,!0)}if(typeof MutationObserver<"u"){var C=Date.now(),w=!0,T=document.createElement("div"),y=[];new MutationObserver(function(){var d=y.slice();y.length=0,d.forEach(function(A){A()})}).observe(T,{attributes:!0});var x=n.setImmediate;n.setImmediate=function(d){Date.now()-C>15?(C=Date.now(),x(d)):(y.push(d),y.length===1&&T.setAttribute("a",w=!w))}}n.nextTick=n.setImmediate})(),n.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,n.globalScope=function(){return n.isNodejs?m0:typeof self>"u"?window:self}(),n.isArray=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"},n.isArrayBuffer=function(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer},n.isArrayBufferView=function(s){return s&&n.isArrayBuffer(s.buffer)&&s.byteLength!==void 0};function r(s){if(!(s===8||s===16||s===24||s===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+s)}n.ByteBuffer=a;function a(s){if(this.data="",this.read=0,typeof s=="string")this.data=s;else if(n.isArrayBuffer(s)||n.isArrayBufferView(s))if(typeof Buffer<"u"&&s instanceof Buffer)this.data=s.toString("binary");else{var y=new Uint8Array(s);try{this.data=String.fromCharCode.apply(null,y)}catch{for(var C=0;Cl&&(this.data.substr(0,1),this._constructedStringLength=0)},n.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},n.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},n.ByteStringBuffer.prototype.putByte=function(s){return this.putBytes(String.fromCharCode(s))},n.ByteStringBuffer.prototype.fillWithByte=function(s,y){s=String.fromCharCode(s);for(var C=this.data;y>0;)y&1&&(C+=s),y>>>=1,y>0&&(s+=s);return this.data=C,this._optimizeConstructedString(y),this},n.ByteStringBuffer.prototype.putBytes=function(s){return this.data+=s,this._optimizeConstructedString(s.length),this},n.ByteStringBuffer.prototype.putString=function(s){return this.putBytes(n.encodeUtf8(s))},n.ByteStringBuffer.prototype.putInt16=function(s){return this.putBytes(String.fromCharCode(s>>8&255)+String.fromCharCode(s&255))},n.ByteStringBuffer.prototype.putInt24=function(s){return this.putBytes(String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255))},n.ByteStringBuffer.prototype.putInt32=function(s){return this.putBytes(String.fromCharCode(s>>24&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255))},n.ByteStringBuffer.prototype.putInt16Le=function(s){return this.putBytes(String.fromCharCode(s&255)+String.fromCharCode(s>>8&255))},n.ByteStringBuffer.prototype.putInt24Le=function(s){return this.putBytes(String.fromCharCode(s&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s>>16&255))},n.ByteStringBuffer.prototype.putInt32Le=function(s){return this.putBytes(String.fromCharCode(s&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>24&255))},n.ByteStringBuffer.prototype.putInt=function(s,y){r(y);var C="";do y-=8,C+=String.fromCharCode(s>>y&255);while(y>0);return this.putBytes(C)},n.ByteStringBuffer.prototype.putSignedInt=function(s,y){return s<0&&(s+=2<0);return y},n.ByteStringBuffer.prototype.getSignedInt=function(s){var y=this.getInt(s),C=2<=C&&(y-=C<<1),y},n.ByteStringBuffer.prototype.getBytes=function(s){var y;return s?(s=Math.min(this.length(),s),y=this.data.slice(this.read,this.read+s),this.read+=s):s===0?y="":(y=this.read===0?this.data:this.data.slice(this.read),this.clear()),y},n.ByteStringBuffer.prototype.bytes=function(s){return typeof s>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+s)},n.ByteStringBuffer.prototype.at=function(s){return this.data.charCodeAt(this.read+s)},n.ByteStringBuffer.prototype.setAt=function(s,y){return this.data=this.data.substr(0,this.read+s)+String.fromCharCode(y)+this.data.substr(this.read+s+1),this},n.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},n.ByteStringBuffer.prototype.copy=function(){var s=n.createBuffer(this.data);return s.read=this.read,s},n.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},n.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},n.ByteStringBuffer.prototype.truncate=function(s){var y=Math.max(0,this.length()-s);return this.data=this.data.substr(this.read,y),this.read=0,this},n.ByteStringBuffer.prototype.toHex=function(){for(var s="",y=this.read;y=s)return this;y=Math.max(y||this.growSize,s);var C=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),w=new Uint8Array(this.length()+y);return w.set(C),this.data=new DataView(w.buffer),this},n.DataBuffer.prototype.putByte=function(s){return this.accommodate(1),this.data.setUint8(this.write++,s),this},n.DataBuffer.prototype.fillWithByte=function(s,y){this.accommodate(y);for(var C=0;C>8&65535),this.data.setInt8(this.write,s>>16&255),this.write+=3,this},n.DataBuffer.prototype.putInt32=function(s){return this.accommodate(4),this.data.setInt32(this.write,s),this.write+=4,this},n.DataBuffer.prototype.putInt16Le=function(s){return this.accommodate(2),this.data.setInt16(this.write,s,!0),this.write+=2,this},n.DataBuffer.prototype.putInt24Le=function(s){return this.accommodate(3),this.data.setInt8(this.write,s>>16&255),this.data.setInt16(this.write,s>>8&65535,!0),this.write+=3,this},n.DataBuffer.prototype.putInt32Le=function(s){return this.accommodate(4),this.data.setInt32(this.write,s,!0),this.write+=4,this},n.DataBuffer.prototype.putInt=function(s,y){r(y),this.accommodate(y/8);do y-=8,this.data.setInt8(this.write++,s>>y&255);while(y>0);return this},n.DataBuffer.prototype.putSignedInt=function(s,y){return r(y),this.accommodate(y/8),s<0&&(s+=2<0);return y},n.DataBuffer.prototype.getSignedInt=function(s){var y=this.getInt(s),C=2<=C&&(y-=C<<1),y},n.DataBuffer.prototype.getBytes=function(s){var y;return s?(s=Math.min(this.length(),s),y=this.data.slice(this.read,this.read+s),this.read+=s):s===0?y="":(y=this.read===0?this.data:this.data.slice(this.read),this.clear()),y},n.DataBuffer.prototype.bytes=function(s){return typeof s>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+s)},n.DataBuffer.prototype.at=function(s){return this.data.getUint8(this.read+s)},n.DataBuffer.prototype.setAt=function(s,y){return this.data.setUint8(s,y),this},n.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},n.DataBuffer.prototype.copy=function(){return new n.DataBuffer(this)},n.DataBuffer.prototype.compact=function(){if(this.read>0){var s=new Uint8Array(this.data.buffer,this.read),y=new Uint8Array(s.byteLength);y.set(s),this.data=new DataView(y),this.write-=this.read,this.read=0}return this},n.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},n.DataBuffer.prototype.truncate=function(s){return this.write=Math.max(0,this.length()-s),this.read=Math.min(this.read,this.write),this},n.DataBuffer.prototype.toHex=function(){for(var s="",y=this.read;y0;)y&1&&(C+=s),y>>>=1,y>0&&(s+=s);return C},n.xorBytes=function(s,y,C){for(var w="",T="",x="",c=0,d=0;C>0;--C,++c)T=s.charCodeAt(c)^y.charCodeAt(c),d>=10&&(w+=x,x="",d=0),x+=String.fromCharCode(T),++d;return w+=x,w},n.hexToBytes=function(s){var y="",C=0;for(s.length&!0&&(C=1,y+=String.fromCharCode(parseInt(s[0],16)));C>24&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255)};var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],u="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";n.encode64=function(s,y){for(var C="",w="",T,x,c,d=0;d>2),C+=o.charAt((T&3)<<4|x>>4),isNaN(x)?C+="==":(C+=o.charAt((x&15)<<2|c>>6),C+=isNaN(c)?"=":o.charAt(c&63)),y&&C.length>y&&(w+=C.substr(0,y)+`\r +`,C=C.substr(y));return w+=C,w},n.decode64=function(s){s=s.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var y="",C,w,T,x,c=0;c>4),T!==64&&(y+=String.fromCharCode((w&15)<<4|T>>2),x!==64&&(y+=String.fromCharCode((T&3)<<6|x)));return y},n.encodeUtf8=function(s){return unescape(encodeURIComponent(s))},n.decodeUtf8=function(s){return decodeURIComponent(escape(s))},n.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:t.encode,decode:t.decode}},n.binary.raw.encode=function(s){return String.fromCharCode.apply(null,s)},n.binary.raw.decode=function(s,y,C){var w=y;w||(w=new Uint8Array(s.length)),C=C||0;for(var T=C,x=0;x>2),C+=o.charAt((T&3)<<4|x>>4),isNaN(x)?C+="==":(C+=o.charAt((x&15)<<2|c>>6),C+=isNaN(c)?"=":o.charAt(c&63)),y&&C.length>y&&(w+=C.substr(0,y)+`\r +`,C=C.substr(y));return w+=C,w},n.binary.base64.decode=function(s,y,C){var w=y;w||(w=new Uint8Array(Math.ceil(s.length/4)*3)),s=s.replace(/[^A-Za-z0-9\+\/\=]/g,""),C=C||0;for(var T,x,c,d,A=0,B=C;A>4,c!==64&&(w[B++]=(x&15)<<4|c>>2,d!==64&&(w[B++]=(c&3)<<6|d));return y?B-C:w.subarray(0,B)},n.binary.base58.encode=function(s,y){return n.binary.baseN.encode(s,u,y)},n.binary.base58.decode=function(s,y){return n.binary.baseN.decode(s,u,y)},n.text={utf8:{},utf16:{}},n.text.utf8.encode=function(s,y,C){s=n.encodeUtf8(s);var w=y;w||(w=new Uint8Array(s.length)),C=C||0;for(var T=C,x=0;x"u"&&(C=["web","flash"]);var T,x=!1,c=null;for(var d in C){T=C[d];try{if(T==="flash"||T==="both"){if(y[0]===null)throw new Error("Flash local storage not available.");w=s.apply(this,y),x=T==="flash"}(T==="web"||T==="both")&&(y[0]=localStorage,w=s.apply(this,y),x=!0)}catch(A){c=A}if(x)break}if(!x)throw c;return w};return n.setItem=function(s,y,C,w,T){h(b,arguments,T)},n.getItem=function(s,y,C,w){return h(g,arguments,w)},n.removeItem=function(s,y,C,w){h(v,arguments,w)},n.clearItems=function(s,y,C){h(m,arguments,C)},n.isEmpty=function(s){for(var y in s)if(s.hasOwnProperty(y))return!1;return!0},n.format=function(s){for(var y=/%./g,C,w,T=0,x=[],c=0;C=y.exec(s);){w=s.substring(c,y.lastIndex-2),w.length>0&&x.push(w),c=y.lastIndex;var d=C[0][1];switch(d){case"s":case"o":T");break;case"%":x.push("%");break;default:x.push("<%"+d+"?>")}}return x.push(s.substring(c)),x.join("")},n.formatNumber=function(s,y,C,w){var T=s,x=isNaN(y=Math.abs(y))?2:y,c=C===void 0?",":C,d=w===void 0?".":w,A=T<0?"-":"",B=parseInt(T=Math.abs(+T||0).toFixed(x),10)+"",O=B.length>3?B.length%3:0;return A+(O?B.substr(0,O)+d:"")+B.substr(O).replace(/(\d{3})(?=\d)/g,"$1"+d)+(x?c+Math.abs(T-B).toFixed(x).slice(2):"")},n.formatSize=function(s){return s>=1073741824?s=n.formatNumber(s/1073741824,2,".","")+" GiB":s>=1048576?s=n.formatNumber(s/1048576,2,".","")+" MiB":s>=1024?s=n.formatNumber(s/1024,0)+" KiB":s=n.formatNumber(s,0)+" bytes",s},n.bytesFromIP=function(s){return s.indexOf(".")!==-1?n.bytesFromIPv4(s):s.indexOf(":")!==-1?n.bytesFromIPv6(s):null},n.bytesFromIPv4=function(s){if(s=s.split("."),s.length!==4)return null;for(var y=n.createBuffer(),C=0;CC[w].end-C[w].start&&(w=C.length-1))}y.push(x)}if(C.length>0){var A=C[w];A.end-A.start>0&&(y.splice(A.start,A.end-A.start+1,""),A.start===0&&y.unshift(""),A.end===7&&y.push(""))}return y.join(":")},n.estimateCores=function(s,y){if(typeof s=="function"&&(y=s,s={}),s=s||{},"cores"in n&&!s.update)return y(null,n.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return n.cores=navigator.hardwareConcurrency,y(null,n.cores);if(typeof Worker>"u")return n.cores=1,y(null,n.cores);if(typeof Blob>"u")return n.cores=2,y(null,n.cores);var C=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(c){var d=Date.now(),A=d+4;self.postMessage({st:d,et:A})})}).toString(),")()"],{type:"application/javascript"}));w([],5,16);function w(c,d,A){if(d===0){var B=Math.floor(c.reduce(function(O,_){return O+_},0)/c.length);return n.cores=Math.max(1,B),URL.revokeObjectURL(C),y(null,n.cores)}T(A,function(O,_){c.push(x(A,_)),w(c,d-1,A)})}function T(c,d){for(var A=[],B=[],O=0;OM.st&&O.stO.st&&M.st0))return!0;for(var f=0;f0))return!0;for(var f=0;f0)return!1;var o=l.length(),f=l.at(o-1);return f>this.blockSize<<2?!1:(l.truncate(f),!0)},t.cbc=function(l){l=l||{},this.name="CBC",this.cipher=l.cipher,this.blockSize=l.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},t.cbc.prototype.start=function(l){if(l.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in l)this._iv=n(l.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},t.cbc.prototype.encrypt=function(l,i,o){if(l.length()0))return!0;for(var f=0;f0))return!0;for(var f=0;f0)return!1;var o=l.length(),f=l.at(o-1);return f>this.blockSize<<2?!1:(l.truncate(f),!0)},t.cfb=function(l){l=l||{},this.name="CFB",this.cipher=l.cipher,this.blockSize=l.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=e.util.createBuffer(),this._partialBytes=0},t.cfb.prototype.start=function(l){if(!("iv"in l))throw new Error("Invalid IV parameter.");this._iv=n(l.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},t.cfb.prototype.encrypt=function(l,i,o){var f=l.length();if(f===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&f>=this.blockSize){for(var u=0;u0&&(p=this.blockSize-p),this._partialOutput.clear();for(var u=0;u0)l.read-=this.blockSize;else for(var u=0;u0&&this._partialOutput.getBytes(this._partialBytes),p>0&&!o)return i.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=p,!0;i.putBytes(this._partialOutput.getBytes(f-this._partialBytes)),this._partialBytes=0},t.cfb.prototype.decrypt=function(l,i,o){var f=l.length();if(f===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&f>=this.blockSize){for(var u=0;u0&&(p=this.blockSize-p),this._partialOutput.clear();for(var u=0;u0)l.read-=this.blockSize;else for(var u=0;u0&&this._partialOutput.getBytes(this._partialBytes),p>0&&!o)return i.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=p,!0;i.putBytes(this._partialOutput.getBytes(f-this._partialBytes)),this._partialBytes=0},t.ofb=function(l){l=l||{},this.name="OFB",this.cipher=l.cipher,this.blockSize=l.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=e.util.createBuffer(),this._partialBytes=0},t.ofb.prototype.start=function(l){if(!("iv"in l))throw new Error("Invalid IV parameter.");this._iv=n(l.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},t.ofb.prototype.encrypt=function(l,i,o){var f=l.length();if(l.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&f>=this.blockSize){for(var u=0;u0&&(p=this.blockSize-p),this._partialOutput.clear();for(var u=0;u0)l.read-=this.blockSize;else for(var u=0;u0&&this._partialOutput.getBytes(this._partialBytes),p>0&&!o)return i.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=p,!0;i.putBytes(this._partialOutput.getBytes(f-this._partialBytes)),this._partialBytes=0},t.ofb.prototype.decrypt=t.ofb.prototype.encrypt,t.ctr=function(l){l=l||{},this.name="CTR",this.cipher=l.cipher,this.blockSize=l.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=e.util.createBuffer(),this._partialBytes=0},t.ctr.prototype.start=function(l){if(!("iv"in l))throw new Error("Invalid IV parameter.");this._iv=n(l.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},t.ctr.prototype.encrypt=function(l,i,o){var f=l.length();if(f===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&f>=this.blockSize)for(var u=0;u0&&(p=this.blockSize-p),this._partialOutput.clear();for(var u=0;u0&&(l.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),p>0&&!o)return i.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=p,!0;i.putBytes(this._partialOutput.getBytes(f-this._partialBytes)),this._partialBytes=0}r(this._inBlock)},t.ctr.prototype.decrypt=t.ctr.prototype.encrypt,t.gcm=function(l){l=l||{},this.name="GCM",this.cipher=l.cipher,this.blockSize=l.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=e.util.createBuffer(),this._partialBytes=0,this._R=3774873600},t.gcm.prototype.start=function(l){if(!("iv"in l))throw new Error("Invalid IV parameter.");var i=e.util.createBuffer(l.iv);this._cipherLength=0;var o;if("additionalData"in l?o=e.util.createBuffer(l.additionalData):o=e.util.createBuffer(),"tagLength"in l?this._tagLength=l.tagLength:this._tagLength=128,this._tag=null,l.decrypt&&(this._tag=e.util.createBuffer(l.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var f=i.length();if(f===12)this._j0=[i.getInt32(),i.getInt32(),i.getInt32(),1];else{for(this._j0=[0,0,0,0];i.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[i.getInt32(),i.getInt32(),i.getInt32(),i.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(a(f*8)))}this._inBlock=this._j0.slice(0),r(this._inBlock),this._partialBytes=0,o=e.util.createBuffer(o),this._aDataLength=a(o.length()*8);var u=o.length()%this.blockSize;for(u&&o.fillWithByte(0,this.blockSize-u),this._s=[0,0,0,0];o.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[o.getInt32(),o.getInt32(),o.getInt32(),o.getInt32()])},t.gcm.prototype.encrypt=function(l,i,o){var f=l.length();if(f===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&f>=this.blockSize){for(var u=0;u0&&(p=this.blockSize-p),this._partialOutput.clear();for(var u=0;u0&&this._partialOutput.getBytes(this._partialBytes),p>0&&!o)return l.read-=this.blockSize,i.putBytes(this._partialOutput.getBytes(p-this._partialBytes)),this._partialBytes=p,!0;i.putBytes(this._partialOutput.getBytes(f-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),r(this._inBlock)},t.gcm.prototype.decrypt=function(l,i,o){var f=l.length();if(f0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),r(this._inBlock),this._hashBlock[0]=l.getInt32(),this._hashBlock[1]=l.getInt32(),this._hashBlock[2]=l.getInt32(),this._hashBlock[3]=l.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var u=0;u0;--f)i[f]=l[f]>>>1|(l[f-1]&1)<<31;i[0]=l[0]>>>1,o&&(i[0]^=this._R)},t.gcm.prototype.tableMultiply=function(l){for(var i=[0,0,0,0],o=0;o<32;++o){var f=o/8|0,u=l[f]>>>(7-o%8)*4&15,p=this._m[o][u];i[0]^=p[0],i[1]^=p[1],i[2]^=p[2],i[3]^=p[3]}return i},t.gcm.prototype.ghash=function(l,i,o){return i[0]^=o[0],i[1]^=o[1],i[2]^=o[2],i[3]^=o[3],this.tableMultiply(i)},t.gcm.prototype.generateHashTable=function(l,i){for(var o=8/i,f=4*o,u=16*o,p=new Array(u),S=0;S>>1,u=new Array(o);u[f]=l.slice(0);for(var p=f>>>1;p>0;)this.pow(u[2*p],u[p]=[]),p>>=1;for(p=2;p4){var o=l;l=e.util.createBuffer();for(var f=0;f>>2;for(var h=0;h>8^w&255^99,a[m]=w,l[w]=m,T=g[w],s=g[m],y=g[s],C=g[y],x=T<<24^w<<16^w<<8^(w^T),c=(s^y^C)<<24^(m^C)<<16^(m^y^C)<<8^(m^s^C);for(var d=0;d<4;++d)o[d][m]=x,f[d][w]=c,x=x<<24|x>>>8,c=c<<24|c>>>8;m===0?m=h=1:(m=s^g[g[g[s^C]]],h^=g[g[h]])}}function p(g,v){for(var m=g.slice(0),h,s=1,y=m.length,C=y+6+1,w=r*C,T=y;T>>16&255]<<24^a[h>>>8&255]<<16^a[h&255]<<8^a[h>>>24]^i[s]<<24,s++):y>6&&T%y===4&&(h=a[h>>>24]<<24^a[h>>>16&255]<<16^a[h>>>8&255]<<8^a[h&255]),m[T]=m[T-y]^h;if(v){var x,c=f[0],d=f[1],A=f[2],B=f[3],O=m.slice(0);w=m.length;for(var T=0,_=w-r;T>>24]]^d[a[x>>>16&255]]^A[a[x>>>8&255]]^B[a[x&255]];m=O}return m}function S(g,v,m,h){var s=g.length/4-1,y,C,w,T,x;h?(y=f[0],C=f[1],w=f[2],T=f[3],x=l):(y=o[0],C=o[1],w=o[2],T=o[3],x=a);var c,d,A,B,O,_,k;c=v[0]^g[0],d=v[h?3:1]^g[1],A=v[2]^g[2],B=v[h?1:3]^g[3];for(var M=3,V=1;V>>24]^C[d>>>16&255]^w[A>>>8&255]^T[B&255]^g[++M],_=y[d>>>24]^C[A>>>16&255]^w[B>>>8&255]^T[c&255]^g[++M],k=y[A>>>24]^C[B>>>16&255]^w[c>>>8&255]^T[d&255]^g[++M],B=y[B>>>24]^C[c>>>16&255]^w[d>>>8&255]^T[A&255]^g[++M],c=O,d=_,A=k;m[0]=x[c>>>24]<<24^x[d>>>16&255]<<16^x[A>>>8&255]<<8^x[B&255]^g[++M],m[h?3:1]=x[d>>>24]<<24^x[A>>>16&255]<<16^x[B>>>8&255]<<8^x[c&255]^g[++M],m[2]=x[A>>>24]<<24^x[B>>>16&255]<<16^x[c>>>8&255]<<8^x[d&255]^g[++M],m[h?1:3]=x[B>>>24]<<24^x[c>>>16&255]<<16^x[d>>>8&255]<<8^x[A&255]^g[++M]}function b(g){g=g||{};var v=(g.mode||"CBC").toUpperCase(),m="AES-"+v,h;g.decrypt?h=e.cipher.createDecipher(m,g.key):h=e.cipher.createCipher(m,g.key);var s=h.start;return h.start=function(y,C){var w=null;C instanceof e.util.ByteBuffer&&(w=C,C={}),C=C||{},C.output=w,C.iv=y,s.call(h,C)},h}return vo}var mo={exports:{}},yo={exports:{}},bo={exports:{}},iu;function Hn(){if(iu)return bo.exports;iu=1;var e=Xe();e.pki=e.pki||{};var t=bo.exports=e.pki.oids=e.oids=e.oids||{};function n(a,l){t[a]=l,t[l]=a}function r(a,l){t[a]=l}return n("1.2.840.113549.1.1.1","rsaEncryption"),n("1.2.840.113549.1.1.4","md5WithRSAEncryption"),n("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),n("1.2.840.113549.1.1.7","RSAES-OAEP"),n("1.2.840.113549.1.1.8","mgf1"),n("1.2.840.113549.1.1.9","pSpecified"),n("1.2.840.113549.1.1.10","RSASSA-PSS"),n("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),n("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),n("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),n("1.3.101.112","EdDSA25519"),n("1.2.840.10040.4.3","dsa-with-sha1"),n("1.3.14.3.2.7","desCBC"),n("1.3.14.3.2.26","sha1"),n("1.3.14.3.2.29","sha1WithRSASignature"),n("2.16.840.1.101.3.4.2.1","sha256"),n("2.16.840.1.101.3.4.2.2","sha384"),n("2.16.840.1.101.3.4.2.3","sha512"),n("2.16.840.1.101.3.4.2.4","sha224"),n("2.16.840.1.101.3.4.2.5","sha512-224"),n("2.16.840.1.101.3.4.2.6","sha512-256"),n("1.2.840.113549.2.2","md2"),n("1.2.840.113549.2.5","md5"),n("1.2.840.113549.1.7.1","data"),n("1.2.840.113549.1.7.2","signedData"),n("1.2.840.113549.1.7.3","envelopedData"),n("1.2.840.113549.1.7.4","signedAndEnvelopedData"),n("1.2.840.113549.1.7.5","digestedData"),n("1.2.840.113549.1.7.6","encryptedData"),n("1.2.840.113549.1.9.1","emailAddress"),n("1.2.840.113549.1.9.2","unstructuredName"),n("1.2.840.113549.1.9.3","contentType"),n("1.2.840.113549.1.9.4","messageDigest"),n("1.2.840.113549.1.9.5","signingTime"),n("1.2.840.113549.1.9.6","counterSignature"),n("1.2.840.113549.1.9.7","challengePassword"),n("1.2.840.113549.1.9.8","unstructuredAddress"),n("1.2.840.113549.1.9.14","extensionRequest"),n("1.2.840.113549.1.9.20","friendlyName"),n("1.2.840.113549.1.9.21","localKeyId"),n("1.2.840.113549.1.9.22.1","x509Certificate"),n("1.2.840.113549.1.12.10.1.1","keyBag"),n("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),n("1.2.840.113549.1.12.10.1.3","certBag"),n("1.2.840.113549.1.12.10.1.4","crlBag"),n("1.2.840.113549.1.12.10.1.5","secretBag"),n("1.2.840.113549.1.12.10.1.6","safeContentsBag"),n("1.2.840.113549.1.5.13","pkcs5PBES2"),n("1.2.840.113549.1.5.12","pkcs5PBKDF2"),n("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),n("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),n("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),n("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),n("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),n("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),n("1.2.840.113549.2.7","hmacWithSHA1"),n("1.2.840.113549.2.8","hmacWithSHA224"),n("1.2.840.113549.2.9","hmacWithSHA256"),n("1.2.840.113549.2.10","hmacWithSHA384"),n("1.2.840.113549.2.11","hmacWithSHA512"),n("1.2.840.113549.3.7","des-EDE3-CBC"),n("2.16.840.1.101.3.4.1.2","aes128-CBC"),n("2.16.840.1.101.3.4.1.22","aes192-CBC"),n("2.16.840.1.101.3.4.1.42","aes256-CBC"),n("2.5.4.3","commonName"),n("2.5.4.4","surname"),n("2.5.4.5","serialNumber"),n("2.5.4.6","countryName"),n("2.5.4.7","localityName"),n("2.5.4.8","stateOrProvinceName"),n("2.5.4.9","streetAddress"),n("2.5.4.10","organizationName"),n("2.5.4.11","organizationalUnitName"),n("2.5.4.12","title"),n("2.5.4.13","description"),n("2.5.4.15","businessCategory"),n("2.5.4.17","postalCode"),n("2.5.4.42","givenName"),n("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),n("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),n("2.16.840.1.113730.1.1","nsCertType"),n("2.16.840.1.113730.1.13","nsComment"),r("2.5.29.1","authorityKeyIdentifier"),r("2.5.29.2","keyAttributes"),r("2.5.29.3","certificatePolicies"),r("2.5.29.4","keyUsageRestriction"),r("2.5.29.5","policyMapping"),r("2.5.29.6","subtreesConstraint"),r("2.5.29.7","subjectAltName"),r("2.5.29.8","issuerAltName"),r("2.5.29.9","subjectDirectoryAttributes"),r("2.5.29.10","basicConstraints"),r("2.5.29.11","nameConstraints"),r("2.5.29.12","policyConstraints"),r("2.5.29.13","basicConstraints"),n("2.5.29.14","subjectKeyIdentifier"),n("2.5.29.15","keyUsage"),r("2.5.29.16","privateKeyUsagePeriod"),n("2.5.29.17","subjectAltName"),n("2.5.29.18","issuerAltName"),n("2.5.29.19","basicConstraints"),r("2.5.29.20","cRLNumber"),r("2.5.29.21","cRLReason"),r("2.5.29.22","expirationDate"),r("2.5.29.23","instructionCode"),r("2.5.29.24","invalidityDate"),r("2.5.29.25","cRLDistributionPoints"),r("2.5.29.26","issuingDistributionPoint"),r("2.5.29.27","deltaCRLIndicator"),r("2.5.29.28","issuingDistributionPoint"),r("2.5.29.29","certificateIssuer"),r("2.5.29.30","nameConstraints"),n("2.5.29.31","cRLDistributionPoints"),n("2.5.29.32","certificatePolicies"),r("2.5.29.33","policyMappings"),r("2.5.29.34","policyConstraints"),n("2.5.29.35","authorityKeyIdentifier"),r("2.5.29.36","policyConstraints"),n("2.5.29.37","extKeyUsage"),r("2.5.29.46","freshestCRL"),r("2.5.29.54","inhibitAnyPolicy"),n("1.3.6.1.4.1.11129.2.4.2","timestampList"),n("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),n("1.3.6.1.5.5.7.3.1","serverAuth"),n("1.3.6.1.5.5.7.3.2","clientAuth"),n("1.3.6.1.5.5.7.3.3","codeSigning"),n("1.3.6.1.5.5.7.3.4","emailProtection"),n("1.3.6.1.5.5.7.3.8","timeStamping"),bo.exports}var lu;function fn(){if(lu)return yo.exports;lu=1;var e=Xe();Je(),Hn();var t=yo.exports=e.asn1=e.asn1||{};t.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},t.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},t.create=function(i,o,f,u,p){if(e.util.isArray(u)){for(var S=[],b=0;bo){var u=new Error("Too few bytes to parse DER.");throw u.available=i.length(),u.remaining=o,u.requested=f,u}}var r=function(i,o){var f=i.getByte();if(o--,f!==128){var u,p=f&128;if(!p)u=f;else{var S=f&127;n(i,o,S),u=i.getInt(S<<3)}if(u<0)throw new Error("Negative length: "+u);return u}};t.fromDer=function(i,o){o===void 0&&(o={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof o=="boolean"&&(o={strict:o,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in o||(o.strict=!0),"parseAllBytes"in o||(o.parseAllBytes=!0),"decodeBitStrings"in o||(o.decodeBitStrings=!0),typeof i=="string"&&(i=e.util.createBuffer(i));var f=i.length(),u=a(i,i.length(),0,o);if(o.parseAllBytes&&i.length()!==0){var p=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw p.byteCount=f,p.remaining=i.length(),p}return u};function a(i,o,f,u){var p;n(i,o,2);var S=i.getByte();o--;var b=S&192,g=S&31;p=i.length();var v=r(i,o);if(o-=p-i.length(),v!==void 0&&v>o){if(u.strict){var m=new Error("Too few bytes to read ASN.1 value.");throw m.available=i.length(),m.remaining=o,m.requested=v,m}v=o}var h,s,y=(S&32)===32;if(y)if(h=[],v===void 0)for(;;){if(n(i,o,2),i.bytes(2)==="\0\0"){i.getBytes(2),o-=2;break}p=i.length(),h.push(a(i,o,f+1,u)),o-=p-i.length()}else for(;v>0;)p=i.length(),h.push(a(i,v,f+1,u)),o-=p-i.length(),v-=p-i.length();if(h===void 0&&b===t.Class.UNIVERSAL&&g===t.Type.BITSTRING&&(s=i.bytes(v)),h===void 0&&u.decodeBitStrings&&b===t.Class.UNIVERSAL&&g===t.Type.BITSTRING&&v>1){var C=i.read,w=o,T=0;if(g===t.Type.BITSTRING&&(n(i,o,1),T=i.getByte(),o--),T===0)try{p=i.length();var x={strict:!0,decodeBitStrings:!0},c=a(i,o,f+1,x),d=p-i.length();o-=d,g==t.Type.BITSTRING&&d++;var A=c.tagClass;d===v&&(A===t.Class.UNIVERSAL||A===t.Class.CONTEXT_SPECIFIC)&&(h=[c])}catch{}h===void 0&&(i.read=C,o=w)}if(h===void 0){if(v===void 0){if(u.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");v=o}if(g===t.Type.BMPSTRING)for(h="";v>0;v-=2)n(i,o,2),h+=String.fromCharCode(i.getInt16()),o-=2;else h=i.getBytes(v),o-=v}var B=s===void 0?null:{bitStringContents:s};return t.create(b,g,y,h,B)}t.toDer=function(i){var o=e.util.createBuffer(),f=i.tagClass|i.type,u=e.util.createBuffer(),p=!1;if("bitStringContents"in i&&(p=!0,i.original&&(p=t.equals(i,i.original))),p)u.putBytes(i.bitStringContents);else if(i.composed){i.constructed?f|=32:u.putByte(0);for(var S=0;S1&&(i.value.charCodeAt(0)===0&&!(i.value.charCodeAt(1)&128)||i.value.charCodeAt(0)===255&&(i.value.charCodeAt(1)&128)===128)?u.putBytes(i.value.substr(1)):u.putBytes(i.value);if(o.putByte(f),u.length()<=127)o.putByte(u.length()&127);else{var b=u.length(),g="";do g+=String.fromCharCode(b&255),b=b>>>8;while(b>0);o.putByte(g.length|128);for(var S=g.length-1;S>=0;--S)o.putByte(g.charCodeAt(S))}return o.putBuffer(u),o},t.oidToDer=function(i){var o=i.split("."),f=e.util.createBuffer();f.putByte(40*parseInt(o[0],10)+parseInt(o[1],10));for(var u,p,S,b,g=2;g>>7,u||(b|=128),p.push(b),u=!1;while(S>0);for(var v=p.length-1;v>=0;--v)f.putByte(p[v])}return f},t.derToOid=function(i){var o;typeof i=="string"&&(i=e.util.createBuffer(i));var f=i.getByte();o=Math.floor(f/40)+"."+f%40;for(var u=0;i.length()>0;)f=i.getByte(),u=u<<7,f&128?u+=f&127:(o+="."+(u+f),u=0);return o},t.utcTimeToDate=function(i){var o=new Date,f=parseInt(i.substr(0,2),10);f=f>=50?1900+f:2e3+f;var u=parseInt(i.substr(2,2),10)-1,p=parseInt(i.substr(4,2),10),S=parseInt(i.substr(6,2),10),b=parseInt(i.substr(8,2),10),g=0;if(i.length>11){var v=i.charAt(10),m=10;v!=="+"&&v!=="-"&&(g=parseInt(i.substr(10,2),10),m+=2)}if(o.setUTCFullYear(f,u,p),o.setUTCHours(S,b,g,0),m&&(v=i.charAt(m),v==="+"||v==="-")){var h=parseInt(i.substr(m+1,2),10),s=parseInt(i.substr(m+4,2),10),y=h*60+s;y*=6e4,v==="+"?o.setTime(+o-y):o.setTime(+o+y)}return o},t.generalizedTimeToDate=function(i){var o=new Date,f=parseInt(i.substr(0,4),10),u=parseInt(i.substr(4,2),10)-1,p=parseInt(i.substr(6,2),10),S=parseInt(i.substr(8,2),10),b=parseInt(i.substr(10,2),10),g=parseInt(i.substr(12,2),10),v=0,m=0,h=!1;i.charAt(i.length-1)==="Z"&&(h=!0);var s=i.length-5,y=i.charAt(s);if(y==="+"||y==="-"){var C=parseInt(i.substr(s+1,2),10),w=parseInt(i.substr(s+4,2),10);m=C*60+w,m*=6e4,y==="+"&&(m*=-1),h=!0}return i.charAt(14)==="."&&(v=parseFloat(i.substr(14),10)*1e3),h?(o.setUTCFullYear(f,u,p),o.setUTCHours(S,b,g,v),o.setTime(+o+m)):(o.setFullYear(f,u,p),o.setHours(S,b,g,v)),o},t.dateToUtcTime=function(i){if(typeof i=="string")return i;var o="",f=[];f.push((""+i.getUTCFullYear()).substr(2)),f.push(""+(i.getUTCMonth()+1)),f.push(""+i.getUTCDate()),f.push(""+i.getUTCHours()),f.push(""+i.getUTCMinutes()),f.push(""+i.getUTCSeconds());for(var u=0;u=-128&&i<128)return o.putSignedInt(i,8);if(i>=-32768&&i<32768)return o.putSignedInt(i,16);if(i>=-8388608&&i<8388608)return o.putSignedInt(i,24);if(i>=-2147483648&&i<2147483648)return o.putSignedInt(i,32);var f=new Error("Integer too large; max is 32-bits.");throw f.integer=i,f},t.derToInteger=function(i){typeof i=="string"&&(i=e.util.createBuffer(i));var o=i.length()*8;if(o>32)throw new Error("Integer too large; max is 32-bits.");return i.getSignedInt(o)},t.validate=function(i,o,f,u){var p=!1;if((i.tagClass===o.tagClass||typeof o.tagClass>"u")&&(i.type===o.type||typeof o.type>"u"))if(i.constructed===o.constructed||typeof o.constructed>"u"){if(p=!0,o.value&&e.util.isArray(o.value))for(var S=0,b=0;p&&b0&&(u+=` +`);for(var p="",S=0;S1?u+="0x"+e.util.bytesToHex(i.value.slice(1)):u+="(none)",i.value.length>0){var m=i.value.charCodeAt(0);m==1?u+=" (1 unused bit shown)":m>1&&(u+=" ("+m+" unused bits shown)")}}else if(i.type===t.Type.OCTETSTRING)l.test(i.value)||(u+="("+i.value+") "),u+="0x"+e.util.bytesToHex(i.value);else if(i.type===t.Type.UTF8)try{u+=e.util.decodeUtf8(i.value)}catch(h){if(h.message==="URI malformed")u+="0x"+e.util.bytesToHex(i.value)+" (malformed UTF8)";else throw h}else i.type===t.Type.PRINTABLESTRING||i.type===t.Type.IA5String?u+=i.value:l.test(i.value)?u+="0x"+e.util.bytesToHex(i.value):i.value.length===0?u+="[null]":u+=i.value}return u},yo.exports}var Co={exports:{}},xo,su;function En(){if(su)return xo;su=1;var e=Xe();return xo=e.md=e.md||{},e.md.algorithms=e.md.algorithms||{},xo}var uu;function Rr(){if(uu)return Co.exports;uu=1;var e=Xe();En(),Je();var t=Co.exports=e.hmac=e.hmac||{};return t.create=function(){var n=null,r=null,a=null,l=null,i={};return i.start=function(o,f){if(o!==null)if(typeof o=="string")if(o=o.toLowerCase(),o in e.md.algorithms)r=e.md.algorithms[o].create();else throw new Error('Unknown hash algorithm "'+o+'"');else r=o;if(f===null)f=n;else{if(typeof f=="string")f=e.util.createBuffer(f);else if(e.util.isArray(f)){var u=f;f=e.util.createBuffer();for(var p=0;pr.blockLength&&(r.start(),r.update(f.bytes()),f=r.digest()),a=e.util.createBuffer(),l=e.util.createBuffer(),S=f.length();for(var p=0;p>>0,m>>>0];for(var h=b.fullMessageLength.length-1;h>=0;--h)b.fullMessageLength[h]+=m[1],m[1]=m[0]+(b.fullMessageLength[h]/4294967296>>>0),b.fullMessageLength[h]=b.fullMessageLength[h]>>>0,m[0]=m[1]/4294967296>>>0;return p.putBytes(g),f(u,S,p),(p.read>2048||p.length()===0)&&p.compact(),b},b.digest=function(){var g=e.util.createBuffer();g.putBytes(p.bytes());var v=b.fullMessageLength[b.fullMessageLength.length-1]+b.messageLengthSize,m=v&b.blockLength-1;g.putBytes(n.substr(0,b.blockLength-m));for(var h,s=0,y=b.fullMessageLength.length-1;y>=0;--y)h=b.fullMessageLength[y]*8+s,s=h/4294967296>>>0,g.putInt32Le(h>>>0);var C={h0:u.h0,h1:u.h1,h2:u.h2,h3:u.h3};f(C,S,g);var w=e.util.createBuffer();return w.putInt32Le(C.h0),w.putInt32Le(C.h1),w.putInt32Le(C.h2),w.putInt32Le(C.h3),w},b};var n=null,r=null,a=null,l=null,i=!1;function o(){n="€",n+=e.util.fillString("\0",64),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],a=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],l=new Array(64);for(var u=0;u<64;++u)l[u]=Math.floor(Math.abs(Math.sin(u+1))*4294967296);i=!0}function f(u,p,S){for(var b,g,v,m,h,s,y,C,w=S.length();w>=64;){for(g=u.h0,v=u.h1,m=u.h2,h=u.h3,C=0;C<16;++C)p[C]=S.getInt32Le(),s=h^v&(m^h),b=g+s+l[C]+p[C],y=a[C],g=h,h=m,m=v,v+=b<>>32-y;for(;C<32;++C)s=m^h&(v^m),b=g+s+l[C]+p[r[C]],y=a[C],g=h,h=m,m=v,v+=b<>>32-y;for(;C<48;++C)s=v^m^h,b=g+s+l[C]+p[r[C]],y=a[C],g=h,h=m,m=v,v+=b<>>32-y;for(;C<64;++C)s=m^(v|~h),b=g+s+l[C]+p[r[C]],y=a[C],g=h,h=m,m=v,v+=b<>>32-y;u.h0=u.h0+g|0,u.h1=u.h1+v|0,u.h2=u.h2+m|0,u.h3=u.h3+h|0,w-=64}}return So.exports}var Eo={exports:{}},du;function lr(){if(du)return Eo.exports;du=1;var e=Xe();Je();var t=Eo.exports=e.pem=e.pem||{};t.encode=function(a,l){l=l||{};var i="-----BEGIN "+a.type+`-----\r +`,o;if(a.procType&&(o={name:"Proc-Type",values:[String(a.procType.version),a.procType.type]},i+=n(o)),a.contentDomain&&(o={name:"Content-Domain",values:[a.contentDomain]},i+=n(o)),a.dekInfo&&(o={name:"DEK-Info",values:[a.dekInfo.algorithm]},a.dekInfo.parameters&&o.values.push(a.dekInfo.parameters),i+=n(o)),a.headers)for(var f=0;f65&&p!==-1){var S=l[p];S===","?(++p,l=l.substr(0,p)+`\r + `+l.substr(p)):l=l.substr(0,p)+`\r +`+S+l.substr(p+1),u=f-p-1,p=-1,++f}else(l[f]===" "||l[f]===" "||l[f]===",")&&(p=f);return l}function r(a){return a.replace(/^\s+/,"")}return Eo.exports}var wo={exports:{}},Io,fu;function Na(){if(fu)return Io;fu=1;var e=Xe();hl(),Yd(),Je(),Io=e.des=e.des||{},e.des.startEncrypting=function(g,v,m,h){var s=b({key:g,output:m,decrypt:!1,mode:h||(v===null?"ECB":"CBC")});return s.start(v),s},e.des.createEncryptionCipher=function(g,v){return b({key:g,output:null,decrypt:!1,mode:v})},e.des.startDecrypting=function(g,v,m,h){var s=b({key:g,output:m,decrypt:!0,mode:h||(v===null?"ECB":"CBC")});return s.start(v),s},e.des.createDecryptionCipher=function(g,v){return b({key:g,output:null,decrypt:!0,mode:v})},e.des.Algorithm=function(g,v){var m=this;m.name=g,m.mode=new v({blockSize:8,cipher:{encrypt:function(h,s){return S(m._keys,h,s,!1)},decrypt:function(h,s){return S(m._keys,h,s,!0)}}}),m._init=!1},e.des.Algorithm.prototype.initialize=function(g){if(!this._init){var v=e.util.createBuffer(g.key);if(this.name.indexOf("3DES")===0&&v.length()!==24)throw new Error("Invalid Triple-DES key size: "+v.length()*8);this._keys=p(v),this._init=!0}},t("DES-ECB",e.cipher.modes.ecb),t("DES-CBC",e.cipher.modes.cbc),t("DES-CFB",e.cipher.modes.cfb),t("DES-OFB",e.cipher.modes.ofb),t("DES-CTR",e.cipher.modes.ctr),t("3DES-ECB",e.cipher.modes.ecb),t("3DES-CBC",e.cipher.modes.cbc),t("3DES-CFB",e.cipher.modes.cfb),t("3DES-OFB",e.cipher.modes.ofb),t("3DES-CTR",e.cipher.modes.ctr);function t(g,v){var m=function(){return new e.des.Algorithm(g,v)};e.cipher.registerAlgorithm(g,m)}var n=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],r=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],a=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],i=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],o=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],u=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function p(g){for(var v=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],m=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],h=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],s=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],y=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],C=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],w=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],T=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],x=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],c=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],A=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],B=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],O=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],_=g.length()>8?3:1,k=[],M=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],V=0,q,Q=0;Q<_;Q++){var X=g.getInt32(),K=g.getInt32();q=(X>>>4^K)&252645135,K^=q,X^=q<<4,q=(K>>>-16^X)&65535,X^=q,K^=q<<-16,q=(X>>>2^K)&858993459,K^=q,X^=q<<2,q=(K>>>-16^X)&65535,X^=q,K^=q<<-16,q=(X>>>1^K)&1431655765,K^=q,X^=q<<1,q=(K>>>8^X)&16711935,X^=q,K^=q<<8,q=(X>>>1^K)&1431655765,K^=q,X^=q<<1,q=X<<8|K>>>20&240,X=K<<24|K<<8&16711680|K>>>8&65280|K>>>24&240,K=q;for(var j=0;j>>26,K=K<<2|K>>>26):(X=X<<1|X>>>27,K=K<<1|K>>>27),X&=-15,K&=-15;var Z=v[X>>>28]|m[X>>>24&15]|h[X>>>20&15]|s[X>>>16&15]|y[X>>>12&15]|C[X>>>8&15]|w[X>>>4&15],G=T[K>>>28]|x[K>>>24&15]|c[K>>>20&15]|d[K>>>16&15]|A[K>>>12&15]|B[K>>>8&15]|O[K>>>4&15];q=(G>>>16^Z)&65535,k[V++]=Z^q,k[V++]=G^q<<16}}return k}function S(g,v,m,h){var s=g.length===32?3:9,y;s===3?y=h?[30,-2,-2]:[0,32,2]:y=h?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var C,w=v[0],T=v[1];C=(w>>>4^T)&252645135,T^=C,w^=C<<4,C=(w>>>16^T)&65535,T^=C,w^=C<<16,C=(T>>>2^w)&858993459,w^=C,T^=C<<2,C=(T>>>8^w)&16711935,w^=C,T^=C<<8,C=(w>>>1^T)&1431655765,T^=C,w^=C<<1,w=w<<1|w>>>31,T=T<<1|T>>>31;for(var x=0;x>>4|T<<28)^g[A+1];C=w,w=T,T=C^(r[B>>>24&63]|l[B>>>16&63]|o[B>>>8&63]|u[B&63]|n[O>>>24&63]|a[O>>>16&63]|i[O>>>8&63]|f[O&63])}C=w,w=T,T=C}w=w>>>1|w<<31,T=T>>>1|T<<31,C=(w>>>1^T)&1431655765,T^=C,w^=C<<1,C=(T>>>8^w)&16711935,w^=C,T^=C<<8,C=(T>>>2^w)&858993459,w^=C,T^=C<<2,C=(w>>>16^T)&65535,T^=C,w^=C<<16,C=(w>>>4^T)&252645135,T^=C,w^=C<<4,m[0]=w,m[1]=T}function b(g){g=g||{};var v=(g.mode||"CBC").toUpperCase(),m="DES-"+v,h;g.decrypt?h=e.cipher.createDecipher(m,g.key):h=e.cipher.createCipher(m,g.key);var s=h.start;return h.start=function(y,C){var w=null;C instanceof e.util.ByteBuffer&&(w=C,C={}),C=C||{},C.output=w,C.iv=y,s.call(h,C)},h}return Io}const sx={},ux=Object.freeze(Object.defineProperty({__proto__:null,default:sx},Symbol.toStringTag,{value:"Module"})),vl=b0(ux);var To,pu;function ml(){if(pu)return To;pu=1;var e=Xe();Rr(),En(),Je();var t=e.pkcs5=e.pkcs5||{},n;return e.util.isNodejs&&!e.options.usePureJavaScript&&(n=vl),To=e.pbkdf2=t.pbkdf2=function(r,a,l,i,o,f){if(typeof o=="function"&&(f=o,o=null),e.util.isNodejs&&!e.options.usePureJavaScript&&n.pbkdf2&&(o===null||typeof o!="object")&&(n.pbkdf2Sync.length>4||!o||o==="sha1"))return typeof o!="string"&&(o="sha1"),r=Buffer.from(r,"binary"),a=Buffer.from(a,"binary"),f?n.pbkdf2Sync.length===4?n.pbkdf2(r,a,l,i,function(x,c){if(x)return f(x);f(null,c.toString("binary"))}):n.pbkdf2(r,a,l,i,o,function(x,c){if(x)return f(x);f(null,c.toString("binary"))}):n.pbkdf2Sync.length===4?n.pbkdf2Sync(r,a,l,i).toString("binary"):n.pbkdf2Sync(r,a,l,i,o).toString("binary");if((typeof o>"u"||o===null)&&(o="sha1"),typeof o=="string"){if(!(o in e.md.algorithms))throw new Error("Unknown hash algorithm: "+o);o=e.md[o].create()}var u=o.digestLength;if(i>4294967295*u){var p=new Error("Derived key is too long.");if(f)return f(p);throw p}var S=Math.ceil(i/u),b=i-(S-1)*u,g=e.hmac.create();g.start(o,r);var v="",m,h,s;if(!f){for(var y=1;y<=S;++y){g.start(null,null),g.update(a),g.update(e.util.int32ToBytes(y)),m=s=g.digest().getBytes();for(var C=2;C<=l;++C)g.start(null,null),g.update(s),h=g.digest().getBytes(),m=e.util.xorBytes(m,h,u),s=h;v+=yS)return f(null,v);g.start(null,null),g.update(a),g.update(e.util.int32ToBytes(y)),m=s=g.digest().getBytes(),C=2,T()}function T(){if(C<=l)return g.start(null,null),g.update(s),h=g.digest().getBytes(),m=e.util.xorBytes(m,h,u),s=h,++C,e.util.setImmediate(T);v+=y>>0,g>>>0];for(var v=p.fullMessageLength.length-1;v>=0;--v)p.fullMessageLength[v]+=g[1],g[1]=g[0]+(p.fullMessageLength[v]/4294967296>>>0),p.fullMessageLength[v]=p.fullMessageLength[v]>>>0,g[0]=g[1]/4294967296>>>0;return f.putBytes(S),i(o,u,f),(f.read>2048||f.length()===0)&&f.compact(),p},p.digest=function(){var S=e.util.createBuffer();S.putBytes(f.bytes());var b=p.fullMessageLength[p.fullMessageLength.length-1]+p.messageLengthSize,g=b&p.blockLength-1;S.putBytes(n.substr(0,p.blockLength-g));for(var v,m,h=p.fullMessageLength[0]*8,s=0;s>>0,h+=m,S.putInt32(h>>>0),h=v>>>0;S.putInt32(h);var y={h0:o.h0,h1:o.h1,h2:o.h2,h3:o.h3,h4:o.h4,h5:o.h5,h6:o.h6,h7:o.h7};i(y,u,S);var C=e.util.createBuffer();return C.putInt32(y.h0),C.putInt32(y.h1),C.putInt32(y.h2),C.putInt32(y.h3),C.putInt32(y.h4),C.putInt32(y.h5),C.putInt32(y.h6),C.putInt32(y.h7),C},p};var n=null,r=!1,a=null;function l(){n="€",n+=e.util.fillString("\0",64),a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],r=!0}function i(o,f,u){for(var p,S,b,g,v,m,h,s,y,C,w,T,x,c,d,A=u.length();A>=64;){for(h=0;h<16;++h)f[h]=u.getInt32();for(;h<64;++h)p=f[h-2],p=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,S=f[h-15],S=(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3,f[h]=p+f[h-7]+S+f[h-16]|0;for(s=o.h0,y=o.h1,C=o.h2,w=o.h3,T=o.h4,x=o.h5,c=o.h6,d=o.h7,h=0;h<64;++h)g=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),v=c^T&(x^c),b=(s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10),m=s&y|C&(s^y),p=d+g+v+a[h]+f[h],S=b+m,d=c,c=x,x=T,T=w+p>>>0,w=C,C=y,y=s,s=p+S>>>0;o.h0=o.h0+s|0,o.h1=o.h1+y|0,o.h2=o.h2+C|0,o.h3=o.h3+w|0,o.h4=o.h4+T|0,o.h5=o.h5+x|0,o.h6=o.h6+c|0,o.h7=o.h7+d|0,A-=64}}return Ao.exports}var Bo={exports:{}},gu;function Zd(){if(gu)return Bo.exports;gu=1;var e=Xe();Je();var t=null;e.util.isNodejs&&!e.options.usePureJavaScript&&!process.versions["node-webkit"]&&(t=vl);var n=Bo.exports=e.prng=e.prng||{};return n.create=function(r){for(var a={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},l=r.md,i=new Array(32),o=0;o<32;++o)i[o]=l.create();a.pools=i,a.pool=0,a.generate=function(b,g){if(!g)return a.generateSync(b);var v=a.plugin.cipher,m=a.plugin.increment,h=a.plugin.formatKey,s=a.plugin.formatSeed,y=e.util.createBuffer();a.key=null,C();function C(w){if(w)return g(w);if(y.length()>=b)return g(null,y.getBytes(b));if(a.generated>1048575&&(a.key=null),a.key===null)return e.util.nextTick(function(){f(C)});var T=v(a.key,a.seed);a.generated+=T.length,y.putBytes(T),a.key=h(v(a.key,m(a.seed))),a.seed=s(v(a.key,a.seed)),e.util.setImmediate(C)}},a.generateSync=function(b){var g=a.plugin.cipher,v=a.plugin.increment,m=a.plugin.formatKey,h=a.plugin.formatSeed;a.key=null;for(var s=e.util.createBuffer();s.length()1048575&&(a.key=null),a.key===null&&u();var y=g(a.key,a.seed);a.generated+=y.length,s.putBytes(y),a.key=m(g(a.key,v(a.seed))),a.seed=h(g(a.key,a.seed))}return s.getBytes(b)};function f(b){if(a.pools[0].messageLength>=32)return p(),b();var g=32-a.pools[0].messageLength<<5;a.seedFile(g,function(v,m){if(v)return b(v);a.collect(m),p(),b()})}function u(){if(a.pools[0].messageLength>=32)return p();var b=32-a.pools[0].messageLength<<5;a.collect(a.seedFileSync(b)),p()}function p(){a.reseeds=a.reseeds===4294967295?0:a.reseeds+1;var b=a.plugin.md.create();b.update(a.keyBytes);for(var g=1,v=0;v<32;++v)a.reseeds%g===0&&(b.update(a.pools[v].digest().getBytes()),a.pools[v].start()),g=g<<1;a.keyBytes=b.digest().getBytes(),b.start(),b.update(a.keyBytes);var m=b.digest().getBytes();a.key=a.plugin.formatKey(a.keyBytes),a.seed=a.plugin.formatSeed(m),a.generated=0}function S(b){var g=null,v=e.util.globalScope,m=v.crypto||v.msCrypto;m&&m.getRandomValues&&(g=function(d){return m.getRandomValues(d)});var h=e.util.createBuffer();if(g)for(;h.length()>16),T+=(w&32767)<<16,T+=w>>15,T=(T&2147483647)+(T>>31),c=T&4294967295;for(var C=0;C<3;++C)x=c>>>(C<<3),x^=Math.floor(Math.random()*256),h.putByte(x&255)}return h.getBytes(b)}return t?(a.seedFile=function(b,g){t.randomBytes(b,function(v,m){if(v)return g(v);g(null,m.toString())})},a.seedFileSync=function(b){return t.randomBytes(b).toString()}):(a.seedFile=function(b,g){try{g(null,S(b))}catch(v){g(v)}},a.seedFileSync=S),a.collect=function(b){for(var g=b.length,v=0;v>m&255);a.collect(v)},a.registerWorker=function(b){if(b===self)a.seedFile=function(v,m){function h(s){var y=s.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",h),m(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",h),self.postMessage({forge:{prng:{needed:v}}})};else{var g=function(v){var m=v.data;m.forge&&m.forge.prng&&a.seedFile(m.forge.prng.needed,function(h,s){b.postMessage({forge:{prng:{err:h,bytes:s}}})})};b.addEventListener("message",g)}},a},Bo.exports}var vu;function on(){if(vu)return Fr.exports;vu=1;var e=Xe();return zn(),Jd(),Zd(),Je(),function(){if(e.random&&e.random.getBytes){Fr.exports=e.random;return}(function(t){var n={},r=new Array(4),a=e.util.createBuffer();n.formatKey=function(b){var g=e.util.createBuffer(b);return b=new Array(4),b[0]=g.getInt32(),b[1]=g.getInt32(),b[2]=g.getInt32(),b[3]=g.getInt32(),e.aes._expandKey(b,!1)},n.formatSeed=function(b){var g=e.util.createBuffer(b);return b=new Array(4),b[0]=g.getInt32(),b[1]=g.getInt32(),b[2]=g.getInt32(),b[3]=g.getInt32(),b},n.cipher=function(b,g){return e.aes._updateBlock(b,g,r,!1),a.putInt32(r[0]),a.putInt32(r[1]),a.putInt32(r[2]),a.putInt32(r[3]),a.getBytes()},n.increment=function(b){return++b[3],b},n.md=e.md.sha256;function l(){var b=e.prng.create(n);return b.getBytes=function(g,v){return b.generate(g,v)},b.getBytesSync=function(g){return b.generate(g)},b}var i=l(),o=null,f=e.util.globalScope,u=f.crypto||f.msCrypto;if(u&&u.getRandomValues&&(o=function(b){return u.getRandomValues(b)}),e.options.usePureJavaScript||!e.util.isNodejs&&!o){if(i.collectInt(+new Date,32),typeof navigator<"u"){var p="";for(var S in navigator)try{typeof navigator[S]=="string"&&(p+=navigator[S])}catch{}i.collect(p),p=null}t&&(t().mousemove(function(b){i.collectInt(b.clientX,16),i.collectInt(b.clientY,16)}),t().keypress(function(b){i.collectInt(b.charCode,8)}))}if(!e.random)e.random=i;else for(var S in i)e.random[S]=i[S];e.random.createInstance=l,Fr.exports=e.random})(typeof jQuery<"u"?jQuery:null)}(),Fr.exports}var $o,mu;function ef(){if(mu)return $o;mu=1;var e=Xe();Je();var t=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],n=[1,2,3,5],r=function(i,o){return i<>16-o},a=function(i,o){return(i&65535)>>o|i<<16-o&65535};$o=e.rc2=e.rc2||{},e.rc2.expandKey=function(i,o){typeof i=="string"&&(i=e.util.createBuffer(i)),o=o||128;var f=i,u=i.length(),p=o,S=Math.ceil(p/8),b=255>>(p&7),g;for(g=u;g<128;g++)f.putByte(t[f.at(g-1)+f.at(g-u)&255]);for(f.setAt(128-S,t[f.at(128-S)&b]),g=127-S;g>=0;g--)f.setAt(g,t[f.at(g+1)^f.at(g+S)]);return f};var l=function(i,o,f){var u=!1,p=null,S=null,b=null,g,v,m,h,s=[];for(i=e.rc2.expandKey(i,o),m=0;m<64;m++)s.push(i.getInt16Le());f?(g=function(w){for(m=0;m<4;m++)w[m]+=s[h]+(w[(m+3)%4]&w[(m+2)%4])+(~w[(m+3)%4]&w[(m+1)%4]),w[m]=r(w[m],n[m]),h++},v=function(w){for(m=0;m<4;m++)w[m]+=s[w[(m+3)%4]&63]}):(g=function(w){for(m=3;m>=0;m--)w[m]=a(w[m],n[m]),w[m]-=s[h]+(w[(m+3)%4]&w[(m+2)%4])+(~w[(m+3)%4]&w[(m+1)%4]),h--},v=function(w){for(m=3;m>=0;m--)w[m]-=s[w[(m+3)%4]&63]});var y=function(w){var T=[];for(m=0;m<4;m++){var x=p.getInt16Le();b!==null&&(f?x^=b.getInt16Le():b.putInt16Le(x)),T.push(x&65535)}h=f?0:63;for(var c=0;c=8;)y([[5,g],[1,v],[6,g],[1,v],[5,g]])},finish:function(w){var T=!0;if(f)if(w)T=w(8,p,!f);else{var x=p.length()===8?8:8-p.length();p.fillWithByte(x,x)}if(T&&(u=!0,C.update()),!f&&(T=p.length()===0,T))if(w)T=w(8,S,!f);else{var c=S.length(),d=S.at(c-1);d>c?T=!1:S.truncate(d)}return T}},C};return e.rc2.startEncrypting=function(i,o,f){var u=e.rc2.createEncryptionCipher(i,128);return u.start(o,f),u},e.rc2.createEncryptionCipher=function(i,o){return l(i,o,!0)},e.rc2.startDecrypting=function(i,o,f){var u=e.rc2.createDecryptionCipher(i,128);return u.start(o,f),u},e.rc2.createDecryptionCipher=function(i,o){return l(i,o,!1)},$o}var Ro,yu;function Pa(){if(yu)return Ro;yu=1;var e=Xe();Ro=e.jsbn=e.jsbn||{};var t;function n(D,F,U){this.data=[],D!=null&&(typeof D=="number"?this.fromNumber(D,F,U):F==null&&typeof D!="string"?this.fromString(D,256):this.fromString(D,F))}e.jsbn.BigInteger=n;function r(){return new n(null)}function a(D,F,U,ne,me,Ce){for(;--Ce>=0;){var Ne=F*this.data[D++]+U.data[ne]+me;me=Math.floor(Ne/67108864),U.data[ne++]=Ne&67108863}return me}function l(D,F,U,ne,me,Ce){for(var Ne=F&32767,Re=F>>15;--Ce>=0;){var it=this.data[D]&32767,Ot=this.data[D++]>>15,Yt=Re*it+Ot*Ne;it=Ne*it+((Yt&32767)<<15)+U.data[ne]+(me&1073741823),me=(it>>>30)+(Yt>>>15)+Re*Ot+(me>>>30),U.data[ne++]=it&1073741823}return me}function i(D,F,U,ne,me,Ce){for(var Ne=F&16383,Re=F>>14;--Ce>=0;){var it=this.data[D]&16383,Ot=this.data[D++]>>14,Yt=Re*it+Ot*Ne;it=Ne*it+((Yt&16383)<<14)+U.data[ne]+me,me=(it>>28)+(Yt>>14)+Re*Ot,U.data[ne++]=it&268435455}return me}typeof navigator>"u"?(n.prototype.am=i,t=28):navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=l,t=30):navigator.appName!="Netscape"?(n.prototype.am=a,t=26):(n.prototype.am=i,t=28),n.prototype.DB=t,n.prototype.DM=(1<=0;--F)D.data[F]=this.data[F];D.t=this.t,D.s=this.s}function m(D){this.t=1,this.s=D<0?-1:0,D>0?this.data[0]=D:D<-1?this.data[0]=D+this.DV:this.t=0}function h(D){var F=r();return F.fromInt(D),F}function s(D,F){var U;if(F==16)U=4;else if(F==8)U=3;else if(F==256)U=8;else if(F==2)U=1;else if(F==32)U=5;else if(F==4)U=2;else{this.fromRadix(D,F);return}this.t=0,this.s=0;for(var ne=D.length,me=!1,Ce=0;--ne>=0;){var Ne=U==8?D[ne]&255:g(D,ne);if(Ne<0){D.charAt(ne)=="-"&&(me=!0);continue}me=!1,Ce==0?this.data[this.t++]=Ne:Ce+U>this.DB?(this.data[this.t-1]|=(Ne&(1<>this.DB-Ce):this.data[this.t-1]|=Ne<=this.DB&&(Ce-=this.DB)}U==8&&D[0]&128&&(this.s=-1,Ce>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==D;)--this.t}function C(D){if(this.s<0)return"-"+this.negate().toString(D);var F;if(D==16)F=4;else if(D==8)F=3;else if(D==2)F=1;else if(D==32)F=5;else if(D==4)F=2;else return this.toRadix(D);var U=(1<0)for(Re>Re)>0&&(me=!0,Ce=b(ne));Ne>=0;)Re>(Re+=this.DB-F)):(ne=this.data[Ne]>>(Re-=F)&U,Re<=0&&(Re+=this.DB,--Ne)),ne>0&&(me=!0),me&&(Ce+=b(ne));return me?Ce:"0"}function w(){var D=r();return n.ZERO.subTo(this,D),D}function T(){return this.s<0?this.negate():this}function x(D){var F=this.s-D.s;if(F!=0)return F;var U=this.t;if(F=U-D.t,F!=0)return this.s<0?-F:F;for(;--U>=0;)if((F=this.data[U]-D.data[U])!=0)return F;return 0}function c(D){var F=1,U;return(U=D>>>16)!=0&&(D=U,F+=16),(U=D>>8)!=0&&(D=U,F+=8),(U=D>>4)!=0&&(D=U,F+=4),(U=D>>2)!=0&&(D=U,F+=2),(U=D>>1)!=0&&(D=U,F+=1),F}function d(){return this.t<=0?0:this.DB*(this.t-1)+c(this.data[this.t-1]^this.s&this.DM)}function A(D,F){var U;for(U=this.t-1;U>=0;--U)F.data[U+D]=this.data[U];for(U=D-1;U>=0;--U)F.data[U]=0;F.t=this.t+D,F.s=this.s}function B(D,F){for(var U=D;U=0;--Re)F.data[Re+Ce+1]=this.data[Re]>>ne|Ne,Ne=(this.data[Re]&me)<=0;--Re)F.data[Re]=0;F.data[Ce]=Ne,F.t=this.t+Ce+1,F.s=this.s,F.clamp()}function _(D,F){F.s=this.s;var U=Math.floor(D/this.DB);if(U>=this.t){F.t=0;return}var ne=D%this.DB,me=this.DB-ne,Ce=(1<>ne;for(var Ne=U+1;Ne>ne;ne>0&&(F.data[this.t-U-1]|=(this.s&Ce)<>=this.DB;if(D.t>=this.DB;ne+=this.s}else{for(ne+=this.s;U>=this.DB;ne-=D.s}F.s=ne<0?-1:0,ne<-1?F.data[U++]=this.DV+ne:ne>0&&(F.data[U++]=ne),F.t=U,F.clamp()}function M(D,F){var U=this.abs(),ne=D.abs(),me=U.t;for(F.t=me+ne.t;--me>=0;)F.data[me]=0;for(me=0;me=0;)D.data[U]=0;for(U=0;U=F.DV&&(D.data[U+F.t]-=F.DV,D.data[U+F.t+1]=1)}D.t>0&&(D.data[D.t-1]+=F.am(U,F.data[U],D,2*U,0,1)),D.s=0,D.clamp()}function q(D,F,U){var ne=D.abs();if(!(ne.t<=0)){var me=this.abs();if(me.t0?(ne.lShiftTo(it,Ce),me.lShiftTo(it,U)):(ne.copyTo(Ce),me.copyTo(U));var Ot=Ce.t,Yt=Ce.data[Ot-1];if(Yt!=0){var qt=Yt*(1<1?Ce.data[Ot-2]>>this.F2:0),hn=this.FV/qt,Pr=(1<=0&&(U.data[U.t++]=1,U.subTo(wn,U)),n.ONE.dlShiftTo(Ot,wn),wn.subTo(Ce,Ce);Ce.t=0;){var Ka=U.data[--nn]==Yt?this.DM:Math.floor(U.data[nn]*hn+(U.data[nn-1]+tn)*Pr);if((U.data[nn]+=Ce.am(0,Ka,U,Dr,0,Ot))0&&U.rShiftTo(it,U),Ne<0&&n.ZERO.subTo(U,U)}}}function Q(D){var F=r();return this.abs().divRemTo(D,null,F),this.s<0&&F.compareTo(n.ZERO)>0&&D.subTo(F,F),F}function X(D){this.m=D}function K(D){return D.s<0||D.compareTo(this.m)>=0?D.mod(this.m):D}function j(D){return D}function Z(D){D.divRemTo(this.m,null,D)}function G(D,F,U){D.multiplyTo(F,U),this.reduce(U)}function se(D,F){D.squareTo(F),this.reduce(F)}X.prototype.convert=K,X.prototype.revert=j,X.prototype.reduce=Z,X.prototype.mulTo=G,X.prototype.sqrTo=se;function J(){if(this.t<1)return 0;var D=this.data[0];if(!(D&1))return 0;var F=D&3;return F=F*(2-(D&15)*F)&15,F=F*(2-(D&255)*F)&255,F=F*(2-((D&65535)*F&65535))&65535,F=F*(2-D*F%this.DV)%this.DV,F>0?this.DV-F:-F}function he(D){this.m=D,this.mp=D.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(F,F),F}function _e(D){var F=r();return D.copyTo(F),this.reduce(F),F}function be(D){for(;D.t<=this.mt2;)D.data[D.t++]=0;for(var F=0;F>15)*this.mpl&this.um)<<15)&D.DM;for(U=F+this.m.t,D.data[U]+=this.m.am(0,ne,D,F,0,this.m.t);D.data[U]>=D.DV;)D.data[U]-=D.DV,D.data[++U]++}D.clamp(),D.drShiftTo(this.m.t,D),D.compareTo(this.m)>=0&&D.subTo(this.m,D)}function I(D,F){D.squareTo(F),this.reduce(F)}function R(D,F,U){D.multiplyTo(F,U),this.reduce(U)}he.prototype.convert=re,he.prototype.revert=_e,he.prototype.reduce=be,he.prototype.mulTo=R,he.prototype.sqrTo=I;function $(){return(this.t>0?this.data[0]&1:this.s)==0}function E(D,F){if(D>4294967295||D<1)return n.ONE;var U=r(),ne=r(),me=F.convert(this),Ce=c(D)-1;for(me.copyTo(U);--Ce>=0;)if(F.sqrTo(U,ne),(D&1<0)F.mulTo(ne,me,U);else{var Ne=U;U=ne,ne=Ne}return F.revert(U)}function N(D,F){var U;return D<256||F.isEven()?U=new X(F):U=new he(F),this.exp(D,U)}n.prototype.copyTo=v,n.prototype.fromInt=m,n.prototype.fromString=s,n.prototype.clamp=y,n.prototype.dlShiftTo=A,n.prototype.drShiftTo=B,n.prototype.lShiftTo=O,n.prototype.rShiftTo=_,n.prototype.subTo=k,n.prototype.multiplyTo=M,n.prototype.squareTo=V,n.prototype.divRemTo=q,n.prototype.invDigit=J,n.prototype.isEven=$,n.prototype.exp=E,n.prototype.toString=C,n.prototype.negate=w,n.prototype.abs=T,n.prototype.compareTo=x,n.prototype.bitLength=d,n.prototype.mod=Q,n.prototype.modPowInt=N,n.ZERO=h(0),n.ONE=h(1);function W(){var D=r();return this.copyTo(D),D}function z(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24}function de(){return this.t==0?this.s:this.data[0]<<16>>16}function oe(D){return Math.floor(Math.LN2*this.DB/Math.log(D))}function ee(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function pe(D){if(D==null&&(D=10),this.signum()==0||D<2||D>36)return"0";var F=this.chunkSize(D),U=Math.pow(D,F),ne=h(U),me=r(),Ce=r(),Ne="";for(this.divRemTo(ne,me,Ce);me.signum()>0;)Ne=(U+Ce.intValue()).toString(D).substr(1)+Ne,me.divRemTo(ne,me,Ce);return Ce.intValue().toString(D)+Ne}function Te(D,F){this.fromInt(0),F==null&&(F=10);for(var U=this.chunkSize(F),ne=Math.pow(F,U),me=!1,Ce=0,Ne=0,Re=0;Re=U&&(this.dMultiply(ne),this.dAddOffset(Ne,0),Ce=0,Ne=0)}Ce>0&&(this.dMultiply(Math.pow(F,Ce)),this.dAddOffset(Ne,0)),me&&n.ZERO.subTo(this,this)}function Ie(D,F,U){if(typeof F=="number")if(D<2)this.fromInt(1);else for(this.fromNumber(D,U),this.testBit(D-1)||this.bitwiseTo(n.ONE.shiftLeft(D-1),Le,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(F);)this.dAddOffset(2,0),this.bitLength()>D&&this.subTo(n.ONE.shiftLeft(D-1),this);else{var ne=new Array,me=D&7;ne.length=(D>>3)+1,F.nextBytes(ne),me>0?ne[0]&=(1<0)for(U>U)!=(this.s&this.DM)>>U&&(F[me++]=ne|this.s<=0;)U<8?(ne=(this.data[D]&(1<>(U+=this.DB-8)):(ne=this.data[D]>>(U-=8)&255,U<=0&&(U+=this.DB,--D)),ne&128&&(ne|=-256),me==0&&(this.s&128)!=(ne&128)&&++me,(me>0||ne!=this.s)&&(F[me++]=ne);return F}function Fe(D){return this.compareTo(D)==0}function le(D){return this.compareTo(D)<0?this:D}function te(D){return this.compareTo(D)>0?this:D}function ue(D,F,U){var ne,me,Ce=Math.min(D.t,this.t);for(ne=0;ne>=16,F+=16),D&255||(D>>=8,F+=8),D&15||(D>>=4,F+=4),D&3||(D>>=2,F+=2),D&1||++F,F}function Ue(){for(var D=0;D=this.t?this.s!=0:(this.data[F]&1<>=this.DB;if(D.t>=this.DB;ne+=this.s}else{for(ne+=this.s;U>=this.DB;ne+=D.s}F.s=ne<0?-1:0,ne>0?F.data[U++]=ne:ne<-1&&(F.data[U++]=this.DV+ne),F.t=U,F.clamp()}function tt(D){var F=r();return this.addTo(D,F),F}function rt(D){var F=r();return this.subTo(D,F),F}function nt(D){var F=r();return this.multiplyTo(D,F),F}function ft(D){var F=r();return this.divRemTo(D,F,null),F}function ct(D){var F=r();return this.divRemTo(D,null,F),F}function lt(D){var F=r(),U=r();return this.divRemTo(D,F,U),new Array(F,U)}function yt(D){this.data[this.t]=this.am(0,D-1,this,0,0,this.t),++this.t,this.clamp()}function bt(D,F){if(D!=0){for(;this.t<=F;)this.data[this.t++]=0;for(this.data[F]+=D;this.data[F]>=this.DV;)this.data[F]-=this.DV,++F>=this.t&&(this.data[this.t++]=0),++this.data[F]}}function at(){}function ot(D){return D}function pt(D,F,U){D.multiplyTo(F,U)}function ht(D,F){D.squareTo(F)}at.prototype.convert=ot,at.prototype.revert=ot,at.prototype.mulTo=pt,at.prototype.sqrTo=ht;function jn(D){return this.exp(D,new at)}function Wn(D,F,U){var ne=Math.min(this.t+D.t,F);for(U.s=0,U.t=ne;ne>0;)U.data[--ne]=0;var me;for(me=U.t-this.t;ne=0;)U.data[ne]=0;for(ne=Math.max(F-this.t,0);ne2*this.m.t)return D.mod(this.m);if(D.compareTo(this.m)<0)return D;var F=r();return D.copyTo(F),this.reduce(F),F}function La(D){return D}function Or(D){for(D.drShiftTo(this.m.t-1,this.r2),D.t>this.m.t+1&&(D.t=this.m.t+1,D.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);D.compareTo(this.r2)<0;)D.dAddOffset(1,this.m.t+1);for(D.subTo(this.r2,D);D.compareTo(this.m)>=0;)D.subTo(this.m,D)}function sr(D,F){D.squareTo(F),this.reduce(F)}function pn(D,F,U){D.multiplyTo(F,U),this.reduce(U)}Mt.prototype.convert=ka,Mt.prototype.revert=La,Mt.prototype.reduce=Or,Mt.prototype.mulTo=pn,Mt.prototype.sqrTo=sr;function Nr(D,F){var U=D.bitLength(),ne,me=h(1),Ce;if(U<=0)return me;U<18?ne=1:U<48?ne=3:U<144?ne=4:U<768?ne=5:ne=6,U<8?Ce=new X(F):F.isEven()?Ce=new Mt(F):Ce=new he(F);var Ne=new Array,Re=3,it=ne-1,Ot=(1<1){var Yt=r();for(Ce.sqrTo(Ne[1],Yt);Re<=Ot;)Ne[Re]=r(),Ce.mulTo(Yt,Ne[Re-2],Ne[Re]),Re+=2}var qt=D.t-1,hn,Pr=!0,tn=r(),nn;for(U=c(D.data[qt])-1;qt>=0;){for(U>=it?hn=D.data[qt]>>U-it&Ot:(hn=(D.data[qt]&(1<0&&(hn|=D.data[qt-1]>>this.DB+U-it)),Re=ne;!(hn&1);)hn>>=1,--Re;if((U-=Re)<0&&(U+=this.DB,--qt),Pr)Ne[hn].copyTo(me),Pr=!1;else{for(;Re>1;)Ce.sqrTo(me,tn),Ce.sqrTo(tn,me),Re-=2;Re>0?Ce.sqrTo(me,tn):(nn=me,me=tn,tn=nn),Ce.mulTo(tn,Ne[hn],me)}for(;qt>=0&&!(D.data[qt]&1<0&&(F.rShiftTo(Ce,F),U.rShiftTo(Ce,U));F.signum()>0;)(me=F.getLowestSetBit())>0&&F.rShiftTo(me,F),(me=U.getLowestSetBit())>0&&U.rShiftTo(me,U),F.compareTo(U)>=0?(F.subTo(U,F),F.rShiftTo(1,F)):(U.subTo(F,U),U.rShiftTo(1,U));return Ce>0&&U.lShiftTo(Ce,U),U}function df(D){if(D<=0)return 0;var F=this.DV%D,U=this.s<0?D-1:0;if(this.t>0)if(F==0)U=this.data[0]%D;else for(var ne=this.t-1;ne>=0;--ne)U=(F*U+this.data[ne])%D;return U}function ff(D){var F=D.isEven();if(this.isEven()&&F||D.signum()==0)return n.ZERO;for(var U=D.clone(),ne=this.clone(),me=h(1),Ce=h(0),Ne=h(0),Re=h(1);U.signum()!=0;){for(;U.isEven();)U.rShiftTo(1,U),F?((!me.isEven()||!Ce.isEven())&&(me.addTo(this,me),Ce.subTo(D,Ce)),me.rShiftTo(1,me)):Ce.isEven()||Ce.subTo(D,Ce),Ce.rShiftTo(1,Ce);for(;ne.isEven();)ne.rShiftTo(1,ne),F?((!Ne.isEven()||!Re.isEven())&&(Ne.addTo(this,Ne),Re.subTo(D,Re)),Ne.rShiftTo(1,Ne)):Re.isEven()||Re.subTo(D,Re),Re.rShiftTo(1,Re);U.compareTo(ne)>=0?(U.subTo(ne,U),F&&me.subTo(Ne,me),Ce.subTo(Re,Ce)):(ne.subTo(U,ne),F&&Ne.subTo(me,Ne),Re.subTo(Ce,Re))}if(ne.compareTo(n.ONE)!=0)return n.ZERO;if(Re.compareTo(D)>=0)return Re.subtract(D);if(Re.signum()<0)Re.addTo(D,Re);else return Re;return Re.signum()<0?Re.add(D):Re}var en=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],pf=(1<<26)/en[en.length-1];function hf(D){var F,U=this.abs();if(U.t==1&&U.data[0]<=en[en.length-1]){for(F=0;F=0);var Re=Ce.modPow(ne,this);if(Re.compareTo(n.ONE)!=0&&Re.compareTo(F)!=0){for(var it=1;it++>>0,b>>>0];for(var g=u.fullMessageLength.length-1;g>=0;--g)u.fullMessageLength[g]+=b[1],b[1]=b[0]+(u.fullMessageLength[g]/4294967296>>>0),u.fullMessageLength[g]=u.fullMessageLength[g]>>>0,b[0]=b[1]/4294967296>>>0;return o.putBytes(p),l(i,f,o),(o.read>2048||o.length()===0)&&o.compact(),u},u.digest=function(){var p=e.util.createBuffer();p.putBytes(o.bytes());var S=u.fullMessageLength[u.fullMessageLength.length-1]+u.messageLengthSize,b=S&u.blockLength-1;p.putBytes(n.substr(0,u.blockLength-b));for(var g,v,m=u.fullMessageLength[0]*8,h=0;h>>0,m+=v,p.putInt32(m>>>0),m=g>>>0;p.putInt32(m);var s={h0:i.h0,h1:i.h1,h2:i.h2,h3:i.h3,h4:i.h4};l(s,f,p);var y=e.util.createBuffer();return y.putInt32(s.h0),y.putInt32(s.h1),y.putInt32(s.h2),y.putInt32(s.h3),y.putInt32(s.h4),y},u};var n=null,r=!1;function a(){n="€",n+=e.util.fillString("\0",64),r=!0}function l(i,o,f){for(var u,p,S,b,g,v,m,h,s=f.length();s>=64;){for(p=i.h0,S=i.h1,b=i.h2,g=i.h3,v=i.h4,h=0;h<16;++h)u=f.getInt32(),o[h]=u,m=g^S&(b^g),u=(p<<5|p>>>27)+m+v+1518500249+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;for(;h<20;++h)u=o[h-3]^o[h-8]^o[h-14]^o[h-16],u=u<<1|u>>>31,o[h]=u,m=g^S&(b^g),u=(p<<5|p>>>27)+m+v+1518500249+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;for(;h<32;++h)u=o[h-3]^o[h-8]^o[h-14]^o[h-16],u=u<<1|u>>>31,o[h]=u,m=S^b^g,u=(p<<5|p>>>27)+m+v+1859775393+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;for(;h<40;++h)u=o[h-6]^o[h-16]^o[h-28]^o[h-32],u=u<<2|u>>>30,o[h]=u,m=S^b^g,u=(p<<5|p>>>27)+m+v+1859775393+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;for(;h<60;++h)u=o[h-6]^o[h-16]^o[h-28]^o[h-32],u=u<<2|u>>>30,o[h]=u,m=S&b|g&(S^b),u=(p<<5|p>>>27)+m+v+2400959708+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;for(;h<80;++h)u=o[h-6]^o[h-16]^o[h-28]^o[h-32],u=u<<2|u>>>30,o[h]=u,m=S^b^g,u=(p<<5|p>>>27)+m+v+3395469782+u,v=g,g=b,b=(S<<30|S>>>2)>>>0,S=p,p=u;i.h0=i.h0+p|0,i.h1=i.h1+S|0,i.h2=i.h2+b|0,i.h3=i.h3+g|0,i.h4=i.h4+v|0,s-=64}}return Oo.exports}var Cu;function tf(){if(Cu)return _o.exports;Cu=1;var e=Xe();Je(),on(),_r();var t=_o.exports=e.pkcs1=e.pkcs1||{};t.encode_rsa_oaep=function(r,a,l){var i,o,f,u;typeof l=="string"?(i=l,o=arguments[3]||void 0,f=arguments[4]||void 0):l&&(i=l.label||void 0,o=l.seed||void 0,f=l.md||void 0,l.mgf1&&l.mgf1.md&&(u=l.mgf1.md)),f?f.start():f=e.md.sha1.create(),u||(u=f);var p=Math.ceil(r.n.bitLength()/8),S=p-2*f.digestLength-2;if(a.length>S){var b=new Error("RSAES-OAEP input message length is too long.");throw b.length=a.length,b.maxLength=S,b}i||(i=""),f.update(i,"raw");for(var g=f.digest(),v="",m=S-a.length,h=0;h>24&255,f>>16&255,f>>8&255,f&255);l.start(),l.update(r+u),i+=l.digest().getBytes()}return i.substring(0,a)}return _o.exports}var Kr={exports:{}},xu;function nf(){if(xu)return Kr.exports;xu=1;var e=Xe();return Je(),Pa(),on(),function(){if(e.prime){Kr.exports=e.prime;return}var t=Kr.exports=e.prime=e.prime||{},n=e.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],a=new n(null);a.fromInt(30);var l=function(b,g){return b|g};t.generateProbablePrime=function(b,g,v){typeof g=="function"&&(v=g,g={}),g=g||{};var m=g.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var h=g.prng||e.random,s={nextBytes:function(y){for(var C=h.getBytesSync(y.length),w=0;wg&&(b=p(g,v)),b.isProbablePrime(h))return y(null,b);b.dAddOffset(r[m++%8],0)}while(s<0||+new Date-C"u")return o(b,g,v,m);var h=p(b,g),s=v.workers,y=v.workLoad||100,C=y*30/8,w=v.workerScript||"forge/prime.worker.js";if(s===-1)return e.util.estimateCores(function(x,c){x&&(c=2),s=c-1,T()});T();function T(){s=Math.max(1,s);for(var x=[],c=0;cb&&(h=p(b,g));var k=h.toString(16);B.target.postMessage({hex:k,workLoad:y}),h.dAddOffset(C,0)}}}}function p(b,g){var v=new n(b,g),m=b-1;return v.testBit(m)||v.bitwiseTo(n.ONE.shiftLeft(m),l,v),v.dAddOffset(31-v.mod(a).byteValue(),0),v}function S(b){return b<=100?27:b<=150?18:b<=200?15:b<=250?12:b<=300?9:b<=350?8:b<=400?7:b<=500?6:b<=600?5:b<=800?4:b<=1250?3:2}}(),Kr.exports}var No,Su;function Da(){if(Su)return No;Su=1;var e=Xe();if(fn(),Pa(),Hn(),tf(),nf(),on(),Je(),typeof t>"u")var t=e.jsbn.BigInteger;var n=e.util.isNodejs?vl:null,r=e.asn1,a=e.util;e.pki=e.pki||{},No=e.pki.rsa=e.rsa=e.rsa||{};var l=e.pki,i=[6,4,2,4,2,4,6,2],o={name:"PrivateKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:r.Class.UNIVERSAL,type:r.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},f={name:"RSAPrivateKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},u={name:"RSAPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},p=e.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:r.Class.UNIVERSAL,type:r.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},S={name:"DigestInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:r.Class.UNIVERSAL,type:r.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:r.Class.UNIVERSAL,type:r.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:r.Class.UNIVERSAL,type:r.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},b=function(c){var d;if(c.algorithm in l.oids)d=l.oids[c.algorithm];else{var A=new Error("Unknown message digest algorithm.");throw A.algorithm=c.algorithm,A}var B=r.oidToDer(d).getBytes(),O=r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[]),_=r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[]);_.value.push(r.create(r.Class.UNIVERSAL,r.Type.OID,!1,B)),_.value.push(r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,""));var k=r.create(r.Class.UNIVERSAL,r.Type.OCTETSTRING,!1,c.digest().getBytes());return O.value.push(_),O.value.push(k),r.toDer(O).getBytes()},g=function(c,d,A){if(A)return c.modPow(d.e,d.n);if(!d.p||!d.q)return c.modPow(d.d,d.n);d.dP||(d.dP=d.d.mod(d.p.subtract(t.ONE))),d.dQ||(d.dQ=d.d.mod(d.q.subtract(t.ONE))),d.qInv||(d.qInv=d.q.modInverse(d.p));var B;do B=new t(e.util.bytesToHex(e.random.getBytes(d.n.bitLength()/8)),16);while(B.compareTo(d.n)>=0||!B.gcd(d.n).equals(t.ONE));c=c.multiply(B.modPow(d.e,d.n)).mod(d.n);for(var O=c.mod(d.p).modPow(d.dP,d.p),_=c.mod(d.q).modPow(d.dQ,d.q);O.compareTo(_)<0;)O=O.add(d.p);var k=O.subtract(_).multiply(d.qInv).mod(d.p).multiply(d.q).add(_);return k=k.multiply(B.modInverse(d.n)).mod(d.n),k};l.rsa.encrypt=function(c,d,A){var B=A,O,_=Math.ceil(d.n.bitLength()/8);A!==!1&&A!==!0?(B=A===2,O=v(c,d,A)):(O=e.util.createBuffer(),O.putBytes(c));for(var k=new t(O.toHex(),16),M=g(k,d,B),V=M.toString(16),q=e.util.createBuffer(),Q=_-Math.ceil(V.length/2);Q>0;)q.putByte(0),--Q;return q.putBytes(e.util.hexToBytes(V)),q.getBytes()},l.rsa.decrypt=function(c,d,A,B){var O=Math.ceil(d.n.bitLength()/8);if(c.length!==O){var _=new Error("Encrypted message length is invalid.");throw _.length=c.length,_.expected=O,_}var k=new t(e.util.createBuffer(c).toHex(),16);if(k.compareTo(d.n)>=0)throw new Error("Encrypted message is invalid.");for(var M=g(k,d,A),V=M.toString(16),q=e.util.createBuffer(),Q=O-Math.ceil(V.length/2);Q>0;)q.putByte(0),--Q;return q.putBytes(e.util.hexToBytes(V)),B!==!1?m(q.getBytes(),d,A):q.getBytes()},l.rsa.createKeyPairGenerationState=function(c,d,A){typeof c=="string"&&(c=parseInt(c,10)),c=c||2048,A=A||{};var B=A.prng||e.random,O={nextBytes:function(M){for(var V=B.getBytesSync(M.length),q=0;q>1,pBits:c-(c>>1),pqState:0,num:null,keys:null},k.e.fromInt(k.eInt);else throw new Error("Invalid key generation algorithm: "+_);return k},l.rsa.stepKeyPairGenerationState=function(c,d){"algorithm"in c||(c.algorithm="PRIMEINC");var A=new t(null);A.fromInt(30);for(var B=0,O=function(X,K){return X|K},_=+new Date,k,M=0;c.keys===null&&(d<=0||MV?c.pqState=0:c.num.isProbablePrime(y(c.num.bitLength()))?++c.pqState:c.num.dAddOffset(i[B++%8],0):c.pqState===2?c.pqState=c.num.subtract(t.ONE).gcd(c.e).compareTo(t.ONE)===0?3:0:c.pqState===3&&(c.pqState=0,c.p===null?c.p=c.num:c.q=c.num,c.p!==null&&c.q!==null&&++c.state,c.num=null)}else if(c.state===1)c.p.compareTo(c.q)<0&&(c.num=c.p,c.p=c.q,c.q=c.num),++c.state;else if(c.state===2)c.p1=c.p.subtract(t.ONE),c.q1=c.q.subtract(t.ONE),c.phi=c.p1.multiply(c.q1),++c.state;else if(c.state===3)c.phi.gcd(c.e).compareTo(t.ONE)===0?++c.state:(c.p=null,c.q=null,c.state=0);else if(c.state===4)c.n=c.p.multiply(c.q),c.n.bitLength()===c.bits?++c.state:(c.q=null,c.state=0);else if(c.state===5){var Q=c.e.modInverse(c.phi);c.keys={privateKey:l.rsa.setPrivateKey(c.n,c.e,Q,c.p,c.q,Q.mod(c.p1),Q.mod(c.q1),c.q.modInverse(c.p)),publicKey:l.rsa.setPublicKey(c.n,c.e)}}k=+new Date,M+=k-_,_=k}return c.keys!==null},l.rsa.generateKeyPair=function(c,d,A,B){if(arguments.length===1?typeof c=="object"?(A=c,c=void 0):typeof c=="function"&&(B=c,c=void 0):arguments.length===2?typeof c=="number"?typeof d=="function"?(B=d,d=void 0):typeof d!="number"&&(A=d,d=void 0):(A=c,B=d,c=void 0,d=void 0):arguments.length===3&&(typeof d=="number"?typeof A=="function"&&(B=A,A=void 0):(B=A,A=d,d=void 0)),A=A||{},c===void 0&&(c=A.bits||2048),d===void 0&&(d=A.e||65537),!e.options.usePureJavaScript&&!A.prng&&c>=256&&c<=16384&&(d===65537||d===3)){if(B){if(C("generateKeyPair"))return n.generateKeyPair("rsa",{modulusLength:c,publicExponent:d,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(M,V,q){if(M)return B(M);B(null,{privateKey:l.privateKeyFromPem(q),publicKey:l.publicKeyFromPem(V)})});if(w("generateKey")&&w("exportKey"))return a.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:c,publicExponent:x(d),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(M){return a.globalScope.crypto.subtle.exportKey("pkcs8",M.privateKey)}).then(void 0,function(M){B(M)}).then(function(M){if(M){var V=l.privateKeyFromAsn1(r.fromDer(e.util.createBuffer(M)));B(null,{privateKey:V,publicKey:l.setRsaPublicKey(V.n,V.e)})}});if(T("generateKey")&&T("exportKey")){var O=a.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:c,publicExponent:x(d),hash:{name:"SHA-256"}},!0,["sign","verify"]);O.oncomplete=function(M){var V=M.target.result,q=a.globalScope.msCrypto.subtle.exportKey("pkcs8",V.privateKey);q.oncomplete=function(Q){var X=Q.target.result,K=l.privateKeyFromAsn1(r.fromDer(e.util.createBuffer(X)));B(null,{privateKey:K,publicKey:l.setRsaPublicKey(K.n,K.e)})},q.onerror=function(Q){B(Q)}},O.onerror=function(M){B(M)};return}}else if(C("generateKeyPairSync")){var _=n.generateKeyPairSync("rsa",{modulusLength:c,publicExponent:d,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:l.privateKeyFromPem(_.privateKey),publicKey:l.publicKeyFromPem(_.publicKey)}}}var k=l.rsa.createKeyPairGenerationState(c,d,A);if(!B)return l.rsa.stepKeyPairGenerationState(k,0),k.keys;h(k,A,B)},l.setRsaPublicKey=l.rsa.setPublicKey=function(c,d){var A={n:c,e:d};return A.encrypt=function(B,O,_){if(typeof O=="string"?O=O.toUpperCase():O===void 0&&(O="RSAES-PKCS1-V1_5"),O==="RSAES-PKCS1-V1_5")O={encode:function(M,V,q){return v(M,V,2).getBytes()}};else if(O==="RSA-OAEP"||O==="RSAES-OAEP")O={encode:function(M,V){return e.pkcs1.encode_rsa_oaep(V,M,_)}};else if(["RAW","NONE","NULL",null].indexOf(O)!==-1)O={encode:function(M){return M}};else if(typeof O=="string")throw new Error('Unsupported encryption scheme: "'+O+'".');var k=O.encode(B,A,!0);return l.rsa.encrypt(k,A,!0)},A.verify=function(B,O,_,k){typeof _=="string"?_=_.toUpperCase():_===void 0&&(_="RSASSA-PKCS1-V1_5"),k===void 0&&(k={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in k||(k._parseAllDigestBytes=!0),_==="RSASSA-PKCS1-V1_5"?_={verify:function(V,q){q=m(q,A,!0);var Q=r.fromDer(q,{parseAllBytes:k._parseAllDigestBytes}),X={},K=[];if(!r.validate(Q,S,X,K)){var j=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw j.errors=K,j}var Z=r.derToOid(X.algorithmIdentifier);if(!(Z===e.oids.md2||Z===e.oids.md5||Z===e.oids.sha1||Z===e.oids.sha224||Z===e.oids.sha256||Z===e.oids.sha384||Z===e.oids.sha512||Z===e.oids["sha512-224"]||Z===e.oids["sha512-256"])){var j=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw j.oid=Z,j}if((Z===e.oids.md2||Z===e.oids.md5)&&!("parameters"in X))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return V===X.digest}}:(_==="NONE"||_==="NULL"||_===null)&&(_={verify:function(V,q){return q=m(q,A,!0),V===q}});var M=l.rsa.decrypt(O,A,!0,!1);return _.verify(B,M,A.n.bitLength())},A},l.setRsaPrivateKey=l.rsa.setPrivateKey=function(c,d,A,B,O,_,k,M){var V={n:c,e:d,d:A,p:B,q:O,dP:_,dQ:k,qInv:M};return V.decrypt=function(q,Q,X){typeof Q=="string"?Q=Q.toUpperCase():Q===void 0&&(Q="RSAES-PKCS1-V1_5");var K=l.rsa.decrypt(q,V,!1,!1);if(Q==="RSAES-PKCS1-V1_5")Q={decode:m};else if(Q==="RSA-OAEP"||Q==="RSAES-OAEP")Q={decode:function(j,Z){return e.pkcs1.decode_rsa_oaep(Z,j,X)}};else if(["RAW","NONE","NULL",null].indexOf(Q)!==-1)Q={decode:function(j){return j}};else throw new Error('Unsupported encryption scheme: "'+Q+'".');return Q.decode(K,V,!1)},V.sign=function(q,Q){var X=!1;typeof Q=="string"&&(Q=Q.toUpperCase()),Q===void 0||Q==="RSASSA-PKCS1-V1_5"?(Q={encode:b},X=1):(Q==="NONE"||Q==="NULL"||Q===null)&&(Q={encode:function(){return q}},X=1);var K=Q.encode(q,V.n.bitLength());return l.rsa.encrypt(K,V,X)},V},l.wrapRsaPrivateKey=function(c){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,r.integerToDer(0).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.OID,!1,r.oidToDer(l.oids.rsaEncryption).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,"")]),r.create(r.Class.UNIVERSAL,r.Type.OCTETSTRING,!1,r.toDer(c).getBytes())])},l.privateKeyFromAsn1=function(c){var d={},A=[];if(r.validate(c,o,d,A)&&(c=r.fromDer(e.util.createBuffer(d.privateKey))),d={},A=[],!r.validate(c,f,d,A)){var B=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw B.errors=A,B}var O,_,k,M,V,q,Q,X;return O=e.util.createBuffer(d.privateKeyModulus).toHex(),_=e.util.createBuffer(d.privateKeyPublicExponent).toHex(),k=e.util.createBuffer(d.privateKeyPrivateExponent).toHex(),M=e.util.createBuffer(d.privateKeyPrime1).toHex(),V=e.util.createBuffer(d.privateKeyPrime2).toHex(),q=e.util.createBuffer(d.privateKeyExponent1).toHex(),Q=e.util.createBuffer(d.privateKeyExponent2).toHex(),X=e.util.createBuffer(d.privateKeyCoefficient).toHex(),l.setRsaPrivateKey(new t(O,16),new t(_,16),new t(k,16),new t(M,16),new t(V,16),new t(q,16),new t(Q,16),new t(X,16))},l.privateKeyToAsn1=l.privateKeyToRSAPrivateKey=function(c){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,r.integerToDer(0).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.n)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.e)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.d)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.p)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.q)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.dP)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.dQ)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.qInv))])},l.publicKeyFromAsn1=function(c){var d={},A=[];if(r.validate(c,p,d,A)){var B=r.derToOid(d.publicKeyOid);if(B!==l.oids.rsaEncryption){var O=new Error("Cannot read public key. Unknown OID.");throw O.oid=B,O}c=d.rsaPublicKey}if(A=[],!r.validate(c,u,d,A)){var O=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw O.errors=A,O}var _=e.util.createBuffer(d.publicKeyModulus).toHex(),k=e.util.createBuffer(d.publicKeyExponent).toHex();return l.setRsaPublicKey(new t(_,16),new t(k,16))},l.publicKeyToAsn1=l.publicKeyToSubjectPublicKeyInfo=function(c){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.OID,!1,r.oidToDer(l.oids.rsaEncryption).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,"")]),r.create(r.Class.UNIVERSAL,r.Type.BITSTRING,!1,[l.publicKeyToRSAPublicKey(c)])])},l.publicKeyToRSAPublicKey=function(c){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.n)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,s(c.e))])};function v(c,d,A){var B=e.util.createBuffer(),O=Math.ceil(d.n.bitLength()/8);if(c.length>O-11){var _=new Error("Message is too long for PKCS#1 v1.5 padding.");throw _.length=c.length,_.max=O-11,_}B.putByte(0),B.putByte(A);var k=O-3-c.length,M;if(A===0||A===1){M=A===0?0:255;for(var V=0;V0;){for(var q=0,Q=e.random.getBytes(k),V=0;V"u")throw new Error("Encryption block is invalid.");var V=0;if(M===0){V=O-3-B;for(var q=0;q1;){if(_.getByte()!==255){--_.read;break}++V}else if(M===2)for(V=0;_.length()>1;){if(_.getByte()===0){--_.read;break}++V}var Q=_.getByte();if(Q!==0||V!==O-3-_.length())throw new Error("Encryption block is invalid.");return _.getBytes()}function h(c,d,A){typeof d=="function"&&(A=d,d={}),d=d||{};var B={algorithm:{name:d.algorithm||"PRIMEINC",options:{workers:d.workers||2,workLoad:d.workLoad||100,workerScript:d.workerScript}}};"prng"in d&&(B.prng=d.prng),O();function O(){_(c.pBits,function(M,V){if(M)return A(M);if(c.p=V,c.q!==null)return k(M,c.q);_(c.qBits,k)})}function _(M,V){e.prime.generateProbablePrime(M,B,V)}function k(M,V){if(M)return A(M);if(c.q=V,c.p.compareTo(c.q)<0){var q=c.p;c.p=c.q,c.q=q}if(c.p.subtract(t.ONE).gcd(c.e).compareTo(t.ONE)!==0){c.p=null,O();return}if(c.q.subtract(t.ONE).gcd(c.e).compareTo(t.ONE)!==0){c.q=null,_(c.qBits,k);return}if(c.p1=c.p.subtract(t.ONE),c.q1=c.q.subtract(t.ONE),c.phi=c.p1.multiply(c.q1),c.phi.gcd(c.e).compareTo(t.ONE)!==0){c.p=c.q=null,O();return}if(c.n=c.p.multiply(c.q),c.n.bitLength()!==c.bits){c.q=null,_(c.qBits,k);return}var Q=c.e.modInverse(c.phi);c.keys={privateKey:l.rsa.setPrivateKey(c.n,c.e,Q,c.p,c.q,Q.mod(c.p1),Q.mod(c.q1),c.q.modInverse(c.p)),publicKey:l.rsa.setPublicKey(c.n,c.e)},A(null,c.keys)}}function s(c){var d=c.toString(16);d[0]>="8"&&(d="00"+d);var A=e.util.hexToBytes(d);return A.length>1&&(A.charCodeAt(0)===0&&!(A.charCodeAt(1)&128)||A.charCodeAt(0)===255&&(A.charCodeAt(1)&128)===128)?A.substr(1):A}function y(c){return c<=100?27:c<=150?18:c<=200?15:c<=250?12:c<=300?9:c<=350?8:c<=400?7:c<=500?6:c<=600?5:c<=800?4:c<=1250?3:2}function C(c){return e.util.isNodejs&&typeof n[c]=="function"}function w(c){return typeof a.globalScope<"u"&&typeof a.globalScope.crypto=="object"&&typeof a.globalScope.crypto.subtle=="object"&&typeof a.globalScope.crypto.subtle[c]=="function"}function T(c){return typeof a.globalScope<"u"&&typeof a.globalScope.msCrypto=="object"&&typeof a.globalScope.msCrypto.subtle=="object"&&typeof a.globalScope.msCrypto.subtle[c]=="function"}function x(c){for(var d=e.util.hexToBytes(c.toString(16)),A=new Uint8Array(d.length),B=0;B"u")var t=e.jsbn.BigInteger;var n=e.asn1,r=e.pki=e.pki||{};Po=r.pbe=e.pbe=e.pbe||{};var a=r.oids,l={name:"EncryptedPrivateKeyInfo",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:n.Class.UNIVERSAL,type:n.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:n.Class.UNIVERSAL,type:n.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},i={name:"PBES2Algorithms",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:n.Class.UNIVERSAL,type:n.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:n.Class.UNIVERSAL,type:n.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:n.Class.UNIVERSAL,type:n.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:n.Class.UNIVERSAL,type:n.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:n.Class.UNIVERSAL,type:n.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},o={name:"pkcs-12PbeParams",tagClass:n.Class.UNIVERSAL,type:n.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:n.Class.UNIVERSAL,type:n.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:n.Class.UNIVERSAL,type:n.Type.INTEGER,constructed:!1,capture:"iterations"}]};r.encryptPrivateKeyInfo=function(b,g,v){v=v||{},v.saltSize=v.saltSize||8,v.count=v.count||2048,v.algorithm=v.algorithm||"aes128",v.prfAlgorithm=v.prfAlgorithm||"sha1";var m=e.random.getBytesSync(v.saltSize),h=v.count,s=n.integerToDer(h),y,C,w;if(v.algorithm.indexOf("aes")===0||v.algorithm==="des"){var T,x,c;switch(v.algorithm){case"aes128":y=16,T=16,x=a["aes128-CBC"],c=e.aes.createEncryptionCipher;break;case"aes192":y=24,T=16,x=a["aes192-CBC"],c=e.aes.createEncryptionCipher;break;case"aes256":y=32,T=16,x=a["aes256-CBC"],c=e.aes.createEncryptionCipher;break;case"des":y=8,T=8,x=a.desCBC,c=e.des.createEncryptionCipher;break;default:var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=v.algorithm,d}var A="hmacWith"+v.prfAlgorithm.toUpperCase(),B=p(A),O=e.pkcs5.pbkdf2(g,m,h,y,B),_=e.random.getBytesSync(T),k=c(O);k.start(_),k.update(n.toDer(b)),k.finish(),w=k.output.getBytes();var M=S(m,s,y,A);C=n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.OID,!1,n.oidToDer(a.pkcs5PBES2).getBytes()),n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.OID,!1,n.oidToDer(a.pkcs5PBKDF2).getBytes()),M]),n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.OID,!1,n.oidToDer(x).getBytes()),n.create(n.Class.UNIVERSAL,n.Type.OCTETSTRING,!1,_)])])])}else if(v.algorithm==="3des"){y=24;var V=new e.util.ByteBuffer(m),O=r.pbe.generatePkcs12Key(g,V,1,h,y),_=r.pbe.generatePkcs12Key(g,V,2,h,y),k=e.des.createEncryptionCipher(O);k.start(_),k.update(n.toDer(b)),k.finish(),w=k.output.getBytes(),C=n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.OID,!1,n.oidToDer(a["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[n.create(n.Class.UNIVERSAL,n.Type.OCTETSTRING,!1,m),n.create(n.Class.UNIVERSAL,n.Type.INTEGER,!1,s.getBytes())])])}else{var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=v.algorithm,d}var q=n.create(n.Class.UNIVERSAL,n.Type.SEQUENCE,!0,[C,n.create(n.Class.UNIVERSAL,n.Type.OCTETSTRING,!1,w)]);return q},r.decryptPrivateKeyInfo=function(b,g){var v=null,m={},h=[];if(!n.validate(b,l,m,h)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=h,s}var y=n.derToOid(m.encryptionOid),C=r.pbe.getCipher(y,m.encryptionParams,g),w=e.util.createBuffer(m.encryptedData);return C.update(w),C.finish()&&(v=n.fromDer(C.output)),v},r.encryptedPrivateKeyToPem=function(b,g){var v={type:"ENCRYPTED PRIVATE KEY",body:n.toDer(b).getBytes()};return e.pem.encode(v,{maxline:g})},r.encryptedPrivateKeyFromPem=function(b){var g=e.pem.decode(b)[0];if(g.type!=="ENCRYPTED PRIVATE KEY"){var v=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw v.headerType=g.type,v}if(g.procType&&g.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return n.fromDer(g.body)},r.encryptRsaPrivateKey=function(b,g,v){if(v=v||{},!v.legacy){var m=r.wrapRsaPrivateKey(r.privateKeyToAsn1(b));return m=r.encryptPrivateKeyInfo(m,g,v),r.encryptedPrivateKeyToPem(m)}var h,s,y,C;switch(v.algorithm){case"aes128":h="AES-128-CBC",y=16,s=e.random.getBytesSync(16),C=e.aes.createEncryptionCipher;break;case"aes192":h="AES-192-CBC",y=24,s=e.random.getBytesSync(16),C=e.aes.createEncryptionCipher;break;case"aes256":h="AES-256-CBC",y=32,s=e.random.getBytesSync(16),C=e.aes.createEncryptionCipher;break;case"3des":h="DES-EDE3-CBC",y=24,s=e.random.getBytesSync(8),C=e.des.createEncryptionCipher;break;case"des":h="DES-CBC",y=8,s=e.random.getBytesSync(8),C=e.des.createEncryptionCipher;break;default:var w=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+v.algorithm+'".');throw w.algorithm=v.algorithm,w}var T=e.pbe.opensslDeriveBytes(g,s.substr(0,8),y),x=C(T);x.start(s),x.update(n.toDer(r.privateKeyToAsn1(b))),x.finish();var c={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:h,parameters:e.util.bytesToHex(s).toUpperCase()},body:x.output.getBytes()};return e.pem.encode(c)},r.decryptRsaPrivateKey=function(b,g){var v=null,m=e.pem.decode(b)[0];if(m.type!=="ENCRYPTED PRIVATE KEY"&&m.type!=="PRIVATE KEY"&&m.type!=="RSA PRIVATE KEY"){var h=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw h.headerType=h,h}if(m.procType&&m.procType.type==="ENCRYPTED"){var s,y;switch(m.dekInfo.algorithm){case"DES-CBC":s=8,y=e.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,y=e.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,y=e.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,y=e.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,y=e.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,y=function(c){return e.rc2.createDecryptionCipher(c,40)};break;case"RC2-64-CBC":s=8,y=function(c){return e.rc2.createDecryptionCipher(c,64)};break;case"RC2-128-CBC":s=16,y=function(c){return e.rc2.createDecryptionCipher(c,128)};break;default:var h=new Error('Could not decrypt private key; unsupported encryption algorithm "'+m.dekInfo.algorithm+'".');throw h.algorithm=m.dekInfo.algorithm,h}var C=e.util.hexToBytes(m.dekInfo.parameters),w=e.pbe.opensslDeriveBytes(g,C.substr(0,8),s),T=y(w);if(T.start(C),T.update(e.util.createBuffer(m.body)),T.finish())v=T.output.getBytes();else return v}else v=m.body;return m.type==="ENCRYPTED PRIVATE KEY"?v=r.decryptPrivateKeyInfo(n.fromDer(v),g):v=n.fromDer(v),v!==null&&(v=r.privateKeyFromAsn1(v)),v},r.pbe.generatePkcs12Key=function(b,g,v,m,h,s){var y,C;if(typeof s>"u"||s===null){if(!("sha1"in e.md))throw new Error('"sha1" hash algorithm unavailable.');s=e.md.sha1.create()}var w=s.digestLength,T=s.blockLength,x=new e.util.ByteBuffer,c=new e.util.ByteBuffer;if(b!=null){for(C=0;C=0;C--)J=J>>8,J+=j.at(C)+se.at(C),se.setAt(C,J&255);G.putBuffer(se)}V=G,x.putBuffer(X)}return x.truncate(x.length()-h),x},r.pbe.getCipher=function(b,g,v){switch(b){case r.oids.pkcs5PBES2:return r.pbe.getCipherForPBES2(b,g,v);case r.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case r.oids["pbewithSHAAnd40BitRC2-CBC"]:return r.pbe.getCipherForPKCS12PBE(b,g,v);default:var m=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw m.oid=b,m.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],m}},r.pbe.getCipherForPBES2=function(b,g,v){var m={},h=[];if(!n.validate(g,i,m,h)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=h,s}if(b=n.derToOid(m.kdfOid),b!==r.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=b,s.supportedOids=["pkcs5PBKDF2"],s}if(b=n.derToOid(m.encOid),b!==r.oids["aes128-CBC"]&&b!==r.oids["aes192-CBC"]&&b!==r.oids["aes256-CBC"]&&b!==r.oids["des-EDE3-CBC"]&&b!==r.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=b,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var y=m.kdfSalt,C=e.util.createBuffer(m.kdfIterationCount);C=C.getInt(C.length()<<3);var w,T;switch(r.oids[b]){case"aes128-CBC":w=16,T=e.aes.createDecryptionCipher;break;case"aes192-CBC":w=24,T=e.aes.createDecryptionCipher;break;case"aes256-CBC":w=32,T=e.aes.createDecryptionCipher;break;case"des-EDE3-CBC":w=24,T=e.des.createDecryptionCipher;break;case"desCBC":w=8,T=e.des.createDecryptionCipher;break}var x=u(m.prfOid),c=e.pkcs5.pbkdf2(v,y,C,w,x),d=m.encIv,A=T(c);return A.start(d),A},r.pbe.getCipherForPKCS12PBE=function(b,g,v){var m={},h=[];if(!n.validate(g,o,m,h)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=h,s}var y=e.util.createBuffer(m.salt),C=e.util.createBuffer(m.iterations);C=C.getInt(C.length()<<3);var w,T,x;switch(b){case r.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:w=24,T=8,x=e.des.startDecrypting;break;case r.oids["pbewithSHAAnd40BitRC2-CBC"]:w=5,T=8,x=function(O,_){var k=e.rc2.createDecryptionCipher(O,40);return k.start(_,null),k};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=b,s}var c=u(m.prfOid),d=r.pbe.generatePkcs12Key(v,y,1,C,w,c);c.start();var A=r.pbe.generatePkcs12Key(v,y,2,C,T,c);return x(d,A)},r.pbe.opensslDeriveBytes=function(b,g,v,m){if(typeof m>"u"||m===null){if(!("md5"in e.md))throw new Error('"md5" hash algorithm unavailable.');m=e.md.md5.create()}g===null&&(g="");for(var h=[f(m,b+g)],s=16,y=1;s>8*v-g&255;return c=String.fromCharCode(c.charCodeAt(0)&~d)+c.substr(1),c+y+"¼"},u.verify=function(p,S,b){var g,v=b-1,m=Math.ceil(v/8);if(S=S.substr(-m),m>8*m-v&255;if(s.charCodeAt(0)&C)throw new Error("Bits beyond keysize not zero as expected.");var w=a.generate(y,h),T="";for(g=0;g2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(M.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(_.validity.notBefore=M[0],_.validity.notAfter=M[1],_.tbsCertificate=d.tbsCertificate,c){_.md=b({signatureOid:_.signatureOid,type:"certificate"});var V=t.toDer(_.tbsCertificate);_.md.update(V.getBytes())}var q=e.md.sha1.create(),Q=t.toDer(d.certIssuer);q.update(Q.getBytes()),_.issuer.getField=function(j){return p(_.issuer,j)},_.issuer.addField=function(j){m([j]),_.issuer.attributes.push(j)},_.issuer.attributes=n.RDNAttributesAsArray(d.certIssuer),d.certIssuerUniqueId&&(_.issuer.uniqueId=d.certIssuerUniqueId),_.issuer.hash=q.digest().toHex();var X=e.md.sha1.create(),K=t.toDer(d.certSubject);return X.update(K.getBytes()),_.subject.getField=function(j){return p(_.subject,j)},_.subject.addField=function(j){m([j]),_.subject.attributes.push(j)},_.subject.attributes=n.RDNAttributesAsArray(d.certSubject),d.certSubjectUniqueId&&(_.subject.uniqueId=d.certSubjectUniqueId),_.subject.hash=X.digest().toHex(),d.certExtensions?_.extensions=n.certificateExtensionsFromAsn1(d.certExtensions):_.extensions=[],_.publicKey=n.publicKeyFromAsn1(d.subjectPublicKeyInfo),_},n.certificateExtensionsFromAsn1=function(x){for(var c=[],d=0;d1&&(A=d.value.charCodeAt(1),B=d.value.length>2?d.value.charCodeAt(2):0),c.digitalSignature=(A&128)===128,c.nonRepudiation=(A&64)===64,c.keyEncipherment=(A&32)===32,c.dataEncipherment=(A&16)===16,c.keyAgreement=(A&8)===8,c.keyCertSign=(A&4)===4,c.cRLSign=(A&2)===2,c.encipherOnly=(A&1)===1,c.decipherOnly=(B&128)===128}else if(c.name==="basicConstraints"){var d=t.fromDer(c.value);d.value.length>0&&d.value[0].type===t.Type.BOOLEAN?c.cA=d.value[0].value.charCodeAt(0)!==0:c.cA=!1;var O=null;d.value.length>0&&d.value[0].type===t.Type.INTEGER?O=d.value[0].value:d.value.length>1&&(O=d.value[1].value),O!==null&&(c.pathLenConstraint=t.derToInteger(O))}else if(c.name==="extKeyUsage")for(var d=t.fromDer(c.value),_=0;_1&&(A=d.value.charCodeAt(1)),c.client=(A&128)===128,c.server=(A&64)===64,c.email=(A&32)===32,c.objsign=(A&16)===16,c.reserved=(A&8)===8,c.sslCA=(A&4)===4,c.emailCA=(A&2)===2,c.objCA=(A&1)===1}else if(c.name==="subjectAltName"||c.name==="issuerAltName"){c.altNames=[];for(var M,d=t.fromDer(c.value),V=0;V"u"&&(c.type&&c.type in n.oids?c.name=n.oids[c.type]:c.shortName&&c.shortName in a&&(c.name=n.oids[a[c.shortName]])),typeof c.type>"u")if(c.name&&c.name in n.oids)c.type=n.oids[c.name];else{var A=new Error("Attribute type not specified.");throw A.attribute=c,A}if(typeof c.shortName>"u"&&c.name&&c.name in a&&(c.shortName=a[c.name]),c.type===r.extensionRequest&&(c.valueConstructed=!0,c.valueTagClass=t.Type.SEQUENCE,!c.value&&c.extensions)){c.value=[];for(var B=0;B"u"){var A=new Error("Attribute value not specified.");throw A.attribute=c,A}}}function h(x,c){if(c=c||{},typeof x.name>"u"&&x.id&&x.id in n.oids&&(x.name=n.oids[x.id]),typeof x.id>"u")if(x.name&&x.name in n.oids)x.id=n.oids[x.name];else{var d=new Error("Extension ID not specified.");throw d.extension=x,d}if(typeof x.value<"u")return x;if(x.name==="keyUsage"){var A=0,B=0,O=0;x.digitalSignature&&(B|=128,A=7),x.nonRepudiation&&(B|=64,A=6),x.keyEncipherment&&(B|=32,A=5),x.dataEncipherment&&(B|=16,A=4),x.keyAgreement&&(B|=8,A=3),x.keyCertSign&&(B|=4,A=2),x.cRLSign&&(B|=2,A=1),x.encipherOnly&&(B|=1,A=0),x.decipherOnly&&(O|=128,A=7);var _=String.fromCharCode(A);O!==0?_+=String.fromCharCode(B)+String.fromCharCode(O):B!==0&&(_+=String.fromCharCode(B)),x.value=t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,!1,_)}else if(x.name==="basicConstraints")x.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]),x.cA&&x.value.value.push(t.create(t.Class.UNIVERSAL,t.Type.BOOLEAN,!1,"ÿ")),"pathLenConstraint"in x&&x.value.value.push(t.create(t.Class.UNIVERSAL,t.Type.INTEGER,!1,t.integerToDer(x.pathLenConstraint).getBytes()));else if(x.name==="extKeyUsage"){x.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]);var k=x.value.value;for(var M in x)x[M]===!0&&(M in r?k.push(t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(r[M]).getBytes())):M.indexOf(".")!==-1&&k.push(t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(M).getBytes())))}else if(x.name==="nsCertType"){var A=0,B=0;x.client&&(B|=128,A=7),x.server&&(B|=64,A=6),x.email&&(B|=32,A=5),x.objsign&&(B|=16,A=4),x.reserved&&(B|=8,A=3),x.sslCA&&(B|=4,A=2),x.emailCA&&(B|=2,A=1),x.objCA&&(B|=1,A=0);var _=String.fromCharCode(A);B!==0&&(_+=String.fromCharCode(B)),x.value=t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,!1,_)}else if(x.name==="subjectAltName"||x.name==="issuerAltName"){x.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]);for(var V,q=0;q128)throw new Error('Invalid "nsComment" content.');x.value=t.create(t.Class.UNIVERSAL,t.Type.IA5STRING,!1,x.comment)}else if(x.name==="subjectKeyIdentifier"&&c.cert){var Q=c.cert.generateSubjectKeyIdentifier();x.subjectKeyIdentifier=Q.toHex(),x.value=t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,Q.getBytes())}else if(x.name==="authorityKeyIdentifier"&&c.cert){x.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]);var k=x.value.value;if(x.keyIdentifier){var X=x.keyIdentifier===!0?c.cert.generateSubjectKeyIdentifier().getBytes():x.keyIdentifier;k.push(t.create(t.Class.CONTEXT_SPECIFIC,0,!1,X))}if(x.authorityCertIssuer){var K=[t.create(t.Class.CONTEXT_SPECIFIC,4,!0,[v(x.authorityCertIssuer===!0?c.cert.issuer:x.authorityCertIssuer)])];k.push(t.create(t.Class.CONTEXT_SPECIFIC,1,!0,K))}if(x.serialNumber){var j=e.util.hexToBytes(x.serialNumber===!0?c.cert.serialNumber:x.serialNumber);k.push(t.create(t.Class.CONTEXT_SPECIFIC,2,!1,j))}}else if(x.name==="cRLDistributionPoints"){x.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]);for(var k=x.value.value,Z=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]),G=t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[]),V,q=0;q"u"){var d=new Error("Extension value not specified.");throw d.extension=x,d}return x}function s(x,c){switch(x){case r["RSASSA-PSS"]:var d=[];return c.hash.algorithmOid!==void 0&&d.push(t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(c.hash.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,!1,"")])])),c.mgf.algorithmOid!==void 0&&d.push(t.create(t.Class.CONTEXT_SPECIFIC,1,!0,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(c.mgf.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(c.mgf.hash.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,!1,"")])])])),c.saltLength!==void 0&&d.push(t.create(t.Class.CONTEXT_SPECIFIC,2,!0,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,!1,t.integerToDer(c.saltLength).getBytes())])),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,d);default:return t.create(t.Class.UNIVERSAL,t.Type.NULL,!1,"")}}function y(x){var c=t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[]);if(x.attributes.length===0)return c;for(var d=x.attributes,A=0;A=C&&x0&&A.value.push(n.certificateExtensionsToAsn1(x.extensions)),A},n.getCertificationRequestInfo=function(x){var c=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,!1,t.integerToDer(x.version).getBytes()),v(x.subject),n.publicKeyToAsn1(x.publicKey),y(x)]);return c},n.distinguishedNameToAsn1=function(x){return v(x)},n.certificateToAsn1=function(x){var c=x.tbsCertificate||n.getTBSCertificate(x);return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[c,t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(x.signatureOid).getBytes()),s(x.signatureOid,x.signatureParameters)]),t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,!1,"\0"+x.signature)])},n.certificateExtensionsToAsn1=function(x){var c=t.create(t.Class.CONTEXT_SPECIFIC,3,!0,[]),d=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[]);c.value.push(d);for(var A=0;A"u"&&(B=new Date);var O=!0,_=null,k=0;do{var M=c.shift(),V=null,q=!1;if(B&&(BM.validity.notAfter)&&(_={message:"Certificate is not valid yet or has expired.",error:n.certificateError.certificate_expired,notBefore:M.validity.notBefore,notAfter:M.validity.notAfter,now:B}),_===null){if(V=c[0]||x.getIssuer(M),V===null&&M.isIssuer(M)&&(q=!0,V=M),V){var Q=V;e.util.isArray(Q)||(Q=[Q]);for(var X=!1;!X&&Q.length>0;){V=Q.shift();try{X=V.verify(M)}catch{}}X||(_={message:"Certificate signature is invalid.",error:n.certificateError.bad_certificate})}_===null&&(!V||q)&&!x.hasCertificate(M)&&(_={message:"Certificate is not trusted.",error:n.certificateError.unknown_ca})}if(_===null&&V&&!M.isIssuer(V)&&(_={message:"Certificate issuer is invalid.",error:n.certificateError.bad_certificate}),_===null)for(var K={keyUsage:!0,basicConstraints:!0},j=0;_===null&&jG.pathLenConstraint&&(_={message:"Certificate basicConstraints pathLenConstraint violated.",error:n.certificateError.bad_certificate})}}var he=_===null?!0:_.error,re=d.verify?d.verify(he,k,A):he;if(re===!0)_=null;else throw he===!0&&(_={message:"The application rejected the certificate.",error:n.certificateError.bad_certificate}),(re||re===0)&&(typeof re=="object"&&!e.util.isArray(re)?(re.message&&(_.message=re.message),re.error&&(_.error=re.error)):typeof re=="string"&&(_.error=re)),_;O=!1,++k}while(c.length>0);return!0},Lo.exports}var $u;function lf(){if($u)return Do.exports;$u=1;var e=Xe();fn(),Rr(),Hn(),af(),rf(),on(),Da(),_r(),Je(),bl();var t=e.asn1,n=e.pki,r=Do.exports=e.pkcs12=e.pkcs12||{},a={name:"ContentInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:t.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},l={name:"PFX",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:!1,capture:"version"},a,{name:"PFX.macData",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:t.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},i={name:"SafeBag",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:t.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:t.Class.UNIVERSAL,type:t.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},o={name:"Attribute",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:t.Class.UNIVERSAL,type:t.Type.SET,constructed:!0,capture:"values"}]},f={name:"CertBag",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:t.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:t.Class.UNIVERSAL,type:t.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function u(m,h,s,y){for(var C=[],w=0;w=0&&C.push(x)}}return C}r.pkcs12FromAsn1=function(m,h,s){typeof h=="string"?(s=h,h=!0):h===void 0&&(h=!0);var y={},C=[];if(!t.validate(m,l,y,C)){var w=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw w.errors=w,w}var T={version:y.version.charCodeAt(0),safeContents:[],getBags:function(V){var q={},Q;return"localKeyId"in V?Q=V.localKeyId:"localKeyIdHex"in V&&(Q=e.util.hexToBytes(V.localKeyIdHex)),Q===void 0&&!("friendlyName"in V)&&"bagType"in V&&(q[V.bagType]=u(T.safeContents,null,null,V.bagType)),Q!==void 0&&(q.localKeyId=u(T.safeContents,"localKeyId",Q,V.bagType)),"friendlyName"in V&&(q.friendlyName=u(T.safeContents,"friendlyName",V.friendlyName,V.bagType)),q},getBagsByFriendlyName:function(V,q){return u(T.safeContents,"friendlyName",V,q)},getBagsByLocalKeyId:function(V,q){return u(T.safeContents,"localKeyId",V,q)}};if(y.version.charCodeAt(0)!==3){var w=new Error("PKCS#12 PFX of version other than 3 not supported.");throw w.version=y.version.charCodeAt(0),w}if(t.derToOid(y.contentType)!==n.oids.data){var w=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw w.oid=t.derToOid(y.contentType),w}var x=y.content.value[0];if(x.tagClass!==t.Class.UNIVERSAL||x.type!==t.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(x=p(x),y.mac){var c=null,d=0,A=t.derToOid(y.macAlgorithm);switch(A){case n.oids.sha1:c=e.md.sha1.create(),d=20;break;case n.oids.sha256:c=e.md.sha256.create(),d=32;break;case n.oids.sha384:c=e.md.sha384.create(),d=48;break;case n.oids.sha512:c=e.md.sha512.create(),d=64;break;case n.oids.md5:c=e.md.md5.create(),d=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+A);var B=new e.util.ByteBuffer(y.macSalt),O="macIterations"in y?parseInt(e.util.bytesToHex(y.macIterations),16):1,_=r.generateKey(s,B,3,O,d,c),k=e.hmac.create();k.start(c,_),k.update(x.value);var M=k.getMac();if(M.getBytes()!==y.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return S(T,x.value,h,s),T};function p(m){if(m.composed||m.constructed){for(var h=e.util.createBuffer(),s=0;s0&&(w=t.create(t.Class.UNIVERSAL,t.Type.SET,!0,c));var d=[],A=[];h!==null&&(e.util.isArray(h)?A=h:A=[h]);for(var B=[],O=0;O0){var V=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,B),q=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.data).getBytes()),t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,t.toDer(V).getBytes())])]);d.push(q)}var Q=null;if(m!==null){var X=n.wrapRsaPrivateKey(n.privateKeyToAsn1(m));s===null?Q=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.keyBag).getBytes()),t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[X]),w]):Q=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.pkcs8ShroudedKeyBag).getBytes()),t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[n.encryptPrivateKeyInfo(X,s,y)]),w]);var K=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[Q]),j=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.data).getBytes()),t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,t.toDer(K).getBytes())])]);d.push(j)}var Z=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,d),G;if(y.useMac){var x=e.md.sha1.create(),se=new e.util.ByteBuffer(e.random.getBytes(y.saltSize)),J=y.count,m=r.generateKey(s,se,3,J,20),he=e.hmac.create();he.start(x,m),he.update(t.toDer(Z).getBytes());var re=he.getMac();G=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.sha1).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,!1,"")]),t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,re.getBytes())]),t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,se.getBytes()),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,!1,t.integerToDer(J).getBytes())])}return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,!1,t.integerToDer(3).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(n.oids.data).getBytes()),t.create(t.Class.CONTEXT_SPECIFIC,0,!0,[t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,!1,t.toDer(Z).getBytes())])]),G])},r.generateKey=e.pbe.generatePkcs12Key,Do.exports}var Ru;function sf(){if(Ru)return wo.exports;Ru=1;var e=Xe();fn(),Hn(),rf(),lr(),ml(),lf(),yl(),Da(),Je(),bl();var t=e.asn1,n=wo.exports=e.pki=e.pki||{};return n.pemToDer=function(r){var a=e.pem.decode(r)[0];if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return e.util.createBuffer(a.body)},n.privateKeyFromPem=function(r){var a=e.pem.decode(r)[0];if(a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var l=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw l.headerType=a.type,l}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var i=t.fromDer(a.body);return n.privateKeyFromAsn1(i)},n.privateKeyToPem=function(r,a){var l={type:"RSA PRIVATE KEY",body:t.toDer(n.privateKeyToAsn1(r)).getBytes()};return e.pem.encode(l,{maxline:a})},n.privateKeyInfoToPem=function(r,a){var l={type:"PRIVATE KEY",body:t.toDer(r).getBytes()};return e.pem.encode(l,{maxline:a})},wo.exports}var Uo,_u;function uf(){if(_u)return Uo;_u=1;var e=Xe();fn(),Rr(),gl(),lr(),sf(),on(),_r(),Je();var t=function(I,R,$,E){var N=e.util.createBuffer(),W=I.length>>1,z=W+(I.length&1),Y=I.substr(0,z),de=I.substr(W,z),oe=e.util.createBuffer(),ee=e.hmac.create();$=R+$;var pe=Math.ceil(E/16),Te=Math.ceil(E/20);ee.start("MD5",Y);var Ie=e.util.createBuffer();oe.putBytes($);for(var xe=0;xe0&&(o.queue(I,o.createAlert(I,{level:o.Alert.Level.warning,description:o.Alert.Description.no_renegotiation})),o.flush(I)),I.process()},o.parseHelloMessage=function(I,R,$){var E=null,N=I.entity===o.ConnectionEnd.client;if($<38)I.error(I,{message:N?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});else{var W=R.fragment,z=W.length();if(E={version:{major:W.getByte(),minor:W.getByte()},random:e.util.createBuffer(W.getBytes(32)),session_id:l(W,1),extensions:[]},N?(E.cipher_suite=W.getBytes(2),E.compression_method=W.getByte()):(E.cipher_suites=l(W,2),E.compression_methods=l(W,1)),z=$-(z-W.length()),z>0){for(var Y=l(W,2);Y.length()>0;)E.extensions.push({type:[Y.getByte(),Y.getByte()],data:l(Y,2)});if(!N)for(var de=0;de0;){var pe=ee.getByte();if(pe!==0)break;I.session.extensions.server_name.serverNameList.push(l(ee,2).getBytes())}}}if(I.session.version&&(E.version.major!==I.session.version.major||E.version.minor!==I.session.version.minor))return I.error(I,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}});if(N)I.session.cipherSuite=o.getCipherSuite(E.cipher_suite);else for(var Te=e.util.createBuffer(E.cipher_suites.bytes());Te.length()>0&&(I.session.cipherSuite=o.getCipherSuite(Te.getBytes(2)),I.session.cipherSuite===null););if(I.session.cipherSuite===null)return I.error(I,{message:"No cipher suites in common.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.handshake_failure},cipherSuite:e.util.bytesToHex(E.cipher_suite)});N?I.session.compressionMethod=E.compression_method:I.session.compressionMethod=o.CompressionMethod.none}return E},o.createSecurityParameters=function(I,R){var $=I.entity===o.ConnectionEnd.client,E=R.random.bytes(),N=$?I.session.sp.client_random:E,W=$?E:o.createRandom().getBytes();I.session.sp={entity:I.entity,prf_algorithm:o.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:I.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:N,server_random:W}},o.handleServerHello=function(I,R,$){var E=o.parseHelloMessage(I,R,$);if(!I.fail){if(E.version.minor<=I.version.minor)I.version.minor=E.version.minor;else return I.error(I,{message:"Incompatible TLS version.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}});I.session.version=I.version;var N=E.session_id.bytes();N.length>0&&N===I.session.id?(I.expect=g,I.session.resuming=!0,I.session.sp.server_random=E.random.bytes()):(I.expect=u,I.session.resuming=!1,o.createSecurityParameters(I,E)),I.session.id=N,I.process()}},o.handleClientHello=function(I,R,$){var E=o.parseHelloMessage(I,R,$);if(!I.fail){var N=E.session_id.bytes(),W=null;if(I.sessionCache&&(W=I.sessionCache.getSession(N),W===null?N="":(W.version.major!==E.version.major||W.version.minor>E.version.minor)&&(W=null,N="")),N.length===0&&(N=e.random.getBytes(32)),I.session.id=N,I.session.clientHelloVersion=E.version,I.session.sp={},W)I.version=I.session.version=W.version,I.session.sp=W.sp;else{for(var z,Y=1;Y0;)W=l(N.certificate_list,3),z=e.asn1.fromDer(W),W=e.pki.certificateFromAsn1(z,!0),Y.push(W)}catch(oe){return I.error(I,{message:"Could not parse certificate list.",cause:oe,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.bad_certificate}})}var de=I.entity===o.ConnectionEnd.client;(de||I.verifyClient===!0)&&Y.length===0?I.error(I,{message:de?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}}):Y.length===0?I.expect=de?p:C:(de?I.session.serverCertificate=Y[0]:I.session.clientCertificate=Y[0],o.verifyCertificateChain(I,Y)&&(I.expect=de?p:C)),I.process()},o.handleServerKeyExchange=function(I,R,$){if($>0)return I.error(I,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.unsupported_certificate}});I.expect=S,I.process()},o.handleClientKeyExchange=function(I,R,$){if($<48)return I.error(I,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.unsupported_certificate}});var E=R.fragment,N={enc_pre_master_secret:l(E,2).getBytes()},W=null;if(I.getPrivateKey)try{W=I.getPrivateKey(I,I.session.serverCertificate),W=e.pki.privateKeyFromPem(W)}catch(de){I.error(I,{message:"Could not get private key.",cause:de,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}})}if(W===null)return I.error(I,{message:"No private key set.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}});try{var z=I.session.sp;z.pre_master_secret=W.decrypt(N.enc_pre_master_secret);var Y=I.session.clientHelloVersion;if(Y.major!==z.pre_master_secret.charCodeAt(0)||Y.minor!==z.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{z.pre_master_secret=e.random.getBytes(48)}I.expect=T,I.session.clientCertificate!==null&&(I.expect=w),I.process()},o.handleCertificateRequest=function(I,R,$){if($<3)return I.error(I,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var E=R.fragment,N={certificate_types:l(E,1),certificate_authorities:l(E,2)};I.session.certificateRequest=N,I.expect=b,I.process()},o.handleCertificateVerify=function(I,R,$){if($<2)return I.error(I,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var E=R.fragment;E.read-=4;var N=E.bytes();E.read+=4;var W={signature:l(E,2).getBytes()},z=e.util.createBuffer();z.putBuffer(I.session.md5.digest()),z.putBuffer(I.session.sha1.digest()),z=z.getBytes();try{var Y=I.session.clientCertificate;if(!Y.publicKey.verify(z,W.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");I.session.md5.update(N),I.session.sha1.update(N)}catch{return I.error(I,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.handshake_failure}})}I.expect=T,I.process()},o.handleServerHelloDone=function(I,R,$){if($>0)return I.error(I,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.record_overflow}});if(I.serverCertificate===null){var E={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.insufficient_security}},N=0,W=I.verify(I,E.alert.description,N,[]);if(W!==!0)return(W||W===0)&&(typeof W=="object"&&!e.util.isArray(W)?(W.message&&(E.message=W.message),W.alert&&(E.alert.description=W.alert)):typeof W=="number"&&(E.alert.description=W)),I.error(I,E)}I.session.certificateRequest!==null&&(R=o.createRecord(I,{type:o.ContentType.handshake,data:o.createCertificate(I)}),o.queue(I,R)),R=o.createRecord(I,{type:o.ContentType.handshake,data:o.createClientKeyExchange(I)}),o.queue(I,R),I.expect=h;var z=function(Y,de){Y.session.certificateRequest!==null&&Y.session.clientCertificate!==null&&o.queue(Y,o.createRecord(Y,{type:o.ContentType.handshake,data:o.createCertificateVerify(Y,de)})),o.queue(Y,o.createRecord(Y,{type:o.ContentType.change_cipher_spec,data:o.createChangeCipherSpec()})),Y.state.pending=o.createConnectionState(Y),Y.state.current.write=Y.state.pending.write,o.queue(Y,o.createRecord(Y,{type:o.ContentType.handshake,data:o.createFinished(Y)})),Y.expect=g,o.flush(Y),Y.process()};if(I.session.certificateRequest===null||I.session.clientCertificate===null)return z(I,null);o.getClientSignature(I,z)},o.handleChangeCipherSpec=function(I,R){if(R.fragment.getByte()!==1)return I.error(I,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var $=I.entity===o.ConnectionEnd.client;(I.session.resuming&&$||!I.session.resuming&&!$)&&(I.state.pending=o.createConnectionState(I)),I.state.current.read=I.state.pending.read,(!I.session.resuming&&$||I.session.resuming&&!$)&&(I.state.pending=null),I.expect=$?v:x,I.process()},o.handleFinished=function(I,R,$){var E=R.fragment;E.read-=4;var N=E.bytes();E.read+=4;var W=R.fragment.getBytes();E=e.util.createBuffer(),E.putBuffer(I.session.md5.digest()),E.putBuffer(I.session.sha1.digest());var z=I.entity===o.ConnectionEnd.client,Y=z?"server finished":"client finished",de=I.session.sp,oe=12,ee=t;if(E=ee(de.master_secret,Y,E.getBytes(),oe),E.getBytes()!==W)return I.error(I,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.decrypt_error}});I.session.md5.update(N),I.session.sha1.update(N),(I.session.resuming&&z||!I.session.resuming&&!z)&&(o.queue(I,o.createRecord(I,{type:o.ContentType.change_cipher_spec,data:o.createChangeCipherSpec()})),I.state.current.write=I.state.pending.write,I.state.pending=null,o.queue(I,o.createRecord(I,{type:o.ContentType.handshake,data:o.createFinished(I)}))),I.expect=z?m:c,I.handshaking=!1,++I.handshakes,I.peerCertificate=z?I.session.serverCertificate:I.session.clientCertificate,o.flush(I),I.isConnected=!0,I.connected(I),I.process()},o.handleAlert=function(I,R){var $=R.fragment,E={level:$.getByte(),description:$.getByte()},N;switch(E.description){case o.Alert.Description.close_notify:N="Connection closed.";break;case o.Alert.Description.unexpected_message:N="Unexpected message.";break;case o.Alert.Description.bad_record_mac:N="Bad record MAC.";break;case o.Alert.Description.decryption_failed:N="Decryption failed.";break;case o.Alert.Description.record_overflow:N="Record overflow.";break;case o.Alert.Description.decompression_failure:N="Decompression failed.";break;case o.Alert.Description.handshake_failure:N="Handshake failure.";break;case o.Alert.Description.bad_certificate:N="Bad certificate.";break;case o.Alert.Description.unsupported_certificate:N="Unsupported certificate.";break;case o.Alert.Description.certificate_revoked:N="Certificate revoked.";break;case o.Alert.Description.certificate_expired:N="Certificate expired.";break;case o.Alert.Description.certificate_unknown:N="Certificate unknown.";break;case o.Alert.Description.illegal_parameter:N="Illegal parameter.";break;case o.Alert.Description.unknown_ca:N="Unknown certificate authority.";break;case o.Alert.Description.access_denied:N="Access denied.";break;case o.Alert.Description.decode_error:N="Decode error.";break;case o.Alert.Description.decrypt_error:N="Decrypt error.";break;case o.Alert.Description.export_restriction:N="Export restriction.";break;case o.Alert.Description.protocol_version:N="Unsupported protocol version.";break;case o.Alert.Description.insufficient_security:N="Insufficient security.";break;case o.Alert.Description.internal_error:N="Internal error.";break;case o.Alert.Description.user_canceled:N="User canceled.";break;case o.Alert.Description.no_renegotiation:N="Renegotiation not supported.";break;default:N="Unknown error.";break}if(E.description===o.Alert.Description.close_notify)return I.close();I.error(I,{message:N,send:!1,origin:I.entity===o.ConnectionEnd.client?"server":"client",alert:E}),I.process()},o.handleHandshake=function(I,R){var $=R.fragment,E=$.getByte(),N=$.getInt24();if(N>$.length())return I.fragmented=R,R.fragment=e.util.createBuffer(),$.read-=4,I.process();I.fragmented=null,$.read-=4;var W=$.bytes(N+4);$.read+=4,E in G[I.entity][I.expect]?(I.entity===o.ConnectionEnd.server&&!I.open&&!I.fail&&(I.handshaking=!0,I.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:e.md.md5.create(),sha1:e.md.sha1.create()}),E!==o.HandshakeType.hello_request&&E!==o.HandshakeType.certificate_verify&&E!==o.HandshakeType.finished&&(I.session.md5.update(W),I.session.sha1.update(W)),G[I.entity][I.expect][E](I,R,N)):o.handleUnexpected(I,R)},o.handleApplicationData=function(I,R){I.data.putBuffer(R.fragment),I.dataReady(I),I.process()},o.handleHeartbeat=function(I,R){var $=R.fragment,E=$.getByte(),N=$.getInt16(),W=$.getBytes(N);if(E===o.HeartbeatMessageType.heartbeat_request){if(I.handshaking||N>W.length)return I.process();o.queue(I,o.createRecord(I,{type:o.ContentType.heartbeat,data:o.createHeartbeat(o.HeartbeatMessageType.heartbeat_response,W)})),o.flush(I)}else if(E===o.HeartbeatMessageType.heartbeat_response){if(W!==I.expectedHeartbeatPayload)return I.process();I.heartbeatReceived&&I.heartbeatReceived(I,e.util.createBuffer(W))}I.process()};var f=0,u=1,p=2,S=3,b=4,g=5,v=6,m=7,h=8,s=0,y=1,C=2,w=3,T=4,x=5,c=6,d=o.handleUnexpected,A=o.handleChangeCipherSpec,B=o.handleAlert,O=o.handleHandshake,_=o.handleApplicationData,k=o.handleHeartbeat,M=[];M[o.ConnectionEnd.client]=[[d,B,O,d,k],[d,B,O,d,k],[d,B,O,d,k],[d,B,O,d,k],[d,B,O,d,k],[A,B,d,d,k],[d,B,O,d,k],[d,B,O,_,k],[d,B,O,d,k]],M[o.ConnectionEnd.server]=[[d,B,O,d,k],[d,B,O,d,k],[d,B,O,d,k],[d,B,O,d,k],[A,B,d,d,k],[d,B,O,d,k],[d,B,O,_,k],[d,B,O,d,k]];var V=o.handleHelloRequest,q=o.handleServerHello,Q=o.handleCertificate,X=o.handleServerKeyExchange,K=o.handleCertificateRequest,j=o.handleServerHelloDone,Z=o.handleFinished,G=[];G[o.ConnectionEnd.client]=[[d,d,q,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,Q,X,K,j,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,X,K,j,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,d,K,j,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,d,d,j,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,Z],[V,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[V,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d]];var se=o.handleClientHello,J=o.handleClientKeyExchange,he=o.handleCertificateVerify;G[o.ConnectionEnd.server]=[[d,se,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,Q,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,J,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,he,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,Z],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d]],o.generateKeys=function(I,R){var $=t,E=R.client_random+R.server_random;I.session.resuming||(R.master_secret=$(R.pre_master_secret,"master secret",E,48).bytes(),R.pre_master_secret=null),E=R.server_random+R.client_random;var N=2*R.mac_key_length+2*R.enc_key_length,W=I.version.major===o.Versions.TLS_1_0.major&&I.version.minor===o.Versions.TLS_1_0.minor;W&&(N+=2*R.fixed_iv_length);var z=$(R.master_secret,"key expansion",E,N),Y={client_write_MAC_key:z.getBytes(R.mac_key_length),server_write_MAC_key:z.getBytes(R.mac_key_length),client_write_key:z.getBytes(R.enc_key_length),server_write_key:z.getBytes(R.enc_key_length)};return W&&(Y.client_write_IV=z.getBytes(R.fixed_iv_length),Y.server_write_IV=z.getBytes(R.fixed_iv_length)),Y},o.createConnectionState=function(I){var R=I.entity===o.ConnectionEnd.client,$=function(){var W={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(z){return!0},compressionState:null,compressFunction:function(z){return!0},updateSequenceNumber:function(){W.sequenceNumber[1]===4294967295?(W.sequenceNumber[1]=0,++W.sequenceNumber[0]):++W.sequenceNumber[1]}};return W},E={read:$(),write:$()};if(E.read.update=function(W,z){return E.read.cipherFunction(z,E.read)?E.read.compressFunction(W,z,E.read)||W.error(W,{message:"Could not decompress record.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.decompression_failure}}):W.error(W,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.bad_record_mac}}),!W.fail},E.write.update=function(W,z){return E.write.compressFunction(W,z,E.write)?E.write.cipherFunction(z,E.write)||W.error(W,{message:"Could not encrypt record.",send:!1,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}}):W.error(W,{message:"Could not compress record.",send:!1,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}}),!W.fail},I.session){var N=I.session.sp;switch(I.session.cipherSuite.initSecurityParameters(N),N.keys=o.generateKeys(I,N),E.read.macKey=R?N.keys.server_write_MAC_key:N.keys.client_write_MAC_key,E.write.macKey=R?N.keys.client_write_MAC_key:N.keys.server_write_MAC_key,I.session.cipherSuite.initConnectionState(E,I,N),N.compression_algorithm){case o.CompressionMethod.none:break;case o.CompressionMethod.deflate:E.read.compressFunction=a,E.write.compressFunction=r;break;default:throw new Error("Unsupported compression algorithm.")}}return E},o.createRandom=function(){var I=new Date,R=+I+I.getTimezoneOffset()*6e4,$=e.util.createBuffer();return $.putInt32(R),$.putBytes(e.random.getBytes(28)),$},o.createRecord=function(I,R){if(!R.data)return null;var $={type:R.type,version:{major:I.version.major,minor:I.version.minor},length:R.data.length(),fragment:R.data};return $},o.createAlert=function(I,R){var $=e.util.createBuffer();return $.putByte(R.level),$.putByte(R.description),o.createRecord(I,{type:o.ContentType.alert,data:$})},o.createClientHello=function(I){I.session.clientHelloVersion={major:I.version.major,minor:I.version.minor};for(var R=e.util.createBuffer(),$=0;$0&&(pe+=2);var Te=I.session.id,Ie=Te.length+1+2+4+28+2+N+1+z+pe,xe=e.util.createBuffer();return xe.putByte(o.HandshakeType.client_hello),xe.putInt24(Ie),xe.putByte(I.version.major),xe.putByte(I.version.minor),xe.putBytes(I.session.sp.client_random),i(xe,1,e.util.createBuffer(Te)),i(xe,2,R),i(xe,1,W),pe>0&&i(xe,2,Y),xe},o.createServerHello=function(I){var R=I.session.id,$=R.length+1+2+4+28+2+1,E=e.util.createBuffer();return E.putByte(o.HandshakeType.server_hello),E.putInt24($),E.putByte(I.version.major),E.putByte(I.version.minor),E.putBytes(I.session.sp.server_random),i(E,1,e.util.createBuffer(R)),E.putByte(I.session.cipherSuite.id[0]),E.putByte(I.session.cipherSuite.id[1]),E.putByte(I.session.compressionMethod),E},o.createCertificate=function(I){var R=I.entity===o.ConnectionEnd.client,$=null;if(I.getCertificate){var E;R?E=I.session.certificateRequest:E=I.session.extensions.server_name.serverNameList,$=I.getCertificate(I,E)}var N=e.util.createBuffer();if($!==null)try{e.util.isArray($)||($=[$]);for(var W=null,z=0;z<$.length;++z){var Y=e.pem.decode($[z])[0];if(Y.type!=="CERTIFICATE"&&Y.type!=="X509 CERTIFICATE"&&Y.type!=="TRUSTED CERTIFICATE"){var de=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw de.headerType=Y.type,de}if(Y.procType&&Y.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var oe=e.util.createBuffer(Y.body);W===null&&(W=e.asn1.fromDer(oe.bytes(),!1));var ee=e.util.createBuffer();i(ee,3,oe),N.putBuffer(ee)}$=e.pki.certificateFromAsn1(W),R?I.session.clientCertificate=$:I.session.serverCertificate=$}catch(Ie){return I.error(I,{message:"Could not send certificate list.",cause:Ie,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.bad_certificate}})}var pe=3+N.length(),Te=e.util.createBuffer();return Te.putByte(o.HandshakeType.certificate),Te.putInt24(pe),i(Te,3,N),Te},o.createClientKeyExchange=function(I){var R=e.util.createBuffer();R.putByte(I.session.clientHelloVersion.major),R.putByte(I.session.clientHelloVersion.minor),R.putBytes(e.random.getBytes(46));var $=I.session.sp;$.pre_master_secret=R.getBytes();var E=I.session.serverCertificate.publicKey;R=E.encrypt($.pre_master_secret);var N=R.length+2,W=e.util.createBuffer();return W.putByte(o.HandshakeType.client_key_exchange),W.putInt24(N),W.putInt16(R.length),W.putBytes(R),W},o.createServerKeyExchange=function(I){var R=e.util.createBuffer();return R},o.getClientSignature=function(I,R){var $=e.util.createBuffer();$.putBuffer(I.session.md5.digest()),$.putBuffer(I.session.sha1.digest()),$=$.getBytes(),I.getSignature=I.getSignature||function(E,N,W){var z=null;if(E.getPrivateKey)try{z=E.getPrivateKey(E,E.session.clientCertificate),z=e.pki.privateKeyFromPem(z)}catch(Y){E.error(E,{message:"Could not get private key.",cause:Y,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}})}z===null?E.error(E,{message:"No private key set.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}}):N=z.sign(N,null),W(E,N)},I.getSignature(I,$,R)},o.createCertificateVerify=function(I,R){var $=R.length+2,E=e.util.createBuffer();return E.putByte(o.HandshakeType.certificate_verify),E.putInt24($),E.putInt16(R.length),E.putBytes(R),E},o.createCertificateRequest=function(I){var R=e.util.createBuffer();R.putByte(1);var $=e.util.createBuffer();for(var E in I.caStore.certs){var N=I.caStore.certs[E],W=e.pki.distinguishedNameToAsn1(N.subject),z=e.asn1.toDer(W);$.putInt16(z.length()),$.putBuffer(z)}var Y=1+R.length()+2+$.length(),de=e.util.createBuffer();return de.putByte(o.HandshakeType.certificate_request),de.putInt24(Y),i(de,1,R),i(de,2,$),de},o.createServerHelloDone=function(I){var R=e.util.createBuffer();return R.putByte(o.HandshakeType.server_hello_done),R.putInt24(0),R},o.createChangeCipherSpec=function(){var I=e.util.createBuffer();return I.putByte(1),I},o.createFinished=function(I){var R=e.util.createBuffer();R.putBuffer(I.session.md5.digest()),R.putBuffer(I.session.sha1.digest());var $=I.entity===o.ConnectionEnd.client,E=I.session.sp,N=12,W=t,z=$?"client finished":"server finished";R=W(E.master_secret,z,R.getBytes(),N);var Y=e.util.createBuffer();return Y.putByte(o.HandshakeType.finished),Y.putInt24(R.length()),Y.putBuffer(R),Y},o.createHeartbeat=function(I,R,$){typeof $>"u"&&($=R.length);var E=e.util.createBuffer();E.putByte(I),E.putInt16($),E.putBytes(R);var N=E.length(),W=Math.max(16,N-$-3);return E.putBytes(e.random.getBytes(W)),E},o.queue=function(I,R){if(R&&!(R.fragment.length()===0&&(R.type===o.ContentType.handshake||R.type===o.ContentType.alert||R.type===o.ContentType.change_cipher_spec))){if(R.type===o.ContentType.handshake){var $=R.fragment.bytes();I.session.md5.update($),I.session.sha1.update($),$=null}var E;if(R.fragment.length()<=o.MaxFragment)E=[R];else{E=[];for(var N=R.fragment.bytes();N.length>o.MaxFragment;)E.push(o.createRecord(I,{type:R.type,data:e.util.createBuffer(N.slice(0,o.MaxFragment))})),N=N.slice(o.MaxFragment);N.length>0&&E.push(o.createRecord(I,{type:R.type,data:e.util.createBuffer(N)}))}for(var W=0;W0&&(z=$.order[0]),z!==null&&z in $.cache){W=$.cache[z],delete $.cache[z];for(var Y in $.order)if($.order[Y]===z){$.order.splice(Y,1);break}}return W},$.setSession=function(N,W){if($.order.length===$.capacity){var z=$.order.shift();delete $.cache[z]}var z=e.util.bytesToHex(N);$.order.push(z),$.cache[z]=W}}return $},o.createConnection=function(I){var R=null;I.caStore?e.util.isArray(I.caStore)?R=e.pki.createCaStore(I.caStore):R=I.caStore:R=e.pki.createCaStore();var $=I.cipherSuites||null;if($===null){$=[];for(var E in o.CipherSuites)$.push(o.CipherSuites[E])}var N=I.server?o.ConnectionEnd.server:o.ConnectionEnd.client,W=I.sessionCache?o.createSessionCache(I.sessionCache):null,z={version:{major:o.Version.major,minor:o.Version.minor},entity:N,sessionId:I.sessionId,caStore:R,sessionCache:W,cipherSuites:$,connected:I.connected,virtualHost:I.virtualHost||null,verifyClient:I.verifyClient||!1,verify:I.verify||function(ee,pe,Te,Ie){return pe},verifyOptions:I.verifyOptions||{},getCertificate:I.getCertificate||null,getPrivateKey:I.getPrivateKey||null,getSignature:I.getSignature||null,input:e.util.createBuffer(),tlsData:e.util.createBuffer(),data:e.util.createBuffer(),tlsDataReady:I.tlsDataReady,dataReady:I.dataReady,heartbeatReceived:I.heartbeatReceived,closed:I.closed,error:function(ee,pe){pe.origin=pe.origin||(ee.entity===o.ConnectionEnd.client?"client":"server"),pe.send&&(o.queue(ee,o.createAlert(ee,pe.alert)),o.flush(ee));var Te=pe.fatal!==!1;Te&&(ee.fail=!0),I.error(ee,pe),Te&&ee.close(!1)},deflate:I.deflate||null,inflate:I.inflate||null};z.reset=function(ee){z.version={major:o.Version.major,minor:o.Version.minor},z.record=null,z.session=null,z.peerCertificate=null,z.state={pending:null,current:null},z.expect=z.entity===o.ConnectionEnd.client?f:s,z.fragmented=null,z.records=[],z.open=!1,z.handshakes=0,z.handshaking=!1,z.isConnected=!1,z.fail=!(ee||typeof ee>"u"),z.input.clear(),z.tlsData.clear(),z.data.clear(),z.state.current=o.createConnectionState(z)},z.reset();var Y=function(ee,pe){var Te=pe.type-o.ContentType.change_cipher_spec,Ie=M[ee.entity][ee.expect];Te in Ie?Ie[Te](ee,pe):o.handleUnexpected(ee,pe)},de=function(ee){var pe=0,Te=ee.input,Ie=Te.length();if(Ie<5)pe=5-Ie;else{ee.record={type:Te.getByte(),version:{major:Te.getByte(),minor:Te.getByte()},length:Te.getInt16(),fragment:e.util.createBuffer(),ready:!1};var xe=ee.record.version.major===ee.version.major;xe&&ee.session&&ee.session.version&&(xe=ee.record.version.minor===ee.version.minor),xe||ee.error(ee,{message:"Incompatible TLS version.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}})}return pe},oe=function(ee){var pe=0,Te=ee.input,Ie=Te.length();if(Ie0&&(z.sessionCache&&(pe=z.sessionCache.getSession(ee)),pe===null&&(ee="")),ee.length===0&&z.sessionCache&&(pe=z.sessionCache.getSession(),pe!==null&&(ee=pe.id)),z.session={id:ee,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:e.md.md5.create(),sha1:e.md.sha1.create()},pe&&(z.version=pe.version,z.session.sp=pe.sp),z.session.sp.client_random=o.createRandom().getBytes(),z.open=!0,o.queue(z,o.createRecord(z,{type:o.ContentType.handshake,data:o.createClientHello(z)})),o.flush(z)}},z.process=function(ee){var pe=0;return ee&&z.input.putBytes(ee),z.fail||(z.record!==null&&z.record.ready&&z.record.fragment.isEmpty()&&(z.record=null),z.record===null&&(pe=de(z)),!z.fail&&z.record!==null&&!z.record.ready&&(pe=oe(z)),!z.fail&&z.record!==null&&z.record.ready&&Y(z,z.record)),pe},z.prepare=function(ee){return o.queue(z,o.createRecord(z,{type:o.ContentType.application_data,data:e.util.createBuffer(ee)})),o.flush(z)},z.prepareHeartbeatRequest=function(ee,pe){return ee instanceof e.util.ByteBuffer&&(ee=ee.bytes()),typeof pe>"u"&&(pe=ee.length),z.expectedHeartbeatPayload=ee,o.queue(z,o.createRecord(z,{type:o.ContentType.heartbeat,data:o.createHeartbeat(o.HeartbeatMessageType.heartbeat_request,ee,pe)})),o.flush(z)},z.close=function(ee){if(!z.fail&&z.sessionCache&&z.session){var pe={id:z.session.id,version:z.session.version,sp:z.session.sp};pe.sp.keys=null,z.sessionCache.setSession(pe.id,pe)}z.open&&(z.open=!1,z.input.clear(),(z.isConnected||z.handshaking)&&(z.isConnected=z.handshaking=!1,o.queue(z,o.createAlert(z,{level:o.Alert.Level.warning,description:o.Alert.Description.close_notify})),o.flush(z)),z.closed(z)),z.reset(ee)},z},Uo=e.tls=e.tls||{};for(var be in o)typeof o[be]!="function"&&(e.tls[be]=o[be]);return e.tls.prf_tls1=t,e.tls.hmac_sha1=n,e.tls.createSessionCache=o.createSessionCache,e.tls.createConnection=o.createConnection,Uo}var Ou;function dx(){if(Ou)return mo.exports;Ou=1;var e=Xe();zn(),uf();var t=mo.exports=e.tls;t.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(f){f.bulk_cipher_algorithm=t.BulkCipherAlgorithm.aes,f.cipher_type=t.CipherType.block,f.enc_key_length=16,f.block_length=16,f.fixed_iv_length=16,f.record_iv_length=16,f.mac_algorithm=t.MACAlgorithm.hmac_sha1,f.mac_length=20,f.mac_key_length=20},initConnectionState:n},t.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(f){f.bulk_cipher_algorithm=t.BulkCipherAlgorithm.aes,f.cipher_type=t.CipherType.block,f.enc_key_length=32,f.block_length=16,f.fixed_iv_length=16,f.record_iv_length=16,f.mac_algorithm=t.MACAlgorithm.hmac_sha1,f.mac_length=20,f.mac_key_length=20},initConnectionState:n};function n(f,u,p){var S=u.entity===e.tls.ConnectionEnd.client;f.read.cipherState={init:!1,cipher:e.cipher.createDecipher("AES-CBC",S?p.keys.server_write_key:p.keys.client_write_key),iv:S?p.keys.server_write_IV:p.keys.client_write_IV},f.write.cipherState={init:!1,cipher:e.cipher.createCipher("AES-CBC",S?p.keys.client_write_key:p.keys.server_write_key),iv:S?p.keys.client_write_IV:p.keys.server_write_IV},f.read.cipherFunction=i,f.write.cipherFunction=r,f.read.macLength=f.write.macLength=p.mac_length,f.read.macFunction=f.write.macFunction=t.hmac_sha1}function r(f,u){var p=!1,S=u.macFunction(u.macKey,u.sequenceNumber,f);f.fragment.putBytes(S),u.updateSequenceNumber();var b;f.version.minor===t.Versions.TLS_1_0.minor?b=u.cipherState.init?null:u.cipherState.iv:b=e.random.getBytesSync(16),u.cipherState.init=!0;var g=u.cipherState.cipher;return g.start({iv:b}),f.version.minor>=t.Versions.TLS_1_1.minor&&g.output.putBytes(b),g.update(f.fragment),g.finish(a)&&(f.fragment=g.output,f.length=f.fragment.length(),p=!0),p}function a(f,u,p){if(!p){var S=f-u.length()%f;u.fillWithByte(S-1,S)}return!0}function l(f,u,p){var S=!0;if(p){for(var b=u.length(),g=u.last(),v=b-1-g;v=g?(f.fragment=b.output.getBytes(m-g),v=b.output.getBytes(g)):f.fragment=b.output.getBytes(),f.fragment=e.util.createBuffer(f.fragment),f.length=f.fragment.length();var h=u.macFunction(u.macKey,u.sequenceNumber,f);return u.updateSequenceNumber(),p=o(u.macKey,v,h)&&p,p}function o(f,u,p){var S=e.hmac.create();return S.start("SHA1",f),S.update(u),u=S.digest().getBytes(),S.start(null,null),S.update(p),p=S.digest().getBytes(),u===p}return mo.exports}var Vo={exports:{}},Nu;function cf(){if(Nu)return Vo.exports;Nu=1;var e=Xe();En(),Je();var t=Vo.exports=e.sha512=e.sha512||{};e.md.sha512=e.md.algorithms.sha512=t;var n=e.sha384=e.sha512.sha384=e.sha512.sha384||{};n.create=function(){return t.create("SHA-384")},e.md.sha384=e.md.algorithms.sha384=n,e.sha512.sha256=e.sha512.sha256||{create:function(){return t.create("SHA-512/256")}},e.md["sha512/256"]=e.md.algorithms["sha512/256"]=e.sha512.sha256,e.sha512.sha224=e.sha512.sha224||{create:function(){return t.create("SHA-512/224")}},e.md["sha512/224"]=e.md.algorithms["sha512/224"]=e.sha512.sha224,t.create=function(u){if(a||o(),typeof u>"u"&&(u="SHA-512"),!(u in i))throw new Error("Invalid SHA-512 algorithm: "+u);for(var p=i[u],S=null,b=e.util.createBuffer(),g=new Array(80),v=0;v<80;++v)g[v]=new Array(2);var m=64;switch(u){case"SHA-384":m=48;break;case"SHA-512/256":m=32;break;case"SHA-512/224":m=28;break}var h={algorithm:u.replace("-","").toLowerCase(),blockLength:128,digestLength:m,messageLength:0,fullMessageLength:null,messageLengthSize:16};return h.start=function(){h.messageLength=0,h.fullMessageLength=h.messageLength128=[];for(var s=h.messageLengthSize/4,y=0;y>>0,C>>>0];for(var w=h.fullMessageLength.length-1;w>=0;--w)h.fullMessageLength[w]+=C[1],C[1]=C[0]+(h.fullMessageLength[w]/4294967296>>>0),h.fullMessageLength[w]=h.fullMessageLength[w]>>>0,C[0]=C[1]/4294967296>>>0;return b.putBytes(s),f(S,g,b),(b.read>2048||b.length()===0)&&b.compact(),h},h.digest=function(){var s=e.util.createBuffer();s.putBytes(b.bytes());var y=h.fullMessageLength[h.fullMessageLength.length-1]+h.messageLengthSize,C=y&h.blockLength-1;s.putBytes(r.substr(0,h.blockLength-C));for(var w,T,x=h.fullMessageLength[0]*8,c=0;c>>0,x+=T,s.putInt32(x>>>0),x=w>>>0;s.putInt32(x);for(var d=new Array(S.length),c=0;c=128;){for(J=0;J<16;++J)p[J][0]=S.getInt32()>>>0,p[J][1]=S.getInt32()>>>0;for(;J<80;++J)_e=p[J-2],he=_e[0],re=_e[1],b=((he>>>19|re<<13)^(re>>>29|he<<3)^he>>>6)>>>0,g=((he<<13|re>>>19)^(re<<3|he>>>29)^(he<<26|re>>>6))>>>0,I=p[J-15],he=I[0],re=I[1],v=((he>>>1|re<<31)^(he>>>8|re<<24)^he>>>7)>>>0,m=((he<<31|re>>>1)^(he<<24|re>>>8)^(he<<25|re>>>7))>>>0,be=p[J-7],R=p[J-16],re=g+be[1]+m+R[1],p[J][0]=b+be[0]+v+R[0]+(re/4294967296>>>0)>>>0,p[J][1]=re>>>0;for(d=u[0][0],A=u[0][1],B=u[1][0],O=u[1][1],_=u[2][0],k=u[2][1],M=u[3][0],V=u[3][1],q=u[4][0],Q=u[4][1],X=u[5][0],K=u[5][1],j=u[6][0],Z=u[6][1],G=u[7][0],se=u[7][1],J=0;J<80;++J)y=((q>>>14|Q<<18)^(q>>>18|Q<<14)^(Q>>>9|q<<23))>>>0,C=((q<<18|Q>>>14)^(q<<14|Q>>>18)^(Q<<23|q>>>9))>>>0,w=(j^q&(X^j))>>>0,T=(Z^Q&(K^Z))>>>0,h=((d>>>28|A<<4)^(A>>>2|d<<30)^(A>>>7|d<<25))>>>0,s=((d<<4|A>>>28)^(A<<30|d>>>2)^(A<<25|d>>>7))>>>0,x=(d&B|_&(d^B))>>>0,c=(A&O|k&(A^O))>>>0,re=se+C+T+l[J][1]+p[J][1],b=G+y+w+l[J][0]+p[J][0]+(re/4294967296>>>0)>>>0,g=re>>>0,re=s+c,v=h+x+(re/4294967296>>>0)>>>0,m=re>>>0,G=j,se=Z,j=X,Z=K,X=q,K=Q,re=V+g,q=M+b+(re/4294967296>>>0)>>>0,Q=re>>>0,M=_,V=k,_=B,k=O,B=d,O=A,re=g+m,d=b+v+(re/4294967296>>>0)>>>0,A=re>>>0;re=u[0][1]+A,u[0][0]=u[0][0]+d+(re/4294967296>>>0)>>>0,u[0][1]=re>>>0,re=u[1][1]+O,u[1][0]=u[1][0]+B+(re/4294967296>>>0)>>>0,u[1][1]=re>>>0,re=u[2][1]+k,u[2][0]=u[2][0]+_+(re/4294967296>>>0)>>>0,u[2][1]=re>>>0,re=u[3][1]+V,u[3][0]=u[3][0]+M+(re/4294967296>>>0)>>>0,u[3][1]=re>>>0,re=u[4][1]+Q,u[4][0]=u[4][0]+q+(re/4294967296>>>0)>>>0,u[4][1]=re>>>0,re=u[5][1]+K,u[5][0]=u[5][0]+X+(re/4294967296>>>0)>>>0,u[5][1]=re>>>0,re=u[6][1]+Z,u[6][0]=u[6][0]+j+(re/4294967296>>>0)>>>0,u[6][1]=re>>>0,re=u[7][1]+se,u[7][0]=u[7][0]+G+(re/4294967296>>>0)>>>0,u[7][1]=re>>>0,$-=128}}return Vo.exports}var Mr={},Pu;function fx(){if(Pu)return Mr;Pu=1;var e=Xe();fn();var t=e.asn1;return Mr.privateKeyValidator={name:"PrivateKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Mr.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]},Mr}var zo,Du;function px(){if(Du)return zo;Du=1;var e=Xe();Pa(),on(),cf(),Je();var t=fx(),n=t.publicKeyValidator,r=t.privateKeyValidator;if(typeof a>"u")var a=e.jsbn.BigInteger;var l=e.util.ByteBuffer,i=typeof Buffer>"u"?Uint8Array:Buffer;e.pki=e.pki||{},zo=e.pki.ed25519=e.ed25519=e.ed25519||{};var o=e.ed25519;o.constants={},o.constants.PUBLIC_KEY_BYTE_LENGTH=32,o.constants.PRIVATE_KEY_BYTE_LENGTH=64,o.constants.SEED_BYTE_LENGTH=32,o.constants.SIGN_BYTE_LENGTH=64,o.constants.HASH_BYTE_LENGTH=64,o.generateKeyPair=function(I){I=I||{};var R=I.seed;if(R===void 0)R=e.random.getBytesSync(o.constants.SEED_BYTE_LENGTH);else if(typeof R=="string"){if(R.length!==o.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+o.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(R instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');R=f({message:R,encoding:"binary"});for(var $=new i(o.constants.PUBLIC_KEY_BYTE_LENGTH),E=new i(o.constants.PRIVATE_KEY_BYTE_LENGTH),N=0;N<32;++N)E[N]=R[N];return y($,E),{publicKey:$,privateKey:E}},o.privateKeyFromAsn1=function(I){var R={},$=[],E=e.asn1.validate(I,r,R,$);if(!E){var N=new Error("Invalid Key.");throw N.errors=$,N}var W=e.asn1.derToOid(R.privateKeyOid),z=e.oids.EdDSA25519;if(W!==z)throw new Error('Invalid OID "'+W+'"; OID must be "'+z+'".');var Y=R.privateKey,de=f({message:e.asn1.fromDer(Y).value,encoding:"binary"});return{privateKeyBytes:de}},o.publicKeyFromAsn1=function(I){var R={},$=[],E=e.asn1.validate(I,n,R,$);if(!E){var N=new Error("Invalid Key.");throw N.errors=$,N}var W=e.asn1.derToOid(R.publicKeyOid),z=e.oids.EdDSA25519;if(W!==z)throw new Error('Invalid OID "'+W+'"; OID must be "'+z+'".');var Y=R.ed25519PublicKey;if(Y.length!==o.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return f({message:Y,encoding:"binary"})},o.publicKeyFromPrivateKey=function(I){I=I||{};var R=f({message:I.privateKey,encoding:"binary"});if(R.length!==o.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+o.constants.PRIVATE_KEY_BYTE_LENGTH);for(var $=new i(o.constants.PUBLIC_KEY_BYTE_LENGTH),E=0;E<$.length;++E)$[E]=R[32+E];return $},o.sign=function(I){I=I||{};var R=f(I),$=f({message:I.privateKey,encoding:"binary"});if($.length===o.constants.SEED_BYTE_LENGTH){var E=o.generateKeyPair({seed:$});$=E.privateKey}else if($.length!==o.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+o.constants.SEED_BYTE_LENGTH+" or "+o.constants.PRIVATE_KEY_BYTE_LENGTH);var N=new i(o.constants.SIGN_BYTE_LENGTH+R.length);C(N,R,R.length,$);for(var W=new i(o.constants.SIGN_BYTE_LENGTH),z=0;z=0};function f(I){var R=I.message;if(R instanceof Uint8Array||R instanceof i)return R;var $=I.encoding;if(R===void 0)if(I.md)R=I.md.digest().getBytes(),$="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof R=="string"&&!$)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof R=="string"){if(typeof Buffer<"u")return Buffer.from(R,$);R=new l(R,$)}else if(!(R instanceof l))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var E=new i(R.length()),N=0;N=32;--E){for($=0,N=E-32,W=E-12;N>8,R[N]-=$*256;R[N]+=$,R[E]=0}for($=0,N=0;N<32;++N)R[N]+=$-(R[31]>>4)*m[N],$=R[N]>>8,R[N]&=255;for(N=0;N<32;++N)R[N]-=$*m[N];for(E=0;E<32;++E)R[E+1]+=R[E]>>8,I[E]=R[E]&255}function x(I){for(var R=new Float64Array(64),$=0;$<64;++$)R[$]=I[$],I[$]=0;T(I,R)}function c(I,R){var $=J(),E=J(),N=J(),W=J(),z=J(),Y=J(),de=J(),oe=J(),ee=J();re($,I[1],I[0]),re(ee,R[1],R[0]),be($,$,ee),he(E,I[0],I[1]),he(ee,R[0],R[1]),be(E,E,ee),be(N,I[3],R[3]),be(N,N,b),be(W,I[2],R[2]),he(W,W,W),re(z,E,$),re(Y,W,N),he(de,W,N),he(oe,E,$),be(I[0],z,Y),be(I[1],oe,de),be(I[2],de,Y),be(I[3],z,oe)}function d(I,R,$){for(var E=0;E<4;++E)se(I[E],R[E],$)}function A(I,R){var $=J(),E=J(),N=J();Z(N,R[2]),be($,R[0],N),be(E,R[1],N),B(I,E),I[31]^=Q($)<<7}function B(I,R){var $,E,N,W=J(),z=J();for($=0;$<16;++$)z[$]=R[$];for(G(z),G(z),G(z),E=0;E<2;++E){for(W[0]=z[0]-65517,$=1;$<15;++$)W[$]=z[$]-65535-(W[$-1]>>16&1),W[$-1]&=65535;W[15]=z[15]-32767-(W[14]>>16&1),N=W[15]>>16&1,W[14]&=65535,se(z,W,1-N)}for($=0;$<16;$++)I[2*$]=z[$]&255,I[2*$+1]=z[$]>>8}function O(I,R){var $=J(),E=J(),N=J(),W=J(),z=J(),Y=J(),de=J();return j(I[2],p),_(I[1],R),_e(N,I[1]),be(W,N,S),re(N,N,I[2]),he(W,I[2],W),_e(z,W),_e(Y,z),be(de,Y,z),be($,de,N),be($,$,W),k($,$),be($,$,N),be($,$,W),be($,$,W),be(I[0],$,W),_e(E,I[0]),be(E,E,W),M(E,N)&&be(I[0],I[0],h),_e(E,I[0]),be(E,E,W),M(E,N)?-1:(Q(I[0])===R[31]>>7&&re(I[0],u,I[0]),be(I[3],I[0],I[1]),0)}function _(I,R){var $;for($=0;$<16;++$)I[$]=R[2*$]+(R[2*$+1]<<8);I[15]&=32767}function k(I,R){var $=J(),E;for(E=0;E<16;++E)$[E]=R[E];for(E=250;E>=0;--E)_e($,$),E!==1&&be($,$,R);for(E=0;E<16;++E)I[E]=$[E]}function M(I,R){var $=new i(32),E=new i(32);return B($,I),B(E,R),V($,0,E,0)}function V(I,R,$,E){return q(I,R,$,E,32)}function q(I,R,$,E,N){var W,z=0;for(W=0;W>>8)-1}function Q(I){var R=new i(32);return B(R,I),R[0]&1}function X(I,R,$){var E,N;for(j(I[0],u),j(I[1],p),j(I[2],p),j(I[3],u),N=255;N>=0;--N)E=$[N/8|0]>>(N&7)&1,d(I,R,E),c(R,I),c(I,I),d(I,R,E)}function K(I,R){var $=[J(),J(),J(),J()];j($[0],g),j($[1],v),j($[2],p),be($[3],g,v),X(I,$,R)}function j(I,R){var $;for($=0;$<16;$++)I[$]=R[$]|0}function Z(I,R){var $=J(),E;for(E=0;E<16;++E)$[E]=R[E];for(E=253;E>=0;--E)_e($,$),E!==2&&E!==4&&be($,$,R);for(E=0;E<16;++E)I[E]=$[E]}function G(I){var R,$,E=1;for(R=0;R<16;++R)$=I[R]+E+65535,E=Math.floor($/65536),I[R]=$-E*65536;I[0]+=E-1+37*(E-1)}function se(I,R,$){for(var E,N=~($-1),W=0;W<16;++W)E=N&(I[W]^R[W]),I[W]^=E,R[W]^=E}function J(I){var R,$=new Float64Array(16);if(I)for(R=0;R0&&(p=e.util.fillString("\0",S)+p);var b=o.encrypt(p,"NONE"),g=r.generate(p,f);return{encapsulation:b,key:g}},i.decrypt=function(o,f,u){var p=o.decrypt(f,"NONE");return r.generate(p,u)},i},e.kem.kdf1=function(r,a){n(this,r,0,a||r.digestLength)},e.kem.kdf2=function(r,a){n(this,r,1,a||r.digestLength)};function n(r,a,l,i){r.generate=function(o,f){for(var u=new e.util.ByteBuffer,p=Math.ceil(f/i)+l,S=new e.util.ByteBuffer,b=l;b"u"||g?b.flags|=e.log.LEVEL_LOCKED:b.flags&=~e.log.LEVEL_LOCKED},e.log.addLogger=function(b){n.push(b)},typeof console<"u"&&"log"in console){var o;if(console.error&&console.warn&&console.info&&console.debug){var f={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},u=function(b,g){e.log.prepareStandard(g);var v=f[g.level],m=[g.standard];m=m.concat(g.arguments.slice()),v.apply(console,m)};o=e.log.makeLogger(u)}else{var u=function(g,v){e.log.prepareStandardFull(v),console.log(v.standardFull)};o=e.log.makeLogger(u)}e.log.setLevel(o,"debug"),e.log.addLogger(o),r=o}else console={log:function(){}};if(r!==null&&typeof window<"u"&&window.location){var p=new URL(window.location.href).searchParams;if(p.has("console.level")&&e.log.setLevel(r,p.get("console.level").slice(-1)[0]),p.has("console.lock")){var S=p.get("console.lock").slice(-1)[0];S=="true"&&e.log.lock(r)}}return e.log.consoleLogger=r,jo}var Wo,Fu;function vx(){return Fu||(Fu=1,Wo=En(),gl(),_r(),Jd(),cf()),Wo}var qo={exports:{}},Ku;function mx(){if(Ku)return qo.exports;Ku=1;var e=Xe();zn(),fn(),Na(),Hn(),lr(),af(),on(),Je(),bl();var t=e.asn1,n=qo.exports=e.pkcs7=e.pkcs7||{};n.messageFromPem=function(g){var v=e.pem.decode(g)[0];if(v.type!=="PKCS7"){var m=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw m.headerType=v.type,m}if(v.procType&&v.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var h=t.fromDer(v.body);return n.messageFromAsn1(h)},n.messageToPem=function(g,v){var m={type:"PKCS7",body:t.toDer(g.toAsn1()).getBytes()};return e.pem.encode(m,{maxline:v})},n.messageFromAsn1=function(g){var v={},m=[];if(!t.validate(g,n.asn1.contentInfoValidator,v,m)){var h=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw h.errors=m,h}var s=t.derToOid(v.contentType),y;switch(s){case e.pki.oids.envelopedData:y=n.createEnvelopedData();break;case e.pki.oids.encryptedData:y=n.createEncryptedData();break;case e.pki.oids.signedData:y=n.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+s+" is not (yet) supported.")}return y.fromAsn1(v.content.value[0]),y},n.createSignedData=function(){var g=null;return g={type:e.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(h){if(S(g,h,n.asn1.signedDataValidator),g.certificates=[],g.crls=[],g.digestAlgorithmIdentifiers=[],g.contentInfo=null,g.signerInfos=[],g.rawCapture.certificates)for(var s=g.rawCapture.certificates.value,y=0;y0&&C.value[0].value.push(t.create(t.Class.CONTEXT_SPECIFIC,0,!0,h)),y.length>0&&C.value[0].value.push(t.create(t.Class.CONTEXT_SPECIFIC,1,!0,y)),C.value[0].value.push(t.create(t.Class.UNIVERSAL,t.Type.SET,!0,g.signerInfos)),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,!0,[t.create(t.Class.UNIVERSAL,t.Type.OID,!1,t.oidToDer(g.type).getBytes()),C])},addSigner:function(h){var s=h.issuer,y=h.serialNumber;if(h.certificate){var C=h.certificate;typeof C=="string"&&(C=e.pki.certificateFromPem(C)),s=C.issuer.attributes,y=C.serialNumber}var w=h.key;if(!w)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof w=="string"&&(w=e.pki.privateKeyFromPem(w));var T=h.digestAlgorithm||e.pki.oids.sha1;switch(T){case e.pki.oids.sha1:case e.pki.oids.sha256:case e.pki.oids.sha384:case e.pki.oids.sha512:case e.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+T)}var x=h.authenticatedAttributes||[];if(x.length>0){for(var c=!1,d=!1,A=0;A0){for(var m=t.create(t.Class.CONTEXT_SPECIFIC,1,!0,[]),h=0;h=m&&s="8"&&(o="00"+o);var f=e.util.hexToBytes(o);l.putInt32(f.length),l.putBytes(f)}function r(l,i){l.putInt32(i.length),l.putString(i)}function a(){for(var l=e.md.sha1.create(),i=arguments.length,o=0;o{const e=zt.pki.rsa,t=await new Promise((a,l)=>{e.generateKeyPair({bits:2048,e:65537},(i,o)=>{i&&l(i),a(o)})}),n=zt.pki.publicKeyToPem(t.publicKey),r=zt.pki.privateKeyToPem(t.privateKey);return{publicKey:n,privateKey:r}},zu=async(e,t)=>{const n=zt.pki.privateKeyFromPem(e),r=zt.util.decode64(t);return n.decrypt(r,"RSA-OAEP",{md:zt.md.sha256.create(),mgf1:{md:zt.md.sha1.create()}})},xx=(e,t,n)=>{const r=zt.cipher.createDecipher("AES-CBC",e);return r.start({iv:t}),r.update(zt.util.createBuffer(n)),r.finish()?r.output.toString():(console.error("Decryption failed"),null)},Sx=async(e,t,n)=>{const r=zt.cipher.createDecipher("AES-CBC",e);return r.start({iv:t}),await r.update(zt.util.createBuffer(n)),await r.finish()?r.output.getBytes():(console.error("Decryption failed"),null)},Ex={class:"home-container"},wx={style:{width:"100vw"}},Ix={style:{"margin-left":"3vw","font-size":"20px"}},Tx={style:{background:"#fff",padding:"24px",minHeight:"280px"}},Ax={key:0},Bx={key:1},$x=["onClick"],Rx=["onClick"],_x={key:0,style:{display:"flex","align-items":"center","justify-content":"center","margin-top":"10vh"}},Ox={class:"download-process-container"},Nx={__name:"HomeIndex",setup(e){const t=[{title:"文件信息",dataIndex:"name",key:"name",width:"calc(35vw)"},{title:"路径",dataIndex:"path",key:"path",width:"calc(25vw)"},{title:"操作",key:"action",width:"calc(25vw)",align:"center"}],n=Ee(""),r=Ee(0),a=Ee(),l=Ee(),i=tp();gt(()=>{i.status===!0&&u(),l.value=setInterval(()=>{f()},1e3)});const o=Ee(!1);let f=async()=>{i.status===!0&&(f=async()=>{let B=!0;const O=await ox(n.value).catch(_=>{B=!1,o.value=!0,n.value="",r.value=0,a.value=""});B&&O.data.data===!1&&(await u(),o.value=!1)},clearInterval(l.value),l.value=setInterval(()=>{f()},1e3))};const u=async()=>{let B,O;await Vu().then(X=>{B=X.publicKey,O=X.privateKey});const _=await ix(btoa(B)),k=await zu(O,_.data.data.key),M=_.data.data.iv,V=_.data.data.data,q=xx(k,zt.util.decode64(M),zt.util.decode64(V));let Q=JSON.parse(q);n.value=Q.shareId,r.value=Q.count,a.value=Q.files},p=B=>{const O=window.location.protocol,_=window.location.hostname,k=window.location.port;window.location.href=O+"//"+_+":"+k+`/api/download/${B.fileId}?shareId=${encodeURIComponent(n.value)}`};Rt(()=>{clearInterval(l.value)});const S=Ee(!1),b=()=>{S.value=!0},g=()=>{S.value=!1};let v=null;const m=Ee(""),h=Ee(""),s=Ee([]),y=Ee("暂无"),C=Ee(!1),w=Ee({connection:0,totalBlock:0,currentBlock:0,decryptionBlock:0}),T=Ee(!1),x=()=>{T.value=!1},c=()=>{T.value=!1,S.value=!0},d=B=>{if(C.value===!0){T.value=!0;return}C.value=!0,w.value={connection:0,totalBlock:0,currentBlock:0,decryptionBlock:0},b();const O=B.fileId;y.value=B.name;const _=window.location.hostname,k=window.location.port,M="ws://"+_+":"+k+"/ws/download";v=new WebSocket(M),v.onopen=async()=>{w.value.connection=100;let V,q;await Vu().then(Q=>{V=Q.publicKey,q=Q.privateKey}),v.send("a,"+btoa(V)+","+O),v.onmessage=async Q=>{if(Q.data.startsWith("key#")){const X=Q.data.split(","),K=X[0].split("#")[1];h.value=X[1].split("#")[1],m.value=await zu(q,K),w.value.totalBlock=parseInt(X[2].split("#")[1]),v.send("b,"+O)}else if(Q.data.startsWith("fin"))v.close();else{w.value.currentBlock++;const X=await Sx(m.value,zt.util.decode64(h.value),new Uint8Array(atob(Q.data).split("").map(function(j){return j.charCodeAt(0)}))),K=new Uint8Array(X.length);for(let j=0;j=w.value.totalBlock&&A()}}},v.onerror=V=>{C.value=!1,console.error("WebSocket Error: ",V)},v.onclose=()=>{m.value="",h.value="",s.value=[],C.value=!1}},A=()=>{const B=new Uint8Array(s.value.reduce((V,q)=>V+q.length,0));let O=0;for(const V of s.value)B.set(V,O),O+=V.length;const _=new Blob([B],{type:"application/octet-stream"}),k=window.URL.createObjectURL(_),M=document.createElement("a");M.href=k,M.download=y.value,M.click()};return(B,O)=>{const _=kn,k=hr,M=Ib,V=np,q=um,Q=Rg;return Gn(),dr("div",Ex,[O[17]||(O[17]=Ct("br",null,null,-1)),Ct("div",wx,[Ct("span",Ix,"总文件数:"+fr(r.value),1),P(_,{style:{position:"relative","margin-left":"36vw"},type:"primary",onClick:b},{default:In(()=>O[1]||(O[1]=[Ut("查看加密下载进度")])),_:1})]),Ct("div",Tx,[P(M,{columns:t,"data-source":a.value,locale:{emptyText:"分享列表为空"},scroll:{y:"calc(60vh)"}},{headerCell:In(({column:X})=>[X.key==="name"?(Gn(),dr("span",Ax," 文件信息 ")):Ma("",!0)]),bodyCell:In(({column:X,record:K})=>[X.key==="name"?(Gn(),dr(It,{key:0},[Ut(fr(K.name),1),O[2]||(O[2]=Ct("br",null,null,-1)),(Gn(),sp(k,{key:K.type,color:"black"},{default:In(()=>[Ut(fr(K.type),1)]),_:2},1024)),O[3]||(O[3]=Ct("br",null,null,-1)),Ut(" "+fr(K.size)+" KB ",1)],64)):X.key==="action"?(Gn(),dr("span",Bx,[Ct("a",{class:"ant-dropdown-link",onClick:j=>p(K)}," 快速下载 ",8,$x),O[4]||(O[4]=Ct("br",null,null,-1)),Ct("a",{class:"ant-dropdown-link",onClick:j=>d(K)}," 加密下载 ",8,Rx)])):Ma("",!0)]),_:1},8,["data-source"]),o.value?(Gn(),dr("div",_x,O[5]||(O[5]=[Ct("span",{style:{"font-size":"5vw"}},"连接断开",-1)]))):Ma("",!0),P(V,{centered:"",open:T.value,"onUpdate:open":O[0]||(O[0]=X=>T.value=X),title:"MagicShare 提示","cancel-text":"取消",onCancel:x,"ok-text":"查看当前加密下载进度",onOk:c},{default:In(()=>O[6]||(O[6]=[Ut(" 加密下载任务被占用,不支持同时加密下载多个文件。 ")])),_:1},8,["open"])]),P(Q,{class:"drawer",width:500,title:"加密下载进度",placement:"bottom",open:S.value,onClose:g},{extra:In(()=>[P(_,{style:{"margin-right":"8px"},onClick:g},{default:In(()=>O[7]||(O[7]=[Ut("关闭")])),_:1})]),default:In(()=>[Ct("div",null,"当前下载的文件:"+fr(y.value),1),O[13]||(O[13]=Ct("br",null,null,-1)),Ct("div",Ox,[Ct("div",null,[P(q,{type:"circle",percent:w.value.connection},null,8,["percent"]),O[8]||(O[8]=Ct("div",{class:"download-process-container"},"建立连接",-1))]),O[11]||(O[11]=Ut("   ")),Ct("div",null,[P(q,{type:"circle",percent:Math.min((w.value.currentBlock/w.value.totalBlock*100).toFixed(1),100)},null,8,["percent"]),O[9]||(O[9]=Ct("div",{class:"download-process-container"},"加密传输",-1))]),O[12]||(O[12]=Ut("   ")),Ct("div",null,[P(q,{type:"circle",percent:Math.min((w.value.decryptionBlock/w.value.totalBlock*100).toFixed(1),100)},null,8,["percent"]),O[10]||(O[10]=Ct("div",{class:"download-process-container"},"解密文件",-1))])]),O[14]||(O[14]=Ct("br",null,null,-1)),O[15]||(O[15]=Ct("div",{class:"content-container"},"RSA + AES 混合加密",-1)),O[16]||(O[16]=Ct("div",{class:"content-container"},"保障数据安全",-1))]),_:1},8,["open"])])}}},kx=lp(Nx,[["__scopeId","data-v-19866e1e"]]);export{kx as default}; diff --git a/backend/src/main/resources/static/assets/HomeIndex-cnORUpOp.css b/backend/src/main/resources/static/assets/HomeIndex-cnORUpOp.css new file mode 100644 index 0000000..cd956bd --- /dev/null +++ b/backend/src/main/resources/static/assets/HomeIndex-cnORUpOp.css @@ -0,0 +1 @@ +.drawer .download-process-container[data-v-19866e1e],.drawer .content-container[data-v-19866e1e]{display:flex;align-items:center;justify-content:center} diff --git a/backend/src/main/resources/static/assets/LayoutContainer-2p629E5o.css b/backend/src/main/resources/static/assets/LayoutContainer-2p629E5o.css new file mode 100644 index 0000000..9242e1b --- /dev/null +++ b/backend/src/main/resources/static/assets/LayoutContainer-2p629E5o.css @@ -0,0 +1 @@ +.layout[data-v-fb32d8c8]{position:fixed;left:0;top:0;width:100vw;height:100vh}.site-layout-content[data-v-fb32d8c8]{min-height:280px;padding:24px;background:#fff}.layout .logo[data-v-fb32d8c8]{position:fixed;right:3vw;height:8vh;width:auto;display:flex}.layout .logo .app-title[data-v-fb32d8c8]{position:relative;top:0;right:3vw;width:100%;text-align:center;font-size:2.5vw;cursor:pointer;color:#fff}.layout .logo .logo-img[data-v-fb32d8c8]{width:auto;height:100%;cursor:pointer}[data-theme=dark] .site-layout-content[data-v-fb32d8c8]{background:#141414} diff --git a/backend/src/main/resources/static/assets/LayoutContainer-Dl5Cz5Xv.js b/backend/src/main/resources/static/assets/LayoutContainer-Dl5Cz5Xv.js new file mode 100644 index 0000000..fc38a9d --- /dev/null +++ b/backend/src/main/resources/static/assets/LayoutContainer-Dl5Cz5Xv.js @@ -0,0 +1 @@ +import{_ as de}from"./MagicShare-DLx5ZzAx.js";import{d as O,c as s,r as N,p as q,a as ue,s as P,w as Z,o as ce,b as ge,i as pe,_ as fe,e as me,f as S,u as he,g as ye,h as x,j as I,k as ve,l as xe}from"./index-moUN8hPO.js";import{g as be,m as Se,_,u as j,S as ee,I as Ce,i as _e,c as U,R as V,L as X,a as G,P as b,t as J,b as $e,d as ke,e as we,M as He,f as Be,h as Le}from"./index-8CVYBXsu.js";const Oe=e=>{const{componentCls:o,colorBgContainer:t,colorBgBody:l,colorText:r}=e;return{[`${o}-sider-light`]:{background:t,[`${o}-sider-trigger`]:{color:r,background:t},[`${o}-sider-zero-width-trigger`]:{color:r,background:t,border:`1px solid ${l}`,borderInlineStart:0}}}},Te=e=>{const{antCls:o,componentCls:t,colorText:l,colorTextLightSolid:r,colorBgHeader:f,colorBgBody:c,colorBgTrigger:d,layoutHeaderHeight:g,layoutHeaderPaddingInline:m,layoutHeaderColor:a,layoutFooterPadding:n,layoutTriggerHeight:u,layoutZeroTriggerSize:y,motionDurationMid:C,motionDurationSlow:i,fontSize:h,borderRadius:p}=e;return{[t]:_(_({display:"flex",flex:"auto",flexDirection:"column",color:l,minHeight:0,background:c,"&, *":{boxSizing:"border-box"},[`&${t}-has-sider`]:{flexDirection:"row",[`> ${t}, > ${t}-content`]:{width:0}},[`${t}-header, &${t}-footer`]:{flex:"0 0 auto"},[`${t}-header`]:{height:g,paddingInline:m,color:a,lineHeight:`${g}px`,background:f,[`${o}-menu`]:{lineHeight:"inherit"}},[`${t}-footer`]:{padding:n,color:l,fontSize:h,background:c},[`${t}-content`]:{flex:"auto",minHeight:0},[`${t}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${C}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:u},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:u,color:r,lineHeight:`${u}px`,textAlign:"center",background:d,cursor:"pointer",transition:`all ${C}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:g,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:p,borderEndEndRadius:p,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:p,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:p}}}}},Oe(e)),{"&-rtl":{direction:"rtl"}})}},ze=be("Layout",e=>{const{colorText:o,controlHeightSM:t,controlHeight:l,controlHeightLG:r,marginXXS:f}=e,c=r*1.25,d=Se(e,{layoutHeaderHeight:l*2,layoutHeaderPaddingInline:c,layoutHeaderColor:o,layoutFooterPadding:`${t}px ${c}px`,layoutTriggerHeight:r+f*2,layoutZeroTriggerSize:r});return[Te(d)]},e=>{const{colorBgLayout:o}=e;return{colorBgHeader:"#001529",colorBgBody:o,colorBgTrigger:"#002140"}}),D=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function T(e){let{suffixCls:o,tagName:t,name:l}=e;return r=>O({compatConfig:{MODE:3},name:l,props:D(),setup(c,d){let{slots:g}=d;const{prefixCls:m}=j(o,c);return()=>{const a=_(_({},c),{prefixCls:m.value,tagName:t});return s(r,a,g)}}})}const W=O({compatConfig:{MODE:3},props:D(),setup(e,o){let{slots:t}=o;return()=>s(e.tagName,{class:e.prefixCls},t)}}),Me=O({compatConfig:{MODE:3},inheritAttrs:!1,props:D(),setup(e,o){let{slots:t,attrs:l}=o;const{prefixCls:r,direction:f}=j("",e),[c,d]=ze(r),g=N([]);q(ee,{addSider:n=>{g.value=[...g.value,n]},removeSider:n=>{g.value=g.value.filter(u=>u!==n)}});const a=ue(()=>{const{prefixCls:n,hasSider:u}=e;return{[d.value]:!0,[`${n}`]:!0,[`${n}-has-sider`]:typeof u=="boolean"?u:g.value.length>0,[`${n}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:n}=e;return c(s(n,_(_({},l),{class:[a.value,l.class]}),t))}}}),R=T({suffixCls:"layout",tagName:"section",name:"ALayout"})(Me),H=T({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(W),B=T({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(W),L=T({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(W);var Ee={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Q(e){for(var o=1;o({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:b.any,width:b.oneOfType([b.number,b.string]),collapsedWidth:b.oneOfType([b.number,b.string]),breakpoint:b.oneOf(J("xs","sm","md","lg","xl","xxl","xxxl")),theme:b.oneOf(J("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Re=(()=>{let e=0;return function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${o}${e}`}})(),A=O({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:_e(Ie(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,o){let{emit:t,attrs:l,slots:r}=o;const{prefixCls:f}=j("layout-sider",e),c=pe(ee,void 0),d=P(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),g=P(!1);Z(()=>e.collapsed,()=>{d.value=!!e.collapsed}),q(ke,d);const m=(i,h)=>{e.collapsed===void 0&&(d.value=i),t("update:collapsed",i),t("collapse",i,h)},a=P(i=>{g.value=i.matches,t("breakpoint",i.matches),d.value!==i.matches&&m(i.matches,"responsive")});let n;function u(i){return a.value(i)}const y=Re("ant-sider-");c&&c.addSider(y),ce(()=>{Z(()=>e.breakpoint,()=>{try{n==null||n.removeEventListener("change",u)}catch{n==null||n.removeListener(u)}if(typeof window<"u"){const{matchMedia:i}=window;if(i&&e.breakpoint&&e.breakpoint in Y){n=i(`(max-width: ${Y[e.breakpoint]})`);try{n.addEventListener("change",u)}catch{n.addListener(u)}u(n)}}},{immediate:!0})}),ge(()=>{try{n==null||n.removeEventListener("change",u)}catch{n==null||n.removeListener(u)}c&&c.removeSider(y)});const C=()=>{m(!d.value,"clickTrigger")};return()=>{var i,h;const p=f.value,{collapsedWidth:k,width:v,reverseArrow:z,zeroWidthTriggerStyle:te,trigger:w=(i=r.trigger)===null||i===void 0?void 0:i.call(r),collapsible:K,theme:oe}=e,M=d.value?k:v,$=$e(M)?`${M}px`:String(M),E=parseFloat(String(k||0))===0?s("span",{onClick:C,class:U(`${p}-zero-width-trigger`,`${p}-zero-width-trigger-${z?"right":"left"}`),style:te},[w||s(F,null,null)]):null,ne={expanded:z?s(V,null,null):s(X,null,null),collapsed:z?s(X,null,null):s(V,null,null)},re=d.value?"collapsed":"expanded",ae=ne[re],le=w!==null?E||s("div",{class:`${p}-trigger`,onClick:C,style:{width:$}},[w||ae]):null,ie=[l.style,{flex:`0 0 ${$}`,maxWidth:$,minWidth:$,width:$}],se=U(p,`${p}-${oe}`,{[`${p}-collapsed`]:!!d.value,[`${p}-has-trigger`]:K&&w!==null&&!E,[`${p}-below`]:!!g.value,[`${p}-zero-width`]:parseFloat($)===0},l.class);return s("aside",G(G({},l),{},{class:se,style:ie}),[s("div",{class:`${p}-children`},[(h=r.default)===null||h===void 0?void 0:h.call(r)]),K||g.value&&E?le:null])}}}),Ae=H,Ne=B,je=L,De=_(R,{Header:H,Footer:B,Content:L,Sider:A,install:e=>(e.component(R.name,R),e.component(H.name,H),e.component(B.name,B),e.component(A.name,A),e.component(L.name,L),e)}),We={class:"layout-container"},Fe={class:"logo"},Ke={__name:"LayoutContainer",setup(e){const o=he(),t=ve(),l=N([o.path]),r=m=>{l.value!==m&&(t.push(m),l.value=[m])},f=N(!0),c=we(),d=m=>{c.accept(),f.value=!1},g=()=>{window.open("about:blank","_self").close()};return(m,a)=>{const n=Be,u=Le,y=Ae,C=xe("router-view"),i=je,h=Ne,p=De,k=He;return ye(),me("div",We,[s(p,{class:"layout"},{default:S(()=>[s(y,null,{default:S(()=>[x("div",Fe,[x("span",{class:"app-title",onClick:a[0]||(a[0]=v=>r("/home"))},"MagicShare"),x("span",null,[x("img",{class:"logo-img",src:de,height:"488",width:"522",alt:"MagicShareLogo",onClick:a[1]||(a[1]=v=>r("/home"))})])]),s(u,{selectedKeys:l.value,"onUpdate:selectedKeys":a[4]||(a[4]=v=>l.value=v),theme:"dark",mode:"horizontal",style:{lineHeight:"64px",marginLeft:"-5px"}},{default:S(()=>[s(n,{key:"/home",onClick:a[2]||(a[2]=v=>r("/home"))},{default:S(()=>a[6]||(a[6]=[I("文件列表")])),_:1}),s(n,{key:"/about",onClick:a[3]||(a[3]=v=>r("/about"))},{default:S(()=>a[7]||(a[7]=[I("关于")])),_:1})]),_:1},8,["selectedKeys"])]),_:1}),s(i,null,{default:S(()=>[s(C)]),_:1}),s(h,{style:{"text-align":"center"}},{default:S(()=>a[8]||(a[8]=[I(" ZZHow ")])),_:1})]),_:1}),s(k,{open:f.value,"onUpdate:open":a[5]||(a[5]=v=>f.value=v),title:"MagicShare",style:{width:"auto"},onOk:d,onCancel:g,centered:"",maskClosable:!1,keyboard:!1,closable:!1,cancelText:"退出",okText:"同意"},{default:S(()=>a[9]||(a[9]=[x("p",null,"使用本软件前,请仔细阅读: ",-1),x("p",null," 合法使用: 本软件仅限于合法文件分享,严禁分享任何侵犯版权、涉及色情、暴力、欺诈、违法或其他有害内容的文件。 ",-1),x("p",null,"个人责任: 您对分享内容的合法性负全部责任,请确保您拥有分享文件的合法授权。 ",-1),x("p",null,"风险提示: 本软件无法保证所分享文件的安全性,请您自行检查文件的安全性。 ",-1),x("p",null,"免责声明: 软件作者不对因使用本软件造成的任何直接或间接损失承担责任。",-1)])),_:1},8,["open"])])}}},Xe=fe(Ke,[["__scopeId","data-v-fb32d8c8"]]);export{Xe as default}; diff --git a/backend/src/main/resources/static/assets/MagicShare-DLx5ZzAx.js b/backend/src/main/resources/static/assets/MagicShare-DLx5ZzAx.js new file mode 100644 index 0000000..dec92b7 --- /dev/null +++ b/backend/src/main/resources/static/assets/MagicShare-DLx5ZzAx.js @@ -0,0 +1 @@ +const s="/assets/MagicShare-Lpc9A0lm.png";export{s as _}; diff --git a/backend/src/main/resources/static/assets/MagicShare-Lpc9A0lm.png b/backend/src/main/resources/static/assets/MagicShare-Lpc9A0lm.png new file mode 100644 index 0000000..f2448d2 Binary files /dev/null and b/backend/src/main/resources/static/assets/MagicShare-Lpc9A0lm.png differ diff --git a/backend/src/main/resources/static/assets/index-8CVYBXsu.js b/backend/src/main/resources/static/assets/index-8CVYBXsu.js new file mode 100644 index 0000000..5c70121 --- /dev/null +++ b/backend/src/main/resources/static/assets/index-8CVYBXsu.js @@ -0,0 +1,165 @@ +import{F as Ne,m as dn,O as ps,J as ms,d as z,v as Ze,o as je,B as Ln,y as No,w as Y,E as Rt,a as $,i as ce,p as ye,r as X,C as Ke,s as N,q as Ae,b as $e,P as dd,c as h,Q as Jt,H as Fn,R as fd,T as ft,n as gs,S as dt,A as Ge,D as Cr,I as Do,U as Wi,V as pd,W as Jr,z as Sr,X as hs,t as md,Y as gd,Z as hd}from"./index-moUN8hPO.js";function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}function vd(e,t){if(Pn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Pn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yd(e){var t=vd(e,"string");return Pn(t)=="symbol"?t:t+""}function bd(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function M(e){for(var t=1;ttypeof e=="function",Sd=Array.isArray,xd=e=>typeof e=="string",$d=e=>e!==null&&typeof e=="object",wd=/^on[^a-z]/,Od=e=>wd.test(e),ei=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Pd=/-(\w)/g,vs=ei(e=>e.replace(Pd,(t,n)=>n?n.toUpperCase():"")),Td=/\B([A-Z])/g,_d=ei(e=>e.replace(Td,"-$1").toLowerCase()),JC=ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),Id=Object.prototype.hasOwnProperty,Vi=(e,t)=>Id.call(e,t);function Ed(e,t,n,o){const r=e[n];if(r!=null){const i=Vi(r,"default");if(i&&o===void 0){const a=r.default;o=r.type!==Function&&Cd(a)?a():a}r.type===Boolean&&(!Vi(t,n)&&!i?o=!1:o===""&&(o=!0))}return o}function eS(e){return typeof e=="number"?`${e}px`:e}function Kt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function Md(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t==null||t()};return o.then=(r,i)=>n.then(r,i),o.promise=n,o}function q(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!xr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Hd?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,r=Bd.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bs=function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof en(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Gd(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof en(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new Ud(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ss=typeof WeakMap<"u"?new WeakMap:new ys,xs=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jd.getInstance(),o=new Xd(t,n,this);Ss.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){xs.prototype[e]=function(){var t;return(t=Ss.get(this))[e].apply(t,arguments)}});var $s=function(){return typeof bo.ResizeObserver<"u"?bo.ResizeObserver:xs}();const $r=e=>e!=null&&e!=="",fn=(e,t)=>{const n=p({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},Yd=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,a=t.length;i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(i){if(i){const a=i.split(r);if(a.length>1){const l=t?vs(a[0].trim()):a[0].trim();n[l]=a[1].trim()}}}),n)},Qd=(e,t)=>e[t]!==void 0,Zd=Symbol("skipFlatten"),Te=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...Te(r,t)):r&&r.type===Ne?r.key===Zd?o.push(r):o.push(...Te(r.children,t)):r&&dn(r)?t&&!ws(r)?o.push(r):t||o.push(r):$r(r)&&o.push(r)}),o},Jd=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(dn(e))return e.type===Ne?t==="default"?Te(e.children):[]:e.children&&e.children[t]?Te(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return Te(o)}},Qe=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},ef=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],i=_d(o);(r!==void 0||i in n)&&(t[o]=r)})}else if(dn(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(i=>{o[vs(i)]=n[i]});const r=e.type.props||{};Object.keys(r).forEach(i=>{const a=Ed(r,o,i,o[i]);(a!==void 0||i in o)&&(t[i]=a)})}return t},tf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&o?i(n):i;r=e.$slots[t],r=o&&r?r(n):r}else if(dn(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&o?i(n):i;e.type===Ne?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=Te(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function Ui(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=p(p({},n),e.$attrs):n=p(p({},n),e.props),Yd(n)[t?"onEvents":"events"]}function nf(e,t){let o=((dn(e)?e.props:e.$attrs)||{}).style||{};return typeof o=="string"&&(o=qd(o,t)),o}function of(e){return e.length===1&&e[0].type===Ne}function ws(e){return e&&(e.type===ps||e.type===Ne&&e.children.length===0||e.type===ms&&e.children.trim()==="")}function kn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===Ne?t.push(...kn(n.children)):t.push(n)}),t.filter(n=>!ws(n))}function ti(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function ni(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const Os=z({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=Ze({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const a=()=>{i&&(i.disconnect(),i=null)},l=d=>{const{onResize:s}=e,f=d[0].target,{width:m,height:g}=f.getBoundingClientRect(),{offsetWidth:v,offsetHeight:x}=f,y=Math.floor(m),S=Math.floor(g);if(o.width!==y||o.height!==S||o.offsetWidth!==v||o.offsetHeight!==x){const w={width:y,height:S,offsetWidth:v,offsetHeight:x};p(o,w),s&&Promise.resolve().then(()=>{s(p(p({},w),{offsetWidth:v,offsetHeight:x}),f)})}},u=Rt(),c=()=>{const{disabled:d}=e;if(d){a();return}const s=Qe(u);s!==r&&(a(),r=s),!i&&s&&(i=new $s(l),i.observe(s))};return je(()=>{c()}),Ln(()=>{c()}),No(()=>{a()}),Y(()=>e.disabled,()=>{c()},{flush:"post"}),()=>{var d;return(d=n.default)===null||d===void 0?void 0:d.call(n)[0]}}});let Ps=e=>setTimeout(e,16),Ts=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Ps=e=>window.requestAnimationFrame(e),Ts=e=>window.cancelAnimationFrame(e));let Xi=0;const oi=new Map;function _s(e){oi.delete(e)}function Ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xi+=1;const n=Xi;function o(r){if(r===0)_s(n),e();else{const i=Ps(()=>{o(r-1)});oi.set(n,i)}}return o(t),n}Ce.cancel=e=>{const t=oi.get(e);return _s(t),Ts(t)};const So=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Yi(){return{type:[Function,Array]}}function oe(e){return{type:Object,default:e}}function Ut(e){return{type:Boolean,default:e}}function tS(e){return{type:Function,default:e}}function wr(e,t){const n={validator:()=>!0,default:e};return n}function qi(e){return{type:Array,default:e}}function Qi(e){return{type:String,default:e}}function rf(e,t){return e?{type:e,default:t}:wr(t)}let Ct=!1;try{const e=Object.defineProperty({},"passive",{get(){Ct=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Vt(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&Ct&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const ri="anticon",af=Symbol("GlobalFormContextKey"),lf=e=>{ye(af,e)},sf=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:oe(),input:oe(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:oe(),pageHeader:oe(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:oe(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:oe(),pagination:oe(),theme:oe(),select:oe(),wave:oe()}),ii=Symbol("configProvider"),Is={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:$(()=>ri),getPopupContainer:$(()=>()=>document.body),direction:$(()=>"ltr")},ai=()=>ce(ii,Is),uf=e=>ye(ii,e),Es=Symbol("DisabledContextKey"),li=()=>ce(Es,X(void 0)),cf=e=>{const t=li();return ye(Es,$(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},df={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},ff={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},Ms={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Zi={lang:p({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ff),timePickerLocale:p({},Ms)},Oe="${label} is not a valid ${type}",Tt={locale:"en",Pagination:df,DatePicker:Zi,TimePicker:Ms,Calendar:Zi,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Oe,method:Oe,array:Oe,object:Oe,number:Oe,date:Oe,boolean:Oe,integer:Oe,float:Oe,regexp:Oe,email:Oe,url:Oe,hex:Oe},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},As=z({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=ce("localeData",{}),r=$(()=>{const{componentName:a="global",defaultLocale:l}=e,u=l||Tt[a||"global"],{antLocale:c}=o,d=a&&c?c[a]:{};return p(p({},typeof u=="function"?u():u),d||{})}),i=$(()=>{const{antLocale:a}=o,l=a&&a.locale;return a&&a.exist&&!l?Tt.locale:l});return()=>{const a=e.children||n.default,{antLocale:l}=o;return a==null?void 0:a(r.value,i.value,l)}}});function si(e,t,n){const o=ce("localeData",{});return[$(()=>{const{antLocale:i}=o,a=Ke(t)||Tt[e||"global"],l=e&&i?i[e]:{};return p(p(p({},typeof a=="function"?a():a),l||{}),Ke(n)||{})})]}function ui(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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)}const Ji="%";class pf{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Ji):t)||null}update(t,n){const o=Array.isArray(t)?t.join(Ji):t,r=this.cache.get(o),i=n(r);i===null?this.cache.delete(o):this.cache.set(o,i)}}const Rs="data-token-hash",$t="data-css-hash",Gt="__cssinjs_instance__";function Tn(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${$t}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[Gt]=r[Gt]||e,r[Gt]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${$t}]`)).forEach(r=>{var i;const a=r.getAttribute($t);o[a]?r[Gt]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r)):o[a]=!0})}return new pf(e)}const Ns=Symbol("StyleContextKey"),mf=()=>{var e,t,n;const o=Rt();let r;if(o&&o.appContext){const i=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?r=i:(r=Tn(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Tn();return r},Ds={cache:Tn(),defaultCache:!0,hashPriority:"low"},jo=()=>{const e=mf();return ce(Ns,N(p(p({},Ds),{cache:e})))},gf=e=>{const t=jo(),n=N(p(p({},Ds),{cache:Tn()}));return Y([()=>Ke(e),t],()=>{const o=p({},t.value),r=Ke(e);Object.keys(r).forEach(a=>{const l=r[a];r[a]!==void 0&&(o[a]=l)});const{cache:i}=r;o.cache=o.cache||Tn(),o.defaultCache=!i&&t.value.defaultCache,n.value=o},{immediate:!0}),ye(Ns,n),n},hf=()=>({autoClear:Ut(),mock:Qi(),cache:oe(),defaultCache:Ut(),hashPriority:Qi(),container:rf(),ssrInline:Ut(),transformers:qi(),linters:qi()});Ho(z({name:"AStyleProvider",inheritAttrs:!1,props:hf(),setup(e,t){let{slots:n}=t;return gf(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function Bs(e,t,n,o){const r=jo(),i=N(""),a=N();Ae(()=>{i.value=[e,...t.value].join("%")});const l=u=>{r.value.cache.update(u,c=>{const[d=0,s]=c||[];return d-1===0?(o==null||o(s,!1),null):[d-1,s]})};return Y(i,(u,c)=>{c&&l(c),r.value.cache.update(u,d=>{const[s=0,f]=d||[],g=f||n();return[s+1,g]}),a.value=r.value.cache.get(i.value)[1]},{immediate:!0}),$e(()=>{l(i.value)}),a}function De(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function it(e,t){return e&&e.contains?e.contains(t):!1}const ea="data-vc-order",vf="vc-util-key",Or=new Map;function Hs(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:vf}function zo(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function yf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function js(e){return Array.from((Or.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!De())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(ea,yf(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const i=zo(t),{firstChild:a}=i;if(o){if(o==="queue"){const l=js(i).filter(u=>["prepend","prependQueue"].includes(u.getAttribute(ea)));if(l.length)return i.insertBefore(r,l[l.length-1].nextSibling),r}i.insertBefore(r,a)}else i.appendChild(r);return r}function Ls(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=zo(t);return js(n).find(o=>o.getAttribute(Hs(t))===e)}function xo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Ls(e,t);n&&zo(t).removeChild(n)}function bf(e,t){const n=Or.get(e);if(!n||!it(document,n)){const o=zs("",t),{parentNode:r}=o;Or.set(e,r),e.removeChild(o)}}function _n(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,i;const a=zo(n);bf(a,n);const l=Ls(t,n);if(l)return!((o=n.csp)===null||o===void 0)&&o.nonce&&l.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(l.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const u=zs(e,n);return u.setAttribute(Hs(n),t),u}function Cf(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var i;o?o=(i=o==null?void 0:o.map)===null||i===void 0?void 0:i.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>tn.MAX_CACHE_SIZE+tn.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((i,a)=>{const[,l]=i;return this.internalGet(a)[1]{if(i===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const a=o.get(r);a?a.map||(a.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Cf(n,t)),this.deleteByPath(this.cache,t)}}tn.MAX_CACHE_SIZE=20;tn.MAX_CACHE_OFFSET=5;let ta={};function Sf(e,t){}function xf(e,t,n){!t&&!ta[n]&&(ta[n]=!0)}function $f(e,t){xf(Sf,e,t)}function wf(){}let Lo=wf,na=0;class Fs{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=na,t.length===0&&Lo(t.length>0),na+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Zo=new tn;function ks(e){const t=Array.isArray(e)?e:[e];return Zo.has(t)||Zo.set(t,new Fs(t)),Zo.get(t)}const oa=new WeakMap;function $o(e){let t=oa.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof Fs?t+=o.id:o&&typeof o=="object"?t+=$o(o):t+=o}),oa.set(e,t)),t}function Of(e,t){return ui(`${t}_${$o(e)}`)}const $n=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Ws="_bAmBoO_";function Pf(e,t,n){var o,r;if(De()){_n(e,$n);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const a=n?n(i):(o=getComputedStyle(i).content)===null||o===void 0?void 0:o.includes(Ws);return(r=i.parentNode)===null||r===void 0||r.removeChild(i),xo($n),a}return!1}let Jo;function Tf(){return Jo===void 0&&(Jo=Pf(`@layer ${$n} { .${$n} { content: "${Ws}"!important; } }`,e=>{e.className=$n})),Jo}const ra={},_f="css",yt=new Map;function If(e){yt.set(e,(yt.get(e)||0)+1)}function Ef(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Rs}="${e}"]`).forEach(o=>{var r;o[Gt]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const Mf=0;function Af(e,t){yt.set(e,(yt.get(e)||0)-1);const n=Array.from(yt.keys()),o=n.filter(r=>(yt.get(r)||0)<=0);n.length-o.length>Mf&&o.forEach(r=>{Ef(r,t),yt.delete(r)})}const Rf=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let i=p(p({},r),t);return o&&(i=o(i)),i};function Nf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X({});const o=jo(),r=$(()=>p({},...t.value)),i=$(()=>$o(r.value)),a=$(()=>$o(n.value.override||ra));return Bs("token",$(()=>[n.value.salt||"",e.value.id,i.value,a.value]),()=>{const{salt:u="",override:c=ra,formatToken:d,getComputedToken:s}=n.value,f=s?s(r.value,c,e.value):Rf(r.value,c,e.value,d),m=Of(f,u);f._tokenKey=m,If(m);const g=`${_f}-${ui(m)}`;return f._hashId=g,[f,g]},u=>{var c;Af(u[0]._tokenKey,(c=o.value)===null||c===void 0?void 0:c.cache.instanceId)})}var Df={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},Ks="comm",Vs="rule",Gs="decl",Bf="@import",Hf="@keyframes",jf="@layer",Us=Math.abs,ci=String.fromCharCode;function Xs(e){return e.trim()}function so(e,t,n){return e.replace(t,n)}function zf(e,t,n){return e.indexOf(t,n)}function Xt(e,t){return e.charCodeAt(t)|0}function nn(e,t,n){return e.slice(t,n)}function We(e){return e.length}function Lf(e){return e.length}function Xn(e,t){return t.push(e),e}var Fo=1,on=1,Ys=0,Be=0,ue=0,pn="";function di(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Fo,column:on,length:a,return:"",siblings:l}}function Ff(){return ue}function kf(){return ue=Be>0?Xt(pn,--Be):0,on--,ue===10&&(on=1,Fo--),ue}function Le(){return ue=Be2||In(ue)>3?"":" "}function Gf(e,t){for(;--t&&Le()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ko(e,uo()+(t<6&&at()==32&&Le()==32))}function Pr(e){for(;Le();)switch(ue){case e:return Be;case 34:case 39:e!==34&&e!==39&&Pr(ue);break;case 40:e===41&&Pr(e);break;case 92:Le();break}return Be}function Uf(e,t){for(;Le()&&e+ue!==57;)if(e+ue===84&&at()===47)break;return"/*"+ko(t,Be-1)+"*"+ci(e===47?e:Le())}function Xf(e){for(;!In(at());)Le();return ko(e,Be)}function Yf(e){return Kf(co("",null,null,null,[""],e=Wf(e),0,[0],e))}function co(e,t,n,o,r,i,a,l,u){for(var c=0,d=0,s=a,f=0,m=0,g=0,v=1,x=1,y=1,S=0,w="",T=r,O=i,P=o,C=w;x;)switch(g=S,S=Le()){case 40:if(g!=108&&Xt(C,s-1)==58){zf(C+=so(er(S),"&","&\f"),"&\f",Us(c?l[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=er(S);break;case 9:case 10:case 13:case 32:C+=Vf(g);break;case 92:C+=Gf(uo()-1,7);continue;case 47:switch(at()){case 42:case 47:Xn(qf(Uf(Le(),uo()),t,n,u),u),(In(g||1)==5||In(at()||1)==5)&&We(C)&&nn(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:l[c++]=We(C)*y;case 125*v:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+d:y==-1&&(C=so(C,/\f/g,"")),m>0&&(We(C)-s||v===0&&g===47)&&Xn(m>32?aa(C+";",o,n,s-1,u):aa(so(C," ","")+";",o,n,s-2,u),u);break;case 59:C+=";";default:if(Xn(P=ia(C,t,n,c,d,r,l,w,T=[],O=[],s,i),i),S===123)if(d===0)co(C,t,P,P,T,i,s,l,O);else{switch(f){case 99:if(Xt(C,3)===110)break;case 108:if(Xt(C,2)===97)break;default:d=0;case 100:case 109:case 115:}d?co(e,P,P,o&&Xn(ia(e,P,P,0,0,r,l,w,r,T=[],s,O),O),r,O,s,l,o?T:O):co(C,P,P,P,[""],O,0,l,O)}}c=d=m=0,v=y=1,w=C="",s=a;break;case 58:s=1+We(C),m=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&kf()==125)continue}switch(C+=ci(S),S*v){case 38:y=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(We(C)-1)*y,y=1;break;case 64:at()===45&&(C+=er(Le())),f=at(),d=s=We(w=C+=Xf(uo())),S++;break;case 45:g===45&&We(C)==2&&(v=0)}}return i}function ia(e,t,n,o,r,i,a,l,u,c,d,s){for(var f=r-1,m=r===0?i:[""],g=Lf(m),v=0,x=0,y=0;v0?m[S]+" "+w:so(w,/&\f/g,m[S])))&&(u[y++]=T);return di(e,t,n,r===0?Vs:l,u,c,d,s)}function qf(e,t,n,o){return di(e,t,n,Ks,ci(Ff()),nn(e,2,-2),0,o)}function aa(e,t,n,o,r){return di(e,t,n,Gs,nn(e,0,o),nn(e,o+1,-1),o,r)}function Tr(e,t){for(var n="",o=0;o{const[i,a]=r.split(":");wt[i]=a});const o=document.querySelector(`style[${la}]`);o&&(qs=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function ep(e){return Jf(),!!wt[e]}function tp(e){const t=wt[e];let n=null;if(t&&De())if(qs)n=Zf;else{const o=document.querySelector(`style[${$t}="${wt[e]}"]`);o?n=o.innerHTML:delete wt[e]}return[n,t]}const sa=De(),np="_skip_check_",Qs="_multi_value_";function ua(e){return Tr(Yf(e),Qf).replace(/\{%%%\:[^;];}/g,";")}function op(e){return typeof e=="object"&&e&&(np in e||Qs in e)}function rp(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(a=>{var l;const u=a.trim().split(/\s+/);let c=u[0]||"";const d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c=`${d}${r}${c.slice(d.length)}`,[c,...u.slice(1)].join(" ")}).join(",")}const ca=new Set,_r=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:a,path:l,hashPriority:u,transformers:c=[],linters:d=[]}=t;let s="",f={};function m(x){const y=x.getName(i);if(!f[y]){const[S]=_r(x.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${x.getName(i)}${S}`}}function g(x){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(S=>{Array.isArray(S)?g(S,y):S&&y.push(S)}),y}if(g(Array.isArray(e)?e:[e]).forEach(x=>{const y=typeof x=="string"&&!n?{}:x;if(typeof y=="string")s+=`${y} +`;else if(y._keyframe)m(y);else{const S=c.reduce((w,T)=>{var O;return((O=T==null?void 0:T.visit)===null||O===void 0?void 0:O.call(T,w))||w},y);Object.keys(S).forEach(w=>{var T;const O=S[w];if(typeof O=="object"&&O&&(w!=="animationName"||!O._keyframe)&&!op(O)){let P=!1,C=w.trim(),_=!1;(n||o)&&i?C.startsWith("@")?P=!0:C=rp(w,i,u):n&&!i&&(C==="&"||C==="")&&(C="",_=!0);const[A,E]=_r(O,t,{root:_,injectHash:P,parentSelectors:[...r,C]});f=p(p({},f),E),s+=`${C}${A}`}else{let P=function(_,A){const E=_.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let D=A;!Df[_]&&typeof D=="number"&&D!==0&&(D=`${D}px`),_==="animationName"&&(A!=null&&A._keyframe)&&(m(A),D=A.getName(i)),s+=`${E}:${D};`};const C=(T=O==null?void 0:O.value)!==null&&T!==void 0?T:O;typeof O=="object"&&(O!=null&&O[Qs])&&Array.isArray(C)?C.forEach(_=>{P(w,_)}):P(w,C)}})}}),!n)s=`{${s}}`;else if(a&&Tf()){const x=a.split(",");s=`@layer ${x[x.length-1].trim()} {${s}}`,x.length>1&&(s=`@layer ${a}{%%%:%}${s}`)}return[s,f]};function ip(e,t){return ui(`${e.join("%")}${t}`)}function Ir(e,t){const n=jo(),o=$(()=>e.value.token._tokenKey),r=$(()=>[o.value,...e.value.path]);let i=sa;return Bs("style",r,()=>{const{path:a,hashId:l,layer:u,nonce:c,clientOnly:d,order:s=0}=e.value,f=r.value.join("|");if(ep(f)){const[C,_]=tp(f);if(C)return[C,o.value,_,{},d,s]}const m=t(),{hashPriority:g,container:v,transformers:x,linters:y,cache:S}=n.value,[w,T]=_r(m,{hashId:l,hashPriority:g,layer:u,path:a.join("-"),transformers:x,linters:y}),O=ua(w),P=ip(r.value,O);if(i){const C={mark:$t,prepend:"queue",attachTo:v,priority:s},_=typeof c=="function"?c():c;_&&(C.csp={nonce:_});const A=_n(O,P,C);A[Gt]=S.instanceId,A.setAttribute(Rs,o.value),Object.keys(T).forEach(E=>{ca.has(E)||(ca.add(E),_n(ua(T[E]),`_effect-${E}`,{mark:$t,prepend:"queue",attachTo:v}))})}return[O,o.value,P,T,d,s]},(a,l)=>{let[,,u]=a;(l||n.value.autoClear)&&sa&&xo(u,{mark:$t})}),a=>a}class te{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const ap="4.2.6",wo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ve(e,t){lp(e)&&(e="100%");var n=sp(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Yn(e){return Math.min(1,Math.max(0,e))}function lp(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sp(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Zs(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function St(e){return e.length===1?"0"+e:String(e)}function up(e,t,n){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(n,255)*255}}function da(e,t,n){e=ve(e,255),t=ve(t,255),n=ve(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,l=(o+r)/2;if(o===r)a=0,i=0;else{var u=o-r;switch(a=l>.5?u/(2-o-r):u/(o+r),o){case e:i=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cp(e,t,n){var o,r,i;if(e=ve(e,360),t=ve(t,100),n=ve(n,100),t===0)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=tr(l,a,e+1/3),r=tr(l,a,e),i=tr(l,a,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function Er(e,t,n){e=ve(e,255),t=ve(t,255),n=ve(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,l=o-r,u=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var Ar={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wt(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=vp(e)),typeof e=="object"&&(Xe(e.r)&&Xe(e.g)&&Xe(e.b)?(t=up(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xe(e.h)&&Xe(e.s)&&Xe(e.v)?(o=qn(e.s),r=qn(e.v),t=dp(e.h,o,r),a=!0,l="hsv"):Xe(e.h)&&Xe(e.s)&&Xe(e.l)&&(o=qn(e.s),i=qn(e.l),t=cp(e.h,o,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Zs(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gp="[-\\+]?\\d+%?",hp="[-\\+]?\\d*\\.\\d+%?",lt="(?:".concat(hp,")|(?:").concat(gp,")"),nr="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),or="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),ze={CSS_UNIT:new RegExp(lt),rgb:new RegExp("rgb"+nr),rgba:new RegExp("rgba"+or),hsl:new RegExp("hsl"+nr),hsla:new RegExp("hsla"+or),hsv:new RegExp("hsv"+nr),hsva:new RegExp("hsva"+or),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function vp(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ar[e])e=Ar[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ze.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ze.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ze.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ze.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ze.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ze.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ze.hex8.exec(e),n?{r:Pe(n[1]),g:Pe(n[2]),b:Pe(n[3]),a:fa(n[4]),format:t?"name":"hex8"}:(n=ze.hex6.exec(e),n?{r:Pe(n[1]),g:Pe(n[2]),b:Pe(n[3]),format:t?"name":"hex"}:(n=ze.hex4.exec(e),n?{r:Pe(n[1]+n[1]),g:Pe(n[2]+n[2]),b:Pe(n[3]+n[3]),a:fa(n[4]+n[4]),format:t?"name":"hex8"}:(n=ze.hex3.exec(e),n?{r:Pe(n[1]+n[1]),g:Pe(n[2]+n[2]),b:Pe(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Xe(e){return!!ze.CSS_UNIT.exec(String(e))}var fe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=mp(t)),this.originalInput=t;var r=Wt(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Zs(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Er(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Er(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=da(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=da(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mr(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),fp(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ve(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ve(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mr(this.r,this.g,this.b,!1),n=0,o=Object.entries(Ar);n=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Yn(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Yn(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Yn(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Yn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100,a={r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-Qn*t:Math.round(e.h)+Qn*t:o=n?Math.round(e.h)+Qn*t:Math.round(e.h)-Qn*t,o<0?o+=360:o>=360&&(o-=360),o}function ha(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-pa*t:t===eu?o=e.s+pa:o=e.s+yp*t,o>1&&(o=1),n&&t===Js&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function va(e,t,n){var o;return n?o=e.v+bp*t:o=e.v-Cp*t,o>1&&(o=1),Number(o.toFixed(2))}function _t(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=Wt(e),r=Js;r>0;r-=1){var i=ma(o),a=Zn(Wt({h:ga(i,r,!0),s:ha(i,r,!0),v:va(i,r,!0)}));n.push(a)}n.push(Zn(o));for(var l=1;l<=eu;l+=1){var u=ma(o),c=Zn(Wt({h:ga(u,l),s:ha(u,l),v:va(u,l)}));n.push(c)}return t.theme==="dark"?Sp.map(function(d){var s=d.index,f=d.opacity,m=Zn(xp(Wt(t.backgroundColor||"#141414"),Wt(n[s]),f*100));return m}):n}var rr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fo={},ir={};Object.keys(rr).forEach(function(e){fo[e]=_t(rr[e]),fo[e].primary=fo[e][5],ir[e]=_t(rr[e],{theme:"dark",backgroundColor:"#141414"}),ir[e].primary=ir[e][5]});var $p=fo.blue;const wp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Op(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const tu={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Wo=p(p({},tu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function Pp(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:u,colorBgBase:c,colorTextBase:d}=e,s=n(u),f=n(r),m=n(i),g=n(a),v=n(l),x=o(c,d);return p(p({},x),{colorPrimaryBg:s[1],colorPrimaryBgHover:s[2],colorPrimaryBorder:s[3],colorPrimaryBorderHover:s[4],colorPrimaryHover:s[5],colorPrimary:s[6],colorPrimaryActive:s[7],colorPrimaryTextHover:s[8],colorPrimaryText:s[9],colorPrimaryTextActive:s[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new fe("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Tp=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function _p(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return p({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},Tp(o))}const Ye=(e,t)=>new fe(e).setAlpha(t).toRgbString(),hn=(e,t)=>new fe(e).darken(t).toHexString(),Ip=e=>{const t=_t(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ep=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Ye(o,.88),colorTextSecondary:Ye(o,.65),colorTextTertiary:Ye(o,.45),colorTextQuaternary:Ye(o,.25),colorFill:Ye(o,.15),colorFillSecondary:Ye(o,.06),colorFillTertiary:Ye(o,.04),colorFillQuaternary:Ye(o,.02),colorBgLayout:hn(n,4),colorBgContainer:hn(n,0),colorBgElevated:hn(n,0),colorBgSpotlight:Ye(o,.85),colorBorder:hn(n,15),colorBorderSecondary:hn(n,6)}};function Mp(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,i=e*Math.pow(2.71828,r/5),a=o>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const Ap=e=>{const t=Mp(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Rp(e){const t=Object.keys(tu).map(n=>{const o=_t(e[n]);return new Array(10).fill(1).reduce((r,i,a)=>(r[`${n}-${a+1}`]=o[a],r),{})}).reduce((n,o)=>(n=p(p({},n),o),n),{});return p(p(p(p(p(p(p({},e),t),Pp(e,{generateColorPalettes:Ip,generateNeutralColorPalettes:Ep})),Ap(e.fontSize)),Op(e)),wp(e)),_p(e))}function ar(e){return e>=0&&e<=255}function Jn(e,t){const{r:n,g:o,b:r,a:i}=new fe(e).toRgb();if(i<1)return e;const{r:a,g:l,b:u}=new fe(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),s=Math.round((o-l*(1-c))/c),f=Math.round((r-u*(1-c))/c);if(ar(d)&&ar(s)&&ar(f))return new fe({r:d,g:s,b:f,a:Math.round(c*100)/100}).toRgbString()}return new fe({r:n,g:o,b:r,a:1}).toRgbString()}var Np=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[m]});const r=p(p({},n),o),i=480,a=576,l=768,u=992,c=1200,d=1600,s=2e3;return p(p(p({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Jn(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Jn(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Jn(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Jn(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,screenXXLMax:s-1,screenXXXL:s,screenXXXLMin:s,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` + 0 1px 2px -2px ${new fe("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new fe("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new fe("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Bp=(e,t,n,o,r)=>{const i=e/2,a=0,l=i,u=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),s=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-d,m=s,g=2*i-u,v=c,x=2*i-a,y=l,S=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),w=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${u} ${c} L ${d} ${s} A ${t} ${t} 0 0 1 ${f} ${m} L ${g} ${v} A ${n} ${n} 0 0 0 ${x} ${y} Z')`]},content:'""'}}};function Hp(e,t){return wo.reduce((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],a=e[`${o}-6`],l=e[`${o}-7`];return p(p({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const jp={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Wn=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),nu=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Rr=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zp=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Lp=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ou=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ru=e=>({"&:focus-visible":p({},ou(e))});function et(e,t,n){return o=>{const r=$(()=>o==null?void 0:o.value),[i,a,l]=Kn(),{getPrefixCls:u,iconPrefixCls:c}=ai(),d=$(()=>u()),s=$(()=>({theme:i.value,token:a.value,hashId:l.value,path:["Shared",d.value]}));Ir(s,()=>[{"&":zp(a.value)}]);const f=$(()=>({theme:i.value,token:a.value,hashId:l.value,path:[e,r.value,c.value]}));return[Ir(f,()=>{const{token:m,flush:g}=kp(a.value),v=typeof n=="function"?n(m):n,x=p(p({},v),a.value[e]),y=`.${r.value}`,S=He(m,{componentCls:y,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${d.value}`},x),w=t(S,{hashId:l.value,prefixCls:r.value,rootPrefixCls:d.value,iconPrefixCls:c.value,overrideComponentToken:a.value[e]});return g(e,x),[Lp(a.value,r.value),w]}),l]}}const iu=typeof CSSINJS_STATISTIC<"u";let Nr=!0;function He(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(a=>{Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:()=>r[a]})})}),Nr=!0,o}function Fp(){}function kp(e){let t,n=e,o=Fp;return iu&&(t=new Set,n=new Proxy(e,{get(r,i){return Nr&&t.add(i),r[i]}}),o=(r,i)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const Wp=ks(Rp),au={token:Wo,hashed:!0},lu=Symbol("DesignTokenContext"),Dr=N(),Kp=e=>{ye(lu,e),Y(e,()=>{Dr.value=Ke(e),dd(Dr)},{immediate:!0,deep:!0})},Vp=z({props:{value:oe()},setup(e,t){let{slots:n}=t;return Kp($(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Kn(){const e=ce(lu,$(()=>Dr.value||au)),t=$(()=>`${ap}-${e.value.hashed||""}`),n=$(()=>e.value.theme||Wp),o=Nf(n,$(()=>[Wo,e.value.token]),$(()=>({salt:t.value,override:p({override:e.value.token},e.value.components),formatToken:Dp})));return[n,$(()=>o.value[0]),$(()=>e.value.hashed?o.value[1]:"")]}const fi=z({compatConfig:{MODE:3},setup(){const[,e]=Kn(),t=$(()=>new fe(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>h("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[h("g",{fill:"none","fill-rule":"evenodd"},[h("g",{transform:"translate(24 31.67)"},[h("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),h("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),h("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),h("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),h("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),h("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),h("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[h("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),h("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});fi.PRESENTED_IMAGE_DEFAULT=!0;const su=z({compatConfig:{MODE:3},setup(){const[,e]=Kn(),t=$(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e.value;return{borderColor:new fe(n).onBackground(i).toHexString(),shadowColor:new fe(o).onBackground(i).toHexString(),contentColor:new fe(r).onBackground(i).toHexString()}});return()=>h("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[h("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[h("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),h("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[h("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),h("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});su.PRESENTED_IMAGE_SIMPLE=!0;const Gp=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Up=et("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=He(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[Gp(o)]});var Xp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:oe(),image:wr(),description:wr()}),pi=z({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:Yp(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=Fe("empty",e),[a,l]=Up(i);return()=>{var u,c;const d=i.value,s=p(p({},e),o),{image:f=((u=n.image)===null||u===void 0?void 0:u.call(n))||Jt(fi),description:m=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:g,class:v=""}=s,x=Xp(s,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return a(h(As,{componentName:"Empty",children:w=>{const T=typeof m<"u"?m:w.description,O=typeof T=="string"?T:"empty";let P=null;return typeof y=="string"?P=h("img",{alt:O,src:y},null):P=y,h("div",M({class:q(d,v,l.value,{[`${d}-normal`]:S,[`${d}-rtl`]:r.value==="rtl"})},x),[h("div",{class:`${d}-image`,style:g},[P]),T&&h("p",{class:`${d}-description`},[T]),n.default&&h("div",{class:`${d}-footer`},[kn(n.default())])])}},null))}}});pi.PRESENTED_IMAGE_DEFAULT=()=>Jt(fi);pi.PRESENTED_IMAGE_SIMPLE=()=>Jt(su);const vn=Ho(pi),uu=e=>{const{prefixCls:t}=Fe("empty",e);return(o=>{switch(o){case"Table":case"List":return h(vn,{image:vn.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h(vn,{image:vn.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return h(vn,null,null)}})(e.componentName)};function qp(e){return h(uu,{componentName:e},null)}const cu=Symbol("SizeContextKey"),du=()=>ce(cu,X(void 0)),Qp=e=>{const t=du();return ye(cu,$(()=>e.value||t.value)),e},Fe=(e,t)=>{const n=du(),o=li(),r=ce(ii,p(p({},Is),{renderEmpty:C=>Jt(uu,{componentName:C})})),i=$(()=>r.getPrefixCls(e,t.prefixCls)),a=$(()=>{var C,_;return(C=t.direction)!==null&&C!==void 0?C:(_=r.direction)===null||_===void 0?void 0:_.value}),l=$(()=>{var C;return(C=t.iconPrefixCls)!==null&&C!==void 0?C:r.iconPrefixCls.value}),u=$(()=>r.getPrefixCls()),c=$(()=>{var C;return(C=r.autoInsertSpaceInButton)===null||C===void 0?void 0:C.value}),d=r.renderEmpty,s=r.space,f=r.pageHeader,m=r.form,g=$(()=>{var C,_;return(C=t.getTargetContainer)!==null&&C!==void 0?C:(_=r.getTargetContainer)===null||_===void 0?void 0:_.value}),v=$(()=>{var C,_,A;return(_=(C=t.getContainer)!==null&&C!==void 0?C:t.getPopupContainer)!==null&&_!==void 0?_:(A=r.getPopupContainer)===null||A===void 0?void 0:A.value}),x=$(()=>{var C,_;return(C=t.dropdownMatchSelectWidth)!==null&&C!==void 0?C:(_=r.dropdownMatchSelectWidth)===null||_===void 0?void 0:_.value}),y=$(()=>{var C;return(t.virtual===void 0?((C=r.virtual)===null||C===void 0?void 0:C.value)!==!1:t.virtual!==!1)&&x.value!==!1}),S=$(()=>t.size||n.value),w=$(()=>{var C,_,A;return(C=t.autocomplete)!==null&&C!==void 0?C:(A=(_=r.input)===null||_===void 0?void 0:_.value)===null||A===void 0?void 0:A.autocomplete}),T=$(()=>{var C;return(C=t.disabled)!==null&&C!==void 0?C:o.value}),O=$(()=>{var C;return(C=t.csp)!==null&&C!==void 0?C:r.csp}),P=$(()=>{var C,_;return(C=t.wave)!==null&&C!==void 0?C:(_=r.wave)===null||_===void 0?void 0:_.value});return{configProvider:r,prefixCls:i,direction:a,size:S,getTargetContainer:g,getPopupContainer:v,space:s,pageHeader:f,form:m,autoInsertSpaceInButton:c,renderEmpty:d,virtual:y,dropdownMatchSelectWidth:x,rootPrefixCls:u,getPrefixCls:r.getPrefixCls,autocomplete:w,csp:O,iconPrefixCls:l,disabled:T,select:r.select,wave:P}};function fu(e,t){const n=p({},e);for(let o=0;o=0||(r[n]=e[n]);return r}function ya(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var hu=Object.prototype,vu=hu.toString,Jp=hu.hasOwnProperty,yu=/^\s*function (\w+)/;function ba(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(yu);return o?o[1]:""}return""}var It=function(e){var t,n;return ya(e)!==!1&&typeof(t=e.constructor)=="function"&&ya(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},em=function(e){return e},Se=em,En=function(e,t){return Jp.call(e,t)},tm=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},rn=Array.isArray||function(e){return vu.call(e)==="[object Array]"},an=function(e){return vu.call(e)==="[object Function]"},Oo=function(e){return It(e)&&En(e,"_vueTypes_name")},bu=function(e){return It(e)&&(En(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return En(e,t)}))};function mi(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Nt(e,t,n){var o;n===void 0&&(n=!1);var r=!0,i="";o=It(e)?e:{type:e};var a=Oo(o)?o._vueTypes_name+" - ":"";if(bu(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;rn(o.type)?(r=o.type.some(function(s){return Nt(s,t,!0)===!0}),i=o.type.map(function(s){return ba(s)}).join(" or ")):r=(i=ba(o))==="Array"?rn(t):i==="Object"?It(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(s){if(s==null)return"";var f=s.constructor.toString().match(yu);return f?f[1]:""}(t)===i:t instanceof o.type}if(!r){var l=a+'value "'+t+'" should be of type "'+i+'"';return n===!1?(Se(l),!1):l}if(En(o,"validator")&&an(o.validator)){var u=Se,c=[];if(Se=function(s){c.push(s)},r=o.validator(t),Se=u,!r){var d=(c.length>1?"* ":"")+c.join(` +* `);return c.length=0,n===!1?(Se(d),r):d}}return r}function _e(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?an(r)||Nt(this,r,!0)===!0?(this.default=rn(r)?function(){return[].concat(r)}:It(r)?function(){return Object.assign({},r)}:r,this):(Se(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return an(o)&&(n.validator=mi(o,n)),n}function Ue(e,t){var n=_e(e,t);return Object.defineProperty(n,"validate",{value:function(o){return an(this.validator)&&Se(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=mi(o,this),this}})}function Ca(e,t,n){var o,r,i=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(s){r[s]=Object.getOwnPropertyDescriptor(o,s)}),Object.defineProperties({},r));if(i._vueTypes_name=e,!It(n))return i;var a,l,u=n.validator,c=gu(n,["validator"]);if(an(u)){var d=i.validator;d&&(d=(l=(a=d).__original)!==null&&l!==void 0?l:a),i.validator=mi(d?function(s){return d.call(this,s)&&u.call(this,s)}:u,i)}return Object.assign(i,c)}function Ko(e){return e.replace(/^(?!\s*$)/gm," ")}var nm=function(){return Ue("any",{})},om=function(){return Ue("function",{type:Function})},rm=function(){return Ue("boolean",{type:Boolean})},im=function(){return Ue("string",{type:String})},am=function(){return Ue("number",{type:Number})},lm=function(){return Ue("array",{type:Array})},sm=function(){return Ue("object",{type:Object})},um=function(){return _e("integer",{type:Number,validator:function(e){return tm(e)}})},cm=function(){return _e("symbol",{validator:function(e){return typeof e=="symbol"}})};function dm(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return _e(e.name||"<>",{validator:function(n){var o=e(n);return o||Se(this._vueTypes_name+" - "+t),o}})}function fm(e){if(!rn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var i=r.constructor;o.indexOf(i)===-1&&o.push(i)}return o},[]);return _e("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||Se(t),r}})}function pm(e){if(!rn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(u){return a.indexOf(u)===-1})){var l=n.filter(function(u){return a.indexOf(u)===-1});return Se(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return a.every(function(u){if(t.indexOf(u)===-1)return i._vueTypes_isLoose===!0||(Se('shape - shape definition does not include a "'+u+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Nt(e[u],r[u],!0);return typeof c=="string"&&Se('shape - "'+u+`" property validation error: + `+Ko(c)),c===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var ke=function(){function e(){}return e.extend=function(t){var n=this;if(rn(t))return t.forEach(function(s){return n.extend(s)}),this;var o=t.name,r=t.validate,i=r!==void 0&&r,a=t.getter,l=a!==void 0&&a,u=gu(t,["name","validate","getter"]);if(En(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,d=u.type;return Oo(d)?(delete u.type,Object.defineProperty(this,o,l?{get:function(){return Ca(o,d,u)}}:{value:function(){var s,f=Ca(o,d,u);return f.validator&&(f.validator=(s=f.validator).bind.apply(s,[f].concat([].slice.call(arguments)))),f}})):(c=l?{get:function(){var s=Object.assign({},u);return i?Ue(o,s):_e(o,s)},enumerable:!0}:{value:function(){var s,f,m=Object.assign({},u);return s=i?Ue(o,m):_e(o,m),m.validator&&(s.validator=(f=m.validator).bind.apply(f,[s].concat([].slice.call(arguments)))),s},enumerable:!0},Object.defineProperty(this,o,c))},pu(e,null,[{key:"any",get:function(){return nm()}},{key:"func",get:function(){return om().def(this.defaults.func)}},{key:"bool",get:function(){return rm().def(this.defaults.bool)}},{key:"string",get:function(){return im().def(this.defaults.string)}},{key:"number",get:function(){return am().def(this.defaults.number)}},{key:"array",get:function(){return lm().def(this.defaults.array)}},{key:"object",get:function(){return sm().def(this.defaults.object)}},{key:"integer",get:function(){return um().def(this.defaults.integer)}},{key:"symbol",get:function(){return cm()}}]),e}();function Cu(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function o(){return n.apply(this,arguments)||this}return mu(o,n),pu(o,null,[{key:"sensibleDefaults",get:function(){return po({},this.defaults)},set:function(r){this.defaults=r!==!1?po({},r!==!0?r:e):{}}}]),o}(ke)).defaults=po({},e),t}ke.defaults={},ke.custom=dm,ke.oneOf=fm,ke.instanceOf=gm,ke.oneOfType=pm,ke.arrayOf=mm,ke.objectOf=hm,ke.shape=vm,ke.utils={validate:function(e,t){return Nt(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Ue(e,t):_e(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return mu(t,e),t})(Cu());const H=Cu({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});H.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const ln=(e,t,n)=>{$f(e,`[ant-design-vue: ${t}] ${n}`)};function ym(){return""}function bm(e){return e?e.ownerDocument:window.document}function Su(){}const Cm=()=>({action:H.oneOfType([H.string,H.arrayOf(H.string)]).def([]),showAction:H.any.def([]),hideAction:H.any.def([]),getPopupClassNameFromAlign:H.any.def(ym),onPopupVisibleChange:Function,afterPopupVisibleChange:H.func.def(Su),popup:H.any,arrow:H.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:H.string.def("rc-trigger-popup"),popupClassName:H.string.def(""),popupPlacement:String,builtinPlacements:H.object,popupTransitionName:String,popupAnimation:H.any,mouseEnterDelay:H.number.def(0),mouseLeaveDelay:H.number.def(.1),zIndex:Number,focusDelay:H.number.def(0),blurDelay:H.number.def(.15),getPopupContainer:Function,getDocument:H.func.def(bm),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:H.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),gi={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Sm=p(p({},gi),{mobile:{type:Object}}),xm=p(p({},gi),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function hi(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function xu(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:a}=e;if(!r)return null;let l={};return(a||i)&&(l=hi({prefixCls:t,transitionName:a,animation:i})),h(ft,M({appear:!0},l),{default:()=>[Fn(h("div",{style:{zIndex:o},class:`${t}-mask`},null),[[fd("if"),n]])]})}xu.displayName="Mask";const $m=z({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Sm,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=X();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:a,visible:l,prefixCls:u,mobile:{popupClassName:c,popupStyle:d,popupMotion:s={},popupRender:f}={}}=e,m=p({zIndex:a},d);let g=Te((i=o.default)===null||i===void 0?void 0:i.call(o));g.length>1&&(g=h("div",{class:`${u}-content`},[g])),f&&(g=f(g));const v=q(u,c);return h(ft,M({ref:r},s),{default:()=>[l?h("div",{class:v,style:m},[g]):null]})}}});var wm=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(s){a(s)}}function u(d){try{c(o.throw(d))}catch(s){a(s)}}function c(d){d.done?i(d.value):r(d.value).then(l,u)}c((o=o.apply(e,t||[])).next())})};const Sa=["measure","align",null,"motion"],Om=(e,t)=>{const n=N(null),o=N(),r=N(!1);function i(u){r.value||(n.value=u)}function a(){Ce.cancel(o.value)}function l(u){a(),o.value=Ce(()=>{let c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}i(c),u==null||u()})}return Y(e,()=>{i("measure")},{immediate:!0,flush:"post"}),je(()=>{Y(n,()=>{switch(n.value){case"measure":t();break}n.value&&(o.value=Ce(()=>wm(void 0,void 0,void 0,function*(){const u=Sa.indexOf(n.value),c=Sa[u+1];c&&u!==-1&&i(c)})))},{immediate:!0,flush:"post"})}),$e(()=>{r.value=!0,a()}),[n,l]},Pm=e=>{const t=N({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[$(()=>{const r={};if(e.value){const{width:i,height:a}=t.value;e.value.indexOf("height")!==-1&&a?r.height=`${a}px`:e.value.indexOf("minHeight")!==-1&&a&&(r.minHeight=`${a}px`),e.value.indexOf("width")!==-1&&i?r.width=`${i}px`:e.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function $a(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ym(e,t,n,o){var r=V.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),V.mix(r,i)}function Ci(e){var t,n,o;if(!V.isWindow(e)&&e.nodeType!==9)t=V.offset(e),n=V.outerWidth(e),o=V.outerHeight(e);else{var r=V.getWindow(e);t={left:V.getWindowScrollLeft(r),top:V.getWindowScrollTop(r)},n=V.viewportWidth(r),o=V.viewportHeight(r)}return t.width=n,t.height=o,t}function Ma(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,l=e.top;return n==="c"?l+=i/2:n==="b"&&(l+=i),o==="c"?a+=r/2:o==="r"&&(a+=r),{left:a,top:l}}function to(e,t,n,o,r){var i=Ma(t,n[1]),a=Ma(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+o[0]-r[0]),top:Math.round(e.top-l[1]+o[1]-r[1])}}function Aa(e,t,n){return e.leftn.right}function Ra(e,t,n){return e.topn.bottom}function qm(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function Si(e,t,n){var o=n.target||t,r=Ci(o),i=!Zm(o,n.overflow&&n.overflow.alwaysByViewport);return Eu(e,r,n,i)}Si.__getOffsetParent=zr;Si.__getVisibleRectForElement=bi;function Jm(e,t,n){var o,r,i=V.getDocument(e),a=i.defaultView||i.parentWindow,l=V.getWindowScrollLeft(a),u=V.getWindowScrollTop(a),c=V.viewportWidth(a),d=V.viewportHeight(a);"pageX"in t?o=t.pageX:o=l+t.clientX,"pageY"in t?r=t.pageY:r=u+t.clientY;var s={left:o,top:r,width:0,height:0},f=o>=0&&o<=l+c&&r>=0&&r<=u+d,m=[n.points[0],"cc"];return Eu(e,s,$a($a({},n),{},{points:m}),f)}function Et(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=kn(e)[0]),!r)return null;const i=gs(r,t,o);return i.props=n?p(p({},i.props),t):i.props,Lo(typeof i.props.class!="object"),i}function eg(e,t,n){dt(gs(e,p({},t)),n)}const Mu=e=>(e||[]).some(t=>dn(t)?!(t.type===ps||t.type===Ne&&!Mu(t.children)):!0)?e:null;function nS(e,t,n,o){var r;const i=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return Mu(i)?i:o==null?void 0:o()}const Au=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function tg(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function ng(e,t){e!==document.activeElement&&it(t,e)&&typeof e.focus=="function"&&e.focus()}function Ba(e,t){let n=null,o=null;function r(a){let[{target:l}]=a;if(!document.documentElement.contains(l))return;const{width:u,height:c}=l.getBoundingClientRect(),d=Math.floor(u),s=Math.floor(c);(n!==d||o!==s)&&Promise.resolve().then(()=>{t({width:d,height:s})}),n=d,o=s}const i=new $s(r);return e&&i.observe(e),()=>{i.disconnect()}}const og=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(a){if(!n||a===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,i()},t.value)}return[i,()=>{n=!1,r()}]};function rg(){this.__data__=[],this.size=0}function Ru(e,t){return e===t||e!==e&&t!==t}function Go(e,t){for(var n=e.length;n--;)if(Ru(e[n][0],t))return n;return-1}var ig=Array.prototype,ag=ig.splice;function lg(e){var t=this.__data__,n=Go(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ag.call(t,n,1),--this.size,!0}function sg(e){var t=this.__data__,n=Go(t,e);return n<0?void 0:t[n][1]}function ug(e){return Go(this.__data__,e)>-1}function cg(e,t){var n=this.__data__,o=Go(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function tt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var s=-1,f=!0,m=n&ch?new Nn:void 0;for(i.set(e,t),i.set(t,e);++s-1&&e%1==0&&e-1&&e%1==0&&e<=Wh}var Kh="[object Arguments]",Vh="[object Array]",Gh="[object Boolean]",Uh="[object Date]",Xh="[object Error]",Yh="[object Function]",qh="[object Map]",Qh="[object Number]",Zh="[object Object]",Jh="[object RegExp]",ev="[object Set]",tv="[object String]",nv="[object WeakMap]",ov="[object ArrayBuffer]",rv="[object DataView]",iv="[object Float32Array]",av="[object Float64Array]",lv="[object Int8Array]",sv="[object Int16Array]",uv="[object Int32Array]",cv="[object Uint8Array]",dv="[object Uint8ClampedArray]",fv="[object Uint16Array]",pv="[object Uint32Array]",ie={};ie[iv]=ie[av]=ie[lv]=ie[sv]=ie[uv]=ie[cv]=ie[dv]=ie[fv]=ie[pv]=!0;ie[Kh]=ie[Vh]=ie[ov]=ie[Gh]=ie[rv]=ie[Uh]=ie[Xh]=ie[Yh]=ie[qh]=ie[Qh]=ie[Zh]=ie[Jh]=ie[ev]=ie[tv]=ie[nv]=!1;function mv(e){return Bn(e)&&Wu(e.length)&&!!ie[Gn(e)]}function gv(e){return function(t){return e(t)}}var Ku=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wn=Ku&&typeof module=="object"&&module&&!module.nodeType&&module,hv=wn&&wn.exports===Ku,pr=hv&&Nu.process,Va=function(){try{var e=wn&&wn.require&&wn.require("util").types;return e||pr&&pr.binding&&pr.binding("util")}catch{}}(),Ga=Va&&Va.isTypedArray,$i=Ga?gv(Ga):mv,vv=Object.prototype,yv=vv.hasOwnProperty;function bv(e,t){var n=Dn(e),o=!n&&Fu(e),r=!n&&!o&&To(e),i=!n&&!o&&!r&&$i(e),a=n||o||r||i,l=a?Rh(e.length,String):[],u=l.length;for(var c in e)yv.call(e,c)&&!(a&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kh(c,u)))&&l.push(c);return l}var Cv=Object.prototype;function Vu(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Cv;return e===n}function Sv(e,t){return function(n){return e(t(n))}}var xv=Sv(Object.keys,Object),$v=Object.prototype,wv=$v.hasOwnProperty;function Gu(e){if(!Vu(e))return xv(e);var t=[];for(var n in Object(e))wv.call(e,n)&&n!="constructor"&&t.push(n);return t}function Uu(e){return e!=null&&Wu(e.length)&&!Hu(e)}function Ov(e){return Uu(e)?bv(e):Gu(e)}function Ua(e){return Th(e,Ov,Ah)}var Pv=1,Tv=Object.prototype,_v=Tv.hasOwnProperty;function Iv(e,t,n,o,r,i){var a=n&Pv,l=Ua(e),u=l.length,c=Ua(t),d=c.length;if(u!=d&&!a)return!1;for(var s=u;s--;){var f=l[s];if(!(a?f in t:_v.call(t,f)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var x=a;++s{const{disabled:f,target:m,align:g,onAlign:v}=e;if(!f&&m&&i.value){const x=i.value;let y;const S=nl(m),w=ol(m);r.value.element=S,r.value.point=w,r.value.align=g;const{activeElement:T}=document;return S&&Au(S)?y=Si(x,S,g):w&&(y=Jm(x,w,g)),ng(T,x),v&&y&&v(x,y),!0}return!1},$(()=>e.monitorBufferTime)),u=X({cancel:()=>{}}),c=X({cancel:()=>{}}),d=()=>{const f=e.target,m=nl(f),g=ol(f);i.value!==c.value.element&&(c.value.cancel(),c.value.element=i.value,c.value.cancel=Ba(i.value,a)),(r.value.element!==m||!tg(r.value.point,g)||!zv(r.value.align,e.align))&&(a(),u.value.element!==m&&(u.value.cancel(),u.value.element=m,u.value.cancel=Ba(m,a)))};je(()=>{Ge(()=>{d()})}),Ln(()=>{Ge(()=>{d()})}),Y(()=>e.disabled,f=>{f?l():a()},{immediate:!0,flush:"post"});const s=X(null);return Y(()=>e.monitorWindowResize,f=>{f?s.value||(s.value=Vt(window,"resize",a)):s.value&&(s.value.remove(),s.value=null)},{flush:"post"}),No(()=>{u.value.cancel(),c.value.cancel(),s.value&&s.value.remove(),l()}),n({forceAlign:()=>a(!0)}),()=>{const f=o==null?void 0:o.default();return f?Et(f[0],{ref:i},!0,!0):null}}});So("bottomLeft","bottomRight","topLeft","topRight");const oS=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Xo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},Yu=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},Hn=(e,t,n)=>n!==void 0?n:`${e}-${t}`,kv=z({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:gi,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=N(),a=N(),l=N(),[u,c]=Pm(Cr(e,"stretch")),d=()=>{e.stretch&&c(e.getRootDomNode())},s=N(!1);let f;Y(()=>e.visible,P=>{clearTimeout(f),P?f=setTimeout(()=>{s.value=e.visible}):s.value=!1},{immediate:!0});const[m,g]=Om(s,d),v=N(),x=()=>e.point?e.point:e.getRootDomNode,y=()=>{var P;(P=i.value)===null||P===void 0||P.forceAlign()},S=(P,C)=>{var _;const A=e.getClassNameFromAlign(C),E=l.value;l.value!==A&&(l.value=A),m.value==="align"&&(E!==A?Promise.resolve().then(()=>{y()}):g(()=>{var D;(D=v.value)===null||D===void 0||D.call(v)}),(_=e.onAlign)===null||_===void 0||_.call(e,P,C))},w=$(()=>{const P=typeof e.animation=="object"?e.animation:hi(e);return["onAfterEnter","onAfterLeave"].forEach(C=>{const _=P[C];P[C]=A=>{g(),m.value="stable",_==null||_(A)}}),P}),T=()=>new Promise(P=>{v.value=P});Y([w,m],()=>{!w.value&&m.value==="motion"&&g()},{immediate:!0}),n({forceAlign:y,getElement:()=>a.value.$el||a.value});const O=$(()=>{var P;return!(!((P=e.align)===null||P===void 0)&&P.points&&(m.value==="align"||m.value==="stable"))});return()=>{var P;const{zIndex:C,align:_,prefixCls:A,destroyPopupOnHide:E,onMouseenter:D,onMouseleave:k,onTouchstart:W=()=>{},onMousedown:G}=e,b=m.value,I=[p(p({},u.value),{zIndex:C,opacity:b==="motion"||b==="stable"||!s.value?null:0,pointerEvents:!s.value&&b!=="stable"?"none":null}),o.style];let B=Te((P=r.default)===null||P===void 0?void 0:P.call(r,{visible:e.visible}));B.length>1&&(B=h("div",{class:`${A}-content`},[B]));const j=q(A,o.class,l.value,!e.arrow&&`${A}-arrow-hidden`),ne=s.value||!e.visible?Xo(w.value.name,w.value):{};return h(ft,M(M({ref:a},ne),{},{onBeforeEnter:T}),{default:()=>!E||e.visible?Fn(h(Fv,{target:x(),key:"popup",ref:i,monitorWindowResize:!0,disabled:O.value,align:_,onAlign:S},{default:()=>h("div",{class:j,onMouseenter:D,onMouseleave:k,onMousedown:Wi(G,["capture"]),[Ct?"onTouchstartPassive":"onTouchstart"]:Wi(W,["capture"]),style:I},[B])}),[[Do,s.value]]):null})}}}),Wv=z({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:xm,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=N(!1),a=N(!1),l=N(),u=N();return Y([()=>e.visible,()=>e.mobile],()=>{i.value=e.visible,e.visible&&e.mobile&&(a.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),()=>{const c=p(p(p({},e),n),{visible:i.value}),d=a.value?h($m,M(M({},c),{},{mobile:e.mobile,ref:l}),{default:o.default}):h(kv,M(M({},c),{},{ref:l}),{default:o.default});return h("div",{ref:u},[h(xu,c,null),d])}}});function Kv(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function rl(e,t,n){const o=e[t]||{};return p(p({},o),n)}function Vv(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(ef(this),p(p({},this.$data),n));if(o===null)return;n=p(p({},n),o||{})}p(this.$data,n),this._.isMounted&&this.$forceUpdate(),Ge(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};ye(qu,{inTriggerContext:t.inTriggerContext,shouldRender:$(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:i}=e||{};let a=!1;return(n||o||r)&&(a=!0),!n&&i&&(a=!1),a})})},Uv=()=>{wi({},{inTriggerContext:!1});const e=ce(qu,{shouldRender:$(()=>!1),inTriggerContext:!1});return{shouldRender:$(()=>e.shouldRender.value||e.inTriggerContext===!1)}},Qu=z({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:H.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:i}=Uv();function a(){i.value&&(r=e.getContainer())}pd(()=>{o=!1,a()}),je(()=>{r||a()});const l=Y(i,()=>{i.value&&!r&&(r=e.getContainer()),r&&l()});return Ln(()=>{Ge(()=>{var u;i.value&&((u=e.didUpdate)===null||u===void 0||u.call(e,e))})}),()=>{var u;return i.value?o?(u=n.default)===null||u===void 0?void 0:u.call(n):r?h(Jr,{to:r},n):null:null}}});let mr;function Zu(e){if(typeof document>"u")return 0;if(mr===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),mr=r-i}return mr}function il(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Zu():n}function rS(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:il(t),height:il(n)}}const Xv=`vc-util-locker-${Date.now()}`;let al=0;function Yv(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function qv(e){const t=$(()=>!!e&&!!e.value);al+=1;const n=`${Xv}_${al}`;Ae(o=>{if(De()){if(t.value){const r=Zu(),i=Yv();_n(` +html body { + overflow-y: hidden; + ${i?`width: calc(100% - ${r}px);`:""} +}`,n)}else xo(n);o(()=>{xo(n)})}},{flush:"post"})}let ht=0;const mo=De(),ll=e=>{if(!mo)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ju=z({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:H.any,visible:{type:Boolean,default:void 0},autoLock:Ut(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=N(),r=N(),i=N(),a=N(1),l=De()&&document.createElement("div"),u=()=>{var m,g;o.value===l&&((g=(m=o.value)===null||m===void 0?void 0:m.parentNode)===null||g===void 0||g.removeChild(o.value)),o.value=null};let c=null;const d=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(c=ll(e.getContainer),c?(c.appendChild(o.value),!0):!1):!0},s=()=>mo?(o.value||(o.value=l,d(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:m}=e;o.value&&m&&m!==o.value.className&&(o.value.className=m)};return Ln(()=>{f(),d()}),qv($(()=>e.autoLock&&e.visible&&De()&&(o.value===document.body||o.value===l))),je(()=>{let m=!1;Y([()=>e.visible,()=>e.getContainer],(g,v)=>{let[x,y]=g,[S,w]=v;mo&&(c=ll(e.getContainer),c===document.body&&(x&&!S?ht+=1:m&&(ht-=1))),m&&(typeof y=="function"&&typeof w=="function"?y.toString()!==w.toString():y!==w)&&u(),m=!0},{immediate:!0,flush:"post"}),Ge(()=>{d()||(i.value=Ce(()=>{a.value+=1}))})}),$e(()=>{const{visible:m}=e;mo&&c===document.body&&(ht=m&&ht?ht-1:ht),u(),Ce.cancel(i.value)}),()=>{const{forceRender:m,visible:g}=e;let v=null;const x={getOpenCount:()=>ht,getContainer:s};return a.value&&(m||g||r.value)&&(v=h(Qu,{getContainer:s,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,x)}})),v}}}),Qv=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],ec=z({compatConfig:{MODE:3},name:"Trigger",mixins:[Gv],inheritAttrs:!1,props:Cm(),setup(e){const t=$(()=>{const{popupPlacement:r,popupAlign:i,builtinPlacements:a}=e;return r&&a?rl(a,r,i):i}),n=N(null),o=r=>{n.value=r};return{vcTriggerContext:ce("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:N(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,Qv.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){ye("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),wi(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ce.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Vt(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Vt(n,"touchstart",this.onDocumentClick,Ct?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Vt(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Vt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&it((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){it(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!it(n,t)||this.isContextMenuOnly())&&!it(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const i=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Qe(this.triggerRef);return Qe(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Qe(this.triggerRef);if(i)return i}catch{}return Qe(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:a,getPopupClassNameFromAlign:l}=n;return o&&r&&t.push(Vv(r,i,e,a)),l&&t.push(l(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?rl(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Ct?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:a,popupAnimation:l,popupTransitionName:u,popupStyle:c,mask:d,maskAnimation:s,maskTransitionName:f,zIndex:m,stretch:g,alignPoint:v,mobile:x,arrow:y,forceRender:S}=this.$props,{sPopupVisible:w,point:T}=this.$data,O=p(p({prefixCls:r,arrow:y,destroyPopupOnHide:i,visible:w,point:v?T:null,align:this.align,animation:l,getClassNameFromAlign:t,stretch:g,getRootDomNode:n,mask:d,zIndex:m,transitionName:u,maskAnimation:s,maskTransitionName:f,class:a,style:c,onAlign:o.onPopupAlign||Su},e),{ref:this.setPopupRef,mobile:x,forceRender:S});return h(Wv,O,{default:this.$slots.popup||(()=>tf(this,"popup"))})},attachParent(e){Ce.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Ce(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Qd(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=Ui(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=kn(Jd(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=Ui(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[Ct?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Ct?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=c=>{c&&(!c.relatedTarget||!it(c.target,c.relatedTarget))&&this.createTwoChains("onBlur")(c)});const a=q(r&&r.props&&r.props.class,e.class);a&&(i.class=a);const l=Et(r,p(p({},i),{ref:"triggerRef"}),!0,!0),u=h(Ju,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return h(Ne,null,[l,u])}}),L={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,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,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=L.F1&&n<=L.F12)return!1;switch(n){case L.ALT:case L.CAPS_LOCK:case L.CONTEXT_MENU:case L.CTRL:case L.DOWN:case L.END:case L.ESC:case L.HOME:case L.INSERT:case L.LEFT:case L.MAC_FF_META:case L.META:case L.NUMLOCK:case L.NUM_CENTER:case L.PAGE_DOWN:case L.PAGE_UP:case L.PAUSE:case L.PRINT_SCREEN:case L.RIGHT:case L.SHIFT:case L.UP:case L.WIN_KEY:case L.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=L.ZERO&&t<=L.NINE||t>=L.NUM_ZERO&&t<=L.NUM_MULTIPLY||t>=L.A&&t<=L.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case L.SPACE:case L.QUESTION_MARK:case L.NUM_PLUS:case L.NUM_MINUS:case L.NUM_PERIOD:case L.NUM_DIVISION:case L.SEMICOLON:case L.DASH:case L.EQUALS:case L.COMMA:case L.PERIOD:case L.SLASH:case L.APOSTROPHE:case L.SINGLE_QUOTE:case L.OPEN_SQUARE_BRACKET:case L.BACKSLASH:case L.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Zv=`accept acceptcharset accesskey action allowfullscreen allowtransparency +alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge +charset checked classid classname colspan cols content contenteditable contextmenu +controls coords crossorigin data datetime default defer dir disabled download draggable +enctype form formaction formenctype formmethod formnovalidate formtarget frameborder +headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity +is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media +mediagroup method min minlength multiple muted name novalidate nonce open +optimum pattern placeholder poster preload radiogroup readonly rel required +reversed role rowspan rows sandbox scope scoped scrolling seamless selected +shape size sizes span spellcheck src srcdoc srclang srcset start step style +summary tabindex target title type usemap value width wmode wrap`,Jv=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown + onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick + onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown + onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel + onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough + onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,sl=`${Zv} ${Jv}`.split(/[\s\n]+/),ey="aria-",ty="data-";function ul(e,t){return e.indexOf(t)===0}function ny(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=p({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||ul(r,ey))||n.data&&ul(r,ty)||n.attr&&(sl.includes(r)||sl.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const tc=Symbol("OverflowContextProviderKey"),Wr=z({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return ye(tc,$(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),oy=()=>ce(tc,$(()=>null));var ry=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),i=X();o({itemNodeRef:i});function a(l){e.registerSize(e.itemKey,l)}return No(()=>{a(null)}),()=>{var l;const{prefixCls:u,invalidate:c,item:d,renderItem:s,responsive:f,registerSize:m,itemKey:g,display:v,order:x,component:y="div"}=e,S=ry(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),w=(l=n.default)===null||l===void 0?void 0:l.call(n),T=s&&d!==Ft?s(d):w;let O;c||(O={opacity:r.value?0:1,height:r.value?0:Ft,overflowY:r.value?"hidden":Ft,order:f?x:Ft,pointerEvents:r.value?"none":Ft,position:r.value?"absolute":Ft});const P={};return r.value&&(P["aria-hidden"]=!0),h(Os,{disabled:!f,onResize:C=>{let{offsetWidth:_}=C;a(_)}},{default:()=>h(y,M(M(M({class:q(!c&&u),style:O},P),S),{},{ref:i}),{default:()=>[T]})})}}});var gr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var i;if(!r.value){const{component:s="div"}=e,f=gr(e,["component"]);return h(s,M(M({},f),o),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}const a=r.value,{className:l}=a,u=gr(a,["className"]),{class:c}=o,d=gr(o,["class"]);return h(Wr,{value:null},{default:()=>[h(go,M(M(M({class:q(l,c)},u),d),e),n)]})}}});var ay=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:H.any,component:String,itemComponent:H.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),ct=z({name:"Overflow",inheritAttrs:!1,props:sy(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=$(()=>e.ssr==="full"),a=N(null),l=$(()=>a.value||0),u=N(new Map),c=N(0),d=N(0),s=N(0),f=N(null),m=N(null),g=$(()=>m.value===null&&i.value?Number.MAX_SAFE_INTEGER:m.value||0),v=N(!1),x=$(()=>`${e.prefixCls}-item`),y=$(()=>Math.max(c.value,d.value)),S=$(()=>!!(e.data.length&&e.maxCount===nc)),w=$(()=>e.maxCount===oc),T=$(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),O=$(()=>{let b=e.data;return S.value?a.value===null&&i.value?b=e.data:b=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(b=e.data.slice(0,e.maxCount)),b}),P=$(()=>S.value?e.data.slice(g.value+1):e.data.slice(O.value.length)),C=(b,I)=>{var B;return typeof e.itemKey=="function"?e.itemKey(b):(B=e.itemKey&&(b==null?void 0:b[e.itemKey]))!==null&&B!==void 0?B:I},_=$(()=>e.renderItem||(b=>b)),A=(b,I)=>{m.value=b,I||(v.value=b{a.value=I.clientWidth},D=(b,I)=>{const B=new Map(u.value);I===null?B.delete(b):B.set(b,I),u.value=B},k=(b,I)=>{c.value=d.value,d.value=I},W=(b,I)=>{s.value=I},G=b=>u.value.get(C(O.value[b],b));return Y([l,u,d,s,()=>e.itemKey,O],()=>{if(l.value&&y.value&&O.value){let b=s.value;const I=O.value.length,B=I-1;if(!I){A(0),f.value=null;return}for(let j=0;jl.value){A(j-1),f.value=b-Q-s.value+d.value;break}}e.suffix&&G(0)+s.value>l.value&&(f.value=null)}}),()=>{const b=v.value&&!!P.value.length,{itemComponent:I,renderRawItem:B,renderRawRest:j,renderRest:Q,prefixCls:ne="rc-overflow",suffix:F,component:J="div",id:re,onMousedown:be}=e,{class:de,style:ge}=n,R=ay(n,["class","style"]);let K={};f.value!==null&&S.value&&(K={position:"absolute",left:`${f.value}px`,top:0});const U={prefixCls:x.value,responsive:S.value,component:I,invalidate:w.value},ae=B?(se,Ie)=>{const mt=C(se,Ie);return h(Wr,{key:mt,value:p(p({},U),{order:Ie,item:se,itemKey:mt,registerSize:D,display:Ie<=g.value})},{default:()=>[B(se,Ie)]})}:(se,Ie)=>{const mt=C(se,Ie);return h(go,M(M({},U),{},{order:Ie,key:mt,item:se,renderItem:_.value,itemKey:mt,registerSize:D,display:Ie<=g.value}),null)};let le=()=>null;const ee={order:b?g.value:Number.MAX_SAFE_INTEGER,className:`${x.value} ${x.value}-rest`,registerSize:k,display:b};if(j)j&&(le=()=>h(Wr,{value:p(p({},U),ee)},{default:()=>[j(P.value)]}));else{const se=Q||ly;le=()=>h(go,M(M({},U),ee),{default:()=>typeof se=="function"?se(P.value):se})}const we=()=>{var se;return h(J,M({id:re,class:q(!w.value&&ne,de),style:ge,onMousedown:be,role:e.role},R),{default:()=>[O.value.map(ae),T.value?le():null,F&&h(go,M(M({},U),{},{order:g.value,class:`${x.value}-suffix`,registerSize:W,display:!0,style:K}),{default:()=>F}),(se=r.default)===null||se===void 0?void 0:se.call(r)]})};return h(Os,{disabled:!S.value,onResize:E},{default:we})}}});ct.Item=iy;ct.RESPONSIVE=nc;ct.INVALIDATE=oc;function vt(e){const t=typeof e=="function"?e():e,n=X(t);function o(r){n.value=r}return[n,o]}var uy=Symbol("iconContext"),rc=function(){return ce(uy,{prefixCls:X("anticon"),rootClassName:X(""),csp:X()})};function Oi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cy(e,t){return e&&e.contains?e.contains(t):!1}var cl="data-vc-order",dy="vc-icon-key",Kr=new Map;function ic(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):dy}function Pi(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function fy(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ac(e){return Array.from((Kr.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function lc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Oi())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(cl,fy(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=Pi(t),a=i.firstChild;if(o){if(o==="queue"){var l=ac(i).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute(cl))});if(l.length)return i.insertBefore(r,l[l.length-1].nextSibling),r}i.insertBefore(r,a)}else i.appendChild(r);return r}function py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Pi(t);return ac(n).find(function(o){return o.getAttribute(ic(t))===e})}function my(e,t){var n=Kr.get(e);if(!n||!cy(document,n)){var o=lc("",t),r=o.parentNode;Kr.set(e,r),e.removeChild(o)}}function gy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Pi(n);my(o,n);var r=py(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var i=lc(e,n);return i.setAttribute(ic(n),t),i}function dl(e){for(var t=1;t * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`;function cc(e){return e&&e.getRootNode&&e.getRootNode()}function yy(e){return Oi()?cc(e)instanceof ShadowRoot:!1}function by(e){return yy(e)?cc(e):null}var Cy=function(){var t=rc(),n=t.prefixCls,o=t.csp,r=Rt(),i=vy;n&&(i=i.replace(/anticon/g,n.value)),Ge(function(){if(Oi()){var a=r.vnode.el,l=by(a);gy(i,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:l})}})},Sy=["icon","primaryColor","secondaryColor"];function xy(e,t){if(e==null)return{};var n=$y(e,t),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function $y(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}function ho(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Fy(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}dc($p.primary);var me=function(t,n){var o,r=gl({},t,n.attrs),i=r.class,a=r.icon,l=r.spin,u=r.rotate,c=r.tabindex,d=r.twoToneColor,s=r.onClick,f=Ly(r,Ny),m=rc(),g=m.prefixCls,v=m.rootClassName,x=(o={},xn(o,v.value,!!v.value),xn(o,g.value,!0),xn(o,"".concat(g.value,"-").concat(a.name),!!a.name),xn(o,"".concat(g.value,"-spin"),!!l||a.name==="loading"),o),y=c;y===void 0&&s&&(y=-1);var S=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,w=uc(d),T=Dy(w,2),O=T[0],P=T[1];return h("span",gl({role:"img","aria-label":a.name},f,{onClick:s,class:[x,i],tabindex:y}),[h(pt,{icon:a,primaryColor:O,secondaryColor:P,style:S},null),h(Ry,null,null)])};me.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};me.displayName="AntdIcon";me.inheritAttrs=!1;me.getTwoToneColor=Ay;me.setTwoToneColor=dc;var ky={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function hl(e){for(var t=1;t{const a=Ze({});return ye(t,a),Ae(()=>{p(a,r,i||{})}),a},useInject:()=>ce(t,e)||{}}}const Xy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Yy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},qy=et("Space",e=>[Yy(e),Xy(e)]);function Qy(){}function Zy(e,t,n,o){for(var r=e.length,i=n+-1;++i-1}var o0="[object Map]",r0="[object Set]",i0=Object.prototype,a0=i0.hasOwnProperty;function pc(e){if(e==null)return!0;if(Uu(e)&&(Dn(e)||typeof e=="string"||typeof e.splice=="function"||To(e)||$i(e)||Fu(e)))return!e.length;var t=qe(e);if(t==o0||t==r0)return!e.size;if(Vu(e))return!Gu(e).length;for(var n in e)if(a0.call(e,n))return!1;return!0}var l0=1/0,s0=qt&&1/xi(new qt([,-0]))[1]==l0?function(e){return new qt(e)}:Qy,u0=200;function c0(e,t,n){var o=-1,r=n0,i=e.length,a=!0,l=[],u=l;if(i>=u0){var c=s0(e);if(c)return xi(c);a=!1,r=ju,u=new Nn}else u=l;e:for(;++o({compactSize:String,compactDirection:H.oneOf(So("horizontal","vertical")).def("horizontal"),isFirstItem:Ut(),isLastItem:Ut()}),Yo=fc(null),f0=(e,t)=>{const n=Yo.useInject(),o=$(()=>{if(!n||pc(n))return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,l=r==="vertical"?"-vertical-":"-";return q({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:i,[`${e.value}-compact${l}last-item`]:a,[`${e.value}-compact${l}item-rtl`]:t.value==="rtl"})});return{compactSize:$(()=>n==null?void 0:n.compactSize),compactDirection:$(()=>n==null?void 0:n.compactDirection),compactItemClassnames:o}},iS=z({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Yo.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),p0=()=>({prefixCls:String,size:{type:String},direction:H.oneOf(So("horizontal","vertical")).def("horizontal"),align:H.oneOf(So("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),m0=z({name:"CompactItem",props:d0(),setup(e,t){let{slots:n}=t;return Yo.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});z({name:"ASpaceCompact",inheritAttrs:!1,props:p0(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Fe("space-compact",e),a=Yo.useInject(),[l,u]=qy(r),c=$(()=>q(r.value,u.value,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var d;const s=Te(((d=o.default)===null||d===void 0?void 0:d.call(o))||[]);return s.length===0?null:l(h("div",M(M({},n),{},{class:[c.value,n.class]}),[s.map((f,m)=>{var g;const v=f&&f.key||`${r.value}-item-${m}`,x=!a||pc(a);return h(m0,{key:v,compactSize:(g=e.size)!==null&&g!==void 0?g:"middle",compactDirection:e.direction,isFirstItem:m===0&&(x||(a==null?void 0:a.isFirstItem)),isLastItem:m===s.length-1&&(x||(a==null?void 0:a.isLastItem))},{default:()=>[f]})})]))}}});const g0=e=>({animationDuration:e,animationFillMode:"both"}),h0=e=>({animationDuration:e,animationFillMode:"both"}),Ti=function(e,t,n,o){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:p(p({},g0(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:p(p({},h0(o)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},v0=new te("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),y0=new te("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),b0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Ti(o,v0,y0,e.motionDurationMid,t),{[` + ${r}${o}-enter, + ${r}${o}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},C0=new te("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),S0=new te("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),x0=new te("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),$0=new te("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w0=new te("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),O0=new te("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),P0=new te("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),T0=new te("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),_0={"slide-up":{inKeyframes:C0,outKeyframes:S0},"slide-down":{inKeyframes:x0,outKeyframes:$0},"slide-left":{inKeyframes:w0,outKeyframes:O0},"slide-right":{inKeyframes:P0,outKeyframes:T0}},bl=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=_0[t];return[Ti(o,r,i,e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},I0=new te("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),E0=new te("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cl=new te("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sl=new te("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),M0=new te("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),A0=new te("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),R0=new te("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),N0=new te("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),D0=new te("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),B0=new te("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),H0=new te("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),j0=new te("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),z0={zoom:{inKeyframes:I0,outKeyframes:E0},"zoom-big":{inKeyframes:Cl,outKeyframes:Sl},"zoom-big-fast":{inKeyframes:Cl,outKeyframes:Sl},"zoom-left":{inKeyframes:R0,outKeyframes:N0},"zoom-right":{inKeyframes:D0,outKeyframes:B0},"zoom-up":{inKeyframes:M0,outKeyframes:A0},"zoom-down":{inKeyframes:H0,outKeyframes:j0}},_i=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=z0[t];return[Ti(o,r,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},L0=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function F0(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":p(p({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function k0(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function W0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:p(p({},F0(e,o,t)),k0(n,o,t))}}var K0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function xl(e){for(var t=1;t{var o;return h("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var ab=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:H.string.def("rc-tooltip"),mouseEnterDelay:H.number.def(.1),mouseLeaveDelay:H.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:H.object.def(()=>({})),arrowContent:H.any.def(null),tipId:String,builtinPlacements:H.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=N(),a=()=>{const{prefixCls:d,tipId:s,overlayInnerStyle:f}=e;return[e.arrow?h("div",{class:`${d}-arrow`,key:"arrow"},[ni(n,e,"arrowContent")]):null,h(ib,{key:"content",prefixCls:d,id:s,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var d;return(d=i.value)===null||d===void 0?void 0:d.forcePopupAlign()}});const u=N(!1),c=N(!1);return Ae(()=>{const{destroyTooltipOnHide:d}=e;if(typeof d=="boolean")u.value=d;else if(d&&typeof d=="object"){const{keepParent:s}=d;u.value=s===!0,c.value=s===!1}}),()=>{const{overlayClassName:d,trigger:s,mouseEnterDelay:f,mouseLeaveDelay:m,overlayStyle:g,prefixCls:v,afterVisibleChange:x,transitionName:y,animation:S,placement:w,align:T,destroyTooltipOnHide:O,defaultVisible:P}=e,C=ab(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),_=p({},C);e.visible!==void 0&&(_.popupVisible=e.visible);const A=p(p(p({popupClassName:d,prefixCls:v,action:s,builtinPlacements:mc,popupPlacement:w,popupAlign:T,afterPopupVisibleChange:x,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:P,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:f},_),o),{onPopupVisibleChange:e.onVisibleChange||Il,onPopupAlign:e.onPopupAlign||Il,ref:i,arrow:!!e.arrow,popup:a()});return h(ec,A,{default:n.default})}}}),sb=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:oe(),overlayInnerStyle:oe(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:oe(),builtinPlacements:oe(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),ub={adjustX:1,adjustY:1},El={adjustX:0,adjustY:0},cb=[0,0];function Ml(e){return typeof e=="boolean"?e?ub:El:p(p({},El),e)}function db(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(a).forEach(l=>{a[l]=i?p(p({},a[l]),{overflow:Ml(r),targetOffset:cb}):p(p({},mc[l]),{overflow:Ml(r)}),a[l].ignoreShake=!0}),a}function fb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),mb=["success","processing","error","default","warning"];function gb(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...pb,...wo].includes(e):wo.includes(e)}function aS(e){return mb.includes(e)}function hb(e,t){const n=gb(t),o=q({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}function io(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const gc=8;function vb(e){const t=gc,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=e,a=n/2-Math.ceil(r*(Math.sqrt(2)-1)),l=(o>12?o+2:12)-a,u=i?t-a:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:u}}function yb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:a,boxShadowPopoverArrow:l}=e,{colorBg:u,showArrowCls:c,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:s}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:m}=vb({sizePopupArrow:o,contentRadius:d,borderRadiusOuter:a,limitVerticalRadius:s}),g=o/2+r;return{[n]:{[`${n}-arrow`]:[p(p({position:"absolute",zIndex:1,display:"block"},Bp(o,i,a,u,l)),{"&:before":{background:u}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[io(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(v=>v+=":not(&-arrow-hidden)"),c)]:{paddingBottom:g},[io(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(v=>v+=":not(&-arrow-hidden)"),c)]:{paddingTop:g},[io(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(v=>v+=":not(&-arrow-hidden)"),c)]:{paddingRight:{_skip_check_:!0,value:g}},[io(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(v=>v+=":not(&-arrow-hidden)"),c)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const bb=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:u,paddingSM:c,paddingXS:d,tooltipRadiusOuter:s}=e;return[{[t]:p(p(p(p({},Wn(e)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${d}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,gc)}},[`${t}-content`]:{position:"relative"}}),Hp(e,(f,m)=>{let{darkColor:g}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},yb(He(e,{borderRadiusOuter:s}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},Cb=(e,t)=>et("Tooltip",o=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=o,u=He(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[bb(u),_i(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(e),Sb=(e,t)=>{const n={},o=p({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},xb=()=>p(p({},sb()),{title:H.any}),$b=z({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:fn(xb(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:a,getPopupContainer:l,direction:u,rootPrefixCls:c}=Fe("tooltip",e),d=$(()=>{var E;return(E=e.open)!==null&&E!==void 0?E:e.visible}),s=X(fb([e.open,e.visible])),f=X();let m;Y(d,E=>{Ce.cancel(m),m=Ce(()=>{s.value=!!E})});const g=()=>{var E;const D=(E=e.title)!==null&&E!==void 0?E:n.title;return!D&&D!==0},v=E=>{const D=g();d.value===void 0&&(s.value=D?!1:E),D||(o("update:visible",E),o("visibleChange",E),o("update:open",E),o("openChange",E))};i({getPopupDomNode:()=>f.value.getPopupDomNode(),open:s,forcePopupAlign:()=>{var E;return(E=f.value)===null||E===void 0?void 0:E.forcePopupAlign()}});const y=$(()=>{var E;const{builtinPlacements:D,autoAdjustOverflow:k,arrow:W,arrowPointAtCenter:G}=e;let b=G;return typeof W=="object"&&(b=(E=W.pointAtCenter)!==null&&E!==void 0?E:G),D||db({arrowPointAtCenter:b,autoAdjustOverflow:k})}),S=E=>E||E==="",w=E=>{const D=E.type;if(typeof D=="object"&&E.props&&((D.__ANT_BUTTON===!0||D==="button")&&S(E.props.disabled)||D.__ANT_SWITCH===!0&&(S(E.props.disabled)||S(E.props.loading))||D.__ANT_RADIO===!0&&S(E.props.disabled))){const{picked:k,omitted:W}=Sb(nf(E),["position","left","right","top","bottom","float","display","zIndex"]),G=p(p({display:"inline-block"},k),{cursor:"not-allowed",lineHeight:1,width:E.props&&E.props.block?"100%":void 0}),b=p(p({},W),{pointerEvents:"none"}),I=Et(E,{style:b},!0);return h("span",{style:G,class:`${a.value}-disabled-compatible-wrapper`},[I])}return E},T=()=>{var E,D;return(E=e.title)!==null&&E!==void 0?E:(D=n.title)===null||D===void 0?void 0:D.call(n)},O=(E,D)=>{const k=y.value,W=Object.keys(k).find(G=>{var b,I;return k[G].points[0]===((b=D.points)===null||b===void 0?void 0:b[0])&&k[G].points[1]===((I=D.points)===null||I===void 0?void 0:I[1])});if(W){const G=E.getBoundingClientRect(),b={top:"50%",left:"50%"};W.indexOf("top")>=0||W.indexOf("Bottom")>=0?b.top=`${G.height-D.offset[1]}px`:(W.indexOf("Top")>=0||W.indexOf("bottom")>=0)&&(b.top=`${-D.offset[1]}px`),W.indexOf("left")>=0||W.indexOf("Right")>=0?b.left=`${G.width-D.offset[0]}px`:(W.indexOf("right")>=0||W.indexOf("Left")>=0)&&(b.left=`${-D.offset[0]}px`),E.style.transformOrigin=`${b.left} ${b.top}`}},P=$(()=>hb(a.value,e.color)),C=$(()=>r["data-popover-inject"]),[_,A]=Cb(a,$(()=>!C.value));return()=>{var E,D;const{openClassName:k,overlayClassName:W,overlayStyle:G,overlayInnerStyle:b}=e;let I=(D=kn((E=n.default)===null||E===void 0?void 0:E.call(n)))!==null&&D!==void 0?D:null;I=I.length===1?I[0]:I;let B=s.value;if(d.value===void 0&&g()&&(B=!1),!I)return null;const j=w(ti(I)&&!of(I)?I:h("span",null,[I])),Q=q({[k||`${a.value}-open`]:!0,[j.props&&j.props.class]:j.props&&j.props.class}),ne=q(W,{[`${a.value}-rtl`]:u.value==="rtl"},P.value.className,A.value),F=p(p({},P.value.overlayStyle),b),J=P.value.arrowStyle,re=p(p(p({},r),e),{prefixCls:a.value,arrow:!!e.arrow,getPopupContainer:l==null?void 0:l.value,builtinPlacements:y.value,visible:B,ref:f,overlayClassName:ne,overlayStyle:p(p({},J),G),overlayInnerStyle:F,onVisibleChange:v,onPopupAlign:O,transitionName:Hn(c.value,"zoom-big-fast",e.transitionName)});return _(h(lb,re,{default:()=>[s.value?Et(j,{class:Q}):j],arrowContent:()=>h("span",{class:`${a.value}-arrow-content`},null),overlay:T}))}}}),wb=Ho($b),lS=e=>!isNaN(parseFloat(e))&&isFinite(e),Ob=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},Pb=et("Wave",e=>[Ob(e)]);function Tb(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function vr(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Tb(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _b(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return vr(t)?t:vr(n)?n:vr(o)?o:null}function yr(e){return Number.isNaN(e)?0:e}const Ib=z({props:{target:oe(),className:String},setup(e){const t=N(null),[n,o]=vt(null),[r,i]=vt([]),[a,l]=vt(0),[u,c]=vt(0),[d,s]=vt(0),[f,m]=vt(0),[g,v]=vt(!1);function x(){const{target:C}=e,_=getComputedStyle(C);o(_b(C));const A=_.position==="static",{borderLeftWidth:E,borderTopWidth:D}=_;l(A?C.offsetLeft:yr(-parseFloat(E))),c(A?C.offsetTop:yr(-parseFloat(D))),s(C.offsetWidth),m(C.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:W,borderBottomLeftRadius:G,borderBottomRightRadius:b}=_;i([k,W,b,G].map(I=>yr(parseFloat(I))))}let y,S,w;const T=()=>{clearTimeout(w),Ce.cancel(S),y==null||y.disconnect()},O=()=>{var C;const _=(C=t.value)===null||C===void 0?void 0:C.parentElement;_&&(dt(null,_),_.parentElement&&_.parentElement.removeChild(_))};je(()=>{T(),w=setTimeout(()=>{O()},5e3);const{target:C}=e;C&&(S=Ce(()=>{x(),v(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(x),y.observe(C)))}),$e(()=>{T()});const P=C=>{C.propertyName==="opacity"&&O()};return()=>{if(!g.value)return null;const C={left:`${a.value}px`,top:`${u.value}px`,width:`${d.value}px`,height:`${f.value}px`,borderRadius:r.value.map(_=>`${_}px`).join(" ")};return n&&(C["--wave-color"]=n.value),h(ft,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[h("div",{ref:t,class:e.className,style:C,onTransitionend:P},null)]})}}});function Eb(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),dt(h(Ib,{target:e,className:t},null),n),()=>{dt(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function Mb(e,t){const n=Rt();let o;function r(){var i;const a=Qe(n);o==null||o(),!(!((i=t==null?void 0:t.value)===null||i===void 0)&&i.disabled||!a)&&(o=Eb(a,e.value))}return $e(()=>{o==null||o()}),r}const Ab=z({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=Rt(),{prefixCls:r,wave:i}=Fe("wave",e),[,a]=Pb(r),l=Mb($(()=>q(r.value,a.value)),i);let u;const c=()=>{Qe(o).removeEventListener("click",u,!0)};return je(()=>{Y(()=>e.disabled,()=>{c(),Ge(()=>{const d=Qe(o);d==null||d.removeEventListener("click",u,!0),!(!d||d.nodeType!==1||e.disabled)&&(u=s=>{s.target.tagName==="INPUT"||!Au(s.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l()},d.addEventListener("click",u,!0))})},{immediate:!0,flush:"post"})}),$e(()=>{c()}),()=>{var d;return(d=n.default)===null||d===void 0?void 0:d.call(n)[0]}}});function hc(e){return e==="danger"?{danger:!0}:{type:e}}const Rb=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:H.any,href:String,target:String,title:String,onClick:Yi(),onMousedown:Yi()}),Al=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Rl=e=>{Ge(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Nl=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},Nb=z({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return h("span",{class:`${n}-loading-icon`},[h(At,null,null)]);const r=!!o;return h(ft,{name:`${n}-loading-icon-motion`,onBeforeEnter:Al,onEnter:Rl,onAfterEnter:Nl,onBeforeLeave:Rl,onLeave:i=>{setTimeout(()=>{Al(i)})},onAfterLeave:Nl},{default:()=>[r?h("span",{class:`${n}-loading-icon`},[h(At,null,null)]):null]})}}}),Dl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Db=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Dl(`${t}-primary`,r),Dl(`${t}-danger`,i)]}};function Bb(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Hb(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function jb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:p(p({},Bb(e,t)),Hb(e.componentCls,t))}}const zb=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":p({},ru(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Je=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Lb=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fb=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Gr=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_o=(e,t,n,o,r,i,a)=>({[`&${e}-background-ghost`]:p(p({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Je(p({backgroundColor:"transparent"},i),p({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),Ri=e=>({"&:disabled":p({},Gr(e))}),vc=e=>p({},Ri(e)),Io=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),yc=e=>p(p(p(p(p({},vc(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Je({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_o(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:p(p(p({color:e.colorError,borderColor:e.colorError},Je({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_o(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ri(e))}),kb=e=>p(p(p(p(p({},vc(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Je({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_o(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:p(p(p({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Je({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_o(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ri(e))}),Wb=e=>p(p({},yc(e)),{borderStyle:"dashed"}),Kb=e=>p(p(p({color:e.colorLink},Je({color:e.colorLinkHover},{color:e.colorLinkActive})),Io(e)),{[`&${e.componentCls}-dangerous`]:p(p({color:e.colorError},Je({color:e.colorErrorHover},{color:e.colorErrorActive})),Io(e))}),Vb=e=>p(p(p({},Je({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Io(e)),{[`&${e.componentCls}-dangerous`]:p(p({color:e.colorError},Io(e)),Je({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Gb=e=>p(p({},Gr(e)),{[`&${e.componentCls}:hover`]:p({},Gr(e))}),Ub=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yc(e),[`${t}-primary`]:kb(e),[`${t}-dashed`]:Wb(e),[`${t}-link`]:Kb(e),[`${t}-text`]:Vb(e),[`${t}-disabled`]:Gb(e)}},Ni=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:u,buttonPaddingHorizontal:c}=e,d=Math.max(0,(r-i*a)/2-l),s=c-l,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${d}px ${s}px`,borderRadius:u,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:Lb(e)},{[`${n}${n}-round${t}`]:Fb(e)}]},Xb=e=>Ni(e),Yb=e=>{const t=He(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Ni(t,`${e.componentCls}-sm`)},qb=e=>{const t=He(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Ni(t,`${e.componentCls}-lg`)},Qb=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Zb=et("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=He(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[zb(o),Yb(o),Xb(o),qb(o),Qb(o),Ub(o),Db(o),W0(e,{focus:!1}),jb(e)]}),Jb=()=>({prefixCls:String,size:{type:String}}),bc=fc(),Ur=z({compatConfig:{MODE:3},name:"AButtonGroup",props:Jb(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Fe("btn-group",e),[,,i]=Kn();bc.useProvide(Ze({size:$(()=>e.size)}));const a=$(()=>{const{size:l}=e;let u="";switch(l){case"large":u="lg";break;case"small":u="sm";break;case"middle":case void 0:break;default:ln(!l,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${u}`]:u,[`${o.value}-rtl`]:r.value==="rtl",[i.value]:!0}});return()=>{var l;return h("div",{class:a.value},[Te((l=n.default)===null||l===void 0?void 0:l.call(n))])}}}),Bl=/^[\u4e00-\u9fa5]{2}$/,Hl=Bl.test.bind(Bl);function ao(e){return e==="text"||e==="link"}const Ot=z({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:fn(Rb(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:a,autoInsertSpaceInButton:l,direction:u,size:c}=Fe("btn",e),[d,s]=Zb(a),f=bc.useInject(),m=li(),g=$(()=>{var b;return(b=e.disabled)!==null&&b!==void 0?b:m.value}),v=N(null),x=N(void 0);let y=!1;const S=N(!1),w=N(!1),T=$(()=>l.value!==!1),{compactSize:O,compactItemClassnames:P}=f0(a,u),C=$(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Y(C,b=>{clearTimeout(x.value),typeof C.value=="number"?x.value=setTimeout(()=>{S.value=b},C.value):S.value=b},{immediate:!0});const _=$(()=>{const{type:b,shape:I="default",ghost:B,block:j,danger:Q}=e,ne=a.value,F={large:"lg",small:"sm",middle:void 0},J=O.value||(f==null?void 0:f.size)||c.value,re=J&&F[J]||"";return[P.value,{[s.value]:!0,[`${ne}`]:!0,[`${ne}-${I}`]:I!=="default"&&I,[`${ne}-${b}`]:b,[`${ne}-${re}`]:re,[`${ne}-loading`]:S.value,[`${ne}-background-ghost`]:B&&!ao(b),[`${ne}-two-chinese-chars`]:w.value&&T.value,[`${ne}-block`]:j,[`${ne}-dangerous`]:!!Q,[`${ne}-rtl`]:u.value==="rtl"}]}),A=()=>{const b=v.value;if(!b||l.value===!1)return;const I=b.textContent;y&&Hl(I)?w.value||(w.value=!0):w.value&&(w.value=!1)},E=b=>{if(S.value||g.value){b.preventDefault();return}r("click",b)},D=b=>{r("mousedown",b)},k=(b,I)=>{const B=I?" ":"";if(b.type===ms){let j=b.children.trim();return Hl(j)&&(j=j.split("").join(B)),h("span",null,[j])}return b};return Ae(()=>{ln(!(e.ghost&&ao(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(A),Ln(A),$e(()=>{x.value&&clearTimeout(x.value)}),i({focus:()=>{var b;(b=v.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=v.value)===null||b===void 0||b.blur()}}),()=>{var b,I;const{icon:B=(b=n.icon)===null||b===void 0?void 0:b.call(n)}=e,j=Te((I=n.default)===null||I===void 0?void 0:I.call(n));y=j.length===1&&!B&&!ao(e.type);const{type:Q,htmlType:ne,href:F,title:J,target:re}=e,be=S.value?"loading":B,de=p(p({},o),{title:J,disabled:g.value,class:[_.value,o.class,{[`${a.value}-icon-only`]:j.length===0&&!!be}],onClick:E,onMousedown:D});g.value||delete de.disabled;const ge=B&&!S.value?B:h(Nb,{existIcon:!!B,prefixCls:a.value,loading:!!S.value},null),R=j.map(U=>k(U,y&&T.value));if(F!==void 0)return d(h("a",M(M({},de),{},{href:F,target:re,ref:v}),[ge,R]));let K=h("button",M(M({},de),{},{ref:v,type:ne}),[ge,R]);if(!ao(Q)){const U=function(){return K}();K=h(Ab,{ref:"wave",disabled:!!S.value},{default:()=>[U]})}return d(K)}}});Ot.Group=Ur;Ot.install=function(e){return e.component(Ot.name,Ot),e.component(Ur.name,Ur),e};var e1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function jl(e){for(var t=1;tce(Sc,void 0),sS=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:a,validator:l,onClick:u,expandIcon:c}=xc()||{};ye(Sc,{prefixCls:$(()=>{var d,s;return(s=(d=e.prefixCls)===null||d===void 0?void 0:d.value)!==null&&s!==void 0?s:r==null?void 0:r.value}),mode:$(()=>{var d,s;return(s=(d=e.mode)===null||d===void 0?void 0:d.value)!==null&&s!==void 0?s:i==null?void 0:i.value}),selectable:$(()=>{var d,s;return(s=(d=e.selectable)===null||d===void 0?void 0:d.value)!==null&&s!==void 0?s:a==null?void 0:a.value}),validator:(t=e.validator)!==null&&t!==void 0?t:l,onClick:(n=e.onClick)!==null&&n!==void 0?n:u,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:c==null?void 0:c.value})};function r1(e,t,n,o){let r;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u{ye($c,e)},ot=()=>ce($c),Oc=Symbol("ForceRenderKey"),i1=e=>{ye(Oc,e)},Pc=()=>ce(Oc,!1),Tc=Symbol("menuFirstLevelContextKey"),_c=e=>{ye(Tc,e)},a1=()=>ce(Tc,!0),Eo=z({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=ot(),r=p({},o);return e.mode!==void 0&&(r.mode=Cr(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=Cr(e,"overflowDisabled")),wc(r),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),l1=Symbol("siderCollapsed"),uS=Symbol("siderHookProvider"),lo="$$__vc-menu-more__key",Ic=Symbol("KeyPathContext"),Bi=()=>ce(Ic,{parentEventKeys:$(()=>[]),parentKeys:$(()=>[]),parentInfo:{}}),s1=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Bi(),i=$(()=>[...o.value,e]),a=$(()=>[...r.value,t]);return ye(Ic,{parentEventKeys:i,parentKeys:a,parentInfo:n}),a},Ec=Symbol("measure"),Ll=z({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return ye(Ec,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Hi=()=>ce(Ec,!1);function Mc(e){const{mode:t,rtl:n,inlineIndent:o}=ot();return $(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let u1=0;const c1=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:H.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:oe()}),jn=z({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:c1(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=Rt(),a=Hi(),l=typeof i.vnode.key=="symbol"?String(i.vnode.key):i.vnode.key;ln(typeof i.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(l)}"\` not support Symbol type`);const u=`menu_item_${++u1}_$$_${l}`,{parentEventKeys:c,parentKeys:d}=Bi(),{prefixCls:s,activeKeys:f,disabled:m,changeActiveKeys:g,rtl:v,inlineCollapsed:x,siderCollapsed:y,onItemClick:S,selectedKeys:w,registerMenuInfo:T,unRegisterMenuInfo:O}=ot(),P=a1(),C=N(!1),_=$(()=>[...d.value,l]);T(u,{eventKey:u,key:l,parentEventKeys:c,parentKeys:d,isLeaf:!0}),$e(()=>{O(u)}),Y(f,()=>{C.value=!!f.value.find(F=>F===l)},{immediate:!0});const E=$(()=>m.value||e.disabled),D=$(()=>w.value.includes(l)),k=$(()=>{const F=`${s.value}-item`;return{[`${F}`]:!0,[`${F}-danger`]:e.danger,[`${F}-active`]:C.value,[`${F}-selected`]:D.value,[`${F}-disabled`]:E.value}}),W=F=>({key:l,eventKey:u,keyPath:_.value,eventKeyPath:[...c.value,u],domEvent:F,item:p(p({},e),r)}),G=F=>{if(E.value)return;const J=W(F);o("click",F),S(J)},b=F=>{E.value||(g(_.value),o("mouseenter",F))},I=F=>{E.value||(g([]),o("mouseleave",F))},B=F=>{if(o("keydown",F),F.which===L.ENTER){const J=W(F);o("click",F),S(J)}},j=F=>{g(_.value),o("focus",F)},Q=(F,J)=>{const re=h("span",{class:`${s.value}-title-content`},[J]);return(!F||ti(J)&&J.type==="span")&&x.value&&P&&typeof J=="string"?h("div",{class:`${s.value}-inline-collapsed-noicon`},[J.charAt(0)]):re},ne=Mc($(()=>_.value.length));return()=>{var F,J,re,be,de;if(a)return null;const ge=(F=e.title)!==null&&F!==void 0?F:(J=n.title)===null||J===void 0?void 0:J.call(n),R=Te((re=n.default)===null||re===void 0?void 0:re.call(n)),K=R.length;let U=ge;typeof ge>"u"?U=P&&K?R:"":ge===!1&&(U="");const ae={title:U};!y.value&&!x.value&&(ae.title=null,ae.open=!1);const le={};e.role==="option"&&(le["aria-selected"]=D.value);const ee=(be=e.icon)!==null&&be!==void 0?be:(de=n.icon)===null||de===void 0?void 0:de.call(n,e);return h(wb,M(M({},ae),{},{placement:v.value?"left":"right",overlayClassName:`${s.value}-inline-collapsed-tooltip`}),{default:()=>[h(ct.Item,M(M(M({component:"li"},r),{},{id:e.id,style:p(p({},r.style||{}),ne.value),class:[k.value,{[`${r.class}`]:!!r.class,[`${s.value}-item-only-child`]:(ee?K+1:K)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},le),{},{onMouseenter:b,onMouseleave:I,onClick:G,onKeydown:B,onFocus:j,title:typeof ge=="string"?ge:void 0}),{default:()=>[Et(typeof ee=="function"?ee(e.originItemValue):ee,{class:`${s.value}-item-icon`},!1),Q(ee,R)]})]})}}}),st={adjustX:1,adjustY:1},d1={topLeft:{points:["bl","tl"],overflow:st,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:st,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:st,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:st,offset:[4,0]}},f1={topLeft:{points:["bl","tl"],overflow:st,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:st,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:st,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:st,offset:[4,0]}},p1={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Fl=z({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=N(!1),{getPopupContainer:i,rtl:a,subMenuOpenDelay:l,subMenuCloseDelay:u,builtinPlacements:c,triggerSubMenuAction:d,forceSubMenuRender:s,motion:f,defaultMotions:m,rootClassName:g}=ot(),v=Pc(),x=$(()=>a.value?p(p({},f1),c.value):p(p({},d1),c.value)),y=$(()=>p1[e.mode]),S=N();Y(()=>e.visible,O=>{Ce.cancel(S.value),S.value=Ce(()=>{r.value=O})},{immediate:!0}),$e(()=>{Ce.cancel(S.value)});const w=O=>{o("visibleChange",O)},T=$(()=>{var O,P;const C=f.value||((O=m.value)===null||O===void 0?void 0:O[e.mode])||((P=m.value)===null||P===void 0?void 0:P.other),_=typeof C=="function"?C():C;return _?Xo(_.name,{css:!0}):void 0});return()=>{const{prefixCls:O,popupClassName:P,mode:C,popupOffset:_,disabled:A}=e;return h(ec,{prefixCls:O,popupClassName:q(`${O}-popup`,{[`${O}-rtl`]:a.value},P,g.value),stretch:C==="horizontal"?"minWidth":null,getPopupContainer:i.value,builtinPlacements:x.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:_&&{offset:_},action:A?[]:[d.value],mouseEnterDelay:l.value,mouseLeaveDelay:u.value,onPopupVisibleChange:w,forceRender:v||s.value,popupAnimation:T.value},{popup:n.popup,default:n.default})}}}),ji=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:a}=ot();return h("ul",M(M({},o),{},{class:q(i.value,`${i.value}-sub`,`${i.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};ji.displayName="SubMenuList";const m1=z({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=$(()=>"inline"),{motion:r,mode:i,defaultMotions:a}=ot(),l=$(()=>i.value===o.value),u=X(!l.value),c=$(()=>l.value?e.open:!1);Y(i,()=>{l.value&&(u.value=!1)},{flush:"post"});const d=$(()=>{var s,f;const m=r.value||((s=a.value)===null||s===void 0?void 0:s[o.value])||((f=a.value)===null||f===void 0?void 0:f.other),g=typeof m=="function"?m():m;return p(p({},g),{appear:e.keyPath.length<=1})});return()=>{var s;return u.value?null:h(Eo,{mode:o.value},{default:()=>[h(ft,d.value,{default:()=>[Fn(h(ji,{id:e.id},{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}),[[Do,c.value]])]})]})}}});let kl=0;const g1=()=>({icon:H.any,title:H.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:oe()}),un=z({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:g1(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,a;_c(!1);const l=Hi(),u=Rt(),c=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;ln(typeof u.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const d=$r(c)?c:`sub_menu_${++kl}_$$_not_set_key`,s=(i=e.eventKey)!==null&&i!==void 0?i:$r(c)?`sub_menu_${++kl}_$$_${c}`:d,{parentEventKeys:f,parentInfo:m,parentKeys:g}=Bi(),v=$(()=>[...g.value,d]),x=N([]),y={eventKey:s,key:d,parentEventKeys:f,childrenEventKeys:x,parentKeys:g};(a=m.childrenEventKeys)===null||a===void 0||a.value.push(s),$e(()=>{var Z;m.childrenEventKeys&&(m.childrenEventKeys.value=(Z=m.childrenEventKeys)===null||Z===void 0?void 0:Z.value.filter(pe=>pe!=s))}),s1(s,d,y);const{prefixCls:S,activeKeys:w,disabled:T,changeActiveKeys:O,mode:P,inlineCollapsed:C,openKeys:_,overflowDisabled:A,onOpenChange:E,registerMenuInfo:D,unRegisterMenuInfo:k,selectedSubMenuKeys:W,expandIcon:G,theme:b}=ot(),I=c!=null,B=!l&&(Pc()||!I);i1(B),(l&&I||!l&&!I||B)&&(D(s,y),$e(()=>{k(s)}));const j=$(()=>`${S.value}-submenu`),Q=$(()=>T.value||e.disabled),ne=N(),F=N(),J=$(()=>_.value.includes(d)),re=$(()=>!A.value&&J.value),be=$(()=>W.value.includes(d)),de=N(!1);Y(w,()=>{de.value=!!w.value.find(Z=>Z===d)},{immediate:!0});const ge=Z=>{Q.value||(r("titleClick",Z,d),P.value==="inline"&&E(d,!J.value))},R=Z=>{Q.value||(O(v.value),r("mouseenter",Z))},K=Z=>{Q.value||(O([]),r("mouseleave",Z))},U=Mc($(()=>v.value.length)),ae=Z=>{P.value!=="inline"&&E(d,Z)},le=()=>{O(v.value)},ee=s&&`${s}-popup`,we=$(()=>q(S.value,`${S.value}-${e.theme||b.value}`,e.popupClassName)),se=(Z,pe)=>{if(!pe)return C.value&&!g.value.length&&Z&&typeof Z=="string"?h("div",{class:`${S.value}-inline-collapsed-noicon`},[Z.charAt(0)]):h("span",{class:`${S.value}-title-content`},[Z]);const rt=ti(Z)&&Z.type==="span";return h(Ne,null,[Et(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${S.value}-item-icon`},!1),rt?Z:h("span",{class:`${S.value}-title-content`},[Z])])},Ie=$(()=>P.value!=="inline"&&v.value.length>1?"vertical":P.value),mt=$(()=>P.value==="horizontal"?"vertical":P.value),cd=$(()=>Ie.value==="horizontal"?"vertical":Ie.value),Fi=()=>{var Z,pe;const rt=j.value,qo=(Z=e.icon)!==null&&Z!==void 0?Z:(pe=n.icon)===null||pe===void 0?void 0:pe.call(n,e),ki=e.expandIcon||n.expandIcon||G.value,Qo=se(ni(n,e,"title"),qo);return h("div",{style:U.value,class:`${rt}-title`,tabindex:Q.value?null:-1,ref:ne,title:typeof Qo=="string"?Qo:null,"data-menu-id":d,"aria-expanded":re.value,"aria-haspopup":!0,"aria-controls":ee,"aria-disabled":Q.value,onClick:ge,onFocus:le},[Qo,P.value!=="horizontal"&&ki?ki(p(p({},e),{isOpen:re.value})):h("i",{class:`${rt}-arrow`},null)])};return()=>{var Z;if(l)return I?(Z=n.default)===null||Z===void 0?void 0:Z.call(n):null;const pe=j.value;let rt=()=>null;if(!A.value&&P.value!=="inline"){const qo=P.value==="horizontal"?[0,8]:[10,0];rt=()=>h(Fl,{mode:Ie.value,prefixCls:pe,visible:!e.internalPopupClose&&re.value,popupClassName:we.value,popupOffset:e.popupOffset||qo,disabled:Q.value,onVisibleChange:ae},{default:()=>[Fi()],popup:()=>h(Eo,{mode:cd.value},{default:()=>[h(ji,{id:ee,ref:F},{default:n.default})]})})}else rt=()=>h(Fl,null,{default:Fi});return h(Eo,{mode:mt.value},{default:()=>[h(ct.Item,M(M({component:"li"},o),{},{role:"none",class:q(pe,`${pe}-${P.value}`,o.class,{[`${pe}-open`]:re.value,[`${pe}-active`]:de.value,[`${pe}-selected`]:be.value,[`${pe}-disabled`]:Q.value}),onMouseenter:R,onMouseleave:K,"data-submenu-id":d}),{default:()=>h(Ne,null,[rt(),!A.value&&h(m1,{id:ee,open:re.value,keyPath:v.value},{default:n.default})])})]})}}});function Ac(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Wl(e,t){e.classList?e.classList.add(t):Ac(e,t)||(e.className=`${e.className} ${t}`)}function Kl(e,t){if(e.classList)e.classList.remove(t);else if(Ac(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const h1=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",Wl(n,e)},onEnter:n=>{Ge(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(Kl(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{Wl(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(Kl(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},v1=()=>({title:H.any,originItemValue:oe()}),Mo=z({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:v1(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=ot(),i=$(()=>`${r.value}-item-group`),a=Hi();return()=>{var l,u;return a?(l=n.default)===null||l===void 0?void 0:l.call(n):h("li",M(M({},o),{},{onClick:c=>c.stopPropagation(),class:i.value}),[h("div",{title:typeof e.title=="string"?e.title:void 0,class:`${i.value}-title`},[ni(n,e,"title")]),h("ul",{class:`${i.value}-list`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),y1=()=>({prefixCls:String,dashed:Boolean}),Ao=z({compatConfig:{MODE:3},name:"AMenuDivider",props:y1(),setup(e){const{prefixCls:t}=ot(),n=$(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>h("li",{class:n.value},null)}});var b1=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const i=o,{label:a,children:l,key:u,type:c}=i,d=b1(i,["label","children","key","type"]),s=u??`tmp-${r}`,f=n?n.parentKeys.slice():[],m=[],g={eventKey:s,key:s,parentEventKeys:X(f),parentKeys:X(f),childrenEventKeys:X(m),isLeaf:!1};if(l||c==="group"){if(c==="group"){const x=Xr(l,t,n);return h(Mo,M(M({key:s},d),{},{title:a,originItemValue:o}),{default:()=>[x]})}t.set(s,g),n&&n.childrenEventKeys.push(s);const v=Xr(l,t,{childrenEventKeys:m,parentKeys:[].concat(f,s)});return h(un,M(M({key:s},d),{},{title:a,originItemValue:o}),{default:()=>[v]})}return c==="divider"?h(Ao,M({key:s},d),null):(g.isLeaf=!0,t.set(s,g),h(jn,M(M({key:s},d),{},{originItemValue:o}),{default:()=>[a]}))}return null}).filter(o=>o)}function C1(e){const t=N([]),n=N(!1),o=N(new Map);return Y(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Xr(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const S1=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},x1=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},Vl=e=>p({},ou(e)),Gl=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:l,colorItemBgSelected:u,colorActiveBarHeight:c,colorActiveBarWidth:d,colorActiveBarBorderSize:s,motionDurationSlow:f,motionEaseInOut:m,motionEaseOut:g,menuItemPaddingInline:v,motionDurationMid:x,colorItemTextHover:y,lineType:S,colorSplit:w,colorItemTextDisabled:T,colorDangerItemText:O,colorDangerItemTextHover:P,colorDangerItemTextSelected:C,colorDangerItemBgActive:_,colorDangerItemBgSelected:A,colorItemBgHover:E,menuSubMenuBg:D,colorItemTextSelectedHorizontal:k,colorItemBgSelectedHorizontal:W}=e;return{[`${n}-${t}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:p({},Vl(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:u}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:u}}},[`${n}-item-danger`]:{color:O,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:P}},[`&${n}-item:active`]:{background:_}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:A}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:p({},Vl(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:p(p({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:s,marginTop:-s,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${m}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:W,"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${s}px ${S} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:s&&d?{width:`calc(100% + ${s}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${g}`,`opacity ${x} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${m}`,`opacity ${x} ${m}`].join(",")}}}}}},Ul=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,marginXXS:l}=e,u=r+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},$1=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:u,paddingXL:c,fontSizeSM:d,fontSizeLG:s,motionDurationSlow:f,paddingXS:m,boxShadowSecondary:g}=e,v={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":p({[`&${t}-root`]:{boxShadow:"none"}},Ul(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:p(p({},Ul(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:s,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d}px)`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:s,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:p(p({},jp),{paddingInline:m})}}]},Xl=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:l,controlHeightSM:u}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${a}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:u-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:p({},nu()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yl=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},w1=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:u,padding:c,colorSplit:d,lineWidth:s,zIndexPopup:f,borderRadiusLG:m,radiusSubMenuItem:g,menuArrowSize:v,menuArrowOffset:x,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:p(p({},Rr()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:p(p(p(p(p(p(p({},Wn(e)),Rr()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${u}px ${c}px`,fontSize:o,lineHeight:l,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:y,borderWidth:0,borderTopWidth:s,marginBlock:s,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xl(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:m,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:p(p(p({borderRadius:m},Xl(e)),Yl(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})}}),Yl(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${x})`},"&::after":{transform:`rotate(45deg) translateX(-${x})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${x})`},"&::before":{transform:`rotate(45deg) translateX(${x})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},O1=(e,t)=>et("Menu",(o,r)=>{let{overrideComponentToken:i}=r;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:u,colorErrorHover:c,colorTextLightSolid:d}=o,{controlHeightLG:s,fontSize:f}=o,m=f/7*5,g=He(o,{menuItemHeight:s,menuItemPaddingInline:o.margin,menuArrowSize:m,menuHorizontalHeight:s*1.15,menuArrowOffset:`${m*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),v=new fe(d).setAlpha(.65).toRgbString(),x=He(g,{colorItemText:v,colorItemTextHover:d,colorGroupTitle:v,colorItemTextSelected:d,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new fe(d).setAlpha(.25).toRgbString(),colorDangerItemText:u,colorDangerItemTextHover:c,colorDangerItemTextSelected:d,colorDangerItemBgActive:u,colorDangerItemBgSelected:u,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:d,colorItemBgSelectedHorizontal:l},p({},i));return[w1(g),S1(g),$1(g),Gl(g,"light"),Gl(x,"dark"),x1(g),L0(g),bl(g,"slide-up"),bl(g,"slide-down"),_i(g,"zoom-big")]},o=>{const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:u,colorTextDescription:c,colorBgContainer:d,colorFillAlter:s,colorFillContent:f,lineWidth:m,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:x}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:u,colorItemTextHover:u,colorItemTextHoverHorizontal:r,colorGroupTitle:c,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:d,colorItemBgHover:x,colorItemBgActive:f,colorSubItemBg:s,colorItemBgSelected:v,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:m,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:o.marginXXS}})(e),P1=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),ql=[],Pt=z({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:P1(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:a}=Fe("menu",e),l=xc(),u=$(()=>{var R;return a("menu",e.prefixCls||((R=l==null?void 0:l.prefixCls)===null||R===void 0?void 0:R.value))}),[c,d]=O1(u,$(()=>!l)),s=N(new Map),f=ce(l1,X(void 0)),m=$(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:g}=C1(e),v=N(!1);je(()=>{v.value=!0}),Ae(()=>{ln(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),ln(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const x=X([]),y=X([]),S=X({});Y(s,()=>{const R={};for(const K of s.value.values())R[K.key]=K;S.value=R},{flush:"post"}),Ae(()=>{if(e.activeKey!==void 0){let R=[];const K=e.activeKey?S.value[e.activeKey]:void 0;K&&e.activeKey!==void 0?R=hr([].concat(Ke(K.parentKeys),e.activeKey)):R=[],Cn(x.value,R)||(x.value=R)}}),Y(()=>e.selectedKeys,R=>{R&&(y.value=R.slice())},{immediate:!0,deep:!0});const w=X([]);Y([S,y],()=>{let R=[];y.value.forEach(K=>{const U=S.value[K];U&&(R=R.concat(Ke(U.parentKeys)))}),R=hr(R),Cn(w.value,R)||(w.value=R)},{immediate:!0});const T=R=>{if(e.selectable){const{key:K}=R,U=y.value.includes(K);let ae;e.multiple?U?ae=y.value.filter(ee=>ee!==K):ae=[...y.value,K]:ae=[K];const le=p(p({},R),{selectedKeys:ae});Cn(ae,y.value)||(e.selectedKeys===void 0&&(y.value=ae),o("update:selectedKeys",ae),U&&e.multiple?o("deselect",le):o("select",le))}E.value!=="inline"&&!e.multiple&&O.value.length&&W(ql)},O=X([]);Y(()=>e.openKeys,function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O.value;Cn(O.value,R)||(O.value=R.slice())},{immediate:!0,deep:!0});let P;const C=R=>{clearTimeout(P),P=setTimeout(()=>{e.activeKey===void 0&&(x.value=R),o("update:activeKey",R[R.length-1])})},_=$(()=>!!e.disabled),A=$(()=>i.value==="rtl"),E=X("vertical"),D=N(!1);Ae(()=>{var R;(e.mode==="inline"||e.mode==="vertical")&&m.value?(E.value="vertical",D.value=m.value):(E.value=e.mode,D.value=!1),!((R=l==null?void 0:l.mode)===null||R===void 0)&&R.value&&(E.value=l.mode.value)});const k=$(()=>E.value==="inline"),W=R=>{O.value=R,o("update:openKeys",R),o("openChange",R)},G=X(O.value),b=N(!1);Y(O,()=>{k.value&&(G.value=O.value)},{immediate:!0}),Y(k,()=>{if(!b.value){b.value=!0;return}k.value?O.value=G.value:W(ql)},{immediate:!0});const I=$(()=>({[`${u.value}`]:!0,[`${u.value}-root`]:!0,[`${u.value}-${E.value}`]:!0,[`${u.value}-inline-collapsed`]:D.value,[`${u.value}-rtl`]:A.value,[`${u.value}-${e.theme}`]:!0})),B=$(()=>a()),j=$(()=>({horizontal:{name:`${B.value}-slide-up`},inline:h1(`${B.value}-motion-collapse`),other:{name:`${B.value}-zoom-big`}}));_c(!0);const Q=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const K=[],U=s.value;return R.forEach(ae=>{const{key:le,childrenEventKeys:ee}=U.get(ae);K.push(le,...Q(Ke(ee)))}),K},ne=R=>{var K;o("click",R),T(R),(K=l==null?void 0:l.onClick)===null||K===void 0||K.call(l)},F=(R,K)=>{var U;const ae=((U=S.value[R])===null||U===void 0?void 0:U.childrenEventKeys)||[];let le=O.value.filter(ee=>ee!==R);if(K)le.push(R);else if(E.value!=="inline"){const ee=Q(Ke(ae));le=hr(le.filter(we=>!ee.includes(we)))}Cn(O,le)||W(le)},J=(R,K)=>{s.value.set(R,K),s.value=new Map(s.value)},re=R=>{s.value.delete(R),s.value=new Map(s.value)},be=X(0),de=$(()=>{var R;return e.expandIcon||n.expandIcon||!((R=l==null?void 0:l.expandIcon)===null||R===void 0)&&R.value?K=>{let U=e.expandIcon||n.expandIcon;return U=typeof U=="function"?U(K):U,Et(U,{class:`${u.value}-submenu-expand-icon`},!1)}:null});wc({prefixCls:u,activeKeys:x,openKeys:O,selectedKeys:y,changeActiveKeys:C,disabled:_,rtl:A,mode:E,inlineIndent:$(()=>e.inlineIndent),subMenuCloseDelay:$(()=>e.subMenuCloseDelay),subMenuOpenDelay:$(()=>e.subMenuOpenDelay),builtinPlacements:$(()=>e.builtinPlacements),triggerSubMenuAction:$(()=>e.triggerSubMenuAction),getPopupContainer:$(()=>e.getPopupContainer),inlineCollapsed:D,theme:$(()=>e.theme),siderCollapsed:f,defaultMotions:$(()=>v.value?j.value:null),motion:$(()=>v.value?e.motion:null),overflowDisabled:N(void 0),onOpenChange:F,onItemClick:ne,registerMenuInfo:J,unRegisterMenuInfo:re,selectedSubMenuKeys:w,expandIcon:de,forceSubMenuRender:$(()=>e.forceSubMenuRender),rootClassName:d});const ge=()=>{var R;return g.value||Te((R=n.default)===null||R===void 0?void 0:R.call(n))};return()=>{var R;const K=ge(),U=be.value>=K.length-1||E.value!=="horizontal"||e.disabledOverflow,ae=ee=>E.value!=="horizontal"||e.disabledOverflow?ee:ee.map((we,se)=>h(Eo,{key:we.key,overflowDisabled:se>be.value},{default:()=>we})),le=((R=n.overflowedIndicator)===null||R===void 0?void 0:R.call(n))||h(Di,null,null);return c(h(ct,M(M({},r),{},{onMousedown:e.onMousedown,prefixCls:`${u.value}-overflow`,component:"ul",itemComponent:jn,class:[I.value,r.class,d.value],role:"menu",id:e.id,data:ae(K),renderRawItem:ee=>ee,renderRawRest:ee=>{const we=ee.length,se=we?K.slice(-we):null;return h(Ne,null,[h(un,{eventKey:lo,key:lo,title:le,disabled:U,internalPopupClose:we===0},{default:()=>se}),h(Ll,null,{default:()=>[h(un,{eventKey:lo,key:lo,title:le,disabled:U,internalPopupClose:we===0},{default:()=>se})]})])},maxCount:E.value!=="horizontal"||e.disabledOverflow?ct.INVALIDATE:ct.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ee=>{be.value=ee}}),{default:()=>[h(Jr,{to:"body"},{default:()=>[h("div",{style:{display:"none"},"aria-hidden":!0},[h(Ll,null,{default:()=>[ae(ge())]})])]})]}))}}});Pt.install=function(e){return e.component(Pt.name,Pt),e.component(jn.name,jn),e.component(un.name,un),e.component(Ao.name,Ao),e.component(Mo.name,Mo),e};Pt.Item=jn;Pt.Divider=Ao;Pt.SubMenu=un;Pt.ItemGroup=Mo;var T1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Ql(e){for(var t=1;tDe()&&window.document.documentElement,Nc=e=>{if(De()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},E1=(e,t)=>{if(!Nc(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function cS(e,t){return!Array.isArray(e)&&t!==void 0?E1(e,t):Nc(e)}let vo=p({},Tt.Modal);function M1(e){e?vo=p(p({},vo),e):vo=p({},Tt.Modal)}function A1(){return vo}const Yr="internalMark",yo=z({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Lo(e.ANT_MARK__===Yr);const o=Ze({antLocale:p(p({},e.locale),{exist:!0}),ANT_MARK__:Yr});return ye("localeData",o),Y(()=>e.locale,r=>{M1(r&&r.Modal),o.antLocale=p(p({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});yo.install=function(e){return e.component(yo.name,yo),e};const R1=Ho(yo),Dc=z({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,i=!1;const a=$(()=>e.duration===void 0?4.5:e.duration),l=()=>{a.value&&!i&&(r=setTimeout(()=>{c()},a.value*1e3))},u=()=>{r&&(clearTimeout(r),r=null)},c=s=>{s&&s.stopPropagation(),u();const{onClose:f,noticeKey:m}=e;f&&f(m)},d=()=>{u(),l()};return je(()=>{l()}),No(()=>{i=!0,u()}),Y([a,()=>e.updateMark,()=>e.visible],(s,f)=>{let[m,g,v]=s,[x,y,S]=f;(m!==x||g!==y||v!==S&&S)&&d()},{flush:"post"}),()=>{var s,f;const{prefixCls:m,closable:g,closeIcon:v=(s=o.closeIcon)===null||s===void 0?void 0:s.call(o),onClick:x,holder:y}=e,{class:S,style:w}=n,T=`${m}-notice`,O=Object.keys(n).reduce((C,_)=>((_.startsWith("data-")||_.startsWith("aria-")||_==="role")&&(C[_]=n[_]),C),{}),P=h("div",M({class:q(T,S,{[`${T}-closable`]:g}),style:w,onMouseenter:u,onMouseleave:l,onClick:x},O),[h("div",{class:`${T}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),g?h("a",{tabindex:0,onClick:c,class:`${T}-close`},[v||h("span",{class:`${T}-close-x`},null)]):null]);return y?h(Jr,{to:y},{default:()=>P}):P}}});var N1=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:d,animation:s="fade"}=e;let f=e.transitionName;return!f&&s&&(f=`${d}-${s}`),Yu(f)}),u=(d,s)=>{const f=d.key||Jl(),m=p(p({},d),{key:f}),{maxCount:g}=e,v=a.value.map(y=>y.notice.key).indexOf(f),x=a.value.concat();v!==-1?x.splice(v,1,{notice:m,holderCallback:s}):(g&&a.value.length>=g&&(m.key=x[0].notice.key,m.updateMark=Jl(),m.userPassKey=f,x.shift()),x.push({notice:m,holderCallback:s})),a.value=x},c=d=>{a.value=Sr(a.value).filter(s=>{let{notice:{key:f,userPassKey:m}}=s;return(m||f)!==d})};return o({add:u,remove:c,notices:a}),()=>{var d;const{prefixCls:s,closeIcon:f=(d=r.closeIcon)===null||d===void 0?void 0:d.call(r,{prefixCls:s})}=e,m=a.value.map((v,x)=>{let{notice:y,holderCallback:S}=v;const w=x===a.value.length-1?y.updateMark:void 0,{key:T,userPassKey:O}=y,{content:P}=y,C=p(p(p({prefixCls:s,closeIcon:typeof f=="function"?f({prefixCls:s}):f},y),y.props),{key:T,noticeKey:O||T,updateMark:w,onClose:_=>{var A;c(_),(A=y.onClose)===null||A===void 0||A.call(y)},onClick:y.onClick});return S?h("div",{key:T,class:`${s}-hook-holder`,ref:_=>{typeof T>"u"||(_?(i.set(T,_),S(_,C)):i.delete(T))}},null):h(Dc,M(M({},C),{},{class:q(C.class,e.hashId)}),{default:()=>[typeof P=="function"?P({prefixCls:s}):P]})}),g={[s]:1,[n.class]:!!n.class,[e.hashId]:!0};return h("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[h(hs,M({tag:"div"},l.value),{default:()=>[m]})])}}});Ro.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:i,appContext:a,prefixCls:l,rootPrefixCls:u,transitionName:c,hasTransitionName:d,useStyle:s}=o,f=N1(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),m=document.createElement("div");i?i().appendChild(m):document.body.appendChild(m);const g=z({compatConfig:{MODE:3},name:"NotificationWrapper",setup(x,y){let{attrs:S}=y;const w=N(),T=$(()=>he.getPrefixCls(r,l)),[,O]=s(T);return je(()=>{n({notice(P){var C;(C=w.value)===null||C===void 0||C.add(P)},removeNotice(P){var C;(C=w.value)===null||C===void 0||C.remove(P)},destroy(){dt(null,m),m.parentNode&&m.parentNode.removeChild(m)},component:w})}),()=>{const P=he,C=P.getRootPrefixCls(u,T.value),_=d?c:`${T.value}-${c}`;return h(Zt,M(M({},P),{},{prefixCls:C}),{default:()=>[h(Ro,M(M({ref:w},S),{},{prefixCls:T.value,transitionName:_,hashId:O.value}),null)]})}}}),v=h(g,f);v.appContext=a||v.appContext,dt(v,m)};let es=0;const B1=Date.now();function ts(){const e=es;return es+=1,`rcNotification_${B1}_${e}`}const H1=z({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,i=$(()=>e.notices),a=$(()=>{let d=e.transitionName;if(!d&&e.animation)switch(typeof e.animation){case"string":d=e.animation;break;case"function":d=e.animation().name;break;case"object":d=e.animation.name;break;default:d=`${e.prefixCls}-fade`;break}return Yu(d)}),l=d=>e.remove(d),u=X({});Y(i,()=>{const d={};Object.keys(u.value).forEach(s=>{d[s]=[]}),e.notices.forEach(s=>{const{placement:f="topRight"}=s.notice;f&&(d[f]=d[f]||[],d[f].push(s))}),u.value=d});const c=$(()=>Object.keys(u.value));return()=>{var d;const{prefixCls:s,closeIcon:f=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o,{prefixCls:s})}=e,m=c.value.map(g=>{var v,x;const y=u.value[g],S=(v=e.getClassName)===null||v===void 0?void 0:v.call(e,g),w=(x=e.getStyles)===null||x===void 0?void 0:x.call(e,g),T=y.map((C,_)=>{let{notice:A,holderCallback:E}=C;const D=_===i.value.length-1?A.updateMark:void 0,{key:k,userPassKey:W}=A,{content:G}=A,b=p(p(p({prefixCls:s,closeIcon:typeof f=="function"?f({prefixCls:s}):f},A),A.props),{key:k,noticeKey:W||k,updateMark:D,onClose:I=>{var B;l(I),(B=A.onClose)===null||B===void 0||B.call(A)},onClick:A.onClick});return E?h("div",{key:k,class:`${s}-hook-holder`,ref:I=>{typeof k>"u"||(I?(r.set(k,I),E(I,b)):r.delete(k))}},null):h(Dc,M(M({},b),{},{class:q(b.class,e.hashId)}),{default:()=>[typeof G=="function"?G({prefixCls:s}):G]})}),O={[s]:1,[`${s}-${g}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function P(){var C;y.length>0||(Reflect.deleteProperty(u.value,g),(C=e.onAllRemoved)===null||C===void 0||C.call(e))}return h("div",{key:g,class:O,style:n.style||w||{top:"65px",left:"50%"}},[h(hs,M(M({tag:"div"},a.value),{},{onAfterLeave:P}),{default:()=>[T]})])});return h(Qu,{getContainer:e.getContainer},{default:()=>[m]})}}});var j1=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let ns=0;function L1(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(i=>{const a=r[i];a!==void 0&&(e[i]=a)})}),e}function Bc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=z1,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:a,onAllRemoved:l}=e,u=j1(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=N([]),d=N(),s=(y,S)=>{const w=y.key||ts(),T=p(p({},y),{key:w}),O=c.value.map(C=>C.notice.key).indexOf(w),P=c.value.concat();O!==-1?P.splice(O,1,{notice:T,holderCallback:S}):(r&&c.value.length>=r&&(T.key=P[0].notice.key,T.updateMark=ts(),T.userPassKey=w,P.shift()),P.push({notice:T,holderCallback:S})),c.value=P},f=y=>{c.value=c.value.filter(S=>{let{notice:{key:w,userPassKey:T}}=S;return(T||w)!==y})},m=()=>{c.value=[]},g=()=>h(H1,{ref:d,prefixCls:o,maxCount:r,notices:c.value,remove:f,getClassName:i,getStyles:a,animation:n,hashId:e.hashId,onAllRemoved:l,getContainer:t},null),v=N([]),x={open:y=>{const S=L1(u,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${ns}`,ns+=1),v.value=[...v.value,{type:"open",config:S}]},close:y=>{v.value=[...v.value,{type:"close",key:y}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return Y(v,()=>{v.value.length&&(v.value.forEach(y=>{switch(y.type){case"open":s(y.config);break;case"close":f(y.key);break;case"destroy":m();break}}),v.value=[])}),[x,g]}const F1=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:u,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:s,marginXS:f,paddingXS:m,borderRadiusLG:g,zIndexPopup:v,messageNoticeContentPadding:x}=e,y=new te("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),S=new te("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:p(p({},Wn(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:y,animationDuration:s,animationPlayState:"paused",animationTimingFunction:d},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:s,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:m,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:x,background:r,borderRadius:g,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:a},[`${t}-warning ${n}`]:{color:l},[` + ${t}-info ${n}, + ${t}-loading ${n}`]:{color:u}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},Hc=et("Message",e=>{const t=He(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[F1(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),k1={info:h(Lt,null,null),success:h(jt,null,null),error:h(Ht,null,null),warning:h(zt,null,null),loading:h(At,null,null)},W1=z({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return h("div",{class:q(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||k1[e.type],h("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var K1=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);ri("message",e.prefixCls)),[,u]=Hc(l),c=()=>{var v;const x=(v=e.top)!==null&&v!==void 0?v:V1;return{left:"50%",transform:"translateX(-50%)",top:typeof x=="number"?`${x}px`:x}},d=()=>q(u.value,e.rtl?`${l.value}-rtl`:""),s=()=>{var v;return hi({prefixCls:l.value,animation:(v=e.animation)!==null&&v!==void 0?v:"move-up",transitionName:e.transitionName})},f=h("span",{class:`${l.value}-close-x`},[h(gn,{class:`${l.value}-close-icon`},null)]),[m,g]=Bc({getStyles:c,prefixCls:l.value,getClassName:d,motion:s,closable:!1,closeIcon:f,duration:(o=e.duration)!==null&&o!==void 0?o:G1,getContainer:(r=e.staticGetContainer)!==null&&r!==void 0?r:a.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(p(p({},m),{prefixCls:l,hashId:u})),g}});let os=0;function X1(e){const t=N(null),n=Symbol("messageHolderKey"),o=u=>{var c;(c=t.value)===null||c===void 0||c.close(u)},r=u=>{if(!t.value){const O=()=>{};return O.then=()=>{},O}const{open:c,prefixCls:d,hashId:s}=t.value,f=`${d}-notice`,{content:m,icon:g,type:v,key:x,class:y,onClose:S}=u,w=K1(u,["content","icon","type","key","class","onClose"]);let T=x;return T==null&&(os+=1,T=`antd-message-${os}`),Md(O=>(c(p(p({},w),{key:T,content:()=>h(W1,{prefixCls:d,type:v,icon:typeof g=="function"?g():g},{default:()=>[typeof m=="function"?m():m]}),placement:"top",class:q(v&&`${f}-${v}`,s,y),onClose:()=>{S==null||S(),O()}})),()=>{o(T)}))},a={open:r,destroy:u=>{var c;u!==void 0?o(u):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const c=(d,s,f)=>{let m;d&&typeof d=="object"&&"content"in d?m=d:m={content:d};let g,v;typeof s=="function"?v=s:(g=s,v=f);const x=p(p({onClose:v,duration:g},m),{type:u});return r(x)};a[u]=c}),[a,()=>h(U1,M(M({key:n},e),{},{ref:t}),null)]}function Y1(e){return X1(e)}let jc=3,zc,xe,q1=1,Lc="",Fc="move-up",kc=!1,Wc=()=>document.body,Kc,Vc=!1;function Q1(){return q1++}function Z1(e){e.top!==void 0&&(zc=e.top,xe=null),e.duration!==void 0&&(jc=e.duration),e.prefixCls!==void 0&&(Lc=e.prefixCls),e.getContainer!==void 0&&(Wc=e.getContainer,xe=null),e.transitionName!==void 0&&(Fc=e.transitionName,xe=null,kc=!0),e.maxCount!==void 0&&(Kc=e.maxCount,xe=null),e.rtl!==void 0&&(Vc=e.rtl)}function J1(e,t){if(xe){t(xe);return}Ro.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||Lc,rootPrefixCls:e.rootPrefixCls,transitionName:Fc,hasTransitionName:kc,style:{top:zc},getContainer:Wc||e.getPopupContainer,maxCount:Kc,name:"message",useStyle:Hc},n=>{if(xe){t(xe);return}xe=n,t(n)})}const Gc={info:Lt,success:jt,error:Ht,warning:zt,loading:At},eC=Object.keys(Gc);function tC(e){const t=e.duration!==void 0?e.duration:jc,n=e.key||Q1(),o=new Promise(i=>{const a=()=>(typeof e.onClose=="function"&&e.onClose(),i(!0));J1(e,l=>{l.notice({key:n,duration:t,style:e.style||{},class:e.class,content:u=>{let{prefixCls:c}=u;const d=Gc[e.type],s=d?h(d,null,null):"",f=q(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:Vc===!0});return h("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||s,h("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:a,onClick:e.onClick})})}),r=()=>{xe&&xe.removeNotice(n)};return r.then=(i,a)=>o.then(i,a),r.promise=o,r}function nC(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const zn={open:tC,config:Z1,destroy(e){if(xe)if(e){const{removeNotice:t}=xe;t(e)}else{const{destroy:t}=xe;t(),xe=null}}};function oC(e,t){e[t]=(n,o,r)=>nC(n)?e.open(p(p({},n),{type:t})):(typeof o=="function"&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}eC.forEach(e=>oC(zn,e));zn.warn=zn.warning;zn.useMessage=Y1;const rC=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new te("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new te("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new te("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}},iC=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:u,colorWarning:c,colorError:d,colorTextHeading:s,notificationBg:f,notificationPadding:m,notificationMarginEdge:g,motionDurationMid:v,motionEaseInOut:x,fontSize:y,lineHeight:S,width:w,notificationIconSize:T}=e,O=`${n}-notice`,P=new te("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),C=new te("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:p(p(p(p({},Wn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:g,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:x,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:x,animationFillMode:"both",animationDuration:v,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:P,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:C,animationPlayState:"running"}}),rC(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[O]:{position:"relative",width:w,maxWidth:`calc(100vw - ${g*2}px)`,marginBottom:i,marginInlineStart:"auto",padding:m,overflow:"hidden",lineHeight:S,wordWrap:"break-word",background:f,borderRadius:a,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${O}-message`]:{marginBottom:e.marginXS,color:s,fontSize:r,lineHeight:e.lineHeightLG},[`${O}-description`]:{fontSize:y},[`&${O}-closable ${O}-message`]:{paddingInlineEnd:e.paddingLG},[`${O}-with-icon ${O}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+T,fontSize:r},[`${O}-with-icon ${O}-description`]:{marginInlineStart:e.marginSM+T,fontSize:y},[`${O}-icon`]:{position:"absolute",fontSize:T,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:d}},[`${O}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${O}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${O}-pure-panel`]:{margin:0}}]},Uc=et("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=He(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[iC(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function aC(e,t){return h("span",{class:`${e}-close-x`},[h(gn,{class:`${e}-close-icon`},null)])}h(Lt,null,null),h(jt,null,null),h(Ht,null,null),h(zt,null,null),h(At,null,null);const lC={success:jt,info:Lt,error:Ht,warning:zt};function sC(e){let{prefixCls:t,icon:n,type:o,message:r,description:i,btn:a}=e,l=null;if(n)l=h("span",{class:`${t}-icon`},[Kt(n)]);else if(o){const u=lC[o];l=h(u,{class:`${t}-icon ${t}-icon-${o}`},null)}return h("div",{class:q({[`${t}-with-icon`]:l}),role:"alert"},[l,h("div",{class:`${t}-message`},[r]),h("div",{class:`${t}-description`},[i]),a&&h("div",{class:`${t}-btn`},[a])])}function Xc(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function uC(e){return{name:`${e}-fade`}}var cC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification")),a=f=>{var m,g;return Xc(f,(m=e.top)!==null&&m!==void 0?m:rs,(g=e.bottom)!==null&&g!==void 0?g:rs)},[,l]=Uc(i),u=()=>q(l.value,{[`${i.value}-rtl`]:e.rtl}),c=()=>uC(i.value),[d,s]=Bc({prefixCls:i.value,getStyles:a,getClassName:u,motion:c,closable:!0,closeIcon:aC(i.value),duration:dC,getContainer:()=>{var f,m;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((m=r.value)===null||m===void 0?void 0:m.call(r))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(p(p({},d),{prefixCls:i.value,hashId:l})),s}});function pC(e){const t=N(null),n=Symbol("notificationHolderKey"),o=l=>{if(!t.value)return;const{open:u,prefixCls:c,hashId:d}=t.value,s=`${c}-notice`,{message:f,description:m,icon:g,type:v,btn:x,class:y}=l,S=cC(l,["message","description","icon","type","btn","class"]);return u(p(p({placement:"topRight"},S),{content:()=>h(sC,{prefixCls:s,icon:typeof g=="function"?g():g,type:v,message:typeof f=="function"?f():f,description:typeof m=="function"?m():m,btn:typeof x=="function"?x():x},null),class:q(v&&`${s}-${v}`,d,y)}))},i={open:o,destroy:l=>{var u,c;l!==void 0?(u=t.value)===null||u===void 0||u.close(l):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=u=>o(p(p({},u),{type:l}))}),[i,()=>h(fC,M(M({key:n},e),{},{ref:t}),null)]}function mC(e){return pC(e)}const bt={};let Yc=4.5,qc="24px",Qc="24px",qr="",Zc="topRight",Jc=()=>document.body,ed=null,Qr=!1,td;function gC(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:i,closeIcon:a,prefixCls:l}=e;l!==void 0&&(qr=l),t!==void 0&&(Yc=t),n!==void 0&&(Zc=n),o!==void 0&&(Qc=typeof o=="number"?`${o}px`:o),r!==void 0&&(qc=typeof r=="number"?`${r}px`:r),i!==void 0&&(Jc=i),a!==void 0&&(ed=a),e.rtl!==void 0&&(Qr=e.rtl),e.maxCount!==void 0&&(td=e.maxCount)}function hC(e,t){let{prefixCls:n,placement:o=Zc,getContainer:r=Jc,top:i,bottom:a,closeIcon:l=ed,appContext:u}=e;const{getPrefixCls:c}=_C(),d=c("notification",n||qr),s=`${d}-${o}-${Qr}`,f=bt[s];if(f){Promise.resolve(f).then(g=>{t(g)});return}const m=q(`${d}-${o}`,{[`${d}-rtl`]:Qr===!0});Ro.newInstance({name:"notification",prefixCls:n||qr,useStyle:Uc,class:m,style:Xc(o,i??qc,a??Qc),appContext:u,getContainer:r,closeIcon:g=>{let{prefixCls:v}=g;return h("span",{class:`${v}-close-x`},[Kt(l,{},h(gn,{class:`${v}-close-icon`},null))])},maxCount:td,hasTransitionName:!0},g=>{bt[s]=g,t(g)})}const vC={success:Ii,info:Mi,error:Ai,warning:Ei};function yC(e){const{icon:t,type:n,description:o,message:r,btn:i}=e,a=e.duration===void 0?Yc:e.duration;hC(e,l=>{l.notice({content:u=>{let{prefixCls:c}=u;const d=`${c}-notice`;let s=null;if(t)s=()=>h("span",{class:`${d}-icon`},[Kt(t)]);else if(n){const f=vC[n];s=()=>h(f,{class:`${d}-icon ${d}-icon-${n}`},null)}return h("div",{class:s?`${d}-with-icon`:""},[s&&s(),h("div",{class:`${d}-message`},[!o&&s?h("span",{class:`${d}-message-single-line-auto-margin`},null):null,Kt(r)]),h("div",{class:`${d}-description`},[Kt(o)]),i?h("span",{class:`${d}-btn`},[Kt(i)]):null])},duration:a,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const cn={open:yC,close(e){Object.keys(bt).forEach(t=>Promise.resolve(bt[t]).then(n=>{n.removeNotice(e)}))},config:gC,destroy(){Object.keys(bt).forEach(e=>{Promise.resolve(bt[e]).then(t=>{t.destroy()}),delete bt[e]})}},bC=["success","info","warning","error"];bC.forEach(e=>{cn[e]=t=>cn.open(p(p({},t),{type:e}))});cn.warn=cn.warning;cn.useNotification=mC;const CC=`-ant-${Date.now()}-${Math.random()}`;function SC(e,t){const n={},o=(a,l)=>{let u=a.clone();return u=(l==null?void 0:l(u))||u,u.toRgbString()},r=(a,l)=>{const u=new fe(a),c=_t(u.toRgbString());n[`${l}-color`]=o(u),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=u.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){r(t.primaryColor,"primary");const a=new fe(t.primaryColor),l=_t(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=o(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=o(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=o(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=o(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=o(a,c=>c.setAlpha(c.getAlpha()*.12));const u=new fe(l[0]);n["primary-color-active-deprecated-f-30"]=o(u,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(u,c=>c.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function xC(e,t){const n=SC(e,t);De()&&_n(n,`${CC}-dynamic-theme`)}const $C=e=>{const[t,n]=Kn();return Ir($(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:p(p({},nu()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function wC(e,t){const n=$(()=>(e==null?void 0:e.value)||{}),o=$(()=>n.value.inherit===!1||!(t!=null&&t.value)?au:t.value);return $(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const i=p({},o.value.components);return Object.keys(e.value.components||{}).forEach(a=>{i[a]=p(p({},i[a]),e.value.components[a])}),p(p(p({},o.value),n.value),{token:p(p({},o.value.token),n.value.token),components:i})})}var OC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{p(he,zi),he.prefixCls=Qt(),he.iconPrefixCls=nd(),he.getPrefixCls=(e,t)=>t||(e?`${he.prefixCls}-${e}`:he.prefixCls),he.getRootPrefixCls=()=>he.prefixCls?he.prefixCls:Qt()});let br;const TC=e=>{br&&br(),br=Ae(()=>{p(zi,Ze(e)),p(he,Ze(e))}),e.theme&&xC(Qt(),e.theme)},_C=()=>({getPrefixCls:(e,t)=>t||(e?`${Qt()}-${e}`:Qt()),getIconPrefixCls:nd,getRootPrefixCls:()=>he.prefixCls?he.prefixCls:Qt()}),Zt=z({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:sf(),setup(e,t){let{slots:n}=t;const o=ai(),r=(b,I)=>{const{prefixCls:B="ant"}=e;if(I)return I;const j=B||o.getPrefixCls("");return b?`${j}-${b}`:j},i=$(()=>e.iconPrefixCls||o.iconPrefixCls.value||ri),a=$(()=>i.value!==o.iconPrefixCls.value),l=$(()=>{var b;return e.csp||((b=o.csp)===null||b===void 0?void 0:b.value)}),u=$C(i),c=wC($(()=>e.theme),$(()=>{var b;return(b=o.theme)===null||b===void 0?void 0:b.value})),d=b=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||qp)(b),s=$(()=>{var b,I;return(b=e.autoInsertSpaceInButton)!==null&&b!==void 0?b:(I=o.autoInsertSpaceInButton)===null||I===void 0?void 0:I.value}),f=$(()=>{var b;return e.locale||((b=o.locale)===null||b===void 0?void 0:b.value)});Y(f,()=>{zi.locale=f.value},{immediate:!0});const m=$(()=>{var b;return e.direction||((b=o.direction)===null||b===void 0?void 0:b.value)}),g=$(()=>{var b,I;return(b=e.space)!==null&&b!==void 0?b:(I=o.space)===null||I===void 0?void 0:I.value}),v=$(()=>{var b,I;return(b=e.virtual)!==null&&b!==void 0?b:(I=o.virtual)===null||I===void 0?void 0:I.value}),x=$(()=>{var b,I;return(b=e.dropdownMatchSelectWidth)!==null&&b!==void 0?b:(I=o.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=$(()=>{var b;return e.getTargetContainer!==void 0?e.getTargetContainer:(b=o.getTargetContainer)===null||b===void 0?void 0:b.value}),S=$(()=>{var b;return e.getPopupContainer!==void 0?e.getPopupContainer:(b=o.getPopupContainer)===null||b===void 0?void 0:b.value}),w=$(()=>{var b;return e.pageHeader!==void 0?e.pageHeader:(b=o.pageHeader)===null||b===void 0?void 0:b.value}),T=$(()=>{var b;return e.input!==void 0?e.input:(b=o.input)===null||b===void 0?void 0:b.value}),O=$(()=>{var b;return e.pagination!==void 0?e.pagination:(b=o.pagination)===null||b===void 0?void 0:b.value}),P=$(()=>{var b;return e.form!==void 0?e.form:(b=o.form)===null||b===void 0?void 0:b.value}),C=$(()=>{var b;return e.select!==void 0?e.select:(b=o.select)===null||b===void 0?void 0:b.value}),_=$(()=>e.componentSize),A=$(()=>e.componentDisabled),E=$(()=>{var b,I;return(b=e.wave)!==null&&b!==void 0?b:(I=o.wave)===null||I===void 0?void 0:I.value}),D={csp:l,autoInsertSpaceInButton:s,locale:f,direction:m,space:g,virtual:v,dropdownMatchSelectWidth:x,getPrefixCls:r,iconPrefixCls:i,theme:$(()=>{var b,I;return(b=c.value)!==null&&b!==void 0?b:(I=o.theme)===null||I===void 0?void 0:I.value}),renderEmpty:d,getTargetContainer:y,getPopupContainer:S,pageHeader:w,input:T,pagination:O,form:P,select:C,componentSize:_,componentDisabled:A,transformCellText:$(()=>e.transformCellText),wave:E},k=$(()=>{const b=c.value||{},{algorithm:I,token:B}=b,j=OC(b,["algorithm","token"]),Q=I&&(!Array.isArray(I)||I.length>0)?ks(I):void 0;return p(p({},j),{theme:Q,token:p(p({},Wo),B)})}),W=$(()=>{var b,I;let B={};return f.value&&(B=((b=f.value.Form)===null||b===void 0?void 0:b.defaultValidateMessages)||((I=Tt.Form)===null||I===void 0?void 0:I.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(B=p(p({},B),e.form.validateMessages)),B});uf(D),lf({validateMessages:W}),Qp(_),cf(A);const G=b=>{var I,B;let j=a.value?u((I=n.default)===null||I===void 0?void 0:I.call(n)):(B=n.default)===null||B===void 0?void 0:B.call(n);if(e.theme){const Q=function(){return j}();j=h(Vp,{value:k.value},{default:()=>[Q]})}return h(R1,{locale:f.value||b,ANT_MARK__:Yr},{default:()=>[j]})};return Ae(()=>{m.value&&(zn.config({rtl:m.value==="rtl"}),cn.config({rtl:m.value==="rtl"}))}),()=>h(As,{children:(b,I,B)=>G(B)},null)}});Zt.config=TC;Zt.install=function(e){e.component(Zt.name,Zt)};function Li(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:H.shape({x:Number,y:Number}).loose,title:H.any,footer:H.any,transitionName:String,maskTransitionName:String,animation:H.any,maskAnimation:H.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:H.any,maskProps:H.any,wrapProps:H.any,getContainer:H.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:H.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function is(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let as=-1;function IC(){return as+=1,as}function ls(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function EC(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=ls(r),n.top+=ls(r,!0),n}const MC={width:0,height:0,overflow:"hidden",outline:"none"},AC={outline:"none"},RC=z({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:p(p({},Li()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=X(),a=X(),l=X();n({focus:()=>{var f;(f=i.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:m}=document;f&&m===a.value?i.value.focus({preventScroll:!0}):!f&&m===i.value&&a.value.focus({preventScroll:!0})}});const u=X(),c=$(()=>{const{width:f,height:m}=e,g={};return f!==void 0&&(g.width=typeof f=="number"?`${f}px`:f),m!==void 0&&(g.height=typeof m=="number"?`${m}px`:m),u.value&&(g.transformOrigin=u.value),g}),d=()=>{Ge(()=>{if(l.value){const f=EC(l.value);u.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},s=f=>{e.onVisibleChanged(f)};return()=>{var f,m,g,v;const{prefixCls:x,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(m=o.title)===null||m===void 0?void 0:m.call(o),ariaId:w,closable:T,closeIcon:O=(g=o.closeIcon)===null||g===void 0?void 0:g.call(o),onClose:P,bodyStyle:C,bodyProps:_,onMousedown:A,onMouseup:E,visible:D,modalRender:k=o.modalRender,destroyOnClose:W,motionName:G}=e;let b;y&&(b=h("div",{class:`${x}-footer`},[y]));let I;S&&(I=h("div",{class:`${x}-header`},[h("div",{class:`${x}-title`,id:w},[S])]));let B;T&&(B=h("button",{type:"button",onClick:P,"aria-label":"Close",class:`${x}-close`},[O||h("span",{class:`${x}-close-x`},null)]));const j=h("div",{class:`${x}-content`},[B,I,h("div",M({class:`${x}-body`,style:C},_),[(v=o.default)===null||v===void 0?void 0:v.call(o)]),b]),Q=Xo(G);return h(ft,M(M({},Q),{},{onBeforeEnter:d,onAfterEnter:()=>s(!0),onAfterLeave:()=>s(!1)}),{default:()=>[D||!W?Fn(h("div",M(M({},r),{},{ref:l,key:"dialog-element",role:"document",style:[c.value,r.style],class:[x,r.class],onMousedown:A,onMouseup:E}),[h("div",{tabindex:0,ref:i,style:AC},[k?k({originVNode:j}):j]),h("div",{tabindex:0,ref:a,style:MC},null)]),[[Do,D]]):null]})}}}),NC=z({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:i}=e,a=Xo(i);return h(ft,a,{default:()=>[Fn(h("div",M({class:`${n}-mask`},r),null),[[Do,o]])]})}}}),ss=z({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:fn(p(p({},Li()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=N(),i=N(),a=N(),l=N(e.visible),u=N(`vcDialogTitle${IC()}`),c=y=>{var S,w;if(y)it(i.value,document.activeElement)||(r.value=document.activeElement,(S=a.value)===null||S===void 0||S.focus());else{const T=l.value;if(l.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}T&&((w=e.afterClose)===null||w===void 0||w.call(e))}},d=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},s=N(!1),f=N(),m=()=>{clearTimeout(f.value),s.value=!0},g=()=>{f.value=setTimeout(()=>{s.value=!1})},v=y=>{if(!e.maskClosable)return null;s.value?s.value=!1:i.value===y.target&&d(y)},x=y=>{if(e.keyboard&&y.keyCode===L.ESC){y.stopPropagation(),d(y);return}e.visible&&y.keyCode===L.TAB&&a.value.changeActive(!y.shiftKey)};return Y(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),$e(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),Ae(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),l.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:w,maskTransitionName:T,maskAnimation:O,zIndex:P,wrapClassName:C,rootClassName:_,wrapStyle:A,closable:E,maskProps:D,maskStyle:k,transitionName:W,animation:G,wrapProps:b,title:I=o.title}=e,{style:B,class:j}=n;return h("div",M({class:[`${y}-root`,_]},ny(e,{data:!0})),[h(NC,{prefixCls:y,visible:S&&w,motionName:is(y,T,O),style:p({zIndex:P},k),maskProps:D},null),h("div",M({tabIndex:-1,onKeydown:x,class:q(`${y}-wrap`,C),ref:i,onClick:v,role:"dialog","aria-labelledby":I?u.value:null,style:p(p({zIndex:P},A),{display:l.value?null:"none"})},b),[h(RC,M(M({},fu(e,["scrollLocker"])),{},{style:B,class:j,onMousedown:m,onMouseup:g,ref:a,closable:E,ariaId:u.value,prefixCls:y,visible:w,onClose:d,onVisibleChanged:c,motionName:is(y,W,G)}),o)])])}}}),DC=Li(),BC=z({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:fn(DC,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=X(e.visible);return wi({},{inTriggerContext:!1}),Y(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:i,getContainer:a,forceRender:l,destroyOnClose:u=!1,afterClose:c}=e;let d=p(p(p({},e),n),{ref:"_component",key:"dialog"});return a===!1?h(ss,M(M({},d),{},{getOpenCount:()=>2}),o):!l&&u&&!r.value?null:h(Ju,{autoLock:!0,visible:i,forceRender:l,getContainer:a},{default:s=>(d=p(p(p({},d),s),{afterClose:()=>{c==null||c(),r.value=!1}}),h(ss,d,o))})}}});function us(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const HC=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:p(p({},us("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:p(p({},us("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:b0(e)}]},jC=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:p(p({},Wn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:p({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},ru(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},zC=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:p({},Rr()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, + ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},LC=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},FC=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},kC=et("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=He(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[jC(r),zC(r),LC(r),HC(r),e.wireframe&&FC(r),_i(r,"zoom")]});var WC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Zr={x:e.pageX,y:e.pageY},setTimeout(()=>Zr=null,100)};I1()&&Vt(document.documentElement,"click",KC,!0);const VC=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:H.any,closable:{type:Boolean,default:void 0},closeIcon:H.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:H.any,okText:H.any,okType:String,cancelText:H.any,icon:H.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:oe(),cancelButtonProps:oe(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:oe(),maskStyle:oe(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:oe()}),Re=z({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:fn(VC(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=si("Modal"),{prefixCls:a,rootPrefixCls:l,direction:u,getPopupContainer:c}=Fe("modal",e),[d,s]=kC(a);Lo(e.visible===void 0);const f=v=>{n("update:visible",!1),n("update:open",!1),n("cancel",v),n("change",!1)},m=v=>{n("ok",v)},g=()=>{var v,x;const{okText:y=(v=o.okText)===null||v===void 0?void 0:v.call(o),okType:S,cancelText:w=(x=o.cancelText)===null||x===void 0?void 0:x.call(o),confirmLoading:T}=e;return h(Ne,null,[h(Ot,M({onClick:f},e.cancelButtonProps),{default:()=>[w||i.value.cancelText]}),h(Ot,M(M({},hc(S)),{},{loading:T,onClick:m},e.okButtonProps),{default:()=>[y||i.value.okText]})])};return()=>{var v,x;const{prefixCls:y,visible:S,open:w,wrapClassName:T,centered:O,getContainer:P,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),focusTriggerAfterClose:_=!0}=e,A=WC(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),E=q(T,{[`${a.value}-centered`]:!!O,[`${a.value}-wrap-rtl`]:u.value==="rtl"});return d(h(BC,M(M(M({},A),r),{},{rootClassName:s.value,class:q(s.value,r.class),getContainer:P||(c==null?void 0:c.value),prefixCls:a.value,wrapClassName:E,visible:w??S,onClose:f,focusTriggerAfterClose:_,transitionName:Hn(l.value,"zoom",e.transitionName),maskTransitionName:Hn(l.value,"fade",e.maskTransitionName),mousePosition:(x=A.mousePosition)!==null&&x!==void 0?x:Zr}),p(p({},o),{footer:o.footer||g,closeIcon:()=>h("span",{class:`${a.value}-close-x`},[C||h(gn,{class:`${a.value}-close-icon`},null)])})))}}}),GC=()=>{const e=N(!1);return $e(()=>{e.value=!0}),e},UC={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:oe(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function cs(e){return!!(e&&e.then)}const ds=z({compatConfig:{MODE:3},name:"ActionButton",props:UC,setup(e,t){let{slots:n}=t;const o=N(!1),r=N(),i=N(!1);let a;const l=GC();je(()=>{e.autofocus&&(a=setTimeout(()=>{var s,f;return(f=(s=Qe(r.value))===null||s===void 0?void 0:s.focus)===null||f===void 0?void 0:f.call(s)}))}),$e(()=>{clearTimeout(a)});const u=function(){for(var s,f=arguments.length,m=new Array(f),g=0;g{cs(s)&&(i.value=!0,s.then(function(){l.value||(i.value=!1),u(...arguments),o.value=!1},f=>(l.value||(i.value=!1),o.value=!1,Promise.reject(f))))},d=s=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){u();return}let m;if(e.emitEvent){if(m=f(s),e.quitOnNullishReturnValue&&!cs(m)){o.value=!1,u(s);return}}else if(f.length)m=f(e.close),o.value=!1;else if(m=f(),!m){u();return}c(m)};return()=>{const{type:s,prefixCls:f,buttonProps:m}=e;return h(Ot,M(M(M({},hc(s)),{},{onClick:d,loading:i.value,prefixCls:f},m),{},{ref:r}),n)}}});function kt(e){return typeof e=="function"?e():e}const od=z({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=si("Modal");return()=>{const{icon:r,onCancel:i,onOk:a,close:l,okText:u,closable:c=!1,zIndex:d,afterClose:s,keyboard:f,centered:m,getContainer:g,maskStyle:v,okButtonProps:x,cancelButtonProps:y,okCancel:S,width:w=416,mask:T=!0,maskClosable:O=!1,type:P,open:C,title:_,content:A,direction:E,closeIcon:D,modalRender:k,focusTriggerAfterClose:W,rootPrefixCls:G,bodyStyle:b,wrapClassName:I,footer:B}=e;let j=r;if(!r&&r!==null)switch(P){case"info":j=h(Lt,null,null);break;case"success":j=h(jt,null,null);break;case"error":j=h(Ht,null,null);break;default:j=h(zt,null,null)}const Q=e.okType||"primary",ne=e.prefixCls||"ant-modal",F=`${ne}-confirm`,J=n.style||{},re=S??P==="confirm",be=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",de=`${ne}-confirm`,ge=q(de,`${de}-${e.type}`,{[`${de}-rtl`]:E==="rtl"},n.class),R=o.value,K=re&&h(ds,{actionFn:i,close:l,autofocus:be==="cancel",buttonProps:y,prefixCls:`${G}-btn`},{default:()=>[kt(e.cancelText)||R.cancelText]});return h(Re,{prefixCls:ne,class:ge,wrapClassName:q({[`${de}-centered`]:!!m},I),onCancel:U=>l==null?void 0:l({triggerCancel:!0},U),open:C,title:"",footer:"",transitionName:Hn(G,"zoom",e.transitionName),maskTransitionName:Hn(G,"fade",e.maskTransitionName),mask:T,maskClosable:O,maskStyle:v,style:J,bodyStyle:b,width:w,zIndex:d,afterClose:s,keyboard:f,centered:m,getContainer:g,closable:c,closeIcon:D,modalRender:k,focusTriggerAfterClose:W},{default:()=>[h("div",{class:`${F}-body-wrapper`},[h("div",{class:`${F}-body`},[kt(j),_===void 0?null:h("span",{class:`${F}-title`},[kt(_)]),h("div",{class:`${F}-content`},[kt(A)])]),B!==void 0?kt(B):h("div",{class:`${F}-btns`},[K,h(ds,{type:Q,actionFn:a,close:l,autofocus:be==="ok",buttonProps:x,prefixCls:`${G}-btn`},{default:()=>[kt(u)||(re?R.okText:R.justOkText)]})])])]})}}}),xt=[],Un=e=>{const t=document.createDocumentFragment();let n=p(p({},fu(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(dt(null,t),o=null);for(var c=arguments.length,d=new Array(c),s=0;sm&&m.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...d.slice(1));for(let m=0;m{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,d)}}),n.visible&&delete n.visible,a(n)}function a(c){typeof c=="function"?n=c(n):n=p(p({},n),c),o&&eg(o,n,t)}const l=c=>{const d=he,s=d.prefixCls,f=c.prefixCls||`${s}-modal`,m=d.iconPrefixCls,g=A1();return h(Zt,M(M({},d),{},{prefixCls:s}),{default:()=>[h(od,M(M({},c),{},{rootPrefixCls:s,prefixCls:f,iconPrefixCls:m,locale:g,cancelText:c.cancelText||g.cancelText}),null)]})};function u(c){const d=h(l,p({},c));return d.appContext=e.parentContext||e.appContext||d.appContext,dt(d,t),d}return o=u(n),xt.push(i),{destroy:i,update:a}};function rd(e){return p(p({},e),{type:"warning"})}function id(e){return p(p({},e),{type:"info"})}function ad(e){return p(p({},e),{type:"success"})}function ld(e){return p(p({},e),{type:"error"})}function sd(e){return p(p({},e),{type:"confirm"})}const XC=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),YC=z({name:"HookModal",inheritAttrs:!1,props:fn(XC(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=$(()=>e.open),i=$(()=>e.config),{direction:a,getPrefixCls:l}=ai(),u=l("modal"),c=l(),d=()=>{var g,v;e==null||e.afterClose(),(v=(g=i.value).afterClose)===null||v===void 0||v.call(g)},s=function(){e.destroyAction(...arguments)};n({destroy:s});const f=(o=i.value.okCancel)!==null&&o!==void 0?o:i.value.type==="confirm",[m]=si("Modal",Tt.Modal);return()=>h(od,M(M({prefixCls:u,rootPrefixCls:c},i.value),{},{close:s,open:r.value,afterClose:d,okText:i.value.okText||(f?m==null?void 0:m.value.okText:m==null?void 0:m.value.justOkText),direction:i.value.direction||a.value,cancelText:i.value.cancelText||(m==null?void 0:m.value.cancelText)}),null)}});let fs=0;const qC=z({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=N([]);return n({addModal:i=>(o.value.push(i),o.value=o.value.slice(),()=>{o.value=o.value.filter(a=>a!==i)})}),()=>o.value.map(i=>i())}});function QC(){const e=N(null),t=N([]);Y(t,()=>{t.value.length&&([...t.value].forEach(a=>{a()}),t.value=[])},{immediate:!0});const n=i=>function(l){var u;fs+=1;const c=N(!0),d=N(null),s=N(Ke(l)),f=N({});Y(()=>l,w=>{x(p(p({},md(w)?w.value:w),f.value))});const m=function(){c.value=!1;for(var w=arguments.length,T=new Array(w),O=0;OC&&C.triggerCancel);s.value.onCancel&&P&&s.value.onCancel(()=>{},...T.slice(1))};let g;const v=()=>h(YC,{key:`modal-${fs}`,config:i(s.value),ref:d,open:c.value,destroyAction:m,afterClose:()=>{g==null||g()}},null);g=(u=e.value)===null||u===void 0?void 0:u.addModal(v),g&&xt.push(g);const x=w=>{s.value=p(p({},s.value),w)};return{destroy:()=>{d.value?m():t.value=[...t.value,m]},update:w=>{f.value=w,d.value?x(w):t.value=[...t.value,()=>x(w)]}}},o=$(()=>({info:n(id),success:n(ad),error:n(ld),warning:n(rd),confirm:n(sd)})),r=Symbol("modalHolderKey");return[o.value,()=>h(qC,{key:r,ref:e},null)]}function ud(e){return Un(rd(e))}Re.useModal=QC;Re.info=function(t){return Un(id(t))};Re.success=function(t){return Un(ad(t))};Re.error=function(t){return Un(ld(t))};Re.warning=ud;Re.warn=ud;Re.confirm=function(t){return Un(sd(t))};Re.destroyAll=function(){for(;xt.length;){const t=xt.pop();t&&t()}};Re.install=function(e){return e.component(Re.name,Re),e};const dS=gd("magic-share-accept",()=>{const e=X(!1);return{status:e,accept:async()=>{e.value=!0}}});hd();export{Qi as $,Gn as A,Bu as B,Ht as C,Sv as D,nt as E,Ti as F,te as G,Wn as H,me as I,C0 as J,L as K,Rc as L,Re as M,x0 as N,ct as O,H as P,S0 as Q,Cc as R,uS as S,ec as T,$0 as U,jp as V,bl as W,nu as X,W0 as Y,rf as Z,p as _,M as a,fe as a$,Ut as a0,tS as a1,f0 as a2,li as a3,Hn as a4,oS as a5,uu as a6,Kn as a7,Zd as a8,oe as a9,ni as aA,Xo as aB,wr as aC,Gv as aD,fb as aE,Qd as aF,tf as aG,Yd as aH,si as aI,df as aJ,rr as aK,wb as aL,jt as aM,cS as aN,nS as aO,Qe as aP,Wl as aQ,Kl as aR,Vt as aS,Zu as aT,eS as aU,rS as aV,Au as aW,h1 as aX,L0 as aY,$f as aZ,vn as a_,Rb as aa,Yi as ab,Bp as ac,ru as ad,_i as ae,vb as af,Di as ag,Ot as ah,sS as ai,ln as aj,db as ak,ou as al,qi as am,Rr as an,Sf as ao,kn as ap,vs as aq,Lo as ar,JC as as,Hp as at,Ab as au,gb as av,aS as aw,Ju as ax,iS as ay,Ho as az,lS as b,Tt as b0,q as c,l1 as d,dS as e,jn as f,et as g,Pt as h,fn as i,Et as j,ti as k,Os as l,He as m,Te as n,fu as o,ny as p,De as q,vt as r,Ct as s,So as t,Fe as u,At as v,Ce as w,gn as x,fc as y,Bn as z}; diff --git a/backend/src/main/resources/static/assets/index-moUN8hPO.js b/backend/src/main/resources/static/assets/index-moUN8hPO.js new file mode 100644 index 0000000..351ed69 --- /dev/null +++ b/backend/src/main/resources/static/assets/index-moUN8hPO.js @@ -0,0 +1,26 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LayoutContainer-Dl5Cz5Xv.js","assets/MagicShare-DLx5ZzAx.js","assets/index-8CVYBXsu.js","assets/LayoutContainer-2p629E5o.css","assets/HomeIndex-DOQHzWHL.js","assets/HomeIndex-cnORUpOp.css","assets/AboutPage-B8ON9FDS.js","assets/AboutPage-BBS5eMWh.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Os(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},It=[],Ge=()=>{},tl=()=>!1,Fn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ms=e=>e.startsWith("onUpdate:"),de=Object.assign,Is=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nl=Object.prototype.hasOwnProperty,te=(e,t)=>nl.call(e,t),U=Array.isArray,Lt=e=>$n(e)==="[object Map]",lo=e=>$n(e)==="[object Set]",W=e=>typeof e=="function",ue=e=>typeof e=="string",dt=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",co=e=>(ce(e)||W(e))&&W(e.then)&&W(e.catch),fo=Object.prototype.toString,$n=e=>fo.call(e),sl=e=>$n(e).slice(8,-1),uo=e=>$n(e)==="[object Object]",Ls=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wt=Os(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rl=/-(\w)/g,Le=Dn(e=>e.replace(rl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,wt=Dn(e=>e.replace(ol,"-$1").toLowerCase()),Hn=Dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=Dn(e=>e?`on${Hn(e)}`:""),ut=(e,t)=>!Object.is(e,t),Yn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},il=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ll=e=>{const t=ue(e)?Number(e):NaN;return isNaN(t)?e:t};let rr;const jn=()=>rr||(rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(U(e)){const t={};for(let n=0;n{if(n){const s=n.split(fl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Fs(e){let t="";if(ue(e))t=e;else if(U(e))for(let n=0;n!!(e&&e.__v_isRef===!0),pl=e=>ue(e)?e:e==null?"":U(e)||ce(e)&&(e.toString===fo||!W(e.toString))?po(e)?pl(e.value):JSON.stringify(e,go,2):String(e),go=(e,t)=>po(t)?go(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Xn(s,o)+" =>"]=r,n),{})}:lo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xn(n))}:dt(t)?Xn(t):ce(t)&&!U(t)&&!uo(t)?String(t):t,Xn=(e,t="")=>{var n;return dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let be;class mo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Gt){let t=Gt;for(Gt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qt;){let t=qt;for(qt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function So(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Co(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Hs(s),ml(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nn))return;e.globalVersion=nn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!hs(e)){e.flags&=-3;return}const n=le,s=Fe;le=e,Fe=!0;try{So(e);const r=e.fn(e._value);(t.version===0||ut(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{le=n,Fe=s,Co(e),e.flags&=-3}}function Hs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Hs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ml(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const wo=[];function ht(){wo.push(Fe),Fe=!1}function pt(){const e=wo.pop();Fe=e===void 0?!0:e}function or(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=le;le=void 0;try{t()}finally{le=n}}}let nn=0;class _l{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class js{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!le||!Fe||le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==le)n=this.activeLink=new _l(le,this),le.deps?(n.prevDep=le.depsTail,le.depsTail.nextDep=n,le.depsTail=n):le.deps=le.depsTail=n,Ro(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=le.depsTail,n.nextDep=void 0,le.depsTail.nextDep=n,le.depsTail=n,le.deps===n&&(le.deps=s)}return n}trigger(t){this.version++,nn++,this.notify(t)}notify(t){$s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ds()}}}function Ro(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ro(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const wn=new WeakMap,vt=Symbol(""),ps=Symbol(""),sn=Symbol("");function pe(e,t,n){if(Fe&&le){let s=wn.get(e);s||wn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new js),r.map=s,r.key=n),r.track()}}function Xe(e,t,n,s,r,o){const i=wn.get(e);if(!i){nn++;return}const l=c=>{c&&c.trigger()};if($s(),t==="clear")i.forEach(l);else{const c=U(e),u=c&&Ls(n);if(c&&n==="length"){const f=Number(s);i.forEach((a,p)=>{(p==="length"||p===sn||!dt(p)&&p>=f)&&l(a)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(sn)),t){case"add":c?u&&l(i.get("length")):(l(i.get(vt)),Lt(e)&&l(i.get(ps)));break;case"delete":c||(l(i.get(vt)),Lt(e)&&l(i.get(ps)));break;case"set":Lt(e)&&l(i.get(vt));break}}Ds()}function yl(e,t){const n=wn.get(e);return n&&n.get(t)}function Tt(e){const t=X(e);return t===e?t:(pe(t,"iterate",sn),$e(e)?t:t.map(ve))}function Bs(e){return pe(e=X(e),"iterate",sn),e}const bl={__proto__:null,[Symbol.iterator](){return es(this,Symbol.iterator,ve)},concat(...e){return Tt(this).concat(...e.map(t=>U(t)?Tt(t):t))},entries(){return es(this,"entries",e=>(e[1]=ve(e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,n=>n.map(ve),arguments)},find(e,t){return Je(this,"find",e,t,ve,arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,ve,arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return ts(this,"includes",e)},indexOf(...e){return ts(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return ts(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Bt(this,"pop")},push(...e){return Bt(this,"push",e)},reduce(e,...t){return ir(this,"reduce",e,t)},reduceRight(e,...t){return ir(this,"reduceRight",e,t)},shift(){return Bt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Bt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Bt(this,"unshift",e)},values(){return es(this,"values",ve)}};function es(e,t,n){const s=Bs(e),r=s[t]();return s!==e&&!$e(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const vl=Array.prototype;function Je(e,t,n,s,r,o){const i=Bs(e),l=i!==e&&!$e(e),c=i[t];if(c!==vl[t]){const a=c.apply(e,o);return l?ve(a):a}let u=n;i!==e&&(l?u=function(a,p){return n.call(this,ve(a),p,e)}:n.length>2&&(u=function(a,p){return n.call(this,a,p,e)}));const f=c.call(i,u,s);return l&&r?r(f):f}function ir(e,t,n,s){const r=Bs(e);let o=n;return r!==e&&($e(e)?n.length>3&&(o=function(i,l,c){return n.call(this,i,l,c,e)}):o=function(i,l,c){return n.call(this,i,ve(l),c,e)}),r[t](o,...s)}function ts(e,t,n){const s=X(e);pe(s,"iterate",sn);const r=s[t](...n);return(r===-1||r===!1)&&Us(n[0])?(n[0]=X(n[0]),s[t](...n)):r}function Bt(e,t,n=[]){ht(),$s();const s=X(e)[t].apply(e,n);return Ds(),pt(),s}const El=Os("__proto__,__v_isRef,__isVue"),Po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function Sl(e){dt(e)||(e=String(e));const t=X(this);return pe(t,"has",e),t.hasOwnProperty(e)}class To{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Il:Io:o?Mo:Oo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){let c;if(i&&(c=bl[n]))return c;if(n==="hasOwnProperty")return Sl}const l=Reflect.get(t,n,fe(t)?t:s);return(dt(n)?Po.has(n):El(n))||(r||pe(t,"get",n),o)?l:fe(l)?i&&Ls(n)?l:l.value:ce(l)?r?No(l):an(l):l}}class Ao extends To{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Ct(o);if(!$e(s)&&!Ct(s)&&(o=X(o),s=X(s)),!U(t)&&fe(o)&&!fe(s))return c?!1:(o.value=s,!0)}const i=U(t)&&Ls(n)?Number(n)e,gn=e=>Reflect.getPrototypeOf(e);function Pl(e,t,n){return function(...s){const r=this.__v_raw,o=X(r),i=Lt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),f=n?gs:t?ms:ve;return!t&&pe(o,"iterate",c?ps:vt),{next(){const{value:a,done:p}=u.next();return p?{value:a,done:p}:{value:l?[f(a[0]),f(a[1])]:f(a),done:p}},[Symbol.iterator](){return this}}}}function mn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Tl(e,t){const n={get(r){const o=this.__v_raw,i=X(o),l=X(r);e||(ut(r,l)&&pe(i,"get",r),pe(i,"get",l));const{has:c}=gn(i),u=t?gs:e?ms:ve;if(c.call(i,r))return u(o.get(r));if(c.call(i,l))return u(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&pe(X(r),"iterate",vt),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,i=X(o),l=X(r);return e||(ut(r,l)&&pe(i,"has",r),pe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=X(l),u=t?gs:e?ms:ve;return!e&&pe(c,"iterate",vt),l.forEach((f,a)=>r.call(o,u(f),u(a),i))}};return de(n,e?{add:mn("add"),set:mn("set"),delete:mn("delete"),clear:mn("clear")}:{add(r){!t&&!$e(r)&&!Ct(r)&&(r=X(r));const o=X(this);return gn(o).has.call(o,r)||(o.add(r),Xe(o,"add",r,r)),this},set(r,o){!t&&!$e(o)&&!Ct(o)&&(o=X(o));const i=X(this),{has:l,get:c}=gn(i);let u=l.call(i,r);u||(r=X(r),u=l.call(i,r));const f=c.call(i,r);return i.set(r,o),u?ut(o,f)&&Xe(i,"set",r,o):Xe(i,"add",r,o),this},delete(r){const o=X(this),{has:i,get:l}=gn(o);let c=i.call(o,r);c||(r=X(r),c=i.call(o,r)),l&&l.call(o,r);const u=o.delete(r);return c&&Xe(o,"delete",r,void 0),u},clear(){const r=X(this),o=r.size!==0,i=r.clear();return o&&Xe(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Pl(r,e,t)}),n}function Vs(e,t){const n=Tl(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(te(n,r)&&r in s?n:s,r,o)}const Al={get:Vs(!1,!1)},Ol={get:Vs(!1,!0)},Ml={get:Vs(!0,!1)};const Oo=new WeakMap,Mo=new WeakMap,Io=new WeakMap,Il=new WeakMap;function Ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ll(sl(e))}function an(e){return Ct(e)?e:ks(e,!1,xl,Al,Oo)}function Lo(e){return ks(e,!1,Rl,Ol,Mo)}function No(e){return ks(e,!0,wl,Ml,Io)}function ks(e,t,n,s,r){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Nl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Et(e){return Ct(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function Ct(e){return!!(e&&e.__v_isReadonly)}function $e(e){return!!(e&&e.__v_isShallow)}function Us(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Ks(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&ao(e,"__v_skip",!0),e}const ve=e=>ce(e)?an(e):e,ms=e=>ce(e)?No(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function Bn(e){return Fo(e,!1)}function Fl(e){return Fo(e,!0)}function Fo(e,t){return fe(e)?e:new $l(e,t)}class $l{constructor(t,n){this.dep=new js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:X(t),this._value=n?t:ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||$e(t)||Ct(t);t=s?t:X(t),ut(t,n)&&(this._rawValue=t,this._value=s?t:ve(t),this.dep.trigger())}}function Zu(e){e.dep&&e.dep.trigger()}function Nt(e){return fe(e)?e.value:e}const Dl={get:(e,t,n)=>t==="__v_raw"?e:Nt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function $o(e){return Et(e)?e:new Proxy(e,Dl)}function Hl(e){const t=U(e)?new Array(e.length):{};for(const n in e)t[n]=Do(e,n);return t}class jl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yl(X(this._object),this._key)}}class Bl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ea(e,t,n){return fe(e)?e:W(e)?new Bl(e):ce(e)&&arguments.length>1?Do(e,t,n):Bn(e)}function Do(e,t,n){const s=e[t];return fe(s)?s:new jl(e,t,n)}class Vl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&le!==this)return Eo(this,!0),!0}get value(){const t=this.dep.track();return xo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kl(e,t,n=!1){let s,r;return W(e)?s=e:(s=e.get,r=e.set),new Vl(s,r,n)}const _n={},Rn=new WeakMap;let yt;function Ul(e,t=!1,n=yt){if(n){let s=Rn.get(n);s||Rn.set(n,s=[]),s.push(e)}}function Kl(e,t,n=oe){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,u=M=>r?M:$e(M)||r===!1||r===0?Ze(M,1):Ze(M);let f,a,p,g,E=!1,C=!1;if(fe(e)?(a=()=>e.value,E=$e(e)):Et(e)?(a=()=>u(e),E=!0):U(e)?(C=!0,E=e.some(M=>Et(M)||$e(M)),a=()=>e.map(M=>{if(fe(M))return M.value;if(Et(M))return u(M);if(W(M))return c?c(M,2):M()})):W(e)?t?a=c?()=>c(e,2):e:a=()=>{if(p){ht();try{p()}finally{pt()}}const M=yt;yt=f;try{return c?c(e,3,[g]):e(g)}finally{yt=M}}:a=Ge,t&&r){const M=a,H=r===!0?1/0:r;a=()=>Ze(M(),H)}const k=yo(),N=()=>{f.stop(),k&&k.active&&Is(k.effects,f)};if(o&&t){const M=t;t=(...H)=>{M(...H),N()}}let L=C?new Array(e.length).fill(_n):_n;const F=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const H=f.run();if(r||E||(C?H.some((z,G)=>ut(z,L[G])):ut(H,L))){p&&p();const z=yt;yt=f;try{const G=[H,L===_n?void 0:C&&L[0]===_n?[]:L,g];c?c(t,3,G):t(...G),L=H}finally{yt=z}}}else f.run()};return l&&l(F),f=new bo(a),f.scheduler=i?()=>i(F,!1):F,g=M=>Ul(M,!1,f),p=f.onStop=()=>{const M=Rn.get(f);if(M){if(c)c(M,4);else for(const H of M)H();Rn.delete(f)}},t?s?F(!0):L=f.run():i?i(F.bind(null,!0),!0):f.run(),N.pause=f.pause.bind(f),N.resume=f.resume.bind(f),N.stop=N,N}function Ze(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,fe(e))Ze(e.value,t,n);else if(U(e))for(let s=0;s{Ze(s,t,n)});else if(uo(e)){for(const s in e)Ze(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ze(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function dn(e,t,n,s){try{return s?e(...s):e()}catch(r){Vn(r,t,n)}}function De(e,t,n,s){if(W(e)){const r=dn(e,t,n,s);return r&&co(r)&&r.catch(o=>{Vn(o,t,n)}),r}if(U(e)){const r=[];for(let o=0;o>>1,r=Ee[s],o=rn(r);o=rn(n)?Ee.push(e):Ee.splice(ql(t),0,e),e.flags|=1,jo()}}function jo(){Pn||(Pn=Ho.then(Vo))}function Gl(e){U(e)?Ft.push(...e):it&&e.id===-1?it.splice(Ot+1,0,e):e.flags&1||(Ft.push(e),e.flags|=1),jo()}function lr(e,t,n=We+1){for(;nrn(n)-rn(s));if(Ft.length=0,it){it.push(...t);return}for(it=t,Ot=0;Ote.id==null?e.flags&2?-1:1/0:e.id;function Vo(e){try{for(We=0;We{s._d&&Er(-1);const o=Tn(t);let i;try{i=e(...r)}finally{Tn(o),s._d&&Er(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ta(e,t){if(Se===null)return e;const n=qn(Se),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,zt=e=>e&&(e.disabled||e.disabled===""),cr=e=>e&&(e.defer||e.defer===""),fr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ur=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,_s=(e,t)=>{const n=e&&e.to;return ue(n)?t?t(n):null:n},Wo={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,c,u){const{mc:f,pc:a,pbc:p,o:{insert:g,querySelector:E,createText:C,createComment:k}}=u,N=zt(t.props);let{shapeFlag:L,children:F,dynamicChildren:M}=t;if(e==null){const H=t.el=C(""),z=t.anchor=C("");g(H,n,s),g(z,n,s);const G=(x,B)=>{L&16&&(r&&r.isCE&&(r.ce._teleportTarget=x),f(F,x,B,r,o,i,l,c))},j=()=>{const x=t.target=_s(t.props,E),B=qo(x,t,C,g);x&&(i!=="svg"&&fr(x)?i="svg":i!=="mathml"&&ur(x)&&(i="mathml"),N||(G(x,B),vn(t,!1)))};N&&(G(n,z),vn(t,!0)),cr(t.props)?ye(()=>{j(),t.el.__isMounted=!0},o):j()}else{if(cr(t.props)&&!e.el.__isMounted){ye(()=>{Wo.process(e,t,n,s,r,o,i,l,c,u),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const H=t.anchor=e.anchor,z=t.target=e.target,G=t.targetAnchor=e.targetAnchor,j=zt(e.props),x=j?n:z,B=j?H:G;if(i==="svg"||fr(z)?i="svg":(i==="mathml"||ur(z))&&(i="mathml"),M?(p(e.dynamicChildren,M,x,r,o,i,l),Js(e,t,!0)):c||a(e,t,x,B,r,o,i,l,!1),N)j?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yn(t,n,H,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const J=t.target=_s(t.props,E);J&&yn(t,J,null,u,0)}else j&&yn(t,z,G,u,1);vn(t,N)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:u,targetAnchor:f,target:a,props:p}=e;if(a&&(r(u),r(f)),o&&r(c),i&16){const g=o||!zt(p);for(let E=0;E{e.isMounted=!0}),si(()=>{e.isUnmounting=!0}),e}const Oe=[Function,Array],zo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},Jo=e=>{const t=e.subTree;return t.component?Jo(t.component):t},Ql={name:"BaseTransition",props:zo,setup(e,{slots:t}){const n=Pi(),s=Go();return()=>{const r=t.default&&Gs(t.default(),!0);if(!r||!r.length)return;const o=Qo(r),i=X(e),{mode:l}=i;if(s.isLeaving)return ns(o);const c=ar(o);if(!c)return ns(o);let u=on(c,i,s,n,a=>u=a);c.type!==we&&xt(c,u);let f=n.subTree&&ar(n.subTree);if(f&&f.type!==we&&!bt(c,f)&&Jo(n).type!==we){let a=on(f,i,s,n);if(xt(f,a),l==="out-in"&&c.type!==we)return s.isLeaving=!0,a.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete a.afterLeave,f=void 0},ns(o);l==="in-out"&&c.type!==we?a.delayLeave=(p,g,E)=>{const C=Yo(s,f);C[String(f.key)]=f,p[lt]=()=>{g(),p[lt]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{E(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return o}}};function Qo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==we){t=n;break}}return t}const Yl=Ql;function Yo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function on(e,t,n,s,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:a,onBeforeLeave:p,onLeave:g,onAfterLeave:E,onLeaveCancelled:C,onBeforeAppear:k,onAppear:N,onAfterAppear:L,onAppearCancelled:F}=t,M=String(e.key),H=Yo(n,e),z=(x,B)=>{x&&De(x,s,9,B)},G=(x,B)=>{const J=B[1];z(x,B),U(x)?x.every(O=>O.length<=1)&&J():x.length<=1&&J()},j={mode:i,persisted:l,beforeEnter(x){let B=c;if(!n.isMounted)if(o)B=k||c;else return;x[lt]&&x[lt](!0);const J=H[M];J&&bt(e,J)&&J.el[lt]&&J.el[lt](),z(B,[x])},enter(x){let B=u,J=f,O=a;if(!n.isMounted)if(o)B=N||u,J=L||f,O=F||a;else return;let Q=!1;const ae=x[bn]=me=>{Q||(Q=!0,me?z(O,[x]):z(J,[x]),j.delayedLeave&&j.delayedLeave(),x[bn]=void 0)};B?G(B,[x,ae]):ae()},leave(x,B){const J=String(e.key);if(x[bn]&&x[bn](!0),n.isUnmounting)return B();z(p,[x]);let O=!1;const Q=x[lt]=ae=>{O||(O=!0,B(),ae?z(C,[x]):z(E,[x]),x[lt]=void 0,H[J]===e&&delete H[J])};H[J]=e,g?G(g,[x,Q]):Q()},clone(x){const B=on(x,t,n,s,r);return r&&r(B),B}};return j}function ns(e){if(kn(e))return e=at(e),e.children=null,e}function ar(e){if(!kn(e))return Ko(e.type)&&e.children?Qo(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&W(n.default))return n.default()}}function xt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gs(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;oAn(E,t&&(U(t)?t[C]:t),n,s,r));return}if(Jt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&An(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?qn(s.component):s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===oe?l.refs={}:l.refs,a=l.setupState,p=X(a),g=a===oe?()=>!1:E=>te(p,E);if(u!=null&&u!==c&&(ue(u)?(f[u]=null,g(u)&&(a[u]=null)):fe(u)&&(u.value=null)),W(c))dn(c,l,12,[i,f]);else{const E=ue(c),C=fe(c);if(E||C){const k=()=>{if(e.f){const N=E?g(c)?a[c]:f[c]:c.value;r?U(N)&&Is(N,o):U(N)?N.includes(o)||N.push(o):E?(f[c]=[o],g(c)&&(a[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else E?(f[c]=i,g(c)&&(a[c]=i)):C&&(c.value=i,e.k&&(f[e.k]=i))};i?(k.id=-1,ye(k,n)):k()}}}jn().requestIdleCallback;jn().cancelIdleCallback;const Jt=e=>!!e.type.__asyncLoader,kn=e=>e.type.__isKeepAlive;function Xl(e,t){ei(e,"a",t)}function Zl(e,t){ei(e,"da",t)}function ei(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Un(t,s,n),n){let r=n.parent;for(;r&&r.parent;)kn(r.parent.vnode)&&ec(s,t,n,r),r=r.parent}}function ec(e,t,n,s){const r=Un(t,e,s,!0);ri(()=>{Is(s[t],r)},n)}function Un(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ht();const l=hn(n),c=De(t,n,e,i);return l(),pt(),c});return s?r.unshift(o):r.push(o),o}}const et=e=>(t,n=he)=>{(!cn||e==="sp")&&Un(e,(...s)=>t(...s),n)},tc=et("bm"),ti=et("m"),nc=et("bu"),ni=et("u"),si=et("bum"),ri=et("um"),sc=et("sp"),rc=et("rtg"),oc=et("rtc");function ic(e,t=he){Un("ec",e,t)}const oi="components",lc="directives";function cc(e,t){return ii(oi,e,!0,t)||e}const fc=Symbol.for("v-ndc");function sa(e){return ii(lc,e)}function ii(e,t,n=!0,s=!1){const r=Se||he;if(r){const o=r.type;if(e===oi){const l=Zc(o,!1);if(l&&(l===t||l===Le(t)||l===Hn(Le(t))))return o}const i=dr(r[e]||o[e],t)||dr(r.appContext[e],t);return!i&&s?o:i}}function dr(e,t){return e&&(e[t]||e[Le(t)]||e[Hn(Le(t))])}const ys=e=>e?Ti(e)?qn(e):ys(e.parent):null,Qt=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ys(e.parent),$root:e=>ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>{qs(e.update)}),$nextTick:e=>e.n||(e.n=Ws.bind(e.proxy)),$watch:e=>Mc.bind(e)}),ss=(e,t)=>e!==oe&&!e.__isScriptSetup&&te(e,t),uc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ss(s,t))return i[t]=1,s[t];if(r!==oe&&te(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&te(u,t))return i[t]=3,o[t];if(n!==oe&&te(n,t))return i[t]=4,n[t];bs&&(i[t]=0)}}const f=Qt[t];let a,p;if(f)return t==="$attrs"&&pe(e.attrs,"get",""),f(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==oe&&te(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,te(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ss(r,t)?(r[t]=n,!0):s!==oe&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==oe&&te(e,i)||ss(t,i)||(l=o[0])&&te(l,i)||te(s,i)||te(Qt,i)||te(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hr(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let bs=!0;function ac(e){const t=ci(e),n=e.proxy,s=e.ctx;bs=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:a,mounted:p,beforeUpdate:g,updated:E,activated:C,deactivated:k,beforeDestroy:N,beforeUnmount:L,destroyed:F,unmounted:M,render:H,renderTracked:z,renderTriggered:G,errorCaptured:j,serverPrefetch:x,expose:B,inheritAttrs:J,components:O,directives:Q,filters:ae}=t;if(u&&dc(u,s,null),i)for(const q in i){const Z=i[q];W(Z)&&(s[q]=Z.bind(n))}if(r){const q=r.call(n,n);ce(q)&&(e.data=an(q))}if(bs=!0,o)for(const q in o){const Z=o[q],ze=W(Z)?Z.bind(n,n):W(Z.get)?Z.get.bind(n,n):Ge,tt=!W(Z)&&W(Z.set)?Z.set.bind(n):Ge,je=Me({get:ze,set:tt});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>je.value,set:Ce=>je.value=Ce})}if(l)for(const q in l)li(l[q],s,n,q);if(c){const q=W(c)?c.call(n):c;Reflect.ownKeys(q).forEach(Z=>{En(Z,q[Z])})}f&&pr(f,e,"c");function se(q,Z){U(Z)?Z.forEach(ze=>q(ze.bind(n))):Z&&q(Z.bind(n))}if(se(tc,a),se(ti,p),se(nc,g),se(ni,E),se(Xl,C),se(Zl,k),se(ic,j),se(oc,z),se(rc,G),se(si,L),se(ri,M),se(sc,x),U(B))if(B.length){const q=e.exposed||(e.exposed={});B.forEach(Z=>{Object.defineProperty(q,Z,{get:()=>n[Z],set:ze=>n[Z]=ze})})}else e.exposed||(e.exposed={});H&&e.render===Ge&&(e.render=H),J!=null&&(e.inheritAttrs=J),O&&(e.components=O),Q&&(e.directives=Q),x&&Zo(e)}function dc(e,t,n=Ge){U(e)&&(e=vs(e));for(const s in e){const r=e[s];let o;ce(r)?"default"in r?o=Ie(r.from||s,r.default,!0):o=Ie(r.from||s):o=Ie(r),fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function pr(e,t,n){De(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function li(e,t,n,s){let r=s.includes(".")?vi(n,s):()=>n[s];if(ue(e)){const o=t[e];W(o)&&Yt(r,o)}else if(W(e))Yt(r,e.bind(n));else if(ce(e))if(U(e))e.forEach(o=>li(o,t,n,s));else{const o=W(e.handler)?e.handler.bind(n):t[e.handler];W(o)&&Yt(r,o,e)}}function ci(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>On(c,u,i,!0)),On(c,t,i)),ce(t)&&o.set(t,c),c}function On(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&On(e,o,n,!0),r&&r.forEach(i=>On(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=hc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const hc={data:gr,props:mr,emits:mr,methods:Kt,computed:Kt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Kt,directives:Kt,watch:gc,provide:gr,inject:pc};function gr(e,t){return t?e?function(){return de(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function pc(e,t){return Kt(vs(e),vs(t))}function vs(e){if(U(e)){const t={};for(let n=0;n1)return n&&W(t)?t.call(s&&s.proxy):t}}function yc(){return!!(he||Se||St)}const ui={},ai=()=>Object.create(ui),di=e=>Object.getPrototypeOf(e)===ui;function bc(e,t,n,s=!1){const r={},o=ai();e.propsDefaults=Object.create(null),hi(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Lo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function vc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=X(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let a=0;a{c=!0;const[p,g]=pi(a,t,!0);de(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return ce(e)&&s.set(e,It),It;if(U(o))for(let f=0;fe[0]==="_"||e==="$stable",zs=e=>U(e)?e.map(qe):[qe(e)],Sc=(e,t,n)=>{if(t._n)return t;const s=zl((...r)=>zs(t(...r)),n);return s._c=!1,s},mi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(gi(r))continue;const o=e[r];if(W(o))t[r]=Sc(r,o,s);else if(o!=null){const i=zs(o);t[r]=()=>i}}},_i=(e,t)=>{const n=zs(t);e.slots.default=()=>n},yi=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Cc=(e,t,n)=>{const s=e.slots=ai();if(e.vnode.shapeFlag&32){const r=t._;r?(yi(s,t,n),n&&ao(s,"_",r,!0)):mi(t,s)}else t&&_i(e,t)},xc=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:yi(r,t,n):(o=!t.$stable,mi(t,r)),i=t}else t&&(_i(e,t),i={default:1});if(o)for(const l in r)!gi(l)&&i[l]==null&&delete r[l]},ye=Hc;function wc(e){return Rc(e)}function Rc(e,t){const n=jn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:a,nextSibling:p,setScopeId:g=Ge,insertStaticContent:E}=e,C=(d,h,m,_=null,v=null,b=null,P=void 0,R=null,w=!!h.dynamicChildren)=>{if(d===h)return;d&&!bt(d,h)&&(_=y(d),Ce(d,v,b,!0),d=null),h.patchFlag===-2&&(w=!1,h.dynamicChildren=null);const{type:S,ref:V,shapeFlag:A}=h;switch(S){case Wn:k(d,h,m,_);break;case we:N(d,h,m,_);break;case Sn:d==null&&L(h,m,_,P);break;case Ne:O(d,h,m,_,v,b,P,R,w);break;default:A&1?H(d,h,m,_,v,b,P,R,w):A&6?Q(d,h,m,_,v,b,P,R,w):(A&64||A&128)&&S.process(d,h,m,_,v,b,P,R,w,$)}V!=null&&v&&An(V,d&&d.ref,b,h||d,!h)},k=(d,h,m,_)=>{if(d==null)s(h.el=l(h.children),m,_);else{const v=h.el=d.el;h.children!==d.children&&u(v,h.children)}},N=(d,h,m,_)=>{d==null?s(h.el=c(h.children||""),m,_):h.el=d.el},L=(d,h,m,_)=>{[d.el,d.anchor]=E(d.children,h,m,_,d.el,d.anchor)},F=({el:d,anchor:h},m,_)=>{let v;for(;d&&d!==h;)v=p(d),s(d,m,_),d=v;s(h,m,_)},M=({el:d,anchor:h})=>{let m;for(;d&&d!==h;)m=p(d),r(d),d=m;r(h)},H=(d,h,m,_,v,b,P,R,w)=>{h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),d==null?z(h,m,_,v,b,P,R,w):x(d,h,v,b,P,R,w)},z=(d,h,m,_,v,b,P,R)=>{let w,S;const{props:V,shapeFlag:A,transition:D,dirs:K}=d;if(w=d.el=i(d.type,b,V&&V.is,V),A&8?f(w,d.children):A&16&&j(d.children,w,null,_,v,rs(d,b),P,R),K&>(d,null,_,"created"),G(w,d,d.scopeId,P,_),V){for(const ie in V)ie!=="value"&&!Wt(ie)&&o(w,ie,null,V[ie],b,_);"value"in V&&o(w,"value",null,V.value,b),(S=V.onVnodeBeforeMount)&&Ue(S,_,d)}K&>(d,null,_,"beforeMount");const Y=Pc(v,D);Y&&D.beforeEnter(w),s(w,h,m),((S=V&&V.onVnodeMounted)||Y||K)&&ye(()=>{S&&Ue(S,_,d),Y&&D.enter(w),K&>(d,null,_,"mounted")},v)},G=(d,h,m,_,v)=>{if(m&&g(d,m),_)for(let b=0;b<_.length;b++)g(d,_[b]);if(v){let b=v.subTree;if(h===b||Si(b.type)&&(b.ssContent===h||b.ssFallback===h)){const P=v.vnode;G(d,P,P.scopeId,P.slotScopeIds,v.parent)}}},j=(d,h,m,_,v,b,P,R,w=0)=>{for(let S=w;S{const R=h.el=d.el;let{patchFlag:w,dynamicChildren:S,dirs:V}=h;w|=d.patchFlag&16;const A=d.props||oe,D=h.props||oe;let K;if(m&&mt(m,!1),(K=D.onVnodeBeforeUpdate)&&Ue(K,m,h,d),V&>(h,d,m,"beforeUpdate"),m&&mt(m,!0),(A.innerHTML&&D.innerHTML==null||A.textContent&&D.textContent==null)&&f(R,""),S?B(d.dynamicChildren,S,R,m,_,rs(h,v),b):P||Z(d,h,R,null,m,_,rs(h,v),b,!1),w>0){if(w&16)J(R,A,D,m,v);else if(w&2&&A.class!==D.class&&o(R,"class",null,D.class,v),w&4&&o(R,"style",A.style,D.style,v),w&8){const Y=h.dynamicProps;for(let ie=0;ie{K&&Ue(K,m,h,d),V&>(h,d,m,"updated")},_)},B=(d,h,m,_,v,b,P)=>{for(let R=0;R{if(h!==m){if(h!==oe)for(const b in h)!Wt(b)&&!(b in m)&&o(d,b,h[b],null,v,_);for(const b in m){if(Wt(b))continue;const P=m[b],R=h[b];P!==R&&b!=="value"&&o(d,b,R,P,v,_)}"value"in m&&o(d,"value",h.value,m.value,v)}},O=(d,h,m,_,v,b,P,R,w)=>{const S=h.el=d?d.el:l(""),V=h.anchor=d?d.anchor:l("");let{patchFlag:A,dynamicChildren:D,slotScopeIds:K}=h;K&&(R=R?R.concat(K):K),d==null?(s(S,m,_),s(V,m,_),j(h.children||[],m,V,v,b,P,R,w)):A>0&&A&64&&D&&d.dynamicChildren?(B(d.dynamicChildren,D,m,v,b,P,R),(h.key!=null||v&&h===v.subTree)&&Js(d,h,!0)):Z(d,h,m,V,v,b,P,R,w)},Q=(d,h,m,_,v,b,P,R,w)=>{h.slotScopeIds=R,d==null?h.shapeFlag&512?v.ctx.activate(h,m,_,P,w):ae(h,m,_,v,b,P,w):me(d,h,w)},ae=(d,h,m,_,v,b,P)=>{const R=d.component=zc(d,_,v);if(kn(d)&&(R.ctx.renderer=$),Jc(R,!1,P),R.asyncDep){if(v&&v.registerDep(R,se,P),!d.el){const w=R.subTree=ge(we);N(null,w,h,m)}}else se(R,d,h,m,v,b,P)},me=(d,h,m)=>{const _=h.component=d.component;if($c(d,h,m))if(_.asyncDep&&!_.asyncResolved){q(_,h,m);return}else _.next=h,_.update();else h.el=d.el,_.vnode=h},se=(d,h,m,_,v,b,P)=>{const R=()=>{if(d.isMounted){let{next:A,bu:D,u:K,parent:Y,vnode:ie}=d;{const Ve=bi(d);if(Ve){A&&(A.el=ie.el,q(d,A,P)),Ve.asyncDep.then(()=>{d.isUnmounted||R()});return}}let ne=A,Re;mt(d,!1),A?(A.el=ie.el,q(d,A,P)):A=ie,D&&Yn(D),(Re=A.props&&A.props.onVnodeBeforeUpdate)&&Ue(Re,Y,A,ie),mt(d,!0);const xe=br(d),Be=d.subTree;d.subTree=xe,C(Be,xe,a(Be.el),y(Be),d,v,b),A.el=xe.el,ne===null&&Dc(d,xe.el),K&&ye(K,v),(Re=A.props&&A.props.onVnodeUpdated)&&ye(()=>Ue(Re,Y,A,ie),v)}else{let A;const{el:D,props:K}=h,{bm:Y,m:ie,parent:ne,root:Re,type:xe}=d,Be=Jt(h);mt(d,!1),Y&&Yn(Y),!Be&&(A=K&&K.onVnodeBeforeMount)&&Ue(A,ne,h),mt(d,!0);{Re.ce&&Re.ce._injectChildStyle(xe);const Ve=d.subTree=br(d);C(null,Ve,m,_,d,v,b),h.el=Ve.el}if(ie&&ye(ie,v),!Be&&(A=K&&K.onVnodeMounted)){const Ve=h;ye(()=>Ue(A,ne,Ve),v)}(h.shapeFlag&256||ne&&Jt(ne.vnode)&&ne.vnode.shapeFlag&256)&&d.a&&ye(d.a,v),d.isMounted=!0,h=m=_=null}};d.scope.on();const w=d.effect=new bo(R);d.scope.off();const S=d.update=w.run.bind(w),V=d.job=w.runIfDirty.bind(w);V.i=d,V.id=d.uid,w.scheduler=()=>qs(V),mt(d,!0),S()},q=(d,h,m)=>{h.component=d;const _=d.vnode.props;d.vnode=h,d.next=null,vc(d,h.props,_,m),xc(d,h.children,m),ht(),lr(d),pt()},Z=(d,h,m,_,v,b,P,R,w=!1)=>{const S=d&&d.children,V=d?d.shapeFlag:0,A=h.children,{patchFlag:D,shapeFlag:K}=h;if(D>0){if(D&128){tt(S,A,m,_,v,b,P,R,w);return}else if(D&256){ze(S,A,m,_,v,b,P,R,w);return}}K&8?(V&16&&Ae(S,v,b),A!==S&&f(m,A)):V&16?K&16?tt(S,A,m,_,v,b,P,R,w):Ae(S,v,b,!0):(V&8&&f(m,""),K&16&&j(A,m,_,v,b,P,R,w))},ze=(d,h,m,_,v,b,P,R,w)=>{d=d||It,h=h||It;const S=d.length,V=h.length,A=Math.min(S,V);let D;for(D=0;DV?Ae(d,v,b,!0,!1,A):j(h,m,_,v,b,P,R,w,A)},tt=(d,h,m,_,v,b,P,R,w)=>{let S=0;const V=h.length;let A=d.length-1,D=V-1;for(;S<=A&&S<=D;){const K=d[S],Y=h[S]=w?ct(h[S]):qe(h[S]);if(bt(K,Y))C(K,Y,m,null,v,b,P,R,w);else break;S++}for(;S<=A&&S<=D;){const K=d[A],Y=h[D]=w?ct(h[D]):qe(h[D]);if(bt(K,Y))C(K,Y,m,null,v,b,P,R,w);else break;A--,D--}if(S>A){if(S<=D){const K=D+1,Y=KD)for(;S<=A;)Ce(d[S],v,b,!0),S++;else{const K=S,Y=S,ie=new Map;for(S=Y;S<=D;S++){const Pe=h[S]=w?ct(h[S]):qe(h[S]);Pe.key!=null&&ie.set(Pe.key,S)}let ne,Re=0;const xe=D-Y+1;let Be=!1,Ve=0;const jt=new Array(xe);for(S=0;S=xe){Ce(Pe,v,b,!0);continue}let ke;if(Pe.key!=null)ke=ie.get(Pe.key);else for(ne=Y;ne<=D;ne++)if(jt[ne-Y]===0&&bt(Pe,h[ne])){ke=ne;break}ke===void 0?Ce(Pe,v,b,!0):(jt[ke-Y]=S+1,ke>=Ve?Ve=ke:Be=!0,C(Pe,h[ke],m,null,v,b,P,R,w),Re++)}const nr=Be?Tc(jt):It;for(ne=nr.length-1,S=xe-1;S>=0;S--){const Pe=Y+S,ke=h[Pe],sr=Pe+1{const{el:b,type:P,transition:R,children:w,shapeFlag:S}=d;if(S&6){je(d.component.subTree,h,m,_);return}if(S&128){d.suspense.move(h,m,_);return}if(S&64){P.move(d,h,m,$);return}if(P===Ne){s(b,h,m);for(let A=0;AR.enter(b),v);else{const{leave:A,delayLeave:D,afterLeave:K}=R,Y=()=>s(b,h,m),ie=()=>{A(b,()=>{Y(),K&&K()})};D?D(b,Y,ie):ie()}else s(b,h,m)},Ce=(d,h,m,_=!1,v=!1)=>{const{type:b,props:P,ref:R,children:w,dynamicChildren:S,shapeFlag:V,patchFlag:A,dirs:D,cacheIndex:K}=d;if(A===-2&&(v=!1),R!=null&&An(R,null,m,d,!0),K!=null&&(h.renderCache[K]=void 0),V&256){h.ctx.deactivate(d);return}const Y=V&1&&D,ie=!Jt(d);let ne;if(ie&&(ne=P&&P.onVnodeBeforeUnmount)&&Ue(ne,h,d),V&6)pn(d.component,m,_);else{if(V&128){d.suspense.unmount(m,_);return}Y&>(d,null,h,"beforeUnmount"),V&64?d.type.remove(d,h,m,$,_):S&&!S.hasOnce&&(b!==Ne||A>0&&A&64)?Ae(S,h,m,!1,!0):(b===Ne&&A&384||!v&&V&16)&&Ae(w,h,m),_&&Rt(d)}(ie&&(ne=P&&P.onVnodeUnmounted)||Y)&&ye(()=>{ne&&Ue(ne,h,d),Y&>(d,null,h,"unmounted")},m)},Rt=d=>{const{type:h,el:m,anchor:_,transition:v}=d;if(h===Ne){Pt(m,_);return}if(h===Sn){M(d);return}const b=()=>{r(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(d.shapeFlag&1&&v&&!v.persisted){const{leave:P,delayLeave:R}=v,w=()=>P(m,b);R?R(d.el,b,w):w()}else b()},Pt=(d,h)=>{let m;for(;d!==h;)m=p(d),r(d),d=m;r(h)},pn=(d,h,m)=>{const{bum:_,scope:v,job:b,subTree:P,um:R,m:w,a:S}=d;yr(w),yr(S),_&&Yn(_),v.stop(),b&&(b.flags|=8,Ce(P,d,h,m)),R&&ye(R,h),ye(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ae=(d,h,m,_=!1,v=!1,b=0)=>{for(let P=b;P{if(d.shapeFlag&6)return y(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),m=h&&h[Uo];return m?p(m):h};let I=!1;const T=(d,h,m)=>{d==null?h._vnode&&Ce(h._vnode,null,null,!0):C(h._vnode||null,d,h,null,null,null,m),h._vnode=d,I||(I=!0,lr(),Bo(),I=!1)},$={p:C,um:Ce,m:je,r:Rt,mt:ae,mc:j,pc:Z,pbc:B,n:y,o:e};return{render:T,hydrate:void 0,createApp:_c(T)}}function rs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Js(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function bi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bi(t)}function yr(e){if(e)for(let t=0;tIe(Ac);function ra(e,t){return Qs(e,null,t)}function Yt(e,t,n){return Qs(e,t,n)}function Qs(e,t,n=oe){const{immediate:s,deep:r,flush:o,once:i}=n,l=de({},n),c=t&&s||!t&&o!=="post";let u;if(cn){if(o==="sync"){const g=Oc();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=Ge,g.resume=Ge,g.pause=Ge,g}}const f=he;l.call=(g,E,C)=>De(g,f,E,C);let a=!1;o==="post"?l.scheduler=g=>{ye(g,f&&f.suspense)}:o!=="sync"&&(a=!0,l.scheduler=(g,E)=>{E?g():qs(g)}),l.augmentJob=g=>{t&&(g.flags|=4),a&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const p=Kl(e,t,l);return cn&&(u?u.push(p):c&&p()),p}function Mc(e,t,n){const s=this.proxy,r=ue(e)?e.includes(".")?vi(s,e):()=>s[e]:e.bind(s,s);let o;W(t)?o=t:(o=t.handler,n=t);const i=hn(this),l=Qs(r,o.bind(s),n);return i(),l}function vi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${wt(t)}Modifiers`];function Lc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&Ic(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>ue(f)?f.trim():f)),i.number&&(r=n.map(il)));let l,c=s[l=Qn(t)]||s[l=Qn(Le(t))];!c&&o&&(c=s[l=Qn(wt(t))]),c&&De(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,De(u,e,6,r)}}function Ei(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!W(e)){const c=u=>{const f=Ei(u,t,!0);f&&(l=!0,de(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ce(e)&&s.set(e,null),null):(U(o)?o.forEach(c=>i[c]=null):de(i,o),ce(e)&&s.set(e,i),i)}function Kn(e,t){return!e||!Fn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,wt(t))||te(e,t))}function br(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:f,props:a,data:p,setupState:g,ctx:E,inheritAttrs:C}=e,k=Tn(e);let N,L;try{if(n.shapeFlag&4){const M=r||s,H=M;N=qe(u.call(H,M,f,a,g,p,E)),L=l}else{const M=t;N=qe(M.length>1?M(a,{attrs:l,slots:i,emit:c}):M(a,null)),L=t.props?l:Nc(l)}}catch(M){Xt.length=0,Vn(M,e,1),N=ge(we)}let F=N;if(L&&C!==!1){const M=Object.keys(L),{shapeFlag:H}=F;M.length&&H&7&&(o&&M.some(Ms)&&(L=Fc(L,o)),F=at(F,L,!1,!0))}return n.dirs&&(F=at(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&xt(F,n.transition),N=F,Tn(k),N}const Nc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Fn(n))&&((t||(t={}))[n]=e[n]);return t},Fc=(e,t)=>{const n={};for(const s in e)(!Ms(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function $c(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?vr(s,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let a=0;ae.__isSuspense;function Hc(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Gl(e)}const Ne=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),we=Symbol.for("v-cmt"),Sn=Symbol.for("v-stc"),Xt=[];let Te=null;function Ci(e=!1){Xt.push(Te=e?null:[])}function jc(){Xt.pop(),Te=Xt[Xt.length-1]||null}let ln=1;function Er(e,t=!1){ln+=e,e<0&&Te&&t&&(Te.hasOnce=!0)}function xi(e){return e.dynamicChildren=ln>0?Te||It:null,jc(),ln>0&&Te&&Te.push(e),e}function Bc(e,t,n,s,r,o){return xi(Ri(e,t,n,s,r,o,!0))}function Vc(e,t,n,s,r){return xi(ge(e,t,n,s,r,!0))}function Mn(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const wi=({key:e})=>e??null,Cn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||fe(e)||W(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function Ri(e,t=null,n=null,s=0,r=null,o=e===Ne?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wi(t),ref:t&&Cn(t),scopeId:ko,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Se};return l?(Ys(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ue(n)?8:16),ln>0&&!i&&Te&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Te.push(c),c}const ge=kc;function kc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===fc)&&(e=we),Mn(e)){const l=at(e,t,!0);return n&&Ys(l,n),ln>0&&!o&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag=-2,l}if(ef(e)&&(e=e.__vccOpts),t){t=Uc(t);let{class:l,style:c}=t;l&&!ue(l)&&(t.class=Fs(l)),ce(c)&&(Us(c)&&!U(c)&&(c=de({},c)),t.style=Ns(c))}const i=ue(e)?1:Si(e)?128:Ko(e)?64:ce(e)?4:W(e)?2:0;return Ri(e,t,n,s,r,i,o,!0)}function Uc(e){return e?Us(e)||di(e)?de({},e):e:null}function at(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?Wc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&wi(u),ref:t&&t.ref?n&&o?U(o)?o.concat(Cn(t)):[o,Cn(t)]:Cn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&xt(f,c.clone(f)),f}function Kc(e=" ",t=0){return ge(Wn,null,e,t)}function oa(e,t){const n=ge(Sn,null,e);return n.staticCount=t,n}function ia(e="",t=!1){return t?(Ci(),Vc(we,null,e)):ge(we,null,e)}function qe(e){return e==null||typeof e=="boolean"?ge(we):U(e)?ge(Ne,null,e.slice()):Mn(e)?ct(e):ge(Wn,null,String(e))}function ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function Ys(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ys(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!di(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),s&64?(n=16,t=[Kc(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wc(...e){const t={};for(let n=0;nhe||Se;let In,Ss;{const e=jn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};In=t("__VUE_INSTANCE_SETTERS__",n=>he=n),Ss=t("__VUE_SSR_SETTERS__",n=>cn=n)}const hn=e=>{const t=he;return In(e),e.scope.on(),()=>{e.scope.off(),In(t)}},Sr=()=>{he&&he.scope.off(),In(null)};function Ti(e){return e.vnode.shapeFlag&4}let cn=!1;function Jc(e,t=!1,n=!1){t&&Ss(t);const{props:s,children:r}=e.vnode,o=Ti(e);bc(e,s,o,t),Cc(e,r,n);const i=o?Qc(e,t):void 0;return t&&Ss(!1),i}function Qc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc);const{setup:s}=n;if(s){ht();const r=e.setupContext=s.length>1?Xc(e):null,o=hn(e),i=dn(s,e,0,[e.props,r]),l=co(i);if(pt(),o(),(l||e.sp)&&!Jt(e)&&Zo(e),l){if(i.then(Sr,Sr),t)return i.then(c=>{Cr(e,c)}).catch(c=>{Vn(c,e,0)});e.asyncDep=i}else Cr(e,i)}else Ai(e)}function Cr(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=$o(t)),Ai(e)}function Ai(e,t,n){const s=e.type;e.render||(e.render=s.render||Ge);{const r=hn(e);ht();try{ac(e)}finally{pt(),r()}}}const Yc={get(e,t){return pe(e,"get",""),e[t]}};function Xc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Yc),slots:e.slots,emit:e.emit,expose:t}}function qn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($o(Ks(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qt)return Qt[n](e)},has(t,n){return n in t||n in Qt}})):e.proxy}function Zc(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function ef(e){return W(e)&&"__vccOpts"in e}const Me=(e,t)=>kl(e,t,cn);function Xs(e,t,n){const s=arguments.length;return s===2?ce(t)&&!U(t)?Mn(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mn(n)&&(n=[n]),ge(e,t,n))}const tf="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Cs;const xr=typeof window<"u"&&window.trustedTypes;if(xr)try{Cs=xr.createPolicy("vue",{createHTML:e=>e})}catch{}const Oi=Cs?e=>Cs.createHTML(e):e=>e,nf="http://www.w3.org/2000/svg",sf="http://www.w3.org/1998/Math/MathML",Ye=typeof document<"u"?document:null,wr=Ye&&Ye.createElement("template"),rf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ye.createElementNS(nf,e):t==="mathml"?Ye.createElementNS(sf,e):n?Ye.createElement(e,{is:n}):Ye.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ye.createTextNode(e),createComment:e=>Ye.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ye.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{wr.innerHTML=Oi(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=wr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},nt="transition",Vt="animation",$t=Symbol("_vtc"),Mi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ii=de({},zo,Mi),of=e=>(e.displayName="Transition",e.props=Ii,e),la=of((e,{slots:t})=>Xs(Yl,Li(e),t)),_t=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rr=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function Li(e){const t={};for(const O in e)O in Mi||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,E=lf(r),C=E&&E[0],k=E&&E[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:F,onLeave:M,onLeaveCancelled:H,onBeforeAppear:z=N,onAppear:G=L,onAppearCancelled:j=F}=t,x=(O,Q,ae,me)=>{O._enterCancelled=me,rt(O,Q?f:l),rt(O,Q?u:i),ae&&ae()},B=(O,Q)=>{O._isLeaving=!1,rt(O,a),rt(O,g),rt(O,p),Q&&Q()},J=O=>(Q,ae)=>{const me=O?G:L,se=()=>x(Q,O,ae);_t(me,[Q,se]),Pr(()=>{rt(Q,O?c:o),Ke(Q,O?f:l),Rr(me)||Tr(Q,s,C,se)})};return de(t,{onBeforeEnter(O){_t(N,[O]),Ke(O,o),Ke(O,i)},onBeforeAppear(O){_t(z,[O]),Ke(O,c),Ke(O,u)},onEnter:J(!1),onAppear:J(!0),onLeave(O,Q){O._isLeaving=!0;const ae=()=>B(O,Q);Ke(O,a),O._enterCancelled?(Ke(O,p),xs()):(xs(),Ke(O,p)),Pr(()=>{O._isLeaving&&(rt(O,a),Ke(O,g),Rr(M)||Tr(O,s,k,ae))}),_t(M,[O,ae])},onEnterCancelled(O){x(O,!1,void 0,!0),_t(F,[O])},onAppearCancelled(O){x(O,!0,void 0,!0),_t(j,[O])},onLeaveCancelled(O){B(O),_t(H,[O])}})}function lf(e){if(e==null)return null;if(ce(e))return[os(e.enter),os(e.leave)];{const t=os(e);return[t,t]}}function os(e){return ll(e)}function Ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$t]||(e[$t]=new Set)).add(t)}function rt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[$t];n&&(n.delete(t),n.size||(e[$t]=void 0))}function Pr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cf=0;function Tr(e,t,n,s){const r=e._endId=++cf,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=Ni(e,t);if(!i)return s();const u=i+"end";let f=0;const a=()=>{e.removeEventListener(u,p),o()},p=g=>{g.target===e&&++f>=c&&a()};setTimeout(()=>{f(n[E]||"").split(", "),r=s(`${nt}Delay`),o=s(`${nt}Duration`),i=Ar(r,o),l=s(`${Vt}Delay`),c=s(`${Vt}Duration`),u=Ar(l,c);let f=null,a=0,p=0;t===nt?i>0&&(f=nt,a=i,p=o.length):t===Vt?u>0&&(f=Vt,a=u,p=c.length):(a=Math.max(i,u),f=a>0?i>u?nt:Vt:null,p=f?f===nt?o.length:c.length:0);const g=f===nt&&/\b(transform|all)(,|$)/.test(s(`${nt}Property`).toString());return{type:f,timeout:a,propCount:p,hasTransform:g}}function Ar(e,t){for(;e.lengthOr(n)+Or(e[s])))}function Or(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xs(){return document.body.offsetHeight}function ff(e,t,n){const s=e[$t];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ln=Symbol("_vod"),Fi=Symbol("_vsh"),ca={beforeMount(e,{value:t},{transition:n}){e[Ln]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),kt(e,!0),s.enter(e)):s.leave(e,()=>{kt(e,!1)}):kt(e,t))},beforeUnmount(e,{value:t}){kt(e,t)}};function kt(e,t){e.style.display=t?e[Ln]:"none",e[Fi]=!t}const uf=Symbol(""),af=/(^|;)\s*display\s*:/;function df(e,t,n){const s=e.style,r=ue(n);let o=!1;if(n&&!r){if(t)if(ue(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&xn(s,l,"")}else for(const i in t)n[i]==null&&xn(s,i,"");for(const i in n)i==="display"&&(o=!0),xn(s,i,n[i])}else if(r){if(t!==n){const i=s[uf];i&&(n+=";"+i),s.cssText=n,o=af.test(n)}}else t&&e.removeAttribute("style");Ln in e&&(e[Ln]=o?s.display:"",e[Fi]&&(s.display="none"))}const Mr=/\s*!important$/;function xn(e,t,n){if(U(n))n.forEach(s=>xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=hf(e,t);Mr.test(n)?e.setProperty(wt(s),n.replace(Mr,""),"important"):e[s]=n}}const Ir=["Webkit","Moz","ms"],is={};function hf(e,t){const n=is[t];if(n)return n;let s=Le(t);if(s!=="filter"&&s in e)return is[t]=s;s=Hn(s);for(let r=0;rls||(yf.then(()=>ls=0),ls=Date.now());function vf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;De(Ef(s,n.value),t,5,[s])};return n.value=e,n.attached=bf(),n}function Ef(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Hr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sf=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?ff(e,s,i):t==="style"?df(e,n,s):Fn(t)?Ms(t)||mf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cf(e,t,s,i))?(Fr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nr(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ue(s))?Fr(e,Le(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nr(e,t,s,i))};function Cf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hr(t)&&W(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Hr(t)&&ue(n)?!1:t in e}const $i=new WeakMap,Di=new WeakMap,Nn=Symbol("_moveCb"),jr=Symbol("_enterCb"),xf=e=>(delete e.props.mode,e),wf=xf({name:"TransitionGroup",props:de({},Ii,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Pi(),s=Go();let r,o;return ni(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Af(r[0].el,n.vnode.el,i))return;r.forEach(Rf),r.forEach(Pf);const l=r.filter(Tf);xs(),l.forEach(c=>{const u=c.el,f=u.style;Ke(u,i),f.transform=f.webkitTransform=f.transitionDuration="";const a=u[Nn]=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",a),u[Nn]=null,rt(u,i))};u.addEventListener("transitionend",a)})}),()=>{const i=X(e),l=Li(i);let c=i.tag||Ne;if(r=[],o)for(let u=0;u{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=Ni(s);return o.removeChild(s),i}const Of=["ctrl","shift","alt","meta"],Mf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Of.some(n=>e[`${n}Key`]&&!t.includes(n))},ua=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{Hi().render(...e)},Lf=(...e)=>{const t=Hi().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ff(s);if(!r)return;const o=t._component;!W(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Nf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Nf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ff(e){return ue(e)?document.querySelector(e):e}/*! + * pinia v2.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let ji;const Gn=e=>ji=e,Bi=Symbol();function ws(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Zt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zt||(Zt={}));function $f(){const e=_o(!0),t=e.run(()=>Bn({}));let n=[],s=[];const r=Ks({install(o){Gn(r),r._a=o,o.provide(Bi,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Vi=()=>{};function Vr(e,t,n,s=Vi){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&yo()&&gl(r),r}function At(e,...t){e.slice().forEach(n=>{n(...t)})}const Df=e=>e(),kr=Symbol(),cs=Symbol();function Rs(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];ws(r)&&ws(s)&&e.hasOwnProperty(n)&&!fe(s)&&!Et(s)?e[n]=Rs(r,s):e[n]=s}return e}const Hf=Symbol();function jf(e){return!ws(e)||!e.hasOwnProperty(Hf)}const{assign:ot}=Object;function Bf(e){return!!(fe(e)&&e.effect)}function Vf(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=r?r():{});const f=Hl(n.state.value[e]);return ot(f,o,Object.keys(i||{}).reduce((a,p)=>(a[p]=Ks(Me(()=>{Gn(n);const g=n._s.get(e);return i[p].call(g,g)})),a),{}))}return c=ki(e,u,t,n,s,!0),c}function ki(e,t,n={},s,r,o){let i;const l=ot({actions:{}},n),c={deep:!0};let u,f,a=[],p=[],g;const E=s.state.value[e];!o&&!E&&(s.state.value[e]={}),Bn({});let C;function k(j){let x;u=f=!1,typeof j=="function"?(j(s.state.value[e]),x={type:Zt.patchFunction,storeId:e,events:g}):(Rs(s.state.value[e],j),x={type:Zt.patchObject,payload:j,storeId:e,events:g});const B=C=Symbol();Ws().then(()=>{C===B&&(u=!0)}),f=!0,At(a,x,s.state.value[e])}const N=o?function(){const{state:x}=n,B=x?x():{};this.$patch(J=>{ot(J,B)})}:Vi;function L(){i.stop(),a=[],p=[],s._s.delete(e)}const F=(j,x="")=>{if(kr in j)return j[cs]=x,j;const B=function(){Gn(s);const J=Array.from(arguments),O=[],Q=[];function ae(q){O.push(q)}function me(q){Q.push(q)}At(p,{args:J,name:B[cs],store:H,after:ae,onError:me});let se;try{se=j.apply(this&&this.$id===e?this:H,J)}catch(q){throw At(Q,q),q}return se instanceof Promise?se.then(q=>(At(O,q),q)).catch(q=>(At(Q,q),Promise.reject(q))):(At(O,se),se)};return B[kr]=!0,B[cs]=x,B},M={_p:s,$id:e,$onAction:Vr.bind(null,p),$patch:k,$reset:N,$subscribe(j,x={}){const B=Vr(a,j,x.detached,()=>J()),J=i.run(()=>Yt(()=>s.state.value[e],O=>{(x.flush==="sync"?f:u)&&j({storeId:e,type:Zt.direct,events:g},O)},ot({},c,x)));return B},$dispose:L},H=an(M);s._s.set(e,H);const G=(s._a&&s._a.runWithContext||Df)(()=>s._e.run(()=>(i=_o()).run(()=>t({action:F}))));for(const j in G){const x=G[j];if(fe(x)&&!Bf(x)||Et(x))o||(E&&jf(x)&&(fe(x)?x.value=E[j]:Rs(x,E[j])),s.state.value[e][j]=x);else if(typeof x=="function"){const B=F(x,j);G[j]=B,l.actions[j]=x}}return ot(H,G),ot(X(H),G),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:j=>{k(x=>{ot(x,j)})}}),s._p.forEach(j=>{ot(H,i.run(()=>j({store:H,app:s._a,pinia:s,options:l})))}),E&&o&&n.hydrate&&n.hydrate(H.$state,E),u=!0,f=!0,H}/*! #__NO_SIDE_EFFECTS__ */function da(e,t,n){let s,r;const o=typeof t=="function";s=e,r=o?n:t;function i(l,c){const u=yc();return l=l||(u?Ie(Bi,null):null),l&&Gn(l),l=ji,l._s.has(s)||(o?ki(s,t,r,l):Vf(s,r,l)),l._s.get(s)}return i.$id=s,i}const kf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Uf={},Kf={class:"app"};function Wf(e,t){const n=cc("router-view");return Ci(),Bc("div",Kf,[ge(n)])}const qf=kf(Uf,[["render",Wf]]),Gf="modulepreload",zf=function(e){return"/"+e},Ur={},fs=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=zf(c),c in Ur)return;Ur[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const a=document.createElement("link");if(a.rel=u?"stylesheet":Gf,u||(a.as="script"),a.crossOrigin="",a.href=c,l&&a.setAttribute("nonce",l),document.head.appendChild(a),u)return new Promise((p,g)=>{a.addEventListener("load",p),a.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Mt=typeof document<"u";function Ui(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Jf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ui(e.default)}const ee=Object.assign;function us(e,t){const n={};for(const s in t){const r=t[s];n[s]=He(r)?r.map(e):e(r)}return n}const en=()=>{},He=Array.isArray,Ki=/#/g,Qf=/&/g,Yf=/\//g,Xf=/=/g,Zf=/\?/g,Wi=/\+/g,eu=/%5B/g,tu=/%5D/g,qi=/%5E/g,nu=/%60/g,Gi=/%7B/g,su=/%7C/g,zi=/%7D/g,ru=/%20/g;function Zs(e){return encodeURI(""+e).replace(su,"|").replace(eu,"[").replace(tu,"]")}function ou(e){return Zs(e).replace(Gi,"{").replace(zi,"}").replace(qi,"^")}function Ps(e){return Zs(e).replace(Wi,"%2B").replace(ru,"+").replace(Ki,"%23").replace(Qf,"%26").replace(nu,"`").replace(Gi,"{").replace(zi,"}").replace(qi,"^")}function iu(e){return Ps(e).replace(Xf,"%3D")}function lu(e){return Zs(e).replace(Ki,"%23").replace(Zf,"%3F")}function cu(e){return e==null?"":lu(e).replace(Yf,"%2F")}function fn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const fu=/\/$/,uu=e=>e.replace(fu,"");function as(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=pu(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:fn(i)}}function au(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function du(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Dt(t.matched[s],n.matched[r])&&Ji(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ji(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hu(e[n],t[n]))return!1;return!0}function hu(e,t){return He(e)?Wr(e,t):He(t)?Wr(t,e):e===t}function Wr(e,t){return He(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const st={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var un;(function(e){e.pop="pop",e.push="push"})(un||(un={}));var tn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tn||(tn={}));function gu(e){if(!e)if(Mt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uu(e)}const mu=/^[^#]+#/;function _u(e,t){return e.replace(mu,"#")+t}function yu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const zn=()=>({left:window.scrollX,top:window.scrollY});function bu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=yu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function qr(e,t){return(history.state?history.state.position-t:-1)+e}const Ts=new Map;function vu(e,t){Ts.set(e,t)}function Eu(e){const t=Ts.get(e);return Ts.delete(e),t}let Su=()=>location.protocol+"//"+location.host;function Qi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Kr(c,"")}return Kr(n,e)+s+r}function Cu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const g=Qi(e,location),E=n.value,C=t.value;let k=0;if(p){if(n.value=g,t.value=p,i&&i===E){i=null;return}k=C?p.position-C.position:0}else s(g);r.forEach(N=>{N(n.value,E,{delta:k,type:un.pop,direction:k?k>0?tn.forward:tn.back:tn.unknown})})};function c(){i=n.value}function u(p){r.push(p);const g=()=>{const E=r.indexOf(p);E>-1&&r.splice(E,1)};return o.push(g),g}function f(){const{history:p}=window;p.state&&p.replaceState(ee({},p.state,{scroll:zn()}),"")}function a(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:a}}function Gr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?zn():null}}function xu(e){const{history:t,location:n}=window,s={value:Qi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,f){const a=e.indexOf("#"),p=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+c:Su()+e+c;try{t[f?"replaceState":"pushState"](u,"",p),r.value=u}catch(g){console.error(g),n[f?"replace":"assign"](p)}}function i(c,u){const f=ee({},t.state,Gr(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,f,!0),s.value=c}function l(c,u){const f=ee({},r.value,t.state,{forward:c,scroll:zn()});o(f.current,f,!0);const a=ee({},Gr(s.value,c,null),{position:f.position+1},u);o(c,a,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function wu(e){e=gu(e);const t=xu(e),n=Cu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ee({location:"",base:e,go:s,createHref:_u.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Ru(e){return typeof e=="string"||e&&typeof e=="object"}function Yi(e){return typeof e=="string"||typeof e=="symbol"}const Xi=Symbol("");var zr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zr||(zr={}));function Ht(e,t){return ee(new Error,{type:e,[Xi]:!0},t)}function Qe(e,t){return e instanceof Error&&Xi in e&&(t==null||!!(e.type&t))}const Jr="[^/]+?",Pu={sensitive:!1,strict:!1,start:!0,end:!0},Tu=/[.+*?^${}()[\]/\\]/g;function Au(e,t){const n=ee({},Pu,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let a=0;at.length?t.length===1&&t[0]===80?1:-1:0}function Zi(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Mu={type:0,value:""},Iu=/[a-zA-Z0-9_]/;function Lu(e){if(!e)return[[]];if(e==="/")return[[Mu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",f="";function a(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l{i(F)}:en}function i(a){if(Yi(a)){const p=s.get(a);p&&(s.delete(a),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(a);p>-1&&(n.splice(p,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function l(){return n}function c(a){const p=Hu(a,n);n.splice(p,0,a),a.record.name&&!Zr(a)&&s.set(a.record.name,a)}function u(a,p){let g,E={},C,k;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw Ht(1,{location:a});k=g.record.name,E=ee(Yr(p.params,g.keys.filter(F=>!F.optional).concat(g.parent?g.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),a.params&&Yr(a.params,g.keys.map(F=>F.name))),C=g.stringify(E)}else if(a.path!=null)C=a.path,g=n.find(F=>F.re.test(C)),g&&(E=g.parse(C),k=g.record.name);else{if(g=p.name?s.get(p.name):n.find(F=>F.re.test(p.path)),!g)throw Ht(1,{location:a,currentLocation:p});k=g.record.name,E=ee({},p.params,a.params),C=g.stringify(E)}const N=[];let L=g;for(;L;)N.unshift(L.record),L=L.parent;return{name:k,path:C,params:E,matched:N,meta:Du(N)}}e.forEach(a=>o(a));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function Yr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Xr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$u(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function $u(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Zr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Du(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function eo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Hu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Zi(e,t[o])<0?s=o:n=o+1}const r=ju(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ju(e){let t=e;for(;t=t.parent;)if(el(t)&&Zi(e,t)===0)return t}function el({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Ps(o)):[s&&Ps(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Vu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=He(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ku=Symbol(""),no=Symbol(""),Jn=Symbol(""),er=Symbol(""),As=Symbol("");function Ut(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ft(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Ht(4,{from:n,to:t})):p instanceof Error?c(p):Ru(p)?c(Ht(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},f=o(()=>e.call(s&&s.instances[r],t,n,u));let a=Promise.resolve(f);e.length<3&&(a=a.then(u)),a.catch(p=>c(p))})}function ds(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Ui(c)){const f=(c.__vccOpts||c)[t];f&&o.push(ft(f,n,s,i,l,r))}else{let u=c();o.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const a=Jf(f)?f.default:f;i.mods[l]=f,i.components[l]=a;const g=(a.__vccOpts||a)[t];return g&&ft(g,n,s,i,l,r)()}))}}return o}function so(e){const t=Ie(Jn),n=Ie(er),s=Me(()=>{const c=Nt(e.to);return t.resolve(c)}),r=Me(()=>{const{matched:c}=s.value,{length:u}=c,f=c[u-1],a=n.matched;if(!f||!a.length)return-1;const p=a.findIndex(Dt.bind(null,f));if(p>-1)return p;const g=ro(c[u-2]);return u>1&&ro(f)===g&&a[a.length-1].path!==g?a.findIndex(Dt.bind(null,c[u-2])):p}),o=Me(()=>r.value>-1&&Gu(n.params,s.value.params)),i=Me(()=>r.value>-1&&r.value===n.matched.length-1&&Ji(n.params,s.value.params));function l(c={}){if(qu(c)){const u=t[Nt(e.replace)?"replace":"push"](Nt(e.to)).catch(en);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Me(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Uu(e){return e.length===1?e[0]:e}const Ku=Xo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:so,setup(e,{slots:t}){const n=an(so(e)),{options:s}=Ie(Jn),r=Me(()=>({[oo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[oo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Uu(t.default(n));return e.custom?o:Xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Wu=Ku;function qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!He(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ro(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oo=(e,t,n)=>e??t??n,zu=Xo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ie(As),r=Me(()=>e.route||s.value),o=Ie(no,0),i=Me(()=>{let u=Nt(o);const{matched:f}=r.value;let a;for(;(a=f[u])&&!a.components;)u++;return u}),l=Me(()=>r.value.matched[i.value]);En(no,Me(()=>i.value+1)),En(ku,l),En(As,r);const c=Bn();return Yt(()=>[c.value,l.value,e.name],([u,f,a],[p,g,E])=>{f&&(f.instances[a]=u,g&&g!==f&&u&&u===p&&(f.leaveGuards.size||(f.leaveGuards=g.leaveGuards),f.updateGuards.size||(f.updateGuards=g.updateGuards))),u&&f&&(!g||!Dt(f,g)||!p)&&(f.enterCallbacks[a]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,f=e.name,a=l.value,p=a&&a.components[f];if(!p)return io(n.default,{Component:p,route:u});const g=a.props[f],E=g?g===!0?u.params:typeof g=="function"?g(u):g:null,k=Xs(p,ee({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(a.instances[f]=null)},ref:c}));return io(n.default,{Component:k,route:u})||k}}});function io(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ju=zu;function Qu(e){const t=Fu(e.routes,e),n=e.parseQuery||Bu,s=e.stringifyQuery||to,r=e.history,o=Ut(),i=Ut(),l=Ut(),c=Fl(st);let u=st;Mt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=us.bind(null,y=>""+y),a=us.bind(null,cu),p=us.bind(null,fn);function g(y,I){let T,$;return Yi(y)?(T=t.getRecordMatcher(y),$=I):$=y,t.addRoute($,T)}function E(y){const I=t.getRecordMatcher(y);I&&t.removeRoute(I)}function C(){return t.getRoutes().map(y=>y.record)}function k(y){return!!t.getRecordMatcher(y)}function N(y,I){if(I=ee({},I||c.value),typeof y=="string"){const m=as(n,y,I.path),_=t.resolve({path:m.path},I),v=r.createHref(m.fullPath);return ee(m,_,{params:p(_.params),hash:fn(m.hash),redirectedFrom:void 0,href:v})}let T;if(y.path!=null)T=ee({},y,{path:as(n,y.path,I.path).path});else{const m=ee({},y.params);for(const _ in m)m[_]==null&&delete m[_];T=ee({},y,{params:a(m)}),I.params=a(I.params)}const $=t.resolve(T,I),re=y.hash||"";$.params=f(p($.params));const d=au(s,ee({},y,{hash:ou(re),path:$.path})),h=r.createHref(d);return ee({fullPath:d,hash:re,query:s===to?Vu(y.query):y.query||{}},$,{redirectedFrom:void 0,href:h})}function L(y){return typeof y=="string"?as(n,y,c.value.path):ee({},y)}function F(y,I){if(u!==y)return Ht(8,{from:I,to:y})}function M(y){return G(y)}function H(y){return M(ee(L(y),{replace:!0}))}function z(y){const I=y.matched[y.matched.length-1];if(I&&I.redirect){const{redirect:T}=I;let $=typeof T=="function"?T(y):T;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=L($):{path:$},$.params={}),ee({query:y.query,hash:y.hash,params:$.path!=null?{}:y.params},$)}}function G(y,I){const T=u=N(y),$=c.value,re=y.state,d=y.force,h=y.replace===!0,m=z(T);if(m)return G(ee(L(m),{state:typeof m=="object"?ee({},re,m.state):re,force:d,replace:h}),I||T);const _=T;_.redirectedFrom=I;let v;return!d&&du(s,$,T)&&(v=Ht(16,{to:_,from:$}),je($,$,!0,!1)),(v?Promise.resolve(v):B(_,$)).catch(b=>Qe(b)?Qe(b,2)?b:tt(b):Z(b,_,$)).then(b=>{if(b){if(Qe(b,2))return G(ee({replace:h},L(b.to),{state:typeof b.to=="object"?ee({},re,b.to.state):re,force:d}),I||_)}else b=O(_,$,!0,h,re);return J(_,$,b),b})}function j(y,I){const T=F(y,I);return T?Promise.reject(T):Promise.resolve()}function x(y){const I=Pt.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(y):y()}function B(y,I){let T;const[$,re,d]=Yu(y,I);T=ds($.reverse(),"beforeRouteLeave",y,I);for(const m of $)m.leaveGuards.forEach(_=>{T.push(ft(_,y,I))});const h=j.bind(null,y,I);return T.push(h),Ae(T).then(()=>{T=[];for(const m of o.list())T.push(ft(m,y,I));return T.push(h),Ae(T)}).then(()=>{T=ds(re,"beforeRouteUpdate",y,I);for(const m of re)m.updateGuards.forEach(_=>{T.push(ft(_,y,I))});return T.push(h),Ae(T)}).then(()=>{T=[];for(const m of d)if(m.beforeEnter)if(He(m.beforeEnter))for(const _ of m.beforeEnter)T.push(ft(_,y,I));else T.push(ft(m.beforeEnter,y,I));return T.push(h),Ae(T)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),T=ds(d,"beforeRouteEnter",y,I,x),T.push(h),Ae(T))).then(()=>{T=[];for(const m of i.list())T.push(ft(m,y,I));return T.push(h),Ae(T)}).catch(m=>Qe(m,8)?m:Promise.reject(m))}function J(y,I,T){l.list().forEach($=>x(()=>$(y,I,T)))}function O(y,I,T,$,re){const d=F(y,I);if(d)return d;const h=I===st,m=Mt?history.state:{};T&&($||h?r.replace(y.fullPath,ee({scroll:h&&m&&m.scroll},re)):r.push(y.fullPath,re)),c.value=y,je(y,I,T,h),tt()}let Q;function ae(){Q||(Q=r.listen((y,I,T)=>{if(!pn.listening)return;const $=N(y),re=z($);if(re){G(ee(re,{replace:!0,force:!0}),$).catch(en);return}u=$;const d=c.value;Mt&&vu(qr(d.fullPath,T.delta),zn()),B($,d).catch(h=>Qe(h,12)?h:Qe(h,2)?(G(ee(L(h.to),{force:!0}),$).then(m=>{Qe(m,20)&&!T.delta&&T.type===un.pop&&r.go(-1,!1)}).catch(en),Promise.reject()):(T.delta&&r.go(-T.delta,!1),Z(h,$,d))).then(h=>{h=h||O($,d,!1),h&&(T.delta&&!Qe(h,8)?r.go(-T.delta,!1):T.type===un.pop&&Qe(h,20)&&r.go(-1,!1)),J($,d,h)}).catch(en)}))}let me=Ut(),se=Ut(),q;function Z(y,I,T){tt(y);const $=se.list();return $.length?$.forEach(re=>re(y,I,T)):console.error(y),Promise.reject(y)}function ze(){return q&&c.value!==st?Promise.resolve():new Promise((y,I)=>{me.add([y,I])})}function tt(y){return q||(q=!y,ae(),me.list().forEach(([I,T])=>y?T(y):I()),me.reset()),y}function je(y,I,T,$){const{scrollBehavior:re}=e;if(!Mt||!re)return Promise.resolve();const d=!T&&Eu(qr(y.fullPath,0))||($||!T)&&history.state&&history.state.scroll||null;return Ws().then(()=>re(y,I,d)).then(h=>h&&bu(h)).catch(h=>Z(h,y,I))}const Ce=y=>r.go(y);let Rt;const Pt=new Set,pn={currentRoute:c,listening:!0,addRoute:g,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:C,resolve:N,options:e,push:M,replace:H,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:se.add,isReady:ze,install(y){const I=this;y.component("RouterLink",Wu),y.component("RouterView",Ju),y.config.globalProperties.$router=I,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>Nt(c)}),Mt&&!Rt&&c.value===st&&(Rt=!0,M(r.location).catch(re=>{}));const T={};for(const re in st)Object.defineProperty(T,re,{get:()=>c.value[re],enumerable:!0});y.provide(Jn,I),y.provide(er,Lo(T)),y.provide(As,c);const $=y.unmount;Pt.add(y),y.unmount=function(){Pt.delete(y),Pt.size<1&&(u=st,Q&&Q(),Q=null,c.value=st,Rt=!1,q=!1),$()}}};function Ae(y){return y.reduce((I,T)=>I.then(()=>x(T)),Promise.resolve())}return pn}function Yu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iDt(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>Dt(u,c))||r.push(c))}return[n,s,r]}function ha(){return Ie(Jn)}function pa(e){return Ie(er)}const Xu=Qu({history:wu("/"),routes:[{path:"/",name:"Home",redirect:"/home",component:()=>fs(()=>import("./LayoutContainer-Dl5Cz5Xv.js"),__vite__mapDeps([0,1,2,3])),children:[{path:"/home",name:"HomeIndex",component:()=>fs(()=>import("./HomeIndex-DOQHzWHL.js"),__vite__mapDeps([4,2,5]))},{path:"/about",name:"AboutPage",component:()=>fs(()=>import("./AboutPage-B8ON9FDS.js"),__vite__mapDeps([6,1,7]))}]}]});console.log=function(){};console.error=function(){};console.warn=function(){};const tr=Lf(qf);tr.use($f());tr.use(Xu);tr.mount("#app");export{oa as $,Ws as A,ni as B,Nt as C,ea as D,Pi as E,Ne as F,nc as G,ta as H,ca as I,Wn as J,Xl as K,pl as L,ia as M,Vc as N,we as O,Zu as P,Xs as Q,sa as R,aa as S,la as T,ua as U,tc as V,na as W,fa as X,da as Y,$f as Z,kf as _,Me as a,si as b,ge as c,Xo as d,Bc as e,zl as f,Ci as g,Ri as h,Ie as i,Kc as j,ha as k,cc as l,Mn as m,at as n,ti as o,En as p,ra as q,Bn as r,Fl as s,fe as t,pa as u,an as v,Yt as w,Hl as x,ri as y,X as z}; diff --git a/backend/src/main/resources/static/favicon.png b/backend/src/main/resources/static/favicon.png new file mode 100644 index 0000000..f2448d2 Binary files /dev/null and b/backend/src/main/resources/static/favicon.png differ diff --git a/backend/src/main/resources/static/forge/prime.worker.js b/backend/src/main/resources/static/forge/prime.worker.js new file mode 100644 index 0000000..41433be --- /dev/null +++ b/backend/src/main/resources/static/forge/prime.worker.js @@ -0,0 +1,2 @@ +!function(t){var i={};function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=i,r.d=function(t,i,o){r.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,i){if(1&i&&(t=r(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)r.d(o,s,function(i){return t[i]}.bind(null,s));return o},r.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(i,"a",i),i},r.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},r.p="",r(r.s=1)}([function(t,i){t.exports={options:{usePureJavaScript:!1}}},function(t,i,r){r(2),t.exports=r(0)},function(t,i,r){var o=r(0);r(3);var s=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],e=(1<<26)/s[s.length-1],a=o.jsbn.BigInteger;new a(null).fromInt(2),self.addEventListener("message",(function(t){var i=function(t){for(var i=new a(t.hex,16),r=0,o=t.workLoad,s=0;s=0);var u=o.modPow(s,t);if(0!==u.compareTo(a.ONE)&&0!==u.compareTo(i)){for(var f=r;--f;){if(0===(u=u.modPowInt(2,t)).compareTo(a.ONE))return!1;if(0===u.compareTo(i))break}if(0===f)return!1}}var p;return!0}(t)}},function(t,i,r){var o,s=r(0);t.exports=s.jsbn=s.jsbn||{};function e(t,i,r){this.data=[],null!=t&&("number"==typeof t?this.fromNumber(t,i,r):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function a(){return new e(null)}function n(t,i,r,o,s,e){for(var a=16383&i,n=i>>14;--e>=0;){var h=16383&this.data[t],u=this.data[t++]>>14,f=n*h+u*a;s=((h=a*h+((16383&f)<<14)+r.data[o]+s)>>28)+(f>>14)+n*u,r.data[o++]=268435455&h}return s}s.jsbn.BigInteger=e,"undefined"==typeof navigator?(e.prototype.am=n,o=28):"Microsoft Internet Explorer"==navigator.appName?(e.prototype.am=function(t,i,r,o,s,e){for(var a=32767&i,n=i>>15;--e>=0;){var h=32767&this.data[t],u=this.data[t++]>>15,f=n*h+u*a;s=((h=a*h+((32767&f)<<15)+r.data[o]+(1073741823&s))>>>30)+(f>>>15)+n*u+(s>>>30),r.data[o++]=1073741823&h}return s},o=30):"Netscape"!=navigator.appName?(e.prototype.am=function(t,i,r,o,s,e){for(;--e>=0;){var a=i*this.data[t++]+r.data[o]+s;s=Math.floor(a/67108864),r.data[o++]=67108863&a}return s},o=26):(e.prototype.am=n,o=28),e.prototype.DB=o,e.prototype.DM=(1<>>16)&&(t=i,r+=16),0!=(i=t>>8)&&(t=i,r+=8),0!=(i=t>>4)&&(t=i,r+=4),0!=(i=t>>2)&&(t=i,r+=2),0!=(i=t>>1)&&(t=i,r+=1),r}function l(t){this.m=t}function v(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,i+=16),0==(255&t)&&(t>>=8,i+=8),0==(15&t)&&(t>>=4,i+=4),0==(3&t)&&(t>>=2,i+=2),0==(1&t)&&++i,i}function B(t){for(var i=0;0!=t;)t&=t-1,++i;return i}function S(){}function M(t){return t}function w(t){this.r2=a(),this.q3=a(),e.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}l.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,i,r){t.multiplyTo(i,r),this.reduce(r)},l.prototype.sqrTo=function(t,i){t.squareTo(i),this.reduce(i)},v.prototype.convert=function(t){var i=a();return t.abs().dlShiftTo(this.m.t,i),i.divRemTo(this.m,null,i),t.s<0&&i.compareTo(e.ZERO)>0&&this.m.subTo(i,i),i},v.prototype.revert=function(t){var i=a();return t.copyTo(i),this.reduce(i),i},v.prototype.reduce=function(t){for(;t.t<=this.mt2;)t.data[t.t++]=0;for(var i=0;i>15)*this.mpl&this.um)<<15)&t.DM;for(r=i+this.m.t,t.data[r]+=this.m.am(0,o,t,i,0,this.m.t);t.data[r]>=t.DV;)t.data[r]-=t.DV,t.data[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},v.prototype.mulTo=function(t,i,r){t.multiplyTo(i,r),this.reduce(r)},v.prototype.sqrTo=function(t,i){t.squareTo(i),this.reduce(i)},e.prototype.copyTo=function(t){for(var i=this.t-1;i>=0;--i)t.data[i]=this.data[i];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this.data[0]=t:t<-1?this.data[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,i){var r;if(16==i)r=4;else if(8==i)r=3;else if(256==i)r=8;else if(2==i)r=1;else if(32==i)r=5;else{if(4!=i)return void this.fromRadix(t,i);r=2}this.t=0,this.s=0;for(var o=t.length,s=!1,a=0;--o>=0;){var n=8==r?255&t[o]:d(t,o);n<0?"-"==t.charAt(o)&&(s=!0):(s=!1,0==a?this.data[this.t++]=n:a+r>this.DB?(this.data[this.t-1]|=(n&(1<>this.DB-a):this.data[this.t-1]|=n<=this.DB&&(a-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,a>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,i){var r;for(r=this.t-1;r>=0;--r)i.data[r+t]=this.data[r];for(r=t-1;r>=0;--r)i.data[r]=0;i.t=this.t+t,i.s=this.s},e.prototype.drShiftTo=function(t,i){for(var r=t;r=0;--r)i.data[r+a+1]=this.data[r]>>s|n,n=(this.data[r]&e)<=0;--r)i.data[r]=0;i.data[a]=n,i.t=this.t+a+1,i.s=this.s,i.clamp()},e.prototype.rShiftTo=function(t,i){i.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)i.t=0;else{var o=t%this.DB,s=this.DB-o,e=(1<>o;for(var a=r+1;a>o;o>0&&(i.data[this.t-r-1]|=(this.s&e)<>=this.DB;if(t.t>=this.DB;o+=this.s}else{for(o+=this.s;r>=this.DB;o-=t.s}i.s=o<0?-1:0,o<-1?i.data[r++]=this.DV+o:o>0&&(i.data[r++]=o),i.t=r,i.clamp()},e.prototype.multiplyTo=function(t,i){var r=this.abs(),o=t.abs(),s=r.t;for(i.t=s+o.t;--s>=0;)i.data[s]=0;for(s=0;s=0;)t.data[r]=0;for(r=0;r=i.DV&&(t.data[r+i.t]-=i.DV,t.data[r+i.t+1]=1)}t.t>0&&(t.data[t.t-1]+=i.am(r,i.data[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,i,r){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t0?(o.lShiftTo(f,n),s.lShiftTo(f,r)):(o.copyTo(n),s.copyTo(r));var p=n.t,d=n.data[p-1];if(0!=d){var c=d*(1<1?n.data[p-2]>>this.F2:0),l=this.FV/c,v=(1<=0&&(r.data[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(p,g),g.subTo(n,n);n.t=0;){var D=r.data[--y]==d?this.DM:Math.floor(r.data[y]*l+(r.data[y-1]+T)*v);if((r.data[y]+=n.am(0,D,r,b,0,p))0&&r.rShiftTo(f,r),h<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this.data[0];if(0==(1&t))return 0;var i=3&t;return(i=(i=(i=(i=i*(2-(15&t)*i)&15)*(2-(255&t)*i)&255)*(2-((65535&t)*i&65535))&65535)*(2-t*i%this.DV)%this.DV)>0?this.DV-i:-i},e.prototype.isEven=function(){return 0==(this.t>0?1&this.data[0]:this.s)},e.prototype.exp=function(t,i){if(t>4294967295||t<1)return e.ONE;var r=a(),o=a(),s=i.convert(this),n=m(t)-1;for(s.copyTo(r);--n>=0;)if(i.sqrTo(r,o),(t&1<0)i.mulTo(o,s,r);else{var h=r;r=o,o=h}return i.revert(r)},e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var i;if(16==t)i=4;else if(8==t)i=3;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return this.toRadix(t);i=2}var r,o=(1<0)for(n>n)>0&&(s=!0,e=p(r));a>=0;)n>(n+=this.DB-i)):(r=this.data[a]>>(n-=i)&o,n<=0&&(n+=this.DB,--a)),r>0&&(s=!0),s&&(e+=p(r));return s?e:"0"},e.prototype.negate=function(){var t=a();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var i=this.s-t.s;if(0!=i)return i;var r=this.t;if(0!=(i=r-t.t))return this.s<0?-i:i;for(;--r>=0;)if(0!=(i=this.data[r]-t.data[r]))return i;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this.data[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var i=a();return this.abs().divRemTo(t,null,i),this.s<0&&i.compareTo(e.ZERO)>0&&t.subTo(i,i),i},e.prototype.modPowInt=function(t,i){var r;return r=t<256||i.isEven()?new l(i):new v(i),this.exp(t,r)},e.ZERO=c(0),e.ONE=c(1),S.prototype.convert=M,S.prototype.revert=M,S.prototype.mulTo=function(t,i,r){t.multiplyTo(i,r)},S.prototype.sqrTo=function(t,i){t.squareTo(i)},w.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var i=a();return t.copyTo(i),this.reduce(i),i},w.prototype.revert=function(t){return t},w.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},w.prototype.mulTo=function(t,i,r){t.multiplyTo(i,r),this.reduce(r)},w.prototype.sqrTo=function(t,i){t.squareTo(i),this.reduce(i)};var E=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],O=(1<<26)/E[E.length-1];e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var i=this.chunkSize(t),r=Math.pow(t,i),o=c(r),s=a(),e=a(),n="";for(this.divRemTo(o,s,e);s.signum()>0;)n=(r+e.intValue()).toString(t).substr(1)+n,s.divRemTo(o,s,e);return e.intValue().toString(t)+n},e.prototype.fromRadix=function(t,i){this.fromInt(0),null==i&&(i=10);for(var r=this.chunkSize(i),o=Math.pow(i,r),s=!1,a=0,n=0,h=0;h=r&&(this.dMultiply(o),this.dAddOffset(n,0),a=0,n=0))}a>0&&(this.dMultiply(Math.pow(i,a)),this.dAddOffset(n,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,i,r){if("number"==typeof i)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),y,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(i);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var o=new Array,s=7&t;o.length=1+(t>>3),i.nextBytes(o),s>0?o[0]&=(1<>=this.DB;if(t.t>=this.DB;o+=this.s}else{for(o+=this.s;r>=this.DB;o+=t.s}i.s=o<0?-1:0,o>0?i.data[r++]=o:o<-1&&(i.data[r++]=this.DV+o),i.t=r,i.clamp()},e.prototype.dMultiply=function(t){this.data[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,i){if(0!=t){for(;this.t<=i;)this.data[this.t++]=0;for(this.data[i]+=t;this.data[i]>=this.DV;)this.data[i]-=this.DV,++i>=this.t&&(this.data[this.t++]=0),++this.data[i]}},e.prototype.multiplyLowerTo=function(t,i,r){var o,s=Math.min(this.t+t.t,i);for(r.s=0,r.t=s;s>0;)r.data[--s]=0;for(o=r.t-this.t;s=0;)r.data[o]=0;for(o=Math.max(i-this.t,0);o0)if(0==i)r=this.data[0]%t;else for(var o=this.t-1;o>=0;--o)r=(i*r+this.data[o])%t;return r},e.prototype.millerRabin=function(t){var i=this.subtract(e.ONE),r=i.getLowestSetBit();if(r<=0)return!1;for(var o,s=i.shiftRight(r),a={nextBytes:function(t){for(var i=0;i=0);var h=o.modPow(s,this);if(0!=h.compareTo(e.ONE)&&0!=h.compareTo(i)){for(var u=1;u++>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this.data[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,i=new Array;i[0]=this.s;var r,o=this.DB-t*this.DB%8,s=0;if(t-- >0)for(o>o)!=(this.s&this.DM)>>o&&(i[s++]=r|this.s<=0;)o<8?(r=(this.data[t]&(1<>(o+=this.DB-8)):(r=this.data[t]>>(o-=8)&255,o<=0&&(o+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==s&&(128&this.s)!=(128&r)&&++s,(s>0||r!=this.s)&&(i[s++]=r);return i},e.prototype.equals=function(t){return 0==this.compareTo(t)},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var i=a();return this.bitwiseTo(t,T,i),i},e.prototype.or=function(t){var i=a();return this.bitwiseTo(t,y,i),i},e.prototype.xor=function(t){var i=a();return this.bitwiseTo(t,b,i),i},e.prototype.andNot=function(t){var i=a();return this.bitwiseTo(t,g,i),i},e.prototype.not=function(){for(var t=a(),i=0;i=this.t?0!=this.s:0!=(this.data[i]&1<1){var p=a();for(o.sqrTo(n[1],p);h<=f;)n[h]=a(),o.mulTo(p,n[h-2],n[h]),h+=2}var d,T,y=t.t-1,b=!0,g=a();for(s=m(t.data[y])-1;y>=0;){for(s>=u?d=t.data[y]>>s-u&f:(d=(t.data[y]&(1<0&&(d|=t.data[y-1]>>this.DB+s-u)),h=r;0==(1&d);)d>>=1,--h;if((s-=h)<0&&(s+=this.DB,--y),b)n[d].copyTo(e),b=!1;else{for(;h>1;)o.sqrTo(e,g),o.sqrTo(g,e),h-=2;h>0?o.sqrTo(e,g):(T=e,e=g,g=T),o.mulTo(g,n[d],e)}for(;y>=0&&0==(t.data[y]&1<=0?(r.subTo(o,r),i&&s.subTo(n,s),a.subTo(h,a)):(o.subTo(r,o),i&&n.subTo(s,n),h.subTo(a,h))}return 0!=o.compareTo(e.ONE)?e.ZERO:h.compareTo(t)>=0?h.subtract(t):h.signum()<0?(h.addTo(t,h),h.signum()<0?h.add(t):h):h},e.prototype.pow=function(t){return this.exp(t,new S)},e.prototype.gcd=function(t){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var o=i;i=r,r=o}var s=i.getLowestSetBit(),e=r.getLowestSetBit();if(e<0)return i;for(s0&&(i.rShiftTo(e,i),r.rShiftTo(e,r));i.signum()>0;)(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r));return e>0&&r.lShiftTo(e,r),r},e.prototype.isProbablePrime=function(t){var i,r=this.abs();if(1==r.t&&r.data[0]<=E[E.length-1]){for(i=0;i + + + + + + MagicShare + + + +
+ + diff --git a/backend/src/test/java/com/zzhow/magicshare/MagicShareApplicationTests.java b/backend/src/test/java/com/zzhow/magicshare/MagicShareApplicationTests.java new file mode 100755 index 0000000..790acec --- /dev/null +++ b/backend/src/test/java/com/zzhow/magicshare/MagicShareApplicationTests.java @@ -0,0 +1,13 @@ +package com.zzhow.magicshare; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class MagicShareApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/frontend/.editorconfig b/frontend/.editorconfig new file mode 100644 index 0000000..ecea360 --- /dev/null +++ b/frontend/.editorconfig @@ -0,0 +1,6 @@ +[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}] +charset = utf-8 +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..8ee54e8 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json new file mode 100644 index 0000000..17a23d0 --- /dev/null +++ b/frontend/.prettierrc.json @@ -0,0 +1,7 @@ + +{ + "$schema": "https://json.schemastore.org/prettierrc", + "semi": false, + "singleQuote": true, + "printWidth": 100 +} diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..dc78bb7 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,35 @@ +# vue-project + +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Customize configuration + +See [Vite Configuration Reference](https://vite.dev/config/). + +## Project Setup + +```sh +pnpm install +``` + +### Compile and Hot-Reload for Development + +```sh +pnpm dev +``` + +### Compile and Minify for Production + +```sh +pnpm build +``` + +### Lint with [ESLint](https://eslint.org/) + +```sh +pnpm lint +``` diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 0000000..2721ef6 --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,39 @@ +import js from '@eslint/js' +import pluginVue from 'eslint-plugin-vue' +import skipFormatting from '@vue/eslint-config-prettier/skip-formatting' + +export default [ + { + name: 'app/files-to-lint', + files: ['**/*.{js,mjs,jsx,vue}'], + rules: { + 'prettier/prettier': [ + 'warn', + { + singleQuote: true, // 单引号 + semi: false, // 无分号 + printWidth: 80, // 每行宽度至多80字符 + trailingComma: 'none', // 不加对象|数组最后逗号 + endOfLine: 'auto', // 换行符号不限制(win mac 不一致) + }, + ], + 'vue/multi-word-component-names': [ + 'warn', + { + ignores: ['index'], // vue 组件名称多单词组成(忽略index.vue) + }, + ], + 'vue/no-setup-props-destructure': ['off'], // 关闭 props 解构的校验 + 'no-undef': 'error', + }, + }, + + { + name: 'app/files-to-ignore', + ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], + }, + + js.configs.recommended, + ...pluginVue.configs['flat/essential'], + skipFormatting, +] diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..4f4af46 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,13 @@ + + + + + + + MagicShare + + +
+ + + diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json new file mode 100644 index 0000000..5a1f2d2 --- /dev/null +++ b/frontend/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": ["node_modules", "dist"] +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..4b59b96 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,36 @@ +{ + "name": "magic-share", + "version": "1.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "lint": "eslint . --fix", + "format": "prettier --write src/" + }, + "dependencies": { + "@stomp/stompjs": "^7.0.0", + "ant-design-vue": "4.x", + "axios": "^1.7.9", + "node-forge": "^1.3.1", + "pinia": "^2.3.0", + "scss": "^0.2.4", + "sockjs-client": "^1.6.1", + "vue": "^3.5.13", + "vue-router": "^4.5.0" + }, + "devDependencies": { + "@eslint/js": "^9.14.0", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/eslint-config-prettier": "^10.1.0", + "eslint": "^9.14.0", + "eslint-plugin-vue": "^9.30.0", + "prettier": "^3.3.3", + "sass-embedded": "^1.83.4", + "unplugin-vue-components": "^28.0.0", + "vite": "^6.0.5", + "vite-plugin-vue-devtools": "^7.6.8" + } +} diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml new file mode 100644 index 0000000..d6f1159 --- /dev/null +++ b/frontend/pnpm-lock.yaml @@ -0,0 +1,3563 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@stomp/stompjs': + specifier: ^7.0.0 + version: 7.0.0 + ant-design-vue: + specifier: 4.x + version: 4.2.6(vue@3.5.13) + axios: + specifier: ^1.7.9 + version: 1.7.9 + node-forge: + specifier: ^1.3.1 + version: 1.3.1 + pinia: + specifier: ^2.3.0 + version: 2.3.0(vue@3.5.13) + scss: + specifier: ^0.2.4 + version: 0.2.4 + sockjs-client: + specifier: ^1.6.1 + version: 1.6.1 + vue: + specifier: ^3.5.13 + version: 3.5.13 + vue-router: + specifier: ^4.5.0 + version: 4.5.0(vue@3.5.13) + devDependencies: + '@eslint/js': + specifier: ^9.14.0 + version: 9.18.0 + '@vitejs/plugin-vue': + specifier: ^5.2.1 + version: 5.2.1(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13) + '@vue/eslint-config-prettier': + specifier: ^10.1.0 + version: 10.1.0(eslint@9.18.0)(prettier@3.4.2) + eslint: + specifier: ^9.14.0 + version: 9.18.0 + eslint-plugin-vue: + specifier: ^9.30.0 + version: 9.32.0(eslint@9.18.0) + prettier: + specifier: ^3.3.3 + version: 3.4.2 + sass-embedded: + specifier: ^1.83.4 + version: 1.83.4 + unplugin-vue-components: + specifier: ^28.0.0 + version: 28.0.0(@babel/parser@7.26.5)(rollup@4.30.1)(vue@3.5.13) + vite: + specifier: ^6.0.5 + version: 6.0.7(sass-embedded@1.83.4) + vite-plugin-vue-devtools: + specifier: ^7.6.8 + version: 7.7.0(rollup@4.30.1)(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@ant-design/colors@6.0.0': + resolution: {integrity: sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==} + + '@ant-design/icons-svg@4.4.2': + resolution: {integrity: sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==} + + '@ant-design/icons-vue@7.0.1': + resolution: {integrity: sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==} + peerDependencies: + vue: '>=3.0.3' + + '@antfu/utils@0.7.10': + resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} + + '@babel/code-frame@7.26.2': + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.26.5': + resolution: {integrity: sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.26.0': + resolution: {integrity: sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.26.5': + resolution: {integrity: sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-annotate-as-pure@7.25.9': + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.26.5': + resolution: {integrity: sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-create-class-features-plugin@7.25.9': + resolution: {integrity: sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-member-expression-to-functions@7.25.9': + resolution: {integrity: sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.25.9': + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.26.0': + resolution: {integrity: sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-optimise-call-expression@7.25.9': + resolution: {integrity: sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-plugin-utils@7.26.5': + resolution: {integrity: sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-replace-supers@7.26.5': + resolution: {integrity: sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-skip-transparent-expression-wrappers@7.25.9': + resolution: {integrity: sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.25.9': + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.25.9': + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.25.9': + resolution: {integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.26.0': + resolution: {integrity: sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.26.5': + resolution: {integrity: sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-proposal-decorators@7.25.9': + resolution: {integrity: sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-decorators@7.25.9': + resolution: {integrity: sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-import-attributes@7.26.0': + resolution: {integrity: sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-import-meta@7.10.4': + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-jsx@7.25.9': + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-typescript@7.25.9': + resolution: {integrity: sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-typescript@7.26.5': + resolution: {integrity: sha512-GJhPO0y8SD5EYVCy2Zr+9dSZcEgaSmq5BLR0Oc25TOEhC+ba49vUAGZFjy8v79z9E1mdldq4x9d1xgh4L1d5dQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/runtime@7.26.0': + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} + engines: {node: '>=6.9.0'} + + '@babel/template@7.25.9': + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.26.5': + resolution: {integrity: sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.26.5': + resolution: {integrity: sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg==} + engines: {node: '>=6.9.0'} + + '@bufbuild/protobuf@2.2.3': + resolution: {integrity: sha512-tFQoXHJdkEOSwj5tRIZSPNUuXK3RaR7T1nUrPgbYX1pUbvqqaaZAsfo+NXBPsz5rZMSKVFrgK1WL8Q/MSLvprg==} + + '@ctrl/tinycolor@3.6.1': + resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==} + engines: {node: '>=10'} + + '@emotion/hash@0.9.2': + resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==} + + '@emotion/unitless@0.8.1': + resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} + + '@esbuild/aix-ppc64@0.24.2': + resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.24.2': + resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.24.2': + resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.24.2': + resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.24.2': + resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.24.2': + resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.24.2': + resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.24.2': + resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.24.2': + resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.24.2': + resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.24.2': + resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.24.2': + resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.24.2': + resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.24.2': + resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.24.2': + resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.24.2': + resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.24.2': + resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.24.2': + resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.24.2': + resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.24.2': + resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.24.2': + resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.24.2': + resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.24.2': + resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.24.2': + resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.24.2': + resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.4.1': + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.1': + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/config-array@0.19.1': + resolution: {integrity: sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/core@0.10.0': + resolution: {integrity: sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/eslintrc@3.2.0': + resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/js@9.18.0': + resolution: {integrity: sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.5': + resolution: {integrity: sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/plugin-kit@0.2.5': + resolution: {integrity: sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@humanfs/core@0.19.1': + resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} + engines: {node: '>=18.18.0'} + + '@humanfs/node@0.16.6': + resolution: {integrity: sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==} + engines: {node: '>=18.18.0'} + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/retry@0.3.1': + resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==} + engines: {node: '>=18.18'} + + '@humanwhocodes/retry@0.4.1': + resolution: {integrity: sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==} + engines: {node: '>=18.18'} + + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + + '@polka/url@1.0.0-next.28': + resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} + + '@rollup/pluginutils@5.1.4': + resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.30.1': + resolution: {integrity: sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.30.1': + resolution: {integrity: sha512-/NA2qXxE3D/BRjOJM8wQblmArQq1YoBVJjrjoTSBS09jgUisq7bqxNHJ8kjCHeV21W/9WDGwJEWSN0KQ2mtD/w==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.30.1': + resolution: {integrity: sha512-r7FQIXD7gB0WJ5mokTUgUWPl0eYIH0wnxqeSAhuIwvnnpjdVB8cRRClyKLQr7lgzjctkbp5KmswWszlwYln03Q==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.30.1': + resolution: {integrity: sha512-x78BavIwSH6sqfP2xeI1hd1GpHL8J4W2BXcVM/5KYKoAD3nNsfitQhvWSw+TFtQTLZ9OmlF+FEInEHyubut2OA==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.30.1': + resolution: {integrity: sha512-HYTlUAjbO1z8ywxsDFWADfTRfTIIy/oUlfIDmlHYmjUP2QRDTzBuWXc9O4CXM+bo9qfiCclmHk1x4ogBjOUpUQ==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.30.1': + resolution: {integrity: sha512-1MEdGqogQLccphhX5myCJqeGNYTNcmTyaic9S7CG3JhwuIByJ7J05vGbZxsizQthP1xpVx7kd3o31eOogfEirw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.30.1': + resolution: {integrity: sha512-PaMRNBSqCx7K3Wc9QZkFx5+CX27WFpAMxJNiYGAXfmMIKC7jstlr32UhTgK6T07OtqR+wYlWm9IxzennjnvdJg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.30.1': + resolution: {integrity: sha512-B8Rcyj9AV7ZlEFqvB5BubG5iO6ANDsRKlhIxySXcF1axXYUyqwBok+XZPgIYGBgs7LDXfWfifxhw0Ik57T0Yug==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.30.1': + resolution: {integrity: sha512-hqVyueGxAj3cBKrAI4aFHLV+h0Lv5VgWZs9CUGqr1z0fZtlADVV1YPOij6AhcK5An33EXaxnDLmJdQikcn5NEw==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.30.1': + resolution: {integrity: sha512-i4Ab2vnvS1AE1PyOIGp2kXni69gU2DAUVt6FSXeIqUCPIR3ZlheMW3oP2JkukDfu3PsexYRbOiJrY+yVNSk9oA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.30.1': + resolution: {integrity: sha512-fARcF5g296snX0oLGkVxPmysetwUk2zmHcca+e9ObOovBR++9ZPOhqFUM61UUZ2EYpXVPN1redgqVoBB34nTpQ==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.30.1': + resolution: {integrity: sha512-GLrZraoO3wVT4uFXh67ElpwQY0DIygxdv0BNW9Hkm3X34wu+BkqrDrkcsIapAY+N2ATEbvak0XQ9gxZtCIA5Rw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.30.1': + resolution: {integrity: sha512-0WKLaAUUHKBtll0wvOmh6yh3S0wSU9+yas923JIChfxOaaBarmb/lBKPF0w/+jTVozFnOXJeRGZ8NvOxvk/jcw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.30.1': + resolution: {integrity: sha512-GWFs97Ruxo5Bt+cvVTQkOJ6TIx0xJDD/bMAOXWJg8TCSTEK8RnFeOeiFTxKniTc4vMIaWvCplMAFBt9miGxgkA==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.30.1': + resolution: {integrity: sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.30.1': + resolution: {integrity: sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.30.1': + resolution: {integrity: sha512-WabtHWiPaFF47W3PkHnjbmWawnX/aE57K47ZDT1BXTS5GgrBUEpvOzq0FI0V/UYzQJgdb8XlhVNH8/fwV8xDjw==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.30.1': + resolution: {integrity: sha512-pxHAU+Zv39hLUTdQQHUVHf4P+0C47y/ZloorHpzs2SXMRqeAWmGghzAhfOlzFHHwjvgokdFAhC4V+6kC1lRRfw==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.30.1': + resolution: {integrity: sha512-D6qjsXGcvhTjv0kI4fU8tUuBDF/Ueee4SVX79VfNDXZa64TfCW1Slkb6Z7O1p7vflqZjcmOVdZlqf8gvJxc6og==} + cpu: [x64] + os: [win32] + + '@sec-ant/readable-stream@0.4.1': + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + + '@simonwep/pickr@1.8.2': + resolution: {integrity: sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==} + + '@sindresorhus/merge-streams@4.0.0': + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + + '@stomp/stompjs@7.0.0': + resolution: {integrity: sha512-fGdq4wPDnSV/KyOsjq4P+zLc8MFWC3lMmP5FBgLWKPJTYcuCbAIrnRGjB7q2jHZdYCOD5vxLuFoKIYLy5/u8Pw==} + + '@types/estree@1.0.6': + resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@vitejs/plugin-vue@5.2.1': + resolution: {integrity: sha512-cxh314tzaWwOLqVes2gnnCtvBDcM1UMdn+iFR+UjAn411dPT3tOmqrJjbMd7koZpMAmBM/GqeV4n9ge7JSiJJQ==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + vite: ^5.0.0 || ^6.0.0 + vue: ^3.2.25 + + '@vue/babel-helper-vue-transform-on@1.2.5': + resolution: {integrity: sha512-lOz4t39ZdmU4DJAa2hwPYmKc8EsuGa2U0L9KaZaOJUt0UwQNjNA3AZTq6uEivhOKhhG1Wvy96SvYBoFmCg3uuw==} + + '@vue/babel-plugin-jsx@1.2.5': + resolution: {integrity: sha512-zTrNmOd4939H9KsRIGmmzn3q2zvv1mjxkYZHgqHZgDrXz5B1Q3WyGEjO2f+JrmKghvl1JIRcvo63LgM1kH5zFg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + peerDependenciesMeta: + '@babel/core': + optional: true + + '@vue/babel-plugin-resolve-type@1.2.5': + resolution: {integrity: sha512-U/ibkQrf5sx0XXRnUZD1mo5F7PkpKyTbfXM3a3rC4YnUz6crHEz9Jg09jzzL6QYlXNto/9CePdOg/c87O4Nlfg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@vue/compiler-core@3.5.13': + resolution: {integrity: sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==} + + '@vue/compiler-dom@3.5.13': + resolution: {integrity: sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==} + + '@vue/compiler-sfc@3.5.13': + resolution: {integrity: sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==} + + '@vue/compiler-ssr@3.5.13': + resolution: {integrity: sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==} + + '@vue/devtools-api@6.6.4': + resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} + + '@vue/devtools-core@7.7.0': + resolution: {integrity: sha512-tSO3pghV5RZGSonZ87S2fOGru3X93epmar5IjZOWjHxH6XSwnK5UbR2aW5puZV+LgLoVYrcNou3krSo5k1F31g==} + peerDependencies: + vue: ^3.0.0 + + '@vue/devtools-kit@7.7.0': + resolution: {integrity: sha512-5cvZ+6SA88zKC8XiuxUfqpdTwVjJbvYnQZY5NReh7qlSGPvVDjjzyEtW+gdzLXNSd8tStgOjAdMCpvDQamUXtA==} + + '@vue/devtools-shared@7.7.0': + resolution: {integrity: sha512-jtlQY26R5thQxW9YQTpXbI0HoK0Wf9Rd4ekidOkRvSy7ChfK0kIU6vvcBtjj87/EcpeOSK49fZAicaFNJcoTcQ==} + + '@vue/eslint-config-prettier@10.1.0': + resolution: {integrity: sha512-J6wV91y2pXc0Phha01k0WOHBTPsoSTf4xlmMjoKaeSxBpAdsgTppGF5RZRdOHM7OA74zAXD+VLANrtYXpiPKkQ==} + peerDependencies: + eslint: '>= 8.21.0' + prettier: '>= 3.0.0' + + '@vue/reactivity@3.5.13': + resolution: {integrity: sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==} + + '@vue/runtime-core@3.5.13': + resolution: {integrity: sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==} + + '@vue/runtime-dom@3.5.13': + resolution: {integrity: sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==} + + '@vue/server-renderer@3.5.13': + resolution: {integrity: sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==} + peerDependencies: + vue: 3.5.13 + + '@vue/shared@3.5.13': + resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==} + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ant-design-vue@4.2.6: + resolution: {integrity: sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==} + engines: {node: '>=12.22.0'} + peerDependencies: + vue: '>=3.2.0' + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-tree-filter@2.1.0: + resolution: {integrity: sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==} + + async-validator@4.2.5: + resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + axios@1.7.9: + resolution: {integrity: sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + birpc@0.2.19: + resolution: {integrity: sha512-5WeXXAvTmitV1RqJFppT5QtUiz2p1mRSYU000Jkft5ZUCLJIk4uQriYNO50HknxKwM6jd8utNc66K1qGIwwWBQ==} + + boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browserslist@4.24.4: + resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + buffer-builder@0.2.0: + resolution: {integrity: sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==} + + bundle-name@4.1.0: + resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + engines: {node: '>=18'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + caniuse-lite@1.0.30001692: + resolution: {integrity: sha512-A95VKan0kdtrsnMubMKxEKUKImOPSuCpYgxSQBo036P5YYgVIcOYJEgt/txJWqObiRQeISNCfef9nvlQ0vbV7A==} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorjs.io@0.5.2: + resolution: {integrity: sha512-twmVoizEW7ylZSN32OgKdXRmo1qg+wT5/6C3xu5b9QsWzSFAhHLn2xd8ro0diCsKfCj1RdaTP/nrcW+vAoQPIw==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + compute-scroll-into-view@1.0.20: + resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + confbox@0.1.8: + resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + copy-anything@3.0.5: + resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==} + engines: {node: '>=12.13'} + + core-js@3.40.0: + resolution: {integrity: sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + dayjs@1.11.13: + resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} + + debug@3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + default-browser-id@5.0.0: + resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} + engines: {node: '>=18'} + + default-browser@5.2.1: + resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + dom-align@1.12.4: + resolution: {integrity: sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==} + + dom-scroll-into-view@2.0.1: + resolution: {integrity: sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==} + + electron-to-chromium@1.5.80: + resolution: {integrity: sha512-LTrKpW0AqIuHwmlVNV+cjFYTnXtM9K37OGhpe0ZI10ScPSxqVSryZHIY3WnCS5NSYbBODRTZyhRMS2h5FAEqAw==} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + error-stack-parser-es@0.1.5: + resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} + + esbuild@0.24.2: + resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-config-prettier@9.1.0: + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + + eslint-plugin-prettier@5.2.1: + resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + '@types/eslint': '>=8.0.0' + eslint: '>=8.0.0' + eslint-config-prettier: '*' + prettier: '>=3.0.0' + peerDependenciesMeta: + '@types/eslint': + optional: true + eslint-config-prettier: + optional: true + + eslint-plugin-vue@9.32.0: + resolution: {integrity: sha512-b/Y05HYmnB/32wqVcjxjHZzNpwxj1onBOvqW89W+V+XNG1dRuaFbNd3vT9CLbr2LXjEoq+3vn8DanWf7XU22Ug==} + engines: {node: ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 + + eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-scope@8.2.0: + resolution: {integrity: sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@4.2.0: + resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.18.0: + resolution: {integrity: sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true + + espree@10.3.0: + resolution: {integrity: sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + eventsource@2.0.2: + resolution: {integrity: sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA==} + engines: {node: '>=12.0.0'} + + execa@9.5.2: + resolution: {integrity: sha512-EHlpxMCpHWSAh1dgS6bVeoLAXGnJNdR93aabr4QCGbzOM73o5XmRfM/e5FUqsw3aagP8S8XEWUWFAxnRBnAF0Q==} + engines: {node: ^18.19.0 || >=20.5.0} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fastq@1.18.0: + resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==} + + faye-websocket@0.11.4: + resolution: {integrity: sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==} + engines: {node: '>=0.8.0'} + + figures@6.1.0: + resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} + engines: {node: '>=18'} + + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} + + flatted@3.3.2: + resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} + + follow-redirects@1.15.9: + resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + + form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} + engines: {node: '>= 6'} + + fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} + engines: {node: '>=14.14'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + + globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hookable@5.5.3: + resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + + html-tags@3.3.1: + resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==} + engines: {node: '>=8'} + + http-parser-js@0.5.9: + resolution: {integrity: sha512-n1XsPy3rXVxlqxVioEWdC+0+M+SQw0DpJynwtOPo1X+ZlvdzTLtDBIJJlDQTnwZIFJrZSzSGmIOUdP8tu+SgLw==} + + human-signals@8.0.0: + resolution: {integrity: sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==} + engines: {node: '>=18.18.0'} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + immutable@5.0.3: + resolution: {integrity: sha512-P8IdPQHq3lA1xVeBRi5VPqUm5HDgKnx0Ru51wZz5mjxHr5n3RWhjIpOFU7ybkUxfB+5IToy+OLaHYDBIWsv+uw==} + + import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + + is-plain-object@3.0.1: + resolution: {integrity: sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==} + engines: {node: '>=0.10.0'} + + is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-what@4.1.16: + resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==} + engines: {node: '>=12.13'} + + is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + kolorist@1.8.0: + resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + local-pkg@0.5.1: + resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==} + engines: {node: '>=14'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash-es@4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + + mlly@1.7.4: + resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==} + + mrmime@2.0.0: + resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} + engines: {node: '>=10'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.8: + resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + nanoid@5.0.9: + resolution: {integrity: sha512-Aooyr6MXU6HpvvWXKoVoXwKMs/KyVakWwg7xQfv5/S/RIgJMy0Ifa45H9qqYy7pTCszrHzP21Uk4PZq2HpEM8Q==} + engines: {node: ^18 || >=20} + hasBin: true + + nanopop@2.4.2: + resolution: {integrity: sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==} + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + node-forge@1.3.1: + resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} + engines: {node: '>= 6.13.0'} + + node-releases@2.0.19: + resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@6.0.0: + resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} + engines: {node: '>=18'} + + nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + + ometa@0.2.2: + resolution: {integrity: sha512-LZuoK/yjU3FvrxPjUXUlZ1bavCfBPqauA7fsNdwi+AVhRdyk2IzgP3JRnevvjzQ6fKHdUw8YISshf53FmpHrng==} + engines: {node: '>= 0.2.0'} + + open@10.1.0: + resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} + engines: {node: '>=18'} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + parse-ms@4.0.0: + resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} + engines: {node: '>=18'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + + pathe@2.0.1: + resolution: {integrity: sha512-6jpjMpOth5S9ITVu5clZ7NOgHNsv5vRQdheL9ztp2vZmM6fRbLvyua1tiBIL4lk8SAe3ARzeXEly6siXCjDHDw==} + + perfect-debounce@1.0.0: + resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + pinia@2.3.0: + resolution: {integrity: sha512-ohZj3jla0LL0OH5PlLTDMzqKiVw2XARmC1XYLdLWIPBMdhDW/123ZWr4zVAhtJm+aoSkFa13pYXskAvAscIkhQ==} + peerDependencies: + typescript: '>=4.4.4' + vue: ^2.7.0 || ^3.5.11 + peerDependenciesMeta: + typescript: + optional: true + + pkg-types@1.3.0: + resolution: {integrity: sha512-kS7yWjVFCkIw9hqdJBoMxDdzEngmkr5FXeWZZfQ6GoYacjVnsW6l2CcYW/0ThD0vF4LPJgVYnrg4d0uuhwYQbg==} + + postcss-selector-parser@6.1.2: + resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==} + engines: {node: '>=4'} + + postcss@8.5.0: + resolution: {integrity: sha512-27VKOqrYfPncKA2NrFOVhP5MGAfHKLYn/Q0mz9cNQyRAKYi3VNHwYU2qKKqPCqgBmeeJ0uAFB56NumXZ5ZReXg==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + + prettier@3.4.2: + resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==} + engines: {node: '>=14'} + hasBin: true + + pretty-ms@9.2.0: + resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==} + engines: {node: '>=18'} + + proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + querystringify@2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + + requires-port@1.0.0: + resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + + resize-observer-polyfill@1.5.1: + resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rfdc@1.4.1: + resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} + + rollup@4.30.1: + resolution: {integrity: sha512-mlJ4glW020fPuLi7DkM/lN97mYEZGWeqBnrljzN0gs7GLctqX3lNWxKQ7Gl712UAX+6fog/L3jh4gb7R6aVi3w==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + run-applescript@7.0.0: + resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} + engines: {node: '>=18'} + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + rxjs@7.8.1: + resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + sass-embedded-android-arm64@1.83.4: + resolution: {integrity: sha512-tgX4FzmbVqnQmD67ZxQDvI+qFNABrboOQgwsG05E5bA/US42zGajW9AxpECJYiMXVOHmg+d81ICbjb0fsVHskw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [android] + + sass-embedded-android-arm@1.83.4: + resolution: {integrity: sha512-9Z4pJAOgEkXa3VDY/o+U6l5XvV0mZTJcSl0l/mSPHihjAHSpLYnOW6+KOWeM8dxqrsqTYcd6COzhanI/a++5Gw==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [android] + + sass-embedded-android-ia32@1.83.4: + resolution: {integrity: sha512-RsFOziFqPcfZXdFRULC4Ayzy9aK6R6FwQ411broCjlOBX+b0gurjRadkue3cfUEUR5mmy0KeCbp7zVKPLTK+5Q==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [android] + + sass-embedded-android-riscv64@1.83.4: + resolution: {integrity: sha512-EHwh0nmQarBBrMRU928eTZkFGx19k/XW2YwbPR4gBVdWLkbTgCA5aGe8hTE6/1zStyx++3nDGvTZ78+b/VvvLg==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [android] + + sass-embedded-android-x64@1.83.4: + resolution: {integrity: sha512-0PgQNuPWYy1jEOEPDVsV89KfqOsMLIp9CSbjBY7jRcwRhyVAcigqrUG6bDeNtojHUYKA1kU+Eh/85WxOHUOgBw==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [android] + + sass-embedded-darwin-arm64@1.83.4: + resolution: {integrity: sha512-rp2ywymWc3nymnSnAFG5R/8hvxWCsuhK3wOnD10IDlmNB7o4rzKby1c+2ZfpQGowlYGWsWWTgz8FW2qzmZsQRw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [darwin] + + sass-embedded-darwin-x64@1.83.4: + resolution: {integrity: sha512-kLkN2lXz9PCgGfDS8Ev5YVcl/V2173L6379en/CaFuJJi7WiyPgBymW7hOmfCt4uO4R1y7CP2Uc08DRtZsBlAA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [darwin] + + sass-embedded-linux-arm64@1.83.4: + resolution: {integrity: sha512-E0zjsZX2HgESwyqw31EHtI39DKa7RgK7nvIhIRco1d0QEw227WnoR9pjH3M/ZQy4gQj3GKilOFHM5Krs/omeIA==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + + sass-embedded-linux-arm@1.83.4: + resolution: {integrity: sha512-nL90ryxX2lNmFucr9jYUyHHx21AoAgdCL1O5Ltx2rKg2xTdytAGHYo2MT5S0LIeKLa/yKP/hjuSvrbICYNDvtA==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + + sass-embedded-linux-ia32@1.83.4: + resolution: {integrity: sha512-ew5HpchSzgAYbQoriRh8QhlWn5Kw2nQ2jHoV9YLwGKe3fwwOWA0KDedssvDv7FWnY/FCqXyymhLd6Bxae4Xquw==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [linux] + + sass-embedded-linux-musl-arm64@1.83.4: + resolution: {integrity: sha512-IzMgalf6MZOxgp4AVCgsaWAFDP/IVWOrgVXxkyhw29fyAEoSWBJH4k87wyPhEtxSuzVHLxKNbc8k3UzdWmlBFg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + + sass-embedded-linux-musl-arm@1.83.4: + resolution: {integrity: sha512-0RrJRwMrmm+gG0VOB5b5Cjs7Sd+lhqpQJa6EJNEaZHljJokEfpE5GejZsGMRMIQLxEvVphZnnxl6sonCGFE/QQ==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + + sass-embedded-linux-musl-ia32@1.83.4: + resolution: {integrity: sha512-LLb4lYbcxPzX4UaJymYXC+WwokxUlfTJEFUv5VF0OTuSsHAGNRs/rslPtzVBTvMeG9TtlOQDhku1F7G6iaDotA==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [linux] + + sass-embedded-linux-musl-riscv64@1.83.4: + resolution: {integrity: sha512-zoKlPzD5Z13HKin1UGR74QkEy+kZEk2AkGX5RelRG494mi+IWwRuWCppXIovor9+BQb9eDWPYPoMVahwN5F7VA==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [linux] + + sass-embedded-linux-musl-x64@1.83.4: + resolution: {integrity: sha512-hB8+/PYhfEf2zTIcidO5Bpof9trK6WJjZ4T8g2MrxQh8REVtdPcgIkoxczRynqybf9+fbqbUwzXtiUao2GV+vQ==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + + sass-embedded-linux-riscv64@1.83.4: + resolution: {integrity: sha512-83fL4n+oeDJ0Y4KjASmZ9jHS1Vl9ESVQYHMhJE0i4xDi/P3BNarm2rsKljq/QtrwGpbqwn8ujzOu7DsNCMDSHA==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [linux] + + sass-embedded-linux-x64@1.83.4: + resolution: {integrity: sha512-NlnGdvCmTD5PK+LKXlK3sAuxOgbRIEoZfnHvxd157imCm/s2SYF/R28D0DAAjEViyI8DovIWghgbcqwuertXsA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + + sass-embedded-win32-arm64@1.83.4: + resolution: {integrity: sha512-J2BFKrEaeSrVazU2qTjyQdAk+MvbzJeTuCET0uAJEXSKtvQ3AzxvzndS7LqkDPbF32eXAHLw8GVpwcBwKbB3Uw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [win32] + + sass-embedded-win32-ia32@1.83.4: + resolution: {integrity: sha512-uPAe9T/5sANFhJS5dcfAOhOJy8/l2TRYG4r+UO3Wp4yhqbN7bggPvY9c7zMYS0OC8tU/bCvfYUDFHYMCl91FgA==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [win32] + + sass-embedded-win32-x64@1.83.4: + resolution: {integrity: sha512-C9fkDY0jKITdJFij4UbfPFswxoXN9O/Dr79v17fJnstVwtUojzVJWKHUXvF0Zg2LIR7TCc4ju3adejKFxj7ueA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [win32] + + sass-embedded@1.83.4: + resolution: {integrity: sha512-Hf2burRA/y5PGxsg6jB9UpoK/xZ6g/pgrkOcdl6j+rRg1Zj8XhGKZ1MTysZGtTPUUmiiErqzkP5+Kzp95yv9GQ==} + engines: {node: '>=16.0.0'} + hasBin: true + + scroll-into-view-if-needed@2.2.31: + resolution: {integrity: sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==} + + scss@0.2.4: + resolution: {integrity: sha512-4u8V87F+Q/upVhUmhPnB4C1R11xojkRkWjExL2v0CX2EXTg18VrKd+9JWoeyCp2VEMdSpJsyAvVU+rVjogh51A==} + engines: {node: '>= 0.2.0'} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + + shallow-equal@1.2.1: + resolution: {integrity: sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + sirv@3.0.0: + resolution: {integrity: sha512-BPwJGUeDaDCHihkORDchNyyTvWFhcusy1XMmhEVTQTwGeybFbp8YEmB+njbPnth1FibULBSBVwCQni25XlCUDg==} + engines: {node: '>=18'} + + sockjs-client@1.6.1: + resolution: {integrity: sha512-2g0tjOR+fRs0amxENLi/q5TiJTqY+WXFOzb5UwXndlK6TO3U/mirZznpx6w34HVMoc3g7cY24yC/ZMIYnDlfkw==} + engines: {node: '>=12'} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + speakingurl@14.0.1: + resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} + engines: {node: '>=0.10.0'} + + strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + stylis@4.3.5: + resolution: {integrity: sha512-K7npNOKGRYuhAFFzkzMGfxFDpN6gDwf8hcMiE+uveTVbBgm93HrNP3ZDUpKqzZ4pG7TP6fmb+EMAQPjq9FqqvA==} + + superjson@2.2.2: + resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==} + engines: {node: '>=16'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + svg-tags@1.0.0: + resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==} + + sync-child-process@1.0.2: + resolution: {integrity: sha512-8lD+t2KrrScJ/7KXCSyfhT3/hRq78rC0wBFqNJXv3mZyn6hW2ypM05JmlSvtqRbeq6jqA94oHbxAr2vYsJ8vDA==} + engines: {node: '>=16.0.0'} + + sync-message-port@1.1.3: + resolution: {integrity: sha512-GTt8rSKje5FilG+wEdfCkOcLL7LWqpMlr2c3LRuKt/YXxcJ52aGSbGBAdI4L3aaqfrBt6y711El53ItyH1NWzg==} + engines: {node: '>=16.0.0'} + + synckit@0.9.2: + resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==} + engines: {node: ^14.18.0 || >=16.0.0} + + throttle-debounce@5.0.2: + resolution: {integrity: sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==} + engines: {node: '>=12.22'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + + ufo@1.5.4: + resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} + + unicorn-magic@0.3.0: + resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} + engines: {node: '>=18'} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + unplugin-vue-components@28.0.0: + resolution: {integrity: sha512-vYe0wSyqTVhyNFIad1iiGyQGhG++tDOMgohqenMDOAooMJP9vvzCdXTqCVx20A0rCQXFNjgoRbSeDAioLPH36Q==} + engines: {node: '>=14'} + peerDependencies: + '@babel/parser': ^7.15.8 + '@nuxt/kit': ^3.2.2 + vue: 2 || 3 + peerDependenciesMeta: + '@babel/parser': + optional: true + '@nuxt/kit': + optional: true + + unplugin@2.1.2: + resolution: {integrity: sha512-Q3LU0e4zxKfRko1wMV2HmP8lB9KWislY7hxXpxd+lGx0PRInE4vhMBVEZwpdVYHvtqzhSrzuIfErsob6bQfCzw==} + engines: {node: '>=18.12.0'} + + update-browserslist-db@1.1.2: + resolution: {integrity: sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + url-parse@1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + varint@6.0.0: + resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} + + vite-hot-client@0.2.4: + resolution: {integrity: sha512-a1nzURqO7DDmnXqabFOliz908FRmIppkBKsJthS8rbe8hBEXwEwe4C3Pp33Z1JoFCYfVL4kTOMLKk0ZZxREIeA==} + peerDependencies: + vite: ^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 + + vite-plugin-inspect@0.8.9: + resolution: {integrity: sha512-22/8qn+LYonzibb1VeFZmISdVao5kC22jmEKm24vfFE8siEn47EpVcCLYMv6iKOYMJfjSvSJfueOwcFCkUnV3A==} + engines: {node: '>=14'} + peerDependencies: + '@nuxt/kit': '*' + vite: ^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1 + peerDependenciesMeta: + '@nuxt/kit': + optional: true + + vite-plugin-vue-devtools@7.7.0: + resolution: {integrity: sha512-1dWiREwIl4JELwXGHXih80hIgjcViMcZGr3j0edo6NQ9kNzAOxMIUgFqc/TO1ary4ZroJUxoB0YDI6jnDf13iQ==} + engines: {node: '>=v14.21.3'} + peerDependencies: + vite: ^3.1.0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0 + + vite-plugin-vue-inspector@5.3.1: + resolution: {integrity: sha512-cBk172kZKTdvGpJuzCCLg8lJ909wopwsu3Ve9FsL1XsnLBiRT9U3MePcqrgGHgCX2ZgkqZmAGR8taxw+TV6s7A==} + peerDependencies: + vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0 + + vite@6.0.7: + resolution: {integrity: sha512-RDt8r/7qx9940f8FcOIAH9PTViRrghKaK2K1jY3RaAURrEUbm9Du1mJ72G+jlhtG3WwodnfzY8ORQZbBavZEAQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vue-demi@0.14.10: + resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} + engines: {node: '>=12'} + hasBin: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + + vue-eslint-parser@9.4.3: + resolution: {integrity: sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==} + engines: {node: ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '>=6.0.0' + + vue-router@4.5.0: + resolution: {integrity: sha512-HDuk+PuH5monfNuY+ct49mNmkCRK4xJAV9Ts4z9UFc4rzdDnxQLyCMGGc8pKhZhHTVzfanpNwB/lwqevcBwI4w==} + peerDependencies: + vue: ^3.2.0 + + vue-types@3.0.2: + resolution: {integrity: sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==} + engines: {node: '>=10.15.0'} + peerDependencies: + vue: ^3.0.0 + + vue@3.5.13: + resolution: {integrity: sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + warning@4.0.3: + resolution: {integrity: sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==} + + webpack-virtual-modules@0.6.2: + resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} + + websocket-driver@0.7.4: + resolution: {integrity: sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==} + engines: {node: '>=0.8.0'} + + websocket-extensions@0.1.4: + resolution: {integrity: sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==} + engines: {node: '>=0.8.0'} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + xml-name-validator@4.0.0: + resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} + engines: {node: '>=12'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + yoctocolors@2.1.1: + resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==} + engines: {node: '>=18'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + + '@ant-design/colors@6.0.0': + dependencies: + '@ctrl/tinycolor': 3.6.1 + + '@ant-design/icons-svg@4.4.2': {} + + '@ant-design/icons-vue@7.0.1(vue@3.5.13)': + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons-svg': 4.4.2 + vue: 3.5.13 + + '@antfu/utils@0.7.10': {} + + '@babel/code-frame@7.26.2': + dependencies: + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.26.5': {} + + '@babel/core@7.26.0': + dependencies: + '@ampproject/remapping': 2.3.0 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.5 + '@babel/helper-compilation-targets': 7.26.5 + '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.0) + '@babel/helpers': 7.26.0 + '@babel/parser': 7.26.5 + '@babel/template': 7.25.9 + '@babel/traverse': 7.26.5 + '@babel/types': 7.26.5 + convert-source-map: 2.0.0 + debug: 4.4.0 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.26.5': + dependencies: + '@babel/parser': 7.26.5 + '@babel/types': 7.26.5 + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 3.1.0 + + '@babel/helper-annotate-as-pure@7.25.9': + dependencies: + '@babel/types': 7.26.5 + + '@babel/helper-compilation-targets@7.26.5': + dependencies: + '@babel/compat-data': 7.26.5 + '@babel/helper-validator-option': 7.25.9 + browserslist: 4.24.4 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-create-class-features-plugin@7.25.9(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-member-expression-to-functions': 7.25.9 + '@babel/helper-optimise-call-expression': 7.25.9 + '@babel/helper-replace-supers': 7.26.5(@babel/core@7.26.0) + '@babel/helper-skip-transparent-expression-wrappers': 7.25.9 + '@babel/traverse': 7.26.5 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/helper-member-expression-to-functions@7.25.9': + dependencies: + '@babel/traverse': 7.26.5 + '@babel/types': 7.26.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-imports@7.25.9': + dependencies: + '@babel/traverse': 7.26.5 + '@babel/types': 7.26.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.26.0(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 + '@babel/traverse': 7.26.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-optimise-call-expression@7.25.9': + dependencies: + '@babel/types': 7.26.5 + + '@babel/helper-plugin-utils@7.26.5': {} + + '@babel/helper-replace-supers@7.26.5(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-member-expression-to-functions': 7.25.9 + '@babel/helper-optimise-call-expression': 7.25.9 + '@babel/traverse': 7.26.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-skip-transparent-expression-wrappers@7.25.9': + dependencies: + '@babel/traverse': 7.26.5 + '@babel/types': 7.26.5 + transitivePeerDependencies: + - supports-color + + '@babel/helper-string-parser@7.25.9': {} + + '@babel/helper-validator-identifier@7.25.9': {} + + '@babel/helper-validator-option@7.25.9': {} + + '@babel/helpers@7.26.0': + dependencies: + '@babel/template': 7.25.9 + '@babel/types': 7.26.5 + + '@babel/parser@7.26.5': + dependencies: + '@babel/types': 7.26.5 + + '@babel/plugin-proposal-decorators@7.25.9(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-create-class-features-plugin': 7.25.9(@babel/core@7.26.0) + '@babel/helper-plugin-utils': 7.26.5 + '@babel/plugin-syntax-decorators': 7.25.9(@babel/core@7.26.0) + transitivePeerDependencies: + - supports-color + + '@babel/plugin-syntax-decorators@7.25.9(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.26.5 + + '@babel/plugin-syntax-import-attributes@7.26.0(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.26.5 + + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.26.5 + + '@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.26.5 + + '@babel/plugin-syntax-typescript@7.25.9(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-plugin-utils': 7.26.5 + + '@babel/plugin-transform-typescript@7.26.5(@babel/core@7.26.0)': + dependencies: + '@babel/core': 7.26.0 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-create-class-features-plugin': 7.25.9(@babel/core@7.26.0) + '@babel/helper-plugin-utils': 7.26.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.25.9 + '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.26.0) + transitivePeerDependencies: + - supports-color + + '@babel/runtime@7.26.0': + dependencies: + regenerator-runtime: 0.14.1 + + '@babel/template@7.25.9': + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.5 + '@babel/types': 7.26.5 + + '@babel/traverse@7.26.5': + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.5 + '@babel/parser': 7.26.5 + '@babel/template': 7.25.9 + '@babel/types': 7.26.5 + debug: 4.4.0 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.26.5': + dependencies: + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 + + '@bufbuild/protobuf@2.2.3': {} + + '@ctrl/tinycolor@3.6.1': {} + + '@emotion/hash@0.9.2': {} + + '@emotion/unitless@0.8.1': {} + + '@esbuild/aix-ppc64@0.24.2': + optional: true + + '@esbuild/android-arm64@0.24.2': + optional: true + + '@esbuild/android-arm@0.24.2': + optional: true + + '@esbuild/android-x64@0.24.2': + optional: true + + '@esbuild/darwin-arm64@0.24.2': + optional: true + + '@esbuild/darwin-x64@0.24.2': + optional: true + + '@esbuild/freebsd-arm64@0.24.2': + optional: true + + '@esbuild/freebsd-x64@0.24.2': + optional: true + + '@esbuild/linux-arm64@0.24.2': + optional: true + + '@esbuild/linux-arm@0.24.2': + optional: true + + '@esbuild/linux-ia32@0.24.2': + optional: true + + '@esbuild/linux-loong64@0.24.2': + optional: true + + '@esbuild/linux-mips64el@0.24.2': + optional: true + + '@esbuild/linux-ppc64@0.24.2': + optional: true + + '@esbuild/linux-riscv64@0.24.2': + optional: true + + '@esbuild/linux-s390x@0.24.2': + optional: true + + '@esbuild/linux-x64@0.24.2': + optional: true + + '@esbuild/netbsd-arm64@0.24.2': + optional: true + + '@esbuild/netbsd-x64@0.24.2': + optional: true + + '@esbuild/openbsd-arm64@0.24.2': + optional: true + + '@esbuild/openbsd-x64@0.24.2': + optional: true + + '@esbuild/sunos-x64@0.24.2': + optional: true + + '@esbuild/win32-arm64@0.24.2': + optional: true + + '@esbuild/win32-ia32@0.24.2': + optional: true + + '@esbuild/win32-x64@0.24.2': + optional: true + + '@eslint-community/eslint-utils@4.4.1(eslint@9.18.0)': + dependencies: + eslint: 9.18.0 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.1': {} + + '@eslint/config-array@0.19.1': + dependencies: + '@eslint/object-schema': 2.1.5 + debug: 4.4.0 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@eslint/core@0.10.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.2.0': + dependencies: + ajv: 6.12.6 + debug: 4.4.0 + espree: 10.3.0 + globals: 14.0.0 + ignore: 5.3.2 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@9.18.0': {} + + '@eslint/object-schema@2.1.5': {} + + '@eslint/plugin-kit@0.2.5': + dependencies: + '@eslint/core': 0.10.0 + levn: 0.4.1 + + '@humanfs/core@0.19.1': {} + + '@humanfs/node@0.16.6': + dependencies: + '@humanfs/core': 0.19.1 + '@humanwhocodes/retry': 0.3.1 + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/retry@0.3.1': {} + + '@humanwhocodes/retry@0.4.1': {} + + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.18.0 + + '@pkgr/core@0.1.1': {} + + '@polka/url@1.0.0-next.28': {} + + '@rollup/pluginutils@5.1.4(rollup@4.30.1)': + dependencies: + '@types/estree': 1.0.6 + estree-walker: 2.0.2 + picomatch: 4.0.2 + optionalDependencies: + rollup: 4.30.1 + + '@rollup/rollup-android-arm-eabi@4.30.1': + optional: true + + '@rollup/rollup-android-arm64@4.30.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.30.1': + optional: true + + '@rollup/rollup-darwin-x64@4.30.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.30.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.30.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.30.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.30.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.30.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.30.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.30.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.30.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.30.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.30.1': + optional: true + + '@sec-ant/readable-stream@0.4.1': {} + + '@simonwep/pickr@1.8.2': + dependencies: + core-js: 3.40.0 + nanopop: 2.4.2 + + '@sindresorhus/merge-streams@4.0.0': {} + + '@stomp/stompjs@7.0.0': {} + + '@types/estree@1.0.6': {} + + '@types/json-schema@7.0.15': {} + + '@vitejs/plugin-vue@5.2.1(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13)': + dependencies: + vite: 6.0.7(sass-embedded@1.83.4) + vue: 3.5.13 + + '@vue/babel-helper-vue-transform-on@1.2.5': {} + + '@vue/babel-plugin-jsx@1.2.5(@babel/core@7.26.0)': + dependencies: + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.26.5 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.26.0) + '@babel/template': 7.25.9 + '@babel/traverse': 7.26.5 + '@babel/types': 7.26.5 + '@vue/babel-helper-vue-transform-on': 1.2.5 + '@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.26.0) + html-tags: 3.3.1 + svg-tags: 1.0.0 + optionalDependencies: + '@babel/core': 7.26.0 + transitivePeerDependencies: + - supports-color + + '@vue/babel-plugin-resolve-type@1.2.5(@babel/core@7.26.0)': + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/core': 7.26.0 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.26.5 + '@babel/parser': 7.26.5 + '@vue/compiler-sfc': 3.5.13 + transitivePeerDependencies: + - supports-color + + '@vue/compiler-core@3.5.13': + dependencies: + '@babel/parser': 7.26.5 + '@vue/shared': 3.5.13 + entities: 4.5.0 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + '@vue/compiler-dom@3.5.13': + dependencies: + '@vue/compiler-core': 3.5.13 + '@vue/shared': 3.5.13 + + '@vue/compiler-sfc@3.5.13': + dependencies: + '@babel/parser': 7.26.5 + '@vue/compiler-core': 3.5.13 + '@vue/compiler-dom': 3.5.13 + '@vue/compiler-ssr': 3.5.13 + '@vue/shared': 3.5.13 + estree-walker: 2.0.2 + magic-string: 0.30.17 + postcss: 8.5.0 + source-map-js: 1.2.1 + + '@vue/compiler-ssr@3.5.13': + dependencies: + '@vue/compiler-dom': 3.5.13 + '@vue/shared': 3.5.13 + + '@vue/devtools-api@6.6.4': {} + + '@vue/devtools-core@7.7.0(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13)': + dependencies: + '@vue/devtools-kit': 7.7.0 + '@vue/devtools-shared': 7.7.0 + mitt: 3.0.1 + nanoid: 5.0.9 + pathe: 1.1.2 + vite-hot-client: 0.2.4(vite@6.0.7(sass-embedded@1.83.4)) + vue: 3.5.13 + transitivePeerDependencies: + - vite + + '@vue/devtools-kit@7.7.0': + dependencies: + '@vue/devtools-shared': 7.7.0 + birpc: 0.2.19 + hookable: 5.5.3 + mitt: 3.0.1 + perfect-debounce: 1.0.0 + speakingurl: 14.0.1 + superjson: 2.2.2 + + '@vue/devtools-shared@7.7.0': + dependencies: + rfdc: 1.4.1 + + '@vue/eslint-config-prettier@10.1.0(eslint@9.18.0)(prettier@3.4.2)': + dependencies: + eslint: 9.18.0 + eslint-config-prettier: 9.1.0(eslint@9.18.0) + eslint-plugin-prettier: 5.2.1(eslint-config-prettier@9.1.0(eslint@9.18.0))(eslint@9.18.0)(prettier@3.4.2) + prettier: 3.4.2 + transitivePeerDependencies: + - '@types/eslint' + + '@vue/reactivity@3.5.13': + dependencies: + '@vue/shared': 3.5.13 + + '@vue/runtime-core@3.5.13': + dependencies: + '@vue/reactivity': 3.5.13 + '@vue/shared': 3.5.13 + + '@vue/runtime-dom@3.5.13': + dependencies: + '@vue/reactivity': 3.5.13 + '@vue/runtime-core': 3.5.13 + '@vue/shared': 3.5.13 + csstype: 3.1.3 + + '@vue/server-renderer@3.5.13(vue@3.5.13)': + dependencies: + '@vue/compiler-ssr': 3.5.13 + '@vue/shared': 3.5.13 + vue: 3.5.13 + + '@vue/shared@3.5.13': {} + + acorn-jsx@5.3.2(acorn@8.14.0): + dependencies: + acorn: 8.14.0 + + acorn@8.14.0: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ant-design-vue@4.2.6(vue@3.5.13): + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons-vue': 7.0.1(vue@3.5.13) + '@babel/runtime': 7.26.0 + '@ctrl/tinycolor': 3.6.1 + '@emotion/hash': 0.9.2 + '@emotion/unitless': 0.8.1 + '@simonwep/pickr': 1.8.2 + array-tree-filter: 2.1.0 + async-validator: 4.2.5 + csstype: 3.1.3 + dayjs: 1.11.13 + dom-align: 1.12.4 + dom-scroll-into-view: 2.0.1 + lodash: 4.17.21 + lodash-es: 4.17.21 + resize-observer-polyfill: 1.5.1 + scroll-into-view-if-needed: 2.2.31 + shallow-equal: 1.2.1 + stylis: 4.3.5 + throttle-debounce: 5.0.2 + vue: 3.5.13 + vue-types: 3.0.2(vue@3.5.13) + warning: 4.0.3 + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + argparse@2.0.1: {} + + array-tree-filter@2.1.0: {} + + async-validator@4.2.5: {} + + asynckit@0.4.0: {} + + axios@1.7.9: + dependencies: + follow-redirects: 1.15.9 + form-data: 4.0.1 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + + balanced-match@1.0.2: {} + + binary-extensions@2.3.0: {} + + birpc@0.2.19: {} + + boolbase@1.0.0: {} + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browserslist@4.24.4: + dependencies: + caniuse-lite: 1.0.30001692 + electron-to-chromium: 1.5.80 + node-releases: 2.0.19 + update-browserslist-db: 1.1.2(browserslist@4.24.4) + + buffer-builder@0.2.0: {} + + bundle-name@4.1.0: + dependencies: + run-applescript: 7.0.0 + + callsites@3.1.0: {} + + caniuse-lite@1.0.30001692: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorjs.io@0.5.2: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + compute-scroll-into-view@1.0.20: {} + + concat-map@0.0.1: {} + + confbox@0.1.8: {} + + convert-source-map@2.0.0: {} + + copy-anything@3.0.5: + dependencies: + is-what: 4.1.16 + + core-js@3.40.0: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + cssesc@3.0.0: {} + + csstype@3.1.3: {} + + dayjs@1.11.13: {} + + debug@3.2.7: + dependencies: + ms: 2.1.3 + + debug@4.4.0: + dependencies: + ms: 2.1.3 + + deep-is@0.1.4: {} + + default-browser-id@5.0.0: {} + + default-browser@5.2.1: + dependencies: + bundle-name: 4.1.0 + default-browser-id: 5.0.0 + + define-lazy-prop@3.0.0: {} + + delayed-stream@1.0.0: {} + + dom-align@1.12.4: {} + + dom-scroll-into-view@2.0.1: {} + + electron-to-chromium@1.5.80: {} + + entities@4.5.0: {} + + error-stack-parser-es@0.1.5: {} + + esbuild@0.24.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.24.2 + '@esbuild/android-arm': 0.24.2 + '@esbuild/android-arm64': 0.24.2 + '@esbuild/android-x64': 0.24.2 + '@esbuild/darwin-arm64': 0.24.2 + '@esbuild/darwin-x64': 0.24.2 + '@esbuild/freebsd-arm64': 0.24.2 + '@esbuild/freebsd-x64': 0.24.2 + '@esbuild/linux-arm': 0.24.2 + '@esbuild/linux-arm64': 0.24.2 + '@esbuild/linux-ia32': 0.24.2 + '@esbuild/linux-loong64': 0.24.2 + '@esbuild/linux-mips64el': 0.24.2 + '@esbuild/linux-ppc64': 0.24.2 + '@esbuild/linux-riscv64': 0.24.2 + '@esbuild/linux-s390x': 0.24.2 + '@esbuild/linux-x64': 0.24.2 + '@esbuild/netbsd-arm64': 0.24.2 + '@esbuild/netbsd-x64': 0.24.2 + '@esbuild/openbsd-arm64': 0.24.2 + '@esbuild/openbsd-x64': 0.24.2 + '@esbuild/sunos-x64': 0.24.2 + '@esbuild/win32-arm64': 0.24.2 + '@esbuild/win32-ia32': 0.24.2 + '@esbuild/win32-x64': 0.24.2 + + escalade@3.2.0: {} + + escape-string-regexp@4.0.0: {} + + eslint-config-prettier@9.1.0(eslint@9.18.0): + dependencies: + eslint: 9.18.0 + + eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@9.18.0))(eslint@9.18.0)(prettier@3.4.2): + dependencies: + eslint: 9.18.0 + prettier: 3.4.2 + prettier-linter-helpers: 1.0.0 + synckit: 0.9.2 + optionalDependencies: + eslint-config-prettier: 9.1.0(eslint@9.18.0) + + eslint-plugin-vue@9.32.0(eslint@9.18.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0) + eslint: 9.18.0 + globals: 13.24.0 + natural-compare: 1.4.0 + nth-check: 2.1.1 + postcss-selector-parser: 6.1.2 + semver: 7.6.3 + vue-eslint-parser: 9.4.3(eslint@9.18.0) + xml-name-validator: 4.0.0 + transitivePeerDependencies: + - supports-color + + eslint-scope@7.2.2: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-scope@8.2.0: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint-visitor-keys@4.2.0: {} + + eslint@9.18.0: + dependencies: + '@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0) + '@eslint-community/regexpp': 4.12.1 + '@eslint/config-array': 0.19.1 + '@eslint/core': 0.10.0 + '@eslint/eslintrc': 3.2.0 + '@eslint/js': 9.18.0 + '@eslint/plugin-kit': 0.2.5 + '@humanfs/node': 0.16.6 + '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.4.1 + '@types/estree': 1.0.6 + '@types/json-schema': 7.0.15 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.6 + debug: 4.4.0 + escape-string-regexp: 4.0.0 + eslint-scope: 8.2.0 + eslint-visitor-keys: 4.2.0 + espree: 10.3.0 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 8.0.0 + find-up: 5.0.0 + glob-parent: 6.0.2 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + json-stable-stringify-without-jsonify: 1.0.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + transitivePeerDependencies: + - supports-color + + espree@10.3.0: + dependencies: + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) + eslint-visitor-keys: 4.2.0 + + espree@9.6.1: + dependencies: + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) + eslint-visitor-keys: 3.4.3 + + esquery@1.6.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-walker@2.0.2: {} + + esutils@2.0.3: {} + + eventsource@2.0.2: {} + + execa@9.5.2: + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.6 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 8.0.0 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 6.0.0 + pretty-ms: 9.2.0 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.1.1 + + fast-deep-equal@3.1.3: {} + + fast-diff@1.3.0: {} + + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fastq@1.18.0: + dependencies: + reusify: 1.0.4 + + faye-websocket@0.11.4: + dependencies: + websocket-driver: 0.7.4 + + figures@6.1.0: + dependencies: + is-unicode-supported: 2.1.0 + + file-entry-cache@8.0.0: + dependencies: + flat-cache: 4.0.1 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@4.0.1: + dependencies: + flatted: 3.3.2 + keyv: 4.5.4 + + flatted@3.3.2: {} + + follow-redirects@1.15.9: {} + + form-data@4.0.1: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + + fs-extra@11.2.0: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + + fsevents@2.3.3: + optional: true + + gensync@1.0.0-beta.2: {} + + get-stream@9.0.1: + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + globals@11.12.0: {} + + globals@13.24.0: + dependencies: + type-fest: 0.20.2 + + globals@14.0.0: {} + + graceful-fs@4.2.11: {} + + has-flag@4.0.0: {} + + hookable@5.5.3: {} + + html-tags@3.3.1: {} + + http-parser-js@0.5.9: {} + + human-signals@8.0.0: {} + + ignore@5.3.2: {} + + immutable@5.0.3: {} + + import-fresh@3.3.0: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inherits@2.0.4: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-docker@3.0.0: {} + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-number@7.0.0: {} + + is-plain-obj@4.1.0: {} + + is-plain-object@3.0.1: {} + + is-stream@4.0.1: {} + + is-unicode-supported@2.1.0: {} + + is-what@4.1.16: {} + + is-wsl@3.1.0: + dependencies: + is-inside-container: 1.0.0 + + isexe@2.0.0: {} + + js-tokens@4.0.0: {} + + js-yaml@4.1.0: + dependencies: + argparse: 2.0.1 + + jsesc@3.1.0: {} + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + json5@2.2.3: {} + + jsonfile@6.1.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + kolorist@1.8.0: {} + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + local-pkg@0.5.1: + dependencies: + mlly: 1.7.4 + pkg-types: 1.3.0 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash-es@4.17.21: {} + + lodash.merge@4.6.2: {} + + lodash@4.17.21: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + magic-string@0.30.17: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + merge2@1.4.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.1 + + mitt@3.0.1: {} + + mlly@1.7.4: + dependencies: + acorn: 8.14.0 + pathe: 2.0.1 + pkg-types: 1.3.0 + ufo: 1.5.4 + + mrmime@2.0.0: {} + + ms@2.1.3: {} + + nanoid@3.3.8: {} + + nanoid@5.0.9: {} + + nanopop@2.4.2: {} + + natural-compare@1.4.0: {} + + node-forge@1.3.1: {} + + node-releases@2.0.19: {} + + normalize-path@3.0.0: {} + + npm-run-path@6.0.0: + dependencies: + path-key: 4.0.0 + unicorn-magic: 0.3.0 + + nth-check@2.1.1: + dependencies: + boolbase: 1.0.0 + + ometa@0.2.2: {} + + open@10.1.0: + dependencies: + default-browser: 5.2.1 + define-lazy-prop: 3.0.0 + is-inside-container: 1.0.0 + is-wsl: 3.1.0 + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + parse-ms@4.0.0: {} + + path-exists@4.0.0: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + pathe@1.1.2: {} + + pathe@2.0.1: {} + + perfect-debounce@1.0.0: {} + + picocolors@1.1.1: {} + + picomatch@2.3.1: {} + + picomatch@4.0.2: {} + + pinia@2.3.0(vue@3.5.13): + dependencies: + '@vue/devtools-api': 6.6.4 + vue: 3.5.13 + vue-demi: 0.14.10(vue@3.5.13) + transitivePeerDependencies: + - '@vue/composition-api' + + pkg-types@1.3.0: + dependencies: + confbox: 0.1.8 + mlly: 1.7.4 + pathe: 1.1.2 + + postcss-selector-parser@6.1.2: + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + + postcss@8.5.0: + dependencies: + nanoid: 3.3.8 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + prelude-ls@1.2.1: {} + + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + + prettier@3.4.2: {} + + pretty-ms@9.2.0: + dependencies: + parse-ms: 4.0.0 + + proxy-from-env@1.1.0: {} + + punycode@2.3.1: {} + + querystringify@2.2.0: {} + + queue-microtask@1.2.3: {} + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + regenerator-runtime@0.14.1: {} + + requires-port@1.0.0: {} + + resize-observer-polyfill@1.5.1: {} + + resolve-from@4.0.0: {} + + reusify@1.0.4: {} + + rfdc@1.4.1: {} + + rollup@4.30.1: + dependencies: + '@types/estree': 1.0.6 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.30.1 + '@rollup/rollup-android-arm64': 4.30.1 + '@rollup/rollup-darwin-arm64': 4.30.1 + '@rollup/rollup-darwin-x64': 4.30.1 + '@rollup/rollup-freebsd-arm64': 4.30.1 + '@rollup/rollup-freebsd-x64': 4.30.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.30.1 + '@rollup/rollup-linux-arm-musleabihf': 4.30.1 + '@rollup/rollup-linux-arm64-gnu': 4.30.1 + '@rollup/rollup-linux-arm64-musl': 4.30.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.30.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.30.1 + '@rollup/rollup-linux-riscv64-gnu': 4.30.1 + '@rollup/rollup-linux-s390x-gnu': 4.30.1 + '@rollup/rollup-linux-x64-gnu': 4.30.1 + '@rollup/rollup-linux-x64-musl': 4.30.1 + '@rollup/rollup-win32-arm64-msvc': 4.30.1 + '@rollup/rollup-win32-ia32-msvc': 4.30.1 + '@rollup/rollup-win32-x64-msvc': 4.30.1 + fsevents: 2.3.3 + + run-applescript@7.0.0: {} + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + rxjs@7.8.1: + dependencies: + tslib: 2.8.1 + + safe-buffer@5.2.1: {} + + sass-embedded-android-arm64@1.83.4: + optional: true + + sass-embedded-android-arm@1.83.4: + optional: true + + sass-embedded-android-ia32@1.83.4: + optional: true + + sass-embedded-android-riscv64@1.83.4: + optional: true + + sass-embedded-android-x64@1.83.4: + optional: true + + sass-embedded-darwin-arm64@1.83.4: + optional: true + + sass-embedded-darwin-x64@1.83.4: + optional: true + + sass-embedded-linux-arm64@1.83.4: + optional: true + + sass-embedded-linux-arm@1.83.4: + optional: true + + sass-embedded-linux-ia32@1.83.4: + optional: true + + sass-embedded-linux-musl-arm64@1.83.4: + optional: true + + sass-embedded-linux-musl-arm@1.83.4: + optional: true + + sass-embedded-linux-musl-ia32@1.83.4: + optional: true + + sass-embedded-linux-musl-riscv64@1.83.4: + optional: true + + sass-embedded-linux-musl-x64@1.83.4: + optional: true + + sass-embedded-linux-riscv64@1.83.4: + optional: true + + sass-embedded-linux-x64@1.83.4: + optional: true + + sass-embedded-win32-arm64@1.83.4: + optional: true + + sass-embedded-win32-ia32@1.83.4: + optional: true + + sass-embedded-win32-x64@1.83.4: + optional: true + + sass-embedded@1.83.4: + dependencies: + '@bufbuild/protobuf': 2.2.3 + buffer-builder: 0.2.0 + colorjs.io: 0.5.2 + immutable: 5.0.3 + rxjs: 7.8.1 + supports-color: 8.1.1 + sync-child-process: 1.0.2 + varint: 6.0.0 + optionalDependencies: + sass-embedded-android-arm: 1.83.4 + sass-embedded-android-arm64: 1.83.4 + sass-embedded-android-ia32: 1.83.4 + sass-embedded-android-riscv64: 1.83.4 + sass-embedded-android-x64: 1.83.4 + sass-embedded-darwin-arm64: 1.83.4 + sass-embedded-darwin-x64: 1.83.4 + sass-embedded-linux-arm: 1.83.4 + sass-embedded-linux-arm64: 1.83.4 + sass-embedded-linux-ia32: 1.83.4 + sass-embedded-linux-musl-arm: 1.83.4 + sass-embedded-linux-musl-arm64: 1.83.4 + sass-embedded-linux-musl-ia32: 1.83.4 + sass-embedded-linux-musl-riscv64: 1.83.4 + sass-embedded-linux-musl-x64: 1.83.4 + sass-embedded-linux-riscv64: 1.83.4 + sass-embedded-linux-x64: 1.83.4 + sass-embedded-win32-arm64: 1.83.4 + sass-embedded-win32-ia32: 1.83.4 + sass-embedded-win32-x64: 1.83.4 + + scroll-into-view-if-needed@2.2.31: + dependencies: + compute-scroll-into-view: 1.0.20 + + scss@0.2.4: + dependencies: + ometa: 0.2.2 + + semver@6.3.1: {} + + semver@7.6.3: {} + + shallow-equal@1.2.1: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + signal-exit@4.1.0: {} + + sirv@3.0.0: + dependencies: + '@polka/url': 1.0.0-next.28 + mrmime: 2.0.0 + totalist: 3.0.1 + + sockjs-client@1.6.1: + dependencies: + debug: 3.2.7 + eventsource: 2.0.2 + faye-websocket: 0.11.4 + inherits: 2.0.4 + url-parse: 1.5.10 + transitivePeerDependencies: + - supports-color + + source-map-js@1.2.1: {} + + speakingurl@14.0.1: {} + + strip-final-newline@4.0.0: {} + + strip-json-comments@3.1.1: {} + + stylis@4.3.5: {} + + superjson@2.2.2: + dependencies: + copy-anything: 3.0.5 + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + svg-tags@1.0.0: {} + + sync-child-process@1.0.2: + dependencies: + sync-message-port: 1.1.3 + + sync-message-port@1.1.3: {} + + synckit@0.9.2: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.8.1 + + throttle-debounce@5.0.2: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + totalist@3.0.1: {} + + tslib@2.8.1: {} + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + type-fest@0.20.2: {} + + ufo@1.5.4: {} + + unicorn-magic@0.3.0: {} + + universalify@2.0.1: {} + + unplugin-vue-components@28.0.0(@babel/parser@7.26.5)(rollup@4.30.1)(vue@3.5.13): + dependencies: + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.1.4(rollup@4.30.1) + chokidar: 3.6.0 + debug: 4.4.0 + fast-glob: 3.3.3 + local-pkg: 0.5.1 + magic-string: 0.30.17 + minimatch: 9.0.5 + mlly: 1.7.4 + unplugin: 2.1.2 + vue: 3.5.13 + optionalDependencies: + '@babel/parser': 7.26.5 + transitivePeerDependencies: + - rollup + - supports-color + + unplugin@2.1.2: + dependencies: + acorn: 8.14.0 + webpack-virtual-modules: 0.6.2 + + update-browserslist-db@1.1.2(browserslist@4.24.4): + dependencies: + browserslist: 4.24.4 + escalade: 3.2.0 + picocolors: 1.1.1 + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + url-parse@1.5.10: + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + + util-deprecate@1.0.2: {} + + varint@6.0.0: {} + + vite-hot-client@0.2.4(vite@6.0.7(sass-embedded@1.83.4)): + dependencies: + vite: 6.0.7(sass-embedded@1.83.4) + + vite-plugin-inspect@0.8.9(rollup@4.30.1)(vite@6.0.7(sass-embedded@1.83.4)): + dependencies: + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.1.4(rollup@4.30.1) + debug: 4.4.0 + error-stack-parser-es: 0.1.5 + fs-extra: 11.2.0 + open: 10.1.0 + perfect-debounce: 1.0.0 + picocolors: 1.1.1 + sirv: 3.0.0 + vite: 6.0.7(sass-embedded@1.83.4) + transitivePeerDependencies: + - rollup + - supports-color + + vite-plugin-vue-devtools@7.7.0(rollup@4.30.1)(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13): + dependencies: + '@vue/devtools-core': 7.7.0(vite@6.0.7(sass-embedded@1.83.4))(vue@3.5.13) + '@vue/devtools-kit': 7.7.0 + '@vue/devtools-shared': 7.7.0 + execa: 9.5.2 + sirv: 3.0.0 + vite: 6.0.7(sass-embedded@1.83.4) + vite-plugin-inspect: 0.8.9(rollup@4.30.1)(vite@6.0.7(sass-embedded@1.83.4)) + vite-plugin-vue-inspector: 5.3.1(vite@6.0.7(sass-embedded@1.83.4)) + transitivePeerDependencies: + - '@nuxt/kit' + - rollup + - supports-color + - vue + + vite-plugin-vue-inspector@5.3.1(vite@6.0.7(sass-embedded@1.83.4)): + dependencies: + '@babel/core': 7.26.0 + '@babel/plugin-proposal-decorators': 7.25.9(@babel/core@7.26.0) + '@babel/plugin-syntax-import-attributes': 7.26.0(@babel/core@7.26.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.26.0) + '@babel/plugin-transform-typescript': 7.26.5(@babel/core@7.26.0) + '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.26.0) + '@vue/compiler-dom': 3.5.13 + kolorist: 1.8.0 + magic-string: 0.30.17 + vite: 6.0.7(sass-embedded@1.83.4) + transitivePeerDependencies: + - supports-color + + vite@6.0.7(sass-embedded@1.83.4): + dependencies: + esbuild: 0.24.2 + postcss: 8.5.0 + rollup: 4.30.1 + optionalDependencies: + fsevents: 2.3.3 + sass-embedded: 1.83.4 + + vue-demi@0.14.10(vue@3.5.13): + dependencies: + vue: 3.5.13 + + vue-eslint-parser@9.4.3(eslint@9.18.0): + dependencies: + debug: 4.4.0 + eslint: 9.18.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.6.0 + lodash: 4.17.21 + semver: 7.6.3 + transitivePeerDependencies: + - supports-color + + vue-router@4.5.0(vue@3.5.13): + dependencies: + '@vue/devtools-api': 6.6.4 + vue: 3.5.13 + + vue-types@3.0.2(vue@3.5.13): + dependencies: + is-plain-object: 3.0.1 + vue: 3.5.13 + + vue@3.5.13: + dependencies: + '@vue/compiler-dom': 3.5.13 + '@vue/compiler-sfc': 3.5.13 + '@vue/runtime-dom': 3.5.13 + '@vue/server-renderer': 3.5.13(vue@3.5.13) + '@vue/shared': 3.5.13 + + warning@4.0.3: + dependencies: + loose-envify: 1.4.0 + + webpack-virtual-modules@0.6.2: {} + + websocket-driver@0.7.4: + dependencies: + http-parser-js: 0.5.9 + safe-buffer: 5.2.1 + websocket-extensions: 0.1.4 + + websocket-extensions@0.1.4: {} + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + word-wrap@1.2.5: {} + + xml-name-validator@4.0.0: {} + + yallist@3.1.1: {} + + yocto-queue@0.1.0: {} + + yoctocolors@2.1.1: {} diff --git a/frontend/public/favicon.png b/frontend/public/favicon.png new file mode 100644 index 0000000..f2448d2 Binary files /dev/null and b/frontend/public/favicon.png differ diff --git a/frontend/src/App.vue b/frontend/src/App.vue new file mode 100644 index 0000000..2bad478 --- /dev/null +++ b/frontend/src/App.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/frontend/src/api/file.js b/frontend/src/api/file.js new file mode 100644 index 0000000..5e80760 --- /dev/null +++ b/frontend/src/api/file.js @@ -0,0 +1,17 @@ +import request from '@/utils/request.js' + +// 检查当前分享 +export const checkCurrentShareService = (shareId) => { + return request.get('/file/check', { + params: { + shareId: shareId, + }, + }) +} + +// 查询分享的文件列表 +export const getFileListService = (publicKey) => { + return request.post('/file/list', { + key: publicKey, + }) +} diff --git a/frontend/src/assets/MagicShare.png b/frontend/src/assets/MagicShare.png new file mode 100644 index 0000000..f2448d2 Binary files /dev/null and b/frontend/src/assets/MagicShare.png differ diff --git a/frontend/src/main.js b/frontend/src/main.js new file mode 100644 index 0000000..15266df --- /dev/null +++ b/frontend/src/main.js @@ -0,0 +1,17 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' + +import App from './App.vue' +import router from './router' + +// 禁止控制台输出 +console.log = function () {} +console.error = function () {} +console.warn = function () {} + +const app = createApp(App) + +app.use(createPinia()) +app.use(router) + +app.mount('#app') diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js new file mode 100644 index 0000000..8b99dc2 --- /dev/null +++ b/frontend/src/router/index.js @@ -0,0 +1,27 @@ +import { createRouter, createWebHistory } from 'vue-router' + +const router = createRouter({ + history: createWebHistory(import.meta.env.BASE_URL), + routes: [ + { + path: '/', + name: 'Home', + redirect: '/home', + component: () => import('@/views/layout/LayoutContainer.vue'), + children: [ + { + path: '/home', + name: 'HomeIndex', + component: () => import('@/views/home/HomeIndex.vue'), + }, + { + path: '/about', + name: 'AboutPage', + component: () => import('@/views/about/AboutPage.vue'), + }, + ], + }, + ], +}) + +export default router diff --git a/frontend/src/stores/index.js b/frontend/src/stores/index.js new file mode 100644 index 0000000..e4c008b --- /dev/null +++ b/frontend/src/stores/index.js @@ -0,0 +1,7 @@ +import { createPinia } from 'pinia' + +const pinia = createPinia() + +export default pinia + +export * from './modules/accept.js' diff --git a/frontend/src/stores/modules/accept.js b/frontend/src/stores/modules/accept.js new file mode 100644 index 0000000..269cb34 --- /dev/null +++ b/frontend/src/stores/modules/accept.js @@ -0,0 +1,15 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +// 用户模块 +export const useAcceptStore = defineStore('magic-share-accept', () => { + const status = ref(false) + const accept = async () => { + status.value = true + } + + return { + status, + accept, + } +}) diff --git a/frontend/src/utils/crypto.js b/frontend/src/utils/crypto.js new file mode 100644 index 0000000..58f20c7 --- /dev/null +++ b/frontend/src/utils/crypto.js @@ -0,0 +1,107 @@ +import forge from 'node-forge' + +// 生成公私钥对 +export const generateKeyPair = async () => { + // 创建 RSA 密钥对 + const rsa = forge.pki.rsa + const keyPair = await new Promise((resolve, reject) => { + rsa.generateKeyPair({ bits: 2048, e: 0x10001 }, (err, keyPair) => { + if (err) reject(err) + resolve(keyPair) + }) + }) + + // 导出公钥和私钥为 PEM 格式 + const publicKey = forge.pki.publicKeyToPem(keyPair.publicKey) + const privateKey = forge.pki.privateKeyToPem(keyPair.privateKey) + + return { + publicKey, + privateKey, + } +} + +// RSA 加密 +export const encryptRSA = (publicKeyPem, aesKey) => { + const publicKey = forge.pki.publicKeyFromPem(publicKeyPem) + + const encrypted = publicKey.encrypt(aesKey, 'RSA-OAEP', { + md: forge.md.sha256.create(), + mgf1: { + md: forge.md.sha1.create(), + }, + }) + + return forge.util.encode64(encrypted) // Base64 编码加密后的数据 +} + +// RSA 解密 +export const decryptRSA = async (privateKeyPem, encryptedBase64) => { + const privateKey = forge.pki.privateKeyFromPem(privateKeyPem) + const encryptedData = forge.util.decode64(encryptedBase64) + + const decrypted = privateKey.decrypt(encryptedData, 'RSA-OAEP', { + md: forge.md.sha256.create(), + mgf1: { + md: forge.md.sha1.create(), + }, + }) + + return decrypted +} + +// AES 加密 +export const encryptAES = (data) => { + // 生成 AES 密钥 + const aesKey = forge.random.getBytesSync(32) // 32 字节 = 256 位密钥 + const iv = forge.random.getBytesSync(16) // 16 字节的 IV(初始化向量) + + // 加密数据 + const cipher = forge.cipher.createCipher('AES-CBC', aesKey) + cipher.start({ iv: iv }) + cipher.update(forge.util.createBuffer(data)) + cipher.finish() + + // 获取加密结果 + const encryptedData = cipher.output + const encryptedBase64 = forge.util.encode64(encryptedData.getBytes()) + const aesKeyBase64 = forge.util.encode64(aesKey) + const ivBase64 = forge.util.encode64(iv) + + return { + aesKeyBase64: aesKeyBase64, + encryptedDataBase64: encryptedBase64, + iVBase64: ivBase64, + } +} + +// AES 解密 +export const decryptAES = (aesKey, iv, encrypted) => { + const decipher = forge.cipher.createDecipher('AES-CBC', aesKey) + decipher.start({ iv: iv }) + decipher.update(forge.util.createBuffer(encrypted)) + const success = decipher.finish() + + if (success) { + return decipher.output.toString() + } else { + console.error('Decryption failed') + return null + } +} + +// AES 解密 +export const decryptBufferAES = async (aesKey, iv, encryptedData) => { + const cipher = forge.cipher.createDecipher('AES-CBC', aesKey) + cipher.start({ iv: iv }) + await cipher.update(forge.util.createBuffer(encryptedData)) + + const result = await cipher.finish() + + if (result) { + return cipher.output.getBytes() + } else { + console.error('Decryption failed') + return null + } +} diff --git a/frontend/src/utils/request.js b/frontend/src/utils/request.js new file mode 100644 index 0000000..e6b38e4 --- /dev/null +++ b/frontend/src/utils/request.js @@ -0,0 +1,40 @@ +import axios from 'axios' + +const protocol = window.location.protocol +const hostname = window.location.hostname +const port = window.location.port +const baseURL = protocol + '//' + hostname + ':' + port + '/api' +// const baseURL = 'http://localhost:1024/api' //开发使用 + +const request = axios.create({ + baseURL: baseURL, +}) + +// 添加请求拦截器 +request.interceptors.request.use( + function (config) { + // 在发送请求之前做些什么 + return config + }, + function (error) { + // 对请求错误做些什么 + return Promise.reject(error) + }, +) + +// 添加响应拦截器 +request.interceptors.response.use( + function (response) { + // 2xx 范围内的状态码都会触发该函数。 + // 对响应数据做点什么 + return response + }, + function (error) { + // 超出 2xx 范围的状态码都会触发该函数。 + // 对响应错误做点什么 + return Promise.reject(error) + }, +) + +export { baseURL } +export default request diff --git a/frontend/src/views/about/AboutPage.vue b/frontend/src/views/about/AboutPage.vue new file mode 100644 index 0000000..3dbce43 --- /dev/null +++ b/frontend/src/views/about/AboutPage.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/frontend/src/views/home/HomeIndex.vue b/frontend/src/views/home/HomeIndex.vue new file mode 100644 index 0000000..2a219e9 --- /dev/null +++ b/frontend/src/views/home/HomeIndex.vue @@ -0,0 +1,379 @@ + + + + + diff --git a/frontend/src/views/layout/LayoutContainer.vue b/frontend/src/views/layout/LayoutContainer.vue new file mode 100644 index 0000000..70bc5bd --- /dev/null +++ b/frontend/src/views/layout/LayoutContainer.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..95dbb8f --- /dev/null +++ b/frontend/vite.config.js @@ -0,0 +1,28 @@ +import { fileURLToPath, URL } from 'node:url' + +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import vueDevTools from 'vite-plugin-vue-devtools' + +import Components from 'unplugin-vue-components/vite' +import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + vue(), + vueDevTools(), + Components({ + resolvers: [ + AntDesignVueResolver({ + importStyle: false, // css in js + }), + ], + }), + ], + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)), + }, + }, +})