From 894d4767077ac4590a39c5797aa802271f74d1b3 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 11 Mar 2024 11:58:26 +0000 Subject: [PATCH] Rename and change files (#1) * Rename and change files * License --- LICENSE | 339 ++++++++++++++ assets/css/admin-fluentform.css | 8 +- assets/css/admin-fluentform.min.css | 2 +- assets/css/admin-forminator.css | 8 +- assets/css/admin-forminator.min.css | 2 +- assets/css/admin-kadence-advanced.css | 4 +- assets/css/admin-kadence-advanced.min.css | 2 +- assets/css/general.css | 104 ++--- assets/css/general.min.css | 2 +- assets/css/integrations.css | 46 +- assets/css/integrations.min.css | 2 +- assets/css/notifications.css | 30 +- assets/css/notifications.min.css | 2 +- assets/css/settings-base.css | 74 +-- assets/css/settings-base.min.css | 2 +- assets/css/system-info.css | 16 +- assets/css/system-info.min.css | 2 +- assets/js/admin-elementor-pro.js | 32 +- assets/js/admin-elementor-pro.min.js | 2 +- assets/js/admin-fluentform.js | 16 +- assets/js/admin-fluentform.min.js | 2 +- assets/js/admin-forminator.js | 30 +- assets/js/admin-forminator.min.js | 2 +- assets/js/admin-gravity-forms.js | 12 +- assets/js/admin-gravity-forms.min.js | 2 +- assets/js/admin-kadence-advanced.js | 20 +- assets/js/admin-kadence-advanced.min.js | 2 +- assets/js/admin-nf.js | 36 +- assets/js/admin-nf.min.js | 2 +- assets/js/admin-quform.js | 36 +- assets/js/admin-quform.min.js | 2 +- assets/js/apps/procaptcha.bundle.js | 168 +++++++ assets/js/general.js | 102 ++--- assets/js/general.min.js | 2 +- assets/js/integrations.js | 40 +- assets/js/integrations.min.js | 2 +- assets/js/notifications.js | 40 +- assets/js/notifications.min.js | 2 +- .../{hcaptcha-acfe.js => procaptcha-acfe.js} | 0 ...cha-acfe.min.js => procaptcha-acfe.min.js} | 0 ...s => procaptcha-back-in-stock-notifier.js} | 0 ... procaptcha-back-in-stock-notifier.min.js} | 0 ...uilder.js => procaptcha-beaver-builder.js} | 0 ...in.js => procaptcha-beaver-builder.min.js} | 0 .../js/{hcaptcha-cf7.js => procaptcha-cf7.js} | 0 ...ptcha-cf7.min.js => procaptcha-cf7.min.js} | 0 ...ptin.js => procaptcha-divi-email-optin.js} | 0 ....js => procaptcha-divi-email-optin.min.js} | 0 .../{hcaptcha-divi.js => procaptcha-divi.js} | 0 ...cha-divi.min.js => procaptcha-divi.min.js} | 0 ...tor-pro.js => procaptcha-elementor-pro.js} | 0 ...min.js => procaptcha-elementor-pro.min.js} | 0 ...fluentform.js => procaptcha-fluentform.js} | 0 ...rm.min.js => procaptcha-fluentform.min.js} | 0 ...forminator.js => procaptcha-forminator.js} | 0 ...or.min.js => procaptcha-forminator.min.js} | 0 ...y-forms.js => procaptcha-gravity-forms.js} | 0 ...min.js => procaptcha-gravity-forms.min.js} | 0 ...nced.js => procaptcha-kadence-advanced.js} | 0 ....js => procaptcha-kadence-advanced.min.js} | 0 ...ptcha-kadence.js => procaptcha-kadence.js} | 0 ...dence.min.js => procaptcha-kadence.min.js} | 0 ...cha-mailpoet.js => procaptcha-mailpoet.js} | 0 ...poet.min.js => procaptcha-mailpoet.min.js} | 0 .../js/{hcaptcha-nf.js => procaptcha-nf.js} | 0 ...captcha-nf.min.js => procaptcha-nf.min.js} | 0 ...cha-passster.js => procaptcha-passster.js} | 0 ...ster.min.js => procaptcha-passster.min.js} | 0 ...captcha-quform.js => procaptcha-quform.js} | 0 ...quform.min.js => procaptcha-quform.min.js} | 0 ... => procaptcha-simple-download-monitor.js} | 0 ...procaptcha-simple-download-monitor.min.js} | 0 ...t-candy.js => procaptcha-support-candy.js} | 0 ...min.js => procaptcha-support-candy.min.js} | 0 ...cha-users-wp.js => procaptcha-users-wp.js} | 0 ...s-wp.min.js => procaptcha-users-wp.min.js} | 0 ...-checkout.js => procaptcha-wc-checkout.js} | 0 ...t.min.js => procaptcha-wc-checkout.min.js} | 0 ...captcha-wpforo.js => procaptcha-wpforo.js} | 0 ...wpforo.min.js => procaptcha-wpforo.min.js} | 0 assets/js/system-info.js | 8 +- assets/js/system-info.min.js | 2 +- src/php/ACFE/Form.php | 34 +- src/php/Abstracts/LoginBase.php | 28 +- src/php/Abstracts/LostPasswordBase.php | 14 +- src/php/Admin/Notifications.php | 106 ++--- src/php/Asgaros/Base.php | 14 +- src/php/Asgaros/Form.php | 8 +- src/php/AutoVerify/AutoVerify.php | 22 +- src/php/Avada/Form.php | 26 +- src/php/BBPress/Base.php | 16 +- src/php/BBPress/NewTopic.php | 8 +- src/php/BBPress/Reply.php | 8 +- src/php/BackInStockNotifier/Form.php | 32 +- src/php/BeaverBuilder/Base.php | 32 +- src/php/BeaverBuilder/Contact.php | 14 +- src/php/BeaverBuilder/Login.php | 14 +- src/php/Brizy/Base.php | 22 +- src/php/Brizy/Form.php | 8 +- src/php/BuddyPress/CreateGroup.php | 18 +- src/php/BuddyPress/Register.php | 22 +- src/php/CF7/CF7.php | 105 +++-- src/php/ClassifiedListing/Contact.php | 18 +- src/php/ClassifiedListing/Login.php | 10 +- src/php/ClassifiedListing/LostPassword.php | 12 +- src/php/ClassifiedListing/Register.php | 18 +- src/php/ColorlibCustomizer/Base.php | 16 +- src/php/ColorlibCustomizer/Login.php | 10 +- src/php/ColorlibCustomizer/LostPassword.php | 10 +- src/php/ColorlibCustomizer/Register.php | 10 +- src/php/DelayedScript/DelayedScript.php | 6 +- src/php/Divi/Comment.php | 22 +- src/php/Divi/Contact.php | 32 +- src/php/Divi/EmailOptin.php | 30 +- src/php/Divi/Fix.php | 4 +- src/php/Divi/Login.php | 24 +- src/php/Divi/WPTestCaseStub.php | 2 +- src/php/DownloadManager/DownloadManager.php | 28 +- src/php/EasyDigitalDownloads/Checkout.php | 18 +- src/php/EasyDigitalDownloads/Login.php | 22 +- src/php/EasyDigitalDownloads/LostPassword.php | 20 +- src/php/EasyDigitalDownloads/Register.php | 20 +- src/php/ElementorPro/PCaptchaHandler.php | 430 ++++++++++++++++++ src/php/FluentForm/Form.php | 118 ++--- src/php/FormidableForms/Form.php | 46 +- src/php/Forminator/Form.php | 96 ++-- src/php/GiveWP/Base.php | 14 +- src/php/GiveWP/Form.php | 8 +- src/php/GravityForms/Base.php | 4 +- src/php/GravityForms/Field.php | 60 +-- src/php/GravityForms/Form.php | 70 +-- src/php/HTMLForms/Form.php | 34 +- src/php/Helpers/ProCaptcha.php | 265 +++++++++++ src/php/Helpers/Request.php | 4 +- src/php/Jetpack/JetpackBase.php | 28 +- src/php/Jetpack/JetpackForm.php | 24 +- src/php/Kadence/AdvancedBlockParser.php | 6 +- src/php/Kadence/AdvancedForm.php | 90 ++-- src/php/Kadence/Form.php | 32 +- src/php/LearnDash/Login.php | 14 +- src/php/LearnDash/LostPassword.php | 16 +- src/php/LearnDash/Register.php | 22 +- src/php/MailPoet/Form.php | 30 +- src/php/Mailchimp/Form.php | 28 +- src/php/Main.php | 248 +++++----- src/php/MemberPress/Login.php | 18 +- src/php/MemberPress/Register.php | 20 +- src/php/Migrations/Migrations.php | 92 ++-- src/php/NF/Field.php | 14 +- src/php/NF/NF.php | 80 ++-- src/php/NF/templates/fields-hcaptcha.html | 4 +- src/php/Otter/Form.php | 18 +- src/php/PaidMembershipsPro/Checkout.php | 16 +- src/php/PaidMembershipsPro/Login.php | 22 +- src/php/Passster/Protect.php | 28 +- src/php/ProfileBuilder/Login.php | 16 +- src/php/ProfileBuilder/LostPassword.php | 18 +- src/php/ProfileBuilder/Register.php | 18 +- src/php/Quform/Quform.php | 98 ++-- src/php/Sendinblue/Sendinblue.php | 30 +- .../Settings/Abstracts/SettingsInterface.php | 2 +- src/php/Settings/General.php | 202 ++++---- src/php/Settings/Integrations.php | 252 +++++----- src/php/Settings/PluginSettingsBase.php | 48 +- src/php/Settings/Settings.php | 26 +- src/php/Settings/SystemInfo.php | 49 +- src/php/SimpleBasicContactForm/Form.php | 16 +- src/php/SimpleDownloadMonitor/Form.php | 34 +- src/php/Subscriber/Form.php | 16 +- src/php/SupportCandy/Base.php | 28 +- src/php/SupportCandy/Form.php | 8 +- src/php/ThemeMyLogin/Login.php | 10 +- src/php/ThemeMyLogin/LostPassword.php | 12 +- src/php/ThemeMyLogin/Register.php | 16 +- src/php/UM/Base.php | 46 +- src/php/UM/Login.php | 14 +- src/php/UM/LostPassword.php | 6 +- src/php/UM/Register.php | 4 +- src/php/UsersWP/Common.php | 14 +- src/php/UsersWP/ForgotPassword.php | 18 +- src/php/UsersWP/Login.php | 14 +- src/php/UsersWP/Register.php | 18 +- src/php/WC/Checkout.php | 28 +- src/php/WC/Login.php | 10 +- src/php/WC/LostPassword.php | 12 +- src/php/WC/OrderTracking.php | 18 +- src/php/WC/Register.php | 18 +- src/php/WCWishlists/CreateList.php | 18 +- src/php/WP/Comment.php | 22 +- src/php/WP/Login.php | 14 +- src/php/WP/LostPassword.php | 12 +- src/php/WP/PasswordProtected.php | 22 +- src/php/WP/Register.php | 18 +- src/php/WPDiscuz/Base.php | 4 +- src/php/WPDiscuz/Comment.php | 28 +- src/php/WPDiscuz/Subscribe.php | 24 +- src/php/WPForms/Form.php | 28 +- src/php/WPForo/Base.php | 30 +- src/php/WPForo/NewTopic.php | 8 +- src/php/WPForo/Reply.php | 8 +- src/php/WPJobOpenings/Form.php | 16 +- src/php/Wordfence/General.php | 18 +- src/php/includes/functions.php | 46 +- src/php/includes/request.php | 151 +++--- 204 files changed, 3419 insertions(+), 2256 deletions(-) create mode 100644 LICENSE create mode 100644 assets/js/apps/procaptcha.bundle.js rename assets/js/{hcaptcha-acfe.js => procaptcha-acfe.js} (100%) rename assets/js/{hcaptcha-acfe.min.js => procaptcha-acfe.min.js} (100%) rename assets/js/{hcaptcha-back-in-stock-notifier.js => procaptcha-back-in-stock-notifier.js} (100%) rename assets/js/{hcaptcha-back-in-stock-notifier.min.js => procaptcha-back-in-stock-notifier.min.js} (100%) rename assets/js/{hcaptcha-beaver-builder.js => procaptcha-beaver-builder.js} (100%) rename assets/js/{hcaptcha-beaver-builder.min.js => procaptcha-beaver-builder.min.js} (100%) rename assets/js/{hcaptcha-cf7.js => procaptcha-cf7.js} (100%) rename assets/js/{hcaptcha-cf7.min.js => procaptcha-cf7.min.js} (100%) rename assets/js/{hcaptcha-divi-email-optin.js => procaptcha-divi-email-optin.js} (100%) rename assets/js/{hcaptcha-divi-email-optin.min.js => procaptcha-divi-email-optin.min.js} (100%) rename assets/js/{hcaptcha-divi.js => procaptcha-divi.js} (100%) rename assets/js/{hcaptcha-divi.min.js => procaptcha-divi.min.js} (100%) rename assets/js/{hcaptcha-elementor-pro.js => procaptcha-elementor-pro.js} (100%) rename assets/js/{hcaptcha-elementor-pro.min.js => procaptcha-elementor-pro.min.js} (100%) rename assets/js/{hcaptcha-fluentform.js => procaptcha-fluentform.js} (100%) rename assets/js/{hcaptcha-fluentform.min.js => procaptcha-fluentform.min.js} (100%) rename assets/js/{hcaptcha-forminator.js => procaptcha-forminator.js} (100%) rename assets/js/{hcaptcha-forminator.min.js => procaptcha-forminator.min.js} (100%) rename assets/js/{hcaptcha-gravity-forms.js => procaptcha-gravity-forms.js} (100%) rename assets/js/{hcaptcha-gravity-forms.min.js => procaptcha-gravity-forms.min.js} (100%) rename assets/js/{hcaptcha-kadence-advanced.js => procaptcha-kadence-advanced.js} (100%) rename assets/js/{hcaptcha-kadence-advanced.min.js => procaptcha-kadence-advanced.min.js} (100%) rename assets/js/{hcaptcha-kadence.js => procaptcha-kadence.js} (100%) rename assets/js/{hcaptcha-kadence.min.js => procaptcha-kadence.min.js} (100%) rename assets/js/{hcaptcha-mailpoet.js => procaptcha-mailpoet.js} (100%) rename assets/js/{hcaptcha-mailpoet.min.js => procaptcha-mailpoet.min.js} (100%) rename assets/js/{hcaptcha-nf.js => procaptcha-nf.js} (100%) rename assets/js/{hcaptcha-nf.min.js => procaptcha-nf.min.js} (100%) rename assets/js/{hcaptcha-passster.js => procaptcha-passster.js} (100%) rename assets/js/{hcaptcha-passster.min.js => procaptcha-passster.min.js} (100%) rename assets/js/{hcaptcha-quform.js => procaptcha-quform.js} (100%) rename assets/js/{hcaptcha-quform.min.js => procaptcha-quform.min.js} (100%) rename assets/js/{hcaptcha-simple-download-monitor.js => procaptcha-simple-download-monitor.js} (100%) rename assets/js/{hcaptcha-simple-download-monitor.min.js => procaptcha-simple-download-monitor.min.js} (100%) rename assets/js/{hcaptcha-support-candy.js => procaptcha-support-candy.js} (100%) rename assets/js/{hcaptcha-support-candy.min.js => procaptcha-support-candy.min.js} (100%) rename assets/js/{hcaptcha-users-wp.js => procaptcha-users-wp.js} (100%) rename assets/js/{hcaptcha-users-wp.min.js => procaptcha-users-wp.min.js} (100%) rename assets/js/{hcaptcha-wc-checkout.js => procaptcha-wc-checkout.js} (100%) rename assets/js/{hcaptcha-wc-checkout.min.js => procaptcha-wc-checkout.min.js} (100%) rename assets/js/{hcaptcha-wpforo.js => procaptcha-wpforo.js} (100%) rename assets/js/{hcaptcha-wpforo.min.js => procaptcha-wpforo.min.js} (100%) create mode 100644 src/php/ElementorPro/PCaptchaHandler.php create mode 100644 src/php/Helpers/ProCaptcha.php diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) 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 +this service 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 make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. 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. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + 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 +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision 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, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This 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. diff --git a/assets/css/admin-fluentform.css b/assets/css/admin-fluentform.css index 452c415..5f5308d 100644 --- a/assets/css/admin-fluentform.css +++ b/assets/css/admin-fluentform.css @@ -1,6 +1,6 @@ -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head h5, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head p, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_body, -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .mt-4 { +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head h5, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head p, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_body, +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .mt-4 { display: none; } diff --git a/assets/css/admin-fluentform.min.css b/assets/css/admin-fluentform.min.css index 91ea8ec..5da38a7 100644 --- a/assets/css/admin-fluentform.min.css +++ b/assets/css/admin-fluentform.min.css @@ -1 +1 @@ -body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_body,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head h5,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .ff_card_head p,body.fluent-forms_page_fluent_forms_settings .ff_hcaptcha_wrap .mt-4{display:none} \ No newline at end of file +body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_body,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head h5,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .ff_card_head p,body.fluent-forms_page_fluent_forms_settings .ff_procaptcha_wrap .mt-4{display:none} \ No newline at end of file diff --git a/assets/css/admin-forminator.css b/assets/css/admin-forminator.css index c3af29b..9c4607c 100644 --- a/assets/css/admin-forminator.css +++ b/assets/css/admin-forminator.css @@ -1,6 +1,6 @@ -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-settings-label, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-description, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-tab-content.active .sui-form-field, -body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="hcaptcha"] + .sui-box-body .sui-form-field:last-child { +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-settings-label, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-description, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-tab-content.active .sui-form-field, +body.forminator_page_forminator-settings input[name="captcha_tab_saved"][value="procaptcha"] + .sui-box-body .sui-form-field:last-child { display: none; } diff --git a/assets/css/admin-forminator.min.css b/assets/css/admin-forminator.min.css index 83cc4c5..3a29db7 100644 --- a/assets/css/admin-forminator.min.css +++ b/assets/css/admin-forminator.min.css @@ -1 +1 @@ -body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-form-field:last-child,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-description,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-form-field,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=hcaptcha]+.sui-box-body .sui-tab-content.active .sui-settings-label{display:none} \ No newline at end of file +body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-form-field:last-child,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-description,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-form-field,body.forminator_page_forminator-settings input[name=captcha_tab_saved][value=procaptcha]+.sui-box-body .sui-tab-content.active .sui-settings-label{display:none} \ No newline at end of file diff --git a/assets/css/admin-kadence-advanced.css b/assets/css/admin-kadence-advanced.css index d9ef861..bde51ca 100644 --- a/assets/css/admin-kadence-advanced.css +++ b/assets/css/admin-kadence-advanced.css @@ -1,10 +1,10 @@ -.hcaptcha-notice label { +.procaptcha-notice label { display: inline-block; font-weight: 500; margin-bottom: 8px; } -.hcaptcha-notice p { +.procaptcha-notice p { background: #edf2f7; padding: 8px; } \ No newline at end of file diff --git a/assets/css/admin-kadence-advanced.min.css b/assets/css/admin-kadence-advanced.min.css index 9286d6b..f28013c 100644 --- a/assets/css/admin-kadence-advanced.min.css +++ b/assets/css/admin-kadence-advanced.min.css @@ -1 +1 @@ -.hcaptcha-notice label{display:inline-block;font-weight:500;margin-bottom:8px}.hcaptcha-notice p{background:#edf2f7;padding:8px} \ No newline at end of file +.procaptcha-notice label{display:inline-block;font-weight:500;margin-bottom:8px}.procaptcha-notice p{background:#edf2f7;padding:8px} \ No newline at end of file diff --git a/assets/css/general.css b/assets/css/general.css index d632a75..a3165c6 100644 --- a/assets/css/general.css +++ b/assets/css/general.css @@ -1,131 +1,131 @@ -#hcaptcha-message, +#procaptcha-message, #setting-error-settings_updated { max-width: 760px; box-sizing: border-box; } -#hcaptcha-options table tbody { +#procaptcha-options table tbody { background: #fff; } -#hcaptcha-options table tbody tr { +#procaptcha-options table tbody tr { display: grid; align-self: start; } -#hcaptcha-options table tbody tr th { +#procaptcha-options table tbody tr th { color: #5c6f8a; } -#hcaptcha-options table tbody tr td { +#procaptcha-options table tbody tr td { padding: 0; margin: 0; position: relative; } /* Section Keys */ -.hcaptcha-section-keys + table { +.procaptcha-section-keys + table { max-width: 760px; } -.hcaptcha-section-keys + table tbody { +.procaptcha-section-keys + table tbody { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "site-key site-key secret-key secret-key" - "sample-hcaptcha sample-hcaptcha check-config reset-notifications"; + "sample-procaptcha sample-procaptcha check-config reset-notifications"; gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-keys + table tbody th { +.procaptcha-section-keys + table tbody th { width: auto; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-site-key { +.procaptcha-section-keys + table tbody tr.procaptcha-general-site-key { grid-area: site-key; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-secret-key { +.procaptcha-section-keys + table tbody tr.procaptcha-general-secret-key { grid-area: secret-key; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-sample-hcaptcha { - grid-area: sample-hcaptcha; +.procaptcha-section-keys + table tbody tr.procaptcha-general-sample-procaptcha { + grid-area: sample-procaptcha; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-general-check-config { +.procaptcha-section-keys + table tbody tr.procaptcha-general-check-config { grid-area: check-config; } -.hcaptcha-section-keys + table tbody tr.hcaptcha-reset-notifications { +.procaptcha-section-keys + table tbody tr.procaptcha-reset-notifications { grid-area: reset-notifications; } -.hcaptcha-section-keys + table tbody tr th { +.procaptcha-section-keys + table tbody tr th { padding: 0 0 10px 0; } -.hcaptcha-section-keys + table tbody tr td input { +.procaptcha-section-keys + table tbody tr td input { width: 100%; } /* Section Appearance */ -.hcaptcha-section-appearance + table { +.procaptcha-section-appearance + table { max-width: 760px; } -.hcaptcha-section-appearance + table tbody { +.procaptcha-section-appearance + table tbody { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-appearance + table tbody tr th { +.procaptcha-section-appearance + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-appearance + table tbody tr td select { +.procaptcha-section-appearance + table tbody tr td select { width: 100%; } /* Section Custom */ -.hcaptcha-section-custom + table { +.procaptcha-section-custom + table { max-width: 760px; } -.hcaptcha-section-custom + table tbody { +.procaptcha-section-custom + table tbody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; padding: 15px 20px; } -.hcaptcha-section-custom + table tbody tr th { +.procaptcha-section-custom + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-custom + table tbody tr td { +.procaptcha-section-custom + table tbody tr td { width: max-content; } -.hcaptcha-section-custom + table tbody tr.hcaptcha-general-config-params td { +.procaptcha-section-custom + table tbody tr.procaptcha-general-config-params td { width: auto; } -.hcaptcha-section-custom + table tbody tr td textarea { +.procaptcha-section-custom + table tbody tr td textarea { width: 100%; } /* Section Other */ -.hcaptcha-section-other + table { +.procaptcha-section-other + table { max-width: 760px; } -.hcaptcha-section-other + table tbody { +.procaptcha-section-other + table tbody { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-areas: @@ -138,85 +138,85 @@ padding: 15px 20px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-off-when-logged-in { +.procaptcha-section-other + table tbody tr.procaptcha-general-off-when-logged-in { grid-area: logged; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-recaptcha-compat-off { +.procaptcha-section-other + table tbody tr.procaptcha-general-recaptcha-compat-off { grid-area: recaptcha; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit { +.procaptcha-section-other + table tbody tr.procaptcha-general-login-limit { grid-area: login-limit; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval { +.procaptcha-section-other + table tbody tr.procaptcha-general-login-interval { grid-area: login-interval; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips { +.procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips { grid-area: whitelisted; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general--network-wide { +.procaptcha-section-other + table tbody tr.procaptcha-general--network-wide { grid-area: network; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay { +.procaptcha-section-other + table tbody tr.procaptcha-general-delay { grid-area: delay; padding-top: 15px; } -.hcaptcha-section-other + table tbody tr th { +.procaptcha-section-other + table tbody tr th { padding: 0 0 10px 0; width: auto; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-recaptcha-compat-off th, -.hcaptcha-section-other + table tbody tr.hcaptcha-general--network-wide th { +.procaptcha-section-other + table tbody tr.procaptcha-general-recaptcha-compat-off th, +.procaptcha-section-other + table tbody tr.procaptcha-general--network-wide th { padding: 0; } -.hcaptcha-section-other + table tbody tr td { +.procaptcha-section-other + table tbody tr td { width: max-content; } -.hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-limit td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-login-interval td, -.hcaptcha-section-other + table tbody tr.hcaptcha-general-delay td { +.procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips td, +.procaptcha-section-other + table tbody tr.procaptcha-general-login-limit td, +.procaptcha-section-other + table tbody tr.procaptcha-general-login-interval td, +.procaptcha-section-other + table tbody tr.procaptcha-general-delay td { width: auto; } -.hcaptcha-section-other + table tbody tr td textarea, -.hcaptcha-section-other + table tbody tr td input { +.procaptcha-section-other + table tbody tr td textarea, +.procaptcha-section-other + table tbody tr td input { width: 100%; } @media (max-width: 600px) { - .hcaptcha-general table tbody tr td { + .procaptcha-general table tbody tr td { width: auto; } - .hcaptcha-section-keys + table tbody { + .procaptcha-section-keys + table tbody { grid-template-areas: unset; } - .hcaptcha-section-keys + table tbody tr { + .procaptcha-section-keys + table tbody tr { grid-area: unset !important; } - .hcaptcha-section-other + table tbody { + .procaptcha-section-other + table tbody { grid-template-areas: unset; } - .hcaptcha-section-other + table tbody tr { + .procaptcha-section-other + table tbody tr { grid-area: unset !important; } - .hcaptcha-section-other + table tbody tr.hcaptcha-general-whitelisted-ips td { + .procaptcha-section-other + table tbody tr.procaptcha-general-whitelisted-ips td { width: auto; } } diff --git a/assets/css/general.min.css b/assets/css/general.min.css index efd673c..737634f 100644 --- a/assets/css/general.min.css +++ b/assets/css/general.min.css @@ -1 +1 @@ -#hcaptcha-message,#setting-error-settings_updated{box-sizing:border-box;max-width:760px}#hcaptcha-options table tbody{background:#fff}#hcaptcha-options table tbody tr{align-self:start;display:grid}#hcaptcha-options table tbody tr th{color:#5c6f8a}#hcaptcha-options table tbody tr td{margin:0;padding:0;position:relative}.hcaptcha-section-keys+table{max-width:760px}.hcaptcha-section-keys+table tbody{display:grid;gap:10px 20px;grid-template-areas:"site-key site-key secret-key secret-key" "sample-hcaptcha sample-hcaptcha check-config reset-notifications";grid-template-columns:repeat(4,1fr);padding:15px 20px}.hcaptcha-section-keys+table tbody th{width:auto}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-site-key{grid-area:site-key}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-secret-key{grid-area:secret-key}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-sample-hcaptcha{grid-area:sample-hcaptcha}.hcaptcha-section-keys+table tbody tr.hcaptcha-general-check-config{grid-area:check-config}.hcaptcha-section-keys+table tbody tr.hcaptcha-reset-notifications{grid-area:reset-notifications}.hcaptcha-section-keys+table tbody tr th{padding:0 0 10px}.hcaptcha-section-keys+table tbody tr td input{width:100%}.hcaptcha-section-appearance+table{max-width:760px}.hcaptcha-section-appearance+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,1fr);padding:15px 20px}.hcaptcha-section-appearance+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-appearance+table tbody tr td select{width:100%}.hcaptcha-section-custom+table{max-width:760px}.hcaptcha-section-custom+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(2,1fr);padding:15px 20px}.hcaptcha-section-custom+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-custom+table tbody tr td{width:max-content}.hcaptcha-section-custom+table tbody tr.hcaptcha-general-config-params td{width:auto}.hcaptcha-section-custom+table tbody tr td textarea{width:100%}.hcaptcha-section-other+table{max-width:760px}.hcaptcha-section-other+table tbody{display:grid;gap:0 20px;grid-template-areas:"logged whitelisted" "recaptcha whitelisted" "network whitelisted" "login-limit login-interval" "delay .";grid-template-columns:repeat(2,1fr);padding:15px 20px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-off-when-logged-in{grid-area:logged}.hcaptcha-section-other+table tbody tr.hcaptcha-general-recaptcha-compat-off{grid-area:recaptcha}.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-limit{grid-area:login-limit;padding-top:15px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-interval{grid-area:login-interval;padding-top:15px}.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips{grid-area:whitelisted}.hcaptcha-section-other+table tbody tr.hcaptcha-general--network-wide{grid-area:network}.hcaptcha-section-other+table tbody tr.hcaptcha-general-delay{grid-area:delay;padding-top:15px}.hcaptcha-section-other+table tbody tr th{padding:0 0 10px;width:auto}.hcaptcha-section-other+table tbody tr.hcaptcha-general--network-wide th,.hcaptcha-section-other+table tbody tr.hcaptcha-general-recaptcha-compat-off th{padding:0}.hcaptcha-section-other+table tbody tr td{width:max-content}.hcaptcha-section-other+table tbody tr.hcaptcha-general-delay td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-interval td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-login-limit td,.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips td{width:auto}.hcaptcha-section-other+table tbody tr td input,.hcaptcha-section-other+table tbody tr td textarea{width:100%}@media (max-width:600px){.hcaptcha-general table tbody tr td{width:auto}.hcaptcha-section-keys+table tbody{grid-template-areas:unset}.hcaptcha-section-keys+table tbody tr{grid-area:unset!important}.hcaptcha-section-other+table tbody{grid-template-areas:unset}.hcaptcha-section-other+table tbody tr{grid-area:unset!important}.hcaptcha-section-other+table tbody tr.hcaptcha-general-whitelisted-ips td{width:auto}} \ No newline at end of file +#procaptcha-message,#setting-error-settings_updated{box-sizing:border-box;max-width:760px}#procaptcha-options table tbody{background:#fff}#procaptcha-options table tbody tr{align-self:start;display:grid}#procaptcha-options table tbody tr th{color:#5c6f8a}#procaptcha-options table tbody tr td{margin:0;padding:0;position:relative}.procaptcha-section-keys+table{max-width:760px}.procaptcha-section-keys+table tbody{display:grid;gap:10px 20px;grid-template-areas:"site-key site-key secret-key secret-key" "sample-procaptcha sample-procaptcha check-config reset-notifications";grid-template-columns:repeat(4,1fr);padding:15px 20px}.procaptcha-section-keys+table tbody th{width:auto}.procaptcha-section-keys+table tbody tr.procaptcha-general-site-key{grid-area:site-key}.procaptcha-section-keys+table tbody tr.procaptcha-general-secret-key{grid-area:secret-key}.procaptcha-section-keys+table tbody tr.procaptcha-general-sample-procaptcha{grid-area:sample-procaptcha}.procaptcha-section-keys+table tbody tr.procaptcha-general-check-config{grid-area:check-config}.procaptcha-section-keys+table tbody tr.procaptcha-reset-notifications{grid-area:reset-notifications}.procaptcha-section-keys+table tbody tr th{padding:0 0 10px}.procaptcha-section-keys+table tbody tr td input{width:100%}.procaptcha-section-appearance+table{max-width:760px}.procaptcha-section-appearance+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,1fr);padding:15px 20px}.procaptcha-section-appearance+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-appearance+table tbody tr td select{width:100%}.procaptcha-section-custom+table{max-width:760px}.procaptcha-section-custom+table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(2,1fr);padding:15px 20px}.procaptcha-section-custom+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-custom+table tbody tr td{width:max-content}.procaptcha-section-custom+table tbody tr.procaptcha-general-config-params td{width:auto}.procaptcha-section-custom+table tbody tr td textarea{width:100%}.procaptcha-section-other+table{max-width:760px}.procaptcha-section-other+table tbody{display:grid;gap:0 20px;grid-template-areas:"logged whitelisted" "recaptcha whitelisted" "network whitelisted" "login-limit login-interval" "delay .";grid-template-columns:repeat(2,1fr);padding:15px 20px}.procaptcha-section-other+table tbody tr.procaptcha-general-off-when-logged-in{grid-area:logged}.procaptcha-section-other+table tbody tr.procaptcha-general-recaptcha-compat-off{grid-area:recaptcha}.procaptcha-section-other+table tbody tr.procaptcha-general-login-limit{grid-area:login-limit;padding-top:15px}.procaptcha-section-other+table tbody tr.procaptcha-general-login-interval{grid-area:login-interval;padding-top:15px}.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips{grid-area:whitelisted}.procaptcha-section-other+table tbody tr.procaptcha-general--network-wide{grid-area:network}.procaptcha-section-other+table tbody tr.procaptcha-general-delay{grid-area:delay;padding-top:15px}.procaptcha-section-other+table tbody tr th{padding:0 0 10px;width:auto}.procaptcha-section-other+table tbody tr.procaptcha-general--network-wide th,.procaptcha-section-other+table tbody tr.procaptcha-general-recaptcha-compat-off th{padding:0}.procaptcha-section-other+table tbody tr td{width:max-content}.procaptcha-section-other+table tbody tr.procaptcha-general-delay td,.procaptcha-section-other+table tbody tr.procaptcha-general-login-interval td,.procaptcha-section-other+table tbody tr.procaptcha-general-login-limit td,.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips td{width:auto}.procaptcha-section-other+table tbody tr td input,.procaptcha-section-other+table tbody tr td textarea{width:100%}@media (max-width:600px){.procaptcha-general table tbody tr td{width:auto}.procaptcha-section-keys+table tbody{grid-template-areas:unset}.procaptcha-section-keys+table tbody tr{grid-area:unset!important}.procaptcha-section-other+table tbody{grid-template-areas:unset}.procaptcha-section-other+table tbody tr{grid-area:unset!important}.procaptcha-section-other+table tbody tr.procaptcha-general-whitelisted-ips td{width:auto}} \ No newline at end of file diff --git a/assets/css/integrations.css b/assets/css/integrations.css index 945e8ed..38ec190 100644 --- a/assets/css/integrations.css +++ b/assets/css/integrations.css @@ -1,16 +1,16 @@ -.hcaptcha-integrations table tbody { +.procaptcha-integrations table tbody { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 10px 20px; } -.hcaptcha-integrations table tr { +.procaptcha-integrations table tr { position: relative; background: #fff; padding: 10px 20px; } -.hcaptcha-integrations table tr:before { +.procaptcha-integrations table tr:before { visibility: hidden; position: absolute; content: ''; @@ -23,14 +23,14 @@ transition: all 1.5s; } -.hcaptcha-integrations table tr.on:before, -.hcaptcha-integrations table tr.off:before { +.procaptcha-integrations table tr.on:before, +.procaptcha-integrations table tr.off:before { visibility: visible; opacity: 0.7; transition: all 1.5s; } -.hcaptcha-integrations table tr:after { +.procaptcha-integrations table tr:after { visibility: hidden; position: absolute; content: ''; @@ -46,8 +46,8 @@ background-image: url( '../images/spinner-white.svg' ); } -.hcaptcha-integrations table tr.on:after, -.hcaptcha-integrations table tr.off:after { +.procaptcha-integrations table tr.on:after, +.procaptcha-integrations table tr.off:after { visibility: visible; opacity: 1; transition: all 1.5s; @@ -56,15 +56,15 @@ background-size: auto 80%; } -.hcaptcha-integrations table tr.on:after { +.procaptcha-integrations table tr.on:after { background-image: url( '../images/spinner-green.svg' ); } -.hcaptcha-integrations table tr.off:after { +.procaptcha-integrations table tr.off:after { background-image: url( '../images/spinner-red.svg' ); } -.hcaptcha-integrations table tr th { +.procaptcha-integrations table tr th { font-size: 16px; height: 28px; padding: 5px 0 0; @@ -76,16 +76,16 @@ width: unset; } -.hcaptcha-integrations-logo { +.procaptcha-integrations-logo { position: relative; } -.hcaptcha-integrations table tr th .hcaptcha-integrations-logo { +.procaptcha-integrations table tr th .procaptcha-integrations-logo { height: 28px; cursor: pointer; } -.hcaptcha-integrations table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations table tr th .procaptcha-integrations-logo:hover::before { content: ''; position: absolute; top: 0; @@ -94,44 +94,44 @@ left: -14px; } -.hcaptcha-integrations > table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations > table tr th .procaptcha-integrations-logo:hover::before { background-color: #d63638; } -.hcaptcha-integrations > table ~ table tr th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations > table ~ table tr th .procaptcha-integrations-logo:hover::before { background-color: #00a32a; } -.hcaptcha-integrations table tr th img { +.procaptcha-integrations table tr th img { max-width: 100%; max-height: 28px; } -.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo { +.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo { cursor: unset; } -.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo:hover::before { +.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo:hover::before { display: none; } -.hcaptcha-integrations table tr td { +.procaptcha-integrations table tr td { padding: 0; margin: 0; } -.hcaptcha-disabled-section { +.procaptcha-disabled-section { margin: 20px 0; } @media (max-width: 1279px) { - .hcaptcha-integrations table tbody { + .procaptcha-integrations table tbody { grid-template-columns: repeat(3, minmax(100px, 1fr)); } } @media (max-width: 1023px) { - .hcaptcha-integrations table tbody { + .procaptcha-integrations table tbody { grid-template-columns: repeat(2, minmax(100px, 1fr)); } } diff --git a/assets/css/integrations.min.css b/assets/css/integrations.min.css index 2c3f42b..0c3569c 100644 --- a/assets/css/integrations.min.css +++ b/assets/css/integrations.min.css @@ -1 +1 @@ -.hcaptcha-integrations table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,minmax(100px,1fr))}.hcaptcha-integrations table tr{background:#fff;padding:10px 20px;position:relative}.hcaptcha-integrations table tr:before{background-color:#f0f0f0;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.hcaptcha-integrations table tr.off:before,.hcaptcha-integrations table tr.on:before{opacity:.7;transition:all 1.5s;visibility:visible}.hcaptcha-integrations table tr:after{background-image:url(../images/spinner-white.svg);background-position:50%;background-repeat:no-repeat;background-size:auto 80%;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.hcaptcha-integrations table tr.off:after,.hcaptcha-integrations table tr.on:after{background-position:50%;background-repeat:no-repeat;background-size:auto 80%;opacity:1;transition:all 1.5s;visibility:visible}.hcaptcha-integrations table tr.on:after{background-image:url(../images/spinner-green.svg)}.hcaptcha-integrations table tr.off:after{background-image:url(../images/spinner-red.svg)}.hcaptcha-integrations table tr th{align-items:center;display:flex;flex-wrap:wrap;font-size:16px;height:28px;justify-content:space-between;margin-bottom:20px;padding:5px 0 0;width:unset}.hcaptcha-integrations-logo{position:relative}.hcaptcha-integrations table tr th .hcaptcha-integrations-logo{cursor:pointer;height:28px}.hcaptcha-integrations table tr th .hcaptcha-integrations-logo:hover:before{bottom:0;content:"";left:-14px;position:absolute;top:0;width:4px}.hcaptcha-integrations>table tr th .hcaptcha-integrations-logo:hover:before{background-color:#d63638}.hcaptcha-integrations>table~table tr th .hcaptcha-integrations-logo:hover:before{background-color:#00a32a}.hcaptcha-integrations table tr th img{max-height:28px;max-width:100%}.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo{cursor:unset}.hcaptcha-integrations table tr.hcaptcha-integrations-wp-status th .hcaptcha-integrations-logo:hover:before{display:none}.hcaptcha-integrations table tr td{margin:0;padding:0}.hcaptcha-disabled-section{margin:20px 0}@media (max-width:1279px){.hcaptcha-integrations table tbody{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media (max-width:1023px){.hcaptcha-integrations table tbody{grid-template-columns:repeat(2,minmax(100px,1fr))}} \ No newline at end of file +.procaptcha-integrations table tbody{display:grid;gap:10px 20px;grid-template-columns:repeat(4,minmax(100px,1fr))}.procaptcha-integrations table tr{background:#fff;padding:10px 20px;position:relative}.procaptcha-integrations table tr:before{background-color:#f0f0f0;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.procaptcha-integrations table tr.off:before,.procaptcha-integrations table tr.on:before{opacity:.7;transition:all 1.5s;visibility:visible}.procaptcha-integrations table tr:after{background-image:url(../images/spinner-white.svg);background-position:50%;background-repeat:no-repeat;background-size:auto 80%;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all 1.5s;visibility:hidden}.procaptcha-integrations table tr.off:after,.procaptcha-integrations table tr.on:after{background-position:50%;background-repeat:no-repeat;background-size:auto 80%;opacity:1;transition:all 1.5s;visibility:visible}.procaptcha-integrations table tr.on:after{background-image:url(../images/spinner-green.svg)}.procaptcha-integrations table tr.off:after{background-image:url(../images/spinner-red.svg)}.procaptcha-integrations table tr th{align-items:center;display:flex;flex-wrap:wrap;font-size:16px;height:28px;justify-content:space-between;margin-bottom:20px;padding:5px 0 0;width:unset}.procaptcha-integrations-logo{position:relative}.procaptcha-integrations table tr th .procaptcha-integrations-logo{cursor:pointer;height:28px}.procaptcha-integrations table tr th .procaptcha-integrations-logo:hover:before{bottom:0;content:"";left:-14px;position:absolute;top:0;width:4px}.procaptcha-integrations>table tr th .procaptcha-integrations-logo:hover:before{background-color:#d63638}.procaptcha-integrations>table~table tr th .procaptcha-integrations-logo:hover:before{background-color:#00a32a}.procaptcha-integrations table tr th img{max-height:28px;max-width:100%}.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo{cursor:unset}.procaptcha-integrations table tr.procaptcha-integrations-wp-status th .procaptcha-integrations-logo:hover:before{display:none}.procaptcha-integrations table tr td{margin:0;padding:0}.procaptcha-disabled-section{margin:20px 0}@media (max-width:1279px){.procaptcha-integrations table tbody{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media (max-width:1023px){.procaptcha-integrations table tbody{grid-template-columns:repeat(2,minmax(100px,1fr))}} \ No newline at end of file diff --git a/assets/css/notifications.css b/assets/css/notifications.css index b65832f..389a3b5 100644 --- a/assets/css/notifications.css +++ b/assets/css/notifications.css @@ -1,4 +1,4 @@ -#hcaptcha-notifications { +#procaptcha-notifications { margin: 5px 0 15px; background: #fff; padding: 15px 20px; @@ -6,7 +6,7 @@ box-sizing: border-box; } -#hcaptcha-notifications-header { +#procaptcha-notifications-header { display: flex; margin-bottom: 10px; padding-bottom: 10px; @@ -19,7 +19,7 @@ column-gap: 3px; } -#hcaptcha-notifications-header::before { +#procaptcha-notifications-header::before { content: ''; background-image: url('../images/notification-bell.svg'); background-size: cover; @@ -28,7 +28,7 @@ height: 30px; } -#hcaptcha-notifications-footer { +#procaptcha-notifications-footer { display: flex; justify-content: space-between; margin-top: 10px; @@ -36,32 +36,32 @@ border-top: 1px solid #c3c4c7; } -#hcaptcha-notifications .hcaptcha-notification { +#procaptcha-notifications .procaptcha-notification { margin: 0; } -.hcaptcha-notification .hcaptcha-notification-title { +.procaptcha-notification .procaptcha-notification-title { margin: 7px 0; padding: 2px; line-height: 1.3; font-weight: 600; } -.hcaptcha-notification { +.procaptcha-notification { display: none; } -#hcaptcha-notifications-header + .hcaptcha-notification { +#procaptcha-notifications-header + .procaptcha-notification { display: block; } -#hcaptcha-navigation { +#procaptcha-navigation { display: flex; justify-content: flex-end; column-gap: 3px; } -#hcaptcha-navigation a { +#procaptcha-navigation a { width: 30px; height: 30px; border: 1px solid #2271b1; @@ -74,22 +74,22 @@ box-sizing: border-box; } -#hcaptcha-navigation a.disabled { +#procaptcha-navigation a.disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; cursor: default; } -#hcaptcha-navigation a.prev::after, -#hcaptcha-navigation a.next::after { +#procaptcha-navigation a.prev::after, +#procaptcha-navigation a.next::after { font-size: 12px; } -#hcaptcha-navigation a.prev::after { +#procaptcha-navigation a.prev::after { content: '<' } -#hcaptcha-navigation a.next::after { +#procaptcha-navigation a.next::after { content: '>'; } diff --git a/assets/css/notifications.min.css b/assets/css/notifications.min.css index 6135c9a..fc10007 100644 --- a/assets/css/notifications.min.css +++ b/assets/css/notifications.min.css @@ -1 +1 @@ -#hcaptcha-notifications{background:#fff;box-sizing:border-box;margin:5px 0 15px;max-width:760px;padding:15px 20px}#hcaptcha-notifications-header{align-items:center;border-bottom:1px solid #c3c4c7;column-gap:3px;display:flex;font-size:14px;font-weight:600;justify-content:flex-start;line-height:1.3;margin-bottom:10px;padding-bottom:10px}#hcaptcha-notifications-header:before{background-image:url(../images/notification-bell.svg);background-size:cover;content:"";height:30px;position:relative;width:30px}#hcaptcha-notifications-footer{border-top:1px solid #c3c4c7;display:flex;justify-content:space-between;margin-top:10px;padding-top:10px}#hcaptcha-notifications .hcaptcha-notification{margin:0}.hcaptcha-notification .hcaptcha-notification-title{font-weight:600;line-height:1.3;margin:7px 0;padding:2px}.hcaptcha-notification{display:none}#hcaptcha-notifications-header+.hcaptcha-notification{display:block}#hcaptcha-navigation{column-gap:3px;display:flex;justify-content:flex-end}#hcaptcha-navigation a{background:#f6f7f7;border:1px solid #2271b1;border-radius:3px;box-sizing:border-box;cursor:pointer;font-size:16px;height:30px;line-height:25px;text-align:center;width:30px}#hcaptcha-navigation a.disabled{background:#f6f7f7;border-color:#dcdcde;color:#a7aaad;cursor:default}#hcaptcha-navigation a.next:after,#hcaptcha-navigation a.prev:after{font-size:12px}#hcaptcha-navigation a.prev:after{content:"<"}#hcaptcha-navigation a.next:after{content:">"} \ No newline at end of file +#procaptcha-notifications{background:#fff;box-sizing:border-box;margin:5px 0 15px;max-width:760px;padding:15px 20px}#procaptcha-notifications-header{align-items:center;border-bottom:1px solid #c3c4c7;column-gap:3px;display:flex;font-size:14px;font-weight:600;justify-content:flex-start;line-height:1.3;margin-bottom:10px;padding-bottom:10px}#procaptcha-notifications-header:before{background-image:url(../images/notification-bell.svg);background-size:cover;content:"";height:30px;position:relative;width:30px}#procaptcha-notifications-footer{border-top:1px solid #c3c4c7;display:flex;justify-content:space-between;margin-top:10px;padding-top:10px}#procaptcha-notifications .procaptcha-notification{margin:0}.procaptcha-notification .procaptcha-notification-title{font-weight:600;line-height:1.3;margin:7px 0;padding:2px}.procaptcha-notification{display:none}#procaptcha-notifications-header+.procaptcha-notification{display:block}#procaptcha-navigation{column-gap:3px;display:flex;justify-content:flex-end}#procaptcha-navigation a{background:#f6f7f7;border:1px solid #2271b1;border-radius:3px;box-sizing:border-box;cursor:pointer;font-size:16px;height:30px;line-height:25px;text-align:center;width:30px}#procaptcha-navigation a.disabled{background:#f6f7f7;border-color:#dcdcde;color:#a7aaad;cursor:default}#procaptcha-navigation a.next:after,#procaptcha-navigation a.prev:after{font-size:12px}#procaptcha-navigation a.prev:after{content:"<"}#procaptcha-navigation a.next:after{content:">"} \ No newline at end of file diff --git a/assets/css/settings-base.css b/assets/css/settings-base.css index 0c4f5e5..3e99f98 100644 --- a/assets/css/settings-base.css +++ b/assets/css/settings-base.css @@ -1,28 +1,28 @@ -body.settings_page_hcaptcha { +body.settings_page_procaptcha { background: #f0f2f5; color: #5c6f8a; } -.wrap h1.hcaptcha-settings-header { +.wrap h1.procaptcha-settings-header { font-size: 34px; font-weight: bold; display: flex; align-items: center; } -.hcaptcha-logo { +.procaptcha-logo { height: 64px; margin: 10px 5px 10px 0; } -.hcaptcha-settings-tabs { +.procaptcha-settings-tabs { line-height: 4.5em; background: #fff; margin: 10px -20px 0 -20px; padding: 0 20px; } -.hcaptcha-settings-tab { +.procaptcha-settings-tab { display: inline-block; font-size: 1.1em; text-decoration: none; @@ -31,37 +31,37 @@ body.settings_page_hcaptcha { border-bottom: 2px solid transparent; } -.hcaptcha-settings-tab:hover { +.procaptcha-settings-tab:hover { color: #666; border-bottom-color: #025176 !important; border-bottom: 2px solid; } -.hcaptcha-settings-tab.active { +.procaptcha-settings-tab.active { border-bottom: 2px solid #0075ab; } -#hcaptcha-options h2 { +#procaptcha-options h2 { font-size: 1.5em; color: #5c6f8a; } -#hcaptcha-options h3 { +#procaptcha-options h3 { margin: 1.5em 0 1em; color: #5c6f8a; } -#hcaptcha-options .notice-dismiss:before { +#procaptcha-options .notice-dismiss:before { color: #5c6f8a; } -#hcaptcha-options table tbody tr td { +#procaptcha-options table tbody tr td { padding: 0; margin: 0; position: relative; } -#hcaptcha-options table tr td input[type="checkbox"] { +#procaptcha-options table tr td input[type="checkbox"] { display: inline; border: none; box-shadow: none; @@ -70,7 +70,7 @@ body.settings_page_hcaptcha { width: 0; } -#hcaptcha-options table tr td input[type="checkbox"]::before { +#procaptcha-options table tr td input[type="checkbox"]::before { background: no-repeat url('../images/checkbox-off.svg'); margin: 0; width: 2.4792rem; @@ -80,48 +80,48 @@ body.settings_page_hcaptcha { float: left; } -#hcaptcha-options table tr td input[type="checkbox"]:checked::before { +#procaptcha-options table tr td input[type="checkbox"]:checked::before { background: no-repeat url('../images/checkbox-on.svg'); } -#hcaptcha-options fieldset:disabled { +#procaptcha-options fieldset:disabled { color: #dadada; } -#hcaptcha-options .button-primary { +#procaptcha-options .button-primary { background-color: #026593; color: #ffffff; border-color: #026593; } -#hcaptcha-options .button-primary:hover { +#procaptcha-options .button-primary:hover { background-color: #025176; } -#hcaptcha-options .button-secondary { +#procaptcha-options .button-secondary { background-color: #ffffff; color: #026593; border-color: #026593; } -#hcaptcha-options .button-secondary:hover { +#procaptcha-options .button-secondary:hover { background-color: #cccccc; } -#hcaptcha-options a { +#procaptcha-options a { color: #0075ab; } -#hcaptcha-navigation a { +#procaptcha-navigation a { border-color: #0075ab; } -#hcaptcha-options a.hcaptcha-settings-tab { +#procaptcha-options a.procaptcha-settings-tab { color: #5c6f8a; } /* Helper */ -#hcaptcha-options .helper::before { +#procaptcha-options .helper::before { content: '?'; position: absolute; right: 0; @@ -135,12 +135,12 @@ body.settings_page_hcaptcha { border-radius: 1.2em; } -#hcaptcha-options fieldset + .helper::before { +#procaptcha-options fieldset + .helper::before { transform: translate(25px, -0.8em); top: 50%; } -#hcaptcha-options .helper .helper-content { +#procaptcha-options .helper .helper-content { display: none; position: absolute; top: 0; @@ -153,22 +153,22 @@ body.settings_page_hcaptcha { box-sizing: border-box; } -#hcaptcha-options fieldset + .helper .helper-content { +#procaptcha-options fieldset + .helper .helper-content { top: 50%; transform: translate(25px, 25px); width: calc(100% + 25px); } -#hcaptcha-options .helper:hover { +#procaptcha-options .helper:hover { cursor: help; } -#hcaptcha-options .helper:hover .helper-content { +#procaptcha-options .helper:hover .helper-content { display: block; z-index: 1; } -#hcaptcha-options .helper .helper-content::after { +#procaptcha-options .helper .helper-content::after { content: ''; border: solid 10px transparent; border-bottom-color: #5c6f8a; @@ -178,15 +178,15 @@ body.settings_page_hcaptcha { transform: translateY(-100%); } -#hcaptcha-options .helper .helper-content a { +#procaptcha-options .helper .helper-content a { color: #fff; } -#hcaptcha-message { +#procaptcha-message { z-index: 1; } -#hcaptcha-message p { +#procaptcha-message p { font-size: 13px; font-weight: 600; line-height: 1.5; @@ -194,24 +194,24 @@ body.settings_page_hcaptcha { } @media (max-width: 600px) { - #hcaptcha-options table tbody { + #procaptcha-options table tbody { grid-template-columns: 1fr; } - #hcaptcha-options table tbody tr { + #procaptcha-options table tbody tr { position: relative; } - #hcaptcha-options fieldset + .helper::before { + #procaptcha-options fieldset + .helper::before { transform: translate(0px, -0.7em); } - #hcaptcha-options fieldset + .helper .helper-content { + #procaptcha-options fieldset + .helper .helper-content { transform: translate(0, 25px); width: 100%; } - #hcaptcha-options .helper { + #procaptcha-options .helper { z-index: 1; } } diff --git a/assets/css/settings-base.min.css b/assets/css/settings-base.min.css index 09ded85..0841e4d 100644 --- a/assets/css/settings-base.min.css +++ b/assets/css/settings-base.min.css @@ -1 +1 @@ -body.settings_page_hcaptcha{background:#f0f2f5;color:#5c6f8a}.wrap h1.hcaptcha-settings-header{align-items:center;display:flex;font-size:34px;font-weight:700}.hcaptcha-logo{height:64px;margin:10px 5px 10px 0}.hcaptcha-settings-tabs{background:#fff;line-height:4.5em;margin:10px -20px 0;padding:0 20px}.hcaptcha-settings-tab{border-bottom:2px solid transparent;color:#646970;display:inline-block;font-size:1.1em;margin-right:30px;text-decoration:none}.hcaptcha-settings-tab:hover{border-bottom-color:#025176!important;border-bottom:2px solid;color:#666}.hcaptcha-settings-tab.active{border-bottom:2px solid #0075ab}#hcaptcha-options h2{color:#5c6f8a;font-size:1.5em}#hcaptcha-options h3{color:#5c6f8a;margin:1.5em 0 1em}#hcaptcha-options .notice-dismiss:before{color:#5c6f8a}#hcaptcha-options table tbody tr td{margin:0;padding:0;position:relative}#hcaptcha-options table tr td input[type=checkbox]{border:none;box-shadow:none;display:inline;margin:0 4px 0 0;min-width:0;width:0}#hcaptcha-options table tr td input[type=checkbox]:before{background:no-repeat url(../images/checkbox-off.svg);content:"";display:inline-block;float:left;height:1.3125rem;margin:0;width:2.4792rem}#hcaptcha-options table tr td input[type=checkbox]:checked:before{background:no-repeat url(../images/checkbox-on.svg)}#hcaptcha-options fieldset:disabled{color:#dadada}#hcaptcha-options .button-primary{background-color:#026593;border-color:#026593;color:#fff}#hcaptcha-options .button-primary:hover{background-color:#025176}#hcaptcha-options .button-secondary{background-color:#fff;border-color:#026593;color:#026593}#hcaptcha-options .button-secondary:hover{background-color:#ccc}#hcaptcha-options a{color:#0075ab}#hcaptcha-navigation a{border-color:#0075ab}#hcaptcha-options a.hcaptcha-settings-tab{color:#5c6f8a}#hcaptcha-options .helper:before{background:#5c6f8a;border-radius:1.2em;color:#fff;content:"?";height:1.2em;position:absolute;right:0;text-align:center;top:0;transform:translateY(-26px);width:1.2em}#hcaptcha-options fieldset+.helper:before{top:50%;transform:translate(25px,-.8em)}#hcaptcha-options .helper .helper-content{background:#5c6f8a;box-sizing:border-box;color:#f0f2f5;display:none;padding:.5em 1em;position:absolute;right:0;top:0;transform:translate(1px,10px);width:100%}#hcaptcha-options fieldset+.helper .helper-content{top:50%;transform:translate(25px,25px);width:calc(100% + 25px)}#hcaptcha-options .helper:hover{cursor:help}#hcaptcha-options .helper:hover .helper-content{display:block;z-index:1}#hcaptcha-options .helper .helper-content:after{border:10px solid transparent;border-bottom-color:#5c6f8a;content:"";position:absolute;right:0;top:0;transform:translateY(-100%)}#hcaptcha-options .helper .helper-content a{color:#fff}#hcaptcha-message{z-index:1}#hcaptcha-message p{font-size:13px;font-weight:600;line-height:1.5;margin:.5em 0}@media (max-width:600px){#hcaptcha-options table tbody{grid-template-columns:1fr}#hcaptcha-options table tbody tr{position:relative}#hcaptcha-options fieldset+.helper:before{transform:translateY(-.7em)}#hcaptcha-options fieldset+.helper .helper-content{transform:translateY(25px);width:100%}#hcaptcha-options .helper{z-index:1}} \ No newline at end of file +body.settings_page_procaptcha{background:#f0f2f5;color:#5c6f8a}.wrap h1.procaptcha-settings-header{align-items:center;display:flex;font-size:34px;font-weight:700}.procaptcha-logo{height:64px;margin:10px 5px 10px 0}.procaptcha-settings-tabs{background:#fff;line-height:4.5em;margin:10px -20px 0;padding:0 20px}.procaptcha-settings-tab{border-bottom:2px solid transparent;color:#646970;display:inline-block;font-size:1.1em;margin-right:30px;text-decoration:none}.procaptcha-settings-tab:hover{border-bottom-color:#025176!important;border-bottom:2px solid;color:#666}.procaptcha-settings-tab.active{border-bottom:2px solid #0075ab}#procaptcha-options h2{color:#5c6f8a;font-size:1.5em}#procaptcha-options h3{color:#5c6f8a;margin:1.5em 0 1em}#procaptcha-options .notice-dismiss:before{color:#5c6f8a}#procaptcha-options table tbody tr td{margin:0;padding:0;position:relative}#procaptcha-options table tr td input[type=checkbox]{border:none;box-shadow:none;display:inline;margin:0 4px 0 0;min-width:0;width:0}#procaptcha-options table tr td input[type=checkbox]:before{background:no-repeat url(../images/checkbox-off.svg);content:"";display:inline-block;float:left;height:1.3125rem;margin:0;width:2.4792rem}#procaptcha-options table tr td input[type=checkbox]:checked:before{background:no-repeat url(../images/checkbox-on.svg)}#procaptcha-options fieldset:disabled{color:#dadada}#procaptcha-options .button-primary{background-color:#026593;border-color:#026593;color:#fff}#procaptcha-options .button-primary:hover{background-color:#025176}#procaptcha-options .button-secondary{background-color:#fff;border-color:#026593;color:#026593}#procaptcha-options .button-secondary:hover{background-color:#ccc}#procaptcha-options a{color:#0075ab}#procaptcha-navigation a{border-color:#0075ab}#procaptcha-options a.procaptcha-settings-tab{color:#5c6f8a}#procaptcha-options .helper:before{background:#5c6f8a;border-radius:1.2em;color:#fff;content:"?";height:1.2em;position:absolute;right:0;text-align:center;top:0;transform:translateY(-26px);width:1.2em}#procaptcha-options fieldset+.helper:before{top:50%;transform:translate(25px,-.8em)}#procaptcha-options .helper .helper-content{background:#5c6f8a;box-sizing:border-box;color:#f0f2f5;display:none;padding:.5em 1em;position:absolute;right:0;top:0;transform:translate(1px,10px);width:100%}#procaptcha-options fieldset+.helper .helper-content{top:50%;transform:translate(25px,25px);width:calc(100% + 25px)}#procaptcha-options .helper:hover{cursor:help}#procaptcha-options .helper:hover .helper-content{display:block;z-index:1}#procaptcha-options .helper .helper-content:after{border:10px solid transparent;border-bottom-color:#5c6f8a;content:"";position:absolute;right:0;top:0;transform:translateY(-100%)}#procaptcha-options .helper .helper-content a{color:#fff}#procaptcha-message{z-index:1}#procaptcha-message p{font-size:13px;font-weight:600;line-height:1.5;margin:.5em 0}@media (max-width:600px){#procaptcha-options table tbody{grid-template-columns:1fr}#procaptcha-options table tbody tr{position:relative}#procaptcha-options fieldset+.helper:before{transform:translateY(-.7em)}#procaptcha-options fieldset+.helper .helper-content{transform:translateY(25px);width:100%}#procaptcha-options .helper{z-index:1}} \ No newline at end of file diff --git a/assets/css/system-info.css b/assets/css/system-info.css index e42a8e8..68c7cee 100644 --- a/assets/css/system-info.css +++ b/assets/css/system-info.css @@ -1,9 +1,9 @@ -#hcaptcha-system-info-wrap { +#procaptcha-system-info-wrap { position: relative; max-width: 1000px; } -#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text { +#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text { position: absolute; top: 10px; right: 26px; @@ -11,13 +11,13 @@ cursor: pointer; } -#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before { +#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before { width: 30px; height: 30px; font-size: 30px; } -#hcaptcha-options .helper { +#procaptcha-options .helper { position: absolute; width: 30px; height: 30px; @@ -26,11 +26,11 @@ z-index: 1; } -#hcaptcha-options .helper:hover { +#procaptcha-options .helper:hover { cursor: pointer; } -#hcaptcha-options .helper::before { +#procaptcha-options .helper::before { content: ''; top: 0; left: 0; @@ -38,7 +38,7 @@ background: transparent; } -#hcaptcha-options .helper:hover .helper-content { +#procaptcha-options .helper:hover .helper-content { display: block; z-index: 1; max-width: 300px; @@ -46,7 +46,7 @@ transform: translate(-6px, 38px); } -textarea#hcaptcha-system-info { +textarea#procaptcha-system-info { width: 100%; height: 450px; font-size: 12px; diff --git a/assets/css/system-info.min.css b/assets/css/system-info.min.css index 5eefedf..63b1ce0 100644 --- a/assets/css/system-info.min.css +++ b/assets/css/system-info.min.css @@ -1 +1 @@ -#hcaptcha-system-info-wrap{max-width:1000px;position:relative}#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text{cursor:pointer;opacity:.7;position:absolute;right:26px;top:10px}#hcaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before{font-size:30px;height:30px;width:30px}#hcaptcha-options .helper{height:30px;position:absolute;right:26px;top:10px;width:30px;z-index:1}#hcaptcha-options .helper:hover{cursor:pointer}#hcaptcha-options .helper:before{background:transparent;content:"";left:0;top:0;transform:translate(0)}#hcaptcha-options .helper:hover .helper-content{display:block;max-width:300px;transform:translate(-6px,38px);width:max-content;z-index:1}textarea#hcaptcha-system-info{background:#fff;font-family:Consolas,Monaco,monospace;font-size:12px;height:450px;overflow:auto;padding:20px;white-space:pre;width:100%} \ No newline at end of file +#procaptcha-system-info-wrap{max-width:1000px;position:relative}#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text{cursor:pointer;opacity:.7;position:absolute;right:26px;top:10px}#procaptcha-system-info-wrap .dashicons-before.dashicons-media-text:before{font-size:30px;height:30px;width:30px}#procaptcha-options .helper{height:30px;position:absolute;right:26px;top:10px;width:30px;z-index:1}#procaptcha-options .helper:hover{cursor:pointer}#procaptcha-options .helper:before{background:transparent;content:"";left:0;top:0;transform:translate(0)}#procaptcha-options .helper:hover .helper-content{display:block;max-width:300px;transform:translate(-6px,38px);width:max-content;z-index:1}textarea#procaptcha-system-info{background:#fff;font-family:Consolas,Monaco,monospace;font-size:12px;height:450px;overflow:auto;padding:20px;white-space:pre;width:100%} \ No newline at end of file diff --git a/assets/js/admin-elementor-pro.js b/assets/js/admin-elementor-pro.js index 0d1f7a4..47f3896 100644 --- a/assets/js/admin-elementor-pro.js +++ b/assets/js/admin-elementor-pro.js @@ -3,22 +3,22 @@ /** * @param config.setup_message * @param config.site_key - * @param config.hcaptcha_theme - * @param config.hcaptcha_size + * @param config.procaptcha_theme + * @param config.procaptcha_size * @param item.field_type * @param item.custom_id * @param item.css_classes */ -class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { +class PROCAPTCHAAdminElementorPro extends elementorModules.editor.utils.Module { /** - * Get hCaptcha form. + * Get procaptcha form. * * @param {Object} item * - * @return {string} hCaptcha form. + * @return {string} procaptcha form. */ - static getHCaptchaForm( item ) { + static getPROCAPTCHAForm( item ) { const config = elementorPro.config.forms[ item.field_type ]; if ( ! config.enabled ) { @@ -29,12 +29,12 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { ); } - let hCaptchaData = 'data-sitekey="' + config.site_key + '"'; - hCaptchaData += ' data-theme="' + config.hcaptcha_theme + '"'; - hCaptchaData += ' data-size="' + config.hcaptcha_size + '"'; - hCaptchaData += ' data-auto="false"'; + let pCAPTCHAData = 'data-sitekey="' + config.site_key + '"'; + pCAPTCHAData += ' data-theme="' + config.procaptcha_theme + '"'; + pCAPTCHAData += ' data-size="' + config.procaptcha_size + '"'; + pCAPTCHAData += ' data-auto="false"'; - return '
'; + return '
'; } renderField( inputField, item ) { @@ -43,17 +43,17 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { item.custom_id + '">'; inputField += - '
'; - inputField += HCaptchaAdminElementorPro.getHCaptchaForm( item ); + inputField += PROCAPTCHAAdminElementorPro.getPROCAPTCHAForm( item ); inputField += '
'; inputField += ''; return inputField; } filterItem( item ) { - if ( 'hcaptcha' === item.field_type ) { + if ( 'procaptcha' === item.field_type ) { item.field_label = false; } @@ -66,7 +66,7 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { this.filterItem ); elementor.hooks.addFilter( - 'elementor_pro/forms/content_template/field/hcaptcha', + 'elementor_pro/forms/content_template/field/procaptcha', this.renderField, 10, 2 @@ -74,4 +74,4 @@ class HCaptchaAdminElementorPro extends elementorModules.editor.utils.Module { } } -window.hCaptchaAdminElementorPro = new HCaptchaAdminElementorPro(); +window.pCAPTCHAAdminElementorPro = new PROCAPTCHAAdminElementorPro(); diff --git a/assets/js/admin-elementor-pro.min.js b/assets/js/admin-elementor-pro.min.js index 5779204..f4d1801 100644 --- a/assets/js/admin-elementor-pro.min.js +++ b/assets/js/admin-elementor-pro.min.js @@ -1 +1 @@ -(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,r){for(var n=0;n'+t.setup_message+"";var r='data-sitekey="'+t.site_key+'"';return r+=' data-theme="'+t.hcaptcha_theme+'"',r+=' data-size="'+t.hcaptcha_size+'"','
"}}],(i=[{key:"renderField",value:function(e,t){return e+='
',e+='
',e+=u.getHCaptchaForm(t),e+="
",e+="
"}},{key:"filterItem",value:function(e){return"hcaptcha"===e.field_type&&(e.field_label=!1),e}},{key:"onInit",value:function(){elementor.hooks.addFilter("elementor_pro/forms/content_template/item",this.filterItem),elementor.hooks.addFilter("elementor_pro/forms/content_template/field/hcaptcha",this.renderField,10,2)}}])&&t(o.prototype,i),c&&t(o,c),Object.defineProperty(o,"prototype",{writable:!1}),u}();window.hCaptchaAdminElementorPro=new i})(); \ No newline at end of file +(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,r){for(var n=0;n'+t.setup_message+"";var r='data-sitekey="'+t.site_key+'"';return r+=' data-theme="'+t.procaptcha_theme+'"',r+=' data-size="'+t.procaptcha_size+'"','
"}}],(i=[{key:"renderField",value:function(e,t){return e+='
',e+='
',e+=u.getPROCAPTCHAForm(t),e+="
",e+="
"}},{key:"filterItem",value:function(e){return"procaptcha"===e.field_type&&(e.field_label=!1),e}},{key:"onInit",value:function(){elementor.hooks.addFilter("elementor_pro/forms/content_template/item",this.filterItem),elementor.hooks.addFilter("elementor_pro/forms/content_template/field/procaptcha",this.renderField,10,2)}}])&&t(o.prototype,i),c&&t(o,c),Object.defineProperty(o,"prototype",{writable:!1}),u}();window.pCAPTCHAAdminElementorPro=new i})(); \ No newline at end of file diff --git a/assets/js/admin-fluentform.js b/assets/js/admin-fluentform.js index a940c8a..f93cddb 100644 --- a/assets/js/admin-fluentform.js +++ b/assets/js/admin-fluentform.js @@ -1,18 +1,18 @@ -/* global jQuery, HCaptchaFluentFormObject */ +/* global jQuery, PROCAPTCHAFluentFormObject */ /** - * @param HCaptchaFluentFormObject.noticeLabel - * @param HCaptchaFluentFormObject.noticeDescription + * @param PROCAPTCHAFluentFormObject.noticeLabel + * @param PROCAPTCHAFluentFormObject.noticeDescription */ jQuery( document ).ready( function( $ ) { if ( ! window.location.href.includes( 'page=fluent_forms_settings' ) ) { return; } - const $hcaptchaWrap = $( '.ff_hcaptcha_wrap' ); + const $procaptchaWrap = $( '.ff_procaptcha_wrap' ); - $hcaptchaWrap.find( '.ff_card_head h5' ) - .html( HCaptchaFluentFormObject.noticeLabel ).css( 'display', 'block' ); - $hcaptchaWrap.find( '.ff_card_head p' ).first() - .html( HCaptchaFluentFormObject.noticeDescription ).css( 'display', 'block' ); + $procaptchaWrap.find( '.ff_card_head h5' ) + .html( PROCAPTCHAFluentFormObject.noticeLabel ).css( 'display', 'block' ); + $procaptchaWrap.find( '.ff_card_head p' ).first() + .html( PROCAPTCHAFluentFormObject.noticeDescription ).css( 'display', 'block' ); } ); diff --git a/assets/js/admin-fluentform.min.js b/assets/js/admin-fluentform.min.js index ea9991e..db21906 100644 --- a/assets/js/admin-fluentform.min.js +++ b/assets/js/admin-fluentform.min.js @@ -1 +1 @@ -jQuery(document).ready((function(c){if(window.location.href.includes("page=fluent_forms_settings")){var t=c(".ff_hcaptcha_wrap");t.find(".ff_card_head h5").html(HCaptchaFluentFormObject.noticeLabel).css("display","block"),t.find(".ff_card_head p").first().html(HCaptchaFluentFormObject.noticeDescription).css("display","block")}})); \ No newline at end of file +jQuery(document).ready((function(c){if(window.location.href.includes("page=fluent_forms_settings")){var t=c(".ff_procaptcha_wrap");t.find(".ff_card_head h5").html(PROCAPTCHAFluentFormObject.noticeLabel).css("display","block"),t.find(".ff_card_head p").first().html(PROCAPTCHAFluentFormObject.noticeDescription).css("display","block")}})); \ No newline at end of file diff --git a/assets/js/admin-forminator.js b/assets/js/admin-forminator.js index 7820e51..1476a55 100644 --- a/assets/js/admin-forminator.js +++ b/assets/js/admin-forminator.js @@ -1,8 +1,8 @@ -/* global jQuery, HCaptchaForminatorObject */ +/* global jQuery, PROCAPTCHAForminatorObject */ /** - * @param HCaptchaForminatorObject.noticeLabel - * @param HCaptchaForminatorObject.noticeDescription + * @param PROCAPTCHAForminatorObject.noticeLabel + * @param PROCAPTCHAForminatorObject.noticeDescription */ jQuery( document ).on( 'ajaxSuccess', function( event, xhr, settings ) { const params = new URLSearchParams( settings.data ); @@ -11,7 +11,7 @@ jQuery( document ).on( 'ajaxSuccess', function( event, xhr, settings ) { return; } - window.hCaptchaBindEvents(); + window.pCAPTCHABindEvents(); } ); jQuery( document ).ready( function( $ ) { @@ -19,12 +19,12 @@ jQuery( document ).ready( function( $ ) { return; } - const $hcaptchaTab = $( '#hcaptcha-tab' ); + const $procaptchaTab = $( '#procaptcha-tab' ); - $hcaptchaTab.find( '.sui-settings-label' ).first() - .html( HCaptchaForminatorObject.noticeLabel ).css( 'display', 'block' ); - $hcaptchaTab.find( '.sui-description' ).first() - .html( HCaptchaForminatorObject.noticeDescription ).css( 'display', 'block' ); + $procaptchaTab.find( '.sui-settings-label' ).first() + .html( PROCAPTCHAForminatorObject.noticeLabel ).css( 'display', 'block' ); + $procaptchaTab.find( '.sui-description' ).first() + .html( PROCAPTCHAForminatorObject.noticeDescription ).css( 'display', 'block' ); } ); document.addEventListener( 'DOMContentLoaded', function() { @@ -42,26 +42,26 @@ document.addEventListener( 'DOMContentLoaded', function() { if ( ! ( mutation.type === 'attributes' && - mutation.target.id === 'forminator-field-hcaptcha_size' + mutation.target.id === 'forminator-field-procaptcha_size' ) ) { continue; } - const hCaptchaButton = document.querySelectorAll( '#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item' )[ 1 ]; + const pCAPTCHAButton = document.querySelectorAll( '#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item' )[ 1 ]; - if ( hCaptchaButton === undefined || ! hCaptchaButton.classList.contains( 'active' ) ) { + if ( pCAPTCHAButton === undefined || ! pCAPTCHAButton.classList.contains( 'active' ) ) { return; } - const content = hCaptchaButton.closest( '.sui-tab-content' ); + const content = pCAPTCHAButton.closest( '.sui-tab-content' ); const rows = content.querySelectorAll( '.sui-box-settings-row' ); [ ...rows ].map( ( row, index ) => { if ( index === 1 ) { - row.querySelector( '.sui-settings-label' ).innerHTML = HCaptchaForminatorObject.noticeLabel; - row.querySelector( '.sui-description' ).innerHTML = HCaptchaForminatorObject.noticeDescription; + row.querySelector( '.sui-settings-label' ).innerHTML = PROCAPTCHAForminatorObject.noticeLabel; + row.querySelector( '.sui-description' ).innerHTML = PROCAPTCHAForminatorObject.noticeDescription; row.querySelector( '.sui-form-field' ).style.display = 'none'; } diff --git a/assets/js/admin-forminator.min.js b/assets/js/admin-forminator.min.js index 11e211f..469e394 100644 --- a/assets/js/admin-forminator.min.js +++ b/assets/js/admin-forminator.min.js @@ -1 +1 @@ -(()=>{function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if("attributes"===i.type&&"forminator-field-hcaptcha_size"===i.target.id){var a=document.querySelectorAll("#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item")[1];if(void 0===a||!a.classList.contains("active"))return;return void t(a.closest(".sui-tab-content").querySelectorAll(".sui-box-settings-row")).map((function(t,e){return 1===e&&(t.querySelector(".sui-settings-label").innerHTML=HCaptchaForminatorObject.noticeLabel,t.querySelector(".sui-description").innerHTML=HCaptchaForminatorObject.noticeDescription,t.querySelector(".sui-form-field").style.display="none"),e>1&&(t.style.display="none"),t}))}}}catch(t){o.e(t)}finally{o.f()}})).observe(document.body,{attributes:!0,subtree:!0})}}))})(); \ No newline at end of file +(()=>{function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if("attributes"===i.type&&"forminator-field-procaptcha_size"===i.target.id){var a=document.querySelectorAll("#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item")[1];if(void 0===a||!a.classList.contains("active"))return;return void t(a.closest(".sui-tab-content").querySelectorAll(".sui-box-settings-row")).map((function(t,e){return 1===e&&(t.querySelector(".sui-settings-label").innerHTML=PROCAPTCHAForminatorObject.noticeLabel,t.querySelector(".sui-description").innerHTML=PROCAPTCHAForminatorObject.noticeDescription,t.querySelector(".sui-form-field").style.display="none"),e>1&&(t.style.display="none"),t}))}}}catch(t){o.e(t)}finally{o.f()}})).observe(document.body,{attributes:!0,subtree:!0})}}))})(); \ No newline at end of file diff --git a/assets/js/admin-gravity-forms.js b/assets/js/admin-gravity-forms.js index e2e44f9..25fad8e 100644 --- a/assets/js/admin-gravity-forms.js +++ b/assets/js/admin-gravity-forms.js @@ -1,13 +1,13 @@ -/* global gform, GetFieldsByType, HCaptchaGravityFormsObject */ +/* global gform, GetFieldsByType, PROCAPTCHAGravityFormsObject */ /** - * @param HCaptchaGravityFormsObject.onlyOne + * @param PROCAPTCHAGravityFormsObject.onlyOne */ -window.SetDefaultValues_hcaptcha = function( field ) { +window.SetDefaultValues_procaptcha = function( field ) { field.inputs = null; field.displayOnly = true; - field.label = 'hCaptcha'; + field.label = 'procaptcha'; field.labelPlacement = 'hidden_label'; return field; @@ -16,9 +16,9 @@ window.SetDefaultValues_hcaptcha = function( field ) { document.addEventListener( 'DOMContentLoaded', function() { gform.addFilter( 'gform_form_editor_can_field_be_added', ( value, type ) => { - if ( type === 'hcaptcha' && GetFieldsByType( [ 'hcaptcha' ] ).length > 0 ) { + if ( type === 'procaptcha' && GetFieldsByType( [ 'procaptcha' ] ).length > 0 ) { // eslint-disable-next-line no-alert - alert( HCaptchaGravityFormsObject.onlyOne ); + alert( PROCAPTCHAGravityFormsObject.onlyOne ); return false; } diff --git a/assets/js/admin-gravity-forms.min.js b/assets/js/admin-gravity-forms.min.js index a356c24..c237d2b 100644 --- a/assets/js/admin-gravity-forms.min.js +++ b/assets/js/admin-gravity-forms.min.js @@ -1 +1 @@ -window.SetDefaultValues_hcaptcha=function(e){return e.inputs=null,e.displayOnly=!0,e.label="hCaptcha",e.labelPlacement="hidden_label",e},document.addEventListener("DOMContentLoaded",(function(){gform.addFilter("gform_form_editor_can_field_be_added",(function(e,t){return"hcaptcha"===t&&GetFieldsByType(["hcaptcha"]).length>0?(alert(HCaptchaGravityFormsObject.onlyOne),!1):e}))})); \ No newline at end of file +window.SetDefaultValues_procaptcha=function(e){return e.inputs=null,e.displayOnly=!0,e.label="procaptcha",e.labelPlacement="hidden_label",e},document.addEventListener("DOMContentLoaded",(function(){gform.addFilter("gform_form_editor_can_field_be_added",(function(e,t){return"procaptcha"===t&&GetFieldsByType(["procaptcha"]).length>0?(alert(PROCAPTCHAGravityFormsObject.onlyOne),!1):e}))})); \ No newline at end of file diff --git a/assets/js/admin-kadence-advanced.js b/assets/js/admin-kadence-advanced.js index ecbea44..d593048 100644 --- a/assets/js/admin-kadence-advanced.js +++ b/assets/js/admin-kadence-advanced.js @@ -1,9 +1,9 @@ -/* global HCaptchaKadenceAdvancedFormObject */ +/* global PROCAPTCHAKadenceAdvancedFormObject */ // noinspection JSUnusedLocalSymbols /** - * @param HCaptchaKadenceAdvancedFormObject.noticeLabel - * @param HCaptchaKadenceAdvancedFormObject.noticeDescription + * @param PROCAPTCHAKadenceAdvancedFormObject.noticeLabel + * @param PROCAPTCHAKadenceAdvancedFormObject.noticeDescription */ document.addEventListener( 'DOMContentLoaded', function() { const panelClass = 'components-panel__body'; @@ -55,14 +55,14 @@ document.addEventListener( 'DOMContentLoaded', function() { return; } - const hasHCaptcha = [ ...select.options ].reduce( + const hasPROCAPTCHA = [ ...select.options ].reduce( ( accumulator, currentOption ) => { - return accumulator || currentOption.value === 'hcaptcha'; + return accumulator || currentOption.value === 'procaptcha'; }, false ); - if ( ! hasHCaptcha ) { + if ( ! hasPROCAPTCHA ) { return; } @@ -74,14 +74,14 @@ document.addEventListener( 'DOMContentLoaded', function() { return input; } ); - const noticeClass = 'hcaptcha-notice'; + const noticeClass = 'procaptcha-notice'; let notice = panel.querySelector( '.' + noticeClass ); if ( notice ) { notice.remove(); } - if ( select.value !== 'hcaptcha' ) { + if ( select.value !== 'procaptcha' ) { return; } @@ -89,10 +89,10 @@ document.addEventListener( 'DOMContentLoaded', function() { notice.classList.add( noticeClass ); const label = document.createElement( 'label' ); - label.innerHTML = HCaptchaKadenceAdvancedFormObject.noticeLabel; + label.innerHTML = PROCAPTCHAKadenceAdvancedFormObject.noticeLabel; const description = document.createElement( 'p' ); - description.innerHTML = HCaptchaKadenceAdvancedFormObject.noticeDescription; + description.innerHTML = PROCAPTCHAKadenceAdvancedFormObject.noticeDescription; notice.appendChild( label ); notice.appendChild( description ); diff --git a/assets/js/admin-kadence-advanced.min.js b/assets/js/admin-kadence-advanced.min.js index 3e94a71..722dbd7 100644 --- a/assets/js/admin-kadence-advanced.min.js +++ b/assets/js/admin-kadence-advanced.min.js @@ -1 +1 @@ -(()=>{function e(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{function e(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n { if ( - document.querySelector( '.h-captcha' ) && - ! document.querySelector( '.h-captcha iframe' ) + document.querySelector( '.pro-captcha' ) && + ! document.querySelector( '.pro-captcha iframe' ) ) { - window.hCaptchaBindEvents(); + window.pCAPTCHABindEvents(); } return node; @@ -128,5 +128,5 @@ document.addEventListener( 'DOMContentLoaded', function() { } ); // Instantiate our custom field's controller, defined above. - window.HCaptchaAdminFieldController = new HCaptchaAdminFieldController(); + window.PROCAPTCHAAdminFieldController = new PROCAPTCHAAdminFieldController(); } ); diff --git a/assets/js/admin-nf.min.js b/assets/js/admin-nf.min.js index cea7132..687fe2d 100644 --- a/assets/js/admin-nf.min.js +++ b/assets/js/admin-nf.min.js @@ -1 +1 @@ -(()=>{function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){d=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(d)throw a}}}}(n);try{for(o.s();!(r=o.n()).done;){e(r.value.addedNodes).map((function(e){return document.querySelector(".h-captcha")&&!document.querySelector(".h-captcha iframe")&&window.hCaptchaBindEvents(),e}))}}catch(e){o.e(e)}finally{o.f()}})).observe(document.getElementById("nf-main-body"),{childList:!0,subtree:!0})}}});window.HCaptchaAdminFieldController=new c}))})(); \ No newline at end of file +(()=>{function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){d=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(d)throw a}}}}(n);try{for(o.s();!(r=o.n()).done;){e(r.value.addedNodes).map((function(e){return document.querySelector(".pro-captcha")&&!document.querySelector(".pro-captcha iframe")&&window.pCAPTCHABindEvents(),e}))}}catch(e){o.e(e)}finally{o.f()}})).observe(document.getElementById("nf-main-body"),{childList:!0,subtree:!0})}}});window.PROCAPTCHAAdminFieldController=new c}))})(); \ No newline at end of file diff --git a/assets/js/admin-quform.js b/assets/js/admin-quform.js index 4afc476..36b001c 100644 --- a/assets/js/admin-quform.js +++ b/assets/js/admin-quform.js @@ -1,8 +1,8 @@ -/* global jQuery, HCaptchaQuformObject */ +/* global jQuery, PROCAPTCHAQuformObject */ /** - * @param HCaptchaQuformObject.noticeLabel - * @param HCaptchaQuformObject.noticeDescription + * @param PROCAPTCHAQuformObject.noticeLabel + * @param PROCAPTCHAQuformObject.noticeDescription */ jQuery( document ).ready( function( $ ) { if ( ! window.location.href.includes( 'page=quform.settings' ) ) { @@ -10,21 +10,21 @@ jQuery( document ).ready( function( $ ) { } const settingSelector = '.qfb-setting'; - const $hcaptchaHeading = $( '.qfb-icon.qfb-icon-hand-paper-o' ).closest( '.qfb-settings-heading' ); + const $procaptchaHeading = $( '.qfb-icon.qfb-icon-hand-paper-o' ).closest( '.qfb-settings-heading' ); - const html = $hcaptchaHeading.html(); - const text = $hcaptchaHeading.text(); + const html = $procaptchaHeading.html(); + const text = $procaptchaHeading.text(); - $hcaptchaHeading.html( html.replace( text, HCaptchaQuformObject.noticeLabel ) ); - $hcaptchaHeading - .next( 'p' ).html( HCaptchaQuformObject.noticeDescription ) + $procaptchaHeading.html( html.replace( text, PROCAPTCHAQuformObject.noticeLabel ) ); + $procaptchaHeading + .next( 'p' ).html( PROCAPTCHAQuformObject.noticeDescription ) .next( settingSelector ).hide() .next( settingSelector ).hide(); } ); jQuery( document ).ready( function( $ ) { - const blockHCaptchaSettings = () => { - if ( $provider.val() === 'hcaptcha' ) { + const blockPROCAPTCHASettings = () => { + if ( $provider.val() === 'procaptcha' ) { $size.hide(); $theme.hide(); $lang.hide(); @@ -50,20 +50,20 @@ jQuery( document ).ready( function( $ ) { const settingSelector = '.qfb-setting'; const $size = $( '#qfb_recaptcha_size' ).closest( settingSelector ); const $theme = $( '#qfb_recaptcha_theme' ).closest( settingSelector ); - const $lang = $( '#qfb_hcaptcha_lang' ).closest( settingSelector ); - const noticeLabelClass = 'hcaptcha-notice-label'; - const noticeDescriptionClass = 'hcaptcha-notice-description'; + const $lang = $( '#qfb_procaptcha_lang' ).closest( settingSelector ); + const noticeLabelClass = 'procaptcha-notice-label'; + const noticeDescriptionClass = 'procaptcha-notice-description'; const labelHtml = '
' + - '
'; + ''; const descriptionHtml = '
' + - HCaptchaQuformObject.noticeDescription + '
'; + PROCAPTCHAQuformObject.noticeDescription + ''; if ( ! window.location.href.includes( 'page=quform.forms' ) ) { return; } // We need observer for the first opening of the captcha field settings panel. - const observer = new MutationObserver( blockHCaptchaSettings ); + const observer = new MutationObserver( blockPROCAPTCHASettings ); observer.observe( document.getElementById( providerId ).closest( settingSelector ), @@ -72,5 +72,5 @@ jQuery( document ).ready( function( $ ) { } ); - $provider.on( 'change', blockHCaptchaSettings ); + $provider.on( 'change', blockPROCAPTCHASettings ); } ); diff --git a/assets/js/admin-quform.min.js b/assets/js/admin-quform.min.js index caf2ca4..f02dbfe 100644 --- a/assets/js/admin-quform.min.js +++ b/assets/js/admin-quform.min.js @@ -1 +1 @@ -jQuery(document).ready((function(e){if(window.location.href.includes("page=quform.settings")){var t=".qfb-setting",c=e(".qfb-icon.qfb-icon-hand-paper-o").closest(".qfb-settings-heading"),n=c.html(),o=c.text();c.html(n.replace(o,HCaptchaQuformObject.noticeLabel)),c.next("p").html(HCaptchaQuformObject.noticeDescription).next(t).hide().next(t).hide()}})),jQuery(document).ready((function(e){var t=function(){"hcaptcha"===n.val()?(a.hide(),i.hide(),r.hide(),e("."+s).remove(),e("."+h).remove(),e(f).insertAfter(n),e(l).insertAfter(n)):(a.show(),i.show(),r.show(),e("."+s).remove(),e("."+h).remove())},c="qfb_recaptcha_provider",n=e("#"+c),o=".qfb-setting",a=e("#qfb_recaptcha_size").closest(o),i=e("#qfb_recaptcha_theme").closest(o),r=e("#qfb_hcaptcha_lang").closest(o),s="hcaptcha-notice-label",h="hcaptcha-notice-description",l='
",f='
'+HCaptchaQuformObject.noticeDescription+"
";window.location.href.includes("page=quform.forms")&&(new MutationObserver(t).observe(document.getElementById(c).closest(o),{attributes:!0}),n.on("change",t))})); \ No newline at end of file +jQuery(document).ready((function(e){if(window.location.href.includes("page=quform.settings")){var t=".qfb-setting",c=e(".qfb-icon.qfb-icon-hand-paper-o").closest(".qfb-settings-heading"),n=c.html(),o=c.text();c.html(n.replace(o,PROCAPTCHAQuformObject.noticeLabel)),c.next("p").html(PROCAPTCHAQuformObject.noticeDescription).next(t).hide().next(t).hide()}})),jQuery(document).ready((function(e){var t=function(){"procaptcha"===n.val()?(a.hide(),i.hide(),r.hide(),e("."+s).remove(),e("."+h).remove(),e(f).insertAfter(n),e(l).insertAfter(n)):(a.show(),i.show(),r.show(),e("."+s).remove(),e("."+h).remove())},c="qfb_recaptcha_provider",n=e("#"+c),o=".qfb-setting",a=e("#qfb_recaptcha_size").closest(o),i=e("#qfb_recaptcha_theme").closest(o),r=e("#qfb_procaptcha_lang").closest(o),s="procaptcha-notice-label",h="procaptcha-notice-description",l='
",f='
'+PROCAPTCHAQuformObject.noticeDescription+"
";window.location.href.includes("page=quform.forms")&&(new MutationObserver(t).observe(document.getElementById(c).closest(o),{attributes:!0}),n.on("change",t))})); \ No newline at end of file diff --git a/assets/js/apps/procaptcha.bundle.js b/assets/js/apps/procaptcha.bundle.js new file mode 100644 index 0000000..ca19e8e --- /dev/null +++ b/assets/js/apps/procaptcha.bundle.js @@ -0,0 +1,168 @@ +var procaptcha=function(Di){"use strict";var hre=Object.defineProperty;var pre=(Di,Ie,Ys)=>Ie in Di?hre(Di,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ys}):Di[Ie]=Ys;var P=(Di,Ie,Ys)=>(pre(Di,typeof Ie!="symbol"?Ie+"":Ie,Ys),Ys);var Ie=typeof document<"u"?document.currentScript:null;function Ys(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $m(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var tw={exports:{}},Fd={},nw={exports:{}},Ve={};var Eu=Symbol.for("react.element"),T4=Symbol.for("react.portal"),P4=Symbol.for("react.fragment"),A4=Symbol.for("react.strict_mode"),N4=Symbol.for("react.profiler"),R4=Symbol.for("react.provider"),I4=Symbol.for("react.context"),O4=Symbol.for("react.forward_ref"),M4=Symbol.for("react.suspense"),L4=Symbol.for("react.memo"),D4=Symbol.for("react.lazy"),rw=Symbol.iterator;function U4(t){return t===null||typeof t!="object"?null:(t=rw&&t[rw]||t["@@iterator"],typeof t=="function"?t:null)}var iw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sw=Object.assign,aw={};function zo(t,e,n){this.props=t,this.context=e,this.refs=aw,this.updater=n||iw}zo.prototype.isReactComponent={},zo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},zo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function ow(){}ow.prototype=zo.prototype;function Qm(t,e,n){this.props=t,this.context=e,this.refs=aw,this.updater=n||iw}var eg=Qm.prototype=new ow;eg.constructor=Qm,sw(eg,zo.prototype),eg.isPureReactComponent=!0;var lw=Array.isArray,uw=Object.prototype.hasOwnProperty,tg={current:null},cw={key:!0,ref:!0,__self:!0,__source:!0};function dw(t,e,n){var r,i={},s=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)uw.call(e,r)&&!cw.hasOwnProperty(r)&&(i[r]=e[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(10){var o=i.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(o)}if(i.domain){if(!mw.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain="+i.domain}if(i.path){if(!mw.test(i.path))throw new TypeError("option path is invalid");a+="; Path="+i.path}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a};const $4={name:"cookie",lookup:function(e,n,r){var i;if(r.lookupCookie&&typeof e<"u"){var s=r.getCookies(e);s&&(i=s[r.lookupCookie])}return i},cacheUserLanguage:function(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(i.lookupCookie&&e!=="undefined"){var s=i.cookieExpirationDate;s||(s=new Date,s.setFullYear(s.getFullYear()+1));var a={expires:s,domain:i.cookieDomain,path:i.cookiePath,httpOnly:!1,overwrite:!0,sameSite:i.cookieSameSite};i.cookieSecure&&(a.secure=i.cookieSecure);var o=i.getHeader(n,"set-cookie")||i.getHeader(n,"Set-Cookie")||[];typeof o=="string"&&(o=[o]),Array.isArray(o)||(o=[]),o=o.filter(function(l){return l.indexOf("".concat(i.lookupCookie,"="))!==0}),o.push(Y4(i.lookupCookie,r,a)),i.setHeader(n,"Set-Cookie",o.length===1?o[0]:o)}}},Q4={name:"querystring",lookup:function(e,n,r){var i;if(r.lookupQuerystring!==void 0&&typeof e<"u"&&(r.getQuery(e)&&(i=r.getQuery(e)[r.lookupQuerystring]),!i&&r.getUrl(e)&&r.getUrl(e).indexOf("?"))){var s=r.getUrl(e).substring(r.getUrl(e).indexOf("?"));if(typeof URLSearchParams<"u"){var a=new URLSearchParams(s);i=a.get(r.lookupQuerystring)}else{var o=s.indexOf("".concat(r.lookupQuerystring,"="));if(o>-1){var l=s.substring(r.lookupQuerystring.length+2);l.indexOf("&")<0?i=l:i=l.substring(0,l.indexOf("&"))}}}return i}},eR={name:"path",lookup:function(e,n,r){var i;if(e===void 0)return i;if(r.lookupPath!==void 0&&e.params&&(i=r.getParams(e)[r.lookupPath]),!i&&typeof r.lookupFromPathIndex=="number"&&r.getOriginalUrl(e)){var s=r.getOriginalUrl(e).split("?")[0],a=s.split("/");a[0]===""&&a.shift(),a.length>r.lookupFromPathIndex&&(i=a[r.lookupFromPathIndex])}return i}};var tR=["hans","hant","latn","cyrl","cans","mong","arab","419"];const nR={name:"header",lookup:function(e,n,r){var i;if(typeof e<"u"){var s=r.getHeaders(e);if(!s)return i;var a=[],o=r.lookupHeader?s[r.lookupHeader]:s["accept-language"];if(o){var l=/(([a-z]{2,3})-?([A-Z]{2})?)\s*;?\s*(q=([0-9.]+))?/gi;if(o.indexOf("-")>0){var u=tR.find(function(_){return o.toLowerCase().indexOf("-".concat(_))>0});u&&(l=/(([a-z]{2,3})-?([A-Z0-9]{2,4})?)\s*;?\s*(q=([0-9.]+))?/gi)}var c=[],d,h,m=r.lookupHeaderRegex||l;do if(h=m.exec(o),h){var y=h[1],v=h[5]||"1",S=Number(v);y&&!isNaN(S)&&c.push({lng:y,q:S})}while(h);for(c.sort(function(_,b){return b.q-_.q}),d=0;d3&&arguments[3]!==void 0?arguments[3]:{};i.lookupSession&&e&&i.getSession(e)&&(i.getSession(e)[i.lookupSession]=r)}};var iR=function(e){if(e.path)return e.path;if(e.raw&&e.raw.path)return e.raw.path;if(e.url)return e.url},gw=function(e){if(e.url&&e.url.href)return e.url.href;if(e.url)return e.url;if(e.raw&&e.raw.url)return e.raw.url},sR=function(e,n){if(e.url){e.url=n;return}},aR=function(e){return e.originalUrl?e.originalUrl:e.raw&&e.raw.originalUrl?e.raw.originalUrl:gw(e)},oR=function(e){if(e.query&&typeof e.query.entries=="function"&&typeof Object.fromEntries=="function"&&typeof e.query[Symbol.iterator]=="function")return Object.fromEntries(e.query);if(e.query)return e.query;if(e.searchParams)return e.searchParams;if(e.raw&&e.raw.query)return e.raw.query;if(e.ctx&&e.ctx.queryParams)return e.ctx.queryParams;if(e.url&&e.url.searchParams)return e.url.searchParams;var n=e.url||e.raw&&e.raw.url;return n&&n.indexOf("?")<0?{}:{}},lR=function(e){return e.params?e.params:e.raw&&e.raw.params?e.raw.params:e.ctx&&e.ctx.params?e.ctx.params:{}},Wo=function(e){if(e.headers)return e.headers},uR=function(e){if(e.cookies)return e.cookies;if(Wo(e)){var n={},r=Wo(e).cookie;return r&&r.split(";").forEach(function(i){var s=i.split("=");n[s.shift().trim()]=decodeURI(encodeURI(s.join("=")))}),n}},cR=function(e){return e.ctx&&typeof e.ctx.body=="function"?e.ctx.body.bind(e.ctx):e.ctx&&e.ctx.body?e.ctx.body:e.json?e.json:e.body?e.body:e.payload?e.payload:e.request&&e.request.body?e.request.body:{}},dR=function(e,n){if(e.getHeader)return e.getHeader(n);if(e.headers)return e.headers[n];if(Wo(e)&&Wo(e)[n])return Wo(e)[n]},yw=function(e,n,r){if(!(e._headerSent||e.headersSent)){if(typeof e.setHeader=="function")return e.setHeader(n,r);if(typeof e.header=="function")return e.header(n,r);if(e.responseHeaders&&typeof e.responseHeaders.set=="function")return e.responseHeaders.set(n,r);if(e.headers&&typeof e.headers.set=="function")return e.headers.set(n,r);if(typeof e.set=="function")return e.set(n,r)}},fR=function(e,n){if(typeof e.contentType=="function")return e.contentType(n);if(typeof e.type=="function")return e.type(n);yw(e,"Content-Type",n)},hR=function(e,n){if(typeof e.status=="function")return e.status(n);if(e.status)return e.status=n},pR=function(e,n){return typeof e.send=="function"?e.send(n):(e.request&&e.response&&e.app&&(e.body=n),n)},mR=function(e){if(e.session)return e.session;if(e.raw&&e.raw.session)return e.raw.session},gR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.getPath=e.getPath||iR,e.getOriginalUrl=e.getOriginalUrl||aR,e.getUrl=e.getUrl||gw,e.setUrl=e.setUrl||sR,e.getParams=e.getParams||lR,e.getSession=e.getSession||mR,e.getQuery=e.getQuery||oR,e.getCookies=e.getCookies||uR,e.getBody=e.getBody||cR,e.getHeaders=e.getHeaders||Wo,e.getHeader=e.getHeader||dR,e.setHeader=e.setHeader||yw,e.setContentType=e.setContentType||fR,e.setStatus=e.setStatus||hR,e.send=e.send||pR,e};function Cu(t){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(t)}function yR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vw(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yR(this,t),this.type="languageDetector",this.detectors={},this.init(e,n,r)}return vR(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=J4(r,this.options||{},wR()),this.allOptions=i,this.addDetector($4),this.addDetector(Q4),this.addDetector(eR),this.addDetector(nR),this.addDetector(rR)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n,r,i){var s=this;if(!(arguments.length<2)){i||(i=this.options.order);var a;if(i.forEach(function(l){if(!(a||!s.detectors[l])){var u=s.detectors[l].lookup(n,r,s.options);u&&(Array.isArray(u)||(u=[u]),u=u.filter(function(c){return c!=null}),s.services.languageUtils.getBestMatchFromCodes?(a=s.services.languageUtils.getBestMatchFromCodes(u),a&&(s.options.ignoreCase?u.map(function(c){return c.toLowerCase()}).indexOf(a.toLowerCase())<0&&(a=void 0):u.indexOf(a)<0&&(a=void 0)),a&&(n.i18nextLookupName=l)):a=u.length>0?u[0]:null)}}),!a){var o=this.allOptions.fallbackLng;typeof o=="function"&&(o=o()),typeof o=="string"&&(o=[o]),o||(o=[]),Object.prototype.toString.apply(o)==="[object Array]"?a=o[0]:a=o[0]||o.default&&o.default[0]}return a}}},{key:"cacheUserLanguage",value:function(n,r,i,s){var a=this;arguments.length<3||(s||(s=this.options.caches),s&&s.forEach(function(o){a.detectors[o]&&a.detectors[o].cacheUserLanguage&&r.cachedUserLanguage!==i&&(a.detectors[o].cacheUserLanguage(n,r,i,a.options),r.cachedUserLanguage=i)}))}}]),t}();_w.type="languageDetector";var xR=_w;function st(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s=0)&&(n[i]=t[i]);return n}function ci(t){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(t)}function SR(t,e){if(ci(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ci(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bw(t){var e=SR(t,"string");return ci(e)==="symbol"?e:String(e)}function Vi(t,e,n){return e=bw(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ww(t,e){for(var n=0;n",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},kR=function(e){return CR[e]},TR=function(e){return e.replace(ER,kR)};function xw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sw(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};ag=Sw(Sw({},ag),t)}function NR(){return ag}var RR=function(){function t(){qr(this,t),this.usedNamespaces={}}return Zr(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function IR(t){Ew=t}function OR(){return Ew}var MR={type:"3rdParty",init:function(e){AR(e.options.react),IR(e)}};function LR(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(l,u){var c=e.services.backendConnector.state["".concat(l,"|").concat(u)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(s,t)))}function UR(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return og("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{precheck:function(s,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!a(s.isLanguageChangingTo,t))return!1}}):DR(t,e,n)}function Tw(t){if(Array.isArray(t))return t}function VR(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Pw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=j.useContext(PR)||{},i=r.i18n,s=r.defaultNS,a=n||i||OR();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new RR),!a){og("You will need to pass in an i18next instance by using initReactI18next");var o=function(F){return Array.isArray(F)?F[F.length-1]:F},l=[o,{},!1];return l.t=o,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&og("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=lg(lg(lg({},NR()),a.options.react),e),c=u.useSuspense,d=u.keyPrefix,h=t||s||a.options&&a.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(h);var m=(a.isInitialized||a.initializedStoreOnce)&&h.every(function(V){return UR(V,a,u)});function y(){return a.getFixedT(null,u.nsMode==="fallback"?h:h[0],d)}var v=j.useState(y),S=BR(v,2),_=S[0],b=S[1],w=h.join(),A=HR(w),O=j.useRef(!0);j.useEffect(function(){var V=u.bindI18n,F=u.bindI18nStore;O.current=!0,!m&&!c&&kw(a,h,function(){O.current&&b(y)}),m&&A&&A!==w&&O.current&&b(y);function L(){O.current&&b(y)}return V&&a&&a.on(V,L),F&&a&&a.store.on(F,L),function(){O.current=!1,V&&a&&V.split(" ").forEach(function(B){return a.off(B,L)}),F&&a&&F.split(" ").forEach(function(B){return a.store.off(B,L)})}},[a,w]);var M=j.useRef(!0);j.useEffect(function(){O.current&&!M.current&&b(y),M.current=!1},[a,d]);var U=[_,a,m];if(U.t=_,U.i18n=a,U.ready=m,m||!m&&!c)return U;throw new Promise(function(V){kw(a,h,function(){V()})})}const Iw=/^0x[\da-fA-F]+$/,jR=/^[\da-fA-F]+$/;function Oe(t,e=-1,n){return typeof t=="string"&&(t==="0x"||Iw.test(t))&&(e===-1?n||t.length%2===0:t.length===2+Math.ceil(e/4))}function Ow(t){return!!t&&Oe(t,-1)}function Mw(t){return t&&Ow(t)?t:`0x${t&&t.length%2===1?"0":""}${t||""}`}function ku(t){if(!t||t==="0x")return"";if(Iw.test(t))return t.substring(2);if(jR.test(t))return t;throw new Error(`Expected hex value to convert, found '${t}'`)}function Lw(t,e=-1,n=!1){const r=Math.ceil(e/4),i=r+2;return Mw(e===-1||t.length===i||!n&&t.lengthi?ku(t).slice(-1*r):`${"0".repeat(r)}${ku(t)}`.slice(-1*r))}function zR(t){return t("return this")}const er=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:zR(Function);function ug(t,e){return typeof er[t]>"u"?e:er[t]}function WR(){return Number.NaN}const ae=ug("BigInt",WR),no=ae(0),$s=ae(1),qR=ae(2),ZR=ae(3),GR=ae(4),XR=ae(5),KR=ae(6),JR=ae(7),YR=ae(8),$R=ae(9),QR=ae(10),e6=ae(100),t6=ae(1e3),n6=ae(1e6),cg=ae(1e9),r6=cg*cg,Dw=ae(Number.MAX_SAFE_INTEGER),Uw=ae(94906265),Vw=ae(256),Bw=ae(256*256),i6=ae("0x10000000000000000");function qd(t,{isLe:e=!0,isNegative:n=!1}={}){e||(t=t.slice().reverse());const r=t.length;if(n&&r&&t[r-1]&128){switch(r){case 0:return ae(0);case 1:return ae((t[0]^255)*-1-1);case 2:return ae((t[0]+(t[1]<<8)^65535)*-1-1);case 4:return ae((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)*-1-1)}const s=new DataView(t.buffer,t.byteOffset);if(r===8)return s.getBigInt64(0,!0);let a=ae(0);const o=r%2;for(let l=r-2;l>=o;l-=2)a=a*Bw+ae(s.getUint16(l,!0)^65535);return o&&(a=a*Vw+ae(t[0]^255)),a*-$s-$s}switch(r){case 0:return ae(0);case 1:return ae(t[0]);case 2:return ae(t[0]+(t[1]<<8));case 4:return ae(t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216)}const i=new DataView(t.buffer,t.byteOffset);switch(r){case 8:return i.getBigUint64(0,!0);case 16:return i.getBigUint64(8,!0)*i6+i.getBigUint64(0,!0);default:{let s=ae(0);const a=r%2;for(let o=r-2;o>=a;o-=2)s=s*Bw+ae(i.getUint16(o,!0));return a&&(s=s*Vw+ae(t[0])),s}}}const dg="0123456789abcdef",Zd=new Uint8Array(256),Hw=new Uint8Array(256*256);for(let t=0,e=dg.length;t9&&(Zd[dg[t].toUpperCase().charCodeAt(0)|0]=t|0);for(let t=0;t<256;t++){const e=t<<8;for(let n=0;n<256;n++)Hw[e|n]=Zd[t]<<4|Zd[n]}function kn(t,e=-1){if(!t)return new Uint8Array;let n=t.startsWith("0x")?2:0;const r=Math.ceil((t.length-n)/2),i=Math.ceil(e===-1?r:e/8),s=new Uint8Array(i),a=i>r?i-r:0;for(let o=a;o0?f:p},s.min=function(f,p){return f.cmp(p)<0?f:p},s.prototype._init=function(f,p,x){if(typeof f=="number")return this._initNumber(f,p,x);if(typeof f=="object")return this._initArray(f,p,x);p==="hex"&&(p=16),r(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var T=0;f[0]==="-"&&(T++,this.negative=1),T=0;T-=3)C=f[T]|f[T-1]<<8|f[T-2]<<16,this.words[E]|=C<>>26-I&67108863,I+=24,I>=26&&(I-=26,E++);else if(x==="le")for(T=0,E=0;T>>26-I&67108863,I+=24,I>=26&&(I-=26,E++);return this._strip()};function o(N,f){var p=N.charCodeAt(f);if(p>=48&&p<=57)return p-48;if(p>=65&&p<=70)return p-55;if(p>=97&&p<=102)return p-87;r(!1,"Invalid character in "+N)}function l(N,f,p){var x=o(N,p);return p-1>=f&&(x|=o(N,p-1)<<4),x}s.prototype._parseHex=function(f,p,x){this.length=Math.ceil((f.length-p)/6),this.words=new Array(this.length);for(var T=0;T=p;T-=2)I=l(f,p,T)<=18?(E-=18,C+=1,this.words[C]|=I>>>26):E+=8;else{var k=f.length-p;for(T=k%2===0?p+1:p;T=18?(E-=18,C+=1,this.words[C]|=I>>>26):E+=8}this._strip()};function u(N,f,p,x){for(var T=0,E=0,C=Math.min(N.length,p),I=f;I=49?E=k-49+10:k>=17?E=k-17+10:E=k,r(k>=0&&E1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{s.prototype.inspect=d}else s.prototype.inspect=d;function d(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(f,p){f=f||10,p=p|0||1;var x;if(f===16||f==="hex"){x="";for(var T=0,E=0,C=0;C>>24-T&16777215,T+=2,T>=26&&(T-=26,C--),E!==0||C!==this.length-1?x=h[6-k.length]+k+x:x=k+x}for(E!==0&&(x=E.toString(16)+x);x.length%p!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(f===(f|0)&&f>=2&&f<=36){var g=m[f],R=y[f];x="";var q=this.clone();for(q.negative=0;!q.isZero();){var X=q.modrn(R).toString(f);q=q.idivn(R),q.isZero()?x=X+x:x=h[g-X.length]+X+x}for(this.isZero()&&(x="0"+x);x.length%p!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},s.prototype.toJSON=function(){return this.toString(16,2)},a&&(s.prototype.toBuffer=function(f,p){return this.toArrayLike(a,f,p)}),s.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)};var v=function(f,p){return f.allocUnsafe?f.allocUnsafe(p):new f(p)};s.prototype.toArrayLike=function(f,p,x){this._strip();var T=this.byteLength(),E=x||Math.max(1,T);r(T<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0");var C=v(f,E),I=p==="le"?"LE":"BE";return this["_toArrayLike"+I](C,T),C},s.prototype._toArrayLikeLE=function(f,p){for(var x=0,T=0,E=0,C=0;E>8&255),x>16&255),C===6?(x>24&255),T=0,C=0):(T=I>>>24,C+=2)}if(x=0&&(f[x--]=I>>8&255),x>=0&&(f[x--]=I>>16&255),C===6?(x>=0&&(f[x--]=I>>24&255),T=0,C=0):(T=I>>>24,C+=2)}if(x>=0)for(f[x--]=T;x>=0;)f[x--]=0},Math.clz32?s.prototype._countBits=function(f){return 32-Math.clz32(f)}:s.prototype._countBits=function(f){var p=f,x=0;return p>=4096&&(x+=13,p>>>=13),p>=64&&(x+=7,p>>>=7),p>=8&&(x+=4,p>>>=4),p>=2&&(x+=2,p>>>=2),x+p},s.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,x=0;return p&8191||(x+=13,p>>>=13),p&127||(x+=7,p>>>=7),p&15||(x+=4,p>>>=4),p&3||(x+=2,p>>>=2),p&1||x++,x},s.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function S(N){for(var f=new Array(N.bitLength()),p=0;p>>T&1}return f}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,p=0;pf.length?this.clone().ior(f):f.clone().ior(this)},s.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},s.prototype.iuand=function(f){var p;this.length>f.length?p=f:p=this;for(var x=0;xf.length?this.clone().iand(f):f.clone().iand(this)},s.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},s.prototype.iuxor=function(f){var p,x;this.length>f.length?(p=this,x=f):(p=f,x=this);for(var T=0;Tf.length?this.clone().ixor(f):f.clone().ixor(this)},s.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},s.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var p=Math.ceil(f/26)|0,x=f%26;this._expand(p),x>0&&p--;for(var T=0;T0&&(this.words[T]=~this.words[T]&67108863>>26-x),this._strip()},s.prototype.notn=function(f){return this.clone().inotn(f)},s.prototype.setn=function(f,p){r(typeof f=="number"&&f>=0);var x=f/26|0,T=f%26;return this._expand(x+1),p?this.words[x]=this.words[x]|1<f.length?(x=this,T=f):(x=f,T=this);for(var E=0,C=0;C>>26;for(;E!==0&&C>>26;if(this.length=x.length,E!==0)this.words[this.length]=E,this.length++;else if(x!==this)for(;Cf.length?this.clone().iadd(f):f.clone().iadd(this)},s.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var x=this.cmp(f);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var T,E;x>0?(T=this,E=f):(T=f,E=this);for(var C=0,I=0;I>26,this.words[I]=p&67108863;for(;C!==0&&I>26,this.words[I]=p&67108863;if(C===0&&I>>26,q=k&67108863,X=Math.min(g,f.length-1),G=Math.max(0,g-N.length+1);G<=X;G++){var de=g-G|0;T=N.words[de]|0,E=f.words[G]|0,C=T*E+q,R+=C/67108864|0,q=C&67108863}p.words[g]=q|0,k=R|0}return k!==0?p.words[g]=k|0:p.length--,p._strip()}var b=function(f,p,x){var T=f.words,E=p.words,C=x.words,I=0,k,g,R,q=T[0]|0,X=q&8191,G=q>>>13,de=T[1]|0,we=de&8191,me=de>>>13,dt=T[2]|0,Ee=dt&8191,Ne=dt>>>13,tt=T[3]|0,Ue=tt&8191,Ke=tt>>>13,ys=T[4]|0,vt=ys&8191,Pt=ys>>>13,xu=T[5]|0,ft=xu&8191,ht=xu>>>13,Fo=T[6]|0,_t=Fo&8191,nt=Fo>>>13,Li=T[7]|0,bt=Li&8191,pt=Li>>>13,jo=T[8]|0,fe=jo&8191,wt=jo>>>13,Su=T[9]|0,xt=Su&8191,Ut=Su>>>13,g4=E[0]|0,Kt=g4&8191,Jt=g4>>>13,y4=E[1]|0,Yt=y4&8191,$t=y4>>>13,v4=E[2]|0,Qt=v4&8191,en=v4>>>13,_4=E[3]|0,tn=_4&8191,nn=_4>>>13,b4=E[4]|0,rn=b4&8191,sn=b4>>>13,w4=E[5]|0,an=w4&8191,on=w4>>>13,x4=E[6]|0,ln=x4&8191,un=x4>>>13,S4=E[7]|0,cn=S4&8191,dn=S4>>>13,E4=E[8]|0,fn=E4&8191,hn=E4>>>13,C4=E[9]|0,pn=C4&8191,mn=C4>>>13;x.negative=f.negative^p.negative,x.length=19,k=Math.imul(X,Kt),g=Math.imul(X,Jt),g=g+Math.imul(G,Kt)|0,R=Math.imul(G,Jt);var Db=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Db>>>26)|0,Db&=67108863,k=Math.imul(we,Kt),g=Math.imul(we,Jt),g=g+Math.imul(me,Kt)|0,R=Math.imul(me,Jt),k=k+Math.imul(X,Yt)|0,g=g+Math.imul(X,$t)|0,g=g+Math.imul(G,Yt)|0,R=R+Math.imul(G,$t)|0;var Ub=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Ub>>>26)|0,Ub&=67108863,k=Math.imul(Ee,Kt),g=Math.imul(Ee,Jt),g=g+Math.imul(Ne,Kt)|0,R=Math.imul(Ne,Jt),k=k+Math.imul(we,Yt)|0,g=g+Math.imul(we,$t)|0,g=g+Math.imul(me,Yt)|0,R=R+Math.imul(me,$t)|0,k=k+Math.imul(X,Qt)|0,g=g+Math.imul(X,en)|0,g=g+Math.imul(G,Qt)|0,R=R+Math.imul(G,en)|0;var Vb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Vb>>>26)|0,Vb&=67108863,k=Math.imul(Ue,Kt),g=Math.imul(Ue,Jt),g=g+Math.imul(Ke,Kt)|0,R=Math.imul(Ke,Jt),k=k+Math.imul(Ee,Yt)|0,g=g+Math.imul(Ee,$t)|0,g=g+Math.imul(Ne,Yt)|0,R=R+Math.imul(Ne,$t)|0,k=k+Math.imul(we,Qt)|0,g=g+Math.imul(we,en)|0,g=g+Math.imul(me,Qt)|0,R=R+Math.imul(me,en)|0,k=k+Math.imul(X,tn)|0,g=g+Math.imul(X,nn)|0,g=g+Math.imul(G,tn)|0,R=R+Math.imul(G,nn)|0;var Bb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Bb>>>26)|0,Bb&=67108863,k=Math.imul(vt,Kt),g=Math.imul(vt,Jt),g=g+Math.imul(Pt,Kt)|0,R=Math.imul(Pt,Jt),k=k+Math.imul(Ue,Yt)|0,g=g+Math.imul(Ue,$t)|0,g=g+Math.imul(Ke,Yt)|0,R=R+Math.imul(Ke,$t)|0,k=k+Math.imul(Ee,Qt)|0,g=g+Math.imul(Ee,en)|0,g=g+Math.imul(Ne,Qt)|0,R=R+Math.imul(Ne,en)|0,k=k+Math.imul(we,tn)|0,g=g+Math.imul(we,nn)|0,g=g+Math.imul(me,tn)|0,R=R+Math.imul(me,nn)|0,k=k+Math.imul(X,rn)|0,g=g+Math.imul(X,sn)|0,g=g+Math.imul(G,rn)|0,R=R+Math.imul(G,sn)|0;var Hb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Hb>>>26)|0,Hb&=67108863,k=Math.imul(ft,Kt),g=Math.imul(ft,Jt),g=g+Math.imul(ht,Kt)|0,R=Math.imul(ht,Jt),k=k+Math.imul(vt,Yt)|0,g=g+Math.imul(vt,$t)|0,g=g+Math.imul(Pt,Yt)|0,R=R+Math.imul(Pt,$t)|0,k=k+Math.imul(Ue,Qt)|0,g=g+Math.imul(Ue,en)|0,g=g+Math.imul(Ke,Qt)|0,R=R+Math.imul(Ke,en)|0,k=k+Math.imul(Ee,tn)|0,g=g+Math.imul(Ee,nn)|0,g=g+Math.imul(Ne,tn)|0,R=R+Math.imul(Ne,nn)|0,k=k+Math.imul(we,rn)|0,g=g+Math.imul(we,sn)|0,g=g+Math.imul(me,rn)|0,R=R+Math.imul(me,sn)|0,k=k+Math.imul(X,an)|0,g=g+Math.imul(X,on)|0,g=g+Math.imul(G,an)|0,R=R+Math.imul(G,on)|0;var Fb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Fb>>>26)|0,Fb&=67108863,k=Math.imul(_t,Kt),g=Math.imul(_t,Jt),g=g+Math.imul(nt,Kt)|0,R=Math.imul(nt,Jt),k=k+Math.imul(ft,Yt)|0,g=g+Math.imul(ft,$t)|0,g=g+Math.imul(ht,Yt)|0,R=R+Math.imul(ht,$t)|0,k=k+Math.imul(vt,Qt)|0,g=g+Math.imul(vt,en)|0,g=g+Math.imul(Pt,Qt)|0,R=R+Math.imul(Pt,en)|0,k=k+Math.imul(Ue,tn)|0,g=g+Math.imul(Ue,nn)|0,g=g+Math.imul(Ke,tn)|0,R=R+Math.imul(Ke,nn)|0,k=k+Math.imul(Ee,rn)|0,g=g+Math.imul(Ee,sn)|0,g=g+Math.imul(Ne,rn)|0,R=R+Math.imul(Ne,sn)|0,k=k+Math.imul(we,an)|0,g=g+Math.imul(we,on)|0,g=g+Math.imul(me,an)|0,R=R+Math.imul(me,on)|0,k=k+Math.imul(X,ln)|0,g=g+Math.imul(X,un)|0,g=g+Math.imul(G,ln)|0,R=R+Math.imul(G,un)|0;var jb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(jb>>>26)|0,jb&=67108863,k=Math.imul(bt,Kt),g=Math.imul(bt,Jt),g=g+Math.imul(pt,Kt)|0,R=Math.imul(pt,Jt),k=k+Math.imul(_t,Yt)|0,g=g+Math.imul(_t,$t)|0,g=g+Math.imul(nt,Yt)|0,R=R+Math.imul(nt,$t)|0,k=k+Math.imul(ft,Qt)|0,g=g+Math.imul(ft,en)|0,g=g+Math.imul(ht,Qt)|0,R=R+Math.imul(ht,en)|0,k=k+Math.imul(vt,tn)|0,g=g+Math.imul(vt,nn)|0,g=g+Math.imul(Pt,tn)|0,R=R+Math.imul(Pt,nn)|0,k=k+Math.imul(Ue,rn)|0,g=g+Math.imul(Ue,sn)|0,g=g+Math.imul(Ke,rn)|0,R=R+Math.imul(Ke,sn)|0,k=k+Math.imul(Ee,an)|0,g=g+Math.imul(Ee,on)|0,g=g+Math.imul(Ne,an)|0,R=R+Math.imul(Ne,on)|0,k=k+Math.imul(we,ln)|0,g=g+Math.imul(we,un)|0,g=g+Math.imul(me,ln)|0,R=R+Math.imul(me,un)|0,k=k+Math.imul(X,cn)|0,g=g+Math.imul(X,dn)|0,g=g+Math.imul(G,cn)|0,R=R+Math.imul(G,dn)|0;var zb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(zb>>>26)|0,zb&=67108863,k=Math.imul(fe,Kt),g=Math.imul(fe,Jt),g=g+Math.imul(wt,Kt)|0,R=Math.imul(wt,Jt),k=k+Math.imul(bt,Yt)|0,g=g+Math.imul(bt,$t)|0,g=g+Math.imul(pt,Yt)|0,R=R+Math.imul(pt,$t)|0,k=k+Math.imul(_t,Qt)|0,g=g+Math.imul(_t,en)|0,g=g+Math.imul(nt,Qt)|0,R=R+Math.imul(nt,en)|0,k=k+Math.imul(ft,tn)|0,g=g+Math.imul(ft,nn)|0,g=g+Math.imul(ht,tn)|0,R=R+Math.imul(ht,nn)|0,k=k+Math.imul(vt,rn)|0,g=g+Math.imul(vt,sn)|0,g=g+Math.imul(Pt,rn)|0,R=R+Math.imul(Pt,sn)|0,k=k+Math.imul(Ue,an)|0,g=g+Math.imul(Ue,on)|0,g=g+Math.imul(Ke,an)|0,R=R+Math.imul(Ke,on)|0,k=k+Math.imul(Ee,ln)|0,g=g+Math.imul(Ee,un)|0,g=g+Math.imul(Ne,ln)|0,R=R+Math.imul(Ne,un)|0,k=k+Math.imul(we,cn)|0,g=g+Math.imul(we,dn)|0,g=g+Math.imul(me,cn)|0,R=R+Math.imul(me,dn)|0,k=k+Math.imul(X,fn)|0,g=g+Math.imul(X,hn)|0,g=g+Math.imul(G,fn)|0,R=R+Math.imul(G,hn)|0;var Wb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Wb>>>26)|0,Wb&=67108863,k=Math.imul(xt,Kt),g=Math.imul(xt,Jt),g=g+Math.imul(Ut,Kt)|0,R=Math.imul(Ut,Jt),k=k+Math.imul(fe,Yt)|0,g=g+Math.imul(fe,$t)|0,g=g+Math.imul(wt,Yt)|0,R=R+Math.imul(wt,$t)|0,k=k+Math.imul(bt,Qt)|0,g=g+Math.imul(bt,en)|0,g=g+Math.imul(pt,Qt)|0,R=R+Math.imul(pt,en)|0,k=k+Math.imul(_t,tn)|0,g=g+Math.imul(_t,nn)|0,g=g+Math.imul(nt,tn)|0,R=R+Math.imul(nt,nn)|0,k=k+Math.imul(ft,rn)|0,g=g+Math.imul(ft,sn)|0,g=g+Math.imul(ht,rn)|0,R=R+Math.imul(ht,sn)|0,k=k+Math.imul(vt,an)|0,g=g+Math.imul(vt,on)|0,g=g+Math.imul(Pt,an)|0,R=R+Math.imul(Pt,on)|0,k=k+Math.imul(Ue,ln)|0,g=g+Math.imul(Ue,un)|0,g=g+Math.imul(Ke,ln)|0,R=R+Math.imul(Ke,un)|0,k=k+Math.imul(Ee,cn)|0,g=g+Math.imul(Ee,dn)|0,g=g+Math.imul(Ne,cn)|0,R=R+Math.imul(Ne,dn)|0,k=k+Math.imul(we,fn)|0,g=g+Math.imul(we,hn)|0,g=g+Math.imul(me,fn)|0,R=R+Math.imul(me,hn)|0,k=k+Math.imul(X,pn)|0,g=g+Math.imul(X,mn)|0,g=g+Math.imul(G,pn)|0,R=R+Math.imul(G,mn)|0;var qb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(qb>>>26)|0,qb&=67108863,k=Math.imul(xt,Yt),g=Math.imul(xt,$t),g=g+Math.imul(Ut,Yt)|0,R=Math.imul(Ut,$t),k=k+Math.imul(fe,Qt)|0,g=g+Math.imul(fe,en)|0,g=g+Math.imul(wt,Qt)|0,R=R+Math.imul(wt,en)|0,k=k+Math.imul(bt,tn)|0,g=g+Math.imul(bt,nn)|0,g=g+Math.imul(pt,tn)|0,R=R+Math.imul(pt,nn)|0,k=k+Math.imul(_t,rn)|0,g=g+Math.imul(_t,sn)|0,g=g+Math.imul(nt,rn)|0,R=R+Math.imul(nt,sn)|0,k=k+Math.imul(ft,an)|0,g=g+Math.imul(ft,on)|0,g=g+Math.imul(ht,an)|0,R=R+Math.imul(ht,on)|0,k=k+Math.imul(vt,ln)|0,g=g+Math.imul(vt,un)|0,g=g+Math.imul(Pt,ln)|0,R=R+Math.imul(Pt,un)|0,k=k+Math.imul(Ue,cn)|0,g=g+Math.imul(Ue,dn)|0,g=g+Math.imul(Ke,cn)|0,R=R+Math.imul(Ke,dn)|0,k=k+Math.imul(Ee,fn)|0,g=g+Math.imul(Ee,hn)|0,g=g+Math.imul(Ne,fn)|0,R=R+Math.imul(Ne,hn)|0,k=k+Math.imul(we,pn)|0,g=g+Math.imul(we,mn)|0,g=g+Math.imul(me,pn)|0,R=R+Math.imul(me,mn)|0;var Zb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Zb>>>26)|0,Zb&=67108863,k=Math.imul(xt,Qt),g=Math.imul(xt,en),g=g+Math.imul(Ut,Qt)|0,R=Math.imul(Ut,en),k=k+Math.imul(fe,tn)|0,g=g+Math.imul(fe,nn)|0,g=g+Math.imul(wt,tn)|0,R=R+Math.imul(wt,nn)|0,k=k+Math.imul(bt,rn)|0,g=g+Math.imul(bt,sn)|0,g=g+Math.imul(pt,rn)|0,R=R+Math.imul(pt,sn)|0,k=k+Math.imul(_t,an)|0,g=g+Math.imul(_t,on)|0,g=g+Math.imul(nt,an)|0,R=R+Math.imul(nt,on)|0,k=k+Math.imul(ft,ln)|0,g=g+Math.imul(ft,un)|0,g=g+Math.imul(ht,ln)|0,R=R+Math.imul(ht,un)|0,k=k+Math.imul(vt,cn)|0,g=g+Math.imul(vt,dn)|0,g=g+Math.imul(Pt,cn)|0,R=R+Math.imul(Pt,dn)|0,k=k+Math.imul(Ue,fn)|0,g=g+Math.imul(Ue,hn)|0,g=g+Math.imul(Ke,fn)|0,R=R+Math.imul(Ke,hn)|0,k=k+Math.imul(Ee,pn)|0,g=g+Math.imul(Ee,mn)|0,g=g+Math.imul(Ne,pn)|0,R=R+Math.imul(Ne,mn)|0;var Gb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Gb>>>26)|0,Gb&=67108863,k=Math.imul(xt,tn),g=Math.imul(xt,nn),g=g+Math.imul(Ut,tn)|0,R=Math.imul(Ut,nn),k=k+Math.imul(fe,rn)|0,g=g+Math.imul(fe,sn)|0,g=g+Math.imul(wt,rn)|0,R=R+Math.imul(wt,sn)|0,k=k+Math.imul(bt,an)|0,g=g+Math.imul(bt,on)|0,g=g+Math.imul(pt,an)|0,R=R+Math.imul(pt,on)|0,k=k+Math.imul(_t,ln)|0,g=g+Math.imul(_t,un)|0,g=g+Math.imul(nt,ln)|0,R=R+Math.imul(nt,un)|0,k=k+Math.imul(ft,cn)|0,g=g+Math.imul(ft,dn)|0,g=g+Math.imul(ht,cn)|0,R=R+Math.imul(ht,dn)|0,k=k+Math.imul(vt,fn)|0,g=g+Math.imul(vt,hn)|0,g=g+Math.imul(Pt,fn)|0,R=R+Math.imul(Pt,hn)|0,k=k+Math.imul(Ue,pn)|0,g=g+Math.imul(Ue,mn)|0,g=g+Math.imul(Ke,pn)|0,R=R+Math.imul(Ke,mn)|0;var Xb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Xb>>>26)|0,Xb&=67108863,k=Math.imul(xt,rn),g=Math.imul(xt,sn),g=g+Math.imul(Ut,rn)|0,R=Math.imul(Ut,sn),k=k+Math.imul(fe,an)|0,g=g+Math.imul(fe,on)|0,g=g+Math.imul(wt,an)|0,R=R+Math.imul(wt,on)|0,k=k+Math.imul(bt,ln)|0,g=g+Math.imul(bt,un)|0,g=g+Math.imul(pt,ln)|0,R=R+Math.imul(pt,un)|0,k=k+Math.imul(_t,cn)|0,g=g+Math.imul(_t,dn)|0,g=g+Math.imul(nt,cn)|0,R=R+Math.imul(nt,dn)|0,k=k+Math.imul(ft,fn)|0,g=g+Math.imul(ft,hn)|0,g=g+Math.imul(ht,fn)|0,R=R+Math.imul(ht,hn)|0,k=k+Math.imul(vt,pn)|0,g=g+Math.imul(vt,mn)|0,g=g+Math.imul(Pt,pn)|0,R=R+Math.imul(Pt,mn)|0;var Kb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Kb>>>26)|0,Kb&=67108863,k=Math.imul(xt,an),g=Math.imul(xt,on),g=g+Math.imul(Ut,an)|0,R=Math.imul(Ut,on),k=k+Math.imul(fe,ln)|0,g=g+Math.imul(fe,un)|0,g=g+Math.imul(wt,ln)|0,R=R+Math.imul(wt,un)|0,k=k+Math.imul(bt,cn)|0,g=g+Math.imul(bt,dn)|0,g=g+Math.imul(pt,cn)|0,R=R+Math.imul(pt,dn)|0,k=k+Math.imul(_t,fn)|0,g=g+Math.imul(_t,hn)|0,g=g+Math.imul(nt,fn)|0,R=R+Math.imul(nt,hn)|0,k=k+Math.imul(ft,pn)|0,g=g+Math.imul(ft,mn)|0,g=g+Math.imul(ht,pn)|0,R=R+Math.imul(ht,mn)|0;var Jb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Jb>>>26)|0,Jb&=67108863,k=Math.imul(xt,ln),g=Math.imul(xt,un),g=g+Math.imul(Ut,ln)|0,R=Math.imul(Ut,un),k=k+Math.imul(fe,cn)|0,g=g+Math.imul(fe,dn)|0,g=g+Math.imul(wt,cn)|0,R=R+Math.imul(wt,dn)|0,k=k+Math.imul(bt,fn)|0,g=g+Math.imul(bt,hn)|0,g=g+Math.imul(pt,fn)|0,R=R+Math.imul(pt,hn)|0,k=k+Math.imul(_t,pn)|0,g=g+Math.imul(_t,mn)|0,g=g+Math.imul(nt,pn)|0,R=R+Math.imul(nt,mn)|0;var Yb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Yb>>>26)|0,Yb&=67108863,k=Math.imul(xt,cn),g=Math.imul(xt,dn),g=g+Math.imul(Ut,cn)|0,R=Math.imul(Ut,dn),k=k+Math.imul(fe,fn)|0,g=g+Math.imul(fe,hn)|0,g=g+Math.imul(wt,fn)|0,R=R+Math.imul(wt,hn)|0,k=k+Math.imul(bt,pn)|0,g=g+Math.imul(bt,mn)|0,g=g+Math.imul(pt,pn)|0,R=R+Math.imul(pt,mn)|0;var $b=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+($b>>>26)|0,$b&=67108863,k=Math.imul(xt,fn),g=Math.imul(xt,hn),g=g+Math.imul(Ut,fn)|0,R=Math.imul(Ut,hn),k=k+Math.imul(fe,pn)|0,g=g+Math.imul(fe,mn)|0,g=g+Math.imul(wt,pn)|0,R=R+Math.imul(wt,mn)|0;var Qb=(I+k|0)+((g&8191)<<13)|0;I=(R+(g>>>13)|0)+(Qb>>>26)|0,Qb&=67108863,k=Math.imul(xt,pn),g=Math.imul(xt,mn),g=g+Math.imul(Ut,pn)|0,R=Math.imul(Ut,mn);var ew=(I+k|0)+((g&8191)<<13)|0;return I=(R+(g>>>13)|0)+(ew>>>26)|0,ew&=67108863,C[0]=Db,C[1]=Ub,C[2]=Vb,C[3]=Bb,C[4]=Hb,C[5]=Fb,C[6]=jb,C[7]=zb,C[8]=Wb,C[9]=qb,C[10]=Zb,C[11]=Gb,C[12]=Xb,C[13]=Kb,C[14]=Jb,C[15]=Yb,C[16]=$b,C[17]=Qb,C[18]=ew,I!==0&&(C[19]=I,x.length++),x};Math.imul||(b=_);function w(N,f,p){p.negative=f.negative^N.negative,p.length=N.length+f.length;for(var x=0,T=0,E=0;E>>26)|0,T+=C>>>26,C&=67108863}p.words[E]=I,x=C,C=T}return x!==0?p.words[E]=x:p.length--,p._strip()}function A(N,f,p){return w(N,f,p)}s.prototype.mulTo=function(f,p){var x,T=this.length+f.length;return this.length===10&&f.length===10?x=b(this,f,p):T<63?x=_(this,f,p):T<1024?x=w(this,f,p):x=A(this,f,p),x},s.prototype.mul=function(f){var p=new s(null);return p.words=new Array(this.length+f.length),this.mulTo(f,p)},s.prototype.mulf=function(f){var p=new s(null);return p.words=new Array(this.length+f.length),A(this,f,p)},s.prototype.imul=function(f){return this.clone().mulTo(f,this)},s.prototype.imuln=function(f){var p=f<0;p&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var x=0,T=0;T>=26,x+=E/67108864|0,x+=C>>>26,this.words[T]=C&67108863}return x!==0&&(this.words[T]=x,this.length++),p?this.ineg():this},s.prototype.muln=function(f){return this.clone().imuln(f)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(f){var p=S(f);if(p.length===0)return new s(1);for(var x=this,T=0;T=0);var p=f%26,x=(f-p)/26,T=67108863>>>26-p<<26-p,E;if(p!==0){var C=0;for(E=0;E>>26-p}C&&(this.words[E]=C,this.length++)}if(x!==0){for(E=this.length-1;E>=0;E--)this.words[E+x]=this.words[E];for(E=0;E=0);var T;p?T=(p-p%26)/26:T=0;var E=f%26,C=Math.min((f-E)/26,this.length),I=67108863^67108863>>>E<C)for(this.length-=C,g=0;g=0&&(R!==0||g>=T);g--){var q=this.words[g]|0;this.words[g]=R<<26-E|q>>>E,R=q&I}return k&&R!==0&&(k.words[k.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(f,p,x){return r(this.negative===0),this.iushrn(f,p,x)},s.prototype.shln=function(f){return this.clone().ishln(f)},s.prototype.ushln=function(f){return this.clone().iushln(f)},s.prototype.shrn=function(f){return this.clone().ishrn(f)},s.prototype.ushrn=function(f){return this.clone().iushrn(f)},s.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var p=f%26,x=(f-p)/26,T=1<=0);var p=f%26,x=(f-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(p!==0&&x++,this.length=Math.min(x,this.length),p!==0){var T=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},s.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(k/67108864|0),this.words[E+x]=C&67108863}for(;E>26,this.words[E+x]=C&67108863;if(I===0)return this._strip();for(r(I===-1),I=0,E=0;E>26,this.words[E]=C&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(f,p){var x=this.length-f.length,T=this.clone(),E=f,C=E.words[E.length-1]|0,I=this._countBits(C);x=26-I,x!==0&&(E=E.ushln(x),T.iushln(x),C=E.words[E.length-1]|0);var k=T.length-E.length,g;if(p!=="mod"){g=new s(null),g.length=k+1,g.words=new Array(g.length);for(var R=0;R=0;X--){var G=(T.words[E.length+X]|0)*67108864+(T.words[E.length+X-1]|0);for(G=Math.min(G/C|0,67108863),T._ishlnsubmul(E,G,X);T.negative!==0;)G--,T.negative=0,T._ishlnsubmul(E,1,X),T.isZero()||(T.negative^=1);g&&(g.words[X]=G)}return g&&g._strip(),T._strip(),p!=="div"&&x!==0&&T.iushrn(x),{div:g||null,mod:T}},s.prototype.divmod=function(f,p,x){if(r(!f.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var T,E,C;return this.negative!==0&&f.negative===0?(C=this.neg().divmod(f,p),p!=="mod"&&(T=C.div.neg()),p!=="div"&&(E=C.mod.neg(),x&&E.negative!==0&&E.iadd(f)),{div:T,mod:E}):this.negative===0&&f.negative!==0?(C=this.divmod(f.neg(),p),p!=="mod"&&(T=C.div.neg()),{div:T,mod:C.mod}):this.negative&f.negative?(C=this.neg().divmod(f.neg(),p),p!=="div"&&(E=C.mod.neg(),x&&E.negative!==0&&E.isub(f)),{div:C.div,mod:E}):f.length>this.length||this.cmp(f)<0?{div:new s(0),mod:this}:f.length===1?p==="div"?{div:this.divn(f.words[0]),mod:null}:p==="mod"?{div:null,mod:new s(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new s(this.modrn(f.words[0]))}:this._wordDiv(f,p)},s.prototype.div=function(f){return this.divmod(f,"div",!1).div},s.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},s.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},s.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var x=p.div.negative!==0?p.mod.isub(f):p.mod,T=f.ushrn(1),E=f.andln(1),C=x.cmp(T);return C<0||E===1&&C===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},s.prototype.modrn=function(f){var p=f<0;p&&(f=-f),r(f<=67108863);for(var x=(1<<26)%f,T=0,E=this.length-1;E>=0;E--)T=(x*T+(this.words[E]|0))%f;return p?-T:T},s.prototype.modn=function(f){return this.modrn(f)},s.prototype.idivn=function(f){var p=f<0;p&&(f=-f),r(f<=67108863);for(var x=0,T=this.length-1;T>=0;T--){var E=(this.words[T]|0)+x*67108864;this.words[T]=E/f|0,x=E%f}return this._strip(),p?this.ineg():this},s.prototype.divn=function(f){return this.clone().idivn(f)},s.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var p=this,x=f.clone();p.negative!==0?p=p.umod(f):p=p.clone();for(var T=new s(1),E=new s(0),C=new s(0),I=new s(1),k=0;p.isEven()&&x.isEven();)p.iushrn(1),x.iushrn(1),++k;for(var g=x.clone(),R=p.clone();!p.isZero();){for(var q=0,X=1;!(p.words[0]&X)&&q<26;++q,X<<=1);if(q>0)for(p.iushrn(q);q-- >0;)(T.isOdd()||E.isOdd())&&(T.iadd(g),E.isub(R)),T.iushrn(1),E.iushrn(1);for(var G=0,de=1;!(x.words[0]&de)&&G<26;++G,de<<=1);if(G>0)for(x.iushrn(G);G-- >0;)(C.isOdd()||I.isOdd())&&(C.iadd(g),I.isub(R)),C.iushrn(1),I.iushrn(1);p.cmp(x)>=0?(p.isub(x),T.isub(C),E.isub(I)):(x.isub(p),C.isub(T),I.isub(E))}return{a:C,b:I,gcd:x.iushln(k)}},s.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var p=this,x=f.clone();p.negative!==0?p=p.umod(f):p=p.clone();for(var T=new s(1),E=new s(0),C=x.clone();p.cmpn(1)>0&&x.cmpn(1)>0;){for(var I=0,k=1;!(p.words[0]&k)&&I<26;++I,k<<=1);if(I>0)for(p.iushrn(I);I-- >0;)T.isOdd()&&T.iadd(C),T.iushrn(1);for(var g=0,R=1;!(x.words[0]&R)&&g<26;++g,R<<=1);if(g>0)for(x.iushrn(g);g-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);p.cmp(x)>=0?(p.isub(x),T.isub(E)):(x.isub(p),E.isub(T))}var q;return p.cmpn(1)===0?q=T:q=E,q.cmpn(0)<0&&q.iadd(f),q},s.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),x=f.clone();p.negative=0,x.negative=0;for(var T=0;p.isEven()&&x.isEven();T++)p.iushrn(1),x.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;x.isEven();)x.iushrn(1);var E=p.cmp(x);if(E<0){var C=p;p=x,x=C}else if(E===0||x.cmpn(1)===0)break;p.isub(x)}while(!0);return x.iushln(T)},s.prototype.invm=function(f){return this.egcd(f).a.umod(f)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(f){return this.words[0]&f},s.prototype.bincn=function(f){r(typeof f=="number");var p=f%26,x=(f-p)/26,T=1<>>26,I&=67108863,this.words[C]=I}return E!==0&&(this.words[C]=E,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this._strip();var x;if(this.length>1)x=1;else{p&&(f=-f),r(f<=67108863,"Number is too big");var T=this.words[0]|0;x=T===f?0:Tf.length)return 1;if(this.length=0;x--){var T=this.words[x]|0,E=f.words[x]|0;if(T!==E){TE&&(p=1);break}}return p},s.prototype.gtn=function(f){return this.cmpn(f)===1},s.prototype.gt=function(f){return this.cmp(f)===1},s.prototype.gten=function(f){return this.cmpn(f)>=0},s.prototype.gte=function(f){return this.cmp(f)>=0},s.prototype.ltn=function(f){return this.cmpn(f)===-1},s.prototype.lt=function(f){return this.cmp(f)===-1},s.prototype.lten=function(f){return this.cmpn(f)<=0},s.prototype.lte=function(f){return this.cmp(f)<=0},s.prototype.eqn=function(f){return this.cmpn(f)===0},s.prototype.eq=function(f){return this.cmp(f)===0},s.red=function(f){return new B(f)},s.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(f){return this.red=f,this},s.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},s.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},s.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},s.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},s.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},s.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},s.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},s.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var O={k256:null,p224:null,p192:null,p25519:null};function M(N,f){this.name=N,this.p=new s(f,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var f=new s(null);return f.words=new Array(Math.ceil(this.n/13)),f},M.prototype.ireduce=function(f){var p=f,x;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),x=p.bitLength();while(x>this.n);var T=x0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},M.prototype.split=function(f,p){f.iushrn(this.n,0,p)},M.prototype.imulK=function(f){return f.imul(this.k)};function U(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(U,M),U.prototype.split=function(f,p){for(var x=4194303,T=Math.min(f.length,9),E=0;E>>22,C=I}C>>>=22,f.words[E-10]=C,C===0&&f.length>10?f.length-=10:f.length-=9},U.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var p=0,x=0;x>>=26,f.words[x]=E,p=T}return p!==0&&(f.words[f.length++]=p),f},s._prime=function(f){if(O[f])return O[f];var p;if(f==="k256")p=new U;else if(f==="p224")p=new V;else if(f==="p192")p=new F;else if(f==="p25519")p=new L;else throw new Error("Unknown prime "+f);return O[f]=p,p};function B(N){if(typeof N=="string"){var f=s._prime(N);this.m=f.p,this.prime=f}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}B.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},B.prototype._verify2=function(f,p){r((f.negative|p.negative)===0,"red works only with positives"),r(f.red&&f.red===p.red,"red works only with red numbers")},B.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(c(f,f.umod(this.m)._forceRed(this)),f)},B.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},B.prototype.add=function(f,p){this._verify2(f,p);var x=f.add(p);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},B.prototype.iadd=function(f,p){this._verify2(f,p);var x=f.iadd(p);return x.cmp(this.m)>=0&&x.isub(this.m),x},B.prototype.sub=function(f,p){this._verify2(f,p);var x=f.sub(p);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},B.prototype.isub=function(f,p){this._verify2(f,p);var x=f.isub(p);return x.cmpn(0)<0&&x.iadd(this.m),x},B.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},B.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},B.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},B.prototype.isqr=function(f){return this.imul(f,f.clone())},B.prototype.sqr=function(f){return this.mul(f,f)},B.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(r(p%2===1),p===3){var x=this.m.add(new s(1)).iushrn(2);return this.pow(f,x)}for(var T=this.m.subn(1),E=0;!T.isZero()&&T.andln(1)===0;)E++,T.iushrn(1);r(!T.isZero());var C=new s(1).toRed(this),I=C.redNeg(),k=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new s(2*g*g).toRed(this);this.pow(g,k).cmp(I)!==0;)g.redIAdd(I);for(var R=this.pow(g,T),q=this.pow(f,T.addn(1).iushrn(1)),X=this.pow(f,T),G=E;X.cmp(C)!==0;){for(var de=X,we=0;de.cmp(C)!==0;we++)de=de.redSqr();r(we=0;E--){for(var R=p.words[E],q=g-1;q>=0;q--){var X=R>>q&1;if(C!==T[0]&&(C=this.sqr(C)),X===0&&I===0){k=0;continue}I<<=1,I|=X,k++,!(k!==x&&(E!==0||q!==0))&&(C=this.mul(C,T[I]),k=0,I=0)}g=26}return C},B.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},B.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},s.mont=function(f){return new W(f)};function W(N){B.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(W,B),W.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},W.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},W.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var x=f.imul(p),T=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=x.isub(T).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},W.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new s(0)._forceRed(this);var x=f.mul(p),T=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=x.isub(T).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},W.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,it)})(jw);var fg=jw.exports;const te=Sr(fg);function qo(t,{isLe:e=!1,isNegative:n=!1}={}){if(!t||t==="0x")return new te(0);const r=ku(t),i=new te(r,16,e?"le":"be");return n?i.fromTwos(r.length*4):i}function zw(t){return t?qo(t).toNumber():NaN}let s6=class{constructor(e){P(this,"__encoding");this.__encoding=e}decode(e){let n="";for(let r=0,i=e.length;r{const r=t[n];if(r===void 0)throw new Error(`Undefined value for key ${n}`);const i=Zw(r);return e.concat(i.map(s=>`${n}.${s}`))},[])}const hg=Zw(qw),Gw=t=>Ww(t).replace(/\0/g,"");function c6(t){return t.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}function d6(t){var e;return`0x${((e=t.match(/.{1,2}/g))==null?void 0:e.reverse().join(""))||""}`}function pg(t){"@babel/helpers - typeof";return pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pg(t)}var Xw=[],f6=Xw.forEach,h6=Xw.slice;function mg(t){return f6.call(h6.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function Kw(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":pg(XMLHttpRequest))==="object"}function p6(t){return!!t&&typeof t.then=="function"}function m6(t){return p6(t)?t:Promise.resolve(t)}function Jw(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gg={exports:{}},Gd={exports:{}},Yw;function g6(){return Yw||(Yw=1,function(t,e){var n=typeof self<"u"?self:it,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(a){var o={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(f){return f&&DataView.prototype.isPrototypeOf(f)}if(o.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(f){return f&&u.indexOf(Object.prototype.toString.call(f))>-1};function d(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function h(f){return typeof f!="string"&&(f=String(f)),f}function m(f){var p={next:function(){var x=f.shift();return{done:x===void 0,value:x}}};return o.iterable&&(p[Symbol.iterator]=function(){return p}),p}function y(f){this.map={},f instanceof y?f.forEach(function(p,x){this.append(x,p)},this):Array.isArray(f)?f.forEach(function(p){this.append(p[0],p[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(p){this.append(p,f[p])},this)}y.prototype.append=function(f,p){f=d(f),p=h(p);var x=this.map[f];this.map[f]=x?x+", "+p:p},y.prototype.delete=function(f){delete this.map[d(f)]},y.prototype.get=function(f){return f=d(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(d(f))},y.prototype.set=function(f,p){this.map[d(f)]=h(p)},y.prototype.forEach=function(f,p){for(var x in this.map)this.map.hasOwnProperty(x)&&f.call(p,this.map[x],x,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(p,x){f.push(x)}),m(f)},y.prototype.values=function(){var f=[];return this.forEach(function(p){f.push(p)}),m(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(p,x){f.push([x,p])}),m(f)},o.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function v(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function S(f){return new Promise(function(p,x){f.onload=function(){p(f.result)},f.onerror=function(){x(f.error)}})}function _(f){var p=new FileReader,x=S(p);return p.readAsArrayBuffer(f),x}function b(f){var p=new FileReader,x=S(p);return p.readAsText(f),x}function w(f){for(var p=new Uint8Array(f),x=new Array(p.length),T=0;T-1?p:f}function V(f,p){p=p||{};var x=p.body;if(f instanceof V){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,p.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!x&&f._bodyInit!=null&&(x=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=p.credentials||this.credentials||"same-origin",(p.headers||!this.headers)&&(this.headers=new y(p.headers)),this.method=U(p.method||this.method||"GET"),this.mode=p.mode||this.mode||null,this.signal=p.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function F(f){var p=new FormData;return f.trim().split("&").forEach(function(x){if(x){var T=x.split("="),E=T.shift().replace(/\+/g," "),C=T.join("=").replace(/\+/g," ");p.append(decodeURIComponent(E),decodeURIComponent(C))}}),p}function L(f){var p=new y,x=f.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(T){var E=T.split(":"),C=E.shift().trim();if(C){var I=E.join(":").trim();p.append(C,I)}}),p}O.call(V.prototype);function B(f,p){p||(p={}),this.type="default",this.status=p.status===void 0?200:p.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in p?p.statusText:"OK",this.headers=new y(p.headers),this.url=p.url||"",this._initBody(f)}O.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},B.error=function(){var f=new B(null,{status:0,statusText:""});return f.type="error",f};var W=[301,302,303,307,308];B.redirect=function(f,p){if(W.indexOf(p)===-1)throw new RangeError("Invalid status code");return new B(null,{status:p,headers:{location:f}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(p,x){this.message=p,this.name=x;var T=Error(p);this.stack=T.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function N(f,p){return new Promise(function(x,T){var E=new V(f,p);if(E.signal&&E.signal.aborted)return T(new a.DOMException("Aborted","AbortError"));var C=new XMLHttpRequest;function I(){C.abort()}C.onload=function(){var k={status:C.status,statusText:C.statusText,headers:L(C.getAllResponseHeaders()||"")};k.url="responseURL"in C?C.responseURL:k.headers.get("X-Request-URL");var g="response"in C?C.response:C.responseText;x(new B(g,k))},C.onerror=function(){T(new TypeError("Network request failed"))},C.ontimeout=function(){T(new TypeError("Network request failed"))},C.onabort=function(){T(new a.DOMException("Aborted","AbortError"))},C.open(E.method,E.url,!0),E.credentials==="include"?C.withCredentials=!0:E.credentials==="omit"&&(C.withCredentials=!1),"responseType"in C&&o.blob&&(C.responseType="blob"),E.headers.forEach(function(k,g){C.setRequestHeader(g,k)}),E.signal&&(E.signal.addEventListener("abort",I),C.onreadystatechange=function(){C.readyState===4&&E.signal.removeEventListener("abort",I)}),C.send(typeof E._bodyInit>"u"?null:E._bodyInit)})}return N.polyfill=!0,s.fetch||(s.fetch=N,s.Headers=y,s.Request=V,s.Response=B),a.Headers=y,a.Request=V,a.Response=B,a.fetch=N,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Gd,Gd.exports)),Gd.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof it<"u"&&it.fetch?n=it.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Jw<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||g6();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(gg,gg.exports);var $w=gg.exports;const Qw=Sr($w),ex=Ys({__proto__:null,default:Qw},[$w]);function Xd(t){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xd(t)}var vs;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?vs=global.fetch:typeof window<"u"&&window.fetch?vs=window.fetch:vs=fetch);var Tu;Kw()&&(typeof global<"u"&&global.XMLHttpRequest?Tu=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Tu=window.XMLHttpRequest));var Kd;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Kd=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Kd=window.ActiveXObject)),!vs&&ex&&!Tu&&!Kd&&(vs=Qw||ex),typeof vs!="function"&&(vs=void 0);var yg=function(e,n){if(n&&Xd(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},tx=function(e,n,r){vs(e,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(s){r(null,{status:i.status,data:s})}).catch(r)}).catch(r)},nx=!1,y6=function(e,n,r,i){e.queryStringParams&&(n=yg(n,e.queryStringParams));var s=mg({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);r&&(s["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,o=mg({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},nx?{}:a);try{tx(n,o,i)}catch(l){if(!a||Object.keys(a).length===0||!l.message||l.message.indexOf("not implemented")<0)return i(l);try{Object.keys(a).forEach(function(u){delete o[u]}),tx(n,o,i),nx=!0}catch(u){i(u)}}},v6=function(e,n,r,i){r&&Xd(r)==="object"&&(r=yg("",r).slice(1)),e.queryStringParams&&(n=yg(n,e.queryStringParams));try{var s;Tu?s=new Tu:s=new Kd("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var o in a)s.setRequestHeader(o,a[o]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch{}},_6=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},vs)return y6(e,n,r,i);if(Kw()||typeof ActiveXObject=="function")return v6(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function b6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rx(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b6(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return w6(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=mg(i,this.options||{},S6()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,a){var o=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=m6(l),l.then(function(u){if(!u)return a(null,{});var c=o.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});o.loadUrl(c,a,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var a=this;this.options.request(this.options,n,void 0,function(o,l){if(l&&(l.status>=500&&l.status<600||!l.status))return r("failed loading "+n+"; status code: "+l.status,!0);if(l&&l.status>=400&&l.status<500)return r("failed loading "+n+"; status code: "+l.status,!1);if(!l&&o&&o.message&&o.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+o.message,!0);if(o)return r(o,!1);var u,c;try{typeof l.data=="string"?u=a.options.parse(l.data,i,s):u=l.data}catch{c="failed parsing "+n+" to json"}if(c)return r(c,!1);r(null,u)})}},{key:"create",value:function(n,r,i,s,a){var o=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,s),u=0,c=[],d=[];n.forEach(function(h){var m=o.options.addPath;typeof o.options.addPath=="function"&&(m=o.options.addPath(h,r));var y=o.services.interpolator.interpolate(m,{lng:h,ns:r});o.options.request(o.options,y,l,function(v,S){u+=1,c.push(v),d.push(S),u===n.length&&a&&a(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,a=r.logger,o=i.language;if(!(o&&o.toLowerCase()==="cimode")){var l=[],u=function(d){var h=s.toResolveHierarchy(d);h.forEach(function(m){l.indexOf(m)<0&&l.push(m)})};u(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(h,m){h&&a.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&m&&a.log("loaded namespace ".concat(d," for language ").concat(c),m),i.loaded("".concat(c,"|").concat(d),h,m)})})})}}}]),t}();ix.type="backend";var sx=[],E6=sx.forEach,C6=sx.slice;function k6(t){return E6.call(C6.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var ax=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,T6=function(e,n,r){var i=r||{};i.path=i.path||"/";var s=encodeURIComponent(n),a="".concat(e,"=").concat(s);if(i.maxAge>0){var o=i.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(i.domain){if(!ax.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!ax.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},ox={create:function(e,n,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+r*60*1e3)),i&&(s.domain=i),document.cookie=T6(e,encodeURIComponent(n),s)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),s=i.split("&"),a=0;a0){var l=s[a].substring(0,o);l===e.lookupQuerystring&&(n=s[a].substring(o+1))}}}return n}},Pu=null,lx=function(){if(Pu!==null)return Pu;try{Pu=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Pu=!1}return Pu},N6={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&lx()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&lx()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Au=null,ux=function(){if(Au!==null)return Au;try{Au=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Au=!1}return Au},R6={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&ux()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&ux()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},I6={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},O6={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},M6={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},L6={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function D6(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var cx=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qr(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Zr(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=k6(r,this.options||{},D6()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(P6),this.addDetector(A6),this.addDetector(N6),this.addDetector(R6),this.addDetector(I6),this.addDetector(O6),this.addDetector(M6),this.addDetector(L6)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(s){if(r.detectors[s]){var a=r.detectors[s].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(s){return r.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(s){i.detectors[s]&&i.detectors[s].cacheUserLanguage(n,i.options)}))}}]),t}();cx.type="languageDetector";function _s(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jd(t,e){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jd(t,e)}function Yd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jd(t,e)}function Nu(t,e){if(e&&(ci(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _s(t)}function Bi(t){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bi(t)}function U6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function V6(t){return Tw(t)||U6(t)||Aw(t)||Nw()}function dx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fx(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};qr(this,t),this.init(e,n)}return Zr(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||B6,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),s=1;s-1?o.replace(/###/g,"."):o}function i(){return!t||typeof t=="string"}for(var s=typeof e!="string"?[].concat(e):e.split(".");s.length>1;){if(i())return{};var a=r(s.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(s.shift())}}function px(t,e,n){var r=vg(t,e,Object),i=r.obj,s=r.k;i[s]=n}function j6(t,e,n,r){var i=vg(t,e,Object),s=i.obj,a=i.k;s[a]=s[a]||[],r&&(s[a]=s[a].concat(n)),r||s[a].push(n)}function $d(t,e){var n=vg(t,e),r=n.obj,i=n.k;if(r)return r[i]}function mx(t,e,n){var r=$d(t,n);return r!==void 0?r:$d(e,n)}function gx(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):gx(t[r],e[r],n):t[r]=e[r]);return t}function Zo(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var z6={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function W6(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return z6[e]}):t}var Qd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,q6=[" ",",","?","!",";"];function Z6(t,e,n){e=e||"",n=n||"";var r=q6.filter(function(o){return e.indexOf(o)<0&&n.indexOf(o)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(o){return o==="?"?"\\?":o}).join("|"),")")),s=!i.test(t);if(!s){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(s=!0)}return s}function yx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ef(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vx(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,s=0;ss+a;)a++,o=r.slice(s,s+a).join(n),l=i[o];if(l===void 0)return;if(l===null)return null;if(e.endsWith(o)){if(typeof l=="string")return l;if(o&&typeof l[o]=="string")return l[o]}var u=r.slice(s+a).join(n);return u?vx(l,u,n):void 0}i=i[r[s]]}return i}}var K6=function(t){Yd(n,t);var e=G6(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return qr(this,n),i=e.call(this),Qd&&Qs.call(_s(i)),i.data=r||{},i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Zr(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}},{key:"getResource",value:function(i,s,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,s];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."));var d=$d(this.data,c);return d||!u||typeof a!="string"?d:vx(this.data&&this.data[i]&&this.data[i][s],a,l)}},{key:"addResource",value:function(i,s,a,o){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[i,s];a&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."),o=s,s=c[1]),this.addNamespaces(s),px(this.data,c,o),l.silent||this.emit("added",i,s,a,o)}},{key:"addResources",value:function(i,s,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,s,l,a[l],{silent:!0});o.silent||this.emit("added",i,s,a)}},{key:"addResourceBundle",value:function(i,s,a,o,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,s];i.indexOf(".")>-1&&(c=i.split("."),o=a,a=s,s=c[1]),this.addNamespaces(s);var d=$d(this.data,c)||{};o?gx(d,a,l):d=ef(ef({},d),a),px(this.data,c,d),u.silent||this.emit("added",i,s,a)}},{key:"removeResourceBundle",value:function(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}},{key:"hasResourceBundle",value:function(i,s){return this.getResource(i,s)!==void 0}},{key:"getResourceBundle",value:function(i,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ef(ef({},{}),this.getResource(i,s)):this.getResource(i,s)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var s=this.getDataByLanguage(i),a=s&&Object.keys(s)||[];return!!a.find(function(o){return s[o]&&Object.keys(s[o]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Qs),_x={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,s){var a=this;return e.forEach(function(o){a.processors[o]&&(n=a.processors[o].process(n,r,i,s))}),n}};function bx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tr(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var wx={},xx=function(t){Yd(n,t);var e=J6(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qr(this,n),i=e.call(this),Qd&&Qs.call(_s(i)),F6(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,_s(i)),i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Hi.create("translator"),i}return Zr(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,s);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,s){var a=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ns||this.options.defaultNS||[],u=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!Z6(i,a,o);if(u&&!c){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var h=i.split(a);(a!==o||a===o&&this.options.ns.indexOf(h[0])>-1)&&(l=h.shift()),i=h.join(o)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,s,a){var o=this;if(ci(s)!=="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),s||(s={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],s),d=c.key,h=c.namespaces,m=h[h.length-1],y=s.lng||this.language,v=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y&&y.toLowerCase()==="cimode"){if(v){var S=s.nsSeparator||this.options.nsSeparator;return l?(_.res="".concat(m).concat(S).concat(d),_):"".concat(m).concat(S).concat(d)}return l?(_.res=d,_):d}var _=this.resolve(i,s),b=_&&_.res,w=_&&_.usedKey||d,A=_&&_.exactUsedKey||d,O=Object.prototype.toString.apply(b),M=["[object Number]","[object Function]","[object RegExp]"],U=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,V=!this.i18nFormat||this.i18nFormat.handleAsObject,F=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(V&&b&&F&&M.indexOf(O)<0&&!(typeof U=="string"&&O==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,b,tr(tr({},s),{},{ns:h})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(_.res=L,_):L}if(u){var B=O==="[object Array]",W=B?[]:{},N=B?A:w;for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var p="".concat(N).concat(u).concat(f);W[f]=this.translate(p,tr(tr({},s),{joinArrays:!1,ns:h})),W[f]===p&&(W[f]=b[f])}b=W}}else if(V&&typeof U=="string"&&O==="[object Array]")b=b.join(U),b&&(b=this.extendTranslation(b,i,s,a));else{var x=!1,T=!1,E=s.count!==void 0&&typeof s.count!="string",C=n.hasDefaultValue(s),I=E?this.pluralResolver.getSuffix(y,s.count,s):"",k=s["defaultValue".concat(I)]||s.defaultValue;!this.isValidLookup(b)&&C&&(x=!0,b=k),this.isValidLookup(b)||(T=!0,b=d);var g=s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,R=g&&T?void 0:b,q=C&&k!==b&&this.options.updateMissing;if(T||x||q){if(this.logger.log(q?"updateKey":"missingKey",y,m,d,q?k:b),u){var X=this.resolve(d,tr(tr({},s),{},{keySeparator:!1}));X&&X.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var G=[],de=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&de&&de[0])for(var we=0;we1&&arguments[1]!==void 0?arguments[1]:{},o,l,u,c,d;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!s.isValidLookup(o)){var m=s.extractFromKey(h,a),y=m.key;l=y;var v=m.namespaces;s.options.fallbackNS&&(v=v.concat(s.options.fallbackNS));var S=a.count!==void 0&&typeof a.count!="string",_=S&&!a.ordinal&&a.count===0&&s.pluralResolver.shouldUseIntlApi(),b=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);v.forEach(function(A){s.isValidLookup(o)||(d=A,!wx["".concat(w[0],"-").concat(A)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(d)&&(wx["".concat(w[0],"-").concat(A)]=!0,s.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(O){if(!s.isValidLookup(o)){c=O;var M=[y];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(M,y,O,A,a);else{var U;S&&(U=s.pluralResolver.getSuffix(O,a.count,a));var V="".concat(s.options.pluralSeparator,"zero");if(S&&(M.push(y+U),_&&M.push(y+V)),b){var F="".concat(y).concat(s.options.contextSeparator).concat(a.context);M.push(F),S&&(M.push(F+U),_&&M.push(F+V))}}for(var L;L=M.pop();)s.isValidLookup(o)||(u=L,o=s.getResource(O,A,L,a))}}))})}}),{res:o,usedKey:l,exactUsedKey:u,usedLng:c,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,s,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,s,a,o):this.resourceStore.getResource(i,s,a,o)}}],[{key:"hasDefaultValue",value:function(i){var s="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&s===a.substring(0,s.length)&&i[a]!==void 0)return!0;return!1}}]),n}(Qs);function _g(t){return t.charAt(0).toUpperCase()+t.slice(1)}var $6=function(){function t(e){qr(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hi.create("languageUtils")}return Zr(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(s){return s.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_g(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_g(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_g(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(s){if(!i){var a=r.formatLanguageCode(s);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(s){if(!i){var a=r.getLanguagePartFromCode(s);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(o){if(o.indexOf(a)===0)return o})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,s=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],o=function(u){u&&(i.isSupportedCode(u)?a.push(u):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(n))):typeof n=="string"&&o(this.formatLanguageCode(n)),s.forEach(function(l){a.indexOf(l)<0&&o(i.formatLanguageCode(l))}),a}}]),t}(),Q6=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],eI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},tI=["v1","v2","v3"],Sx={zero:0,one:1,two:2,few:3,many:4,other:5};function nI(){var t={};return Q6.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:eI[e.fc]}})}),t}var rI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qr(this,t),this.languageUtils=e,this.options=n,this.logger=Hi.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nI()}return Zr(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(s){return"".concat(r).concat(s)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(function(a,o){return Sx[a]-Sx[o]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):s.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(r)):this.getSuffixRetroCompatible(s,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,s=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[s];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var o=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?o():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!tI.includes(this.options.compatibilityJSON)}}]),t}();function Ex(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fi(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};qr(this,t),this.logger=Hi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return Zr(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:W6,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Zo(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Zo(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Zo(r.nestingPrefix):r.nestingPrefixEscaped||Zo("$t("),this.nestingSuffix=r.nestingSuffix?Zo(r.nestingSuffix):r.nestingSuffixEscaped||Zo(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,s){var a=this,o,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(S){return S.replace(/\$/g,"$$$$")}var h=function(_){if(_.indexOf(a.formatSeparator)<0){var b=mx(r,c,_);return a.alwaysFormat?a.format(b,void 0,i,fi(fi(fi({},s),r),{},{interpolationkey:_})):b}var w=_.split(a.formatSeparator),A=w.shift().trim(),O=w.join(a.formatSeparator).trim();return a.format(mx(r,c,A),O,i,fi(fi(fi({},s),r),{},{interpolationkey:A}))};this.resetRegExp();var m=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,y=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(_){return d(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?d(a.escape(_)):d(_)}}];return v.forEach(function(S){for(u=0;o=S.regex.exec(n);){var _=o[1].trim();if(l=h(_),l===void 0)if(typeof m=="function"){var b=m(n,o,s);l=typeof b=="string"?b:""}else if(s&&s.hasOwnProperty(_))l="";else if(y){l=o[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=hx(l));var w=S.safeValue(l);if(n=n.replace(o[0],w),y?(S.regex.lastIndex+=l.length,S.regex.lastIndex-=o[0].length):S.regex.lastIndex=0,u++,u>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,l=fi({},s);l.applyPostProcessor=!1,delete l.defaultValue;function u(m,y){var v=this.nestingOptionsSeparator;if(m.indexOf(v)<0)return m;var S=m.split(new RegExp("".concat(v,"[ ]*{"))),_="{".concat(S[1]);m=S[0],_=this.interpolate(_,l);var b=_.match(/'/g),w=_.match(/"/g);(b&&b.length%2===0&&!w||w.length%2!==0)&&(_=_.replace(/'/g,'"'));try{l=JSON.parse(_),y&&(l=fi(fi({},y),l))}catch(A){return this.logger.warn("failed parsing options string in nesting for key ".concat(m),A),"".concat(m).concat(v).concat(_)}return delete l.defaultValue,m}for(;a=this.nestingRegexp.exec(n);){var c=[],d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(m){return m.trim()});a[1]=h.shift(),c=h,d=!0}if(o=r(u.call(this,a[1].trim(),l),l),o&&a[0]===n&&typeof o!="string")return o;typeof o!="string"&&(o=hx(o)),o||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),o=""),d&&(o=c.reduce(function(m,y){return i.format(m,y,s.lng,fi(fi({},s),{},{interpolationkey:a[1].trim()}))},o.trim())),n=n.replace(a[0],o),this.regexp.lastIndex=0}return n}}]),t}();function Cx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ea(t){for(var e=1;e-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var s=i.split(";");s.forEach(function(a){if(a){var o=a.split(":"),l=V6(o),u=l[0],c=l.slice(1),d=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=d),d==="false"&&(n[u.trim()]=!1),d==="true"&&(n[u.trim()]=!0),isNaN(d)||(n[u.trim()]=parseInt(d,10))}})}}return{formatName:e,formatOptions:n}}function Go(t){var e={};return function(r,i,s){var a=i+JSON.stringify(s),o=e[a];return o||(o=t(i,s),e[a]=o),o(r)}}var aI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(this,t),this.logger=Hi.create("formatter"),this.options=e,this.formats={number:Go(function(n,r){var i=new Intl.NumberFormat(n,r);return function(s){return i.format(s)}}),currency:Go(function(n,r){var i=new Intl.NumberFormat(n,ea(ea({},r),{},{style:"currency"}));return function(s){return i.format(s)}}),datetime:Go(function(n,r){var i=new Intl.DateTimeFormat(n,ea({},r));return function(s){return i.format(s)}}),relativetime:Go(function(n,r){var i=new Intl.RelativeTimeFormat(n,ea({},r));return function(s){return i.format(s,r.range||"day")}}),list:Go(function(n,r){var i=new Intl.ListFormat(n,ea({},r));return function(s){return i.format(s)}})},this.init(e)}return Zr(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Go(r)}},{key:"format",value:function(n,r,i,s){var a=this,o=r.split(this.formatSeparator),l=o.reduce(function(u,c){var d=sI(c),h=d.formatName,m=d.formatOptions;if(a.formats[h]){var y=u;try{var v=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},S=v.locale||v.lng||s.locale||s.lng||i;y=a.formats[h](u,S,ea(ea(ea({},m),s),v))}catch(_){a.logger.warn(_)}return y}else a.logger.warn("there was no format function for ".concat(h));return u},n);return l}}]),t}();function kx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Tx(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var cI=function(t){Yd(n,t);var e=oI(n);function n(r,i,s){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return qr(this,n),a=e.call(this),Qd&&Qs.call(_s(a)),a.backend=r,a.store=i,a.services=s,a.languageUtils=s.languageUtils,a.options=o,a.logger=Hi.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=o.maxParallelReads||10,a.readingCalls=0,a.maxRetries=o.maxRetries>=0?o.maxRetries:5,a.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(s,o.backend,o),a}return Zr(n,[{key:"queueLoad",value:function(i,s,a,o){var l=this,u={},c={},d={},h={};return i.forEach(function(m){var y=!0;s.forEach(function(v){var S="".concat(m,"|").concat(v);!a.reload&&l.store.hasResourceBundle(m,v)?l.state[S]=2:l.state[S]<0||(l.state[S]===1?c[S]===void 0&&(c[S]=!0):(l.state[S]=1,y=!1,c[S]===void 0&&(c[S]=!0),u[S]===void 0&&(u[S]=!0),h[v]===void 0&&(h[v]=!0)))}),y||(d[m]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,s,a){var o=i.split("|"),l=o[0],u=o[1];s&&this.emit("failedLoading",l,u,s),a&&this.store.addResourceBundle(l,u,a),this.state[i]=s?-1:2;var c={};this.queue.forEach(function(d){j6(d.loaded,[l],u),uI(d,i),s&&d.errors.push(s),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(h){c[h]||(c[h]={});var m=d.loaded[h];m.length&&m.forEach(function(y){c[h][y]===void 0&&(c[h][y]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,s,a){var o=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:a,tried:l,wait:u,callback:c});return}return this.readingCalls++,this.backend[a](i,s,function(d,h){if(o.readingCalls--,o.waitingReads.length>0){var m=o.waitingReads.shift();o.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&h&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof s=="string"&&(s=[s]);var u=this.queueLoad(i,s,o,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,s,a){this.prepareLoading(i,s,{},a)}},{key:"reload",value:function(i,s,a){this.prepareLoading(i,s,{reload:!0},a)}},{key:"loadOne",value:function(i){var s=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=i.split("|"),l=o[0],u=o[1];this.read(l,u,"read",void 0,void 0,function(c,d){c&&s.logger.warn("".concat(a,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&d&&s.logger.log("".concat(a,"loaded namespace ").concat(u," for language ").concat(l),d),s.loaded(i,c,d)})}},{key:"saveMissing",value:function(i,s,a,o,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(i,s,a,o,null,Tx(Tx({},u),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],s,a,o))}}]),n}(Qs);function dI(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(ci(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),ci(e[2])==="object"||ci(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Px(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Ax(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fi(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(){}function pI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var nf=function(t){Yd(n,t);var e=fI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(qr(this,n),r=e.call(this),Qd&&Qs.call(_s(r)),r.options=Px(i),r.services={},r.logger=Hi,r.modules={external:[]},pI(_s(r)),s&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,s),Nu(r,_s(r));setTimeout(function(){r.init(i,s)},0)}return r}return Zr(n,[{key:"init",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(a=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));var o=dI();this.options=Fi(Fi(Fi({},o),this.options),Px(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Fi(Fi({},o.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function l(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?Hi.init(l(this.modules.logger),this.options):Hi.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=aI);var c=new $6(this.options);this.store=new K6(this.options.resources,this.options);var d=this.services;d.logger=Hi,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new rI(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=l(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new iI(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new cI(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(_){for(var b=arguments.length,w=new Array(b>1?b-1:0),A=1;A1?b-1:0),A=1;A0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var m=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];m.forEach(function(_){i[_]=function(){var b;return(b=i.store)[_].apply(b,arguments)}});var y=["addResource","addResources","addResourceBundle","removeResourceBundle"];y.forEach(function(_){i[_]=function(){var b;return(b=i.store)[_].apply(b,arguments),i}});var v=Ru(),S=function(){var b=function(A,O){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(O),a(A,O)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),v}},{key:"loadResources",value:function(i){var s=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,o=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(o=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return o();var u=[],c=function(m){if(m){var y=s.services.languageUtils.toResolveHierarchy(m);y.forEach(function(v){u.indexOf(v)<0&&u.push(v)})}};if(l)c(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(u,this.options.ns,function(h){!h&&!s.resolvedLanguage&&s.language&&s.setResolvedLanguage(s.language),o(h)})}else o(null)}},{key:"reloadResources",value:function(i,s,a){var o=Ru();return i||(i=this.languages),s||(s=this.options.ns),a||(a=tf),this.services.backendConnector.reload(i,s,function(l){o.resolve(),a(l)}),o}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&_x.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var s=0;s-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,s){var a=this;this.isLanguageChangingTo=i;var o=Ru();this.emit("languageChanging",i);var l=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},u=function(h,m){m?(l(m),a.translator.changeLanguage(m),a.isLanguageChangingTo=void 0,a.emit("languageChanged",m),a.logger.log("languageChanged",m)):a.isLanguageChangingTo=void 0,o.resolve(function(){return a.t.apply(a,arguments)}),s&&s(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var m=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);m&&(a.language||l(m),a.translator.language||a.translator.changeLanguage(m),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(m)),a.loadResources(m,function(y){u(y,m)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(i),o}},{key:"getFixedT",value:function(i,s,a){var o=this,l=function u(c,d){var h;if(ci(d)!=="object"){for(var m=arguments.length,y=new Array(m>2?m-2:0),v=2;v1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var c=function(m,y){var v=s.services.backendConnector.state["".concat(m,"|").concat(y)];return v===-1||v===2};if(a.precheck){var d=a.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(o,i)&&(!l||c(u,i)))}},{key:"loadNamespaces",value:function(i,s){var a=this,o=Ru();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){o.resolve(),s&&s(l)}),o):(s&&s(),Promise.resolve())}},{key:"loadLanguages",value:function(i,s){var a=Ru();typeof i=="string"&&(i=[i]);var o=this.options.preload||[],l=i.filter(function(u){return o.indexOf(u)<0});return l.length?(this.options.preload=o.concat(l),this.loadResources(function(u){a.resolve(),s&&s(u)}),a):(s&&s(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return s.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,o=Fi(Fi(Fi({},this.options),s),{isClone:!0}),l=new n(o);(s.debug!==void 0||s.prefix!==void 0)&&(l.logger=l.logger.clone(s));var u=["store","services","language"];return u.forEach(function(c){l[c]=i[c]}),l.services=Fi({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new xx(l.services,l.options),l.translator.on("*",function(c){for(var d=arguments.length,h=new Array(d>1?d-1:0),m=1;m0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new nf(t,e)});var Nx=nf.createInstance();Nx.createInstance=nf.createInstance;const Iu=Nx,Rx={debug:!1,fallbackLng:"en",resources:{en:{translation:qw},sr:{translation:{WIDGET:{SELECT_ALL:"Izaberite sve slike koje sadrže",NEXT:"Sledeće",SUBMIT:"Prihvati",CANCEL:"Otkaži",SELECT_ACCOUNT:"Odaberi nalog",NO_ACCOUNTS_FOUND:"Nije pronaÄ‘en nijedan nalog",ACCOUNT_NOT_FOUND:"Nalog nije pronaÄ‘en",NO_EXTENSION_FOUND:"Nije pronaÄ‘en nijedan dodatak",EXTENSION_NOT_FOUND:"Ekstenzija nije pronaÄ‘ena"},GENERAL:{BAD_SURI:"LoÅ¡ SURI",CANNOT_FIND_CONFIG_FILE:"prosopo.config.js / prosopo.config.ts nije pronaÄ‘en.",JSON_LOAD_FAILED:"Failed to load JSON file",CREATE_JSON_FILE_FAILED:"Učitavanje JSON datoteke nije uspelo",ASSERT_ERROR:"AssertionError",GENERATE_CPATCHAS_JSON_FAILED:"NeÅ¡to je poÅ¡lo naopako pri pravljenju captchas json datoteke",CALCULATE_CAPTCHA_SOLUTION:"NeÅ¡to je poÅ¡lo naopako pri izračunavanju captcha reÅ¡enja",MNEMONIC_UNDEFINED:"Mnemonik snabdevača nedefinisan. Podesite `PROVIDER_MNEMONIC` u promenljivama okruženja",NO_MNEMONIC_OR_SEED:"Mnemonik / seed snabdevača nedefinisan.",ASYNC_FACTORY_CREATE:"Koristite factory metodu „kreiraj“.",CANT_FIND_KEYRINGPAIR:"Keyringpair nije pronaÄ‘en za {{address}}",ENVIRONMENT_NOT_READY:"Environment not ready",INVALID_SIGNATURE:"Invalid signature",PAIR_TYPE_UNDEFINED:"Pair type undefined",NOT_IMPLEMENTED:"Ne sprovodi",NO_PAIR_TYPE_OR_SS58_FORMAT:"No pair type or ss58 format provided",SITE_KEY_MISSING:"SITE KEY missing",ACCOUNT_NOT_FOUND:"Account not found"},CONTRACT:{INVALID_METHOD:"Nevažeća metoda ugovora",TX_ERROR:"GreÅ¡ka pri kreiranju transakcije",QUERY_ERROR:"GreÅ¡ka pri kreiranju upita",INVALID_ADDRESS:"Kodiranje nevažeće adrese nije uspelo",INVALID_STORAGE_NAME:"Pronalaženje datog imena skladiÅ¡ta nije uspelo",CAPTCHA_SOLUTION_COMMITMENT_DOES_NOT_EXIST:"Predaja captcha reÅ¡enja ne postoji",DAPP_NOT_ACTIVE:"Dapp nije aktivan",CONTRACT_UNDEFINED:"Ugovor nedefinisan",SIGNER_UNDEFINED:"Signer nedefinisan",SIGNER_NOT_SUPPORTED:"Signer nije podržan. Umesto toga koristite connect, npr. contract.connect(signer)",CANNOT_FIND_KEYPAIR:"Nije moguće pronaći par ključeva",INVALID_TYPE:"Invalid type",INVALID_ABI:"Invalid ABI",NOT_HANDLED:"Not handled",INVALID_STORAGE_TYPE:"Invalid storage type"},CONFIG:{UNKNOWN_ENVIRONMENT:"Zatraženo je nepoznato okruženje",INVALID_CAPTCHA_NUMBER:"Molimo vas da ispravno podesite captcha konfiguracije",CONFIGURATIONS_LOAD_FAILED:"Učitavanje Prosopo konfiguracija nije uspelo",INVALID_LOG_LEVEL:"Nevažeći nivo evidencije"},DATASET:{PARSE_ERROR:"GreÅ¡ka pri parsiranju skupa podataka",HASH_ERROR:"GreÅ¡ka pri heÅ¡iranju skupa podataka",INVALID_DATASET_ID:"Nevažeći ID skupa podataka",CAPTCHAS_COUNT_LESS_THAN_CONFIGURED:"Broj captcha u skupu podataka je manji od konfigurisanog broja captcha",SOLUTIONS_COUNT_LESS_THAN_CONFIGURED:"Broj reÅ¡enja u skupu podataka je manji od konfigurisanog broja reÅ¡enja"},DATABASE:{CONNECT_ERROR:"Neuspelo povezivanje",DATABASE_IMPORT_FAILED:"Import engine-a baze podataka nije uspeo",DATABASE_UNDEFINED:"Klijent baze podataka nije definisan",DATABASE_HOST_UNDEFINED:"Adresa domaćina baze podataka nije definisana",COLLECTION_UNDEFINED:"Kolekcija baze podataka nije definisana",DATASET_LOAD_FAILED:"Učitavanje skupa podataka nije uspelo",DATASET_GET_FAILED:"Preuzimanje skupa podataka nije uspelo",CAPTCHA_GET_FAILED:"Preuzimanje captcha-e nije uspelo",NO_CAPTCHAS_FOUND:"Nema captcha-e koja se podudara sa ID-om skupa podataka",PENDING_RECORD_NOT_FOUND:"Nije pronaÄ‘en nijedan zapis na čekanju",INVALID_HASH:"Nevažeći heÅ¡",SOLUTION_GET_FAILED:"Preuzimanje reÅ¡enja nije uspelo",DATASET_WITH_SOLUTIONS_GET_FAILED:"Nisu pronaÄ‘eni skupovi podataka sa potrebnim brojem reÅ¡enja",SOLUTION_APPROVE_FAILED:"Failed to approve solution",SOLUTION_FLAG_FAILED:"Failed to flag solution as processed",COMMITMENT_FLAG_FAILED:"Failed to flag commitment as processed"},CAPTCHA:{PARSE_ERROR:"GreÅ¡ka pri parsiranju captcha",INVALID_CAPTCHA_ID:"Nevažeći ID captcha-e",SOLUTION_HASH_ERROR:"GreÅ¡ka pri heÅ¡iranju reÅ¡enja",INVALID_ITEM_FORMAT:"Dozvoljeni su samo slikovni i tekstualni tipovi stavki",INVALID_SOLUTION_TYPE:"Nevažeći tip reÅ¡enja",DIFFERENT_DATASET_IDS:"ID-ovi skupova podataka se ne podudaraju",INVALID_BLOCK_NO:"Broj bloka nije validan",ID_MISMATCH:"ID-ovi captcha-i se ne podudaraju",MISSING_ITEM_HASH:"Nedostaje heÅ¡ stavke",INVALID_LEAF_HASH:"Nedostaje heÅ¡ lista",INVALID_CAPTCHA_CHALLENGE:"Invalid captcha challenge",INVALID_DATASET_CONTENT_ID:"Invalid dataset content id",DAPP_USER_SOLUTION_NOT_FOUND:"Dapp user solution not found",INVALID_PROVIDER_URL:"Invalid provider url"},API:{BODY_UNDEFINED:"Body mora biti definisan u API POST pozivu",PARAMETER_UNDEFINED:"Parametri moraju biti definisani u API POST pozivu",CAPTCHA_FAILED:"Netačno ste odgovorili na jednu ili viÅ¡e captcha. Molim vas, pokuÅ¡ajte ponovo",CAPTCHA_PENDING:"Captcha reÅ¡enja su predata i čekaju odobrenje",CAPTCHA_PASSED:"Tačno ste odgovorili na captcha-e",BAD_REQUEST:"Neispravan zahtev",PAYMENT_INFO_NOT_FOUND:"Informacije o plaćanju nisu pronaÄ‘ene za date heÅ¡ove bloka i transakcije",USER_VERIFIED:"User verified",USER_NOT_VERIFIED:"User not verified"},CLI:{PARAMETER_ERROR:"Nevažeći parametar"},DEVELOPER:{PROSOPO_SITE_KEY_MISSING:"PROSOPO_SITE_KEY nije podeÅ¡en u .env datoteci.",BALANCE_TOO_LOW:"{{mnemonic}} balans je prenizak: {{balance}}",CAPTCHA_ID_MISSING:"Nije moguće pronaći ID podataka captcha-e",COMMITMENT_ID_MISSING:"Nedostaje ID predaje",PROVIDER_NOT_FOUND:"Snabdevač nije pronaÄ‘en",CREATE_ACCOUNT_FAILED:"Nije moguće kreirati nalog!",CREATE_ACCOUNT_FAILED_OUT_OF_FUNDS:"Could not create an account as there are no funds. Restart the substrate node.",NO_MOCK_ENV:"MockEnvironment nije podeÅ¡en",ACCOUNT_TYPE_MISSING:"{{accountType}} nije kreiran od strane databasePopulator-a",FUNDING_FAILED:"Finansiranje nije uspelo",MISSING_PROVIDER_PAIR:"Missing provider pair"}}}}},mI={react:{useSuspense:!1}},gI={};u6()?Iu.use(cx).use(MR).init({...Rx,...mI}):Iu.use(ix).use(xR).init({...Rx,...gI});function yI(t){return FR("translation",{i18n:Iu,...t})}var Fe;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return t.objectValues(a)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},t.find=(i,s)=>{for(const a of i)if(s(a))return a},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Fe||(Fe={}));var bg;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(bg||(bg={}));const ie=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ta=t=>{switch(typeof t){case"undefined":return ie.undefined;case"string":return ie.string;case"number":return isNaN(t)?ie.nan:ie.number;case"boolean":return ie.boolean;case"function":return ie.function;case"bigint":return ie.bigint;case"symbol":return ie.symbol;case"object":return Array.isArray(t)?ie.array:t===null?ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ie.promise:typeof Map<"u"&&t instanceof Map?ie.map:typeof Set<"u"&&t instanceof Set?ie.set:typeof Date<"u"&&t instanceof Date?ie.date:ie.object;default:return ie.unknown}},Y=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),vI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Gr extends Error{constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const n=e||function(s){return s.message},r={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let o=r,l=0;for(;ln.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Gr.create=t=>new Gr(t);const Ou=(t,e)=>{let n;switch(t.code){case Y.invalid_type:t.received===ie.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Fe.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(t.keys,", ")}`;break;case Y.invalid_union:n="Invalid input";break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(t.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(t.options)}, received '${t.received}'`;break;case Y.invalid_arguments:n="Invalid function arguments";break;case Y.invalid_return_type:n="Invalid function return type";break;case Y.invalid_date:n="Invalid date";break;case Y.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Fe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Y.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Y.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Y.custom:n="Invalid input";break;case Y.invalid_intersection_types:n="Intersection results could not be merged";break;case Y.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Y.not_finite:n="Number must be finite";break;default:n=e.defaultError,Fe.assertNever(t)}return{message:n}};let Ix=Ou;function _I(t){Ix=t}function rf(){return Ix}const sf=t=>{const{data:e,path:n,errorMaps:r,issueData:i}=t,s=[...n,...i.path||[]],a={...i,path:s};let o="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)o=u(a,{data:e,defaultError:o}).message;return{...i,path:s,message:i.message||o}},bI=[];function oe(t,e){const n=sf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,rf(),Ou].filter(r=>!!r)});t.common.issues.push(n)}class zn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const i of n){if(i.status==="aborted")return ke;i.status==="dirty"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return zn.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const i of n){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return ke;s.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[s.value]=a.value)}return{status:e.value,value:r}}}const ke=Object.freeze({status:"aborted"}),Ox=t=>({status:"dirty",value:t}),nr=t=>({status:"valid",value:t}),wg=t=>t.status==="aborted",xg=t=>t.status==="dirty",Mu=t=>t.status==="valid",af=t=>typeof Promise<"u"&&t instanceof Promise;var be;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(be||(be={}));class ji{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Mx=(t,e)=>{if(Mu(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Gr(t.common.issues);return this._error=n,this._error}}};function Pe(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(a,o)=>a.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:r??o.defaultError}:{message:n??o.defaultError},description:i}}class Me{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return ta(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:ta(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new zn,ctx:{common:e.parent.common,data:e.data,parsedType:ta(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(af(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ta(e)},s=this._parseSync({data:e,path:i.path,parent:i});return Mx(i,s)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ta(e)},i=this._parse({data:e,path:r.path,parent:r}),s=await(af(i)?i:Promise.resolve(i));return Mx(r,s)}refine(e,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const a=e(i),o=()=>s.addIssue({code:Y.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(e){return new mi({schema:this,typeName:xe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ws.create(this,this._def)}nullable(){return ao.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return pi.create(this,this._def)}promise(){return Yo.create(this,this._def)}or(e){return Vu.create([this,e],this._def)}and(e){return Bu.create(this,e,this._def)}transform(e){return new mi({...Pe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Wu({...Pe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new Dx({typeName:xe.ZodBranded,type:this,...Pe(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new ff({...Pe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return qu.create(this,e)}readonly(){return pf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const wI=/^c[^\s-]{8,}$/i,xI=/^[a-z][a-z0-9]*$/,SI=/^[0-9A-HJKMNP-TV-Z]{26}$/,EI=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,CI=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Sg;const TI=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,PI=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,AI=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function NI(t,e){return!!((e==="v4"||!e)&&TI.test(t)||(e==="v6"||!e)&&PI.test(t))}class hi extends Me{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ie.string){const s=this._getOrReturnCtx(e);return oe(s,{code:Y.invalid_type,expected:ie.string,received:s.parsedType}),ke}const r=new zn;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(i=this._getOrReturnCtx(e,i),oe(i,{code:Y.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const a=e.data.length>s.value,o=e.data.lengthe.test(i),{validation:n,code:Y.invalid_string,...be.errToObj(r)})}_addCheck(e){return new hi({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...be.errToObj(e)})}url(e){return this._addCheck({kind:"url",...be.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...be.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...be.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...be.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...be.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...be.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...be.errToObj(e)})}datetime(e){var n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,...be.errToObj(e==null?void 0:e.message)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...be.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...be.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...be.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...be.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...be.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...be.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...be.errToObj(n)})}nonempty(e){return this.min(1,be.errToObj(e))}trim(){return new hi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new hi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new hi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new hi({checks:[],typeName:xe.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Pe(t)})};function RI(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,i=n>r?n:r,s=parseInt(t.toFixed(i).replace(".","")),a=parseInt(e.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}class na extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ie.number){const s=this._getOrReturnCtx(e);return oe(s,{code:Y.invalid_type,expected:ie.number,received:s.parsedType}),ke}let r;const i=new zn;for(const s of this._def.checks)s.kind==="int"?Fe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?RI(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.not_finite,message:s.message}),i.dirty()):Fe.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,be.toString(n))}gt(e,n){return this.setLimit("min",e,!1,be.toString(n))}lte(e,n){return this.setLimit("max",e,!0,be.toString(n))}lt(e,n){return this.setLimit("max",e,!1,be.toString(n))}setLimit(e,n,r,i){return new na({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(e){return new na({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:be.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:be.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:be.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:be.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:be.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:be.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:be.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:be.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:be.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&Fe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.valuenew na({checks:[],typeName:xe.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Pe(t)});class ra extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ie.bigint){const s=this._getOrReturnCtx(e);return oe(s,{code:Y.invalid_type,expected:ie.bigint,received:s.parsedType}),ke}let r;const i=new zn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),oe(r,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Fe.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,be.toString(n))}gt(e,n){return this.setLimit("min",e,!1,be.toString(n))}lte(e,n){return this.setLimit("max",e,!0,be.toString(n))}lt(e,n){return this.setLimit("max",e,!1,be.toString(n))}setLimit(e,n,r,i){return new ra({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(e){return new ra({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:be.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:be.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:be.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:be.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:be.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ra({checks:[],typeName:xe.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Pe(t)})};class Lu extends Me{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ie.boolean){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.boolean,received:r.parsedType}),ke}return nr(e.data)}}Lu.create=t=>new Lu({typeName:xe.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Pe(t)});class ro extends Me{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ie.date){const s=this._getOrReturnCtx(e);return oe(s,{code:Y.invalid_type,expected:ie.date,received:s.parsedType}),ke}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return oe(s,{code:Y.invalid_date}),ke}const r=new zn;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(i=this._getOrReturnCtx(e,i),oe(i,{code:Y.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Fe.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ro({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:be.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:be.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ro({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:xe.ZodDate,...Pe(t)});class of extends Me{_parse(e){if(this._getType(e)!==ie.symbol){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.symbol,received:r.parsedType}),ke}return nr(e.data)}}of.create=t=>new of({typeName:xe.ZodSymbol,...Pe(t)});class Du extends Me{_parse(e){if(this._getType(e)!==ie.undefined){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.undefined,received:r.parsedType}),ke}return nr(e.data)}}Du.create=t=>new Du({typeName:xe.ZodUndefined,...Pe(t)});class Uu extends Me{_parse(e){if(this._getType(e)!==ie.null){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.null,received:r.parsedType}),ke}return nr(e.data)}}Uu.create=t=>new Uu({typeName:xe.ZodNull,...Pe(t)});class Xo extends Me{constructor(){super(...arguments),this._any=!0}_parse(e){return nr(e.data)}}Xo.create=t=>new Xo({typeName:xe.ZodAny,...Pe(t)});class io extends Me{constructor(){super(...arguments),this._unknown=!0}_parse(e){return nr(e.data)}}io.create=t=>new io({typeName:xe.ZodUnknown,...Pe(t)});class bs extends Me{_parse(e){const n=this._getOrReturnCtx(e);return oe(n,{code:Y.invalid_type,expected:ie.never,received:n.parsedType}),ke}}bs.create=t=>new bs({typeName:xe.ZodNever,...Pe(t)});class lf extends Me{_parse(e){if(this._getType(e)!==ie.undefined){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.void,received:r.parsedType}),ke}return nr(e.data)}}lf.create=t=>new lf({typeName:xe.ZodVoid,...Pe(t)});class pi extends Me{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==ie.array)return oe(n,{code:Y.invalid_type,expected:ie.array,received:n.parsedType}),ke;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,o=n.data.lengthi.maxLength.value&&(oe(n,{code:Y.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>i.type._parseAsync(new ji(n,a,n.path,o)))).then(a=>zn.mergeArray(r,a));const s=[...n.data].map((a,o)=>i.type._parseSync(new ji(n,a,n.path,o)));return zn.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new pi({...this._def,minLength:{value:e,message:be.toString(n)}})}max(e,n){return new pi({...this._def,maxLength:{value:e,message:be.toString(n)}})}length(e,n){return new pi({...this._def,exactLength:{value:e,message:be.toString(n)}})}nonempty(e){return this.min(1,e)}}pi.create=(t,e)=>new pi({type:t,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Pe(e)});function Ko(t){if(t instanceof At){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ws.create(Ko(r))}return new At({...t._def,shape:()=>e})}else return t instanceof pi?new pi({...t._def,type:Ko(t.element)}):t instanceof ws?ws.create(Ko(t.unwrap())):t instanceof ao?ao.create(Ko(t.unwrap())):t instanceof zi?zi.create(t.items.map(e=>Ko(e))):t}class At extends Me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Fe.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==ie.object){const u=this._getOrReturnCtx(e);return oe(u,{code:Y.invalid_type,expected:ie.object,received:u.parsedType}),ke}const{status:r,ctx:i}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof bs&&this._def.unknownKeys==="strip"))for(const u in i.data)a.includes(u)||o.push(u);const l=[];for(const u of a){const c=s[u],d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ji(i,d,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof bs){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")o.length>0&&(oe(i,{code:Y.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ji(i,d,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key;u.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>zn.mergeObjectSync(r,u)):zn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return new At({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,s,a,o;const l=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=be.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new At({...this._def,unknownKeys:"strip"})}passthrough(){return new At({...this._def,unknownKeys:"passthrough"})}extend(e){return new At({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new At({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:xe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new At({...this._def,catchall:e})}pick(e){const n={};return Fe.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new At({...this._def,shape:()=>n})}omit(e){const n={};return Fe.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new At({...this._def,shape:()=>n})}deepPartial(){return Ko(this)}partial(e){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}),new At({...this._def,shape:()=>n})}required(e){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ws;)s=s._def.innerType;n[r]=s}}),new At({...this._def,shape:()=>n})}keyof(){return Lx(Fe.objectKeys(this.shape))}}At.create=(t,e)=>new At({shape:()=>t,unknownKeys:"strip",catchall:bs.create(),typeName:xe.ZodObject,...Pe(e)}),At.strictCreate=(t,e)=>new At({shape:()=>t,unknownKeys:"strict",catchall:bs.create(),typeName:xe.ZodObject,...Pe(e)}),At.lazycreate=(t,e)=>new At({shape:t,unknownKeys:"strip",catchall:bs.create(),typeName:xe.ZodObject,...Pe(e)});class Vu extends Me{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new Gr(o.ctx.common.issues));return oe(n,{code:Y.invalid_union,unionErrors:a}),ke}if(n.common.async)return Promise.all(r.map(async s=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(l=>new Gr(l));return oe(n,{code:Y.invalid_union,unionErrors:o}),ke}}get options(){return this._def.options}}Vu.create=(t,e)=>new Vu({options:t,typeName:xe.ZodUnion,...Pe(e)});const uf=t=>t instanceof Fu?uf(t.schema):t instanceof mi?uf(t.innerType()):t instanceof ju?[t.value]:t instanceof ia?t.options:t instanceof zu?Object.keys(t.enum):t instanceof Wu?uf(t._def.innerType):t instanceof Du?[void 0]:t instanceof Uu?[null]:null;class cf extends Me{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ie.object)return oe(n,{code:Y.invalid_type,expected:ie.object,received:n.parsedType}),ke;const r=this.discriminator,i=n.data[r],s=this.optionsMap.get(i);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const i=new Map;for(const s of n){const a=uf(s.shape[e]);if(!a)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of a){if(i.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);i.set(o,s)}}return new cf({typeName:xe.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...Pe(r)})}}function Eg(t,e){const n=ta(t),r=ta(e);if(t===e)return{valid:!0,data:t};if(n===ie.object&&r===ie.object){const i=Fe.objectKeys(e),s=Fe.objectKeys(t).filter(o=>i.indexOf(o)!==-1),a={...t,...e};for(const o of s){const l=Eg(t[o],e[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(n===ie.array&&r===ie.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s{if(wg(s)||wg(a))return ke;const o=Eg(s.value,a.value);return o.valid?((xg(s)||xg(a))&&n.dirty(),{status:n.value,value:o.data}):(oe(r,{code:Y.invalid_intersection_types}),ke)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Bu.create=(t,e,n)=>new Bu({left:t,right:e,typeName:xe.ZodIntersection,...Pe(n)});class zi extends Me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ie.array)return oe(r,{code:Y.invalid_type,expected:ie.array,received:r.parsedType}),ke;if(r.data.lengththis._def.items.length&&(oe(r,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ji(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(s).then(a=>zn.mergeArray(n,a)):zn.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new zi({...this._def,rest:e})}}zi.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new zi({items:t,typeName:xe.ZodTuple,rest:null,...Pe(e)})};class Hu extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ie.object)return oe(r,{code:Y.invalid_type,expected:ie.object,received:r.parsedType}),ke;const i=[],s=this._def.keyType,a=this._def.valueType;for(const o in r.data)i.push({key:s._parse(new ji(r,o,r.path,o)),value:a._parse(new ji(r,r.data[o],r.path,o))});return r.common.async?zn.mergeObjectAsync(n,i):zn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Me?new Hu({keyType:e,valueType:n,typeName:xe.ZodRecord,...Pe(r)}):new Hu({keyType:hi.create(),valueType:e,typeName:xe.ZodRecord,...Pe(n)})}}class df extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ie.map)return oe(r,{code:Y.invalid_type,expected:ie.map,received:r.parsedType}),ke;const i=this._def.keyType,s=this._def.valueType,a=[...r.data.entries()].map(([o,l],u)=>({key:i._parse(new ji(r,o,r.path,[u,"key"])),value:s._parse(new ji(r,l,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ke;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of a){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ke;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}df.create=(t,e,n)=>new df({valueType:e,keyType:t,typeName:xe.ZodMap,...Pe(n)});class so extends Me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==ie.set)return oe(r,{code:Y.invalid_type,expected:ie.set,received:r.parsedType}),ke;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(oe(r,{code:Y.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function a(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ke;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((l,u)=>s._parse(new ji(r,l,r.path,u)));return r.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(e,n){return new so({...this._def,minSize:{value:e,message:be.toString(n)}})}max(e,n){return new so({...this._def,maxSize:{value:e,message:be.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}so.create=(t,e)=>new so({valueType:t,minSize:null,maxSize:null,typeName:xe.ZodSet,...Pe(e)});class Jo extends Me{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ie.function)return oe(n,{code:Y.invalid_type,expected:ie.function,received:n.parsedType}),ke;function r(o,l){return sf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rf(),Ou].filter(u=>!!u),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function i(o,l){return sf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rf(),Ou].filter(u=>!!u),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Yo){const o=this;return nr(async function(...l){const u=new Gr([]),c=await o._def.args.parseAsync(l,s).catch(m=>{throw u.addIssue(r(l,m)),u}),d=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(i(d,m)),u})})}else{const o=this;return nr(function(...l){const u=o._def.args.safeParse(l,s);if(!u.success)throw new Gr([r(l,u.error)]);const c=Reflect.apply(a,this,u.data),d=o._def.returns.safeParse(c,s);if(!d.success)throw new Gr([i(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Jo({...this._def,args:zi.create(e).rest(io.create())})}returns(e){return new Jo({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new Jo({args:e||zi.create([]).rest(io.create()),returns:n||io.create(),typeName:xe.ZodFunction,...Pe(r)})}}class Fu extends Me{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Fu.create=(t,e)=>new Fu({getter:t,typeName:xe.ZodLazy,...Pe(e)});class ju extends Me{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return oe(n,{received:n.data,code:Y.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:e.data}}get value(){return this._def.value}}ju.create=(t,e)=>new ju({value:t,typeName:xe.ZodLiteral,...Pe(e)});function Lx(t,e){return new ia({values:t,typeName:xe.ZodEnum,...Pe(e)})}class ia extends Me{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return oe(n,{expected:Fe.joinValues(r),received:n.parsedType,code:Y.invalid_type}),ke}if(this._def.values.indexOf(e.data)===-1){const n=this._getOrReturnCtx(e),r=this._def.values;return oe(n,{received:n.data,code:Y.invalid_enum_value,options:r}),ke}return nr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e){return ia.create(e)}exclude(e){return ia.create(this.options.filter(n=>!e.includes(n)))}}ia.create=Lx;class zu extends Me{_parse(e){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==ie.string&&r.parsedType!==ie.number){const i=Fe.objectValues(n);return oe(r,{expected:Fe.joinValues(i),received:r.parsedType,code:Y.invalid_type}),ke}if(n.indexOf(e.data)===-1){const i=Fe.objectValues(n);return oe(r,{received:r.data,code:Y.invalid_enum_value,options:i}),ke}return nr(e.data)}get enum(){return this._def.values}}zu.create=(t,e)=>new zu({values:t,typeName:xe.ZodNativeEnum,...Pe(e)});class Yo extends Me{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==ie.promise&&n.common.async===!1)return oe(n,{code:Y.invalid_type,expected:ie.promise,received:n.parsedType}),ke;const r=n.parsedType===ie.promise?n.data:Promise.resolve(n.data);return nr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Yo.create=(t,e)=>new Yo({type:t,typeName:xe.ZodPromise,...Pe(e)});class mi extends Me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:a=>{oe(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(a).then(o=>this._def.schema._parseAsync({data:o,path:r.path,parent:r})):this._def.schema._parseSync({data:a,path:r.path,parent:r})}if(i.type==="refinement"){const a=o=>{const l=i.refinement(o,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ke:(o.status==="dirty"&&n.dirty(),a(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?ke:(o.status==="dirty"&&n.dirty(),a(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Mu(a))return a;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Mu(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:n.value,value:o})):a);Fe.assertNever(i)}}mi.create=(t,e,n)=>new mi({schema:t,typeName:xe.ZodEffects,effect:e,...Pe(n)}),mi.createWithPreprocess=(t,e,n)=>new mi({schema:e,effect:{type:"preprocess",transform:t},typeName:xe.ZodEffects,...Pe(n)});class ws extends Me{_parse(e){return this._getType(e)===ie.undefined?nr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ws.create=(t,e)=>new ws({innerType:t,typeName:xe.ZodOptional,...Pe(e)});class ao extends Me{_parse(e){return this._getType(e)===ie.null?nr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ao.create=(t,e)=>new ao({innerType:t,typeName:xe.ZodNullable,...Pe(e)});class Wu extends Me{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===ie.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Wu.create=(t,e)=>new Wu({innerType:t,typeName:xe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Pe(e)});class ff extends Me{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return af(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Gr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Gr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ff.create=(t,e)=>new ff({innerType:t,typeName:xe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Pe(e)});class hf extends Me{_parse(e){if(this._getType(e)!==ie.nan){const r=this._getOrReturnCtx(e);return oe(r,{code:Y.invalid_type,expected:ie.nan,received:r.parsedType}),ke}return{status:"valid",value:e.data}}}hf.create=t=>new hf({typeName:xe.ZodNaN,...Pe(t)});const II=Symbol("zod_brand");class Dx extends Me{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class qu extends Me{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ke:s.status==="dirty"?(n.dirty(),Ox(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ke:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new qu({in:e,out:n,typeName:xe.ZodPipeline})}}class pf extends Me{_parse(e){const n=this._def.innerType._parse(e);return Mu(n)&&(n.value=Object.freeze(n.value)),n}}pf.create=(t,e)=>new pf({innerType:t,typeName:xe.ZodReadonly,...Pe(e)});const Ux=(t,e={},n)=>t?Xo.create().superRefine((r,i)=>{var s,a;if(!t(r)){const o=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,l=(a=(s=o.fatal)!==null&&s!==void 0?s:n)!==null&&a!==void 0?a:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:l})}}):Xo.create(),OI={object:At.lazycreate};var xe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(xe||(xe={}));const MI=(t,e={message:`Input not instance of ${t.name}`})=>Ux(n=>n instanceof t,e),Te=hi.create,at=na.create,LI=hf.create,DI=ra.create,Cg=Lu.create,UI=ro.create,VI=of.create,kg=Du.create,BI=Uu.create,HI=Xo.create,FI=io.create,jI=bs.create,zI=lf.create,xs=pi.create,Je=At.create,WI=At.strictCreate,Zu=Vu.create,qI=cf.create,ZI=Bu.create,GI=zi.create,Tg=Hu.create,XI=df.create,KI=so.create,JI=Jo.create,YI=Fu.create,oo=ju.create,Gu=ia.create,Pg=zu.create,$I=Yo.create,Vx=mi.create,QI=ws.create,eO=ao.create,tO=mi.createWithPreprocess,nO=qu.create;var Q=Object.freeze({__proto__:null,defaultErrorMap:Ou,setErrorMap:_I,getErrorMap:rf,makeIssue:sf,EMPTY_PATH:bI,addIssueToContext:oe,ParseStatus:zn,INVALID:ke,DIRTY:Ox,OK:nr,isAborted:wg,isDirty:xg,isValid:Mu,isAsync:af,get util(){return Fe},get objectUtil(){return bg},ZodParsedType:ie,getParsedType:ta,ZodType:Me,ZodString:hi,ZodNumber:na,ZodBigInt:ra,ZodBoolean:Lu,ZodDate:ro,ZodSymbol:of,ZodUndefined:Du,ZodNull:Uu,ZodAny:Xo,ZodUnknown:io,ZodNever:bs,ZodVoid:lf,ZodArray:pi,ZodObject:At,ZodUnion:Vu,ZodDiscriminatedUnion:cf,ZodIntersection:Bu,ZodTuple:zi,ZodRecord:Hu,ZodMap:df,ZodSet:so,ZodFunction:Jo,ZodLazy:Fu,ZodLiteral:ju,ZodEnum:ia,ZodNativeEnum:zu,ZodPromise:Yo,ZodEffects:mi,ZodTransformer:mi,ZodOptional:ws,ZodNullable:ao,ZodDefault:Wu,ZodCatch:ff,ZodNaN:hf,BRAND:II,ZodBranded:Dx,ZodPipeline:qu,ZodReadonly:pf,custom:Ux,Schema:Me,ZodSchema:Me,late:OI,get ZodFirstPartyTypeKind(){return xe},coerce:{string:t=>hi.create({...t,coerce:!0}),number:t=>na.create({...t,coerce:!0}),boolean:t=>Lu.create({...t,coerce:!0}),bigint:t=>ra.create({...t,coerce:!0}),date:t=>ro.create({...t,coerce:!0})},any:HI,array:xs,bigint:DI,boolean:Cg,date:UI,discriminatedUnion:qI,effect:Vx,enum:Gu,function:JI,instanceof:MI,intersection:ZI,lazy:YI,literal:oo,map:XI,nan:LI,nativeEnum:Pg,never:jI,null:BI,nullable:eO,number:at,object:Je,oboolean:()=>Cg().optional(),onumber:()=>at().optional(),optional:QI,ostring:()=>Te().optional(),pipeline:nO,preprocess:tO,promise:$I,record:Tg,set:KI,strictObject:WI,string:Te,symbol:VI,transformer:Vx,tuple:GI,undefined:kg,union:Zu,unknown:FI,void:zI,NEVER:ke,ZodIssueCode:Y,quotelessJson:vI,ZodError:Gr});function z(t,e,n){if(n!=null&&n.noWrap||(t.length!==0&&(e%=t.length),e<0&&(e+=t.length)),!(n!=null&&n.noBoundsCheck)&&(e>=t.length||e<0))throw new Error(`Array index ${e} is out of bounds for array of length ${t.length}: ${JSON.stringify(t,null,2)}`);const r=t[e];if(!(n!=null&&n.optional)&&r===void 0)throw new Error(`Array item at index ${e} is undefined for array of length ${t.length}: ${JSON.stringify(t,null,2)}`);return r}function mf(t,e,n=!0){const r=t[e];if(n&&r===void 0)throw new Error(`Object has no property '${String(e)}': ${JSON.stringify(t,null,2)}`);return r}const Bx=1e3;function gf(t,e,n,r=Iu){try{return t?r.t(t,e):n||t}catch{return n||t}}class Ag extends Error{getTranslated(e){return gf(this.tKey,this.tParams,this.message,e)}}class Tn extends Ag{constructor(e,n,r,...i){var a;const s=e instanceof Error;super(s?e.message:gf(e,r)),this.name=n&&`${Tn.name}@${gf(n,r)}`||Tn.name,s?(this.cause=e,e instanceof Ag?(this.tKey=e.tKey,this.tParams=e.tParams):hg.includes(n)&&(this.tKey=n,this.tParams=r||{})):(this.tKey=e,this.tParams=r||{}),typeof this.cause!=Gr&&((a=this.cause)!=null&&a.message)&&this.cause.message.length>Bx&&(this.cause.message=`${z(this.cause.message,-Bx)}...`)}}var Ng=function(t,e){return Ng=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ng(t,e)};function Er(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ng(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Rg=function(){return Rg=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function sa(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function qi(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r1||o(h,m)})})}function o(h,m){try{l(r[h](m))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof Qo?Promise.resolve(h.value.v).then(u,c):d(s[0][2],h)}function u(h){o("next",h)}function c(h){o("throw",h)}function d(h,m){h(m),s.shift(),s.length&&o(s[0][0],s[0][1])}}function iO(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof $o=="function"?$o(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(a){return new Promise(function(o,l){a=t[s](a),i(o,l,a.done,a.value)})}}function i(s,a,o,l){Promise.resolve(l).then(function(u){s({value:u,done:o})},a)}}const gn={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Hx={silent:{level:-1},fatal:{level:gn.fatal},error:{level:gn.error},warn:{level:gn.warn},log:{level:gn.log},info:{level:gn.info},success:{level:gn.success},fail:{level:gn.fail},ready:{level:gn.info},start:{level:gn.info},box:{level:gn.info},debug:{level:gn.debug},trace:{level:gn.trace},verbose:{level:gn.verbose}};function Ig(t){return t!==null&&typeof t=="object"}function Og(t,e,n=".",r){if(!Ig(e))return Og(t,{},n,r);const i=Object.assign({},e);for(const s in t){if(s==="__proto__"||s==="constructor")continue;const a=t[s];a!=null&&(r&&r(i,s,a,n)||(Array.isArray(a)&&Array.isArray(i[s])?i[s]=[...a,...i[s]]:Ig(a)&&Ig(i[s])?i[s]=Og(a,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=a))}return i}function sO(t){return(...e)=>e.reduce((n,r)=>Og(n,r,"",t),{})}const aO=sO();function oO(t){return Object.prototype.toString.call(t)==="[object Object]"}function lO(t){return!(!oO(t)||!t.message&&!t.args||t.stack)}let Mg=!1;const Fx=[];class Mn{constructor(e={}){const n=e.types||Hx;this.options=aO({...e,defaults:{...e.defaults},level:Lg(e.level,n),reporters:[...e.reporters||[]]},{types:Hx,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const i={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=Lg(e,this.options.types,this.options.level)}prompt(e,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,n)}create(e){const n=new Mn({...this.options,...e});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const n=this.options.reporters.indexOf(e);if(n>=0)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,n){e&&(e.__write||(e.__write=e.write),e.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){Mg=!0}resumeLogs(){Mg=!1;const e=Fx.splice(0);for(const n of e)n[0]._logFn(n[1],n[2])}mockTypes(e){const n=e||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(e,n){return(...r)=>{if(Mg){Fx.push([this,e,r,n]);return}return this._logFn(e,r,n)}}_logFn(e,n,r){if((e.level||0)>this.level)return!1;const i={date:new Date,args:[],...e,level:Lg(e.level,this.options.types)};!r&&n.length===1&&lO(n[0])?Object.assign(i,n[0]):i.args=[...n],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(` +`)),i.args.push(` +`+i.additional.join(` +`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";const s=(o=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}o&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,athis.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(e){for(const n of this.options.reporters)n.log(e,{options:this.options})}}function Lg(t,e={},n=3){return t===void 0?n:typeof t=="number"?t:e[t]&&e[t].level!==void 0?e[t].level:n}Mn.prototype.add=Mn.prototype.addReporter,Mn.prototype.remove=Mn.prototype.removeReporter,Mn.prototype.clear=Mn.prototype.removeReporter,Mn.prototype.withScope=Mn.prototype.withTag,Mn.prototype.mock=Mn.prototype.mockTypes,Mn.prototype.pause=Mn.prototype.pauseLogs,Mn.prototype.resume=Mn.prototype.resumeLogs;function uO(t={}){return new Mn(t)}class cO{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}log(e){const n=this._getLogFn(e.level),r=e.type==="log"?"":e.type,i=e.tag||"",a=` + background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor}; + border-radius: 0.5em; + color: white; + font-weight: bold; + padding: 2px 0.5em; + `,o=`%c${[i,r].filter(Boolean).join(":")}`;typeof e.args[0]=="string"?n(`${o}%c ${e.args[0]}`,a,"",...e.args.slice(1)):n(o,a,...e.args)}}function jx(t={}){return uO({reporters:t.reporters||[new cO({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...t})}jx();const yi=Gu(["trace","debug","info","warn","error","fatal"]);function dO(t,e){return zx(Wx(t),e)}const zx=(t,e)=>{const n=jx({}).withTag(e);let r=t;const i={log:n.log,info:n.info,debug:n.debug,trace:n.trace,warn:n.warn,error:n.error,fatal:n.fatal,setLogLevel:s=>{let a=NaN;switch(s=Wx(s),s){case yi.enum.trace:a=gn.trace;break;case yi.enum.debug:a=gn.debug;break;case yi.enum.info:a=gn.info;break;case yi.enum.warn:a=gn.warn;break;case yi.enum.error:a=gn.error;break;case yi.enum.fatal:a=gn.fatal;break;default:throw new Error("LOG.INVALID_LOG_LEVEL")}n.level=a,r=s},getLogLevel:()=>r};return i.setLogLevel(t),i};function Wx(t){t=t||process.env.PROSOPO_LOG_LEVEL||"Info",t=t.toString().toLowerCase();try{return yi.parse(t)}catch{throw new Tn("CONFIG.INVALID_LOG_LEVEL",t)}}zx(yi.enum.info,"global");const fO="";function hO(t,e){return t.join(e||fO)}function Wn(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Dg(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function qx(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Wn(t.outputLen),Wn(t.blockLen)}function aa(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Ug(t,e){Dg(t);const n=e.outputLen;if(t.lengtht instanceof Uint8Array,oa=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),yf=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Zi=(t,e)=>t<<32-e|t>>>e;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function Gx(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Xr(t){if(typeof t=="string"&&(t=Gx(t)),!Zx(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function Xx(...t){const e=new Uint8Array(t.reduce((r,i)=>r+i.length,0));let n=0;return t.forEach(r=>{if(!Zx(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}class vf{clone(){return this._cloneInto()}}const pO={}.toString;function Kx(t,e){if(e!==void 0&&pO.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function lo(t){const e=r=>t().update(Xr(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function mO(t){const e=(r,i)=>t(i).update(Xr(r)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}function gO(t){const e=(r,i)=>t(i).update(Xr(r)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}function Bg(t=32){if(Vg&&typeof Vg.getRandomValues=="function")return Vg.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}const yO=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]);class vO extends vf{constructor(e,n,r={},i,s,a){if(super(),this.blockLen=e,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,Wn(e),Wn(n),Wn(i),n<0||n>i)throw new Error("outputLen bigger than keyLen");if(r.key!==void 0&&(r.key.length<1||r.key.length>i))throw new Error(`key must be up 1..${i} byte long or undefined`);if(r.salt!==void 0&&r.salt.length!==s)throw new Error(`salt must be ${s} byte long or undefined`);if(r.personalization!==void 0&&r.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=oa(this.buffer=new Uint8Array(e))}update(e){aa(this);const{blockLen:n,buffer:r,buffer32:i}=this;e=Xr(e);const s=e.length,a=e.byteOffset,o=e.buffer;for(let l=0;li[a]=s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){const{buffer:n,length:r,finished:i,destroyed:s,outputLen:a,pos:o}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=r,e.finished=i,e.destroyed=s,e.outputLen=a,e.buffer.set(n),e.pos=o,e}}const _f=BigInt(2**32-1),Hg=BigInt(32);function Jx(t,e=!1){return e?{h:Number(t&_f),l:Number(t>>Hg&_f)}:{h:Number(t>>Hg&_f)|0,l:Number(t&_f)|0}}function Yx(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;iBigInt(t>>>0)<>>0),bO=(t,e,n)=>t>>>n,wO=(t,e,n)=>t<<32-n|e>>>n,xO=(t,e,n)=>t>>>n|e<<32-n,SO=(t,e,n)=>t<<32-n|e>>>n,EO=(t,e,n)=>t<<64-n|e>>>n-32,CO=(t,e,n)=>t>>>n-32|e<<64-n,kO=(t,e)=>e,TO=(t,e)=>t,$x=(t,e,n)=>t<>>32-n,Qx=(t,e,n)=>e<>>32-n,e2=(t,e,n)=>e<>>64-n,t2=(t,e,n)=>t<>>64-n;function PO(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/4294967296|0)|0,l:i|0}}const ve={fromBig:Jx,split:Yx,toBig:_O,shrSH:bO,shrSL:wO,rotrSH:xO,rotrSL:SO,rotrBH:EO,rotrBL:CO,rotr32H:kO,rotr32L:TO,rotlSH:$x,rotlSL:Qx,rotlBH:e2,rotlBL:t2,add:PO,add3L:(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),add3H:(t,e,n,r)=>e+n+r+(t/2**32|0)|0,add4L:(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),add4H:(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0,add5H:(t,e,n,r,i,s)=>e+n+r+i+s+(t/2**32|0)|0,add5L:(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0)},yn=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),re=new Uint32Array(32);function la(t,e,n,r,i,s){const a=i[s],o=i[s+1];let l=re[2*t],u=re[2*t+1],c=re[2*e],d=re[2*e+1],h=re[2*n],m=re[2*n+1],y=re[2*r],v=re[2*r+1],S=ve.add3L(l,c,a);u=ve.add3H(S,u,d,o),l=S|0,{Dh:v,Dl:y}={Dh:v^u,Dl:y^l},{Dh:v,Dl:y}={Dh:ve.rotr32H(v,y),Dl:ve.rotr32L(v,y)},{h:m,l:h}=ve.add(m,h,v,y),{Bh:d,Bl:c}={Bh:d^m,Bl:c^h},{Bh:d,Bl:c}={Bh:ve.rotrSH(d,c,24),Bl:ve.rotrSL(d,c,24)},re[2*t]=l,re[2*t+1]=u,re[2*e]=c,re[2*e+1]=d,re[2*n]=h,re[2*n+1]=m,re[2*r]=y,re[2*r+1]=v}function ua(t,e,n,r,i,s){const a=i[s],o=i[s+1];let l=re[2*t],u=re[2*t+1],c=re[2*e],d=re[2*e+1],h=re[2*n],m=re[2*n+1],y=re[2*r],v=re[2*r+1],S=ve.add3L(l,c,a);u=ve.add3H(S,u,d,o),l=S|0,{Dh:v,Dl:y}={Dh:v^u,Dl:y^l},{Dh:v,Dl:y}={Dh:ve.rotrSH(v,y,16),Dl:ve.rotrSL(v,y,16)},{h:m,l:h}=ve.add(m,h,v,y),{Bh:d,Bl:c}={Bh:d^m,Bl:c^h},{Bh:d,Bl:c}={Bh:ve.rotrBH(d,c,63),Bl:ve.rotrBL(d,c,63)},re[2*t]=l,re[2*t+1]=u,re[2*e]=c,re[2*e+1]=d,re[2*n]=h,re[2*n+1]=m,re[2*r]=y,re[2*r+1]=v}class AO extends vO{constructor(e={}){super(128,e.dkLen===void 0?64:e.dkLen,e,64,16,16),this.v0l=yn[0]|0,this.v0h=yn[1]|0,this.v1l=yn[2]|0,this.v1h=yn[3]|0,this.v2l=yn[4]|0,this.v2h=yn[5]|0,this.v3l=yn[6]|0,this.v3h=yn[7]|0,this.v4l=yn[8]|0,this.v4h=yn[9]|0,this.v5l=yn[10]|0,this.v5h=yn[11]|0,this.v6l=yn[12]|0,this.v6h=yn[13]|0,this.v7l=yn[14]|0,this.v7h=yn[15]|0;const n=e.key?e.key.length:0;if(this.v0l^=this.outputLen|n<<8|65536|16777216,e.salt){const r=oa(Xr(e.salt));this.v4l^=r[0],this.v4h^=r[1],this.v5l^=r[2],this.v5h^=r[3]}if(e.personalization){const r=oa(Xr(e.personalization));this.v6l^=r[0],this.v6h^=r[1],this.v7l^=r[2],this.v7h^=r[3]}if(e.key){const r=new Uint8Array(this.blockLen);r.set(Xr(e.key)),this.update(r)}}get(){let{v0l:e,v0h:n,v1l:r,v1h:i,v2l:s,v2h:a,v3l:o,v3h:l,v4l:u,v4h:c,v5l:d,v5h:h,v6l:m,v6h:y,v7l:v,v7h:S}=this;return[e,n,r,i,s,a,o,l,u,c,d,h,m,y,v,S]}set(e,n,r,i,s,a,o,l,u,c,d,h,m,y,v,S){this.v0l=e|0,this.v0h=n|0,this.v1l=r|0,this.v1h=i|0,this.v2l=s|0,this.v2h=a|0,this.v3l=o|0,this.v3h=l|0,this.v4l=u|0,this.v4h=c|0,this.v5l=d|0,this.v5h=h|0,this.v6l=m|0,this.v6h=y|0,this.v7l=v|0,this.v7h=S|0}compress(e,n,r){this.get().forEach((l,u)=>re[u]=l),re.set(yn,16);let{h:i,l:s}=ve.fromBig(BigInt(this.length));re[24]=yn[8]^s,re[25]=yn[9]^i,r&&(re[28]=~re[28],re[29]=~re[29]);let a=0;const o=yO;for(let l=0;l<12;l++)la(0,4,8,12,e,n+2*o[a++]),ua(0,4,8,12,e,n+2*o[a++]),la(1,5,9,13,e,n+2*o[a++]),ua(1,5,9,13,e,n+2*o[a++]),la(2,6,10,14,e,n+2*o[a++]),ua(2,6,10,14,e,n+2*o[a++]),la(3,7,11,15,e,n+2*o[a++]),ua(3,7,11,15,e,n+2*o[a++]),la(0,5,10,15,e,n+2*o[a++]),ua(0,5,10,15,e,n+2*o[a++]),la(1,6,11,12,e,n+2*o[a++]),ua(1,6,11,12,e,n+2*o[a++]),la(2,7,8,13,e,n+2*o[a++]),ua(2,7,8,13,e,n+2*o[a++]),la(3,4,9,14,e,n+2*o[a++]),ua(3,4,9,14,e,n+2*o[a++]);this.v0l^=re[0]^re[16],this.v0h^=re[1]^re[17],this.v1l^=re[2]^re[18],this.v1h^=re[3]^re[19],this.v2l^=re[4]^re[20],this.v2h^=re[5]^re[21],this.v3l^=re[6]^re[22],this.v3h^=re[7]^re[23],this.v4l^=re[8]^re[24],this.v4h^=re[9]^re[25],this.v5l^=re[10]^re[26],this.v5h^=re[11]^re[27],this.v6l^=re[12]^re[28],this.v6h^=re[13]^re[29],this.v7l^=re[14]^re[30],this.v7h^=re[15]^re[31],re.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const n2=mO(t=>new AO(t));let NO=class{encode(e){const n=e.length,r=new Uint8Array(n);for(let i=0;i` ${e(r.version.padEnd(n),r).join(" ")}`).join(` +`)}function LO(t,{name:e}){return[t,e]}function DO(t,{path:e,type:n}){let r;if(e&&e.length>=5){const i=e.indexOf("node_modules");r=i===-1?e:e.substring(i)}else r="";return[`${`${n||""}`.padStart(3)} ${t}`,r]}function UO(t,e){if(t)return t;if(Se(e))try{return e()||""}catch{return""}return e||""}function $re(t,e,n){}function s2({name:t,path:e,type:n,version:r},i,s=[]){var d,h;if(!t.startsWith("@polkadot"))throw new Error(`Invalid package descriptor ${t}`);const a=MO(t);a.push({path:UO(e,i),type:n,version:r});const o=a.every(m=>m.version===r),l=((h=(d=er.process)==null?void 0:d.env)==null?void 0:h[i2])==="1";if(a.length!==1&&!(l&&o))`${t}`;else{const m=s.filter(y=>y&&y.version!==r);m.length&&(`${t}${r}`,void 0)}}s2(r2,null,OO);function Fg(t,e){const n=Math.ceil(t.length/e);if(n===1)return[t];const r=Array(n);for(let i=0;in!==void 0&&(e||n!==null))}function bf(t){const e=t.length;if(e===0)return[];if(e===1)return t[0];let n=0;for(let s=0;s{const n=e.length;if(n===0)throw new Error("Must provide one or more arguments");let r=e[0];for(let i=1;it>e),WO=wf((t,e)=>t(qn(e)||Se(e))&&t.every(n=>Se(e[n]))}function qO(...t){return e=>Se(e)&&t.every(n=>Se(e[n]))}function xf(...t){return e=>qn(e)&&t.every(n=>Se(e[n]))}const Wg=zg("toBigInt"),qg=zg("toBn");function Zg(t){return typeof t=="bigint"?t:t?Oe(t)?Fw(t.toString()):rr(t)?ae(t.toString()):Wg(t)?t.toBigInt():qg(t)?ae(t.toBn().toString()):ae(t):ae(0)}function ZO(t){const e=Zg(t);if(e>$s;if(n===r||n===r-$s)return n;n=r}}const vn=typeof ae=="function"&&typeof ae.asIntN=="function",o2=typeof Jw=="function"&&typeof module<"u",GO=typeof __dirname<"u",XO=!o2,KO=typeof WebAssembly<"u",Gg=typeof er.Buffer=="function"&&typeof er.Buffer.isBuffer=="function",JO=typeof er.process=="object";function Xg(t){return Gg&&!!t&&Se(t.readDoubleLE)&&er.Buffer.isBuffer(t)}function he(t){return(t&&t.constructor)===Uint8Array||t instanceof Uint8Array}const YO=new IO;function Nt(t){return t?YO.encode(t.toString()):new Uint8Array}function K(t){return he(t)?Xg(t)?new Uint8Array(t):t:Oe(t)?kn(t):Array.isArray(t)?new Uint8Array(t):Nt(t)}function l2(t,e){const n=K(t),r=K(e);let i=0;for(;;){const s=i>=n.length,a=i>=r.length;if(s&&a)return 0;if(s)return-1;if(a)return 1;if(n[i]!==r[i])return n[i]>r[i]?1:-1;i++}}function ot(...t){const e=t.length,n=new Array(e);let r=0;for(let i=0;ir)return t.subarray(0,r);const i=new Uint8Array(r);return i.set(t,n?0:r-t.length),i}function $O(t){return t.sort(l2)}function Cr(t,{isLe:e=!0,isNegative:n=!1}={}){e||(t=t.slice().reverse());const r=t.length;if(n&&r&&t[r-1]&128)switch(r){case 0:return new te(0);case 1:return new te((t[0]^255)*-1-1);case 2:return new te((t[0]+(t[1]<<8)^65535)*-1-1);case 3:return new te((t[0]+(t[1]<<8)+(t[2]<<16)^16777215)*-1-1);case 4:return new te((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)*-1-1);case 5:return new te(((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)+(t[4]^255)*4294967296)*-1-1);case 6:return new te(((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)+(t[4]+(t[5]<<8)^65535)*4294967296)*-1-1);default:return new te(t,"le").fromTwos(r*8)}switch(r){case 0:return new te(0);case 1:return new te(t[0]);case 2:return new te(t[0]+(t[1]<<8));case 3:return new te(t[0]+(t[1]<<8)+(t[2]<<16));case 4:return new te(t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216);case 5:return new te(t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]+(t[4]<<8))*16777216);case 6:return new te(t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]+(t[4]<<8)+(t[5]<<16))*16777216);default:return new te(t,"le")}}function QO(t){return Gg?er.Buffer.from(t||[]):new Uint8Array(t||[])}function c2(t,{bitLength:e=32,isLe:n=!0}={}){if(e!==32&&e!==64)throw new Error("Invalid bitLength provided, expected 32 or 64");if(t.length0){const i=Math.ceil(e/8);if(t.length>i)return`${Jg(t.subarray(0,i/2),r)}…${Jg(t.subarray(t.length-i/2),"")}`}}else return r;return Jg(t,r)}function f2(t,{isLe:e=!0,isNegative:n=!1}={}){e||(t=t.slice().reverse());const r=t.length;if(n&&r&&t[r-1]&128)switch(r){case 0:return 0;case 1:return(t[0]^255)*-1-1;case 2:return(t[0]+(t[1]<<8)^65535)*-1-1;case 3:return(t[0]+(t[1]<<8)+(t[2]<<16)^16777215)*-1-1;case 4:return(t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)*-1-1;case 5:return((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)+(t[4]^255)*4294967296)*-1-1;case 6:return((t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216^4294967295)+(t[4]+(t[5]<<8)^65535)*4294967296)*-1-1;default:throw new Error("Value more than 48-bits cannot be reliably converted")}switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+(t[1]<<8);case 3:return t[0]+(t[1]<<8)+(t[2]<<16);case 4:return t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216;case 5:return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]+(t[4]<<8))*16777216;case 6:return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]+(t[4]<<8)+(t[5]<<16))*16777216;default:throw new Error("Value more than 48-bits cannot be reliably converted")}}const Ef=K(`Ethereum Signed Message: +`),el=K(""),tl=K(""),eM=el.length+tl.length;function Xu(t,e){return t.length>=eM&&Gn(t.subarray(0,el.length),el)&&Gn(t.slice(-tl.length),tl)||e&&t.length>=Ef.length&&Gn(t.subarray(0,Ef.length),Ef)}function h2(t){const e=K(t);return Xu(e,!1)?e.subarray(el.length,e.length-tl.length):e}function p2(t){const e=K(t);return Xu(e,!0)?e:Zn([el,e,tl])}const m2=ae(256),tM=ae(255);function nM(t,e,n){const r=[],i=n&&tt.gt(e)),g2=wf((t,e)=>t.lt(e)),_n=new te(0),Ss=new te(1),Ku=new te(2),iM=new te(3),sM=new te(4),aM=new te(5),oM=new te(6),lM=new te(7),uM=new te(8),cM=new te(9),Qg=new te(10),ey=new te(100),dM=new te(1e3),uo=new te(1e6),Cf=new te(1e9),y2=Cf.mul(Cf),v2=new te(Number.MAX_SAFE_INTEGER),_2=new te(94906265);function Es(t){return typeof t=="bigint"}function bn(t){return t?te.isBN(t)?t:Oe(t)?qo(t.toString()):Es(t)?new te(t.toString()):qg(t)?t.toBn():Wg(t)?new te(t.toBigInt().toString()):new te(t):new te(0)}function fM(t){const e=bn(t);if(e.isNeg())throw new Error("square root of negative numbers is not supported");if(e.lte(v2))return new te(~~Math.sqrt(e.toNumber()));let n=_2.clone();for(;;){const r=e.div(n).iadd(n).ishrn(1);if(n.eq(r)||n.eq(r.sub(Ss)))return n;n=r}}const hM={bitLength:-1,isLe:!0,isNegative:!1};function Pn(t,{bitLength:e=-1,isLe:n=!0,isNegative:r=!1}=hM){const i=bn(t),s=Math.ceil(e===-1?i.bitLength()/8:(e||0)/8);if(!t)return e===-1?new Uint8Array(1):new Uint8Array(s);const a=new Uint8Array(s),o=r?i.toTwos(s*8):i;return a.set(o.toArray(n?"le":"be",s),0),a}function b2(t,{bitLength:e=-1,isLe:n=!1,isNegative:r=!1}={}){return Ae(Pn(t,{bitLength:e,isLe:n,isNegative:r}))}function pM(t){return new Uint8Array(t||[])}const mM=Ku.pow(new te(8-2)).isub(Ss),gM=Ku.pow(new te(16-2)).isub(Ss),yM=Ku.pow(new te(32-2)).isub(Ss),vM={bitLength:16},_M={bitLength:32};function Vt(t){const e=bn(t);if(e.lte(mM))return new Uint8Array([e.toNumber()<<2]);if(e.lte(gM))return Pn(e.shln(2).iadd(Ss),vM);if(e.lte(yM))return Pn(e.shln(2).iadd(Ku),_M);const n=Pn(e);let r=n.length;for(;n[r-1]===0;)r--;if(r<4)throw new Error("Invalid length, previous checks match anything less than 2^30");return Zn([new Uint8Array([(r-4<<2)+3]),n.subarray(0,r)])}function Kr(t){return Zn([Vt(t.length),t])}function kf(t){const e=K(t);switch(e[0]&3){case 0:return[1,new te(e[0]>>>2)];case 1:return[2,new te(e[0]+(e[1]<<8)>>>2)];case 2:return[4,new te(e[0]+(e[1]<<8)+(e[2]<<16)+e[3]*16777216>>>2)];default:{const n=(e[0]>>>2)+5;switch(n){case 5:return[5,new te(e[1]+(e[2]<<8)+(e[3]<<16)+e[4]*16777216)];case 6:return[6,new te(e[1]+(e[2]<<8)+(e[3]<<16)+(e[4]+(e[5]<<8))*16777216)];case 7:return[7,new te(e[1]+(e[2]<<8)+(e[3]<<16)+(e[4]+(e[5]<<8)+(e[6]<<16))*16777216)];default:return[n,Cr(e.subarray(1,n))]}}}}function ca(t){switch(t[0]&3){case 0:return[1,t[0]>>>2];case 1:return[2,t[0]+(t[1]<<8)>>>2];case 2:return[4,t[0]+(t[1]<<8)+(t[2]<<16)+t[3]*16777216>>>2];default:switch((t[0]>>>2)+5){case 5:return[5,t[1]+(t[2]<<8)+(t[3]<<16)+t[4]*16777216];case 6:return[6,t[1]+(t[2]<<8)+(t[3]<<16)+(t[4]+(t[5]<<8))*16777216];case 7:return[7,t[1]+(t[2]<<8)+(t[3]<<16)+(t[4]+(t[5]<<8)+(t[6]<<16))*16777216];default:throw new Error("Compact input is > Number.MAX_SAFE_INTEGER")}}}function nl(t){const[e,n]=kf(t),r=e+n.toNumber();return[r,t.subarray(e,r)]}const w2=60*1e3,x2=w2*60,bM=x2*24,S2={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function Ju(t,e){return{days:(t.days||0)+e.days,hours:(t.hours||0)+e.hours,milliseconds:(t.milliseconds||0)+e.milliseconds,minutes:(t.minutes||0)+e.minutes,seconds:(t.seconds||0)+e.seconds}}function wM(t){const e=t/1e3;if(e<60){const s=~~e;return Ju({seconds:s},Yu(t-s*1e3))}const n=e/60;if(n<60){const s=~~n;return Ju({minutes:s},Yu(t-s*w2))}const r=n/60;if(r<24){const s=~~r;return Ju({hours:s},Yu(t-s*x2))}const i=~~(r/24);return Ju({days:i},Yu(t-i*bM))}function Yu(t){return t?t<1e3?Ju({milliseconds:t},S2):wM(t):S2}function E2(t=0,{bitLength:e=32,isLe:n=!0}={}){if(e!==32&&e!==64)throw new Error("Invalid bitLength provided, expected 32 or 64");const r=new Uint8Array(e/8),i=new DataView(r.buffer,r.byteOffset);return e===32?i.setFloat32(0,Number(t),n):i.setFloat64(0,Number(t),n),r}function $u(t){return typeof t=="boolean"}const C2=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g");function ty(t,e=","){const n=t[0].startsWith("-"),r=n?t.substring(1).match(C2):t.match(C2);return r?`${n?"-":""}${r.join(e)}`:t}function k2(t){return{decimal:.1.toLocaleString(t).substring(1,2),thousand:1e3.toLocaleString(t).substring(1,2)}}const Qu=8,vi=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function ny(t){for(let e=0,n=vi.length;ery(t,e),da.findSi=ny,da.getDefaults=()=>({decimals:rl,unit:Tf}),da.getOptions=(t=rl)=>vi.filter(({power:e})=>e<0?t+e>=0:!0),da.setDefaults=({decimals:t,unit:e})=>{rl=(Array.isArray(t)?t[0]:t)??rl,Tf=(Array.isArray(e)?e[0]:e)??Tf,vi[Qu].text=Tf};function ec(t){return t.toString().padStart(2,"0")}function CM(t){const e=t.getFullYear().toString(),n=ec(t.getMonth()+1),r=ec(t.getDate()),i=ec(t.getHours()),s=ec(t.getMinutes()),a=ec(t.getSeconds());return`${e}-${n}-${r} ${i}:${s}:${a}`}function kM(t){return t<15?`${t.toFixed(1)}s`:t<60?`${t|0}s`:t<3600?`${t/60|0}m`:`${t/3600|0}h`}function TM(t,e){const n=(t==null?void 0:t.getTime())||0,r=e instanceof Date?e.getTime():bn(e).toNumber();return n&&r?kM(Math.max(Math.abs(n-r),0)/1e3):"0.0s"}function Pf(t,{locale:e="en"}={}){const{thousand:n}=k2(e);return ty(bn(t).toString(),n)}function PM(t){return Array.isArray(t)}function Ye(t){return typeof t=="string"||t instanceof String}function AM(t){for(let e=0,n=t.length;e126)return!1}return!0}function T2(t){for(let e=0,n=t.length;e126)return!1}return!0}function iy(t){return Ye(t)?Oe(t)?T2(K(t)):AM(t):t?T2(t):!1}const sy=qO("isPrototypeOf","hasOwnProperty");function P2(t,e){return sy(e)&&sy(t)?t===e||t.isPrototypeOf(e):!1}const NM=xf("toHex","toHuman","toU8a"),RM=xf("get");function Xi(t){return NM(t)&&RM(t.registry)}const ay=xf("toBigInt","toBn","toNumber","unwrap");function IM(t){return(t&&t.constructor)===Error||t instanceof Error}function OM(t,e){return(t&&t.constructor)===e||t instanceof e}const Cs="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Zt="[a-fA-F\\d]{1,4}",A2=` +(?: +(?:${Zt}:){7}(?:${Zt}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 +(?:${Zt}:){6}(?:${Cs}|:${Zt}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 +(?:${Zt}:){5}(?::${Cs}|(?::${Zt}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 +(?:${Zt}:){4}(?:(?::${Zt}){0,1}:${Cs}|(?::${Zt}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 +(?:${Zt}:){3}(?:(?::${Zt}){0,2}:${Cs}|(?::${Zt}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 +(?:${Zt}:){2}(?:(?::${Zt}){0,3}:${Cs}|(?::${Zt}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 +(?:${Zt}:){1}(?:(?::${Zt}){0,4}:${Cs}|(?::${Zt}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 +(?::(?:(?::${Zt}){0,5}:${Cs}|(?::${Zt}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 +)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 +`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),MM=new RegExp(`(?:^${Cs}$)|(?:^${A2}$)`),LM=new RegExp(`^${Cs}$`),DM=new RegExp(`^${A2}$`);function UM(t,e){switch(e){case"v4":return LM.test(t);case"v6":return DM.test(t);default:return MM.test(t)}}function VM(t,e){return Es(e)?e.toString():e}function Le(t,e){return JSON.stringify(t,VM,e)}function BM(t){const e=typeof t!="string"?Le(t):t;try{const n=JSON.parse(e);return typeof n=="object"&&n!==null}catch{return!1}}function fa(t){return t===null}function Be(t){return typeof t=="number"}const HM=zg("next"),FM=xf("catch","then"),jM=new Uint8Array([127,69,76,70]),zM=new Uint8Array([80,86,77,0]);function WM(t){if(he(t)){const e=t.subarray(0,4);return Gn(e,zM)||Gn(e,jM)}return!1}const qM=/(Development|Local Testnet)$/;function ZM(t){return t?!!qM.test(t.toString()):!1}function rt(t){return t===void 0}function N2(t){if(!t)return Ye(t);const e=K(t),n=e.length;let r=0;for(;r=194&&e[r]<=223){if(r+1191)return!1}else return!1;r+=2}else if(e[r]===224){if(r+2191||e[r+2]<128||e[r+2]>191)return!1}else return!1;r+=3}else if(e[r]>=225&&e[r]<=236){if(r+2191||e[r+2]<128||e[r+2]>191)return!1}else return!1;r+=3}else if(e[r]===237){if(r+2159||e[r+2]<128||e[r+2]>191)return!1}else return!1;r+=3}else if(e[r]>=238&&e[r]<=239){if(r+2191||e[r+2]<128||e[r+2]>191)return!1}else return!1;r+=3}else if(e[r]===240){if(r+3191||e[r+2]<128||e[r+2]>191||e[r+3]<128||e[r+3]>191)return!1}else return!1;r+=4}else if(e[r]>=241&&e[r]<=243){if(r+3191||e[r+2]<128||e[r+2]>191||e[r+3]<128||e[r+3]>191)return!1}else return!1;r+=4}else if(e[r]===244){if(r+3143||e[r+2]<128||e[r+2]>191||e[r+3]<128||e[r+3]>191)return!1}else return!1;r+=4}else return!1;return!0}const GM=new Uint8Array([0,97,115,109]);function XM(t){return he(t)&&Gn(t.subarray(0,4),GM)}function Ln(t,e,n,r,i=0){const s=r?r(e,i):e.toString();let a;Object.defineProperty(t,s,{configurable:!0,enumerable:!0,get:function(){if(a===void 0){a=n(e,i,this);try{Object.defineProperty(this,s,{value:a})}catch{}}return a}})}function ha(t,e,n,r){for(let i=0,s=e.length;i{if(t<=0)return e;const n=`${e}`;return n.lengthtc("debug",e,i,r):Ki,error:(...i)=>tc("error",e,i),log:(...i)=>tc("log",e,i),noop:Ki,warn:(...i)=>tc("warn",e,i)}}function t9(){return"none"}function il(t,{getInstanceId:e=t9}={}){const n={},r=(...i)=>{const s=Le(i),a=e();return n[a]||(n[a]={}),n[a][s]===void 0&&(n[a][s]=t(...i)),n[a][s]};return r.unmemoize=(...i)=>{var o;const s=Le(i),a=e();((o=n[a])==null?void 0:o[s])!==void 0&&delete n[a][s]},r}function nc(t,e){setTimeout(()=>{Promise.resolve().then(()=>{t()}).catch(n=>{e&&e(n)})},0)}function R2(t,e=-1){const n=(!t||Number.isNaN(t)?0:t).toString(16);return Lw(n.length%2?`0${n}`:n,e,!0)}function n9(t,e=-1){return kn(R2(t,e))}function I2(t){const e=Object.keys(t);for(let n=0,r=e.length;n{e.apply(t,n.concat((s,a)=>{s?i(s):r(a)}))})}const sl=new Array(256),ly=new Array(256);for(let t=0,e=sl.length;t{const n=e.replace(/[-_., ]+/g," ").trim().split(" ");let r="";for(let i=0,s=n.length;i(e?sl[t.charCodeAt(0)]:ly[t.charCodeAt(0)])+t.slice(1)),Nf=O2(t=>sl[t.charCodeAt(0)]+t.slice(1));function M2(t){return e=>e?t[e.charCodeAt(0)]+e.slice(1):""}const u9=M2(ly),L2=M2(sl);function c9(t,e=6){return t.length<=2+2*e?t.toString():`${t.substring(0,e)}…${t.slice(-e)}`}function uy(t){return Ae(Nt(t))}const d9=Object.freeze(Object.defineProperty({__proto__:null,BN:te,BN_BILLION:Cf,BN_EIGHT:uM,BN_FIVE:aM,BN_FOUR:sM,BN_HUNDRED:ey,BN_MAX_INTEGER:v2,BN_MILLION:uo,BN_NINE:cM,BN_ONE:Ss,BN_QUINTILL:y2,BN_SEVEN:lM,BN_SIX:oM,BN_SQRT_MAX_INTEGER:_2,BN_TEN:Qg,BN_THOUSAND:dM,BN_THREE:iM,BN_TWO:Ku,BN_ZERO:_n,POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG:i2,U8A_WRAP_ETHEREUM:Ef,U8A_WRAP_POSTFIX:tl,U8A_WRAP_PREFIX:el,_0n:no,_1000n:t6,_100n:e6,_10n:QR,_1Bn:cg,_1Mn:n6,_1Qn:r6,_1n:$s,_2n:qR,_2pow53n:Dw,_3n:ZR,_4n:GR,_5n:XR,_6n:KR,_7n:JR,_8n:YR,_9n:$R,_sqrt2pow53n:Uw,arrayChunk:Fg,arrayFilter:VO,arrayFlatten:bf,arrayRange:BO,arrayShuffle:HO,arrayUnzip:FO,arrayZip:jO,assert:a2,assertReturn:Gi,assertUnreachable:jg,bnFromHex:qo,bnMax:$g,bnMin:g2,bnSqrt:fM,bnToBn:bn,bnToHex:b2,bnToU8a:Pn,bufferToU8a:pM,calcSi:ry,compactAddLength:Kr,compactFromU8a:kf,compactFromU8aLim:ca,compactStripLength:nl,compactToU8a:Vt,detectPackage:s2,extractTime:Yu,findSi:ny,floatToU8a:E2,formatBalance:da,formatDate:CM,formatDecimal:ty,formatElapsed:TM,formatNumber:Pf,hasBigInt:vn,hasBuffer:Gg,hasCjs:o2,hasDirname:GO,hasEsm:XO,hasProcess:JO,hasWasm:KO,hexAddPrefix:Mw,hexFixLength:Lw,hexHasPrefix:Ow,hexStripPrefix:ku,hexToBigInt:Fw,hexToBn:qo,hexToNumber:zw,hexToString:Ww,hexToU8a:kn,identity:pa,isArray:PM,isAscii:iy,isBigInt:Es,isBn:rr,isBoolean:$u,isBuffer:Xg,isChildClass:P2,isClass:sy,isCodec:Xi,isCompact:ay,isError:IM,isFunction:Se,isHex:Oe,isInstanceOf:OM,isIp:UM,isJsonObject:BM,isNull:fa,isNumber:Be,isObject:qn,isObservable:HM,isPromise:FM,isRiscV:WM,isString:Ye,isTestChain:ZM,isToBigInt:Wg,isToBn:qg,isU8a:he,isUndefined:rt,isUtf8:N2,isWasm:XM,lazyMethod:Ln,lazyMethods:ha,logger:ir,loggerFormat:oy,memoize:il,nMax:zO,nMin:WO,nSqrt:ZO,nToBigInt:Zg,nToHex:rM,nToU8a:Yg,nextTick:nc,noop:Ki,numberToHex:R2,numberToU8a:n9,objectClear:I2,objectCopy:r9,objectEntries:i9,objectKeys:s9,objectProperties:ma,objectProperty:Af,objectSpread:ne,objectValues:a9,packageInfo:r2,promisify:o9,stringCamelCase:je,stringLowerFirst:u9,stringPascalCase:Nf,stringShorten:c9,stringToHex:uy,stringToU8a:Nt,stringUpperFirst:L2,stringify:Le,u8aCmp:l2,u8aConcat:ot,u8aConcatStrict:Zn,u8aEmpty:Kg,u8aEq:Gn,u8aFixLength:u2,u8aIsWrapped:Xu,u8aSorted:$O,u8aToBigInt:qd,u8aToBn:Cr,u8aToBuffer:QO,u8aToFloat:c2,u8aToHex:Ae,u8aToNumber:f2,u8aToString:di,u8aToU8a:K,u8aUnwrapBytes:h2,u8aWrapBytes:p2},Symbol.toStringTag,{value:"Module"})),f9=er.crypto;function D2(t){return f9.getRandomValues(t)}const Rf={getRandomValues:D2},h9={crypto:Rf};class p9{constructor(e){P(this,"__internal__bridge");P(this,"abort",()=>{throw new Error("abort")});P(this,"__wbindgen_is_undefined",e=>this.__internal__bridge.getObject(e)===void 0);P(this,"__wbindgen_throw",(e,n)=>{throw new Error(this.__internal__bridge.getString(e,n))});P(this,"__wbg_self_1b7a39e3a92c949c",()=>this.__internal__bridge.addObject(h9));P(this,"__wbg_require_604837428532a733",(e,n)=>{throw new Error(`Unable to require ${this.__internal__bridge.getString(e,n)}`)});P(this,"__wbg_crypto_968f1772287e2df0",e=>this.__internal__bridge.addObject(Rf));P(this,"__wbg_getRandomValues_a3d34b4fee3c2869",e=>this.__internal__bridge.addObject(Rf.getRandomValues));P(this,"__wbg_getRandomValues_f5e14ab7ac8e995d",(e,n,r)=>{Rf.getRandomValues(this.__internal__bridge.getU8a(n,r))});P(this,"__wbg_randomFillSync_d5bd2d655fdf256a",(e,n,r)=>{throw new Error("randomFillsync is not available")});P(this,"__wbindgen_object_drop_ref",e=>{this.__internal__bridge.takeObject(e)});this.__internal__bridge=e}}class m9{constructor(e){P(this,"__internal__createWasm");P(this,"__internal__heap");P(this,"__internal__wbg");P(this,"__internal__cachegetInt32");P(this,"__internal__cachegetUint8");P(this,"__internal__heapNext");P(this,"__internal__wasm");P(this,"__internal__wasmError");P(this,"__internal__wasmPromise");P(this,"__internal__type");this.__internal__createWasm=e,this.__internal__cachegetInt32=null,this.__internal__cachegetUint8=null,this.__internal__heap=new Array(32).fill(void 0).concat(void 0,null,!0,!1),this.__internal__heapNext=this.__internal__heap.length,this.__internal__type="none",this.__internal__wasm=null,this.__internal__wasmError=null,this.__internal__wasmPromise=null,this.__internal__wbg={...new p9(this)}}get error(){return this.__internal__wasmError}get type(){return this.__internal__type}get wasm(){return this.__internal__wasm}async init(e){(!this.__internal__wasmPromise||e)&&(this.__internal__wasmPromise=(e||this.__internal__createWasm)(this.__internal__wbg));const{error:n,type:r,wasm:i}=await this.__internal__wasmPromise;return this.__internal__type=r,this.__internal__wasm=i,this.__internal__wasmError=n,this.__internal__wasm}getObject(e){return this.__internal__heap[e]}dropObject(e){e<36||(this.__internal__heap[e]=this.__internal__heapNext,this.__internal__heapNext=e)}takeObject(e){const n=this.getObject(e);return this.dropObject(e),n}addObject(e){this.__internal__heapNext===this.__internal__heap.length&&this.__internal__heap.push(this.__internal__heap.length+1);const n=this.__internal__heapNext;return this.__internal__heapNext=this.__internal__heap[n],this.__internal__heap[n]=e,n}getInt32(){return(this.__internal__cachegetInt32===null||this.__internal__cachegetInt32.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetInt32=new Int32Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetInt32}getUint8(){return(this.__internal__cachegetUint8===null||this.__internal__cachegetUint8.buffer!==this.__internal__wasm.memory.buffer)&&(this.__internal__cachegetUint8=new Uint8Array(this.__internal__wasm.memory.buffer)),this.__internal__cachegetUint8}getU8a(e,n){return this.getUint8().subarray(e/1,e/1+n)}getString(e,n){return di(this.getU8a(e,n))}allocU8a(e){const n=this.__internal__wasm.__wbindgen_malloc(e.length*1);return this.getUint8().set(e,n/1),[n,e.length]}allocString(e){return this.allocU8a(Nt(e))}resultU8a(){const e=this.getInt32()[2],n=this.getInt32()[8/4+1],r=this.getU8a(e,n).slice();return this.__internal__wasm.__wbindgen_free(e,n*1),r}resultString(){return di(this.resultU8a())}}function g9(t,e,n){return async r=>{const i={error:null,type:"none",wasm:null};try{if(e!=null&&e.length){if(typeof WebAssembly!="object"||typeof WebAssembly.instantiate!="function")throw new Error("WebAssembly is not available in your environment")}else throw new Error("No WebAssembly provided for initialization");const s=await WebAssembly.instantiate(e,{wbg:r});i.wasm=s.instance.exports,i.type="wasm"}catch(s){typeof n=="function"?(i.wasm=n(r),i.type="asm"):i.error=`FATAL: Unable to initialize @polkadot/wasm-${t}:: ${s.message}`}return i}}const U2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V2=new Array(256);for(let t=0,e=U2.length;t=8&&(e[++i]=n>>>(r-=8)&255);return e}const Ji=Uint8Array,ga=Uint16Array,cy=Uint32Array,v9=new Ji([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),B2=new Ji([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),H2=new Ji([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),F2=(t,e)=>{const n=new ga(31);for(let i=0;i<31;++i)n[i]=e+=1<>>1|(t&21845)<<1;e=(e&52428)>>>2|(e&13107)<<2,e=(e&61680)>>>4|(e&3855)<<4,dy[t]=((e&65280)>>>8|(e&255)<<8)>>>1}const rc=(t,e,n)=>{const r=t.length;let i=0;const s=new ga(e);for(;i>>l]=u}}else for(o=new ga(r),i=0;i>>15-t[i];return o},ic=new Ji(288);for(let t=0;t<144;++t)ic[t]=8;for(let t=144;t<256;++t)ic[t]=9;for(let t=256;t<280;++t)ic[t]=7;for(let t=280;t<288;++t)ic[t]=8;const z2=new Ji(32);for(let t=0;t<32;++t)z2[t]=5;const w9=rc(ic,9,1),x9=rc(z2,5,1),_i=(t,e,n)=>{const r=e>>>3;return(t[r]|t[r+1]<<8)>>>(e&7)&n},fy=(t,e)=>{const n=e>>>3;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(e&7)},S9=t=>(t>>>3)+(t&7&&1),E9=(t,e,n)=>{(e==null||e<0)&&(e=0),(n==null||n>t.length)&&(n=t.length);const r=new(t instanceof ga?ga:t instanceof cy?cy:Ji)(n-e);return r.set(t.subarray(e,n)),r},hy=t=>{let e=t[0];for(let n=1,r=t.length;ne&&(e=t[n]);return e},C9=(t,e,n)=>{const r=!n||n.i;n||(n={});const i=t.length,s=!e||!r;e||(e=new Ji(i*3));const a=v=>{let S=e.length;if(v>S){const _=new Ji(Math.max(S<<1,v));_.set(e),e=_}};let o=n.f||0,l=n.p||0,u=n.b||0,c=n.l,d=n.d,h=n.m,m=n.n;if(o&&!c)return e;const y=i<<3;do{if(!c){n.f=o=_i(t,l,1);const b=_i(t,l+1,3);if(l+=3,b)if(b==1)c=w9,d=x9,h=9,m=5;else if(b==2){const w=_i(t,l,31)+257,A=_i(t,l+10,15)+4,O=w+_i(t,l+5,31)+1;l+=14;const M=new Ji(O),U=new Ji(19);for(let N=0;Ny)break;const L=rc(U,V,1);for(let N=0;N>>4;if(p<16)M[N++]=p;else{let x=0,T=0;for(p==16?(T=3+_i(t,l,3),l+=2,x=M[N-1]):p==17?(T=3+_i(t,l,7),l+=3):p==18&&(T=11+_i(t,l,127),l+=7);T--;)M[N++]=x}}const B=M.subarray(0,w),W=M.subarray(w);h=hy(B),m=hy(W),c=rc(B,h,1),d=rc(W,m,1)}else throw"invalid block type";else{const w=S9(l)+4,A=t[w-4]|t[w-3]<<8,O=w+A;if(O>i){if(r)throw"unexpected EOF";break}s&&a(u+A),e.set(t.subarray(w,O),u),n.b=u+=A,n.p=l=O<<3;continue}if(l>y)throw"unexpected EOF"}s&&a(u+131072);const v=(1<>>4;if(l+=b&15,l>y)throw"unexpected EOF";if(!b)throw"invalid length/literal";if(w<256)e[u++]=w;else if(w==256){c=void 0;break}else{let A=w-254;if(w>264){const F=w-257,L=B2[F];A=_i(t,l,(1<>>4;if(!O)throw"invalid distance";l+=O&15;let U=b9[M];if(M>3){const F=H2[M];U+=fy(t,l)&(1<y)throw"unexpected EOF";s&&a(u+131072);const V=u+A;for(;u{if((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(t[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function T9(t,e){return C9((k9(t),t.subarray(2,-4)),e)}const P9=70042,A9=107426,N9=T9(y9("eNq8vQuYXVd153ke91n3VulIKlllSbbOvZZxCSxLluQqWTaWToFfIQQ6zddD+psZYWwZXDK2JQsD08ISWDJSoIMmj0YJJCgdEosEBZGQIDr0pKCZaeU1EQkN6oQkyiT5ou4Qou6hO0qPG8/vv9Y+595blv3x9Uv+XHfvffZZe+2119577bXWXid64Ml3xFEUxf8knnxLcvBgpD/xwbekB5XWXzIxyViJGnnSdf3w27BfPWh6qnpmL8VPvyUaeiaoT9tP6+DT/i96y1iZVMbAW+PKWeNPJ59JWum73vq2lbt2veutjzz20Nt2P7brkSd3vfOxh3Y//Mhjux+K6nq6aujp42+d3/3g/l0P7Xv8iV37dj8c1VRhtSq8bdeTux99eNetb519YMvtu7c8cPvmB2/fevuDUVc1rvMaD+57zxP7H991+8y2h2+dnd28edvs7s0PPbzJm3mF13nb7v3f/8BjDz3+jn/wwKPv3P3krge2PLRl61u3Prx795YHN2+bud0rX++V9+3e+85H9u3eNbNp67Yts1s3b7tty+YHZrdsieKXgfjwbbtv3foAeD64bfftt9/2UJSo8o0BotW855FHH/3773nswV0P3fbWhzY/NHPbbQ8/9PDm22YeoO7n4l9hUJOk1Wglca3ZbCdRO2034yhpMtbpWBS1kiSO4rEkSaN6NJ4kE+STRpREKk7iuG7pqFGjtNbgYVxLoiVRnTpZUkvG4jhNorRBraURZTXgpnESNXlnWRTVY5qnOaDwXr0GlCRariRVa41arRbVgEDT1KexqFPvxPWYZ/X4ifjWW+tpHC1ttGGh4tChhajT/GyypPGO3e94fN97kijb/e79u3Y/tOvhfY+/gwGFBXZ0QtGTj7ztsWh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f0/8NbmDyAnNHg04j/uf2eC/Qu5g+Jgid7Begm/wUxPnga3INV/zeKgVVsVEvvNeeNYDvmLcZdfWh8A9JspH97kaw291we+PInJMpBUaDj1GL95JKtMhM+hrrar+5ikLI69QR+fdL+S0tWmHzZmDdziv1azVAb+yx8coidFZCqLMWfTFAro5ucmOgJjH8LsL8nOsgH9HnbCLtYOb5hYVpf9tVTdyQP+0rTvaqY3P2jtfcnP71yf8799xcbvkfknqX9O4MbrnHZzt/rf+/F8TvdT//Lf/+x9I4e/8+5t7XC78+wH/5v/8zOh//v/s/+1Cpn9dvWA3weComtdyM6jIrkpyOW7dbcF575ySoOWeJcOcdzcmCv2MWI9tdlKXvG1Pk3Lhhebv/P7Azd7Cvlz8b4bPbEGY2r/e5H//2/H/9SjjaiaIBSFYhQjG7f/XMf2v6xg1VET2fzuV/3Ur/+vU/9dF/q+D/d8/+9fH/O/vwz7wPz/+6yZXw1euNDvxx5cjvvTwJYcvKnyNSLGTanyF48sWXwfwRY8vXQa8VOc8ztq6XaZgxl+eRYu47Tm8RJS0V6yd3Dwu08pK71KRlmX+/4vBOVEdLb1bZct2FRvZcwqyZ3db7/g/LWS8rg==",new Uint8Array(P9)),new Uint8Array(A9)),R9=g9("crypto",N9,null),$=new m9(R9);async function I9(t){return $.init(t)}function $e(t){return(...e)=>{if(!$.wasm)throw new Error("The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.");return t($.wasm,...e)}}const O9=$e((t,e)=>(t.ext_bip39_to_entropy(8,...$.allocString(e)),$.resultU8a())),M9=$e((t,e,n)=>(t.ext_bip39_to_mini_secret(8,...$.allocString(e),...$.allocString(n)),$.resultU8a())),L9=$e((t,e,n)=>(t.ext_bip39_to_seed(8,...$.allocString(e),...$.allocString(n)),$.resultU8a())),D9=$e((t,e)=>t.ext_bip39_validate(...$.allocString(e))!==0),U9=$e((t,e)=>(t.ext_ed_from_seed(8,...$.allocU8a(e)),$.resultU8a())),V9=$e((t,e,n,r)=>(t.ext_ed_sign(8,...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r)),$.resultU8a())),B9=$e((t,e,n,r)=>t.ext_ed_verify(...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r))!==0),H9=$e((t,e)=>(t.ext_secp_from_seed(8,...$.allocU8a(e)),$.resultU8a())),F9=$e((t,e)=>(t.ext_secp_pub_compress(8,...$.allocU8a(e)),$.resultU8a())),j9=$e((t,e)=>(t.ext_secp_pub_expand(8,...$.allocU8a(e)),$.resultU8a())),z9=$e((t,e,n,r)=>(t.ext_secp_recover(8,...$.allocU8a(e),...$.allocU8a(n),r),$.resultU8a())),W9=$e((t,e,n)=>(t.ext_secp_sign(8,...$.allocU8a(e),...$.allocU8a(n)),$.resultU8a())),q9=$e((t,e,n)=>(t.ext_sr_derive_keypair_hard(8,...$.allocU8a(e),...$.allocU8a(n)),$.resultU8a())),Z9=$e((t,e,n)=>(t.ext_sr_derive_keypair_soft(8,...$.allocU8a(e),...$.allocU8a(n)),$.resultU8a())),G9=$e((t,e)=>(t.ext_sr_from_seed(8,...$.allocU8a(e)),$.resultU8a())),X9=$e((t,e,n,r)=>(t.ext_sr_sign(8,...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r)),$.resultU8a())),K9=$e((t,e,n,r)=>t.ext_sr_verify(...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r))!==0),J9=$e((t,e,n,r,i)=>(t.ext_vrf_sign(8,...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r),...$.allocU8a(i)),$.resultU8a())),Y9=$e((t,e,n,r,i,s)=>t.ext_vrf_verify(...$.allocU8a(e),...$.allocU8a(n),...$.allocU8a(r),...$.allocU8a(i),...$.allocU8a(s))!==0),$9=$e((t,e,n,r)=>(t.ext_blake2b(8,...$.allocU8a(e),...$.allocU8a(n),r),$.resultU8a())),Q9=$e((t,e,n)=>(t.ext_hmac_sha256(8,...$.allocU8a(e),...$.allocU8a(n)),$.resultU8a())),eL=$e((t,e,n)=>(t.ext_hmac_sha512(8,...$.allocU8a(e),...$.allocU8a(n)),$.resultU8a())),tL=$e((t,e)=>(t.ext_keccak256(8,...$.allocU8a(e)),$.resultU8a())),nL=$e((t,e)=>(t.ext_keccak512(8,...$.allocU8a(e)),$.resultU8a())),rL=$e((t,e,n,r)=>(t.ext_pbkdf2(8,...$.allocU8a(e),...$.allocU8a(n),r),$.resultU8a())),iL=$e((t,e,n,r,i,s)=>(t.ext_scrypt(8,...$.allocU8a(e),...$.allocU8a(n),r,i,s),$.resultU8a())),sL=$e((t,e)=>(t.ext_sha256(8,...$.allocU8a(e)),$.resultU8a())),aL=$e((t,e)=>(t.ext_sha512(8,...$.allocU8a(e)),$.resultU8a())),oL=$e((t,e,n)=>(t.ext_twox(8,...$.allocU8a(e),n),$.resultU8a()));function wn(){return!!$.wasm}async function lL(){try{return!!await I9()}catch{return!1}}function W2(t){return(...e)=>Ae(t(...e))}function uL(t,e){return(n,r)=>e(n,t,r)}function q2(t,e){return(n,r=256,i)=>{const s=K(n);return!vn||!i&&wn()?t[r](s):e[r](s)}}function kr(t,e=256,n,r){const i=Math.ceil(e/8),s=K(t);return!vn||!r&&wn()?$9(s,K(n),i):n?n2(s,{dkLen:i,key:n}):n2(s,{dkLen:i})}const If=W2(kr);function Of(t,e){return If(t,e)}function sc(t){return Of(hO(t))}const cL=(t,e)=>{const n=r=>Object.keys(r).every(i=>t.safeParse(i).success);return Tg(e).refine(n)},co=Gu(["development","rococo","shiden"]),py=Zu([oo("sr25519"),oo("ed25519"),oo("ecdsa"),oo("ethereum")]),dL=Je({endpoint:Te().url(),contract:Je({address:Te(),name:Te()}),pairType:py,ss58Format:at().positive().default(42)}),fL=cL(co,dL.required({endpoint:!0,pairType:!0,ss58Format:!0})),my=py.parse("sr25519"),gy=t=>"5HiVWQhJrysNcFNEWf2crArKht16zrhro3FcekVWocyQjx5u",hL=()=>({[co.Values.development]:{endpoint:"wss://rococo-contracts-rpc.polkadot.io:443",contract:{name:"captcha",address:gy()},pairType:my,ss58Format:42},[co.Values.rococo]:{endpoint:"wss://rococo-contracts-rpc.polkadot.io:443",contract:{name:"captcha",address:gy()},pairType:my,ss58Format:42},[co.Values.shiden]:{endpoint:"wss://rococo-contracts-rpc.polkadot.io:443",contract:{address:gy(),name:"captcha"},pairType:my,ss58Format:5}});Gu(["mongo","mongoMemory"]);const Mf=Gu(["development","staging","production"]),pL=Tg(Mf,Je({type:Te(),endpoint:Te(),dbname:Te(),authSource:Te()})),mL=Je({interval:at().positive().optional().default(300),maxBatchExtrinsicPercentage:at().positive().optional().default(59)}),Z2=Je({logLevel:yi.optional().default(yi.enum.info),defaultEnvironment:Mf.default(Mf.Values.production),defaultNetwork:co.default(co.Values.rococo),account:Je({address:Te().optional(),secret:Te().optional(),password:Te().optional()})}).merge(Je({networks:fL.default(hL),database:pL.optional()})),gL=Je({solved:Je({count:at().positive()}).optional().default({count:1}),unsolved:Je({count:at().nonnegative()}).optional().default({count:1})}),yL=Je({baseURL:Te().url(),port:at().optional().default(9229)}),vL=Je({requiredNumberOfSolutions:at().positive().min(2),solutionWinningPercentage:at().positive().max(100),captchaBlockRecency:at().positive().min(2)}),G2=Z2.merge(Je({userAccountAddress:Te().optional(),web2:Cg().optional().default(!0),solutionThreshold:at().positive().max(100).optional().default(80),dappName:Te().optional().default("ProsopoClientDapp"),serverUrl:Te().optional()}));G2.merge(Je({serverUrl:Te().url()}));const _L=Je({area:Je({width:at().positive(),height:at().positive()}),offsetParameter:at().positive(),multiplier:at().positive(),fontSizeFactor:at().positive(),maxShadowBlur:at().positive(),numberOfRounds:at().positive(),seed:at().positive()}),bL=Zu([oo("light"),oo("dark")]),X2=G2.and(Je({accountCreator:_L.optional(),theme:bL.optional(),challengeValidLength:at().positive().optional()}));Z2.merge(Je({captchas:gL.optional().default({solved:{count:1},unsolved:{count:0}}),captchaSolutions:vL.optional().default({requiredNumberOfSolutions:3,solutionWinningPercentage:80,captchaBlockRecency:10}),batchCommit:mL.optional().default({interval:300,maxBatchExtrinsicPercentage:59}),server:yL}));class al extends Boolean{constructor(n,r=!1){super(he(r)?r[0]===1:r instanceof Boolean?r.valueOf():!!r);P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength",1);P(this,"isStorageFallback");this.registry=n}get encodedLength(){return 1}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isFalse}get isFalse(){return!this.isTrue}get isTrue(){return this.valueOf()}eq(n){return this.valueOf()===(n instanceof Boolean?n.valueOf():n)}inspect(){return{outer:[this.toU8a()]}}toHex(){return Ae(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.valueOf()}toPrimitive(){return this.toJSON()}toRawType(){return"bool"}toString(){return this.toJSON().toString()}toU8a(n){return new Uint8Array([this.valueOf()?1:0])}}class Lf extends Number{constructor(n,r,{bitLength:i=32}={}){super(he(r)||Oe(r)?r.length===0?0:c2(K(r),{bitLength:i}):r||0);P(this,"encodedLength");P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__bitLength");this.__internal__bitLength=i,this.encodedLength=i/8,this.initialU8aLength=this.encodedLength,this.registry=n}static with(n){return class extends Lf{constructor(r,i){super(r,i,{bitLength:n})}}}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.valueOf()===0}eq(n){return this.valueOf()===Number(n)}inspect(){return{outer:[this.toU8a()]}}toHex(){return Ae(this.toU8a())}toHuman(){return this.toString()}toJSON(){return this.toHex()}toNumber(){return this.valueOf()}toPrimitive(){return this.toNumber()}toRawType(){return`f${this.__internal__bitLength}`}toU8a(n){return E2(this,{bitLength:this.__internal__bitLength})}}function K2(t){return Se(t.eq)}function J2(t,e){return Array.isArray(e)?t.length===e.length&&rt(t.find((n,r)=>K2(n)?!n.eq(e[r]):n!==e[r])):!1}function wL(t,e){return rt(t)||(K2(t)?!t.eq(e):t!==e)}function xL(t){return!Array.isArray(t)||t.length!==2}function yy(t,e){return t.size===e.length&&!e.some(n=>xL(n)||wL(t.get(n[0]),n[1]))}function vy(t,e){return Array.isArray(e)?yy(t,e):e instanceof Map?yy(t,[...e.entries()]):qn(e)?yy(t,Object.entries(e)):!1}function _y(t,e){return t.size===e.length&&!e.some(n=>!t.has(n))}function SL(t,e){return Array.isArray(e)?_y(t,e):e instanceof Set?_y(t,[...e.values()]):qn(e)?_y(t,Object.values(e)):!1}function by(t,e,n,{message:r},i,s,a,o,l){let u="";try{u=`: ${new o(t).toRawType()}`}catch{}return`${e}: failed at ${Ae(i.subarray(0,16))}…${l?` on ${l}`:""} (index ${s+1}/${a})${u}:: ${r}`}function wy(t,e,n,[r,i]){const s=e.length;let a=0,o=0;try{for(;o::Inherent","InherentOfflineReport",!1),Yi("VecDeque<","Vec<",!1),TL(),$2("Bounded",!0),$2("Weak",!1),IL(),RL(),OL("Box<"),NL(),Yi("String","Text"),Yi("Vec","Bytes"),Yi("&\\[u8\\]","Bytes"),Yi("&'static\\[u8\\]","Bytes"),Yi("RawAddress","Address"),Yi("Lookup::Source","LookupSource"),Yi("Lookup::Target","LookupTarget"),Yi("exec::StorageKey","ContractStorageKey"),PL(),AL(),kL()];function kL(){return t=>t.trim()}function Sy(t,e){let n=0;for(let r=e,i=t.length;r"){if(!n)return r;n--}else t[r]==="<"&&n++;throw new Error(`Unable to find closing matching <> on '${t}' (start ${e})`)}function Yi(t,e,n=!0){const r=new RegExp(`(^${t}|${Uf.map(s=>`\\${s}${t}`).join("|")})`,"g"),i=s=>(r.lastIndex=0,n&&Uf.includes(s[0])?`${s[0]}${e}`:e);return s=>s.replace(r,i)}function TL(){return t=>{if(t.includes(" as HasCompact")){for(let e=0,n=t.length;e`)}}return t}}function PL(){const t=/,\)/g,e=/\(([^,]+)\)/;return n=>(t.lastIndex=0,n.replace(t,")").replace(e,"$1"))}function Ey(t,e,n){let r=-1;for(;;){if(r=t.indexOf(e,r+1),r===-1)return t;const i=r+e.length,s=Sy(t,i);t=`${t.substring(0,r)}${n(t.substring(i,s))}${t.substring(s+1)}`}}function $2(t,e){return n=>{for(let r=0,i=xy.length;r{const o=a.split(",").map(l=>l.trim()).filter(l=>l);return e&&o.pop(),`${s}<${o.join(",")}>`})}return n}}function AL(){return t=>{let e=0;for(;e!==-1;)if(e=t.indexOf("::"),e===0)t=t.substring(2);else if(e!==-1){let n=e;for(;n!==-1&&!Uf.includes(t[n]);)n--;t=`${t.substring(0,n+1)}${t.substring(e+2)}`}return t}}function NL(){return t=>{for(let e=0,n=t.length;e{const s=e-i.length;return s>=0&&t.substring(s,e)===i&&(s===0||Uf.includes(t[s-1]))})){const i=Sy(t,e+1);t=`${t.substring(0,e)}${t.substring(i+1)}`}return t}}function RL(){const t=e=>`(${e},${e})`;return e=>Ey(e,"PairOf<",t)}function IL(){const t=/\s/g,e=/(T|Self)::/g,n=/<(T|Self)asTrait>::/g,r=/::/g,i=//g,s=/::Type/g;return a=>(t.lastIndex=0,e.lastIndex=0,n.lastIndex=0,r.lastIndex=0,i.lastIndex=0,s.lastIndex=0,a.replace(t,"").replace(e,"").replace(n,"").replace(r,"").replace(i,"Lookup").replace(s,""))}function OL(t){const e=n=>n;return n=>Ey(n,t,e)}const Q2=new Map;function Vf(t){const e=t.toString(),n=Q2.get(e);if(n)return n;let r=e;for(let i=0,s=Y2.length;i ${Le(e)} (typeof ${typeof e})`)}function LL(t){return new Set(Array.from(t).sort(fo))}function DL(t){return new Map(Array.from(t.entries()).sort(([e],[n])=>fo(e,n)))}function bi(t,e){return typeof e=="function"?e:t.createClassUnsafe(e)}function UL(t,e){const n=e.length,r=new Array(n);for(let i=0;is),s=>this.get(s))}get encodedLength(){return 0}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return[...this.keys()].length===0}eq(n){return vy(this,n)}getT(n){return this.get(n)}inspect(){throw new Error("Unimplemented")}toHex(){throw new Error("Unimplemented")}toHuman(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=Se(i.toHuman)?i.toHuman():i,n),{})}toJSON(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=i,n),{})}toPrimitive(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=Se(i.toPrimitive)?i.toPrimitive():i,n),{})}toRawType(){return"Json"}toString(){return Le(this.toJSON())}toU8a(n){throw new Error("Unimplemented")}}class Jr extends Uint8Array{constructor(n,r,i){super(K(r));P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");this.registry=n,this.initialU8aLength=i}static get[Symbol.species](){return Uint8Array}get encodedLength(){return this.length}get hash(){return this.registry.hash(this.toU8a())}get isAscii(){return iy(this)}get isEmpty(){return!this.length||rt(this.find(n=>!!n))}get isUtf8(){return N2(this)}bitLength(){return this.length*8}eq(n){return n instanceof Uint8Array?this.length===n.length&&!this.some((r,i)=>r!==n[i]):this.eq(K(n))}inspect(){return{outer:[this.toU8a()]}}toHex(){return Ae(this)}toHuman(){return this.toPrimitive()}toJSON(){return this.toHex()}toPrimitive(){if(this.isAscii){const n=this.toUtf8();if(iy(n))return n}return this.toJSON()}toRawType(){return"Raw"}toString(){return this.toHex()}toU8a(n){return Uint8Array.from(this)}toUtf8(){if(!this.isUtf8)throw new Error("The character sequence is not a valid Utf8 string");return di(this)}}function sS(t,e){const n=new te(0);for(let r=0,i=e.length;r{if(this.__internal__allowed&&rt(this.__internal__allowed[n]))throw new Error(`Set: Invalid key '${n}' on add`);return super.add(n),this});this.registry=n,this.__internal__allowed=r,this.__internal__byteLength=s/8}static with(n,r){var i;return i=class extends ky{constructor(a,o){super(a,n,o,r)}},(()=>{const a=Object.keys(n),o=a.length,l=new Array(o);for(let u=0;ud.strings.includes(a[c]))})(),i}get encodedLength(){return this.__internal__byteLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()]}get valueEncoded(){return sS(this.__internal__allowed,this.strings)}eq(n){return Array.isArray(n)?J2(this.strings.sort(),n.sort()):n instanceof Set?this.eq([...n.values()]):Be(n)||rr(n)?this.valueEncoded.eq(bn(n)):!1}inspect(){return{outer:[this.toU8a()]}}toHex(){return Ae(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.strings}toNumber(){return this.valueEncoded.toNumber()}toPrimitive(){return this.toJSON()}toRawType(){return Le({_set:this.__internal__allowed})}toString(){return`[${this.strings.join(", ")}]`}toU8a(n){return Pn(this.valueEncoded,{bitLength:this.__internal__byteLength*8,isLe:!0})}}function HL(t){return t}function FL(t,[e,n],r,i){let s;const a=Array.isArray(r),o=r instanceof Map,l=n.length;if(!a&&!o&&!qn(r))throw new Error(`Struct: Cannot decode value ${Le(r)} (typeof ${typeof r}), expected an input object, map or array`);if(a&&r.length!==l)throw new Error(`Struct: Unable to map ${Le(r)} array to object with known keys ${n.join(", ")}`);const u=new Array(l);for(let c=0;ci=o;return a=class extends An{constructor(l,u){super(l,n,u,r,{definition:i,setDefinition:s})}},(()=>{const l=Object.keys(n);ma(a.prototype,l,(u,c,d)=>d.get(u))})(),a}get defKeys(){return this.__internal__Types[1]}get isEmpty(){for(const n of this.values())if(!n.isEmpty)return!1;return!0}get encodedLength(){let n=0;for(const r of this.values())n+=r.encodedLength;return n}get hash(){return this.registry.hash(this.toU8a())}get Type(){const n={},[r,i]=this.__internal__Types;for(let s=0,a=i.length;slS)throw new Error(`Text: length ${n.toString()} exceeds ${lS}`);if(r>t.length)throw new Error(`Text: required length less than remainder, expected at least ${r}, found ${t.length}`);return[di(t.subarray(e,r)),r]}else if(Oe(t))return[di(kn(t)),0];return[t?t.toString():"",0]}class Ty extends String{constructor(n,r){const[i,s]=jL(r);super(i);P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__override",null);this.registry=n,this.initialU8aLength=s}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.length===0}get length(){return super.length}eq(n){return Ye(n)?this.toString()===n.toString():!1}inspect(){const n=Nt(super.toString());return{outer:n.length?[Vt(n.length),n]:[Vt(n.length)]}}setOverride(n){this.__internal__override=n}toHex(){return Ae(this.toU8a(!0))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toRawType(){return"Text"}toString(){return this.__internal__override||super.toString()}toU8a(n){const r=Nt(super.toString());return n?r:Kr(r)}}const zL=Q.object({name:Q.string(),type:Q.union([Q.number(),Q.string()])}),WL=Q.object({name:Q.string().optional(),type:Q.number(),typeName:Q.string().optional()}),qL=Q.object({index:Q.number(),name:Q.string()}),ZL=Q.object({name:Q.string(),fields:Q.array(Q.any())}),GL=Q.record(Q.number().min(0),ZL),XL=Q.object({id:Q.number(),type:Q.object({def:Q.object({composite:Q.object({fields:Q.array(WL)}).optional(),variant:Q.object({variants:Q.union([Q.array(qL).optional(),GL])}).optional(),sequence:Q.object({type:Q.number()}).optional(),array:Q.object({len:Q.number(),type:Q.number()}).optional(),primitive:Q.string().optional(),tuple:Q.any().optional()}),params:Q.array(zL).optional(),path:Q.array(Q.string()).optional()})}),KL=Q.object({dispatchKey:Q.string(),variants:Q.any()}),Py=Q.union([Q.instanceof(Ty),Q.string()]),JL=Q.object({key:Py,ty:Q.union([Q.number(),Q.string()])}),uS=Q.array(XL),cS=Q.lazy(()=>Q.object({name:Py.optional(),layout:Q.object({leaf:JL.optional(),enum:KL.optional(),root:cS.optional(),struct:dS.optional()}),root_key:Py.optional()})),dS=Q.object({fields:Q.array(cS),name:Q.string()}),fS=Q.object({root:Q.object({layout:Q.object({struct:dS.optional()})})}),hS=Q.object({constructors:Q.array(Q.any()),docs:Q.array(Q.any()),events:Q.array(Q.any()),messages:Q.array(Q.object({label:Q.string(),selector:Q.string()}))});var ac;(function(t){t.V1="V1",t.V2="V2",t.V3="V3"})(ac||(ac={}));const Ay=Q.object({spec:hS,types:uS,storage:fS}),YL=Q.object({metadataVersion:Q.string().optional(),source:Q.object({hash:Q.string(),language:Q.string(),compiler:Q.string(),wasm:Q.string().optional()}),contract:Q.object({name:Q.string(),version:Q.string(),authors:Q.array(Q.string())}),[ac.V1]:Ay.optional(),[ac.V2]:Ay.optional(),[ac.V3]:Ay.optional(),spec:hS,types:uS,storage:fS});var Ny;(function(t){t.SelectAll="SelectAll"})(Ny||(Ny={}));var Ry;(function(t){t.Text="text",t.Image="image"})(Ry||(Ry={}));var pS;(function(t){t.Solved="solved",t.Unsolved="unsolved"})(pS||(pS={}));const $L=Je({captchaId:Zu([Te(),kg()]),captchaContentId:Zu([Te(),kg()]),salt:Te().min(34),solution:at().array().optional(),unlabelled:at().array().optional(),timeLimit:at().optional()}),mS=Je({hash:Te(),data:Te(),type:Pg(Ry)}),gS=mS.extend({hash:Te()}),QL=gS.extend({label:Te()}),eD=gS.extend({label:Te().optional()}),yS=$L.extend({items:xs(mS),target:Te()}),tD=yS.extend({solution:Te().array().optional(),unlabelled:Te().array().optional()}).extend({solution:at().array().optional(),unlabelled:at().array().optional()}),nD=xs(yS);xs(tD);const vS=Je({captchaId:Te(),captchaContentId:Te(),solution:Te().array(),salt:Te().min(34)});xs(vS),Je({items:xs(eD)}),Je({items:xs(QL)}),Je({captchas:nD,format:Pg(Ny)}),Je({labels:xs(Te())});var ho;(function(t){t.GetCaptchaChallenge="/v1/prosopo/provider/captcha",t.SubmitCaptchaSolution="/v1/prosopo/provider/solution",t.VerifyCaptchaSolution="/v1/prosopo/provider/verify",t.GetProviderStatus="/v1/prosopo/provider/status",t.GetProviderDetails="/v1/prosopo/provider/details"})(ho||(ho={}));var sr;(function(t){t.datasetId="datasetId",t.user="user",t.dapp="dapp",t.blockNumber="blockNumber",t.signature="signature",t.requestHash="requestHash",t.captchas="captchas",t.commitmentId="commitmentId",t.proof="proof",t.providerUrl="providerUrl",t.procaptchaResponse="procaptcha-response",t.maxVerifiedTime="maxVerifiedTime"})(sr||(sr={})),Je({[sr.user]:Te(),[sr.dapp]:Te(),[sr.datasetId]:Te(),[sr.blockNumber]:Te()});const rD=Je({[sr.user]:Te(),[sr.dapp]:Te(),[sr.captchas]:xs(vS),[sr.requestHash]:Te(),[sr.signature]:Te()});Je({[sr.user]:Te(),[sr.commitmentId]:Te().optional(),[sr.maxVerifiedTime]:at().optional()});const oc={black:"#000",white:"#fff"},ol={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ll={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ul={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},cl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},dl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},lc={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},iD={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=_S(t[n])}),e}function wi(t,e,n={clone:!0}){const r=n.clone?Z({},t):t;return ks(t)&&ks(e)&&Object.keys(e).forEach(i=>{i!=="__proto__"&&(ks(e[i])&&i in t&&ks(t[i])?r[i]=wi(t[i],e[i],n):n.clone?r[i]=ks(e[i])?_S(e[i]):e[i]:r[i]=e[i])}),r}function fl(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;nn==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function aD(t,e=166){let n;function r(...i){const s=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(s,e)}return r.clear=()=>{clearTimeout(n)},r}function oD(t,e){return()=>null}function lD(t,e){var n,r;return j.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function bS(t){return t&&t.ownerDocument||document}function uD(t){return bS(t).defaultView||window}function cD(t,e){return()=>null}function wS(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const xS=typeof window<"u"?j.useLayoutEffect:j.useEffect;let SS=0;function dD(t){const[e,n]=j.useState(t),r=t||e;return j.useEffect(()=>{e==null&&(SS+=1,n(`mui-${SS}`))},[e]),r}const ES=ig["useId".toString()];function fD(t){if(ES!==void 0){const e=ES();return t??e}return dD(t)}function hD(t,e,n,r,i){return null}function CS({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=j.useRef(t!==void 0),[s,a]=j.useState(e),o=i?t:s,l=j.useCallback(u=>{i||a(u)},[]);return[o,l]}function uc(t){const e=j.useRef(t);return xS(()=>{e.current=t}),j.useRef((...n)=>(0,e.current)(...n)).current}function cc(...t){return j.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{wS(n,e)})},t)}let Bf=!0,Iy=!1,kS;const pD={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mD(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&pD[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function gD(t){t.metaKey||t.altKey||t.ctrlKey||(Bf=!0)}function Oy(){Bf=!1}function yD(){this.visibilityState==="hidden"&&Iy&&(Bf=!0)}function vD(t){t.addEventListener("keydown",gD,!0),t.addEventListener("mousedown",Oy,!0),t.addEventListener("pointerdown",Oy,!0),t.addEventListener("touchstart",Oy,!0),t.addEventListener("visibilitychange",yD,!0)}function _D(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return Bf||mD(e)}function My(){const t=j.useCallback(i=>{i!=null&&vD(i.ownerDocument)},[]),e=j.useRef(!1);function n(){return e.current?(Iy=!0,window.clearTimeout(kS),kS=window.setTimeout(()=>{Iy=!1},100),e.current=!1,!0):!1}function r(i){return _D(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function Ly(t,e){const n=Z({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Z({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},s=e[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=Z({},s),Object.keys(i).forEach(a=>{n[r][a]=Ly(i[a],s[a])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Yr(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((s,a)=>{if(a){const o=e(a);o!==""&&s.push(o),n&&n[a]&&s.push(n[a])}return s},[]).join(" ")}),r}const TS=t=>t,Dy=(()=>{let t=TS;return{configure(e){t=e},generate(e){return t(e)},reset(){t=TS}}})(),bD={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Tr(t,e,n="Mui"){const r=bD[e];return r?`${n}-${r}`:`${Dy.generate(t)}-${e}`}function Pr(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Tr(t,i,n)}),r}const hl="$$material";function PS(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var wD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xD=PS(function(t){return wD.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function SD(t){if(t.sheet)return t.sheet;for(var e=0;e0?Dn(ml,--hr):0,pl--,Gt===10&&(pl=1,zf--),Gt}function Ar(){return Gt=hr2||pc(Gt)>3?"":" "}function DD(t,e){for(;--e&&Ar()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return hc(t,qf()+(e<6&&Qi()==32&&Ar()==32))}function Fy(t){for(;Ar();)switch(Gt){case t:return hr;case 34:case 39:t!==34&&t!==39&&Fy(Gt);break;case 40:t===41&&Fy(t);break;case 92:Ar();break}return hr}function UD(t,e){for(;Ar()&&t+Gt!==57;)if(t+Gt===84&&Qi()===47)break;return"/*"+hc(e,hr-1)+"*"+Ff(t===47?t:Ar())}function VD(t){for(;!pc(Qi());)Ar();return hc(t,hr)}function BD(t){return MS(Gf("",null,null,null,[""],t=OS(t),0,[0],t))}function Gf(t,e,n,r,i,s,a,o,l){for(var u=0,c=0,d=a,h=0,m=0,y=0,v=1,S=1,_=1,b=0,w="",A=i,O=s,M=r,U=w;S;)switch(y=b,b=Ar()){case 40:if(y!=108&&Dn(U,d-1)==58){By(U+=qe(Zf(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:U+=Zf(b);break;case 9:case 10:case 13:case 32:U+=LD(y);break;case 92:U+=DD(qf()-1,7);continue;case 47:switch(Qi()){case 42:case 47:jf(HD(UD(Ar(),qf()),e,n),l);break;default:U+="/"}break;case 123*v:o[u++]=$i(U)*_;case 125*v:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+c:_==-1&&(U=qe(U,/\f/g,"")),m>0&&$i(U)-d&&jf(m>32?DS(U+";",r,n,d-1):DS(qe(U," ","")+";",r,n,d-2),l);break;case 59:U+=";";default:if(jf(M=LS(U,e,n,u,c,i,o,w,A=[],O=[],d),s),b===123)if(c===0)Gf(U,e,M,M,A,s,d,o,O);else switch(h===99&&Dn(U,3)===110?100:h){case 100:case 108:case 109:case 115:Gf(t,M,M,r&&jf(LS(t,M,M,0,0,i,o,w,i,A=[],d),O),i,O,d,o,r?A:O);break;default:Gf(U,M,M,M,[""],O,0,o,O)}}u=c=m=0,v=_=1,w=U="",d=a;break;case 58:d=1+$i(U),m=y;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&MD()==125)continue}switch(U+=Ff(b),b*v){case 38:_=c>0?1:(U+="\f",-1);break;case 44:o[u++]=($i(U)-1)*_,_=1;break;case 64:Qi()===45&&(U+=Zf(Ar())),h=Qi(),c=d=$i(w=U+=VD(qf())),b++;break;case 45:y===45&&$i(U)==2&&(v=0)}}return s}function LS(t,e,n,r,i,s,a,o,l,u,c){for(var d=i-1,h=i===0?s:[""],m=Hy(h),y=0,v=0,S=0;y0?h[_]+" "+b:qe(b,/&\f/g,h[_])))&&(l[S++]=w);return Wf(t,e,n,i===0?Uy:o,l,u,c)}function HD(t,e,n){return Wf(t,e,n,AS,Ff(OD()),dc(t,2,-2),0)}function DS(t,e,n,r){return Wf(t,e,n,Vy,dc(t,0,r),dc(t,r+1,-1),r)}function gl(t,e){for(var n="",r=Hy(t),i=0;i6)switch(Dn(t,e+1)){case 109:if(Dn(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Hf+(Dn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~By(t,"stretch")?VS(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Dn(t,e+1)!==115)break;case 6444:switch(Dn(t,$i(t)-3-(~By(t,"!important")&&10))){case 107:return qe(t,":",":"+We)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Dn(t,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Xn+"$2box$3")+t}break;case 5936:switch(Dn(t,e+11)){case 114:return We+t+Xn+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return We+t+Xn+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return We+t+Xn+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return We+t+Xn+t+t}return t}var KD=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Vy:e.return=VS(e.value,e.length);break;case NS:return gl([fc(e,{value:qe(e.value,"@","@"+We)})],i);case Uy:if(e.length)return ID(e.props,function(s){switch(RD(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gl([fc(e,{props:[qe(s,/:(read-\w+)/,":"+Hf+"$1")]})],i);case"::placeholder":return gl([fc(e,{props:[qe(s,/:(plac\w+)/,":"+We+"input-$1")]}),fc(e,{props:[qe(s,/:(plac\w+)/,":"+Hf+"$1")]}),fc(e,{props:[qe(s,/:(plac\w+)/,Xn+"input-$1")]})],i)}return""})}},JD=[KD],YD=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||JD,s={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),_=1;_=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var h7={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},p7=/[A-Z]|^ms/g,m7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,GS=function(e){return e.charCodeAt(1)===45},XS=function(e){return e!=null&&typeof e!="boolean"},Xy=PS(function(t){return GS(t)?t:t.replace(p7,"-$&").toLowerCase()}),KS=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(m7,function(r,i,s){return es={name:i,styles:s,next:es},i})}return h7[e]!==1&&!GS(e)&&typeof n=="number"&&n!==0?n+"px":n},pie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function mc(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return es={name:n.name,styles:n.styles,next:es},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)es={name:r.name,styles:r.styles,next:es},r=r.next;var i=n.styles+";";return i}return g7(t,e,n)}case"function":{if(t!==void 0){var s=es,a=n(t);return es=s,mc(t,e,a)}break}}if(e==null)return n;var o=e[n];return o!==void 0?o:n}function g7(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i96?E7:C7},nE=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(a){return e.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},k7=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return ih(n,r,i),Ky(function(){return sh(n,r,i)}),null},T7=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,s,a;n!==void 0&&(s=n.label,a=n.target);var o=nE(e,n,r),l=o||tE(i),u=!l("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,m=1;m{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},N7=["values","unit","step"],R7=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>Z({},n,{[r.key]:r.val}),{})};function I7(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,i=st(t,N7),s=R7(e),a=Object.keys(s);function o(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function u(h,m){const y=a.indexOf(m);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(y!==-1&&typeof e[a[y]]=="number"?e[a[y]]:m)-r/100}${n})`}function c(h){return a.indexOf(h)+1`@media (min-width:${$y[t]}px)`};function Ts(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const s=r.breakpoints||iE;return e.reduce((a,o,l)=>(a[s.up(s.keys[l])]=n(e[l]),a),{})}if(typeof e=="object"){const s=r.breakpoints||iE;return Object.keys(e).reduce((a,o)=>{if(Object.keys(s.values||$y).indexOf(o)!==-1){const l=s.up(o);a[l]=n(e[o],o)}else{const l=o;a[l]=e[l]}return a},{})}return n(e)}function M7(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,i)=>{const s=t.up(i);return r[s]={},r},{}))||{}}function L7(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function vl(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function uh(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=vl(t,n)||r,e&&(i=e(i,r,t)),i}function Ge(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,s=a=>{if(a[e]==null)return null;const o=a[e],l=a.theme,u=vl(l,r)||{};return Ts(a,o,d=>{let h=uh(u,i,d);return d===h&&typeof d=="string"&&(h=uh(u,i,`${e}${d==="default"?"":Re(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[e],s}function D7(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const U7={m:"margin",p:"padding"},V7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B7=D7(t=>{if(t.length>2)if(sE[t])t=sE[t];else return[t];const[e,n]=t.split(""),r=U7[e],i=V7[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),aE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _c(t,e,n,r){var i;const s=(i=vl(t,e,!1))!=null?i:n;return typeof s=="number"?a=>typeof a=="string"?a:s*a:Array.isArray(s)?a=>typeof a=="string"?a:s[a]:typeof s=="function"?s:()=>{}}function lE(t){return _c(t,"spacing",8)}function bc(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function H7(t,e){return n=>t.reduce((r,i)=>(r[i]=bc(e,n),r),{})}function F7(t,e,n,r){if(e.indexOf(n)===-1)return null;const i=B7(n),s=H7(i,r),a=t[n];return Ts(t,a,s)}function uE(t,e){const n=lE(t.theme);return Object.keys(t).map(r=>F7(t,e,r,n)).reduce(vc,{})}function Bt(t){return uE(t,aE)}Bt.propTypes={},Bt.filterProps=aE;function Ht(t){return uE(t,oE)}Ht.propTypes={},Ht.filterProps=oE;function j7(t=8){if(t.mui)return t;const e=lE({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const a=e(s);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function ch(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>e[s]?vc(i,e[s](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ts(t){return typeof t!="number"?t:`${t}px solid`}const z7=Ge({prop:"border",themeKey:"borders",transform:ts}),W7=Ge({prop:"borderTop",themeKey:"borders",transform:ts}),q7=Ge({prop:"borderRight",themeKey:"borders",transform:ts}),Z7=Ge({prop:"borderBottom",themeKey:"borders",transform:ts}),G7=Ge({prop:"borderLeft",themeKey:"borders",transform:ts}),X7=Ge({prop:"borderColor",themeKey:"palette"}),K7=Ge({prop:"borderTopColor",themeKey:"palette"}),J7=Ge({prop:"borderRightColor",themeKey:"palette"}),Y7=Ge({prop:"borderBottomColor",themeKey:"palette"}),$7=Ge({prop:"borderLeftColor",themeKey:"palette"}),dh=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=_c(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:bc(e,r)});return Ts(t,t.borderRadius,n)}return null};dh.propTypes={},dh.filterProps=["borderRadius"],ch(z7,W7,q7,Z7,G7,X7,K7,J7,Y7,$7,dh);const fh=t=>{if(t.gap!==void 0&&t.gap!==null){const e=_c(t.theme,"spacing",8),n=r=>({gap:bc(e,r)});return Ts(t,t.gap,n)}return null};fh.propTypes={},fh.filterProps=["gap"];const hh=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=_c(t.theme,"spacing",8),n=r=>({columnGap:bc(e,r)});return Ts(t,t.columnGap,n)}return null};hh.propTypes={},hh.filterProps=["columnGap"];const ph=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=_c(t.theme,"spacing",8),n=r=>({rowGap:bc(e,r)});return Ts(t,t.rowGap,n)}return null};ph.propTypes={},ph.filterProps=["rowGap"];const Q7=Ge({prop:"gridColumn"}),eU=Ge({prop:"gridRow"}),tU=Ge({prop:"gridAutoFlow"}),nU=Ge({prop:"gridAutoColumns"}),rU=Ge({prop:"gridAutoRows"}),iU=Ge({prop:"gridTemplateColumns"}),sU=Ge({prop:"gridTemplateRows"}),aU=Ge({prop:"gridTemplateAreas"}),oU=Ge({prop:"gridArea"});ch(fh,hh,ph,Q7,eU,tU,nU,rU,iU,sU,aU,oU);function _l(t,e){return e==="grey"?e:t}const lU=Ge({prop:"color",themeKey:"palette",transform:_l}),uU=Ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_l}),cU=Ge({prop:"backgroundColor",themeKey:"palette",transform:_l});ch(lU,uU,cU);function Rr(t){return t<=1&&t!==0?`${t*100}%`:t}const dU=Ge({prop:"width",transform:Rr}),Qy=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,i;const s=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||$y[n];return s?((i=t.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${t.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Rr(n)}};return Ts(t,t.maxWidth,e)}return null};Qy.filterProps=["maxWidth"];const fU=Ge({prop:"minWidth",transform:Rr}),hU=Ge({prop:"height",transform:Rr}),pU=Ge({prop:"maxHeight",transform:Rr}),mU=Ge({prop:"minHeight",transform:Rr});Ge({prop:"size",cssProperty:"width",transform:Rr}),Ge({prop:"size",cssProperty:"height",transform:Rr});const gU=Ge({prop:"boxSizing"});ch(dU,Qy,fU,hU,pU,mU,gU);const mh={border:{themeKey:"borders",transform:ts},borderTop:{themeKey:"borders",transform:ts},borderRight:{themeKey:"borders",transform:ts},borderBottom:{themeKey:"borders",transform:ts},borderLeft:{themeKey:"borders",transform:ts},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dh},color:{themeKey:"palette",transform:_l},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_l},backgroundColor:{themeKey:"palette",transform:_l},p:{style:Ht},pt:{style:Ht},pr:{style:Ht},pb:{style:Ht},pl:{style:Ht},px:{style:Ht},py:{style:Ht},padding:{style:Ht},paddingTop:{style:Ht},paddingRight:{style:Ht},paddingBottom:{style:Ht},paddingLeft:{style:Ht},paddingX:{style:Ht},paddingY:{style:Ht},paddingInline:{style:Ht},paddingInlineStart:{style:Ht},paddingInlineEnd:{style:Ht},paddingBlock:{style:Ht},paddingBlockStart:{style:Ht},paddingBlockEnd:{style:Ht},m:{style:Bt},mt:{style:Bt},mr:{style:Bt},mb:{style:Bt},ml:{style:Bt},mx:{style:Bt},my:{style:Bt},margin:{style:Bt},marginTop:{style:Bt},marginRight:{style:Bt},marginBottom:{style:Bt},marginLeft:{style:Bt},marginX:{style:Bt},marginY:{style:Bt},marginInline:{style:Bt},marginInlineStart:{style:Bt},marginInlineEnd:{style:Bt},marginBlock:{style:Bt},marginBlockStart:{style:Bt},marginBlockEnd:{style:Bt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fh},rowGap:{style:ph},columnGap:{style:hh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rr},maxWidth:{style:Qy},minWidth:{transform:Rr},height:{transform:Rr},maxHeight:{transform:Rr},minHeight:{transform:Rr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yU(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function vU(t,e){return typeof t=="function"?t(e):t}function _U(){function t(n,r,i,s){const a={[n]:r,theme:i},o=s[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=vl(i,u)||{};return d?d(a):Ts(a,r,y=>{let v=uh(h,c,y);return y===v&&typeof y=="string"&&(v=uh(h,c,`${n}${y==="default"?"":Re(y)}`,y)),l===!1?v:{[l]:v}})}function e(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const a=(r=s.unstable_sxConfig)!=null?r:mh;function o(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=M7(s.breakpoints),d=Object.keys(c);let h=c;return Object.keys(u).forEach(m=>{const y=vU(u[m],s);if(y!=null)if(typeof y=="object")if(a[m])h=vc(h,t(m,y,s,a));else{const v=Ts({theme:s},y,S=>({[m]:S}));yU(v,y)?h[m]=e({sx:y,theme:s}):h=vc(h,v)}else h=vc(h,t(m,y,s,a))}),L7(d,h)}return Array.isArray(i)?i.map(o):o(i)}return e}const cE=_U();cE.filterProps=["sx"];const gh=cE,bU=["breakpoints","palette","spacing","shape"];function e0(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=t,a=st(t,bU),o=I7(n),l=j7(i);let u=wi({breakpoints:o,direction:"ltr",components:{},palette:Z({mode:"light"},r),spacing:l,shape:Z({},O7,s)},a);return u=e.reduce((c,d)=>wi(c,d),u),u.unstable_sxConfig=Z({},mh,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return gh({sx:d,theme:this})},u}function wU(t){return Object.keys(t).length===0}function dE(t=null){const e=j.useContext(yl);return!e||wU(e)?t:e}const xU=e0();function t0(t=xU){return dE(t)}const SU=["sx"],EU=t=>{var e,n;const r={systemProps:{},otherProps:{}},i=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:mh;return Object.keys(t).forEach(s=>{i[s]?r.systemProps[s]=t[s]:r.otherProps[s]=t[s]}),r};function fE(t){const{sx:e}=t,n=st(t,SU),{systemProps:r,otherProps:i}=EU(n);let s;return Array.isArray(e)?s=[r,...e]:typeof e=="function"?s=(...a)=>{const o=e(...a);return ks(o)?Z({},r,o):r}:s=Z({},r,e),Z({},i,{sx:s})}function hE(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;eo!=="theme"&&o!=="sx"&&o!=="as"})(gh);return j.forwardRef(function(l,u){const c=t0(n),d=fE(l),{className:h,component:m="div"}=d,y=st(d,CU);return ee.jsx(s,Z({as:m,ref:u,className:Rt(h,i?i(r):r),theme:e&&c[e]||c},y))})}const TU=["variant"];function pE(t){return t.length===0}function mE(t){const{variant:e}=t,n=st(t,TU);let r=e||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=pE(r)?t[i]:Re(t[i]):r+=`${pE(r)?i:Re(i)}${Re(t[i].toString())}`}),r}const PU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AU(t){return Object.keys(t).length===0}function NU(t){return typeof t=="string"&&t.charCodeAt(0)>96}const RU=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,yh=t=>{const e={};return t&&t.forEach(n=>{const r=mE(n.props);e[r]=n.style}),e},IU=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),yh(n)},vh=(t,e,n)=>{const{ownerState:r={}}=t,i=[];return n&&n.forEach(s=>{let a=!0;Object.keys(s.props).forEach(o=>{r[o]!==s.props[o]&&t[o]!==s.props[o]&&(a=!1)}),a&&i.push(e[mE(s.props)])}),i},OU=(t,e,n,r)=>{var i;const s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return vh(t,e,s)};function _h(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const MU=e0(),LU=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function bh({defaultTheme:t,theme:e,themeId:n}){return AU(e)?t:e[n]||e}function DU(t){return t?(e,n)=>n[t]:null}const gE=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const i=t(Z({},e,{theme:bh(Z({},e,{defaultTheme:n,themeId:r}))}));let s;if(i&&i.variants&&(s=i.variants,delete i.variants),s){const a=vh(e,yh(s),s);return[i,...a]}return i};function UU(t={}){const{themeId:e,defaultTheme:n=MU,rootShouldForwardProp:r=_h,slotShouldForwardProp:i=_h}=t,s=a=>gh(Z({},a,{theme:bh(Z({},a,{defaultTheme:n,themeId:e}))}));return s.__mui_systemSx=!0,(a,o={})=>{A7(a,A=>A.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=DU(LU(u))}=o,m=st(o,PU),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let S,_=_h;u==="Root"||u==="root"?_=r:u?_=i:NU(a)&&(_=void 0);const b=rE(a,Z({shouldForwardProp:_,label:S},m)),w=(A,...O)=>{const M=O?O.map(L=>{if(typeof L=="function"&&L.__emotion_real!==L)return B=>gE({styledArg:L,props:B,defaultTheme:n,themeId:e});if(ks(L)){let B=L,W;return L&&L.variants&&(W=L.variants,delete B.variants,B=N=>{let f=L;return vh(N,yh(W),W).forEach(x=>{f=wi(f,x)}),f}),B}return L}):[];let U=A;if(ks(A)){let L;A&&A.variants&&(L=A.variants,delete U.variants,U=B=>{let W=A;return vh(B,yh(L),L).forEach(f=>{W=wi(W,f)}),W})}else typeof A=="function"&&A.__emotion_real!==A&&(U=L=>gE({styledArg:A,props:L,defaultTheme:n,themeId:e}));l&&h&&M.push(L=>{const B=bh(Z({},L,{defaultTheme:n,themeId:e})),W=RU(l,B);if(W){const N={};return Object.entries(W).forEach(([f,p])=>{N[f]=typeof p=="function"?p(Z({},L,{theme:B})):p}),h(L,N)}return null}),l&&!y&&M.push(L=>{const B=bh(Z({},L,{defaultTheme:n,themeId:e}));return OU(L,IU(l,B),B,l)}),v||M.push(s);const V=M.length-O.length;if(Array.isArray(A)&&V>0){const L=new Array(V).fill("");U=[...A,...L],U.raw=[...A.raw,...L]}const F=b(U,...M);return a.muiName&&(F.muiName=a.muiName),F};return b.withConfig&&(w.withConfig=b.withConfig),w}}function VU(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ly(e.components[n].defaultProps,r)}function BU({props:t,name:e,defaultTheme:n,themeId:r}){let i=t0(n);return r&&(i=i[r]||i),VU({theme:i,name:e,props:t})}function n0(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function HU(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function po(t){if(t.type)return t;if(t.charAt(0)==="#")return po(HU(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(fl(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(fl(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}function wh(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function FU(t){t=po(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,s=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(o+="a",l.push(e[3])),wh({type:o,values:l})}function yE(t){t=po(t);let e=t.type==="hsl"||t.type==="hsla"?po(FU(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function jU(t,e){const n=yE(t),r=yE(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ns(t,e){return t=po(t),e=n0(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,wh(t)}function r0(t,e){if(t=po(t),e=n0(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return wh(t)}function i0(t,e){if(t=po(t),e=n0(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return wh(t)}const vE=j.createContext(null);function _E(){return j.useContext(vE)}const zU=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function WU(t,e){return typeof e=="function"?e(t):Z({},t,e)}function qU(t){const{children:e,theme:n}=t,r=_E(),i=j.useMemo(()=>{const s=r===null?n:WU(r,n);return s!=null&&(s[zU]=r!==null),s},[n,r]);return ee.jsx(vE.Provider,{value:i,children:e})}const bE={};function wE(t,e,n,r=!1){return j.useMemo(()=>{const i=t&&e[t]||e;if(typeof n=="function"){const s=n(i),a=t?Z({},e,{[t]:s}):s;return r?()=>a:a}return t?Z({},e,{[t]:n}):Z({},e,n)},[t,e,n,r])}function ZU(t){const{children:e,theme:n,themeId:r}=t,i=dE(bE),s=_E()||bE,a=wE(r,i,n),o=wE(r,s,n,!0);return ee.jsx(qU,{theme:o,children:ee.jsx(yl.Provider,{value:a,children:e})})}function GU(t,e){return Z({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const XU=["mode","contrastThreshold","tonalOffset"],xE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:oc.white,default:oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},s0={text:{primary:oc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function SE(t,e,n,r){const i=r.light||r,s=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=i0(t.main,i):e==="dark"&&(t.dark=r0(t.main,s)))}function KU(t="light"){return t==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[700],light:ul[400],dark:ul[800]}}function JU(t="light"){return t==="dark"?{main:ll[200],light:ll[50],dark:ll[400]}:{main:ll[500],light:ll[300],dark:ll[700]}}function YU(t="light"){return t==="dark"?{main:ol[500],light:ol[300],dark:ol[700]}:{main:ol[700],light:ol[400],dark:ol[800]}}function $U(t="light"){return t==="dark"?{main:cl[400],light:cl[300],dark:cl[700]}:{main:cl[700],light:cl[500],dark:cl[900]}}function QU(t="light"){return t==="dark"?{main:dl[400],light:dl[300],dark:dl[700]}:{main:dl[800],light:dl[500],dark:dl[900]}}function eV(t="light"){return t==="dark"?{main:lc[400],light:lc[300],dark:lc[700]}:{main:"#ed6c02",light:lc[500],dark:lc[900]}}function tV(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,i=st(t,XU),s=t.primary||KU(e),a=t.secondary||JU(e),o=t.error||YU(e),l=t.info||$U(e),u=t.success||QU(e),c=t.warning||eV(e);function d(v){return jU(v,s0.text.primary)>=n?s0.text.primary:xE.text.primary}const h=({color:v,name:S,mainShade:_=500,lightShade:b=300,darkShade:w=700})=>{if(v=Z({},v),!v.main&&v[_]&&(v.main=v[_]),!v.hasOwnProperty("main"))throw new Error(fl(11,S?` (${S})`:"",_));if(typeof v.main!="string")throw new Error(fl(12,S?` (${S})`:"",JSON.stringify(v.main)));return SE(v,"light",b,r),SE(v,"dark",w,r),v.contrastText||(v.contrastText=d(v.main)),v},m={dark:s0,light:xE};return wi(Z({common:Z({},oc),mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:o,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:iD,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},m[e]),i)}const nV=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rV(t){return Math.round(t*1e5)/1e5}const EE={textTransform:"uppercase"},CE='"Roboto", "Helvetica", "Arial", sans-serif';function iV(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=CE,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,h=st(n,nV),m=i/14,y=d||(_=>`${_/u*m}rem`),v=(_,b,w,A,O)=>Z({fontFamily:r,fontWeight:_,fontSize:y(b),lineHeight:w},r===CE?{letterSpacing:`${rV(A/b)}em`}:{},O,c),S={h1:v(s,96,1.167,-1.5),h2:v(s,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(o,14,1.75,.4,EE),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,EE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wi(Z({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:l},S),h,{clone:!1})}const sV=.2,aV=.14,oV=.12;function St(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${sV})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${aV})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${oV})`].join(",")}const lV=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],uV=["duration","easing","delay"],cV={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},dV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kE(t){return`${Math.round(t)}ms`}function fV(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function hV(t){const e=Z({},cV,t.easing),n=Z({},dV,t.duration);return Z({getAutoHeightDuration:fV,create:(i=["all"],s={})=>{const{duration:a=n.standard,easing:o=e.easeInOut,delay:l=0}=s;return st(s,uV),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:kE(a)} ${o} ${typeof l=="string"?l:kE(l)}`).join(",")}},t,{easing:e,duration:n})}const pV={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xh(t={},...e){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=t,a=st(t,mV);if(t.vars)throw new Error(fl(18));const o=tV(r),l=e0(t);let u=wi(l,{mixins:GU(l.breakpoints,n),palette:o,shadows:lV.slice(),typography:iV(o,s),transitions:hV(i),zIndex:Z({},pV)});return u=wi(u,a),u=e.reduce((c,d)=>wi(c,d),u),u.unstable_sxConfig=Z({},mh,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return gh({sx:d,theme:this})},u}const a0=xh();function TE(){const t=t0(a0);return t[hl]||t}function $r({props:t,name:e}){return BU({props:t,name:e,defaultTheme:a0,themeId:hl})}const Sh=t=>_h(t)&&t!=="classes",Ft=UU({themeId:hl,defaultTheme:a0,rootShouldForwardProp:Sh}),gV=["theme"];function yV(t){let{theme:e}=t,n=st(t,gV);const r=e[hl];return ee.jsx(ZU,Z({},n,{themeId:r?hl:void 0,theme:r||e}))}const PE=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function vV(t){return Tr("MuiSvgIcon",t)}Pr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _V=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bV=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${Re(e)}`,`fontSize${Re(n)}`]};return Yr(i,vV,r)},wV=Ft("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Re(n.color)}`],e[`fontSize${Re(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,i,s,a,o,l,u,c,d,h,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=t.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((o=t.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=t.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[e.fontSize],color:(d=(h=(t.vars||t).palette)==null||(h=h[e.color])==null?void 0:h.main)!=null?d:{action:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(y=(t.vars||t).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[e.color]}}),AE=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:h="0 0 24 24"}=r,m=st(r,_V),y=j.isValidElement(i)&&i.type==="svg",v=Z({},r,{color:a,component:o,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:y}),S={};c||(S.viewBox=h);const _=bV(v);return ee.jsxs(wV,Z({as:o,className:Rt(_.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},S,m,y&&i.props,{ownerState:v,children:[y?i.props.children:i,d?ee.jsx("title",{children:d}):null]}))});AE.muiName="SvgIcon";const NE=AE;function Ps(t,e){function n(r,i){return ee.jsx(NE,Z({"data-testid":`${e}Icon`,ref:i},r,{children:t}))}return n.muiName=NE.muiName,j.memo(j.forwardRef(n))}const xV=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Re,createChainedFunction:sD,createSvgIcon:Ps,debounce:aD,deprecatedPropType:oD,isMuiElement:lD,ownerDocument:bS,ownerWindow:uD,requirePropFactory:cD,setRef:wS,unstable_ClassNameGenerator:{configure:t=>{Dy.configure(t)}},unstable_useEnhancedEffect:xS,unstable_useId:fD,unsupportedProp:hD,useControlled:CS,useEventCallback:uc,useForkRef:cc,useIsFocusVisible:My},Symbol.toStringTag,{value:"Module"}));function RE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Jd(t,e)}var IE={exports:{}},Ir={},OE={exports:{}},o0={};(function(t){function e(E,C){var I=E.length;E.push(C);e:for(;0>>1,g=E[k];if(0>>1;ki(X,I))Gi(de,X)?(E[k]=de,E[G]=I,k=G):(E[k]=X,E[q]=I,k=q);else if(Gi(de,I))E[k]=de,E[G]=I,k=G;else break e}}return C}function i(E,C){var I=E.sortIndex-C.sortIndex;return I!==0?I:E.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var l=[],u=[],c=1,d=null,h=3,m=!1,y=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(E){for(var C=n(u);C!==null;){if(C.callback===null)r(u);else if(C.startTime<=E)r(u),C.sortIndex=C.expirationTime,e(l,C);else break;C=n(u)}}function A(E){if(v=!1,w(E),!y)if(n(l)!==null)y=!0,x(O);else{var C=n(u);C!==null&&T(A,C.startTime-E)}}function O(E,C){y=!1,v&&(v=!1,_(V),V=-1),m=!0;var I=h;try{for(w(C),d=n(l);d!==null&&(!(d.expirationTime>C)||E&&!B());){var k=d.callback;if(typeof k=="function"){d.callback=null,h=d.priorityLevel;var g=k(d.expirationTime<=C);C=t.unstable_now(),typeof g=="function"?d.callback=g:d===n(l)&&r(l),w(C)}else r(l);d=n(l)}if(d!==null)var R=!0;else{var q=n(u);q!==null&&T(A,q.startTime-C),R=!1}return R}finally{d=null,h=I,m=!1}}var M=!1,U=null,V=-1,F=5,L=-1;function B(){return!(t.unstable_now()-LE||125k?(E.sortIndex=I,e(u,E),n(l)===null&&E===n(u)&&(v?(_(V),V=-1):v=!0,T(A,I-k))):(E.sortIndex=g,e(l,E),y||m||(y=!0,x(O))),E},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(E){var C=h;return function(){var I=h;h=C;try{return E.apply(this,arguments)}finally{h=I}}}})(o0),OE.exports=o0;var ME=OE.exports;var LE=j,Or=ME;function J(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l0=Object.prototype.hasOwnProperty,SV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,UE={},VE={};function EV(t){return l0.call(VE,t)?!0:l0.call(UE,t)?!1:SV.test(t)?VE[t]=!0:(UE[t]=!0,!1)}function CV(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function kV(t,e,n,r){if(e===null||typeof e>"u"||CV(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ar(t,e,n,r,i,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var Un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Un[t]=new ar(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Un[e]=new ar(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Un[t]=new ar(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Un[t]=new ar(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Un[t]=new ar(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Un[t]=new ar(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Un[t]=new ar(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Un[t]=new ar(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Un[t]=new ar(t,5,!1,t.toLowerCase(),null,!1,!1)});var u0=/[\-:]([a-z])/g;function c0(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(u0,c0);Un[e]=new ar(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(u0,c0);Un[e]=new ar(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(u0,c0);Un[e]=new ar(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Un[t]=new ar(t,1,!1,t.toLowerCase(),null,!1,!1)}),Un.xlinkHref=new ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Un[t]=new ar(t,1,!1,t.toLowerCase(),null,!0,!0)});function d0(t,e,n,r){var i=Un.hasOwnProperty(e)?Un[e]:null;(i!==null?i.type!==0:r||!(2o||i[a]!==s[o]){var l=` +`+i[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=o);break}}}finally{_0=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Sc(t):""}function TV(t){switch(t.tag){case 5:return Sc(t.type);case 16:return Sc("Lazy");case 13:return Sc("Suspense");case 19:return Sc("SuspenseList");case 0:case 2:case 15:return t=b0(t.type,!1),t;case 11:return t=b0(t.type.render,!1),t;case 1:return t=b0(t.type,!0),t;default:return""}}function w0(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case xl:return"Fragment";case wl:return"Portal";case h0:return"Profiler";case f0:return"StrictMode";case m0:return"Suspense";case g0:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case HE:return(t.displayName||"Context")+".Consumer";case BE:return(t._context.displayName||"Context")+".Provider";case p0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case y0:return e=t.displayName||null,e!==null?e:w0(t.type)||"Memo";case ya:e=t._payload,t=t._init;try{return w0(t(e))}catch{}}return null}function PV(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w0(e);case 8:return e===f0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function va(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function AV(t){var e=zE(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ch(t){t._valueTracker||(t._valueTracker=AV(t))}function WE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=zE(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function kh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function x0(t,e){var n=e.checked;return It({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function qE(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=va(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ZE(t,e){e=e.checked,e!=null&&d0(t,"checked",e,!1)}function S0(t,e){ZE(t,e);var n=va(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?E0(t,e.type,n):e.hasOwnProperty("defaultValue")&&E0(t,e.type,va(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function GE(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function E0(t,e,n){(e!=="number"||kh(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ec=Array.isArray;function Sl(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Th.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Cc(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var kc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},NV=["Webkit","ms","Moz","O"];Object.keys(kc).forEach(function(t){NV.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),kc[e]=kc[t]})});function QE(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||kc.hasOwnProperty(t)&&kc[t]?(""+e).trim():e+"px"}function eC(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=QE(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var RV=It({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function T0(t,e){if(e){if(RV[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(J(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(J(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(J(61))}if(e.style!=null&&typeof e.style!="object")throw Error(J(62))}}function P0(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A0=null;function N0(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var R0=null,El=null,Cl=null;function tC(t){if(t=Xc(t)){if(typeof R0!="function")throw Error(J(280));var e=t.stateNode;e&&(e=Jh(e),R0(t.stateNode,t.type,e))}}function nC(t){El?Cl?Cl.push(t):Cl=[t]:El=t}function rC(){if(El){var t=El,e=Cl;if(Cl=El=null,tC(t),e)for(t=0;t>>=0,t===0?32:31-(jV(t)/zV|0)|0}var Ih=64,Oh=4194304;function Nc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Mh(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,a=n&268435455;if(a!==0){var o=a&~i;o!==0?r=Nc(o):(s&=a,s!==0&&(r=Nc(s)))}else a=n&~i,a!==0?r=Nc(a):s!==0&&(r=Nc(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Rc(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-xi(e),t[e]=n}function GV(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Bc),RC=String.fromCharCode(32),IC=!1;function OC(t,e){switch(t){case"keyup":return wB.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MC(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pl=!1;function SB(t,e){switch(t){case"compositionend":return MC(e);case"keypress":return e.which!==32?null:(IC=!0,RC);case"textInput":return t=e.data,t===RC&&IC?null:t;default:return null}}function EB(t,e){if(Pl)return t==="compositionend"||!K0&&OC(t,e)?(t=CC(),Bh=z0=Sa=null,Pl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=FC(n)}}function zC(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zC(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function WC(){for(var t=window,e=kh();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=kh(t.document)}return e}function $0(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function OB(t){var e=WC(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&zC(n.ownerDocument.documentElement,n)){if(r!==null&&$0(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=jC(n,s);var a=jC(n,r);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Al=null,Q0=null,zc=null,ev=!1;function qC(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ev||Al==null||Al!==kh(r)||(r=Al,"selectionStart"in r&&$0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zc&&jc(zc,r)||(zc=r,r=Gh(Q0,"onSelect"),0Ml||(t.current=fv[Ml],fv[Ml]=null,Ml--)}function ct(t,e){Ml++,fv[Ml]=t.current,t.current=e}var Ta={},Kn=ka(Ta),pr=ka(!1),vo=Ta;function Ll(t,e){var n=t.type.contextTypes;if(!n)return Ta;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function mr(t){return t=t.childContextTypes,t!=null}function Yh(){gt(pr),gt(Kn)}function ak(t,e,n){if(Kn.current!==Ta)throw Error(J(168));ct(Kn,e),ct(pr,n)}function ok(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(J(108,PV(t)||"Unknown",i));return It({},n,r)}function $h(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ta,vo=Kn.current,ct(Kn,t),ct(pr,pr.current),!0}function lk(t,e,n){var r=t.stateNode;if(!r)throw Error(J(169));n?(t=ok(t,e,vo),r.__reactInternalMemoizedMergedChildContext=t,gt(pr),gt(Kn),ct(Kn,t)):gt(pr),ct(pr,n)}var Is=null,Qh=!1,hv=!1;function uk(t){Is===null?Is=[t]:Is.push(t)}function qB(t){Qh=!0,uk(t)}function Pa(){if(!hv&&Is!==null){hv=!0;var t=0,e=et;try{var n=Is;for(et=1;t>=a,i-=a,Os=1<<32-xi(e)+i|n<V?(F=U,U=null):F=U.sibling;var L=h(_,U,w[V],A);if(L===null){U===null&&(U=F);break}t&&U&&L.alternate===null&&e(_,U),b=s(L,b,V),M===null?O=L:M.sibling=L,M=L,U=F}if(V===w.length)return n(_,U),Et&&bo(_,V),O;if(U===null){for(;VV?(F=U,U=null):F=U.sibling;var B=h(_,U,L.value,A);if(B===null){U===null&&(U=F);break}t&&U&&B.alternate===null&&e(_,U),b=s(B,b,V),M===null?O=B:M.sibling=B,M=B,U=F}if(L.done)return n(_,U),Et&&bo(_,V),O;if(U===null){for(;!L.done;V++,L=w.next())L=d(_,L.value,A),L!==null&&(b=s(L,b,V),M===null?O=L:M.sibling=L,M=L);return Et&&bo(_,V),O}for(U=r(_,U);!L.done;V++,L=w.next())L=m(U,_,V,L.value,A),L!==null&&(t&&L.alternate!==null&&U.delete(L.key===null?V:L.key),b=s(L,b,V),M===null?O=L:M.sibling=L,M=L);return t&&U.forEach(function(W){return e(_,W)}),Et&&bo(_,V),O}function S(_,b,w,A){if(typeof w=="object"&&w!==null&&w.type===xl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Eh:e:{for(var O=w.key,M=b;M!==null;){if(M.key===O){if(O=w.type,O===xl){if(M.tag===7){n(_,M.sibling),b=i(M,w.props.children),b.return=_,_=b;break e}}else if(M.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ya&&Sk(O)===M.type){n(_,M.sibling),b=i(M,w.props),b.ref=Kc(_,M,w),b.return=_,_=b;break e}n(_,M);break}else e(_,M);M=M.sibling}w.type===xl?(b=Po(w.props.children,_.mode,A,w.key),b.return=_,_=b):(A=Tp(w.type,w.key,w.props,null,_.mode,A),A.ref=Kc(_,b,w),A.return=_,_=A)}return a(_);case wl:e:{for(M=w.key;b!==null;){if(b.key===M)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(_,b.sibling),b=i(b,w.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else e(_,b);b=b.sibling}b=c1(w,_.mode,A),b.return=_,_=b}return a(_);case ya:return M=w._init,S(_,b,M(w._payload),A)}if(Ec(w))return y(_,b,w,A);if(xc(w))return v(_,b,w,A);lp(_,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,w),b.return=_,_=b):(n(_,b),b=u1(w,_.mode,A),b.return=_,_=b),a(_)):n(_,b)}return S}var Fl=Ek(!0),Ck=Ek(!1),Jc={},ss=ka(Jc),Yc=ka(Jc),$c=ka(Jc);function xo(t){if(t===Jc)throw Error(J(174));return t}function Tv(t,e){switch(ct($c,e),ct(Yc,t),ct(ss,Jc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:k0(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=k0(e,t)}gt(ss),ct(ss,e)}function jl(){gt(ss),gt(Yc),gt($c)}function kk(t){xo($c.current);var e=xo(ss.current),n=k0(e,t.type);e!==n&&(ct(Yc,t),ct(ss,n))}function Pv(t){Yc.current===t&&(gt(ss),gt(Yc))}var Ot=ka(0);function up(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Av=[];function Nv(){for(var t=0;tn?n:4,t(!0);var r=Rv.transition;Rv.transition={};try{t(!1),e()}finally{et=n,Rv.transition=r}}function Wk(){return ni().memoizedState}function KB(t,e,n){var r=Ma(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qk(t))Zk(e,n);else if(n=mk(t,e,n,r),n!==null){var i=lr();Pi(n,t,r,i),Gk(n,e,r)}}function JB(t,e,n){var r=Ma(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qk(t))Zk(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,Si(o,a)){var l=e.interleaved;l===null?(i.next=i,Sv(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=mk(t,e,i,r),n!==null&&(i=lr(),Pi(n,t,r,i),Gk(n,e,r))}}function qk(t){var e=t.alternate;return t===Mt||e!==null&&e===Mt}function Zk(t,e){Qc=dp=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Gk(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,V0(t,n)}}var pp={readContext:ti,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useInsertionEffect:Jn,useLayoutEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useMutableSource:Jn,useSyncExternalStore:Jn,useId:Jn,unstable_isNewReconciler:!1},YB={readContext:ti,useCallback:function(t,e){return as().memoizedState=[t,e===void 0?null:e],t},useContext:ti,useEffect:Dk,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,fp(4194308,4,Bk.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fp(4194308,4,t,e)},useInsertionEffect:function(t,e){return fp(4,2,t,e)},useMemo:function(t,e){var n=as();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=as();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=KB.bind(null,Mt,t),[r.memoizedState,t]},useRef:function(t){var e=as();return t={current:t},e.memoizedState=t},useState:Mk,useDebugValue:Vv,useDeferredValue:function(t){return as().memoizedState=t},useTransition:function(){var t=Mk(!1),e=t[0];return t=XB.bind(null,t[1]),as().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Mt,i=as();if(Et){if(n===void 0)throw Error(J(407));n=n()}else{if(n=e(),In===null)throw Error(J(349));So&30||Ak(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,Dk(Rk.bind(null,r,s,t),[t]),r.flags|=2048,nd(9,Nk.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=as(),e=In.identifierPrefix;if(Et){var n=Ms,r=Os;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=ed++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[is]=e,t[Gc]=r,c3(t,e,!1,!1),e.stateNode=t;e:{switch(a=P0(n,r),n){case"dialog":mt("cancel",t),mt("close",t),i=r;break;case"iframe":case"object":case"embed":mt("load",t),i=r;break;case"video":case"audio":for(i=0;iZl&&(e.flags|=128,r=!0,rd(s,!1),e.lanes=4194304)}else{if(!r)if(t=up(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),rd(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Et)return Yn(e),null}else 2*Wt()-s.renderingStartTime>Zl&&n!==1073741824&&(e.flags|=128,r=!0,rd(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(n=s.last,n!==null?n.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Wt(),e.sibling=null,n=Ot.current,ct(Ot,r?n&1|2:n&1),e):(Yn(e),null);case 22:case 23:return a1(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ur&1073741824&&(Yn(e),e.subtreeFlags&6&&(e.flags|=8192)):Yn(e),null;case 24:return null;case 25:return null}throw Error(J(156,e.tag))}function sH(t,e){switch(mv(e),e.tag){case 1:return mr(e.type)&&Yh(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return jl(),gt(pr),gt(Kn),Nv(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Pv(e),null;case 13:if(gt(Ot),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(J(340));Vl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return gt(Ot),null;case 4:return jl(),null;case 10:return wv(e.type._context),null;case 22:case 23:return a1(),null;case 24:return null;default:return null}}var yp=!1,$n=!1,aH=typeof WeakSet=="function"?WeakSet:Set,le=null;function Wl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jt(t,e,r)}else n.current=null}function Xv(t,e,n){try{n()}catch(r){jt(t,e,r)}}var h3=!1;function oH(t,e){if(av=Uh,t=WC(),$0(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;var a=0,o=-1,l=-1,u=0,c=0,d=t,h=null;e:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(o=a+i),d!==s||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===t)break e;if(h===n&&++u===i&&(o=a),h===s&&++c===r&&(l=a),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ov={focusedElem:t,selectionRange:n},Uh=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){e=le;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,S=y.memoizedState,_=e.stateNode,b=_.getSnapshotBeforeUpdate(e.elementType===e.type?v:Ci(e.type,v),S);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(A){jt(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}return y=h3,h3=!1,y}function id(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Xv(e,n,s)}i=i.next}while(i!==r)}}function vp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Kv(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function p3(t){var e=t.alternate;e!==null&&(t.alternate=null,p3(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[is],delete e[Gc],delete e[dv],delete e[zB],delete e[WB])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function m3(t){return t.tag===5||t.tag===3||t.tag===4}function g3(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||m3(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jv(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Kh));else if(r!==4&&(t=t.child,t!==null))for(Jv(t,e,n),t=t.sibling;t!==null;)Jv(t,e,n),t=t.sibling}function Yv(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Yv(t,e,n),t=t.sibling;t!==null;)Yv(t,e,n),t=t.sibling}var Vn=null,ki=!1;function Ra(t,e,n){for(n=n.child;n!==null;)y3(t,e,n),n=n.sibling}function y3(t,e,n){if(rs&&typeof rs.onCommitFiberUnmount=="function")try{rs.onCommitFiberUnmount(Rh,n)}catch{}switch(n.tag){case 5:$n||Wl(n,e);case 6:var r=Vn,i=ki;Vn=null,Ra(t,e,n),Vn=r,ki=i,Vn!==null&&(ki?(t=Vn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Vn.removeChild(n.stateNode));break;case 18:Vn!==null&&(ki?(t=Vn,n=n.stateNode,t.nodeType===8?cv(t.parentNode,n):t.nodeType===1&&cv(t,n),Dc(t)):cv(Vn,n.stateNode));break;case 4:r=Vn,i=ki,Vn=n.stateNode.containerInfo,ki=!0,Ra(t,e,n),Vn=r,ki=i;break;case 0:case 11:case 14:case 15:if(!$n&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Xv(n,e,a),i=i.next}while(i!==r)}Ra(t,e,n);break;case 1:if(!$n&&(Wl(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){jt(n,e,o)}Ra(t,e,n);break;case 21:Ra(t,e,n);break;case 22:n.mode&1?($n=(r=$n)||n.memoizedState!==null,Ra(t,e,n),$n=r):Ra(t,e,n);break;default:Ra(t,e,n)}}function v3(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new aH),e.forEach(function(r){var i=gH.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ti(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~s}if(r=i,r=Wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uH(r/1960))-r,10t?16:t,Oa===null)var r=!1;else{if(t=Oa,Oa=null,Sp=0,He&6)throw Error(J(331));var i=He;for(He|=4,le=t.current;le!==null;){var s=le,a=s.child;if(le.flags&16){var o=s.deletions;if(o!==null){for(var l=0;lWt()-e1?ko(t,0):Qv|=n),vr(t,e)}function R3(t,e){e===0&&(t.mode&1?(e=Oh,Oh<<=1,!(Oh&130023424)&&(Oh=4194304)):e=1);var n=lr();t=Ls(t,e),t!==null&&(Rc(t,e,n),vr(t,n))}function mH(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),R3(t,n)}function gH(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(e),R3(t,n)}var I3;I3=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||pr.current)gr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return gr=!1,rH(t,e,n);gr=!!(t.flags&131072)}else gr=!1,Et&&e.flags&1048576&&ck(e,tp,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;gp(t,e),t=e.pendingProps;var i=Ll(e,Kn.current);Hl(e,n),i=Ov(null,e,r,t,i,n);var s=Mv();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,mr(r)?(s=!0,$h(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ev(e),i.updater=op,e.stateNode=i,i._reactInternals=e,kv(e,r,t,n),e=jv(null,e,r,!0,s,n)):(e.tag=0,Et&&s&&pv(e),or(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(gp(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=vH(r),t=Ci(r,t),i){case 0:e=Fv(null,e,r,t,n);break e;case 1:e=i3(null,e,r,t,n);break e;case 11:e=Qk(null,e,r,t,n);break e;case 14:e=e3(null,e,r,Ci(r.type,t),n);break e}throw Error(J(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),Fv(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),i3(t,e,r,i,n);case 3:e:{if(s3(e),t===null)throw Error(J(387));r=e.pendingProps,s=e.memoizedState,i=s.element,gk(t,e),ap(e,r,null,n);var a=e.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=zl(Error(J(423)),e),e=a3(t,e,r,n,i);break e}else if(r!==i){i=zl(Error(J(424)),e),e=a3(t,e,r,n,i);break e}else for(Dr=Ca(e.stateNode.containerInfo.firstChild),Lr=e,Et=!0,Ei=null,n=Ck(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vl(),r===i){e=Us(t,e,n);break e}or(t,e,r,n)}e=e.child}return e;case 5:return kk(e),t===null&&yv(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,lv(r,i)?a=null:s!==null&&lv(r,s)&&(e.flags|=32),r3(t,e),or(t,e,a,n),e.child;case 6:return t===null&&yv(e),null;case 13:return o3(t,e,n);case 4:return Tv(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Fl(e,null,r,n):or(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),Qk(t,e,r,i,n);case 7:return or(t,e,e.pendingProps,n),e.child;case 8:return or(t,e,e.pendingProps.children,n),e.child;case 12:return or(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,a=i.value,ct(rp,r._currentValue),r._currentValue=a,s!==null)if(Si(s.value,a)){if(s.children===i.children&&!pr.current){e=Us(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ds(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xv(s.return,n,e),o.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(J(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),xv(a,n,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}or(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Hl(e,n),i=ti(i),r=r(i),e.flags|=1,or(t,e,r,n),e.child;case 14:return r=e.type,i=Ci(r,e.pendingProps),i=Ci(r.type,i),e3(t,e,r,i,n);case 15:return t3(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),gp(t,e),e.tag=1,mr(r)?(t=!0,$h(e)):t=!1,Hl(e,n),wk(e,r,i),kv(e,r,i,n),jv(null,e,r,!0,t,n);case 19:return u3(t,e,n);case 22:return n3(t,e,n)}throw Error(J(156,e.tag))};function O3(t,e){return dC(t,e)}function yH(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(t,e,n,r){return new yH(t,e,n,r)}function l1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vH(t){if(typeof t=="function")return l1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===p0)return 11;if(t===y0)return 14}return 2}function Da(t,e){var n=t.alternate;return n===null?(n=ii(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Tp(t,e,n,r,i,s){var a=2;if(r=t,typeof t=="function")l1(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case xl:return Po(n.children,i,s,e);case f0:a=8,i|=8;break;case h0:return t=ii(12,n,e,i|2),t.elementType=h0,t.lanes=s,t;case m0:return t=ii(13,n,e,i),t.elementType=m0,t.lanes=s,t;case g0:return t=ii(19,n,e,i),t.elementType=g0,t.lanes=s,t;case FE:return Pp(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case BE:a=10;break e;case HE:a=9;break e;case p0:a=11;break e;case y0:a=14;break e;case ya:a=16,r=null;break e}throw Error(J(130,t==null?t:typeof t,""))}return e=ii(a,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Po(t,e,n,r){return t=ii(7,t,r,e),t.lanes=n,t}function Pp(t,e,n,r){return t=ii(22,t,r,e),t.elementType=FE,t.lanes=n,t.stateNode={isHidden:!1},t}function u1(t,e,n){return t=ii(6,t,null,e),t.lanes=n,t}function c1(t,e,n){return e=ii(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function _H(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=U0(0),this.expirationTimes=U0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function d1(t,e,n,r,i,s,a,o,l){return t=new _H(t,e,n,o,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=ii(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ev(s),t}function bH(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B3)}catch{}}B3(),IE.exports=Ir;var H3=IE.exports;const Lp=Sr(H3),F3={disabled:!1},Dp=Ui.createContext(null);var ud="unmounted",Ao="exited",No="entering",Xl="entered",m1="exiting",Bs=function(t){RE(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var a=i,o=a&&!a.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?o?(l=Ao,s.appearStatus=No):l=Xl:r.unmountOnExit||r.mountOnEnter?l=ud:l=Ao,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===ud?{status:Ao}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==No&&a!==Xl&&(s=No):(a===No||a===Xl)&&(s=m1)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,o;return s=a=o=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,o=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:o}},n.updateStatus=function(i,s){i===void 0&&(i=!1),s!==null?(this.cancelNextCallback(),s===No?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Lp.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===Ao&&this.setState({status:ud})},n.performEnter=function(i){var s=this,a=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[Lp.findDOMNode(this),o],u=l[0],c=l[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!i&&!a||F3.disabled){this.safeSetState({status:Xl},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:No},function(){s.props.onEntering(u,c),s.onTransitionEnd(h,function(){s.safeSetState({status:Xl},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:Lp.findDOMNode(this);if(!s||F3.disabled){this.safeSetState({status:Ao},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:m1},function(){i.props.onExiting(o),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ao},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,s.nextCallback=null,i(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Lp.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ud)return null;var s=this.props,a=s.children,o=st(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ui.createElement(Dp.Provider,{value:null},typeof a=="function"?a(i,o):Ui.cloneElement(Ui.Children.only(a),o))},e}(Ui.Component);Bs.contextType=Dp,Bs.propTypes={};function Kl(){}Bs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kl,onEntering:Kl,onEntered:Kl,onExit:Kl,onExiting:Kl,onExited:Kl},Bs.UNMOUNTED=ud,Bs.EXITED=Ao,Bs.ENTERING=No,Bs.ENTERED=Xl,Bs.EXITING=m1;const CH=Bs;function g1(t,e){var n=function(s){return e&&j.isValidElement(s)?e(s):s},r=Object.create(null);return t&&j.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function kH(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),i=[];for(var s in t)s in e?i.length&&(r[s]=i,i=[]):i.push(s);var a,o={};for(var l in e){if(r[l])for(a=0;a{const{square:e,elevation:n,variant:r,classes:i}=t,s={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Yr(s,IH,i)},LH=Ft("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return Z({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&Z({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ns("#fff",PE(e.elevation))}, ${ns("#fff",PE(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),DH=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiPaper"}),{className:i,component:s="div",elevation:a=1,square:o=!1,variant:l="elevation"}=r,u=st(r,OH),c=Z({},r,{component:s,elevation:a,square:o,variant:l}),d=MH(c);return ee.jsx(LH,Z({as:s,ownerState:c,className:Rt(d.root,i),ref:n},u))});function UH(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:o,onExited:l,timeout:u}=t,[c,d]=j.useState(!1),h=Rt(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},y=Rt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!o&&!c&&d(!0),j.useEffect(()=>{if(!o&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,o,u]),ee.jsx("span",{className:h,style:m,children:ee.jsx("span",{className:y})})}const si=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),VH=["center","classes","className"];let Up=t=>t,z3,W3,q3,Z3;const v1=550,BH=80,HH=yc(z3||(z3=Up` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FH=yc(W3||(W3=Up` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),jH=yc(q3||(q3=Up` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),zH=Ft("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WH=Ft(UH,{name:"MuiTouchRipple",slot:"Ripple"})(Z3||(Z3=Up` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),si.rippleVisible,HH,v1,({theme:t})=>t.transitions.easing.easeInOut,si.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,si.child,si.childLeaving,FH,v1,({theme:t})=>t.transitions.easing.easeInOut,si.childPulsate,jH,({theme:t})=>t.transitions.easing.easeInOut),qH=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a}=r,o=st(r,VH),[l,u]=j.useState([]),c=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=j.useRef(!1),m=j.useRef(0),y=j.useRef(null),v=j.useRef(null);j.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const S=j.useCallback(A=>{const{pulsate:O,rippleX:M,rippleY:U,rippleSize:V,cb:F}=A;u(L=>[...L,ee.jsx(WH,{classes:{ripple:Rt(s.ripple,si.ripple),rippleVisible:Rt(s.rippleVisible,si.rippleVisible),ripplePulsate:Rt(s.ripplePulsate,si.ripplePulsate),child:Rt(s.child,si.child),childLeaving:Rt(s.childLeaving,si.childLeaving),childPulsate:Rt(s.childPulsate,si.childPulsate)},timeout:v1,pulsate:O,rippleX:M,rippleY:U,rippleSize:V},c.current)]),c.current+=1,d.current=F},[s]),_=j.useCallback((A={},O={},M=()=>{})=>{const{pulsate:U=!1,center:V=i||O.pulsate,fakeElement:F=!1}=O;if((A==null?void 0:A.type)==="mousedown"&&h.current){h.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(h.current=!0);const L=F?null:v.current,B=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,N,f;if(V||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)W=Math.round(B.width/2),N=Math.round(B.height/2);else{const{clientX:p,clientY:x}=A.touches&&A.touches.length>0?A.touches[0]:A;W=Math.round(p-B.left),N=Math.round(x-B.top)}if(V)f=Math.sqrt((2*B.width**2+B.height**2)/3),f%2===0&&(f+=1);else{const p=Math.max(Math.abs((L?L.clientWidth:0)-W),W)*2+2,x=Math.max(Math.abs((L?L.clientHeight:0)-N),N)*2+2;f=Math.sqrt(p**2+x**2)}A!=null&&A.touches?y.current===null&&(y.current=()=>{S({pulsate:U,rippleX:W,rippleY:N,rippleSize:f,cb:M})},m.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},BH)):S({pulsate:U,rippleX:W,rippleY:N,rippleSize:f,cb:M})},[i,S]),b=j.useCallback(()=>{_({},{pulsate:!0})},[_]),w=j.useCallback((A,O)=>{if(clearTimeout(m.current),(A==null?void 0:A.type)==="touchend"&&y.current){y.current(),y.current=null,m.current=setTimeout(()=>{w(A,O)});return}y.current=null,u(M=>M.length>0?M.slice(1):M),d.current=O},[]);return j.useImperativeHandle(n,()=>({pulsate:b,start:_,stop:w}),[b,_,w]),ee.jsx(zH,Z({className:Rt(si.root,s.root,a),ref:v},o,{children:ee.jsx(RH,{component:null,exit:!0,children:l})}))});function ZH(t){return Tr("MuiButtonBase",t)}const GH=Pr("MuiButtonBase",["root","disabled","focusVisible"]),XH=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KH=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,a=Yr({root:["root",e&&"disabled",n&&"focusVisible"]},ZH,i);return n&&r&&(a.root+=` ${r}`),a},JH=Ft("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_1=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:o,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:m="a",onBlur:y,onClick:v,onContextMenu:S,onDragLeave:_,onFocus:b,onFocusVisible:w,onKeyDown:A,onKeyUp:O,onMouseDown:M,onMouseLeave:U,onMouseUp:V,onTouchEnd:F,onTouchMove:L,onTouchStart:B,tabIndex:W=0,TouchRippleProps:N,touchRippleRef:f,type:p}=r,x=st(r,XH),T=j.useRef(null),E=j.useRef(null),C=cc(E,f),{isFocusVisibleRef:I,onFocus:k,onBlur:g,ref:R}=My(),[q,X]=j.useState(!1);u&&q&&X(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),T.current.focus()}}),[]);const[G,de]=j.useState(!1);j.useEffect(()=>{de(!0)},[]);const we=G&&!c&&!u;j.useEffect(()=>{q&&h&&!c&&G&&E.current.pulsate()},[c,h,q,G]);function me(fe,wt,Su=d){return uc(xt=>(wt&&wt(xt),!Su&&E.current&&E.current[fe](xt),!0))}const dt=me("start",M),Ee=me("stop",S),Ne=me("stop",_),tt=me("stop",V),Ue=me("stop",fe=>{q&&fe.preventDefault(),U&&U(fe)}),Ke=me("start",B),ys=me("stop",F),vt=me("stop",L),Pt=me("stop",fe=>{g(fe),I.current===!1&&X(!1),y&&y(fe)},!1),xu=uc(fe=>{T.current||(T.current=fe.currentTarget),k(fe),I.current===!0&&(X(!0),w&&w(fe)),b&&b(fe)}),ft=()=>{const fe=T.current;return l&&l!=="button"&&!(fe.tagName==="A"&&fe.href)},ht=j.useRef(!1),Fo=uc(fe=>{h&&!ht.current&&q&&E.current&&fe.key===" "&&(ht.current=!0,E.current.stop(fe,()=>{E.current.start(fe)})),fe.target===fe.currentTarget&&ft()&&fe.key===" "&&fe.preventDefault(),A&&A(fe),fe.target===fe.currentTarget&&ft()&&fe.key==="Enter"&&!u&&(fe.preventDefault(),v&&v(fe))}),_t=uc(fe=>{h&&fe.key===" "&&E.current&&q&&!fe.defaultPrevented&&(ht.current=!1,E.current.stop(fe,()=>{E.current.pulsate(fe)})),O&&O(fe),v&&fe.target===fe.currentTarget&&ft()&&fe.key===" "&&!fe.defaultPrevented&&v(fe)});let nt=l;nt==="button"&&(x.href||x.to)&&(nt=m);const Li={};nt==="button"?(Li.type=p===void 0?"button":p,Li.disabled=u):(!x.href&&!x.to&&(Li.role="button"),u&&(Li["aria-disabled"]=u));const bt=cc(n,R,T),pt=Z({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:h,tabIndex:W,focusVisible:q}),jo=KH(pt);return ee.jsxs(JH,Z({as:nt,className:Rt(jo.root,o),ownerState:pt,onBlur:Pt,onClick:v,onContextMenu:Ee,onFocus:xu,onKeyDown:Fo,onKeyUp:_t,onMouseDown:dt,onMouseLeave:Ue,onMouseUp:tt,onDragLeave:Ne,onTouchEnd:ys,onTouchMove:vt,onTouchStart:Ke,ref:bt,tabIndex:u?-1:W,type:p},Li,x,{children:[a,we?ee.jsx(qH,Z({ref:C,center:s},N)):null]}))});function YH(t){return Tr("MuiAlert",t)}const G3=Pr("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function $H(t){return Tr("MuiIconButton",t)}const QH=Pr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),eF=["edge","children","className","color","disabled","disableFocusRipple","size"],tF=t=>{const{classes:e,disabled:n,color:r,edge:i,size:s}=t,a={root:["root",n&&"disabled",r!=="default"&&`color${Re(r)}`,i&&`edge${Re(i)}`,`size${Re(s)}`]};return Yr(a,$H,e)},nF=Ft(_1,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${Re(n.color)}`],n.edge&&e[`edge${Re(n.edge)}`],e[`size${Re(n.size)}`]]}})(({theme:t,ownerState:e})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const r=(n=(t.vars||t).palette)==null?void 0:n[e.color];return Z({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&Z({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":Z({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${QH.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),rF=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=st(r,eF),h=Z({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:c}),m=tF(h);return ee.jsx(nF,Z({className:Rt(m.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:h},d,{children:s}))}),iF=Ps(ee.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),sF=Ps(ee.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aF=Ps(ee.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),oF=Ps(ee.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lF=Ps(ee.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uF=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],cF=t=>{const{variant:e,color:n,severity:r,classes:i}=t,s={root:["root",`${e}${Re(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Yr(s,YH,i)},dF=Ft(DH,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color||n.severity)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?r0:i0,r=t.palette.mode==="light"?i0:r0,i=e.color||e.severity;return Z({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&e.variant==="standard"&&{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:r(t.palette[i].light,.9),[`& .${G3.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}},i&&e.variant==="outlined"&&{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),border:`1px solid ${(t.vars||t).palette[i].light}`,[`& .${G3.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}},i&&e.variant==="filled"&&Z({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${i}FilledColor`],backgroundColor:t.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[i].dark:t.palette[i].main,color:t.palette.getContrastText(t.palette[i].main)}))}),fF=Ft("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hF=Ft("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),X3=Ft("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),K3={success:ee.jsx(iF,{fontSize:"inherit"}),warning:ee.jsx(sF,{fontSize:"inherit"}),error:ee.jsx(aF,{fontSize:"inherit"}),info:ee.jsx(oF,{fontSize:"inherit"})},pF=j.forwardRef(function(e,n){var r,i,s,a,o,l;const u=$r({props:e,name:"MuiAlert"}),{action:c,children:d,className:h,closeText:m="Close",color:y,components:v={},componentsProps:S={},icon:_,iconMapping:b=K3,onClose:w,role:A="alert",severity:O="success",slotProps:M={},slots:U={},variant:V="standard"}=u,F=st(u,uF),L=Z({},u,{color:y,severity:O,variant:V}),B=cF(L),W=(r=(i=U.closeButton)!=null?i:v.CloseButton)!=null?r:rF,N=(s=(a=U.closeIcon)!=null?a:v.CloseIcon)!=null?s:lF,f=(o=M.closeButton)!=null?o:S.closeButton,p=(l=M.closeIcon)!=null?l:S.closeIcon;return ee.jsxs(dF,Z({role:A,elevation:0,ownerState:L,className:Rt(B.root,h),ref:n},F,{children:[_!==!1?ee.jsx(fF,{ownerState:L,className:B.icon,children:_||b[O]||K3[O]}):null,ee.jsx(hF,{ownerState:L,className:B.message,children:d}),c!=null?ee.jsx(X3,{ownerState:L,className:B.action,children:c}):null,c==null&&w?ee.jsx(X3,{ownerState:L,className:B.action,children:ee.jsx(W,Z({size:"small","aria-label":m,title:m,color:"inherit",onClick:w},f,{children:ee.jsx(N,Z({fontSize:"small"},p))}))}):null]}))});function mF(t){return Tr("MuiTypography",t)}Pr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yF=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=t,o={root:["root",s,t.align!=="inherit"&&`align${Re(e)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Yr(o,mF,a)},vF=Ft("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Re(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>Z({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),J3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_F={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bF=t=>_F[t]||t,Vp=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiTypography"}),i=bF(r.color),s=fE(Z({},r,{color:i})),{align:a="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:m=J3}=s,y=st(s,gF),v=Z({},s,{align:a,color:i,className:o,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:m}),S=l||(d?"p":m[h]||J3[h])||"span",_=yF(v);return ee.jsx(vF,Z({as:S,ref:n,ownerState:v,className:Rt(_.root,o)},y))}),wF=j.createContext(void 0);function xF(){return j.useContext(wF)}const SF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],EF={entering:{opacity:1},entered:{opacity:1}},Y3=j.forwardRef(function(e,n){const r=TE(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:o,easing:l,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:m,onExited:y,onExiting:v,style:S,timeout:_=i,TransitionComponent:b=CH}=e,w=st(e,SF),A=j.useRef(null),O=cc(A,o.ref,n),M=f=>p=>{if(f){const x=A.current;p===void 0?f(x):f(x,p)}},U=M(h),V=M((f,p)=>{const x=j3({style:S,timeout:_,easing:l},{mode:"enter"});f.style.webkitTransition=r.transitions.create("opacity",x),f.style.transition=r.transitions.create("opacity",x),c&&c(f,p)}),F=M(d),L=M(v),B=M(f=>{const p=j3({style:S,timeout:_,easing:l},{mode:"exit"});f.style.webkitTransition=r.transitions.create("opacity",p),f.style.transition=r.transitions.create("opacity",p),m&&m(f)}),W=M(y),N=f=>{s&&s(A.current,f)};return ee.jsx(b,Z({appear:a,in:u,nodeRef:A,onEnter:V,onEntered:F,onEntering:U,onExit:B,onExited:W,onExiting:L,addEndListener:N,timeout:_},w,{children:(f,p)=>j.cloneElement(o,Z({style:Z({opacity:0,visibility:f==="exited"&&!u?"hidden":void 0},EF[f],S,o.props.style),ref:O},p))}))});function CF(t){return Tr("MuiBackdrop",t)}Pr("MuiBackdrop",["root","invisible"]);const kF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],TF=t=>{const{classes:e,invisible:n}=t;return Yr({root:["root",n&&"invisible"]},CF,e)},PF=Ft("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>Z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),AF=j.forwardRef(function(e,n){var r,i,s;const a=$r({props:e,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:c={},componentsProps:d={},invisible:h=!1,open:m,slotProps:y={},slots:v={},TransitionComponent:S=Y3,transitionDuration:_}=a,b=st(a,kF),w=Z({},a,{component:u,invisible:h}),A=TF(w),O=(r=y.root)!=null?r:d.root;return ee.jsx(S,Z({in:m,timeout:_},b,{children:ee.jsx(PF,Z({"aria-hidden":!0},O,{as:(i=(s=v.root)!=null?s:c.Root)!=null?i:u,className:Rt(A.root,l,O==null?void 0:O.className),ownerState:Z({},w,O==null?void 0:O.ownerState),classes:A,ref:n,children:o}))}))}),NF=xh(),Ct=kU({themeId:hl,defaultTheme:NF,defaultClassName:"MuiBox-root",generateClassName:Dy.generate});function RF(t){return Tr("MuiButton",t)}const Bp=Pr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),IF=j.createContext({}),OF=j.createContext(void 0),MF=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],LF=t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:s,classes:a}=t,o={root:["root",s,`${s}${Re(e)}`,`size${Re(i)}`,`${s}Size${Re(i)}`,e==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Re(i)}`],endIcon:["endIcon",`iconSize${Re(i)}`]},l=Yr(o,RF,a);return Z({},a,l)},$3=t=>Z({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),DF=Ft(_1,{shouldForwardProp:t=>Sh(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color)}`],e[`size${Re(n.size)}`],e[`${n.variant}Size${Re(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,r;const i=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],s=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return Z({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Z({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":Z({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Bp.focusVisible}`]:Z({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Bp.disabled}`]:Z({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${ns(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(n=(r=t.palette).getContrastText)==null?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bp.disabled}`]:{boxShadow:"none"}}),UF=Ft("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${Re(n.size)}`]]}})(({ownerState:t})=>Z({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},$3(t))),VF=Ft("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${Re(n.size)}`]]}})(({ownerState:t})=>Z({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},$3(t))),Q3=j.forwardRef(function(e,n){const r=j.useContext(IF),i=j.useContext(OF),s=Ly(r,e),a=$r({props:s,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:y,focusVisibleClassName:v,fullWidth:S=!1,size:_="medium",startIcon:b,type:w,variant:A="text"}=a,O=st(a,MF),M=Z({},a,{color:l,component:u,disabled:d,disableElevation:h,disableFocusRipple:m,fullWidth:S,size:_,type:w,variant:A}),U=LF(M),V=b&&ee.jsx(UF,{className:U.startIcon,ownerState:M,children:b}),F=y&&ee.jsx(VF,{className:U.endIcon,ownerState:M,children:y}),L=i||"";return ee.jsxs(DF,Z({ownerState:M,className:Rt(r.className,U.root,c,L),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:Rt(U.focusVisible,v),ref:n,type:w},O,{classes:U,children:[V,o,F]}))});function BF(t){return Tr("PrivateSwitchBase",t)}Pr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const HF=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],FF=t=>{const{classes:e,checked:n,disabled:r,edge:i}=t,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${Re(i)}`],input:["input"]};return Yr(s,BF,e)},jF=Ft(_1)(({ownerState:t})=>Z({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),zF=Ft("input",{shouldForwardProp:Sh})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),WF=j.forwardRef(function(e,n){const{autoFocus:r,checked:i,checkedIcon:s,className:a,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:h,inputProps:m,inputRef:y,name:v,onBlur:S,onChange:_,onFocus:b,readOnly:w,required:A=!1,tabIndex:O,type:M,value:U}=e,V=st(e,HF),[F,L]=CS({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),B=xF(),W=C=>{b&&b(C),B&&B.onFocus&&B.onFocus(C)},N=C=>{S&&S(C),B&&B.onBlur&&B.onBlur(C)},f=C=>{if(C.nativeEvent.defaultPrevented)return;const I=C.target.checked;L(I),_&&_(C,I)};let p=l;B&&typeof p>"u"&&(p=B.disabled);const x=M==="checkbox"||M==="radio",T=Z({},e,{checked:F,disabled:p,disableFocusRipple:u,edge:c}),E=FF(T);return ee.jsxs(jF,Z({component:"span",className:Rt(E.root,a),centerRipple:!0,focusRipple:!u,disabled:p,tabIndex:null,role:void 0,onFocus:W,onBlur:N,ownerState:T,ref:n},V,{children:[ee.jsx(zF,Z({autoFocus:r,checked:i,defaultChecked:o,className:E.input,disabled:p,id:x?h:void 0,name:v,onChange:f,readOnly:w,ref:y,required:A,ownerState:T,tabIndex:O,type:M},M==="checkbox"&&U===void 0?{}:{value:U},m)),F?s:d]}))}),qF=Ps(ee.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ZF=Ps(ee.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),GF=Ps(ee.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function XF(t){return Tr("MuiCheckbox",t)}const b1=Pr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),KF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],JF=t=>{const{classes:e,indeterminate:n,color:r,size:i}=t,s={root:["root",n&&"indeterminate",`color${Re(r)}`,`size${Re(i)}`]},a=Yr(s,XF,e);return Z({},e,a)},YF=Ft(WF,{shouldForwardProp:t=>Sh(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${Re(n.size)}`],n.color!=="default"&&e[`color${Re(n.color)}`]]}})(({theme:t,ownerState:e})=>Z({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ns(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${b1.checked}, &.${b1.indeterminate}`]:{color:(t.vars||t).palette[e.color].main},[`&.${b1.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),$F=ee.jsx(ZF,{}),QF=ee.jsx(qF,{}),ej=ee.jsx(GF,{}),tj=j.forwardRef(function(e,n){var r,i;const s=$r({props:e,name:"MuiCheckbox"}),{checkedIcon:a=$F,color:o="primary",icon:l=QF,indeterminate:u=!1,indeterminateIcon:c=ej,inputProps:d,size:h="medium",className:m}=s,y=st(s,KF),v=u?c:l,S=u?c:a,_=Z({},s,{color:o,indeterminate:u,size:h}),b=JF(_);return ee.jsx(YF,Z({type:"checkbox",inputProps:Z({"data-indeterminate":u},d),icon:j.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:j.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:h}),ownerState:_,ref:n,className:Rt(b.root,m)},y,{classes:b}))});function nj(t){return Tr("MuiCircularProgress",t)}Pr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rj=["className","color","disableShrink","size","style","thickness","value","variant"];let Hp=t=>t,eT,tT,nT,rT;const Ua=44,ij=yc(eT||(eT=Hp` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),sj=yc(tT||(tT=Hp` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),aj=t=>{const{classes:e,variant:n,color:r,disableShrink:i}=t,s={root:["root",n,`color${Re(r)}`],svg:["svg"],circle:["circle",`circle${Re(n)}`,i&&"circleDisableShrink"]};return Yr(s,nj,e)},oj=Ft("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Re(n.color)}`]]}})(({ownerState:t,theme:e})=>Z({display:"inline-block"},t.variant==="determinate"&&{transition:e.transitions.create("transform")},t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main}),({ownerState:t})=>t.variant==="indeterminate"&&lh(nT||(nT=Hp` + animation: ${0} 1.4s linear infinite; + `),ij)),lj=Ft("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),uj=Ft("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Re(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(({ownerState:t,theme:e})=>Z({stroke:"currentColor"},t.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},t.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink&&lh(rT||(rT=Hp` + animation: ${0} 1.4s ease-in-out infinite; + `),sj)),cj=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,size:o=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,h=st(r,rj),m=Z({},r,{color:s,disableShrink:a,size:o,thickness:u,value:c,variant:d}),y=aj(m),v={},S={},_={};if(d==="determinate"){const b=2*Math.PI*((Ua-u)/2);v.strokeDasharray=b.toFixed(3),_["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return ee.jsx(oj,Z({className:Rt(y.root,i),style:Z({width:o,height:o},S,l),ownerState:m,ref:n,role:"progressbar"},_,h,{children:ee.jsx(lj,{className:y.svg,ownerState:m,viewBox:`${Ua/2} ${Ua/2} ${Ua} ${Ua}`,children:ee.jsx(uj,{className:y.circle,style:v,ownerState:m,cx:Ua,cy:Ua,r:(Ua-u)/2,fill:"none",strokeWidth:u})})}))});function dj(t){return Tr("MuiLink",t)}const fj=Pr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),iT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hj=t=>iT[t]||t,pj=({theme:t,ownerState:e})=>{const n=hj(e.color),r=vl(t,`palette.${n}`,!1)||e.color,i=vl(t,`palette.${n}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:ns(r,.4)},mj=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],gj=t=>{const{classes:e,component:n,focusVisible:r,underline:i}=t,s={root:["root",`underline${Re(i)}`,n==="button"&&"button",r&&"focusVisible"]};return Yr(s,dj,e)},yj=Ft(Vp,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`underline${Re(n.underline)}`],n.component==="button"&&e.button]}})(({theme:t,ownerState:e})=>Z({},e.underline==="none"&&{textDecoration:"none"},e.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},e.underline==="always"&&Z({textDecoration:"underline"},e.color!=="inherit"&&{textDecorationColor:pj({theme:t,ownerState:e})},{"&:hover":{textDecorationColor:"inherit"}}),e.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fj.focusVisible}`]:{outline:"auto"}})),vj=j.forwardRef(function(e,n){const r=$r({props:e,name:"MuiLink"}),{className:i,color:s="primary",component:a="a",onBlur:o,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:h}=r,m=st(r,mj),{isFocusVisibleRef:y,onBlur:v,onFocus:S,ref:_}=My(),[b,w]=j.useState(!1),A=cc(n,_),O=F=>{v(F),y.current===!1&&w(!1),o&&o(F)},M=F=>{S(F),y.current===!0&&w(!0),l&&l(F)},U=Z({},r,{color:s,component:a,focusVisible:b,underline:c,variant:d}),V=gj(U);return ee.jsx(yj,Z({color:s,className:Rt(V.root,i),classes:u,component:a,onBlur:O,onFocus:M,ref:A,ownerState:U,variant:d,sx:[...Object.keys(iT).includes(s)?[]:[{color:s}],...Array.isArray(h)?h:[h]]},m))});var w1={},sT={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(sT);var aT=sT.exports,x1={};const _j=$m(xV);var oT;function bj(){return oT||(oT=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=_j}(x1)),x1}var wj=aT;Object.defineProperty(w1,"__esModule",{value:!0});var lT=w1.default=void 0,xj=wj(bj()),Sj=ee,Ej=(0,xj.default)((0,Sj.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");lT=w1.default=Ej;const Cj=(t=>t.default?t.default:t)(lT),kj=t=>{if(!t.hash)throw new Error("item.hash is undefined");return t.hash},Tj=({challenge:t,solution:e,onClick:n})=>{const r=t.captcha.items,i=TE(),s="ontouchstart"in window;return ee.jsx(Ct,{component:"div",pr:.5,pb:.5,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap"},children:r.map((a,o)=>{const l=kj(a);return ee.jsx(Ct,{pt:.5,pl:.5,sx:{flexGrow:1,flexBasis:"33.3333%",boxSizing:"border-box"},children:ee.jsxs(Ct,{sx:{cursor:"pointer",height:"100%",width:"100%"},onClick:s?void 0:()=>n(l),onTouchStart:s?()=>n(l):void 0,children:[ee.jsx(Ct,{sx:{border:1,borderColor:i.palette.grey[300]},children:ee.jsx("img",{style:{width:"100%",backgroundColor:i.palette.grey[300],opacity:e.includes(l)&&s?"50%":"100%",display:"block",objectFit:"contain",aspectRatio:"1/1"},src:a.data,alt:`Captcha image ${o+1}`})}),ee.jsx(Y3,{in:e.includes(l),children:ee.jsx(Ct,{sx:{position:"relative",width:"100%",height:"100%",top:"-100%",transitionDuration:"300ms",transitionProperty:"opacity"},children:ee.jsx(Ct,{sx:{position:"absolute",top:0,left:0,bottom:0,right:0,height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.5)"},children:ee.jsx(Cj,{htmlColor:i.palette.background.default,sx:{display:"block",width:"35%",height:"35%"}})})})})]})},o)})})},uT=xh({palette:{mode:"light",primary:{main:"#1976d2",contrastText:"#000"},background:{default:"#fff"}}}),cT=xh({palette:{mode:"dark",primary:{main:"#1976d2",contrastText:"#fff"},background:{default:"#303030"}}});function Pj(t={}){return Object.keys(t).reduce((e,n)=>({...e,[`data-${n}`]:t[n]}),{})}function S1({general:t,dev:e}){return{...Pj(t)}}const Aj=({challenge:t,index:e,solutions:n,onSubmit:r,onCancel:i,onClick:s,onNext:a,themeColor:o})=>{const{t:l}=yI(),u=t.captchas?z(t.captchas,e):null,c=n?z(n,e):[],d=j.useMemo(()=>o==="light"?uT:cT,[o]);return ee.jsx(Ct,{sx:{overflowX:"auto",overflowY:"auto",width:"100%",maxWidth:"500px",maxHeight:"100%"},children:ee.jsxs(Ct,{bgcolor:d.palette.background.default,sx:{display:"flex",flexDirection:"column",minWidth:"300px"},children:[ee.jsxs(Ct,{px:2,py:3,sx:{display:"flex",alignItems:"center",width:"100%"},bgcolor:d.palette.primary.main,children:[ee.jsxs(Vp,{sx:{color:"#ffffff",fontWeight:700},children:[l("WIDGET.SELECT_ALL"),": "]}),ee.jsx(Vp,{px:1,sx:{color:"#ffffff",fontWeight:700,textTransform:"capitalize",fontSize:d.typography.h6.fontSize},children:`${z(t.captchas,e).captcha.target}`})]}),ee.jsx(Ct,{...S1({dev:{cy:"captcha-"+e}}),children:u&&ee.jsx(Tj,{challenge:u,solution:c,onClick:s})}),ee.jsx(Ct,{px:2,py:1,sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},...S1({dev:{cy:"dots-captcha"}})}),ee.jsxs(Ct,{px:2,pt:0,pb:2,sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[ee.jsx(Q3,{onClick:i,variant:"text",children:l("WIDGET.CANCEL")}),ee.jsx(Q3,{color:"primary",onClick:e{if(!wn())throw new Error("Unable to initialize @polkadot/util-crypto");return!0}).catch(()=>!1)}function Jl(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function ls(...t){const e=(i,s)=>a=>i(s(a)),n=Array.from(t).reverse().reduce((i,s)=>i?e(i,s.encode):s.encode,void 0),r=t.reduce((i,s)=>i?e(i,s.decode):s.decode,void 0);return{encode:n,decode:r}}function us(t){return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return e.map(n=>{if(n<0||n>=t.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${t.length})`);return t[n]})},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("alphabet.decode input should be array of strings");return e.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=t.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${t}`);return r})}}}function cs(t=""){if(typeof t!="string")throw new Error("join separator should be string");return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of e)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return e.join(t)},decode:e=>{if(typeof e!="string")throw new Error("join.decode input should be string");return e.split(t)}}}function Fp(t,e="="){if(typeof e!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*t%8;)n.push(e);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let i of n)if(typeof i!="string")throw new Error(`padding.decode: non-string input=${i}`);let r=n.length;if(r*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===e;r--)if(!((r-1)*t%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function dT(t){if(typeof t!="function")throw new Error("normalize fn should be function");return{encode:e=>e,decode:e=>t(e)}}function fT(t,e,n){if(e<2)throw new Error(`convertRadix: wrong from=${e}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(t))throw new Error("convertRadix: data should be array");if(!t.length)return[];let r=0;const i=[],s=Array.from(t);for(s.forEach(a=>{if(a<0||a>=e)throw new Error(`Wrong integer: ${a}`)});;){let a=0,o=!0;for(let l=r;le?hT(e,t%e):t,jp=(t,e)=>t+(e-hT(t,e));function E1(t,e,n,r){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(jp(e,n)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${n} carryBits=${jp(e,n)}`);let i=0,s=0;const a=2**n-1,o=[];for(const l of t){if(l>=2**e)throw new Error(`convertRadix2: invalid data word=${l} from=${e}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${e}`);for(s+=e;s>=n;s-=n)o.push((i>>s-n&a)>>>0);i&=2**s-1}if(i=i<=e)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&s>0&&o.push(i>>>0),o}function Rj(t){return{encode:e=>{if(!(e instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return fT(Array.from(e),256,t)},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(fT(e,t,256))}}}function Hs(t,e=!1){if(t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(jp(8,t)>32||jp(t,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return E1(Array.from(n),8,t,!e)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(E1(n,t,8,e))}}}function pT(t){if(typeof t!="function")throw new Error("unsafeWrapper fn should be function");return function(...e){try{return t.apply(null,e)}catch{}}}const Ij=ls(Hs(6),us("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Fp(6),cs("")),C1=t=>ls(Rj(58),us(t),cs("")),Oj=C1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),k1=ls(us("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),cs("")),mT=[996825010,642813549,513874426,1027748829,705979059];function cd(t){const e=t>>25;let n=(t&33554431)<<5;for(let r=0;r>r&1)===1&&(n^=mT[r]);return n}function gT(t,e,n=1){const r=t.length;let i=1;for(let s=0;s126)throw new Error(`Invalid prefix (${t})`);i=cd(i)^a>>5}i=cd(i);for(let s=0;sh)throw new TypeError(`Length ${m} exceeds limit ${h}`);const y=c.toLowerCase(),v=gT(y,d,e);return`${y}1${k1.encode(d)}${v}`}function o(c,d=90){if(typeof c!="string")throw new Error(`bech32.decode input should be string, not ${typeof c}`);if(c.length<8||d!==!1&&c.length>d)throw new TypeError(`Wrong string length: ${c.length} (${c}). Expected (8..${d})`);const h=c.toLowerCase();if(c!==h&&c!==c.toUpperCase())throw new Error("String must be lowercase or uppercase");c=h;const m=c.lastIndexOf("1");if(m===0||m===-1)throw new Error('Letter "1" must be present between prefix and data only');const y=c.slice(0,m),v=c.slice(m+1);if(v.length<6)throw new Error("Data must be at least 6 characters long");const S=k1.decode(v).slice(0,-6),_=gT(y,S,e);if(!v.endsWith(_))throw new Error(`Invalid checksum in ${c}: expected "${_}"`);return{prefix:y,words:S}}const l=pT(o);function u(c){const{prefix:d,words:h}=o(c,!1);return{prefix:d,words:h,bytes:r(h)}}return{encode:a,decode:o,decodeToBytes:u,decodeUnsafe:l,fromWords:r,fromWordsUnsafe:s,toWords:i}}function vT({coder:t,ipfs:e},n){return(r,i)=>(n(r,i),t.decode(e&&i?r.substring(1):r))}function _T({coder:t,ipfs:e}){return(n,r)=>{const i=t.encode(K(n));return e&&r?`${e}${i}`:i}}function bT({chars:t,ipfs:e,type:n,withPadding:r}){return(i,s)=>{if(typeof i!="string")throw new Error(`Expected ${n} string input`);if(e&&s&&!i.startsWith(e))throw new Error(`Expected ipfs-compatible ${n} to start with '${e}'`);for(let a=s?1:0,o=i.length;a>6|(t[1]&63)<<8,r=[34+e,35+e].includes(t.length),i=t.length-(r?2:1),s=wT(t.subarray(0,i));return[(t[0]&128)===0&&![46,47].includes(t[0])&&(r?t[t.length-2]===s[0]&&t[t.length-1]===s[1]:t[t.length-1]===s[0]),i,e,n]}const Vj=[{prefix:0,network:"polkadot",displayName:"Polkadot Relay Chain",symbols:["DOT"],decimals:[10],standardAccount:"*25519",website:"https://polkadot.network"},{prefix:1,network:"BareSr25519",displayName:"Bare 32-bit Schnorr/Ristretto (S/R 25519) public key.",symbols:[],decimals:[],standardAccount:"Sr25519",website:null},{prefix:2,network:"kusama",displayName:"Kusama Relay Chain",symbols:["KSM"],decimals:[12],standardAccount:"*25519",website:"https://kusama.network"},{prefix:3,network:"BareEd25519",displayName:"Bare 32-bit Ed25519 public key.",symbols:[],decimals:[],standardAccount:"Ed25519",website:null},{prefix:4,network:"katalchain",displayName:"Katal Chain",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:5,network:"astar",displayName:"Astar Network",symbols:["ASTR"],decimals:[18],standardAccount:"*25519",website:"https://astar.network"},{prefix:6,network:"bifrost",displayName:"Bifrost",symbols:["BNC"],decimals:[12],standardAccount:"*25519",website:"https://bifrost.finance/"},{prefix:7,network:"edgeware",displayName:"Edgeware",symbols:["EDG"],decimals:[18],standardAccount:"*25519",website:"https://edgewa.re"},{prefix:8,network:"karura",displayName:"Karura",symbols:["KAR"],decimals:[12],standardAccount:"*25519",website:"https://karura.network/"},{prefix:9,network:"reynolds",displayName:"Laminar Reynolds Canary",symbols:["REY"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:10,network:"acala",displayName:"Acala",symbols:["ACA"],decimals:[12],standardAccount:"*25519",website:"https://acala.network/"},{prefix:11,network:"laminar",displayName:"Laminar",symbols:["LAMI"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:12,network:"polymesh",displayName:"Polymesh",symbols:["POLYX"],decimals:[6],standardAccount:"*25519",website:"https://polymath.network/"},{prefix:13,network:"integritee",displayName:"Integritee",symbols:["TEER"],decimals:[12],standardAccount:"*25519",website:"https://integritee.network"},{prefix:14,network:"totem",displayName:"Totem",symbols:["TOTEM"],decimals:[0],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:15,network:"synesthesia",displayName:"Synesthesia",symbols:["SYN"],decimals:[12],standardAccount:"*25519",website:"https://synesthesia.network/"},{prefix:16,network:"kulupu",displayName:"Kulupu",symbols:["KLP"],decimals:[12],standardAccount:"*25519",website:"https://kulupu.network/"},{prefix:17,network:"dark",displayName:"Dark Mainnet",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:18,network:"darwinia",displayName:"Darwinia Network",symbols:["RING"],decimals:[18],standardAccount:"secp256k1",website:"https://darwinia.network"},{prefix:19,network:"watr",displayName:"Watr Protocol",symbols:["WATR"],decimals:[18],standardAccount:"*25519",website:"https://www.watr.org"},{prefix:20,network:"stafi",displayName:"Stafi",symbols:["FIS"],decimals:[12],standardAccount:"*25519",website:"https://stafi.io"},{prefix:21,network:"karmachain",displayName:"Karmacoin",symbols:["KCOIN"],decimals:[6],standardAccount:"*25519",website:"https://karmaco.in"},{prefix:22,network:"dock-pos-mainnet",displayName:"Dock Mainnet",symbols:["DCK"],decimals:[6],standardAccount:"*25519",website:"https://dock.io"},{prefix:23,network:"shift",displayName:"ShiftNrg",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:24,network:"zero",displayName:"ZERO",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:25,network:"zero-alphaville",displayName:"ZERO Alphaville",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:26,network:"jupiter",displayName:"Jupiter",symbols:["jDOT"],decimals:[10],standardAccount:"*25519",website:"https://jupiter.patract.io"},{prefix:27,network:"kabocha",displayName:"Kabocha",symbols:["KAB"],decimals:[12],standardAccount:"*25519",website:"https://kabocha.network"},{prefix:28,network:"subsocial",displayName:"Subsocial",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:29,network:"cord",displayName:"CORD Network",symbols:["DHI","WAY"],decimals:[12,12],standardAccount:"*25519",website:"https://cord.network/"},{prefix:30,network:"phala",displayName:"Phala Network",symbols:["PHA"],decimals:[12],standardAccount:"*25519",website:"https://phala.network"},{prefix:31,network:"litentry",displayName:"Litentry Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:32,network:"robonomics",displayName:"Robonomics",symbols:["XRT"],decimals:[9],standardAccount:"*25519",website:"https://robonomics.network"},{prefix:33,network:"datahighway",displayName:"DataHighway",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:34,network:"ares",displayName:"Ares Protocol",symbols:["ARES"],decimals:[12],standardAccount:"*25519",website:"https://www.aresprotocol.com/"},{prefix:35,network:"vln",displayName:"Valiu Liquidity Network",symbols:["USDv"],decimals:[15],standardAccount:"*25519",website:"https://valiu.com/"},{prefix:36,network:"centrifuge",displayName:"Centrifuge Chain",symbols:["CFG"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:37,network:"nodle",displayName:"Nodle Chain",symbols:["NODL"],decimals:[11],standardAccount:"*25519",website:"https://nodle.io/"},{prefix:38,network:"kilt",displayName:"KILT Spiritnet",symbols:["KILT"],decimals:[15],standardAccount:"*25519",website:"https://kilt.io/"},{prefix:39,network:"mathchain",displayName:"MathChain mainnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:40,network:"mathchain-testnet",displayName:"MathChain testnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:41,network:"polimec",displayName:"Polimec Protocol",symbols:["PLMC"],decimals:[10],standardAccount:"*25519",website:"https://www.polimec.org/"},{prefix:42,network:"substrate",displayName:"Substrate",symbols:[],decimals:[],standardAccount:"*25519",website:"https://substrate.io/"},{prefix:43,network:"BareSecp256k1",displayName:"Bare 32-bit ECDSA SECP-256k1 public key.",symbols:[],decimals:[],standardAccount:"secp256k1",website:null},{prefix:44,network:"chainx",displayName:"ChainX",symbols:["PCX"],decimals:[8],standardAccount:"*25519",website:"https://chainx.org/"},{prefix:45,network:"uniarts",displayName:"UniArts Network",symbols:["UART","UINK"],decimals:[12,12],standardAccount:"*25519",website:"https://uniarts.me"},{prefix:46,network:"reserved46",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:47,network:"reserved47",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:48,network:"neatcoin",displayName:"Neatcoin Mainnet",symbols:["NEAT"],decimals:[12],standardAccount:"*25519",website:"https://neatcoin.org"},{prefix:49,network:"picasso",displayName:"Picasso",symbols:["PICA"],decimals:[12],standardAccount:"*25519",website:"https://picasso.composable.finance"},{prefix:50,network:"composable",displayName:"Composable Finance",symbols:["LAYR"],decimals:[12],standardAccount:"*25519",website:"https://composable.finance"},{prefix:51,network:"oak",displayName:"OAK Network",symbols:["OAK","TUR"],decimals:[10,10],standardAccount:"*25519",website:"https://oak.tech"},{prefix:52,network:"KICO",displayName:"KICO",symbols:["KICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:53,network:"DICO",displayName:"DICO",symbols:["DICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:54,network:"cere",displayName:"Cere Network",symbols:["CERE"],decimals:[10],standardAccount:"*25519",website:"https://cere.network"},{prefix:55,network:"xxnetwork",displayName:"xx network",symbols:["XX"],decimals:[9],standardAccount:"*25519",website:"https://xx.network"},{prefix:56,network:"pendulum",displayName:"Pendulum chain",symbols:["PEN"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:57,network:"amplitude",displayName:"Amplitude chain",symbols:["AMPE"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:63,network:"hydradx",displayName:"HydraDX",symbols:["HDX"],decimals:[12],standardAccount:"*25519",website:"https://hydradx.io"},{prefix:64,network:"ewx",displayName:"Energy Web X",symbols:["EWT"],decimals:[18],standardAccount:"*25519",website:"https://www.energyweb.org"},{prefix:65,network:"aventus",displayName:"Aventus Mainnet",symbols:["AVT"],decimals:[18],standardAccount:"*25519",website:"https://aventus.io"},{prefix:66,network:"crust",displayName:"Crust Network",symbols:["CRU"],decimals:[12],standardAccount:"*25519",website:"https://crust.network"},{prefix:67,network:"genshiro",displayName:"Genshiro Network",symbols:["GENS","EQD","LPT0"],decimals:[9,9,9],standardAccount:"*25519",website:"https://genshiro.equilibrium.io"},{prefix:68,network:"equilibrium",displayName:"Equilibrium Network",symbols:["EQ"],decimals:[9],standardAccount:"*25519",website:"https://equilibrium.io"},{prefix:69,network:"sora",displayName:"SORA Network",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:71,network:"p3d",displayName:"3DP network",symbols:["P3D"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:72,network:"p3dt",displayName:"3DP test network",symbols:["P3Dt"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:73,network:"zeitgeist",displayName:"Zeitgeist",symbols:["ZTG"],decimals:[10],standardAccount:"*25519",website:"https://zeitgeist.pm"},{prefix:77,network:"manta",displayName:"Manta network",symbols:["MANTA"],decimals:[18],standardAccount:"*25519",website:"https://manta.network"},{prefix:78,network:"calamari",displayName:"Calamari: Manta Canary Network",symbols:["KMA"],decimals:[12],standardAccount:"*25519",website:"https://manta.network"},{prefix:81,network:"sora_dot_para",displayName:"SORA Polkadot Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:88,network:"polkadex",displayName:"Polkadex Mainnet",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:89,network:"polkadexparachain",displayName:"Polkadex Parachain",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:90,network:"frequency",displayName:"Frequency",symbols:["FRQCY"],decimals:[8],standardAccount:"*25519",website:"https://www.frequency.xyz"},{prefix:92,network:"anmol",displayName:"Anmol Network",symbols:["ANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:93,network:"fragnova",displayName:"Fragnova Network",symbols:["NOVA"],decimals:[12],standardAccount:"*25519",website:"https://fragnova.com"},{prefix:98,network:"polkasmith",displayName:"PolkaSmith Canary Network",symbols:["PKS"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:99,network:"polkafoundry",displayName:"PolkaFoundry Network",symbols:["PKF"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:100,network:"ibtida",displayName:"Anmol Network Ibtida Canary network",symbols:["IANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:101,network:"origintrail-parachain",displayName:"OriginTrail Parachain",symbols:["OTP"],decimals:[12],standardAccount:"*25519",website:"https://parachain.origintrail.io/"},{prefix:105,network:"pontem-network",displayName:"Pontem Network",symbols:["PONT"],decimals:[10],standardAccount:"*25519",website:"https://pontem.network"},{prefix:110,network:"heiko",displayName:"Heiko",symbols:["HKO"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:113,network:"integritee-incognito",displayName:"Integritee Incognito",symbols:[],decimals:[],standardAccount:"*25519",website:"https://integritee.network"},{prefix:117,network:"tinker",displayName:"Tinker",symbols:["TNKR"],decimals:[12],standardAccount:"*25519",website:"https://invarch.network"},{prefix:126,network:"joystream",displayName:"Joystream",symbols:["JOY"],decimals:[10],standardAccount:"*25519",website:"https://www.joystream.org"},{prefix:128,network:"clover",displayName:"Clover Finance",symbols:["CLV"],decimals:[18],standardAccount:"*25519",website:"https://clover.finance"},{prefix:129,network:"dorafactory-polkadot",displayName:"Dorafactory Polkadot Network",symbols:["DORA"],decimals:[12],standardAccount:"*25519",website:"https://dorafactory.org"},{prefix:131,network:"litmus",displayName:"Litmus Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:136,network:"altair",displayName:"Altair",symbols:["AIR"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:137,network:"vara",displayName:"Vara Network",symbols:["VARA"],decimals:[12],standardAccount:"*25519",website:"https://vara-network.io/"},{prefix:172,network:"parallel",displayName:"Parallel",symbols:["PARA"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:252,network:"social-network",displayName:"Social Network",symbols:["NET"],decimals:[18],standardAccount:"*25519",website:"https://social.network"},{prefix:255,network:"quartz_mainnet",displayName:"QUARTZ by UNIQUE",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:268,network:"pioneer_network",displayName:"Pioneer Network by Bit.Country",symbols:["NEER"],decimals:[18],standardAccount:"*25519",website:"https://bit.country"},{prefix:420,network:"sora_kusama_para",displayName:"SORA Kusama Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:440,network:"allfeat_network",displayName:"Allfeat Network",symbols:["AFT"],decimals:[12],standardAccount:"*25519",website:"https://allfeat.network"},{prefix:666,network:"metaquity_network",displayName:"Metaquity Network",symbols:["MQTY"],decimals:[18],standardAccount:"*25519",website:"https://metaquity.xyz/"},{prefix:789,network:"geek",displayName:"GEEK Network",symbols:["GEEK"],decimals:[18],standardAccount:"*25519",website:"https://geek.gl"},{prefix:995,network:"ternoa",displayName:"Ternoa",symbols:["CAPS"],decimals:[18],standardAccount:"*25519",website:"https://www.ternoa.network"},{prefix:1110,network:"efinity",displayName:"Efinity",symbols:["EFI"],decimals:[18],standardAccount:"*25519",website:"https://efinity.io/"},{prefix:1221,network:"peaq",displayName:"Peaq Network",symbols:["PEAQ"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1222,network:"krest",displayName:"Krest Network",symbols:["KREST"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1284,network:"moonbeam",displayName:"Moonbeam",symbols:["GLMR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1285,network:"moonriver",displayName:"Moonriver",symbols:["MOVR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1328,network:"ajuna",displayName:"Ajuna Network",symbols:["AJUN"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1337,network:"bajun",displayName:"Bajun Network",symbols:["BAJU"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1516,network:"societal",displayName:"Societal",symbols:["SCTL"],decimals:[12],standardAccount:"*25519",website:"https://www.sctl.xyz"},{prefix:1985,network:"seals",displayName:"Seals Network",symbols:["SEAL"],decimals:[9],standardAccount:"*25519",website:"https://seals.app"},{prefix:2007,network:"kapex",displayName:"Kapex",symbols:["KAPEX"],decimals:[12],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:2009,network:"cloudwalk_mainnet",displayName:"CloudWalk Network Mainnet",symbols:["CWN"],decimals:[18],standardAccount:"*25519",website:"https://explorer.mainnet.cloudwalk.io"},{prefix:2021,network:"logion",displayName:"logion network",symbols:["LGNT"],decimals:[18],standardAccount:"*25519",website:"https://logion.network"},{prefix:2032,network:"interlay",displayName:"Interlay",symbols:["INTR"],decimals:[10],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2092,network:"kintsugi",displayName:"Kintsugi",symbols:["KINT"],decimals:[12],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2106,network:"bitgreen",displayName:"Bitgreen",symbols:["BBB"],decimals:[18],standardAccount:"*25519",website:"https://bitgreen.org/"},{prefix:2112,network:"chainflip",displayName:"Chainflip",symbols:["FLIP"],decimals:[18],standardAccount:"*25519",website:"https://chainflip.io/"},{prefix:2199,network:"moonsama",displayName:"Moonsama",symbols:["SAMA"],decimals:[18],standardAccount:"secp256k1",website:"https://moonsama.com"},{prefix:2206,network:"ICE",displayName:"ICE Network",symbols:["ICY"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2207,network:"SNOW",displayName:"SNOW: ICE Canary Network",symbols:["ICZ"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2254,network:"subspace_testnet",displayName:"Subspace testnet",symbols:["tSSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:3333,network:"peerplays",displayName:"Peerplays",symbols:["PPY"],decimals:[18],standardAccount:"secp256k1",website:"https://www.peerplays.com/"},{prefix:4006,network:"tangle",displayName:"Tangle Network",symbols:["TNT"],decimals:[18],standardAccount:"*25519",website:"https://www.webb.tools/"},{prefix:4450,network:"g1",displayName:"Äž1",symbols:["G1"],decimals:[2],standardAccount:"*25519",website:"https://duniter.org"},{prefix:5234,network:"humanode",displayName:"Humanode Network",symbols:["HMND"],decimals:[18],standardAccount:"*25519",website:"https://humanode.io"},{prefix:6094,network:"subspace",displayName:"Subspace",symbols:["SSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:7007,network:"tidefi",displayName:"Tidefi",symbols:["TDFY"],decimals:[12],standardAccount:"*25519",website:"https://tidefi.com"},{prefix:7013,network:"gm",displayName:"GM",symbols:["FREN","GM","GN"],decimals:[12,0,0],standardAccount:"*25519",website:"https://gmordie.com"},{prefix:7306,network:"krigan",displayName:"Krigan Network",symbols:["KRGN"],decimals:[9],standardAccount:"*25519",website:"https://krigan.network"},{prefix:7391,network:"unique_mainnet",displayName:"Unique Network",symbols:["UNQ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8866,network:"golden_gate",displayName:"Golden Gate",symbols:["GGX"],decimals:[18],standardAccount:"*25519",website:"https://ggxchain.io/"},{prefix:8883,network:"sapphire_mainnet",displayName:"Sapphire by Unique",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8886,network:"golden_gate_sydney",displayName:"Golden Gate Sydney",symbols:["GGXT"],decimals:[18],standardAccount:"*25519",website:"https://ggxchain.io/"},{prefix:9072,network:"hashed",displayName:"Hashed Network",symbols:["HASH"],decimals:[18],standardAccount:"*25519",website:"https://hashed.network"},{prefix:9807,network:"dentnet",displayName:"DENTNet",symbols:["DENTX"],decimals:[18],standardAccount:"*25519",website:"https://www.dentnet.io"},{prefix:9935,network:"t3rn",displayName:"t3rn",symbols:["TRN"],decimals:[12],standardAccount:"*25519",website:"https://t3rn.io/"},{prefix:10041,network:"basilisk",displayName:"Basilisk",symbols:["BSX"],decimals:[12],standardAccount:"*25519",website:"https://bsx.fi"},{prefix:11330,network:"cess-testnet",displayName:"CESS Testnet",symbols:["TCESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11331,network:"cess",displayName:"CESS",symbols:["CESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11486,network:"luhn",displayName:"Luhn Network",symbols:["LUHN"],decimals:[18],standardAccount:"*25519",website:"https://luhn.network"},{prefix:11820,network:"contextfree",displayName:"Automata ContextFree",symbols:["CTX"],decimals:[18],standardAccount:"*25519",website:"https://ata.network"},{prefix:12155,network:"impact",displayName:"Impact Protocol Network",symbols:["BSTY"],decimals:[18],standardAccount:"*25519",website:"https://impactprotocol.network/"},{prefix:12191,network:"nftmart",displayName:"NFTMart",symbols:["NMT"],decimals:[12],standardAccount:"*25519",website:"https://nftmart.io"},{prefix:13116,network:"bittensor",displayName:"Bittensor",symbols:["TAO"],decimals:[9],standardAccount:"*25519",website:"https://bittensor.com"},{prefix:14697,network:"goro",displayName:"GORO Network",symbols:["GORO"],decimals:[9],standardAccount:"*25519",website:"https://goro.network"}],Bj={kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"]},Hj={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"},Fj={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,enjin:1155,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,matrixchain:1155,nodle:1003,origintrail:354,parallel:354,pendulum:354,phala:354,picasso:434,polkadex:799,polkadot:354,polymesh:595,quartz:631,sora:617,stafi:907,statemine:434,statemint:354,ternoa:995,unique:661,vtb:694,xxnetwork:1955,zeitgeist:354},jj={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0},xT=[0,2,42],zj=["testnet"];function Wj(t){var i,s;const e=t.network||"",n=e.replace(/_/g,"-").split("-"),r=t;return r.slip44=Fj[e],r.hasLedgerSupport=!!r.slip44,r.genesisHash=Bj[e]||[],r.icon=Hj[e]||"substrate",r.isTestnet=!!jj[e]||zj.includes(n[n.length-1]),r.isIgnored=r.isTestnet||!(t.standardAccount&&((i=t.decimals)!=null&&i.length)&&((s=t.symbols)!=null&&s.length))&&t.prefix!==42,r}function qj({genesisHash:t,prefix:e}){return!!t.length||e===42}function Zj(t){return!t.isIgnored&&!!t.network}function Gj(t,e){const n=xT.includes(t.prefix),r=xT.includes(e.prefix);return n===r?n?0:t.displayName.localeCompare(e.displayName):n?-1:1}const ST=Vj.map(Wj).filter(Zj).sort(Gj),Xj=ST.filter(qj),zp={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:ST.map(({prefix:t})=>t),prefix:42};function _r(t,e,n=-1){if(!t)throw new Error("Invalid empty address passed");if(he(t)||Oe(t))return K(t);try{const r=Mj(t);if(!zp.allowedEncodedLengths.includes(r.length))throw new Error("Invalid decoded address length");const[i,s,a,o]=Uj(r);if(!i&&!e)throw new Error("Invalid decoded address checksum");if(n!==-1&&n!==o)throw new Error(`Expected ss58Format ${n}, received ${o}`);return r.slice(a,s)}catch(r){throw new Error(`Decoding ${t}: ${r.message}`)}}const ET={isLe:!1},P1={isLe:!0},Kj={bitLength:32,isLe:!1},A1={bitLength:32,isLe:!0},Yl={bitLength:256,isLe:!1},Jj={bitLength:256,isLe:!0},Yj=/^\d+$/,$j=32;class N1{constructor(){P(this,"__internal__chainCode",new Uint8Array(32));P(this,"__internal__isHard",!1)}static from(e){const n=new N1,[r,i]=e.startsWith("/")?[e.substring(1),!0]:[e,!1];return n.soft(Yj.test(r)?new te(r,10):r),i?n.harden():n}get chainCode(){return this.__internal__chainCode}get isHard(){return this.__internal__isHard}get isSoft(){return!this.__internal__isHard}hard(e){return this.soft(e).harden()}harden(){return this.__internal__isHard=!0,this}soft(e){return Be(e)||rr(e)||Es(e)?this.soft(Pn(e,Jj)):Oe(e)?this.soft(kn(e)):Ye(e)?this.soft(Kr(Nt(e))):e.length>$j?this.soft(kr(e)):(this.__internal__chainCode.fill(0),this.__internal__chainCode.set(e,0),this)}soften(){return this.__internal__isHard=!1,this}}const Qj=/\/(\/?)([^/]+)/g;function CT(t){const e=t.match(Qj),n=[];let r="";if(e){r=e.join("");for(const i of e)n.push(N1.from(i.substring(1)))}if(r!==t)throw new Error(`Re-constructed path "${r}" does not match input`);return{parts:e,path:n}}const ez=/^(\w+( \w+)*)((\/\/?[^/]+)*)(\/\/\/(.*))?$/;function tz(t){const e=t.match(ez);if(e===null)throw new Error("Unable to match provided value to a secret URI");const[,n,,r,,,i]=e,{path:s}=CT(r);return{derivePath:r,password:i,path:s,phrase:n}}const nz=Kr(Nt("Secp256k1HDKD"));function rz(t,e){if(!he(e)||e.length!==32)throw new Error("Invalid chainCode passed to derive");return kr(ot(nz,t,e),256)}function iz(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),s=BigInt(4294967295),a=Number(n>>i&s),o=Number(n&s),l=r?4:0,u=r?0:4;t.setUint32(e+l,a,r),t.setUint32(e+u,o,r)}class kT extends vf{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=yf(this.buffer)}update(e){aa(this);const{view:n,buffer:r,blockLen:i}=this;e=Xr(e);const s=e.length;for(let a=0;ai-a&&(this.process(r,0),a=0);for(let d=a;dc.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;dt&e^~t&n,az=(t,e,n)=>t&e^t&n^e&n,oz=new Uint32Array([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]),Va=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ba=new Uint32Array(64);class TT extends kT{constructor(){super(64,32,8,!1),this.A=Va[0]|0,this.B=Va[1]|0,this.C=Va[2]|0,this.D=Va[3]|0,this.E=Va[4]|0,this.F=Va[5]|0,this.G=Va[6]|0,this.H=Va[7]|0}get(){const{A:e,B:n,C:r,D:i,E:s,F:a,G:o,H:l}=this;return[e,n,r,i,s,a,o,l]}set(e,n,r,i,s,a,o,l){this.A=e|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=s|0,this.F=a|0,this.G=o|0,this.H=l|0}process(e,n){for(let d=0;d<16;d++,n+=4)Ba[d]=e.getUint32(n,!1);for(let d=16;d<64;d++){const h=Ba[d-15],m=Ba[d-2],y=Zi(h,7)^Zi(h,18)^h>>>3,v=Zi(m,17)^Zi(m,19)^m>>>10;Ba[d]=v+Ba[d-7]+y+Ba[d-16]|0}let{A:r,B:i,C:s,D:a,E:o,F:l,G:u,H:c}=this;for(let d=0;d<64;d++){const h=Zi(o,6)^Zi(o,11)^Zi(o,25),m=c+h+sz(o,l,u)+oz[d]+Ba[d]|0,v=(Zi(r,2)^Zi(r,13)^Zi(r,22))+az(r,i,s)|0;c=u,u=l,l=o,o=a+m|0,a=s,s=i,i=r,r=m+v|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,a=a+this.D|0,o=o+this.E|0,l=l+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,i,s,a,o,l,u,c)}roundClean(){Ba.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class lz extends TT{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const $l=lo(()=>new TT);const PT=BigInt(0),Wp=BigInt(1),uz=BigInt(2),qp=t=>t instanceof Uint8Array,cz=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Io(t){if(!qp(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+i.length,0));let n=0;return t.forEach(r=>{if(!qp(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function fz(t,e){if(t.length!==e.length)return!1;for(let n=0;nPT;t>>=Wp,e+=1);return e}function pz(t,e){return t>>BigInt(e)&Wp}const mz=(t,e,n)=>t|(n?Wp:PT)<(uz<new Uint8Array(t),NT=t=>Uint8Array.from(t);function RT(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=O1(t),i=O1(t),s=0;const a=()=>{r.fill(1),i.fill(0),s=0},o=(...d)=>n(i,r,...d),l=(d=O1())=>{i=o(NT([0]),d),r=o(),d.length!==0&&(i=o(NT([1]),d),r=o())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const h=[];for(;d{a(),l(d);let m;for(;!(m=h(u()));)l();return a(),m}}const gz={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function ja(t,e,n={}){const r=(i,s,a)=>{const o=gz[s];if(typeof o!="function")throw new Error(`Invalid validator "${s}", expected function`);const l=t[i];if(!(a&&l===void 0)&&!o(l,t))throw new Error(`Invalid param ${String(i)}=${l} (${typeof l}), expected ${s}`)};for(const[i,s]of Object.entries(e))r(i,s,!1);for(const[i,s]of Object.entries(n))r(i,s,!0);return t}const yz=Object.freeze(Object.defineProperty({__proto__:null,bitGet:pz,bitLen:hz,bitMask:I1,bitSet:mz,bytesToHex:Io,bytesToNumberBE:Ha,bytesToNumberLE:Fa,concatBytes:Vr,createHmacDrbg:RT,ensureBytes:qt,equalBytes:fz,hexToBytes:Ql,hexToNumber:R1,numberToBytesBE:eu,numberToBytesLE:tu,numberToHexUnpadded:AT,numberToVarBytesBE:dz,utf8ToBytes:Zp,validateObject:ja},Symbol.toStringTag,{value:"Module"}));const On=BigInt(0),Lt=BigInt(1),Oo=BigInt(2),vz=BigInt(3),M1=BigInt(4),IT=BigInt(5),OT=BigInt(8);BigInt(9),BigInt(16);function lt(t,e){const n=t%e;return n>=On?n:e+n}function MT(t,e,n){if(n<=On||e 0");if(n===Lt)return On;let r=Lt;for(;e>On;)e&Lt&&(r=r*t%n),t=t*t%n,e>>=Lt;return r}function Dt(t,e,n){let r=t;for(;e-- >On;)r*=r,r%=n;return r}function L1(t,e){if(t===On||e<=On)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=lt(t,e),r=e,i=On,s=Lt;for(;n!==On;){const o=r/n,l=r%n,u=i-s*o;r=n,n=l,i=s,s=u}if(r!==Lt)throw new Error("invert: does not exist");return lt(i,e)}function _z(t){const e=(t-Lt)/Oo;let n,r,i;for(n=t-Lt,r=0;n%Oo===On;n/=Oo,r++);for(i=Oo;i(lt(t,e)&Lt)===Lt,xz=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function LT(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=xz.reduce((r,i)=>(r[i]="function",r),e);return ja(t,n)}function Sz(t,e,n){if(n 0");if(n===On)return t.ONE;if(n===Lt)return e;let r=t.ONE,i=e;for(;n>On;)n&Lt&&(r=t.mul(r,i)),i=t.sqr(i),n>>=Lt;return r}function Ez(t,e){const n=new Array(e.length),r=e.reduce((s,a,o)=>t.is0(a)?s:(n[o]=s,t.mul(s,a)),t.ONE),i=t.inv(r);return e.reduceRight((s,a,o)=>t.is0(a)?s:(n[o]=t.mul(s,n[o]),t.mul(s,a)),i),n}function DT(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function UT(t,e,n=!1,r={}){if(t<=On)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:i,nByteLength:s}=DT(t,e);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=bz(t),o=Object.freeze({ORDER:t,BITS:i,BYTES:s,MASK:I1(i),ZERO:On,ONE:Lt,create:l=>lt(l,t),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return On<=l&&ll===On,isOdd:l=>(l&Lt)===Lt,neg:l=>lt(-l,t),eql:(l,u)=>l===u,sqr:l=>lt(l*l,t),add:(l,u)=>lt(l+u,t),sub:(l,u)=>lt(l-u,t),mul:(l,u)=>lt(l*u,t),pow:(l,u)=>Sz(o,l,u),div:(l,u)=>lt(l*L1(u,t),t),sqrN:l=>l*l,addN:(l,u)=>l+u,subN:(l,u)=>l-u,mulN:(l,u)=>l*u,inv:l=>L1(l,t),sqrt:r.sqrt||(l=>a(o,l)),invertBatch:l=>Ez(o,l),cmov:(l,u,c)=>c?u:l,toBytes:l=>n?tu(l,s):eu(l,s),fromBytes:l=>{if(l.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${l.length}`);return n?Fa(l):Ha(l)}});return Object.freeze(o)}function Cz(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n}function VT(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function BT(t){const e=VT(t);return e+Math.ceil(e/2)}function kz(t,e,n=!1){const r=t.length,i=VT(e),s=BT(e);if(r<16||r1024)throw new Error(`expected ${s}-1024 bytes of input, got ${r}`);const a=n?Ha(t):Fa(t),o=lt(a,e-Lt)+Lt;return n?tu(o,i):eu(o,i)}const Tz=BigInt(0),D1=BigInt(1);function HT(t,e){const n=(i,s)=>{const a=s.negate();return i?a:s},r=i=>{const s=Math.ceil(e/i)+1,a=2**(i-1);return{windows:s,windowSize:a}};return{constTimeNegate:n,unsafeLadder(i,s){let a=t.ZERO,o=i;for(;s>Tz;)s&D1&&(a=a.add(o)),o=o.double(),s>>=D1;return a},precomputeWindow(i,s){const{windows:a,windowSize:o}=r(s),l=[];let u=i,c=u;for(let d=0;d>=m,S>l&&(S-=h,a+=D1);const _=v,b=v+Math.abs(S)-1,w=y%2!==0,A=S<0;S===0?c=c.add(n(w,s[_])):u=u.add(n(A,s[b]))}return{p:u,f:c}},wNAFCached(i,s,a,o){const l=i._WINDOW_SIZE||1;let u=s.get(i);return u||(u=this.precomputeWindow(i,l),l!==1&&s.set(i,o(u))),this.wNAF(l,u,a)}}}function U1(t){return LT(t.Fp),ja(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...DT(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function Pz(t){const e=U1(t);ja(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=e;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Az,hexToBytes:Nz}=yz,Mo={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=Mo;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Az(r),l:t.subarray(n+2)}},toSig(t){const{Err:e}=Mo,n=typeof t=="string"?Nz(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");const{d:i,l:s}=Mo._parseInt(n.subarray(2)),{d:a,l:o}=Mo._parseInt(s);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(t){const e=u=>Number.parseInt(u[0],16)&8?"00"+u:u,n=u=>{const c=u.toString(16);return c.length&1?`0${c}`:c},r=e(n(t.s)),i=e(n(t.r)),s=r.length/2,a=i.length/2,o=n(s),l=n(a);return`30${n(a+s+4)}02${l}${i}02${o}${r}`}},Ai=BigInt(0),zt=BigInt(1),za=BigInt(2),Gp=BigInt(3),FT=BigInt(4);function Rz(t){const e=Pz(t),{Fp:n}=e,r=e.toBytes||((y,v,S)=>{const _=v.toAffine();return Vr(Uint8Array.from([4]),n.toBytes(_.x),n.toBytes(_.y))}),i=e.fromBytes||(y=>{const v=y.subarray(1),S=n.fromBytes(v.subarray(0,n.BYTES)),_=n.fromBytes(v.subarray(n.BYTES,2*n.BYTES));return{x:S,y:_}});function s(y){const{a:v,b:S}=e,_=n.sqr(y),b=n.mul(_,y);return n.add(n.add(b,n.mul(y,v)),S)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function a(y){return typeof y=="bigint"&&Ain.eql(w,n.ZERO);return b(S)&&b(_)?d.ZERO:new d(S,_,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(v){const S=n.invertBatch(v.map(_=>_.pz));return v.map((_,b)=>_.toAffine(S[b])).map(d.fromAffine)}static fromHex(v){const S=d.fromAffine(i(qt("pointHex",v)));return S.assertValidity(),S}static fromPrivateKey(v){return d.BASE.multiply(l(v))}_setWindowSize(v){this._WINDOW_SIZE=v,u.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:v,y:S}=this.toAffine();if(!n.isValid(v)||!n.isValid(S))throw new Error("bad point: x or y not FE");const _=n.sqr(S),b=s(v);if(!n.eql(_,b))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:v}=this.toAffine();if(n.isOdd)return!n.isOdd(v);throw new Error("Field doesn't support isOdd")}equals(v){c(v);const{px:S,py:_,pz:b}=this,{px:w,py:A,pz:O}=v,M=n.eql(n.mul(S,O),n.mul(w,b)),U=n.eql(n.mul(_,O),n.mul(A,b));return M&&U}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:v,b:S}=e,_=n.mul(S,Gp),{px:b,py:w,pz:A}=this;let O=n.ZERO,M=n.ZERO,U=n.ZERO,V=n.mul(b,b),F=n.mul(w,w),L=n.mul(A,A),B=n.mul(b,w);return B=n.add(B,B),U=n.mul(b,A),U=n.add(U,U),O=n.mul(v,U),M=n.mul(_,L),M=n.add(O,M),O=n.sub(F,M),M=n.add(F,M),M=n.mul(O,M),O=n.mul(B,O),U=n.mul(_,U),L=n.mul(v,L),B=n.sub(V,L),B=n.mul(v,B),B=n.add(B,U),U=n.add(V,V),V=n.add(U,V),V=n.add(V,L),V=n.mul(V,B),M=n.add(M,V),L=n.mul(w,A),L=n.add(L,L),V=n.mul(L,B),O=n.sub(O,V),U=n.mul(L,F),U=n.add(U,U),U=n.add(U,U),new d(O,M,U)}add(v){c(v);const{px:S,py:_,pz:b}=this,{px:w,py:A,pz:O}=v;let M=n.ZERO,U=n.ZERO,V=n.ZERO;const F=e.a,L=n.mul(e.b,Gp);let B=n.mul(S,w),W=n.mul(_,A),N=n.mul(b,O),f=n.add(S,_),p=n.add(w,A);f=n.mul(f,p),p=n.add(B,W),f=n.sub(f,p),p=n.add(S,b);let x=n.add(w,O);return p=n.mul(p,x),x=n.add(B,N),p=n.sub(p,x),x=n.add(_,b),M=n.add(A,O),x=n.mul(x,M),M=n.add(W,N),x=n.sub(x,M),V=n.mul(F,p),M=n.mul(L,N),V=n.add(M,V),M=n.sub(W,V),V=n.add(W,V),U=n.mul(M,V),W=n.add(B,B),W=n.add(W,B),N=n.mul(F,N),p=n.mul(L,p),W=n.add(W,N),N=n.sub(B,N),N=n.mul(F,N),p=n.add(p,N),B=n.mul(W,p),U=n.add(U,B),B=n.mul(x,p),M=n.mul(f,M),M=n.sub(M,B),B=n.mul(f,W),V=n.mul(x,V),V=n.add(V,B),new d(M,U,V)}subtract(v){return this.add(v.negate())}is0(){return this.equals(d.ZERO)}wNAF(v){return m.wNAFCached(this,u,v,S=>{const _=n.invertBatch(S.map(b=>b.pz));return S.map((b,w)=>b.toAffine(_[w])).map(d.fromAffine)})}multiplyUnsafe(v){const S=d.ZERO;if(v===Ai)return S;if(o(v),v===zt)return this;const{endo:_}=e;if(!_)return m.unsafeLadder(this,v);let{k1neg:b,k1:w,k2neg:A,k2:O}=_.splitScalar(v),M=S,U=S,V=this;for(;w>Ai||O>Ai;)w&zt&&(M=M.add(V)),O&zt&&(U=U.add(V)),V=V.double(),w>>=zt,O>>=zt;return b&&(M=M.negate()),A&&(U=U.negate()),U=new d(n.mul(U.px,_.beta),U.py,U.pz),M.add(U)}multiply(v){o(v);let S=v,_,b;const{endo:w}=e;if(w){const{k1neg:A,k1:O,k2neg:M,k2:U}=w.splitScalar(S);let{p:V,f:F}=this.wNAF(O),{p:L,f:B}=this.wNAF(U);V=m.constTimeNegate(A,V),L=m.constTimeNegate(M,L),L=new d(n.mul(L.px,w.beta),L.py,L.pz),_=V.add(L),b=F.add(B)}else{const{p:A,f:O}=this.wNAF(S);_=A,b=O}return d.normalizeZ([_,b])[0]}multiplyAndAddUnsafe(v,S,_){const b=d.BASE,w=(O,M)=>M===Ai||M===zt||!O.equals(b)?O.multiplyUnsafe(M):O.multiply(M),A=w(this,S).add(w(v,_));return A.is0()?void 0:A}toAffine(v){const{px:S,py:_,pz:b}=this,w=this.is0();v==null&&(v=w?n.ONE:n.inv(b));const A=n.mul(S,v),O=n.mul(_,v),M=n.mul(b,v);if(w)return{x:n.ZERO,y:n.ZERO};if(!n.eql(M,n.ONE))throw new Error("invZ was invalid");return{x:A,y:O}}isTorsionFree(){const{h:v,isTorsionFree:S}=e;if(v===zt)return!0;if(S)return S(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:v,clearCofactor:S}=e;return v===zt?this:S?S(d,this):this.multiplyUnsafe(e.h)}toRawBytes(v=!0){return this.assertValidity(),r(d,this,v)}toHex(v=!0){return Io(this.toRawBytes(v))}}d.BASE=new d(e.Gx,e.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const h=e.nBitLength,m=HT(d,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:s,isWithinCurveOrder:a}}function Iz(t){const e=U1(t);return ja(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Oz(t){const e=Iz(t),{Fp:n,n:r}=e,i=n.BYTES+1,s=2*n.BYTES+1;function a(p){return AiIo(eu(p,e.nByteLength));function y(p){const x=r>>zt;return p>x}function v(p){return y(p)?o(-p):p}const S=(p,x,T)=>Ha(p.slice(x,T));class _{constructor(x,T,E){this.r=x,this.s=T,this.recovery=E,this.assertValidity()}static fromCompact(x){const T=e.nByteLength;return x=qt("compactSignature",x,T*2),new _(S(x,0,T),S(x,T,2*T))}static fromDER(x){const{r:T,s:E}=Mo.toSig(qt("DER",x));return new _(T,E)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(x){return new _(this.r,this.s,x)}recoverPublicKey(x){const{r:T,s:E,recovery:C}=this,I=U(qt("msgHash",x));if(C==null||![0,1,2,3].includes(C))throw new Error("recovery id invalid");const k=C===2||C===3?T+e.n:T;if(k>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const g=C&1?"03":"02",R=u.fromHex(g+m(k)),q=l(k),X=o(-I*q),G=o(E*q),de=u.BASE.multiplyAndAddUnsafe(R,X,G);if(!de)throw new Error("point at infinify");return de.assertValidity(),de}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return Ql(this.toDERHex())}toDERHex(){return Mo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Ql(this.toCompactHex())}toCompactHex(){return m(this.r)+m(this.s)}}const b={isValidPrivateKey(p){try{return c(p),!0}catch{return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{const p=BT(e.n);return kz(e.randomBytes(p),e.n)},precompute(p=8,x=u.BASE){return x._setWindowSize(p),x.multiply(BigInt(3)),x}};function w(p,x=!0){return u.fromPrivateKey(p).toRawBytes(x)}function A(p){const x=p instanceof Uint8Array,T=typeof p=="string",E=(x||T)&&p.length;return x?E===i||E===s:T?E===2*i||E===2*s:p instanceof u}function O(p,x,T=!0){if(A(p))throw new Error("first arg must be private key");if(!A(x))throw new Error("second arg must be public key");return u.fromHex(x).multiply(c(p)).toRawBytes(T)}const M=e.bits2int||function(p){const x=Ha(p),T=p.length*8-e.nBitLength;return T>0?x>>BigInt(T):x},U=e.bits2int_modN||function(p){return o(M(p))},V=I1(e.nBitLength);function F(p){if(typeof p!="bigint")throw new Error("bigint expected");if(!(Ai<=p&&pme in T))throw new Error("sign() legacy options not supported");const{hash:E,randomBytes:C}=e;let{lowS:I,prehash:k,extraEntropy:g}=T;I==null&&(I=!0),p=qt("msgHash",p),k&&(p=qt("prehashed msgHash",E(p)));const R=U(p),q=c(x),X=[F(q),F(R)];if(g!=null){const me=g===!0?C(n.BYTES):g;X.push(qt("extraEntropy",me))}const G=Vr(...X),de=R;function we(me){const dt=M(me);if(!h(dt))return;const Ee=l(dt),Ne=u.BASE.multiply(dt).toAffine(),tt=o(Ne.x);if(tt===Ai)return;const Ue=o(Ee*o(de+tt*q));if(Ue===Ai)return;let Ke=(Ne.x===tt?0:2)|Number(Ne.y&zt),ys=Ue;return I&&y(Ue)&&(ys=v(Ue),Ke^=1),new _(tt,ys,Ke)}return{seed:G,k2sig:we}}const B={lowS:e.lowS,prehash:!1},W={lowS:e.lowS,prehash:!1};function N(p,x,T=B){const{seed:E,k2sig:C}=L(p,x,T),I=e;return RT(I.hash.outputLen,I.nByteLength,I.hmac)(E,C)}u.BASE._setWindowSize(8);function f(p,x,T,E=W){var Ne;const C=p;if(x=qt("msgHash",x),T=qt("publicKey",T),"strict"in E)throw new Error("options.strict was renamed to lowS");const{lowS:I,prehash:k}=E;let g,R;try{if(typeof C=="string"||C instanceof Uint8Array)try{g=_.fromDER(C)}catch(tt){if(!(tt instanceof Mo.Err))throw tt;g=_.fromCompact(C)}else if(typeof C=="object"&&typeof C.r=="bigint"&&typeof C.s=="bigint"){const{r:tt,s:Ue}=C;g=new _(tt,Ue)}else throw new Error("PARSE");R=u.fromHex(T)}catch(tt){if(tt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(I&&g.hasHighS())return!1;k&&(x=e.hash(x));const{r:q,s:X}=g,G=U(x),de=l(X),we=o(G*de),me=o(q*de),dt=(Ne=u.BASE.multiplyAndAddUnsafe(R,we,me))==null?void 0:Ne.toAffine();return dt?o(dt.x)===q:!1}return{CURVE:e,getPublicKey:w,getSharedSecret:O,sign:N,verify:f,ProjectivePoint:u,Signature:_,utils:b}}function Mz(t,e){const n=t.ORDER;let r=Ai;for(let y=n-zt;y%za===Ai;y/=za)r+=zt;const i=r,s=za<{let S=d,_=t.pow(v,u),b=t.sqr(_);b=t.mul(b,v);let w=t.mul(y,b);w=t.pow(w,l),w=t.mul(w,_),_=t.mul(w,v),b=t.mul(w,y);let A=t.mul(b,_);w=t.pow(A,c);let O=t.eql(w,t.ONE);_=t.mul(b,h),w=t.mul(A,S),b=t.cmov(_,b,O),A=t.cmov(w,A,O);for(let M=i;M>zt;M--){let U=M-za;U=za<{let b=t.sqr(_);const w=t.mul(S,_);b=t.mul(b,w);let A=t.pow(b,y);A=t.mul(A,w);const O=t.mul(A,v),M=t.mul(t.sqr(A),_),U=t.eql(M,S);let V=t.cmov(O,A,U);return{isValid:U,value:V}}}return m}function Lz(t,e){if(LT(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=Mz(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let i,s,a,o,l,u,c,d;i=t.sqr(r),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),a=t.add(s,t.ONE),a=t.mul(a,e.B),o=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),o=t.mul(o,e.A),s=t.sqr(a),u=t.sqr(o),l=t.mul(u,e.A),s=t.add(s,l),s=t.mul(s,a),u=t.mul(u,o),l=t.mul(u,e.B),s=t.add(s,l),c=t.mul(i,a);const{isValid:h,value:m}=n(s,u);d=t.mul(i,r),d=t.mul(d,m),c=t.cmov(c,a,h),d=t.cmov(d,m,h);const y=t.isOdd(r)===t.isOdd(d);return d=t.cmov(t.neg(d),d,y),c=t.div(c,o),{x:c,y:d}}}function Dz(t){if(t instanceof Uint8Array)return t;if(typeof t=="string")return Zp(t);throw new Error("DST must be Uint8Array or string")}const Uz=Ha;function Wa(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=t&255,t>>>=8;return new Uint8Array(n)}function Vz(t,e){const n=new Uint8Array(t.length);for(let r=0;r255&&(e=r(Vr(Zp("H2C-OVERSIZE-DST-"),e)));const{outputLen:i,blockLen:s}=r,a=Math.ceil(n/i);if(a>255)throw new Error("Invalid xmd length");const o=Vr(e,Wa(e.length,1)),l=Wa(0,s),u=Wa(n,2),c=new Array(a),d=r(Vr(l,t,u,Wa(0,1),o));c[0]=r(Vr(d,Wa(1,1),o));for(let m=1;m<=a;m++){const y=[Vz(d,c[m-1]),Wa(m+1,1),o];c[m]=r(Vr(...y))}return Vr(...c).slice(0,n)}function Hz(t,e,n,r,i){if(dd(t),dd(e),V1(n),e.length>255){const s=Math.ceil(2*r/8);e=i.create({dkLen:s}).update(Zp("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(t).update(Wa(n,2)).update(e).update(Wa(e.length,1)).digest()}function jT(t,e,n){ja(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:i,m:s,hash:a,expand:o,DST:l}=n;dd(t),V1(e);const u=Dz(l),c=r.toString(2).length,d=Math.ceil((c+i)/8),h=e*s*d;let m;if(o==="xmd")m=Bz(t,u,h,a);else if(o==="xof")m=Hz(t,u,h,i,a);else if(o==="_internal_pass")m=t;else throw new Error('expand must be "xmd" or "xof"');const y=new Array(e);for(let v=0;vArray.from(r).reverse());return(r,i)=>{const[s,a,o,l]=n.map(u=>u.reduce((c,d)=>t.add(t.mul(c,r),d)));return r=t.div(s,a),i=t.mul(i,t.div(o,l)),{x:r,y:i}}}function zT(t,e,n){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,i){const s=jT(r,2,{...n,DST:n.DST,...i}),a=t.fromAffine(e(s[0])),o=t.fromAffine(e(s[1])),l=a.add(o).clearCofactor();return l.assertValidity(),l},encodeToCurve(r,i){const s=jT(r,1,{...n,DST:n.encodeDST,...i}),a=t.fromAffine(e(s[0])).clearCofactor();return a.assertValidity(),a}}}class WT extends vf{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,qx(e);const r=Xr(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let a=0;anew WT(t,e).update(n).digest();Xp.create=(t,e)=>new WT(t,e);function jz(t){return{hash:t,hmac:(e,...n)=>Xp(t,e,Xx(...n)),randomBytes:Bg}}function zz(t,e){const n=r=>Oz({...t,...jz(r)});return Object.freeze({...n(e),create:n})}const qT=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ZT=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Wz=BigInt(1),B1=BigInt(2),GT=(t,e)=>(t+e/B1)/e;function qz(t){const e=qT,n=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),a=BigInt(23),o=BigInt(44),l=BigInt(88),u=t*t*t%e,c=u*u*t%e,d=Dt(c,n,e)*c%e,h=Dt(d,n,e)*c%e,m=Dt(h,B1,e)*u%e,y=Dt(m,i,e)*m%e,v=Dt(y,s,e)*y%e,S=Dt(v,o,e)*v%e,_=Dt(S,l,e)*S%e,b=Dt(_,o,e)*v%e,w=Dt(b,n,e)*c%e,A=Dt(w,a,e)*y%e,O=Dt(A,r,e)*u%e,M=Dt(O,B1,e);if(!qa.eql(qa.sqr(M),t))throw new Error("Cannot find square root");return M}const qa=UT(qT,void 0,void 0,{sqrt:qz}),nu=zz({a:BigInt(0),b:BigInt(7),Fp:qa,n:ZT,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=ZT,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Wz*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,a=BigInt("0x100000000000000000000000000000000"),o=GT(s*t,e),l=GT(-r*t,e);let u=lt(t-o*n-l*i,e),c=lt(-o*r-l*s,e);const d=u>a,h=c>a;if(d&&(u=e-u),h&&(c=e-c),u>a||c>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:d,k1:u,k2neg:h,k2:c}}}},$l);BigInt(0);const Zz=(()=>Fz(qa,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(e=>BigInt(e)))))(),Gz=(()=>Lz(qa,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:qa.create(BigInt("-11"))}))();function ru(t,e){if(t.length!==32)throw new Error("Expected valid 32-byte private key as a seed");if(!vn||!e&&wn()){const n=H9(t),r=n.slice(32);if(Kg(r))throw new Error("Invalid publicKey generated from WASM interface");return{publicKey:r,secretKey:n.slice(0,32)}}return{publicKey:nu.getPublicKey(t,!0),secretKey:t}}function XT(t,e){return(n,{chainCode:r,isHard:i})=>{if(!i)throw new Error("A soft key was found in the path and is not supported");return t(e(n.secretKey.subarray(0,32),r))}}const KT=XT(ru,rz),Xz=Kr(Nt("Ed25519HDKD"));function Kz(t,e){if(!he(e)||e.length!==32)throw new Error("Invalid chainCode passed to derive");return kr(ot(Xz,t,e))}function fd(t=32){return D2(new Uint8Array(t))}const Jz=W2(fd),[Yz,$z]=(()=>ve.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),Za=new Uint32Array(80),Ga=new Uint32Array(80);class Kp extends kT{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:i,Ch:s,Cl:a,Dh:o,Dl:l,Eh:u,El:c,Fh:d,Fl:h,Gh:m,Gl:y,Hh:v,Hl:S}=this;return[e,n,r,i,s,a,o,l,u,c,d,h,m,y,v,S]}set(e,n,r,i,s,a,o,l,u,c,d,h,m,y,v,S){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=s|0,this.Cl=a|0,this.Dh=o|0,this.Dl=l|0,this.Eh=u|0,this.El=c|0,this.Fh=d|0,this.Fl=h|0,this.Gh=m|0,this.Gl=y|0,this.Hh=v|0,this.Hl=S|0}process(e,n){for(let w=0;w<16;w++,n+=4)Za[w]=e.getUint32(n),Ga[w]=e.getUint32(n+=4);for(let w=16;w<80;w++){const A=Za[w-15]|0,O=Ga[w-15]|0,M=ve.rotrSH(A,O,1)^ve.rotrSH(A,O,8)^ve.shrSH(A,O,7),U=ve.rotrSL(A,O,1)^ve.rotrSL(A,O,8)^ve.shrSL(A,O,7),V=Za[w-2]|0,F=Ga[w-2]|0,L=ve.rotrSH(V,F,19)^ve.rotrBH(V,F,61)^ve.shrSH(V,F,6),B=ve.rotrSL(V,F,19)^ve.rotrBL(V,F,61)^ve.shrSL(V,F,6),W=ve.add4L(U,B,Ga[w-7],Ga[w-16]),N=ve.add4H(W,M,L,Za[w-7],Za[w-16]);Za[w]=N|0,Ga[w]=W|0}let{Ah:r,Al:i,Bh:s,Bl:a,Ch:o,Cl:l,Dh:u,Dl:c,Eh:d,El:h,Fh:m,Fl:y,Gh:v,Gl:S,Hh:_,Hl:b}=this;for(let w=0;w<80;w++){const A=ve.rotrSH(d,h,14)^ve.rotrSH(d,h,18)^ve.rotrBH(d,h,41),O=ve.rotrSL(d,h,14)^ve.rotrSL(d,h,18)^ve.rotrBL(d,h,41),M=d&m^~d&v,U=h&y^~h&S,V=ve.add5L(b,O,U,$z[w],Ga[w]),F=ve.add5H(V,_,A,M,Yz[w],Za[w]),L=V|0,B=ve.rotrSH(r,i,28)^ve.rotrBH(r,i,34)^ve.rotrBH(r,i,39),W=ve.rotrSL(r,i,28)^ve.rotrBL(r,i,34)^ve.rotrBL(r,i,39),N=r&s^r&o^s&o,f=i&a^i&l^a&l;_=v|0,b=S|0,v=m|0,S=y|0,m=d|0,y=h|0,{h:d,l:h}=ve.add(u|0,c|0,F|0,L|0),u=o|0,c=l|0,o=s|0,l=a|0,s=r|0,a=i|0;const p=ve.add3L(L,W,f);r=ve.add3H(p,F,B,N),i=p|0}({h:r,l:i}=ve.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:s,l:a}=ve.add(this.Bh|0,this.Bl|0,s|0,a|0),{h:o,l}=ve.add(this.Ch|0,this.Cl|0,o|0,l|0),{h:u,l:c}=ve.add(this.Dh|0,this.Dl|0,u|0,c|0),{h:d,l:h}=ve.add(this.Eh|0,this.El|0,d|0,h|0),{h:m,l:y}=ve.add(this.Fh|0,this.Fl|0,m|0,y|0),{h:v,l:S}=ve.add(this.Gh|0,this.Gl|0,v|0,S|0),{h:_,l:b}=ve.add(this.Hh|0,this.Hl|0,_|0,b|0),this.set(r,i,s,a,o,l,u,c,d,h,m,y,v,S,_,b)}roundClean(){Za.fill(0),Ga.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Qz extends Kp{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class eW extends Kp{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class tW extends Kp{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const iu=lo(()=>new Kp);const Ni=BigInt(0),Br=BigInt(1),Jp=BigInt(2),nW=BigInt(8),rW={zip215:!0};function iW(t){const e=U1(t);return ja(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function H1(t){const e=iW(t),{Fp:n,n:r,prehash:i,hash:s,randomBytes:a,nByteLength:o,h:l}=e,u=Jp<{try{return{isValid:!0,value:n.sqrt(E*n.inv(C))}}catch{return{isValid:!1,value:Ni}}}),h=e.adjustScalarBytes||(E=>E),m=e.domain||((E,C,I)=>{if(C.length||I)throw new Error("Contexts/pre-hash are not supported");return E}),y=E=>typeof E=="bigint"&&Niy(E)&&y(C)&&EE===Ni||v(E,u);function _(E,C){if(v(E,C))return E;throw new Error(`Expected valid scalar < ${C}, got ${typeof E} ${E}`)}function b(E){return E===Ni?E:_(E,r)}const w=new Map;function A(E){if(!(E instanceof O))throw new Error("ExtendedPoint expected")}class O{constructor(C,I,k,g){if(this.ex=C,this.ey=I,this.ez=k,this.et=g,!S(C))throw new Error("x required");if(!S(I))throw new Error("y required");if(!S(k))throw new Error("z required");if(!S(g))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(C){if(C instanceof O)throw new Error("extended point not allowed");const{x:I,y:k}=C||{};if(!S(I)||!S(k))throw new Error("invalid affine point");return new O(I,k,Br,c(I*k))}static normalizeZ(C){const I=n.invertBatch(C.map(k=>k.ez));return C.map((k,g)=>k.toAffine(I[g])).map(O.fromAffine)}_setWindowSize(C){this._WINDOW_SIZE=C,w.delete(this)}assertValidity(){const{a:C,d:I}=e;if(this.is0())throw new Error("bad point: ZERO");const{ex:k,ey:g,ez:R,et:q}=this,X=c(k*k),G=c(g*g),de=c(R*R),we=c(de*de),me=c(X*C),dt=c(de*c(me+G)),Ee=c(we+c(I*c(X*G)));if(dt!==Ee)throw new Error("bad point: equation left != right (1)");const Ne=c(k*g),tt=c(R*q);if(Ne!==tt)throw new Error("bad point: equation left != right (2)")}equals(C){A(C);const{ex:I,ey:k,ez:g}=this,{ex:R,ey:q,ez:X}=C,G=c(I*X),de=c(R*g),we=c(k*X),me=c(q*g);return G===de&&we===me}is0(){return this.equals(O.ZERO)}negate(){return new O(c(-this.ex),this.ey,this.ez,c(-this.et))}double(){const{a:C}=e,{ex:I,ey:k,ez:g}=this,R=c(I*I),q=c(k*k),X=c(Jp*c(g*g)),G=c(C*R),de=I+k,we=c(c(de*de)-R-q),me=G+q,dt=me-X,Ee=G-q,Ne=c(we*dt),tt=c(me*Ee),Ue=c(we*Ee),Ke=c(dt*me);return new O(Ne,tt,Ke,Ue)}add(C){A(C);const{a:I,d:k}=e,{ex:g,ey:R,ez:q,et:X}=this,{ex:G,ey:de,ez:we,et:me}=C;if(I===BigInt(-1)){const Fo=c((R-g)*(de+G)),_t=c((R+g)*(de-G)),nt=c(_t-Fo);if(nt===Ni)return this.double();const Li=c(q*Jp*me),bt=c(X*Jp*we),pt=bt+Li,jo=_t+Fo,fe=bt-Li,wt=c(pt*nt),Su=c(jo*fe),xt=c(pt*fe),Ut=c(nt*jo);return new O(wt,Su,Ut,xt)}const dt=c(g*G),Ee=c(R*de),Ne=c(X*k*me),tt=c(q*we),Ue=c((g+R)*(G+de)-dt-Ee),Ke=tt-Ne,ys=tt+Ne,vt=c(Ee-I*dt),Pt=c(Ue*Ke),xu=c(ys*vt),ft=c(Ue*vt),ht=c(Ke*ys);return new O(Pt,xu,ht,ft)}subtract(C){return this.add(C.negate())}wNAF(C){return V.wNAFCached(this,w,C,O.normalizeZ)}multiply(C){const{p:I,f:k}=this.wNAF(_(C,r));return O.normalizeZ([I,k])[0]}multiplyUnsafe(C){let I=b(C);return I===Ni?U:this.equals(U)||I===Br?this:this.equals(M)?this.wNAF(I).p:V.unsafeLadder(this,I)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return V.unsafeLadder(this,r).is0()}toAffine(C){const{ex:I,ey:k,ez:g}=this,R=this.is0();C==null&&(C=R?nW:n.inv(g));const q=c(I*C),X=c(k*C),G=c(g*C);if(R)return{x:Ni,y:Br};if(G!==Br)throw new Error("invZ was invalid");return{x:q,y:X}}clearCofactor(){const{h:C}=e;return C===Br?this:this.multiplyUnsafe(C)}static fromHex(C,I=!1){const{d:k,a:g}=e,R=n.BYTES;C=qt("pointHex",C,R);const q=C.slice(),X=C[R-1];q[R-1]=X&-129;const G=Fa(q);G===Ni||(I?_(G,u):_(G,n.ORDER));const de=c(G*G),we=c(de-Br),me=c(k*de-g);let{isValid:dt,value:Ee}=d(we,me);if(!dt)throw new Error("Point.fromHex: invalid y coordinate");const Ne=(Ee&Br)===Br,tt=(X&128)!==0;if(!I&&Ee===Ni&&tt)throw new Error("Point.fromHex: x=0 and x_0=1");return tt!==Ne&&(Ee=c(-Ee)),O.fromAffine({x:Ee,y:G})}static fromPrivateKey(C){return B(C).point}toRawBytes(){const{x:C,y:I}=this.toAffine(),k=tu(I,n.BYTES);return k[k.length-1]|=C&Br?128:0,k}toHex(){return Io(this.toRawBytes())}}O.BASE=new O(e.Gx,e.Gy,Br,c(e.Gx*e.Gy)),O.ZERO=new O(Ni,Br,Br,Ni);const{BASE:M,ZERO:U}=O,V=HT(O,o*8);function F(E){return lt(E,r)}function L(E){return F(Fa(E))}function B(E){const C=o;E=qt("private key",E,C);const I=qt("hashed private key",s(E),2*C),k=h(I.slice(0,C)),g=I.slice(C,2*C),R=L(k),q=M.multiply(R),X=q.toRawBytes();return{head:k,prefix:g,scalar:R,point:q,pointBytes:X}}function W(E){return B(E).pointBytes}function N(E=new Uint8Array,...C){const I=Vr(...C);return L(s(m(I,qt("context",E),!!i)))}function f(E,C,I={}){E=qt("message",E),i&&(E=i(E));const{prefix:k,scalar:g,pointBytes:R}=B(C),q=N(I.context,k,E),X=M.multiply(q).toRawBytes(),G=N(I.context,X,R,E),de=F(q+G*g);b(de);const we=Vr(X,tu(de,n.BYTES));return qt("result",we,o*2)}const p=rW;function x(E,C,I,k=p){const{context:g,zip215:R}=k,q=n.BYTES;E=qt("signature",E,2*q),C=qt("message",C),i&&(C=i(C));const X=Fa(E.slice(q,2*q));let G,de,we;try{G=O.fromHex(I,R),de=O.fromHex(E.slice(0,q),R),we=M.multiplyUnsafe(X)}catch{return!1}if(!R&&G.isSmallOrder())return!1;const me=N(g,de.toRawBytes(),G.toRawBytes(),C);return de.add(G.multiplyUnsafe(me)).subtract(we).clearCofactor().equals(O.ZERO)}return M._setWindowSize(8),{CURVE:e,getPublicKey:W,sign:f,verify:x,ExtendedPoint:O,utils:{getExtendedPublicKey:B,randomPrivateKey:()=>a(n.BYTES),precompute(E=8,C=O.BASE){return C._setWindowSize(E),C.multiply(BigInt(3)),C}}}}const hd=BigInt(0),F1=BigInt(1);function sW(t){return ja(t,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...t})}function aW(t){const e=sW(t),{P:n}=e,r=w=>lt(w,n),i=e.montgomeryBits,s=Math.ceil(i/8),a=e.nByteLength,o=e.adjustScalarBytes||(w=>w),l=e.powPminus2||(w=>MT(w,n-BigInt(2),n));function u(w,A,O){const M=r(w*(A-O));return A=r(A-M),O=r(O+M),[A,O]}function c(w){if(typeof w=="bigint"&&hd<=w&&w=hd;p--){const x=M>>p&F1;W^=x,N=u(W,V,L),V=N[0],L=N[1],N=u(W,F,B),F=N[0],B=N[1],W=x;const T=V+F,E=r(T*T),C=V-F,I=r(C*C),k=E-I,g=L+B,R=L-B,q=r(R*T),X=r(g*C),G=q+X,de=q-X;L=r(G*G),B=r(U*r(de*de)),V=r(E*I),F=r(k*(E+r(d*k)))}N=u(W,V,L),V=N[0],L=N[1],N=u(W,F,B),F=N[0],B=N[1];const f=l(F);return r(V*f)}function m(w){return tu(r(w),s)}function y(w){const A=qt("u coordinate",w,s);return a===s&&(A[a-1]&=127),Fa(A)}function v(w){const A=qt("scalar",w);if(A.length!==s&&A.length!==a)throw new Error(`Expected ${s} or ${a} bytes, got ${A.length}`);return Fa(o(A))}function S(w,A){const O=y(A),M=v(w),U=h(O,M);if(U===hd)throw new Error("Invalid private or public key received");return m(U)}const _=m(e.Gu);function b(w){return S(w,_)}return{scalarMult:S,scalarMultBase:b,getSharedSecret:(w,A)=>S(w,A),getPublicKey:w=>b(w),utils:{randomPrivateKey:()=>e.randomBytes(e.nByteLength)},GuBytes:_}}const pd=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),JT=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const YT=BigInt(1),Yp=BigInt(2),oW=BigInt(5),$T=BigInt(10),lW=BigInt(20),uW=BigInt(40),QT=BigInt(80);function eP(t){const e=pd,r=t*t%e*t%e,i=Dt(r,Yp,e)*r%e,s=Dt(i,YT,e)*t%e,a=Dt(s,oW,e)*s%e,o=Dt(a,$T,e)*a%e,l=Dt(o,lW,e)*o%e,u=Dt(l,uW,e)*l%e,c=Dt(u,QT,e)*u%e,d=Dt(c,QT,e)*u%e,h=Dt(d,$T,e)*a%e;return{pow_p_5_8:Dt(h,Yp,e)*t%e,b2:r}}function tP(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function cW(t,e){const n=pd,r=lt(e*e*e,n),i=lt(r*r*e,n),s=eP(t*i).pow_p_5_8;let a=lt(t*r*s,n);const o=lt(e*a*a,n),l=a,u=lt(a*JT,n),c=o===t,d=o===lt(-t,n),h=o===lt(-t*JT,n);return c&&(a=l),(d||h)&&(a=u),wz(a,n)&&(a=lt(-a,n)),{isValid:c||d,value:a}}const se=UT(pd,void 0,!0),j1={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:se,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:iu,randomBytes:Bg,adjustScalarBytes:tP,uvRatio:cW},$p=H1(j1);function nP(t,e,n){if(e.length>255)throw new Error("Context is too big");return Xx(Gx("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}({...j1},{...j1});const dW=(se.ORDER+BigInt(3))/BigInt(8),fW=se.pow(Yp,dW),rP=se.sqrt(se.neg(se.ONE)),hW=(se.ORDER-BigInt(5))/BigInt(8),iP=BigInt(486662);function pW(t){let e=se.sqr(t);e=se.mul(e,Yp);let n=se.add(e,se.ONE),r=se.neg(iP),i=se.sqr(n),s=se.mul(i,n),a=se.mul(e,iP);a=se.mul(a,r),a=se.add(a,i),a=se.mul(a,r);let o=se.sqr(s);i=se.sqr(o),o=se.mul(o,s),o=se.mul(o,a),i=se.mul(i,o);let l=se.pow(i,hW);l=se.mul(l,o);let u=se.mul(l,rP);i=se.sqr(l),i=se.mul(i,s);let c=se.eql(i,a),d=se.cmov(u,l,c),h=se.mul(r,e),m=se.mul(l,t);m=se.mul(m,fW);let y=se.mul(m,rP),v=se.mul(a,e);i=se.sqr(m),i=se.mul(i,s);let S=se.eql(i,v),_=se.cmov(y,m,S);i=se.sqr(d),i=se.mul(i,s);let b=se.eql(i,a),w=se.cmov(h,r,b),A=se.cmov(_,d,b),O=se.isOdd(A);return A=se.cmov(A,se.neg(A),b!==O),{xMn:w,xMd:n,yMn:A,yMd:YT}}const mW=Cz(se,se.neg(BigInt(486664)));function gW(t){const{xMn:e,xMd:n,yMn:r,yMd:i}=pW(t);let s=se.mul(e,i);s=se.mul(s,mW);let a=se.mul(n,r),o=se.sub(e,n),l=se.add(e,n),u=se.mul(a,l),c=se.eql(u,se.ZERO);s=se.cmov(s,se.ZERO,c),a=se.cmov(a,se.ONE,c),o=se.cmov(o,se.ONE,c),l=se.cmov(l,se.ONE,c);const d=se.invertBatch([a,l]);return{x:se.mul(s,d[0]),y:se.mul(o,d[1])}}BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function z1(t,e){if(!vn||!e&&wn()){const r=U9(t);return{publicKey:r.slice(32),secretKey:r.slice(0,64)}}const n=$p.getPublicKey(t);return{publicKey:n,secretKey:Zn([t,n])}}function yW(t,{publicKey:e,secretKey:n},r){if(n){if(!e)throw new Error("Expected a valid publicKey")}else throw new Error("Expected a valid secretKey");const i=K(t),s=n.subarray(0,32);return!vn||!r&&wn()?V9(e,s,i):$p.sign(i,s)}function sP(t,e,n,r){const i=K(t),s=K(n),a=K(e);if(s.length!==32)throw new Error(`Invalid publicKey, received ${s.length}, expected 32`);if(a.length!==64)throw new Error(`Invalid signature, received ${a.length} bytes, expected 64`);try{return!vn||!r&&wn()?B9(a,i,s):$p.verify(a,i,s)}catch{return!1}}const vW=XT(z1,Kz),W1=64,q1=W1+32;function aP(t){const e=K(t);if(e.length!==q1)throw new Error(`Expected keypair with ${q1} bytes, found ${e.length}`);return{publicKey:e.slice(W1,q1),secretKey:e.slice(0,W1)}}function _W({publicKey:t,secretKey:e}){return ot(e,t).slice()}function oP(t){return(e,n)=>{if(!he(n)||n.length!==32)throw new Error("Invalid chainCode passed to derive");return aP(t(_W(e),n))}}const bW=oP(q9),wW=oP(Z9);function xW(t,{chainCode:e,isSoft:n}){return n?wW(t,e):bW(t,e)}const SW={ecdsa:KT,ed25519:vW,ethereum:KT,sr25519:xW};function lP(t,e,n){const r=SW[n];let i=t;for(const s of e)i=r(i,s);return i}function uP(t){const e=K(t);if(e.length!==32)throw new Error(`Expected a seed matching 32 bytes, found ${e.length}`);return aP(G9(e))}function EW(t,{publicKey:e,secretKey:n}){if((e==null?void 0:e.length)!==32)throw new Error("Expected a valid publicKey, 32-bytes");if((n==null?void 0:n.length)!==64)throw new Error("Expected a valid secretKey, 64-bytes");return X9(e,n,K(t))}function cP(t,e,n){const r=K(n),i=K(e);if(r.length!==32)throw new Error(`Invalid publicKey, received ${r.length} bytes, expected 32`);if(i.length!==64)throw new Error(`Invalid signature, received ${i.length} bytes, expected 64`);return K9(i,K(t),r)}const dP=new Uint8Array;function CW(t,{secretKey:e},n=dP,r=dP){if((e==null?void 0:e.length)!==64)throw new Error("Invalid secretKey, expected 64-bytes");return J9(e,K(n),K(t),K(r))}const fP=new Uint8Array;function kW(t,e,n,r=fP,i=fP){const s=K(n),a=K(e);if(s.length!==32)throw new Error("Invalid publicKey, expected 32-bytes");if(a.length!==96)throw new Error("Invalid vrfSign output, expected 96 bytes");return Y9(s,K(r),K(t),K(i),a)}function Qp(t,e=zp.prefix){const n=_r(t);if(e<0||e>16383||[46,47].includes(e))throw new Error("Out of range ss58Format specified");if(!zp.allowedDecodedLengths.includes(n.length))throw new Error(`Expected a valid key to convert, with length ${zp.allowedDecodedLengths.join(", ")}`);const r=ot(e<64?[e]:[(e&252)>>2|64,e>>8|(e&3)<<6],n);return Lj(ot(r,wT(r).subarray(0,[32,33].includes(n.length)?2:1)))}const[hP,pP,mP]=[[],[],[]],TW=BigInt(0),md=BigInt(1),PW=BigInt(2),AW=BigInt(7),NW=BigInt(256),RW=BigInt(113);for(let t=0,e=md,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],hP.push(2*(5*r+n)),pP.push((t+1)*(t+2)/2%64);let i=TW;for(let s=0;s<7;s++)e=(e<>AW)*RW)%NW,e&PW&&(i^=md<<(md<n>32?e2(t,e,n):$x(t,e,n),yP=(t,e,n)=>n>32?t2(t,e,n):Qx(t,e,n);function MW(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let a=0;a<10;a++)n[a]=t[a]^t[a+10]^t[a+20]^t[a+30]^t[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,l=(a+2)%10,u=n[l],c=n[l+1],d=gP(u,c,1)^n[o],h=yP(u,c,1)^n[o+1];for(let m=0;m<50;m+=10)t[a+m]^=d,t[a+m+1]^=h}let i=t[2],s=t[3];for(let a=0;a<24;a++){const o=pP[a],l=gP(i,s,o),u=yP(i,s,o),c=hP[a];i=t[c],s=t[c+1],t[c]=l,t[c+1]=u}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)n[o]=t[a+o];for(let o=0;o<10;o++)t[a+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=IW[r],t[1]^=OW[r]}n.fill(0)}class em extends vf{constructor(e,n,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Wn(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=oa(this.state)}keccak(){MW(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){aa(this);const{blockLen:n,state:r}=this;e=Xr(e);const i=e.length;for(let s=0;s=r&&this.keccak();const a=Math.min(r-this.posOut,s-i);e.set(n.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Wn(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ug(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:i,rounds:s,enableXOF:a}=this;return e||(e=new em(n,r,i,a,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=i,e.enableXOF=a,e.destroyed=this.destroyed,e}}const Xa=(t,e,n)=>lo(()=>new em(e,t,n)),LW=Xa(1,136,256/8),DW=Xa(1,72,512/8),vP=(t,e,n)=>gO((r={})=>new em(e,t,r.dkLen===void 0?n:r.dkLen,!0)),gd=q2({256:tL,512:nL},{256:LW,512:DW});function Z1(t,e,n){return t==="keccak"?gd(e,void 0,n):kr(e,void 0,void 0,n)}const G1={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",coder:Ij,type:"base64",withPadding:!0},UW=vT(G1,bT(G1)),VW=_T(G1);function _P(t,e){if(![33,65].includes(t.length))throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);return t.length===33?t:!vn||!e&&wn()?F9(t):nu.ProjectivePoint.fromHex(t).toRawBytes(!0)}function X1(t,e){if(![33,65].includes(t.length))throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);if(t.length===65)return t.subarray(1);if(!vn||!e&&wn())return j9(t).subarray(1);const{px:n,py:r}=nu.ProjectivePoint.fromHex(t);return ot(Pn(n,Yl),Pn(r,Yl))}function BW(t,e,n,r="blake2",i){const s=K(e).subarray(0,64),a=K(t),o=!vn||!i&&wn()?z9(a,s,n):nu.Signature.fromCompact(s).addRecoveryBit(n).recoverPublicKey(a).toRawBytes();if(!o)throw new Error("Unable to recover publicKey from signature");return r==="keccak"?X1(o,i):_P(o,i)}function bP(t,{secretKey:e},n="blake2",r){if((e==null?void 0:e.length)!==32)throw new Error("Expected valid secp256k1 secretKey, 32-bytes");const i=Z1(n,t,r);if(!vn||!r&&wn())return W9(i,e);const s=nu.sign(i,e,{lowS:!0});return ot(Pn(s.r,Yl),Pn(s.s,Yl),new Uint8Array([s.recovery||0]))}const wP="ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g,""),K1=ae(`0x${wP}`),J1=new te(wP,"hex");function HW(t,e){let n=qd(e,ET);if(n>=K1)throw new Error("Tweak parameter is out of range");if(n+=qd(t,ET),n>=K1&&(n-=K1),n===no)throw new Error("Invalid resulting private key");return Yg(n,Yl)}function FW(t,e){const n=new te(e);if(n.cmp(J1)>=0)throw new Error("Tweak parameter is out of range");if(n.iadd(new te(t)),n.cmp(J1)>=0&&n.isub(J1),n.isZero())throw new Error("Invalid resulting private key");return Pn(n,Yl)}function jW(t,e,n){if(!he(t)||t.length!==32)throw new Error("Expected seckey to be an Uint8Array with length 32");if(!he(e)||e.length!==32)throw new Error("Expected tweak to be an Uint8Array with length 32");return!vn||n?FW(t,e):HW(t,e)}function zW(t,e,n,r="blake2",i){const s=K(e);if(s.length!==65)throw new Error(`Expected signature with 65 bytes, ${s.length} found instead`);const a=BW(Z1(r,t),s,s[64],r,i),o=Z1(r,a,i),l=K(n);return Gn(a,l)||(r==="keccak"?Gn(o.slice(-20),l.slice(-20)):Gn(o,l))}function WW(t){return[33,65].includes(t.length)&&(t=gd(X1(t))),t.slice(-20)}function Y1(t){if(!t)return"0x";const e=K(t);if(![20,32,33,65].includes(e.length))throw new Error(`Invalid address or publicKey provided, received ${e.length} bytes input`);const n=Ae(WW(e),-1,!1),r=Ae(gd(n),-1,!1);let i="";for(let s=0;s<40;s++)i=`${i}${parseInt(r[s],16)>7?n[s].toUpperCase():n[s]}`;return`0x${i}`}function qW(t,e){return t!==(e>7?t.toUpperCase():t.toLowerCase())}function ZW(t){const e=t.replace("0x",""),n=Ae(gd(e.toLowerCase()),-1,!1);for(let r=0;r<40;r++)if(qW(e[r],parseInt(n[r],16)))return!1;return!0}function GW(t){return!t||t.length!==42||!Oe(t)?!1:/^(0x)?[0-9a-f]{40}$/.test(t)||/^(0x)?[0-9A-F]{40}$/.test(t)?!0:ZW(t)}const XW={256:$l,512:iu},KW={256:Q9,512:eL};function xP(t,e,n=256,r){const i=K(t);return!vn||!r&&wn()?KW[n](i,e):Xp(XW[n],i,e)}const $1=2147483648;function JW(t){if(!t.startsWith("m/"))return!1;const e=t.split("/").slice(1);for(const n of e){const r=/^\d+'?$/.test(n)?parseInt(n.replace(/'$/,""),10):Number.NaN;if(isNaN(r)||r>=$1||r<0)return!1}return!0}const YW=Nt("Bitcoin seed");function SP(t,e){return{chainCode:e,publicKey:ru(t).publicKey,secretKey:t}}function EP(t,e){const n=Pn(e,Kj),r=e>=$1?ot(new Uint8Array(1),t.secretKey,n):ot(t.publicKey,n);try{const i=xP(t.chainCode,r,512);return SP(jW(t.secretKey,i.slice(0,32)),i.slice(32))}catch{return EP(t,e+1)}}function $W(t,e=""){const n=xP(YW,t,512);let r=SP(n.slice(0,32),n.slice(32));if(!e||e==="m"||e==="M"||e==="m'"||e==="M'")return r;if(!JW(e))throw new Error("Invalid derivation path");const i=e.split("/").slice(1);for(const s of i)r=EP(r,parseInt(s,10)+(s.length>1&&s.endsWith("'")?$1:0));return r}function QW(t,e,n,r){qx(t);const i=Kx({dkLen:32,asyncTick:10},r),{c:s,dkLen:a,asyncTick:o}=i;if(Wn(s),Wn(a),Wn(o),s<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=Xr(e),u=Xr(n),c=new Uint8Array(a),d=Xp.create(t,l),h=d._cloneInto().update(u);return{c:s,dkLen:a,asyncTick:o,DK:c,PRF:d,PRFSalt:h}}function eq(t,e,n,r,i){return t.destroy(),e.destroy(),r&&r.destroy(),i.fill(0),n}function Q1(t,e,n,r){const{c:i,dkLen:s,DK:a,PRF:o,PRFSalt:l}=QW(t,e,n,r);let u;const c=new Uint8Array(4),d=yf(c),h=new Uint8Array(o.outputLen);for(let m=1,y=0;ye.toString(2).padStart(8,"0")).join("")}function RP(t){return NP(Array.from(tq(t))).slice(0,t.length*8/32)}function IP(t,e){return CP(Nt(e_(t)),Nt(`mnemonic${e_(e)}`)).password}function OP(t,e=kP){const n=e_(t).split(" ");if(n.length%3!==0)throw new Error(TP);const r=n.map(c=>{const d=e.indexOf(c);if(d===-1)throw new Error(TP);return d.toString(2).padStart(11,"0")}).join(""),i=Math.floor(r.length/33)*32,s=r.slice(0,i),a=r.slice(i),o=s.match(/(.{1,8})/g),l=o==null?void 0:o.map(AP);if(!l||l.length%4!==0||l.length<16||l.length>32)throw new Error(PP);const u=K(l);if(RP(u)!==a)throw new Error(nq);return u}function rq(t,e=kP){if(t.length%4!==0||t.length<16||t.length>32)throw new Error(PP);const n=`${NP(Array.from(t))}${RP(t)}`.match(/(.{1,11})/g),r=n==null?void 0:n.map(i=>e[AP(i)]);if(!r||r.length<12)throw new Error("Unable to map entropy to mnemonic");return r.join(" ")}function iq(t,e){try{OP(t,e)}catch{return!1}return!0}function sq(t,e,n){return!vn||!e&&!n&&wn()?O9(t):OP(t,e)}function t_(t,e,n){return!vn||!e&&!n&&wn()?D9(t):iq(t,e)}function aq(t,e="",n,r=32){if(t_(t)){if(![32,64].includes(r))throw new Error(`Invalid seed length ${r}, expected 32 or 64`)}else throw new Error("Invalid bip39 mnemonic specified");return r===32?!vn||!n&&wn()?L9(t,e):IP(t,e).subarray(0,32):IP(t,e)}function oq(t,e="",n,r){if(t_(t,n,r)){if(!n&&!r&&wn())return M9(t,e)}else throw new Error("Invalid bip39 mnemonic specified");const i=sq(t,n),s=Nt(`mnemonic${e}`);return CP(i,s).password.slice(0,32)}function tm(t,e){return t<>>32-e}function su(t,e){let n=t[e+3]&255;return n=n<<8|t[e+2]&255,n=n<<8|t[e+1]&255,n<<8|t[e+0]&255}function n_(t,e,n){for(let r=0;r<4;r++)t[e+r]=n&255,n>>>=8}function lq(t,e,n,r,i){let s=0;for(let a=0;a>>8)-1}function r_(t,e,n,r,i){const s=new Uint32Array(16),a=new Uint32Array(16),o=new Uint32Array(16),l=new Uint32Array(4);let u,c,d;for(u=0;u<4;u++)a[5*u]=su(r,4*u),a[1+u]=su(n,4*u),a[6+u]=su(e,4*u),a[11+u]=su(n,16+4*u);for(u=0;u<16;u++)o[u]=a[u];for(u=0;u<20;u++){for(c=0;c<4;c++){for(d=0;d<4;d++)l[d]=a[(5*c+4*d)%16];for(l[1]^=tm(l[0]+l[3]|0,7),l[2]^=tm(l[1]+l[0]|0,9),l[3]^=tm(l[2]+l[1]|0,13),l[0]^=tm(l[3]+l[2]|0,18),d=0;d<4;d++)s[4*c+(c+d)%4]=l[d]}for(d=0;d<16;d++)a[d]=s[d]}if(i){for(u=0;u<16;u++)a[u]=a[u]+o[u]|0;for(u=0;u<4;u++)a[5*u]=a[5*u]-su(r,4*u)|0,a[6+u]=a[6+u]-su(e,4*u)|0;for(u=0;u<4;u++)n_(t,4*u,a[5*u]),n_(t,16+4*u,a[6+u])}else for(u=0;u<16;u++)n_(t,4*u,a[u]+o[u]|0)}const i_=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function uq(t,e,n,r,i,s,a){const o=new Uint8Array(16),l=new Uint8Array(64);let u,c;if(!i)return 0;for(c=0;c<16;c++)o[c]=0;for(c=0;c<8;c++)o[c]=s[c];for(;i>=64;){for(r_(l,o,a,i_,!1),c=0;c<64;c++)t[e+c]=(n?n[r+c]:0)^l[c];for(u=1,c=8;c<16;c++)u=u+(o[c]&255)|0,o[c]=u&255,u>>>=8;i-=64,e+=64,n&&(r+=64)}if(i>0)for(r_(l,o,a,i_,!1),c=0;c>>=8}const cq=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]);function MP(t,e,n,r,i,s){let a,o,l;const u=new Uint32Array(17),c=new Uint32Array(17),d=new Uint32Array(17),h=new Uint32Array(17),m=new Uint32Array(17);for(o=0;o<17;o++)c[o]=d[o]=0;for(o=0;o<16;o++)c[o]=s[o];for(c[3]&=15,c[4]&=252,c[7]&=15,c[8]&=252,c[11]&=15,c[12]&=252,c[15]&=15;i>0;){for(o=0;o<17;o++)h[o]=0;for(o=0;o<16&&o>>=8;for(l=l+d[16]|0,d[16]=l&3,l=5*(l>>>2)|0,o=0;o<16;o++)l=l+d[o]|0,d[o]=l&255,l>>>=8;l=l+d[16]|0,d[16]=l}for(o=0;o<17;o++)m[o]=d[o];a_(d,cq);const y=-(d[16]>>>7)|0;for(o=0;o<17;o++)d[o]^=y&(m[o]^d[o]);for(o=0;o<16;o++)h[o]=s[o+16];for(h[16]=0,a_(d,h),o=0;o<16;o++)t[e+o]=d[o];return 0}function dq(t,e,n,r,i,s){const a=new Uint8Array(16);return MP(a,0,n,r,i,s),lq(t,e,a,0,16)}function fq(t,e,n,r,i){if(n<32)return-1;s_(t,0,e,0,n,r,i),MP(t,16,t,32,n-32,t);for(let s=0;s<16;s++)t[s]=0;return 0}function hq(t,e,n,r,i){const s=new Uint8Array(32);if(n<32||(s_(s,0,null,0,32,r,i),dq(e,16,e,32,n-32,s)!==0))return-1;s_(t,0,e,0,n,r,i);for(let a=0;a<32;a++)t[a]=0;return 0}const pq=32,mq=24,o_=32,l_=16;function LP(t,e){if(t.length!==pq)throw new Error("bad key size");if(e.length!==mq)throw new Error("bad nonce size")}function DP(...t){for(let e=0,n=t.length;et<>>32-e;function UP(t,e,n,r,i,s){let a=t[e++]^n[r++],o=t[e++]^n[r++],l=t[e++]^n[r++],u=t[e++]^n[r++],c=t[e++]^n[r++],d=t[e++]^n[r++],h=t[e++]^n[r++],m=t[e++]^n[r++],y=t[e++]^n[r++],v=t[e++]^n[r++],S=t[e++]^n[r++],_=t[e++]^n[r++],b=t[e++]^n[r++],w=t[e++]^n[r++],A=t[e++]^n[r++],O=t[e++]^n[r++],M=a,U=o,V=l,F=u,L=c,B=d,W=h,N=m,f=y,p=v,x=S,T=_,E=b,C=w,I=A,k=O;for(let g=0;g<8;g+=2)L^=ze(M+E|0,7),f^=ze(L+M|0,9),E^=ze(f+L|0,13),M^=ze(E+f|0,18),p^=ze(B+U|0,7),C^=ze(p+B|0,9),U^=ze(C+p|0,13),B^=ze(U+C|0,18),I^=ze(x+W|0,7),V^=ze(I+x|0,9),W^=ze(V+I|0,13),x^=ze(W+V|0,18),F^=ze(k+T|0,7),N^=ze(F+k|0,9),T^=ze(N+F|0,13),k^=ze(T+N|0,18),U^=ze(M+F|0,7),V^=ze(U+M|0,9),F^=ze(V+U|0,13),M^=ze(F+V|0,18),W^=ze(B+L|0,7),N^=ze(W+B|0,9),L^=ze(N+W|0,13),B^=ze(L+N|0,18),T^=ze(x+p|0,7),f^=ze(T+x|0,9),p^=ze(f+T|0,13),x^=ze(p+f|0,18),E^=ze(k+I|0,7),C^=ze(E+k|0,9),I^=ze(C+E|0,13),k^=ze(I+C|0,18);i[s++]=a+M|0,i[s++]=o+U|0,i[s++]=l+V|0,i[s++]=u+F|0,i[s++]=c+L|0,i[s++]=d+B|0,i[s++]=h+W|0,i[s++]=m+N|0,i[s++]=y+f|0,i[s++]=v+p|0,i[s++]=S+x|0,i[s++]=_+T|0,i[s++]=b+E|0,i[s++]=w+C|0,i[s++]=A+I|0,i[s++]=O+k|0}function u_(t,e,n,r,i){let s=r+0,a=r+16*i;for(let o=0;o<16;o++)n[a+o]=t[e+(2*i-1)*16+o];for(let o=0;o0&&(a+=16),UP(n,s,t,e+=16,n,a)}function bq(t,e,n){const r=Kx({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:i,r:s,p:a,dkLen:o,asyncTick:l,maxmem:u,onProgress:c}=r;if(Wn(i),Wn(s),Wn(a),Wn(o),Wn(l),Wn(u),c!==void 0&&typeof c!="function")throw new Error("progressCb should be function");const d=128*s,h=d/4;if(i<=1||i&i-1||i>=2**(d/8)||i>4294967296)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(a<0||a>137438953440/d)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const m=d*(i+a);if(m>u)throw new Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${u} (maxmem)`);const y=Q1($l,t,e,{c:1,dkLen:d*a}),v=oa(y),S=oa(new Uint8Array(d*i)),_=oa(new Uint8Array(d));let b=()=>{};if(c){const w=2*i*a,A=Math.max(Math.floor(w/1e4),1);let O=0;b=()=>{O++,c&&(!(O%A)||O===w)&&c(O/w)}}return{N:i,r:s,p:a,dkLen:o,blockSize32:h,V:S,B32:v,B:y,tmp:_,blockMixCb:b,asyncTick:l}}function wq(t,e,n,r,i){const s=Q1($l,t,n,{c:1,dkLen:e});return n.fill(0),r.fill(0),i.fill(0),s}function xq(t,e,n){const{N:r,r:i,p:s,dkLen:a,blockSize32:o,V:l,B32:u,B:c,tmp:d,blockMixCb:h}=bq(t,e,n);for(let m=0;m(e,n,r)=>zW(e,n,r,t),jP=[["ecdsa",FP("blake2")],["ethereum",FP("keccak")]],Nq=[["ed25519",sP],["sr25519",cP],...jP],Rq=["ed25519","sr25519","ecdsa"];function zP(t,{message:e,publicKey:n,signature:r},i=Nq){return t.isValid=i.some(([s,a])=>{try{if(a(e,r,n))return t.crypto=s,!0}catch{}return!1}),t}function Iq(t,{message:e,publicKey:n,signature:r}){if(![0,1,2].includes(r[0]))throw new Error(`Unknown crypto type, expected signature prefix [0..2], found ${r[0]}`);const i=Rq[r[0]]||"none";t.crypto=i;try{t.isValid={ecdsa:()=>zP(t,{message:e,publicKey:n,signature:r.subarray(1)},jP).isValid,ed25519:()=>sP(e,r.subarray(1),n),none:()=>{throw Error("no verify for `none` crypto type")},sr25519:()=>cP(e,r.subarray(1),n)}[i]()}catch{}return t}function Oq(t){return[0,1,2].includes(t[0])&&[65,66].includes(t.length)?Iq:zP}function WP(t,e,n){const r=K(e);if(![64,65,66].includes(r.length))throw new Error(`Invalid signature length, expected [64..66] bytes, found ${r.length}`);const i=_r(n),s={message:K(t),publicKey:i,signature:r},a={crypto:"none",isValid:!1,isWrapped:Xu(s.message,!0),publicKey:i},o=Xu(s.message,!1),l=Oq(r);return l(a,s),a.crypto!=="none"||a.isWrapped&&!o?a:(s.message=o?h2(s.message):p2(s.message),l(a,s))}const ur=ae("11400714785074694791"),ds=ae("14029467366897019727"),qP=ae("1609587929392839161"),yd=ae("9650029242287828579"),ZP=ae("2870177450012600261"),Fs=ae("0xffffffffffffffff"),Mq=ae(7),Lq=ae(11),Dq=ae(12),Uq=ae(16),Vq=ae(18),Bq=ae(23),Hq=ae(27),Fq=ae(29),au=ae(31),jq=ae(32),zq=ae(33),Wq=ae(64),GP=ae(256);function Hr(t,e){const n=t&Fs;return(n<>Wq-e)&Fs}function c_(t,e,n){const r=new Array(n);let i=0;for(let a=0;a=0;a--)s=(s<=0){const s=a=>ur*Hr(a+ds*c_(e,i,4),au);do n.v1=s(n.v1),i+=8,n.v2=s(n.v2),i+=8,n.v3=s(n.v3),i+=8,n.v4=s(n.v4),i+=8;while(i<=r)}return i=32?((((Hr(s,$s)+Hr(a,Mq)+Hr(o,Dq)+Hr(l,Vq)^ur*Hr(s*ds,au))*ur+yd^ur*Hr(a*ds,au))*ur+yd^ur*Hr(o*ds,au))*ur+yd^ur*Hr(l*ds,au))*ur+yd:n+ZP);for(;u<=i-8;)c=Fs&yd+ur*Hr(c^ur*Hr(ds*c_(r,u,4),au),Hq),u+=8;for(u+4<=i&&(c=Fs&qP+ds*Hr(c^ur*c_(r,u,2),Bq),u+=4);u>zq),c=Fs&qP*(c^c>>Fq),c=Fs&(c^c>>jq);const d=new Uint8Array(8);for(let h=7;h>=0;h--)d[h]=Number(c%GP),c=c/GP;return d}function ou(t,e=64,n){const r=Math.ceil(e/64),i=K(t);if(!vn||!n&&wn())return oL(i,r);const s=new Uint8Array(r*8);for(let a=0;a{document.readyState==="complete"?e(t()):window.addEventListener("load",()=>e(t()))})}const rm=window;rm.injectedWeb3=rm.injectedWeb3||{},KP();let XP=null;function KP(){return Object.values(rm.injectedWeb3).filter(({connect:t,enable:e})=>!!(t||e)).length!==0}function Xq(t){return Promise.all(Object.entries(rm.injectedWeb3).map(([e,{connect:n,enable:r,version:i}])=>Promise.resolve().then(()=>n?n(t):r?r(t).then(s=>ne({name:e,version:i||"unknown"},s)):Promise.reject(new Error("No connect(..) or enable(...) hook found"))).catch(({message:s})=>{}))).then(e=>e.filter(n=>!!n))}function Kq(t,e=[]){if(!t)throw new Error("You must pass a name for your app to the web3Enable function");const n=e.length?Promise.all(e.map(r=>r().catch(()=>!1))):Promise.resolve([!0]);return XP=Gq(()=>n.then(()=>Xq(t).then(r=>r.map(i=>(i.accounts.subscribe||(i.accounts.subscribe=s=>(i.accounts.get().then(s).catch(console.error),()=>{})),i))).catch(()=>[]).then(r=>{const i=r.map(({name:s,version:a})=>`${s}/${a}`);return KP(),r}))),XP}function Hn(t,e,n){return ah.call(e,"css")?ee.jsx(eE,QS(t,e),n):ee.jsx(t,e,n)}function lu(t,e,n){return ah.call(e,"css")?ee.jsxs(eE,QS(t,e),n):ee.jsxs(t,e,n)}class d_ extends Error{constructor(e){super(e||"No account found")}}class Jq extends Error{constructor(e){super(e||"No extensions found")}}class JP{}class Yq extends JP{async getAccount(e){const{dappName:n,userAccountAddress:r}=e;if(!r)throw new d_("No account address provided");const i=await Kq(n);if(i.length===0)throw new Jq;for(const s of i){const o=(await s.accounts.get()).find(l=>l.address===r);if(o)return{account:o,extension:s}}throw new d_("No account found matching "+r)}}const YP={name:"@polkadot/api",path:{url:Ie&&Ie.src||new URL("procaptcha.bundle.js",document.baseURI).href}&&(Ie&&Ie.src||new URL("procaptcha.bundle.js",document.baseURI).href)?new URL(Ie&&Ie.src||new URL("procaptcha.bundle.js",document.baseURI).href).pathname.substring(0,new URL(Ie&&Ie.src||new URL("procaptcha.bundle.js",document.baseURI).href).pathname.lastIndexOf("/")+1):"auto",type:"esm",version:"10.11.1"};function $P(t,e){return t.findMetaCall(K(e))}function QP(t,e){return t.findMetaError(K(e))}function yt(t){return typeof t=="function"}function f_(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var h_=f_(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription: +`+n.map(function(r,i){return i+1+") "+r.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=n}});function im(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var js=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=$o(a),l=o.next();!l.done;l=o.next()){var u=l.value;u.remove(this)}}catch(v){e={error:v}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(yt(c))try{c()}catch(v){s=v instanceof h_?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=$o(d),m=h.next();!m.done;m=h.next()){var y=m.value;try{nA(y)}catch(v){s=s??[],v instanceof h_?s=qi(qi([],sa(s)),sa(v.errors)):s.push(v)}}}catch(v){r={error:v}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(s)throw new h_(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)nA(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&im(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&im(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),eA=js.EMPTY;function tA(t){return t instanceof js||t&&"closed"in t&&yt(t.remove)&&yt(t.add)&&yt(t.unsubscribe)}function nA(t){yt(t)?t():t.unsubscribe()}var rA={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},p_={setTimeout:function(t,e){for(var n=[],r=2;r0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,s=i.hasError,a=i.isStopped,o=i.observers;return s||a?eA:(this.currentObservers=null,o.push(n),new js(function(){r.currentObservers=null,im(o,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r.thrownError,a=r.isStopped;i?n.error(s):a&&n.complete()},e.prototype.asObservable=function(){var n=new En;return n.source=this,n},e.create=function(n,r){return new lA(n,r)},e}(En),lA=function(t){Er(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:eA},e}(lm),uA=function(t){Er(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,s=n._value;if(r)throw i;return this._throwIfClosed(),s},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(lm),__={now:function(){return(__.delegate||Date).now()},delegate:void 0},lZ=function(t){Er(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=__);var s=t.call(this)||this;return s._bufferSize=n,s._windowTime=r,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,n),s._windowTime=Math.max(1,r),s}return e.prototype.next=function(n){var r=this,i=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,o=r._timestampProvider,l=r._windowTime;i||(s.push(n),!a&&s.push(o.now()+l)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,s=i._infiniteTimeWindow,a=i._buffer,o=a.slice(),l=0;l0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=cm.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,r,i){var s;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var a=n.actions;r!=null&&((s=a[a.length-1])===null||s===void 0?void 0:s.id)!==r&&(cm.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},e}(cZ),fA=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=__.now,t}(),mZ=function(t){Er(e,t);function e(n,r){r===void 0&&(r=fA.now);var i=t.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},e}(fA),gZ=function(t){Er(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,s;n=n||i.shift();do if(s=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,s){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw s}},e}(mZ),yZ=new gZ(pZ),hA=new En(function(t){return t.complete()});function vZ(t){return t&&yt(t.schedule)}function pA(t){return t[t.length-1]}function _Z(t){return yt(pA(t))?t.pop():void 0}function dm(t){return vZ(pA(t))?t.pop():void 0}var mA=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function gA(t){return yt(t==null?void 0:t.then)}function yA(t){return yt(t[y_])}function vA(t){return Symbol.asyncIterator&&yt(t==null?void 0:t[Symbol.asyncIterator])}function _A(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function bZ(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var bA=bZ();function wA(t){return yt(t==null?void 0:t[bA])}function xA(t){return rO(this,arguments,function(){var n,r,i,s;return gi(this,function(a){switch(a.label){case 0:n=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Qo(n.read())];case 3:return r=a.sent(),i=r.value,s=r.done,s?[4,Qo(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Qo(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function SA(t){return yt(t==null?void 0:t.getReader)}function Ka(t){if(t instanceof En)return t;if(t!=null){if(yA(t))return wZ(t);if(mA(t))return xZ(t);if(gA(t))return SZ(t);if(vA(t))return EA(t);if(wA(t))return EZ(t);if(SA(t))return CZ(t)}throw _A(t)}function wZ(t){return new En(function(e){var n=t[y_]();if(yt(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xZ(t){return new En(function(e){for(var n=0;n=2,!1,!0))}var JZ=function(t,e){return t.push(e),t};function YZ(){return Fn(function(t,e){KZ(JZ,[])(t).subscribe(e)})}function $Z(t){return new En(function(e){return t.subscribe(e)})}var QZ={connector:function(){return new lm}};function eG(t,e){e===void 0&&(e=QZ);var n=e.connector;return Fn(function(r,i){var s=n();Ka(t($Z(s))).subscribe(i),i.add(r.subscribe(s))})}function tG(t){return Fn(function(e,n){var r=!1;e.subscribe(jn(n,function(i){r=!0,n.next(i)},function(){r||n.next(t),n.complete()}))})}function nG(t){return t<=0?function(){return hA}:Fn(function(e,n){var r=0;e.subscribe(jn(n,function(i){++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function rG(t,e){return e===void 0&&(e=Lo),t=t??iG,Fn(function(n,r){var i,s=!0;n.subscribe(jn(r,function(a){var o=e(a);(s||!t(i,o))&&(s=!1,i=o,r.next(a))}))})}function iG(t,e){return t===e}function sG(t){return t===void 0&&(t=aG),Fn(function(e,n){var r=!1;e.subscribe(jn(n,function(i){r=!0,n.next(i)},function(){return r?n.complete():n.error(t())}))})}function aG(){return new x_}function NA(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?GZ(function(i,s){return t(i,s,r)}):Lo,nG(1),n?tG(e):sG(function(){return new x_}))}}function oG(t,e){var n=yt(t)?t:function(){return t};return yt(e)?eG(e,{connector:n}):function(r){return new aZ(r,n)}}function RA(t,e,n,r){n&&!yt(n)&&(r=n);var i=yt(n)?n:void 0;return function(s){return oG(new lZ(t,e,r),i)(s)}}function lG(){for(var t=[],e=0;e"},metadata_versions:{description:"Returns the supported metadata versions.",params:[],type:"Vec"},...IA},version:2},{methods:{...IA},version:1}]},dG={ErrorMetadataV9:{name:"Text",docs:"Vec"},EventMetadataV9:{name:"Text",args:"Vec",docs:"Vec"},FunctionArgumentMetadataV9:{name:"Text",type:"Type"},FunctionMetadataV9:{name:"Text",args:"Vec",docs:"Vec"},MetadataV9:{modules:"Vec"},ModuleConstantMetadataV9:{name:"Text",type:"Type",value:"Bytes",docs:"Vec"},ModuleMetadataV9:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryMetadataV9:{name:"Text",modifier:"StorageEntryModifierV9",type:"StorageEntryTypeV9",fallback:"Bytes",docs:"Vec"},StorageEntryModifierV9:{_enum:["Optional","Default","Required"]},StorageEntryTypeV9:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV9",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV9",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV9"}}},StorageHasherV9:{_enum:{Blake2_128:null,Blake2_256:null,Twox128:null,Twox256:null,Twox64Concat:null}},StorageMetadataV9:{prefix:"Text",items:"Vec"}},fG={ErrorMetadataV10:"ErrorMetadataV9",EventMetadataV10:"EventMetadataV9",FunctionArgumentMetadataV10:"FunctionArgumentMetadataV9",FunctionMetadataV10:"FunctionMetadataV9",MetadataV10:{modules:"Vec"},ModuleConstantMetadataV10:"ModuleConstantMetadataV9",ModuleMetadataV10:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryModifierV10:"StorageEntryModifierV9",StorageEntryMetadataV10:{name:"Text",modifier:"StorageEntryModifierV10",type:"StorageEntryTypeV10",fallback:"Bytes",docs:"Vec"},StorageEntryTypeV10:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV10",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV10",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV10"}}},StorageMetadataV10:{prefix:"Text",items:"Vec"},StorageHasherV10:{_enum:{Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null}}},hG={ErrorMetadataV11:"ErrorMetadataV10",EventMetadataV11:"EventMetadataV10",ExtrinsicMetadataV11:{version:"u8",signedExtensions:"Vec"},FunctionArgumentMetadataV11:"FunctionArgumentMetadataV10",FunctionMetadataV11:"FunctionMetadataV10",MetadataV11:{modules:"Vec",extrinsic:"ExtrinsicMetadataV11"},ModuleConstantMetadataV11:"ModuleConstantMetadataV10",ModuleMetadataV11:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec"},StorageEntryModifierV11:"StorageEntryModifierV10",StorageEntryMetadataV11:{name:"Text",modifier:"StorageEntryModifierV11",type:"StorageEntryTypeV11",fallback:"Bytes",docs:"Vec"},StorageEntryTypeV11:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV11",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV11",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV11"}}},StorageMetadataV11:{prefix:"Text",items:"Vec"},StorageHasherV11:{_enum:uG}},pG={ErrorMetadataV12:"ErrorMetadataV11",EventMetadataV12:"EventMetadataV11",ExtrinsicMetadataV12:"ExtrinsicMetadataV11",FunctionArgumentMetadataV12:"FunctionArgumentMetadataV11",FunctionMetadataV12:"FunctionMetadataV11",MetadataV12:{modules:"Vec",extrinsic:"ExtrinsicMetadataV12"},ModuleConstantMetadataV12:"ModuleConstantMetadataV11",ModuleMetadataV12:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec",index:"u8"},StorageEntryModifierV12:"StorageEntryModifierV11",StorageEntryMetadataV12:"StorageEntryMetadataV11",StorageEntryTypeV12:"StorageEntryTypeV11",StorageMetadataV12:"StorageMetadataV11",StorageHasherV12:"StorageHasherV11"},mG={ErrorMetadataV13:"ErrorMetadataV12",EventMetadataV13:"EventMetadataV12",ExtrinsicMetadataV13:"ExtrinsicMetadataV12",FunctionArgumentMetadataV13:"FunctionArgumentMetadataV12",FunctionMetadataV13:"FunctionMetadataV12",MetadataV13:{modules:"Vec",extrinsic:"ExtrinsicMetadataV13"},ModuleConstantMetadataV13:"ModuleConstantMetadataV12",ModuleMetadataV13:{name:"Text",storage:"Option",calls:"Option>",events:"Option>",constants:"Vec",errors:"Vec",index:"u8"},StorageEntryModifierV13:"StorageEntryModifierV12",StorageEntryMetadataV13:{name:"Text",modifier:"StorageEntryModifierV13",type:"StorageEntryTypeV13",fallback:"Bytes",docs:"Vec"},StorageEntryTypeV13:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV13",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV13",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV13"},NMap:{keyVec:"Vec",hashers:"Vec",value:"Type"}}},StorageMetadataV13:{prefix:"Text",items:"Vec"},StorageHasherV13:"StorageHasherV12"},hm={name:"Text",fields:"Vec",index:"u8",docs:"Vec"},gG={Si1Field:{name:"Option",type:"Si1LookupTypeId",typeName:"Option",docs:"Vec"},Si1LookupTypeId:"Compact",Si1Path:"Si0Path",Si1Type:{path:"Si1Path",params:"Vec",def:"Si1TypeDef",docs:"Vec"},Si1TypeDef:{_enum:{Composite:"Si1TypeDefComposite",Variant:"Si1TypeDefVariant",Sequence:"Si1TypeDefSequence",Array:"Si1TypeDefArray",Tuple:"Si1TypeDefTuple",Primitive:"Si1TypeDefPrimitive",Compact:"Si1TypeDefCompact",BitSequence:"Si1TypeDefBitSequence",HistoricMetaCompat:"Type"}},Si1TypeDefArray:{len:"u32",type:"Si1LookupTypeId"},Si1TypeDefBitSequence:{bitStoreType:"Si1LookupTypeId",bitOrderType:"Si1LookupTypeId"},Si1TypeDefCompact:{type:"Si1LookupTypeId"},Si1TypeDefComposite:{fields:"Vec"},Si1TypeDefPrimitive:"Si0TypeDefPrimitive",Si1TypeDefSequence:{type:"Si1LookupTypeId"},Si1TypeDefTuple:"Vec",Si1TypeParameter:{name:"Text",type:"Option"},Si1TypeDefVariant:{variants:"Vec"},Si1Variant:hm},yG={PortableTypeV14:{id:"Si1LookupTypeId",type:"Si1Type"},ErrorMetadataV14:{...hm,args:"Vec"},EventMetadataV14:{...hm,args:"Vec"},FunctionArgumentMetadataV14:{name:"Text",type:"Type",typeName:"Option"},FunctionMetadataV14:{...hm,args:"Vec"},ExtrinsicMetadataV14:{type:"SiLookupTypeId",version:"u8",signedExtensions:"Vec"},MetadataV14:{lookup:"PortableRegistry",pallets:"Vec",extrinsic:"ExtrinsicMetadataV14",type:"SiLookupTypeId"},PalletCallMetadataV14:{type:"SiLookupTypeId"},PalletConstantMetadataV14:{name:"Text",type:"SiLookupTypeId",value:"Bytes",docs:"Vec"},PalletErrorMetadataV14:{type:"SiLookupTypeId"},PalletEventMetadataV14:{type:"SiLookupTypeId"},PalletMetadataV14:{name:"Text",storage:"Option",calls:"Option",events:"Option",constants:"Vec",errors:"Option",index:"u8"},PalletStorageMetadataV14:{prefix:"Text",items:"Vec"},SignedExtensionMetadataV14:{identifier:"Text",type:"SiLookupTypeId",additionalSigned:"SiLookupTypeId"},StorageEntryMetadataV14:{name:"Text",modifier:"StorageEntryModifierV14",type:"StorageEntryTypeV14",fallback:"Bytes",docs:"Vec"},StorageEntryModifierV14:"StorageEntryModifierV13",StorageEntryTypeV14:{_enum:{Plain:"SiLookupTypeId",Map:{hashers:"Vec",key:"SiLookupTypeId",value:"SiLookupTypeId"}}},StorageHasherV14:"StorageHasherV13"},vG={rpc:{},runtime:cG,types:{...dG,...fG,...hG,...pG,...mG,...yG,...{CustomMetadata15:{map:"BTreeMap"},CustomValueMetadata15:{type:"SiLookupTypeId",value:"Bytes"},ExtrinsicMetadataV15:{version:"u8",addressType:"SiLookupTypeId",callType:"SiLookupTypeId",signatureType:"SiLookupTypeId",extraType:"SiLookupTypeId",signedExtensions:"Vec"},OuterEnums15:{callType:"SiLookupTypeId",eventType:"SiLookupTypeId",errorType:"SiLookupTypeId"},PalletMetadataV15:{name:"Text",storage:"Option",calls:"Option",events:"Option",constants:"Vec",errors:"Option",index:"u8",docs:"Vec"},RuntimeApiMetadataV15:{name:"Text",methods:"Vec",docs:"Vec"},RuntimeApiMethodMetadataV15:{name:"Text",inputs:"Vec",output:"SiLookupTypeId",docs:"Vec"},RuntimeApiMethodParamMetadataV15:{name:"Text",type:"SiLookupTypeId"},MetadataV15:{lookup:"PortableRegistry",pallets:"Vec",extrinsic:"ExtrinsicMetadataV15",type:"SiLookupTypeId",apis:"Vec",outerEnums:"OuterEnums15",custom:"CustomMetadata15"}},ErrorMetadataLatest:"ErrorMetadataV14",EventMetadataLatest:"EventMetadataV14",ExtrinsicMetadataLatest:"ExtrinsicMetadataV15",FunctionArgumentMetadataLatest:"FunctionArgumentMetadataV14",FunctionMetadataLatest:"FunctionMetadataV14",MetadataLatest:"MetadataV15",PalletCallMetadataLatest:"PalletCallMetadataV14",PalletConstantMetadataLatest:"PalletConstantMetadataV14",PalletErrorMetadataLatest:"PalletErrorMetadataV14",PalletEventMetadataLatest:"PalletEventMetadataV14",PalletMetadataLatest:"PalletMetadataV15",PalletStorageMetadataLatest:"PalletStorageMetadataV14",PortableType:"PortableTypeV14",RuntimeApiMetadataLatest:"RuntimeApiMetadataV15",SignedExtensionMetadataLatest:"SignedExtensionMetadataV14",StorageEntryMetadataLatest:"StorageEntryMetadataV14",StorageEntryModifierLatest:"StorageEntryModifierV14",StorageEntryTypeLatest:"StorageEntryTypeV14",StorageHasher:"StorageHasherV14",OpaqueMetadata:"Opaque",MetadataAll:{_enum:{V0:"DoNotConstruct",V1:"DoNotConstruct",V2:"DoNotConstruct",V3:"DoNotConstruct",V4:"DoNotConstruct",V5:"DoNotConstruct",V6:"DoNotConstruct",V7:"DoNotConstruct",V8:"DoNotConstruct",V9:"MetadataV9",V10:"MetadataV10",V11:"MetadataV11",V12:"MetadataV12",V13:"MetadataV13",V14:"MetadataV14",V15:"MetadataV15"}}}},pm={execute_block:{description:"Execute the given block.",params:[{name:"block",type:"Block"}],type:"Null"}},OA={version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre3"}},S_={initialize_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},_G={Core:[{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersion"},...pm,...S_},version:4},{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre4"},...pm,...S_},version:3},{methods:{...OA,...pm,...S_},version:2},{methods:{initialise_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"},...OA,...pm},version:1}]},bG={Fixed64:"Int<64, Fixed64>",FixedI64:"Int<64, FixedI64>",FixedU64:"UInt<64, FixedU64>",Fixed128:"Int<128, Fixed128>",FixedI128:"Int<128, FixedI128>",FixedU128:"UInt<128, FixedU128>",I32F32:"Int<64, I32F32>",U32F32:"UInt<64, U32F32>",PerU16:"UInt<16, PerU16>",Perbill:"UInt<32, Perbill>",Percent:"UInt<8, Percent>",Permill:"UInt<32, Permill>",Perquintill:"UInt<64, Perquintill>"},wG={Council:"CollectiveOrigin",System:"SystemOrigin",TechnicalCommittee:"CollectiveOrigin",Xcm:"XcmOrigin",XcmPallet:"XcmOrigin",Authority:"AuthorityOrigin",GeneralCouncil:"CollectiveOrigin"},xG={rpc:{},runtime:_G,types:{...bG,AccountId:"AccountId32",AccountId20:"GenericEthereumAccountId",AccountId32:"GenericAccountId32",AccountId33:"GenericAccountId33",AccountIdOf:"AccountId",AccountIndex:"GenericAccountIndex",Address:"MultiAddress",AssetId:"u32",Balance:"UInt<128, Balance>",BalanceOf:"Balance",Block:"GenericBlock",BlockNumber:"u32",BlockNumberFor:"BlockNumber",BlockNumberOf:"BlockNumber",Call:"GenericCall",CallHash:"Hash",CallHashOf:"CallHash",ChangesTrieConfiguration:{digestInterval:"u32",digestLevels:"u32"},ChangesTrieSignal:{_enum:{NewConfiguration:"Option"}},ConsensusEngineId:"GenericConsensusEngineId",CodecHash:"Hash",CrateVersion:{major:"u16",minor:"u8",patch:"u8"},Digest:{logs:"Vec"},DigestItem:{_enum:{Other:"Bytes",AuthoritiesChange:"Vec",ChangesTrieRoot:"Hash",SealV0:"SealV0",Consensus:"Consensus",Seal:"Seal",PreRuntime:"PreRuntime",ChangesTrieSignal:"ChangesTrieSignal",RuntimeEnvironmentUpdated:"Null"}},ExtrinsicsWeight:{normal:"Weight",operational:"Weight"},H32:"[u8; 4; H32]",H64:"[u8; 8; H64]",H128:"[u8; 16; H128]",H160:"[u8; 20; H160]",H256:"[u8; 32; H256]",H512:"[u8; 64; H512]",H1024:"[u8; 128; H1024]",H2048:"[u8; 256; H2048]",Hash:"H256",Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest"},HeaderPartial:{parentHash:"Hash",number:"BlockNumber"},IndicesLookupSource:"GenericLookupSource",Index:"u32",Justification:"(ConsensusEngineId, EncodedJustification)",EncodedJustification:"Bytes",Justifications:"Vec",KeyValue:"(StorageKey, StorageData)",KeyTypeId:"u32",LockIdentifier:"[u8; 8]",LookupSource:"MultiAddress",LookupTarget:"AccountId",ModuleId:"LockIdentifier",MultiAddress:"GenericMultiAddress",MultiSigner:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Ecdsa:"[u8; 33]"}},Moment:"UInt<64, Moment>",OpaqueCall:"Bytes",Origin:"DoNotConstruct",OriginCaller:{_enum:{System:"SystemOrigin"}},PalletId:"LockIdentifier",PalletsOrigin:"OriginCaller",PalletVersion:{major:"u16",minor:"u8",patch:"u8"},Pays:{_enum:["Yes","No"]},Phantom:"Null",PhantomData:"Null",Releases:{_enum:["V1","V2","V3","V4","V5","V6","V7","V8","V9","V10"]},RuntimeCall:"Call",RuntimeEvent:"Event",RuntimeDbWeight:{read:"Weight",write:"Weight"},SignedBlock:"SignedBlockWithJustifications",SignedBlockWithJustification:{block:"Block",justification:"Option"},SignedBlockWithJustifications:{block:"Block",justifications:"Option"},Slot:"u64",SlotDuration:"u64",StorageData:"Bytes",StorageInfo:{palletName:"Bytes",storage_name:"Bytes",prefix:"Bytes",maxValues:"Option",maxSize:"Option"},StorageProof:{trieNodes:"Vec"},TransactionPriority:"u64",TransactionLongevity:"u64",TransactionTag:"Bytes",TransactionInfo:{_alias:{dataSize:"size"},chunkRoot:"H256",contentHash:"H256",dataSize:"u32",blockChunks:"u32"},TransactionStorageProof:{chunk:"Vec",proof:"Vec>"},ValidatorId:"AccountId",ValidatorIdOf:"ValidatorId",WeightV0:"u32",WeightV1:"u64",WeightV2:{refTime:"Compact",proofSize:"Compact"},Weight:"WeightV2",WeightMultiplier:"Fixed64",PreRuntime:"(ConsensusEngineId, Bytes)",SealV0:"(u64, Signature)",Seal:"(ConsensusEngineId, Bytes)",Consensus:"(ConsensusEngineId, Bytes)"}},SG={rpc:{},types:{...{Si0Field:{name:"Option",type:"Si0LookupTypeId",typeName:"Option",docs:"Vec"},Si0LookupTypeId:"u32",Si0Path:"Vec",Si0Type:{path:"Si0Path",params:"Vec",def:"Si0TypeDef"},Si0TypeDef:{_enum:{Composite:"Si0TypeDefComposite",Variant:"Si0TypeDefVariant",Sequence:"Si0TypeDefSequence",Array:"Si0TypeDefArray",Tuple:"Si0TypeDefTuple",Primitive:"Si0TypeDefPrimitive",Compact:"Si0TypeDefCompact",Phantom:"Si0TypeDefPhantom",BitSequence:"Si0TypeDefBitSequence"}},Si0TypeDefArray:{len:"u32",type:"Si0LookupTypeId"},Si0TypeDefBitSequence:{bitStoreType:"Si0LookupTypeId",bitOrderType:"Si0LookupTypeId"},Si0TypeDefCompact:{type:"Si0LookupTypeId"},Si0TypeDefComposite:{fields:"Vec"},Si0TypeDefPhantom:"Null",Si0TypeDefVariant:{variants:"Vec"},Si0TypeDefPrimitive:{_enum:["Bool","Char","Str","U8","U16","U32","U64","U128","U256","I8","I16","I32","I64","I128","I256"]},Si0TypeDefSequence:{type:"Si0LookupTypeId"},Si0TypeDefTuple:"Vec",Si0TypeParameter:{name:"Text",type:"Option"},Si0Variant:{name:"Text",fields:"Vec",index:"Option",discriminant:"Option",docs:"Vec"}},...gG,SiField:"Si1Field",SiLookupTypeId:"Si1LookupTypeId",SiPath:"Si1Path",SiType:"Si1Type",SiTypeDef:"Si1TypeDef",SiTypeDefArray:"Si1TypeDefArray",SiTypeDefBitSequence:"Si1TypeDefBitSequence",SiTypeDefCompact:"Si1TypeDefCompact",SiTypeDefComposite:"Si1TypeDefComposite",SiTypeDefPrimitive:"Si1TypeDefPrimitive",SiTypeDefSequence:"Si1TypeDefSequence",SiTypeDefTuple:"Si1TypeDefTuple",SiTypeParameter:"Si1TypeParameter",SiTypeDefVariant:"Si1TypeDefVariant",SiVariant:"Si1Variant"}},pe={types:{}},EG={rpc:{},types:{AccountData:{free:"Balance",reserved:"Balance",miscFrozen:"Balance",feeFrozen:"Balance"},BalanceLockTo212:{id:"LockIdentifier",amount:"Balance",until:"BlockNumber",reasons:"WithdrawReasons"},BalanceLock:{id:"LockIdentifier",amount:"Balance",reasons:"Reasons"},BalanceStatus:{_enum:["Free","Reserved"]},Reasons:{_enum:["Fee","Misc","All"]},ReserveData:{id:"ReserveIdentifier",amount:"Balance"},ReserveIdentifier:"[u8; 8]",VestingSchedule:{offset:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"},WithdrawReasons:{_set:{TransactionPayment:1,Transfer:2,Reserve:4,Fee:8,Tip:16}}}},CG={call:{deprecated:"Use the runtime interface `api.call.contractsApi.call` instead",description:"Executes a call to a contract",params:[{name:"callRequest",type:"ContractCallRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractExecResult"},getStorage:{deprecated:"Use the runtime interface `api.call.contractsApi.getStorage` instead",description:"Returns the value under a specified storage key in a contract",params:[{name:"address",type:"AccountId"},{name:"key",type:"H256"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option"},instantiate:{deprecated:"Use the runtime interface `api.call.contractsApi.instantiate` instead",description:"Instantiate a new contract",params:[{name:"request",type:"InstantiateRequestV1"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractInstantiateResult"},rentProjection:{deprecated:"Not available in newer versions of the contracts interfaces",description:"Returns the projected time a given contract will be able to sustain paying its rent",params:[{name:"address",type:"AccountId"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option"},uploadCode:{deprecated:"Use the runtime interface `api.call.contractsApi.uploadCode` instead",description:"Upload new code without instantiating a contract from it",endpoint:"contracts_upload_code",params:[{name:"uploadRequest",type:"CodeUploadRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"CodeUploadResult"}},MA={get_storage:{description:"Query a given storage key in a given contract.",params:[{name:"address",type:"AccountId"},{name:"key",type:"Bytes"}],type:"Option"},upload_code:{description:"Upload new code without instantiating a contract from it.",params:[{name:"origin",type:"AccountId"},{name:"code",type:"Bytes"},{name:"storageDepositLimit",type:"Option"}],type:"CodeUploadResult"}},kG={ContractsApi:[{methods:{call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option"},{name:"storageDepositLimit",type:"Option"},{name:"inputData",type:"Vec"}],type:"ContractExecResult"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option"},{name:"storageDepositLimit",type:"Option"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResult"},...MA},version:2},{methods:{call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option"},{name:"inputData",type:"Vec"}],type:"ContractExecResultU64"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResultU64"},...MA},version:1}]},TG={rpc:CG,runtime:kG,types:{AliveContractInfo:{trieId:"TrieId",storageSize:"u32",pairCount:"u32",codeHash:"CodeHash",rentAllowance:"Balance",rentPaid:"Balance",deductBlock:"BlockNumber",lastWrite:"Option",_reserved:"Option"},CodeHash:"Hash",CodeSource:{_enum:{Upload:"Bytes",Existing:"Hash"}},CodeUploadRequest:{origin:"AccountId",code:"Bytes",storageDepositLimit:"Option"},CodeUploadResult:"Result",CodeUploadResultValue:{codeHash:"CodeHash",deposit:"Balance"},ContractCallRequest:{origin:"AccountId",dest:"AccountId",value:"Balance",gasLimit:"u64",storageDepositLimit:"Option",inputData:"Bytes"},ContractExecResultSuccessTo255:{status:"u8",data:"Raw"},ContractExecResultTo255:{_enum:{Success:"ContractExecResultSuccessTo255",Error:"Null"}},ContractExecResultSuccessTo260:{flags:"ContractReturnFlags",data:"Bytes",gasConsumed:"u64"},ContractExecResultTo260:{_enum:{Success:"ContractExecResultSuccessTo260",Error:"Null"}},ContractExecResultOk:{flags:"ContractReturnFlags",data:"Bytes"},ContractExecResultResult:"Result",ContractExecResultTo267:{gasConsumed:"u64",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResult:{gasConsumed:"Weight",gasRequired:"Weight",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResultU64:{gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractInfo:{_enum:{Alive:"AliveContractInfo",Tombstone:"TombstoneContractInfo"}},ContractCallFlags:{_set:{_bitLength:32,ForwardInput:1,CloneInput:2,TailCall:4,AllowReentry:8}},ContractReturnFlags:{_set:{_bitLength:32,Revert:1}},ContractStorageKey:"[u8; 32]",DeletedContract:{pairCount:"u32",trieId:"TrieId"},ExecReturnValue:{flags:"ContractReturnFlags",data:"Bytes"},Gas:"u64",HostFnWeightsTo264:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",restoreTo:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight"},HostFnWeights:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",terminatePerCodeByte:"Weight",restoreTo:"Weight",restoreToPerCallerCodeByte:"Weight",restoreToPerTombstoneCodeByte:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callPerCodeByte:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerCodeByte:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",instantiatePerSaltByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight",rentParams:"Weight"},InstantiateRequestV1:{origin:"AccountId",value:"Balance",gasLimit:"Gas",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequestV2:{_fallback:"InstantiateRequestV1",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequest:{_fallback:"InstantiateRequestV2",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option",code:"CodeSource",data:"Bytes",salt:"Bytes"},ContractInstantiateResultTo267:"Result",ContractInstantiateResultTo299:"Result",ContractInstantiateResult:{gasConsumed:"WeightV2",gasRequired:"WeightV2",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},ContractInstantiateResultU64:{_fallback:"ContractInstantiateResultTo299",gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},InstantiateReturnValueTo267:{result:"ExecReturnValue",accountId:"AccountId",rentProjection:"Option"},InstantiateReturnValueOk:{result:"ExecReturnValue",accountId:"AccountId"},InstantiateReturnValue:"Result",InstructionWeights:{i64const:"u32",i64load:"u32",i64store:"u32",select:"u32",rIf:"u32",br:"u32",brIf:"u32",brIable:"u32",brIablePerEntry:"u32",call:"u32",callIndirect:"u32",callIndirectPerParam:"u32",localGet:"u32",localSet:"u32",local_tee:"u32",globalGet:"u32",globalSet:"u32",memoryCurrent:"u32",memoryGrow:"u32",i64clz:"u32",i64ctz:"u32",i64popcnt:"u32",i64eqz:"u32",i64extendsi32:"u32",i64extendui32:"u32",i32wrapi64:"u32",i64eq:"u32",i64ne:"u32",i64lts:"u32",i64ltu:"u32",i64gts:"u32",i64gtu:"u32",i64les:"u32",i64leu:"u32",i64ges:"u32",i64geu:"u32",i64add:"u32",i64sub:"u32",i64mul:"u32",i64divs:"u32",i64divu:"u32",i64rems:"u32",i64remu:"u32",i64and:"u32",i64or:"u32",i64xor:"u32",i64shl:"u32",i64shrs:"u32",i64shru:"u32",i64rotl:"u32",i64rotr:"u32"},LimitsTo264:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32",codeSize:"u32"},Limits:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32"},PrefabWasmModule:{scheduleVersion:"Compact",initial:"Compact",maximum:"Compact",refcount:"Compact",_reserved:"Option",code:"Bytes",originalCodeLen:"u32"},RentProjection:{_enum:{EvictionAt:"BlockNumber",NoEviction:"Null"}},ScheduleTo212:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo258:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",transferCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo264:{version:"u32",enablePrintln:"bool",limits:"LimitsTo264",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeightsTo264"},Schedule:{version:"u32",enablePrintln:"bool",limits:"Limits",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeights"},SeedOf:"Hash",StorageDeposit:{_enum:{Refund:"Balance",Charge:"Balance"}},TombstoneContractInfo:"Hash",TrieId:"Bytes"}},PG={rpc:{},types:{Extrinsic:"GenericExtrinsic",ExtrinsicEra:"GenericExtrinsicEra",ExtrinsicPayload:"GenericExtrinsicPayload",ExtrinsicSignature:"MultiSignature",ExtrinsicV4:"GenericExtrinsicV4",ExtrinsicPayloadV4:"GenericExtrinsicPayloadV4",ExtrinsicSignatureV4:"GenericExtrinsicSignatureV4",ExtrinsicUnknown:"GenericExtrinsicUnknown",ExtrinsicPayloadUnknown:"GenericExtrinsicPayloadUnknown",Era:"ExtrinsicEra",ImmortalEra:"GenericImmortalEra",MortalEra:"GenericMortalEra",AnySignature:"H512",MultiSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature",Ecdsa:"EcdsaSignature"}},Signature:"H512",SignerPayload:"GenericSignerPayload",EcdsaSignature:"[u8; 65]",Ed25519Signature:"H512",Sr25519Signature:"H512"}},AG={rpc:{accountNextIndex:{alias:["account_nextIndex"],description:"Retrieves the next accountIndex as available on the node",params:[{name:"accountId",type:"AccountId"}],type:"Index"},addLogFilter:{description:"Adds the supplied directives to the current log filter",isUnsafe:!0,params:[{name:"directives",type:"Text"}],type:"Null"},addReservedPeer:{description:"Adds a reserved peer",isUnsafe:!0,params:[{name:"peer",type:"Text"}],type:"Text"},chain:{description:"Retrieves the chain",params:[],type:"Text"},chainType:{description:"Retrieves the chain type",params:[],type:"ChainType"},dryRun:{alias:["system_dryRunAt"],description:"Dry run an extrinsic at a given block",isUnsafe:!0,params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ApplyExtrinsicResult"},health:{description:"Return health status of the node",noErrorLog:!0,params:[],type:"Health"},localListenAddresses:{description:"The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example",params:[],type:"Vec"},localPeerId:{description:"Returns the base58-encoded PeerId of the node",params:[],type:"Text"},name:{description:"Retrieves the node name",params:[],type:"Text"},networkState:{alias:["system_unstable_networkState"],description:"Returns current state of the network",isUnsafe:!0,params:[],type:"NetworkState"},nodeRoles:{description:"Returns the roles the node is running as",params:[],type:"Vec"},peers:{description:"Returns the currently connected peers",isUnsafe:!0,params:[],type:"Vec"},properties:{description:"Get a custom set of properties as a JSON object, defined in the chain spec",params:[],type:"ChainProperties"},removeReservedPeer:{description:"Remove a reserved peer",isUnsafe:!0,params:[{name:"peerId",type:"Text"}],type:"Text"},reservedPeers:{description:"Returns the list of reserved peers",params:[],type:"Vec"},resetLogFilter:{description:"Resets the log filter to Substrate defaults",isUnsafe:!0,params:[],type:"Null"},syncState:{description:"Returns the state of the syncing of the node",params:[],type:"SyncState"},version:{description:"Retrieves the version of the node",params:[],type:"Text"}},runtime:{AccountNonceApi:[{methods:{account_nonce:{description:"The API to query account nonce (aka transaction index)",params:[{name:"accountId",type:"AccountId"}],type:"Index"}},version:1}]},types:{AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithRefCountU8:{nonce:"Index",refcount:"u8",data:"AccountData"},AccountInfoWithRefCount:{_fallback:"AccountInfoWithRefCountU8",nonce:"Index",refcount:"RefCount",data:"AccountData"},AccountInfoWithDualRefCount:{_fallback:"AccountInfoWithRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},AccountInfoWithProviders:"AccountInfoWithDualRefCount",AccountInfoWithTripleRefCount:{_fallback:"AccountInfoWithDualRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",sufficients:"RefCount",data:"AccountData"},ApplyExtrinsicResult:"Result",ApplyExtrinsicResultPre6:"Result",ArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},BlockLength:{max:"PerDispatchClassU32"},BlockWeights:{baseBlock:"Weight",maxBlock:"Weight",perClass:"PerDispatchClassWeightsPerClass"},ChainProperties:"GenericChainProperties",ChainType:{_enum:{Development:"Null",Local:"Null",Live:"Null",Custom:"Text"}},ConsumedWeight:"PerDispatchClassWeight",DigestOf:"Digest",DispatchClass:{_enum:["Normal","Operational","Mandatory"]},DispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModule",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError",Exhausted:"Null",Corruption:"Null",Unavailable:"Null"}},DispatchErrorPre6:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorPre6First:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorModuleU8:{index:"u8",error:"u8"},DispatchErrorModuleU8a:{index:"u8",error:"[u8; 4]"},DispatchErrorModule:"DispatchErrorModuleU8a",DispatchErrorModulePre6:"DispatchErrorModuleU8",DispatchErrorTo198:{module:"Option",error:"u8"},DispatchInfo:{weight:"Weight",class:"DispatchClass",paysFee:"Pays"},DispatchInfoTo190:{weight:"Weight",class:"DispatchClass"},DispatchInfoTo244:{weight:"Weight",class:"DispatchClass",paysFee:"bool"},DispatchOutcome:"Result<(), DispatchError>",DispatchOutcomePre6:"Result<(), DispatchErrorPre6>",DispatchResult:"Result<(), DispatchError>",DispatchResultOf:"DispatchResult",DispatchResultTo198:"Result<(), Text>",Event:"GenericEvent",EventId:"[u8; 2]",EventIndex:"u32",EventRecord:{phase:"Phase",event:"Event",topics:"Vec"},Health:{peers:"u64",isSyncing:"bool",shouldHavePeers:"bool"},InvalidTransaction:{_enum:{Call:"Null",Payment:"Null",Future:"Null",Stale:"Null",BadProof:"Null",AncientBirthBlock:"Null",ExhaustsResources:"Null",Custom:"u8",BadMandatory:"Null",MandatoryDispatch:"Null",BadSigner:"Null"}},Key:"Bytes",LastRuntimeUpgradeInfo:{specVersion:"Compact",specName:"Text"},NetworkState:{peerId:"Text",listenedAddresses:"Vec",externalAddresses:"Vec",connectedPeers:"HashMap",notConnectedPeers:"HashMap",averageDownloadPerSec:"u64",averageUploadPerSec:"u64",peerset:"NetworkStatePeerset"},NetworkStatePeerset:{messageQueue:"u64",nodes:"HashMap"},NetworkStatePeersetInfo:{connected:"bool",reputation:"i32"},NodeRole:{_enum:{Full:"Null",LightClient:"Null",Authority:"Null",UnknownRole:"u8"}},NotConnectedPeer:{knownAddresses:"Vec",latestPingTime:"Option",versionString:"Option"},Peer:{enabled:"bool",endpoint:"PeerEndpoint",knownAddresses:"Vec",latestPingTime:"PeerPing",open:"bool",versionString:"Text"},PeerEndpoint:{listening:"PeerEndpointAddr"},PeerEndpointAddr:{_alias:{localAddr:"local_addr",sendBackAddr:"send_back_addr"},localAddr:"Text",sendBackAddr:"Text"},PeerPing:{nanos:"u64",secs:"u64"},PeerInfo:{peerId:"Text",roles:"Text",protocolVersion:"u32",bestHash:"Hash",bestNumber:"BlockNumber"},PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},PerDispatchClassWeight:{normal:"Weight",operational:"Weight",mandatory:"Weight"},PerDispatchClassWeightsPerClass:{normal:"WeightPerClass",operational:"WeightPerClass",mandatory:"WeightPerClass"},Phase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},RawOrigin:{_enum:{Root:"Null",Signed:"AccountId",None:"Null"}},RefCount:"u32",RefCountTo259:"u8",SyncState:{startingBlock:"BlockNumber",currentBlock:"BlockNumber",highestBlock:"Option"},SystemOrigin:"RawOrigin",TokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported","Underflow","Overflow"]},TransactionValidityError:{_enum:{Invalid:"InvalidTransaction",Unknown:"UnknownTransaction"}},TransactionalError:{_enum:["LimitReached","NoLayer"]},UnknownTransaction:{_enum:{CannotLookup:"Null",NoUnsignedValidator:"Null",Custom:"u8"}},WeightPerClass:{baseExtrinsic:"Weight",maxExtrinsic:"Option",maxTotal:"Option",reserved:"Option"}}},NG={rpc:{},types:{Multisig:{when:"Timepoint",deposit:"Balance",depositor:"AccountId",approvals:"Vec"},Timepoint:{height:"BlockNumber",index:"u32"}}},RG={rpc:{},types:{...{ContractCryptoHasher:{_enum:["Blake2x256","Sha2x256","Keccak256"]},ContractDiscriminant:"u32",ContractLayoutArray:{offset:"ContractLayoutKey",len:"u32",cellsPerElem:"u64",layout:"ContractStorageLayout"},ContractLayoutCell:{key:"ContractLayoutKey",ty:"SiLookupTypeId"},ContractLayoutEnum:{dispatchKey:"ContractLayoutKey",variants:"BTreeMap"},ContractLayoutHash:{offset:"ContractLayoutKey",strategy:"ContractLayoutHashingStrategy",layout:"ContractStorageLayout"},ContractLayoutHashingStrategy:{hasher:"ContractCryptoHasher",postfix:"Vec",prefix:"Vec"},ContractLayoutKey:"[u8; 32]",ContractLayoutStruct:{fields:"Vec"},ContractLayoutStructField:{layout:"ContractStorageLayout",name:"Text"},ContractStorageLayout:{_enum:{Cell:"ContractLayoutCell",Hash:"ContractLayoutHash",Array:"ContractLayoutArray",Struct:"ContractLayoutStruct",Enum:"ContractLayoutEnum"}}},...{ContractConstructorSpecV0:{name:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV1:{name:"Vec",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV2:{label:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV3:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec"},ContractConstructorSpecV4:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec",default:"bool",returnType:"Option"},ContractContractSpecV0:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV1:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV2:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV3:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV4:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec",environment:"ContractEnvironmentV4"},ContractDisplayName:"SiPath",ContractEventParamSpecV0:{name:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventParamSpecV2:{label:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventSpecV0:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV1:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV2:{label:"Text",args:"Vec",docs:"Vec"},ContractMessageParamSpecV0:{name:"Text",type:"ContractTypeSpec"},ContractMessageParamSpecV2:{label:"Text",type:"ContractTypeSpec"},ContractMessageSpecV0:{name:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV1:{name:"Vec",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV2:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV3:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec",default:"bool"},ContractSelector:"[u8; 4]",ContractTypeSpec:{type:"SiLookupTypeId",displayName:"ContractDisplayName"}},...{ContractConstructorSpecLatest:"ContractConstructorSpecV4",ContractEventSpecLatest:"ContractEventSpecV2",ContractEventParamSpecLatest:"ContractEventParamSpecV2",ContractMessageParamSpecLatest:"ContractMessageParamSpecV2",ContractMessageSpecLatest:"ContractMessageSpecV3",ContractMetadataLatest:"ContractMetadataV4"},ContractProjectInfo:{source:"ContractProjectSource",contract:"ContractProjectContract"},ContractMetadataV0:{metadataVersion:"Text",types:"Vec",spec:"ContractContractSpecV0"},ContractMetadataV1:{types:"Vec",spec:"ContractContractSpecV1"},ContractMetadataV2:{types:"Vec",spec:"ContractContractSpecV2"},ContractMetadataV3:{types:"Vec",spec:"ContractContractSpecV3"},ContractMetadataV4:{types:"Vec",spec:"ContractContractSpecV4"},ContractMetadata:{_enum:{V0:"ContractMetadataV0",V1:"ContractMetadataV1",V2:"ContractMetadataV2",V3:"ContractMetadataV3",V4:"ContractMetadataV4"}},ContractProjectV0:{metadataVersion:"Text",source:"ContractProjectSource",contract:"ContractProjectContract",types:"Vec",spec:"ContractContractSpecV0"},ContractProject:"(ContractProjectInfo, ContractMetadata)",ContractProjectContract:{_alias:{docs:"documentation"},name:"Text",version:"Text",authors:"Vec",description:"Option",docs:"Option",repository:"Option",homepage:"Option",license:"Option"},ContractProjectSource:{_alias:{wasmHash:"hash"},wasmHash:"[u8; 32]",language:"Text",compiler:"Text",wasm:"Raw"},ContractEnvironmentV4:{_alias:{hashType:"hash"},accountId:"Option",balance:"Option",blockNumber:"Option",hashType:"Option",timestamp:"Option",maxEventTopics:"Option"}}},mm=Object.freeze(Object.defineProperty({__proto__:null,assetConversion:pe,assets:pe,attestations:pe,aura:pe,author:pe,authorship:pe,babe:pe,balances:EG,beefy:pe,benchmark:pe,blockbuilder:pe,bridges:pe,chain:{rpc:{getBlock:{description:"Get header and body of a relay chain block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"SignedBlock"},getBlockHash:{description:"Get the block hash for a specific block",params:[{isOptional:!0,name:"blockNumber",type:"BlockNumber"}],type:"BlockHash"},getFinalizedHead:{alias:["chain_getFinalisedHead"],description:"Get hash of the last finalized block in the canon chain",params:[],type:"BlockHash"},getHeader:{alias:["chain_getHead"],description:"Retrieves the header for a specific block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"Header"},subscribeAllHeads:{description:"Retrieves the newest header via subscription",params:[],pubsub:["allHead","subscribeAllHeads","unsubscribeAllHeads"],type:"Header"},subscribeFinalizedHeads:{alias:["chain_subscribeFinalisedHeads","chain_unsubscribeFinalisedHeads"],description:"Retrieves the best finalized header via subscription",params:[],pubsub:["finalizedHead","subscribeFinalizedHeads","unsubscribeFinalizedHeads"],type:"Header"},subscribeNewHeads:{alias:["chain_unsubscribeNewHeads","subscribe_newHead","unsubscribe_newHead"],description:"Retrieves the best header via subscription",params:[],pubsub:["newHead","subscribeNewHead","unsubscribeNewHead"],type:"Header"}},types:{BlockHash:"Hash"}},childstate:pe,claims:pe,collective:pe,consensus:pe,contracts:TG,contractsAbi:RG,crowdloan:pe,cumulus:pe,democracy:pe,dev:pe,discovery:pe,elections:pe,engine:pe,eth:pe,evm:pe,extrinsics:PG,finality:pe,fungibles:pe,genericAsset:pe,gilt:pe,grandpa:pe,identity:pe,imOnline:pe,lottery:pe,metadata:vG,mmr:pe,nfts:pe,nimbus:pe,nompools:pe,offchain:pe,offences:pe,ormlOracle:pe,ormlTokens:pe,parachains:pe,payment:pe,poll:pe,pow:pe,proxy:pe,purchase:pe,recovery:pe,rpc:{rpc:{methods:{description:"Retrieves the list of RPC methods that are exposed by the node",params:[],type:"RpcMethods"}},types:{RpcMethods:{version:"u32",methods:"Vec"}}},runtime:xG,scaleInfo:SG,scheduler:pe,session:pe,society:pe,staking:pe,state:{rpc:{call:{alias:["state_callAt"],description:"Perform a call to a builtin on the chain",params:[{name:"method",type:"Text"},{name:"data",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Bytes"},getChildKeys:{description:"Retrieves the keys with prefix of a specific child storage",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getChildReadProof:{description:"Returns proof of storage for child key entries at a specific block state.",params:[{name:"childStorageKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getChildStorage:{description:"Retrieves the child storage for a key",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getChildStorageHash:{description:"Retrieves the child storage hash",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getChildStorageSize:{description:"Retrieves the child storage size",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},getKeys:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Retrieves the keys with a certain prefix",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getKeysPaged:{alias:["state_getKeysPagedAt"],description:"Returns the keys with prefix with pagination support.",params:[{name:"key",type:"StorageKey"},{name:"count",type:"u32"},{isOptional:!0,name:"startKey",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getMetadata:{description:"Returns the runtime metadata",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Metadata"},getPairs:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)",isUnsafe:!0,params:[{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getReadProof:{description:"Returns proof of storage entries at a specific block state",params:[{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getRuntimeVersion:{alias:["chain_getRuntimeVersion"],description:"Get the runtime version",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"RuntimeVersion"},getStorage:{alias:["state_getStorageAt"],description:"Retrieves the storage for a key",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getStorageHash:{alias:["state_getStorageHashAt"],description:"Retrieves the storage hash",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getStorageSize:{alias:["state_getStorageSizeAt"],description:"Retrieves the storage size",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},queryStorage:{description:"Query historical storage entries (by key) starting from a start block",isUnsafe:!0,params:[{name:"keys",type:"Vec"},{name:"fromBlock",type:"Hash"},{isOptional:!0,name:"toBlock",type:"BlockHash"}],type:"Vec"},queryStorageAt:{description:"Query storage entries (by key) starting at block hash given as the second parameter",params:[{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},subscribeRuntimeVersion:{alias:["chain_subscribeRuntimeVersion","chain_unsubscribeRuntimeVersion"],description:"Retrieves the runtime version via subscription",params:[],pubsub:["runtimeVersion","subscribeRuntimeVersion","unsubscribeRuntimeVersion"],type:"RuntimeVersion"},subscribeStorage:{description:"Subscribes to storage changes for the provided keys",params:[{isOptional:!0,name:"keys",type:"Vec"}],pubsub:["storage","subscribeStorage","unsubscribeStorage"],type:"StorageChangeSet"},traceBlock:{description:"Provides a way to trace the re-execution of a single block",isUnsafe:!0,params:[{name:"block",type:"Hash"},{name:"targets",type:"Option"},{name:"storageKeys",type:"Option"},{name:"methods",type:"Option"}],type:"TraceBlockResponse"},trieMigrationStatus:{description:"Check current migration state",isUnsafe:!0,params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MigrationStatusResult"}},types:{ApiId:"[u8; 8]",BlockTrace:{blockHash:"Text",parentHash:"Text",tracingTargets:"Text",storageKeys:"Text",spans:"Vec",events:"Vec"},BlockTraceEvent:{target:"Text",data:"BlockTraceEventData",parentId:"Option"},BlockTraceEventData:{stringValues:"HashMap"},BlockTraceSpan:{id:"u64",parentId:"Option",name:"Text",target:"Text",wasm:"bool"},KeyValueOption:"(StorageKey, Option)",MigrationStatusResult:{topRemainingToMigrate:"u64",childRemainingToMigrate:"u64"},ReadProof:{at:"Hash",proof:"Vec"},RuntimeVersionApi:"(ApiId, u32)",RuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32",stateVersion:"u8"},RuntimeVersionPre4:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32"},RuntimeVersionPre3:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec"},RuntimeVersionPartial:{specName:"Text",specVersion:"u32",apis:"Vec"},SpecVersion:"u32",StorageChangeSet:{block:"Hash",changes:"Vec"},TraceBlockResponse:{_enum:{TraceError:"TraceError",BlockTrace:"BlockTrace"}},TraceError:{error:"Text"}}},support:pe,syncstate:pe,system:AG,treasury:pe,txpayment:pe,txqueue:pe,uniques:pe,utility:NG,vesting:pe,xcm:pe},Symbol.toStringTag,{value:"Module"})),gm={};Object.keys(mm).forEach(t=>Object.entries(mm[t].rpc||{}).forEach(([e,n])=>{const r=n.aliasSection||t;gm[r]||(gm[r]={}),gm[r][e]=ne({},n,{isSubscription:!!n.pubsub,jsonrpc:`${r}_${e}`,method:e,section:r})}));const LA=gm;var H;(function(t){t[t.BTreeMap=0]="BTreeMap",t[t.BTreeSet=1]="BTreeSet",t[t.Compact=2]="Compact",t[t.DoNotConstruct=3]="DoNotConstruct",t[t.Enum=4]="Enum",t[t.HashMap=5]="HashMap",t[t.Int=6]="Int",t[t.Linkage=7]="Linkage",t[t.Null=8]="Null",t[t.Option=9]="Option",t[t.Plain=10]="Plain",t[t.Range=11]="Range",t[t.RangeInclusive=12]="RangeInclusive",t[t.Result=13]="Result",t[t.Set=14]="Set",t[t.Si=15]="Si",t[t.Struct=16]="Struct",t[t.Tuple=17]="Tuple",t[t.UInt=18]="UInt",t[t.Vec=19]="Vec",t[t.VecFixed=20]="VecFixed",t[t.WrapperKeepOpaque=21]="WrapperKeepOpaque",t[t.WrapperOpaque=22]="WrapperOpaque"})(H||(H={}));class ym extends Array{constructor(n,r){super(r);P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");this.registry=n}static get[Symbol.species](){return Array}get encodedLength(){const n=this.length;let r=Vt(n).length;for(let i=0;iNumber.MAX_SAFE_INTEGER||to)throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${o}`)}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isZero()}bitLength(){return this.__internal__bitLength}eq(n){return super.eq(Oe(n)?qo(n.toString(),{isLe:!1,isNegative:!this.isUnsigned}):bn(n))}inspect(){return{outer:[this.toU8a()]}}isMax(){return this.toU8a().filter(r=>r===255).length===this.__internal__bitLength/8}toBigInt(){return BigInt(this.toString())}toBn(){return this}toHex(n=!1){return b2(this,{bitLength:this.bitLength(),isLe:n,isNegative:!this.isUnsigned})}toHuman(n){const r=this.toRawType();if(r==="Balance")return this.isMax()?"everything":da(this,{decimals:this.registry.chainDecimals[0],withSi:!0,withUnit:this.registry.chainTokens[0]});const[,i]=MG.find(([s])=>s===r)||[];return i?DG(this,i):Pf(this)}toJSON(n=!1){return n||this.__internal__bitLength>128||super.bitLength()>DA?this.toHex():this.toNumber()}toPrimitive(){return super.bitLength()>DA?this.toString():this.toNumber()}toRawType(){return this instanceof this.registry.createClassUnsafe("Balance")?"Balance":`${this.isUnsigned?"u":"i"}${this.bitLength()}`}toString(n){return super.toString(n)}toU8a(n){return Pn(this,{bitLength:this.bitLength(),isLe:!0,isNegative:!this.isUnsigned})}}function UG(t,e,n){if(he(n)){const[r,i]=(n[0]&3)<3?ca(n):kf(n);return[new e(t,i),r]}else if(n instanceof _d){const r=n.unwrap();return r instanceof e?[r,0]:[new e(t,r),0]}else if(n instanceof e)return[n,0];return[new e(t,n),0]}class _d{constructor(e,n,r=0,{definition:i,setDefinition:s=pa}={}){P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__Type");P(this,"__internal__raw");this.registry=e,this.__internal__Type=i||s(bi(e,n));const[a,o]=UG(e,this.__internal__Type,r);this.initialU8aLength=o,this.__internal__raw=a}static with(e){let n;const r=i=>n=i;return class extends _d{constructor(i,s){super(i,e,s,{definition:n,setDefinition:r})}}}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.__internal__raw.isEmpty}bitLength(){return this.__internal__raw.bitLength()}eq(e){return this.__internal__raw.eq(e instanceof _d?e.__internal__raw:e)}inspect(){return{outer:[this.toU8a()]}}toBigInt(){return this.__internal__raw.toBigInt()}toBn(){return this.__internal__raw.toBn()}toHex(e){return this.__internal__raw.toHex(e)}toHuman(e){return this.__internal__raw.toHuman(e)}toJSON(){return this.__internal__raw.toJSON()}toNumber(){return this.__internal__raw.toNumber()}toPrimitive(){return this.__internal__raw.toPrimitive()}toRawType(){return`Compact<${this.registry.getClassName(this.__internal__Type)||this.__internal__raw.toRawType()}>`}toString(){return this.__internal__raw.toString()}toU8a(e){return Vt(this.__internal__raw.toBn())}unwrap(){return this.__internal__raw}}class _m{constructor(e,n="DoNotConstruct"){P(this,"registry");P(this,"createdAtHash");P(this,"isStorageFallback");P(this,"__internal__neverError");throw this.registry=e,this.__internal__neverError=new Error(`DoNotConstruct: Cannot construct unknown type ${n}`),this.__internal__neverError}static with(e){return class extends _m{constructor(n){super(n,e)}}}get encodedLength(){throw this.__internal__neverError}get hash(){throw this.__internal__neverError}get isEmpty(){throw this.__internal__neverError}eq(){throw this.__internal__neverError}inspect(){throw this.__internal__neverError}toHex(){throw this.__internal__neverError}toHuman(){throw this.__internal__neverError}toJSON(){throw this.__internal__neverError}toPrimitive(){throw this.__internal__neverError}toRawType(){throw this.__internal__neverError}toString(){throw this.__internal__neverError}toU8a(){throw this.__internal__neverError}}class hs{constructor(e){P(this,"encodedLength",0);P(this,"isEmpty",!0);P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength",0);P(this,"isStorageFallback");this.registry=e}get hash(){throw new Error(".hash is not implemented on Null")}eq(e){return e instanceof hs||fa(e)}inspect(){return{}}toHex(){return"0x"}toHuman(){return this.toJSON()}toJSON(){return null}toPrimitive(){return null}toRawType(){return"Null"}toString(){return""}toU8a(e){return new Uint8Array}}function VG(t){const e=Object.values(t);if(e.some(n=>Be(n))){if(!e.every(n=>Be(n)&&n>=0&&n<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function BG(t,e){const n={};let r,i;if(Array.isArray(e)){for(let s=0,a=e.length;so!==hs),i=!1}else{const s=Object.entries(e);for(let a=0,o=s.length;ao.toLowerCase()),s=n.toLowerCase(),a=i.indexOf(s);if(a===-1)throw new Error(`Cannot map Enum JSON, unable to find '${n}' in ${i.join(", ")}`);try{return bd(t,e,Object.values(e)[a].index,r)}catch(o){throw new Error(`Enum(${n}):: ${o.message}`)}}function HG(t,e,n,r){if(Be(r))return bd(t,e,r,n);if(he(n)||Oe(n)){const i=K(n);if(i.length)return HA(t,e,i[0],i.subarray(1))}else{if(n instanceof Ri)return bd(t,e,n.index,n.value);if(Be(n))return bd(t,e,n);if(Ye(n))return FA(t,e,n.toString());if(qn(n)){const i=Object.keys(n)[0];return FA(t,e,i,n[i])}}return bd(t,e,Object.values(e)[0].index)}class Ri{constructor(e,n,r,i,{definition:s,setDefinition:a=pa}={}){P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__def");P(this,"__internal__entryIndex");P(this,"__internal__indexes");P(this,"__internal__isBasic");P(this,"__internal__isIndexed");P(this,"__internal__raw");const{def:o,isBasic:l,isIndexed:u}=s||a(BG(e,n)),c=he(r)&&r.length&&!Be(i)?HA(e,o,r[0],r.subarray(1)):HG(e,o,r,i);this.registry=e,this.__internal__def=o,this.__internal__isBasic=l,this.__internal__isIndexed=u,this.__internal__indexes=Object.values(o).map(({index:d})=>d),this.__internal__entryIndex=this.__internal__indexes.indexOf(c.index),this.__internal__raw=c.value,this.__internal__raw.initialU8aLength&&(this.initialU8aLength=1+this.__internal__raw.initialU8aLength)}static with(e){var i;let n;const r=s=>n=s;return i=class extends Ri{constructor(a,o,l){super(a,e,o,l,{definition:n,setDefinition:r})}},(()=>{const a=Array.isArray(e)?e:Object.keys(e),o=a.length,l=new Array(o),u=new Array(o);for(let c=0;ch.type===a[d]),ma(i.prototype,l,(c,d,h)=>{if(h.type!==a[d])throw new Error(`Cannot convert '${h.type}' via ${c}`);return h.value})})(),i}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get index(){return this.__internal__indexes[this.__internal__entryIndex]}get inner(){return this.__internal__raw}get isBasic(){return this.__internal__isBasic}get isEmpty(){return this.__internal__raw.isEmpty}get isNone(){return this.__internal__raw instanceof hs}get defIndexes(){return this.__internal__indexes}get defKeys(){return Object.keys(this.__internal__def)}get type(){return this.defKeys[this.__internal__entryIndex]}get value(){return this.__internal__raw}eq(e){return he(e)?!this.toU8a().some((n,r)=>n!==e[r]):Be(e)?this.toNumber()===e:this.__internal__isBasic&&Ye(e)?this.type===e:Oe(e)?this.toHex()===e:e instanceof Ri?this.index===e.index&&this.value.eq(e.value):qn(e)?this.value.eq(e[this.type]):this.value.eq(e)}inspect(){if(this.__internal__isBasic)return{outer:[new Uint8Array([this.index])]};const{inner:e,outer:n=[]}=this.__internal__raw.inspect();return{inner:e,outer:[new Uint8Array([this.index]),...n]}}toHex(){return Ae(this.toU8a())}toHuman(e){return this.__internal__isBasic||this.isNone?this.type:{[this.type]:this.__internal__raw.toHuman(e)}}toJSON(){return this.__internal__isBasic?this.type:{[je(this.type)]:this.__internal__raw.toJSON()}}toNumber(){return this.index}toPrimitive(){return this.__internal__isBasic?this.type:{[je(this.type)]:this.__internal__raw.toPrimitive()}}_toRawStruct(){if(this.__internal__isBasic)return this.__internal__isIndexed?this.defKeys.reduce((n,r,i)=>(n[r]=this.__internal__indexes[i],n),{}):this.defKeys;const e=Object.entries(this.__internal__def);return rS(this.registry,e.reduce((n,[r,{Type:i}],s)=>(n[0][s]=i,n[1][s]=r,n),[new Array(e.length),new Array(e.length)]))}toRawType(){return Le({_enum:this._toRawStruct()})}toString(){return this.isNone?this.type:Le(this.toJSON())}toU8a(e){return e?this.__internal__raw.toU8a(e):Zn([new Uint8Array([this.index]),this.__internal__raw.toU8a(e)])}}class Ws extends VA{constructor(e,n=0,r){super(e,n,r,!0)}static with(e,n){return class extends Ws{constructor(r,i){super(r,i,e)}toRawType(){return n||super.toRawType()}}}}class uu extends hs{toRawType(){return"None"}}function FG(t,e,n){return n instanceof e?n:n instanceof qs?n.value instanceof e?n.value:n.isNone?new uu(t):new e(t,n.value):fa(n)||rt(n)||n==="0x"||n instanceof uu?new uu(t):he(n)?!n.length||n[0]===0?new uu(t):new e(t,n.subarray(1)):new e(t,n)}class qs{constructor(e,n,r,{definition:i,setDefinition:s=pa}={}){P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__Type");P(this,"__internal__raw");const a=i||s(bi(e,n)),o=he(r)&&r.length&&!Xi(r)?r[0]===0?new uu(e):new a(e,r.subarray(1)):FG(e,a,r);this.registry=e,this.__internal__Type=a,this.__internal__raw=o,o!=null&&o.initialU8aLength&&(this.initialU8aLength=1+o.initialU8aLength)}static with(e){let n;const r=i=>(n=i,i);return class extends qs{constructor(i,s){super(i,e,s,{definition:n,setDefinition:r})}}}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isNone}get isNone(){return this.__internal__raw instanceof uu}get isSome(){return!this.isNone}get value(){return this.__internal__raw}eq(e){return e instanceof qs?this.isSome===e.isSome&&this.value.eq(e.value):this.value.eq(e)}inspect(){if(this.isNone)return{outer:[new Uint8Array([0])]};const{inner:e,outer:n=[]}=this.__internal__raw.inspect();return{inner:e,outer:[new Uint8Array([1]),...n]}}toHex(){return this.isNone?"0x":Ae(this.toU8a().subarray(1))}toHuman(e){return this.__internal__raw.toHuman(e)}toJSON(){return this.isNone?null:this.__internal__raw.toJSON()}toPrimitive(){return this.isNone?null:this.__internal__raw.toPrimitive()}toRawType(e){const n=this.registry.getClassName(this.__internal__Type)||new this.__internal__Type(this.registry).toRawType();return e?n:`Option<${n}>`}toString(){return this.__internal__raw.toString()}toU8a(e){if(e)return this.__internal__raw.toU8a(!0);const n=new Uint8Array(this.encodedLength);return this.isSome&&(n.set([1]),n.set(this.__internal__raw.toU8a(),1)),n}unwrap(){if(this.isNone)throw new Error("Option: unwrapping a None value");return this.__internal__raw}unwrapOr(e){return this.isSome?this.unwrap():e}unwrapOrDefault(){return this.isSome?this.unwrap():new this.__internal__Type(this.registry)}}let jG=class k4 extends Ri{constructor(e,n,r,i){super(e,{Ok:n,Err:r},i)}static with(e){return class extends k4{constructor(n,r){super(n,e.Ok,e.Err,r)}}}get asErr(){if(!this.isErr)throw new Error("Cannot extract Err value from Ok result, check isErr first");return this.value}get asOk(){if(!this.isOk)throw new Error("Cannot extract Ok value from Err result, check isOk first");return this.value}get isEmpty(){return this.isOk&&this.value.isEmpty}get isErr(){return!this.isOk}get isOk(){return this.index===0}toRawType(){const e=this._toRawStruct();return`Result<${e.Ok},${e.Err}>`}};function zG(t,e,n,r){if(Array.isArray(n)){const i=r[0];for(let s=0,a=i.length;sr=s;return class extends cu{constructor(s,a){super(s,n,a,{definition:r,setDefinition:i})}}}get encodedLength(){let n=0;for(let r=0,i=this.length;rnew n(this.registry).toRawType())}inspect(){return{inner:this.inspectInner()}}toRawType(){return`(${this.__internal__Types[0].map(r=>this.registry.getClassName(r)||new r(this.registry).toRawType()).join(",")})`}toString(){return Le(this.toJSON())}toU8a(n){return Zn(this.toU8aInner(n))}}class Zs extends VA{static with(e,n){return class extends Zs{constructor(r,i){super(r,i,e)}toRawType(){return n||super.toRawType()}}}}const jA=64*1024,WG=ir("Vec");function qG(t){if(Array.isArray(t))return[t,t.length,0];if(he(t)||Oe(t)){const e=K(t),[n,r]=ca(e);if(r>jA)throw new Error(`Vec length ${r.toString()} exceeds ${jA}`);return[e,r,n]}else if(!t)return[null,0,0];throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof t}: ${Le(t)}`)}function zA(t,e,n,r,i){if(Array.isArray(n)){const s=e.length;for(let a=0;ar=s;return class extends E_{constructor(s,a){super(s,n,a,{definition:r,setDefinition:i})}}}get Type(){return this.__internal__Type.name}indexOf(n){const r=n instanceof this.__internal__Type?n:new this.__internal__Type(this.registry,n);for(let i=0,s=this.length;i`}}class C_ extends ym{constructor(n,r,i,s=[],{definition:a,setDefinition:o=pa}={}){super(n,i);P(this,"__internal__Type");this.__internal__Type=a||o(bi(n,r)),this.initialU8aLength=(he(s)?Df(n,this,s,0,this.__internal__Type):zA(n,this,s,0,this.__internal__Type))[1]}static with(n,r){let i;const s=a=>i=a;return class extends C_{constructor(a,o){super(a,n,r,o,{definition:i,setDefinition:s})}}}get Type(){return new this.__internal__Type(this.registry).toRawType()}get encodedLength(){let n=0;for(let r=0,i=this.length;rt.length)throw new Error(`BitVec: required length less than remainder, expected at least ${r}, found ${t.length}`);return[n,t.subarray(e,r)]}function GG(t){if(Array.isArray(t)||Ye(t)){const e=K(t);return[e.length/8,e]}return ZG(t)}class XG extends Jr{constructor(n,r,i=!1){const[s,a]=GG(r);super(n,a);P(this,"__internal__decodedLength");P(this,"__internal__isMsb");this.__internal__decodedLength=s,this.__internal__isMsb=i}get encodedLength(){return this.length+Vt(this.__internal__decodedLength).length}inspect(){return{outer:[Vt(this.__internal__decodedLength),super.toU8a()]}}toBoolArray(){const n=[...this.toU8a(!0)].map(s=>[!!(s&128),!!(s&64),!!(s&32),!!(s&16),!!(s&8),!!(s&4),!!(s&2),!!(s&1)]),r=n.length,i=new Array(8*r);for(let s=0;s`00000000${n.toString(2)}`.slice(-8)).map(n=>this.__internal__isMsb?n:n.split("").reverse().join("")).join("_")}`}toRawType(){return"BitVec"}toU8a(n){const r=super.toU8a(n);return n?r:Zn([Vt(this.__internal__decodedLength),r])}}const KG=ir("Map");function JG(t,e,n,r){const i=new Map,[s,a]=ca(r),o=[];for(let c=0;c`}toString(){return Le(this.toJSON())}toU8a(n){const r=[];n||r.push(Vt(this.size));for(const[i,s]of this.entries())r.push(i.toU8a(n),s.toU8a(n));return Zn(r)}}class k_ extends qA{static with(e,n){return class extends k_{constructor(r,i){super(r,e,n,i,"BTreeMap")}}}}const $G=ir("BTreeSet");function QG(t,e,n){const r=new Set,[i,s]=ca(n),a=new Array(s),[o]=Df(t,a,n,i,e);for(let l=0;l{try{r.add(i instanceof e?i:new e(t,i))}catch(s){throw $G.error("Failed to decode key or value:",s.message),s}}),[e,r,0]}function tX(t,e,n){const r=bi(t,e);if(n){if(he(n)||Oe(n))return QG(t,r,K(n));if(Array.isArray(n)||n instanceof Set)return eX(t,r,n)}else return[r,new Set,0];throw new Error("BTreeSet: cannot decode type")}class T_ extends Set{constructor(n,r,i){const[s,a,o]=tX(n,r,i);super(LL(a));P(this,"registry");P(this,"createdAtHash");P(this,"initialU8aLength");P(this,"isStorageFallback");P(this,"__internal__ValClass");this.registry=n,this.initialU8aLength=o,this.__internal__ValClass=s}static with(n){return class extends T_{constructor(r,i){super(r,n,i)}}}get encodedLength(){let n=Vt(this.size).length;for(const r of this.values())n+=r.encodedLength;return n}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()].map(n=>n.toString())}eq(n){return SL(this,n)}inspect(){const n=[];for(const r of this.values())n.push(r.inspect());return{inner:n,outer:[Vt(this.size)]}}toHex(){return Ae(this.toU8a())}toHuman(n){const r=[];for(const i of this.values())r.push(i.toHuman(n));return r}toJSON(){const n=[];for(const r of this.values())n.push(r.toJSON());return n}toRawType(){return`BTreeSet<${this.registry.getClassName(this.__internal__ValClass)||new this.__internal__ValClass(this.registry).toRawType()}>`}toPrimitive(){const n=[];for(const r of this.values())n.push(r.toPrimitive());return n}toString(){return Le(this.toJSON())}toU8a(n){const r=[];n||r.push(Vt(this.size));for(const i of this.values())r.push(i.toU8a(n));return Zn(r)}}const ZA=10*1024*1024;function nX(t){if(!t.length)return[new Uint8Array,0];const[e,n]=ca(t),r=e+n;if(n>ZA)throw new Error(`Bytes length ${n.toString()} exceeds ${ZA}`);if(r>t.length)throw new Error(`Bytes: required length less than remainder, expected at least ${r}, found ${t.length}`);return[t.subarray(e,r),r]}class wd extends Jr{constructor(e,n){const[r,i]=he(n)&&!(n instanceof Jr)?nX(n):Array.isArray(n)||Ye(n)?[K(n),0]:[n,0];super(e,r,i)}get encodedLength(){return this.length+Vt(this.length).length}inspect(e){const n=Vt(this.length);return{outer:e?[super.toU8a()]:this.length?[n,super.toU8a()]:[n]}}toRawType(){return"Bytes"}toU8a(e){return e?super.toU8a(e):Kr(this)}}class P_ extends qA{static with(e,n){return class extends P_{constructor(r,i){super(r,e,n,i)}}}}function rX(t,e){return e[0]===0?null:new al(t,e[0]===1)}class iX extends qs{constructor(e,n){super(e,al,he(n)||Oe(n)?rX(e,K(n)):n),this.initialU8aLength=1}get encodedLength(){return 1}get isFalse(){return this.isSome?!this.value.valueOf():!1}get isTrue(){return this.isSome?this.value.valueOf():!1}inspect(){return{outer:[this.toU8a()]}}toRawType(e){return e?"bool":"Option"}toU8a(e){return e?super.toU8a(!0):this.isSome?new Uint8Array([this.isTrue?1:2]):new Uint8Array([0])}}class bm extends cu{constructor(n,r,i,{rangeName:s="Range"}={}){super(n,[r,r],i);P(this,"__internal__rangeName");this.__internal__rangeName=s}static with(n){return class extends bm{constructor(r,i){super(r,n,i)}}}get start(){return this[0]}get end(){return this[1]}toRawType(){return`${this.__internal__rangeName}<${this.start.toRawType()}>`}}class A_ extends bm{constructor(e,n,r){super(e,n,r,{rangeName:"RangeInclusive"})}static with(e){return class extends A_{constructor(n,r){super(n,e,r)}}}}class sX extends Ty{constructor(e,n=""){super(e,n),this.setOverride(Vf(this.toString()))}toRawType(){return"Type"}}function aX(t,e){const n=K(t),r=e/8;if(!n.length)return[new Uint8Array(r),0];if(he(t)?n.length`}toString(){return this.__internal__decoded?this.__internal__decoded.toString():super.toString()}unwrap(){if(!this.__internal__decoded)throw new Error(`${this.__internal__opaqueName}: unwrapping an undecodable value`);return this.__internal__decoded}}class N_ extends wm{constructor(e,n,r){super(e,n,r,{opaqueName:"WrapperOpaque"})}static with(e){return class extends N_{constructor(n,r){super(n,e,r)}}}get inner(){return this.unwrap()}}class GA extends Lf.with(32){constructor(){super(...arguments);P(this,"__FloatType","f32")}}class XA extends Lf.with(64){constructor(){super(...arguments);P(this,"__FloatType","f64")}}class KA extends Ws.with(8){constructor(){super(...arguments);P(this,"__IntType","i8")}}class JA extends Ws.with(16){constructor(){super(...arguments);P(this,"__IntType","i16")}}class R_ extends Ws.with(32){constructor(){super(...arguments);P(this,"__IntType","i32")}}class YA extends Ws.with(64){constructor(){super(...arguments);P(this,"__IntType","i64")}}class $A extends Ws.with(128){constructor(){super(...arguments);P(this,"__IntType","i128")}}class QA extends Ws.with(256){constructor(){super(...arguments);P(this,"__IntType","i256")}}class e8 extends R_{constructor(e,n){throw super(e,n),new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly.")}}class t8 extends Zs.with(8){constructor(){super(...arguments);P(this,"__UIntType","u8")}}class n8 extends Zs.with(16){constructor(){super(...arguments);P(this,"__UIntType","u16")}}class xd extends Zs.with(32){constructor(){super(...arguments);P(this,"__UIntType","u32")}}class ai extends Zs.with(64){constructor(){super(...arguments);P(this,"__UIntType","u64")}}class r8 extends Zs.with(128){constructor(){super(...arguments);P(this,"__UIntType","u128")}}class i8 extends Zs.with(256){constructor(){super(...arguments);P(this,"__UIntType","u256")}}class s8 extends xd{constructor(e,n){throw super(e,n),new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly.")}}function lX(t){const e=[];let n=0,r=0,i=0,s=0,a=0;for(let o=0,l=t.length;o":n--;break;case"[":r++;break;case"]":r--;break;case"{":i++;break;case"}":i--;break;case"(":s++;break;case")":s--;break}if(n||r||i||s)throw new Error(`Invalid definition (missing terminators) found in ${t}`);return e.push(t.substring(a,t.length).trim()),e}const uX=["_alias","_fallback"];function a8(t){return Ye(t)?t.toString():Le(t)}function cX(t){const e=Object.values(t);if(e.some(n=>Be(n))){if(!e.every(n=>Be(n)&&n>=0&&n<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function dX(t,e,n,r){return t.info=H.Enum,t.fallbackType=r,Array.isArray(e)?t.sub=e.map((i,s)=>({index:s,info:H.Plain,name:i,type:"Null"})):cX(e)?t.sub=Object.entries(e).map(([i,s],a)=>ne({},Ya(a8(s||"Null"),{name:i},n),{index:a})):t.sub=Object.entries(e).map(([i,s])=>({index:s,info:H.Plain,name:i,type:"Null"})),t}function fX(t,e,n){return t.info=H.Set,t.fallbackType=n,t.length=e._bitLength,t.sub=Object.entries(e).filter(([r])=>!r.startsWith("_")).map(([r,i])=>({index:i,info:H.Plain,name:r,type:"Null"})),t}function hX(t,e,n,r){const i=JSON.parse(e),s=Object.keys(i);return i._enum?dX(t,i._enum,r,i._fallback):i._set?fX(t,i._set,i._fallback):(t.alias=i._alias?new Map(Object.entries(i._alias)):void 0,t.fallbackType=i._fallback,t.sub=s.filter(a=>!uX.includes(a)).map(a=>Ya(a8(i[a]),{name:a},r)),t)}function pX(t,e,n,r){const i=e.length-1;let s=-1,a=0;for(let d=1;d":a--;break}if(s===-1)throw new Error(`${e}: Unable to extract location of ';'`);const o=e.substring(1,s),[l,u]=e.substring(s+1,i).split(";"),c=parseInt(l.trim(),10);if(c>2048)throw new Error(`${e}: Only support for [Type; ], where length <= 2048`);return t.displayName=u,t.length=c,t.sub=Ya(o,{},r),t}function xm(t,e,n,r){return t.sub=n.length===0?[]:lX(n).map(i=>Ya(i,{},r)),t}function o8(t,e,n,r){const[i,s]=e.substring(r.length+1,e.length-1).split(","),a=parseInt(i.trim(),10);if(a>8192||a%8)throw new Error(`${e}: Only support for ${r}, where length <= 8192 and a power of 8, found ${a}`);return t.displayName=s,t.length=a,t}function mX(t,e,n){return o8(t,e,n,"Int")}function gX(t,e,n){return o8(t,e,n,"UInt")}function yX(t,e,n){return t.displayName=e.substring(15,e.length-1),t}function l8(t,[e,n]){return t.startsWith(e)&&t.slice(-1*n.length)===n}const vX=[["[","]",H.VecFixed,pX],["{","}",H.Struct,hX],["(",")",H.Tuple,xm],["BTreeMap<",">",H.BTreeMap,xm],["HashMap<",">",H.HashMap,xm],["Int<",">",H.Int,mX],["Result<",">",H.Result,xm],["UInt<",">",H.UInt,gX],["DoNotConstruct<",">",H.DoNotConstruct,yX]],_X=[["BTreeSet<",">",H.BTreeSet],["Compact<",">",H.Compact],["Linkage<",">",H.Linkage],["Opaque<",">",H.WrapperOpaque],["Option<",">",H.Option],["Range<",">",H.Range],["RangeInclusive<",">",H.RangeInclusive],["Vec<",">",H.Vec],["WrapperKeepOpaque<",">",H.WrapperKeepOpaque],["WrapperOpaque<",">",H.WrapperOpaque]];function u8(t,[e,n]){return t.substring(e.length,t.length-n.length)}function Ya(t,{displayName:e,name:n}={},r=0){const i=Vf(t),s={displayName:e,info:H.Plain,name:n,type:i};if(++r>64)throw new Error("getTypeDef: Maximum nested limit reached");const a=vX.find(l=>l8(i,l));if(a)return s.info=a[2],a[3](s,i,u8(i,a),r);const o=_X.find(l=>l8(i,l));return o&&(s.info=o[2],s.sub=Ya(u8(i,o),{},r)),s}function Sd({lookupName:t,type:e}){return t||e}function Sm(t){if(!Array.isArray(t.sub))throw new Error(`Expected subtype as TypeDef[] in ${Le(t)}`);return t.sub}function bX(t){if(!t.sub||Array.isArray(t.sub))throw new Error(`Expected subtype as TypeDef in ${Le(t)}`);return t.sub}function c8(t){return Sd(bX(t))}function d8(t){const e=Sm(t),n={};for(let r=0,i=e.length;r`);return t.with(n,e)}function h8(t,e){const[n,r]=I_(e);return t.with(n,r)}function Uo(t,e){return t.with(c8(e))}const wX={[H.BTreeMap]:(t,e)=>h8(k_,e),[H.BTreeSet]:(t,e)=>Uo(T_,e),[H.Compact]:(t,e)=>Uo(_d,e),[H.DoNotConstruct]:(t,e)=>_m.with(e.displayName||e.type),[H.Enum]:(t,e)=>{const n=Sm(e);return Ri.with(n.every(({type:r})=>r==="Null")?n.reduce((r,{index:i,name:s},a)=>{if(!s)throw new Error("No name found in sub definition");return r[s]=i||a,r},{}):d8(e))},[H.HashMap]:(t,e)=>h8(P_,e),[H.Int]:(t,e)=>f8(Ws,e),[H.Linkage]:(t,e)=>{const n=`Option<${c8(e)}>`,r=An.with({previous:n,next:n});return r.prototype.toRawType=function(){return`Linkage<${this.next.toRawType(!0)}>`},r},[H.Null]:(t,e)=>hs,[H.Option]:(t,e)=>{if(!e.sub||Array.isArray(e.sub))throw new Error("Expected type information for Option");return Uo(qs,e)},[H.Plain]:(t,e)=>t.getOrUnknown(e.type),[H.Range]:(t,e)=>Uo(bm,e),[H.RangeInclusive]:(t,e)=>Uo(A_,e),[H.Result]:(t,e)=>{const[n,r]=I_(e);return jG.with({Err:r,Ok:n})},[H.Set]:(t,e)=>ky.with(Sm(e).reduce((n,{index:r,name:i})=>{if(!i||!Be(r))throw new Error("No name found in sub definition");return n[i]=r,n},{}),e.length),[H.Si]:(t,e)=>p8(t,t.lookup.getTypeDef(e.type)),[H.Struct]:(t,e)=>An.with(d8(e),e.alias),[H.Tuple]:(t,e)=>cu.with(I_(e)),[H.UInt]:(t,e)=>f8(Zs,e),[H.Vec]:(t,{sub:e})=>{if(!e||Array.isArray(e))throw new Error("Expected type information for vector");return e.type==="u8"?wd:E_.with(Sd(e))},[H.VecFixed]:(t,{displayName:e,length:n,sub:r})=>{if(!Be(n)||!r||Array.isArray(r))throw new Error("Expected length & type information for fixed vector");return r.type==="u8"?Ja.with(n*8,e):C_.with(Sd(r),n)},[H.WrapperKeepOpaque]:(t,e)=>Uo(wm,e),[H.WrapperOpaque]:(t,e)=>Uo(N_,e)};function xX(t,e){try{const n=wX[e.info](t,e);if(!n)throw new Error("No class created");return!n.__fallbackType&&e.fallbackType&&(n.__fallbackType=e.fallbackType),n}catch(n){throw new Error(`Unable to construct class from ${Le(e)}: ${n.message}`)}}function p8(t,e){return t.getUnsafe(e.type,!1,e)}function Ed(t,e){return t.getUnsafe(e)||p8(t,t.isLookupType(e)?t.lookup.getTypeDef(e):Ya(e))}function m8(t,e){const n=t.toU8a(),r=t.toRawType();if(!(Gn(n,e)||["Bytes","Text","Type"].includes(r)&&e.length===t.length||t.isEmpty&&e.every(s=>!s)))throw new Error(`${r}:: Decoded input doesn't match input, received ${Ae(e,512)} (${e.length} bytes), created ${Ae(n,512)} (${n.length} bytes)`)}function SX(t,[e]){he(e)?m8(t,e):Oe(e)&&m8(t,K(e))}function g8(t,e,n=[],{blockHash:r,isFallback:i,isOptional:s,isPedantic:a}={}){const o=new(s?qs.with(e):e)(t,...n);return a&&SX(o,n),r&&(o.createdAtHash=O_(t,"BlockHash",[r])),i&&(o.isStorageFallback=!0),o}function O_(t,e,n=[],r={}){let i=null,s=null;try{return i=Ed(t,e),g8(t,i,n,r)}catch(a){s=new Error(`createType(${e}):: ${a.message}`)}if(i!=null&&i.__fallbackType)try{return i=Ed(t,i.__fallbackType),g8(t,i,n,r)}catch{}throw s}const EX=t=>t.toString(),CX=["BTreeMap","BTreeSet","Compact","HashMap","Option","Result","Vec"];function kX(t,e,n=EX){return`${t}${e?`<${(Array.isArray(e)?e:[e]).map(n).join(", ")}>`:""}`}function oi(t,e,n){const{info:r,sub:i}=e;switch(r){case H.BTreeMap:case H.BTreeSet:case H.Compact:case H.HashMap:case H.Linkage:case H.Option:case H.Range:case H.RangeInclusive:case H.Result:case H.Vec:case H.WrapperKeepOpaque:case H.WrapperOpaque:return kX(n,i,s=>M_(t,s))}throw new Error(`Unable to encode ${Le(e)} with params`)}function y8(t,e,n,r){const i=e.map(({name:a})=>a);if(!i.every(a=>!!a))throw new Error(`Subtypes does not have consistent names, ${i.join(", ")}`);const s=ne({},r);for(let a=0,o=e.length;aoi(t,e,"BTreeMap"),[H.BTreeSet]:(t,e)=>oi(t,e,"BTreeSet"),[H.Compact]:(t,e)=>oi(t,e,"Compact"),[H.DoNotConstruct]:(t,{displayName:e,lookupIndex:n,lookupName:r})=>`DoNotConstruct<${r||e||(rt(n)?"Unknown":t.createLookupType(n))}>`,[H.Enum]:(t,{sub:e})=>{if(!Array.isArray(e))throw new Error("Unable to encode Enum type");return e.every(({type:n})=>n==="Null")?Le({_enum:e.map(({name:n},r)=>`${n||`Empty${r}`}`)}):y8(t,e,!0)},[H.HashMap]:(t,e)=>oi(t,e,"HashMap"),[H.Int]:(t,{length:e=32})=>`Int<${e}>`,[H.Linkage]:(t,e)=>oi(t,e,"Linkage"),[H.Null]:(t,e)=>"Null",[H.Option]:(t,e)=>oi(t,e,"Option"),[H.Plain]:(t,{displayName:e,type:n})=>e||n,[H.Range]:(t,e)=>oi(t,e,"Range"),[H.RangeInclusive]:(t,e)=>oi(t,e,"RangeInclusive"),[H.Result]:(t,e)=>oi(t,e,"Result"),[H.Set]:(t,{length:e=8,sub:n})=>{if(!Array.isArray(n))throw new Error("Unable to encode Set type");return Le({_set:n.reduce((r,{index:i,name:s},a)=>ne(r,{[`${s||`Unknown${i||a}`}`]:i||a}),{_bitLength:e||8})})},[H.Si]:(t,{lookupName:e,type:n})=>e||n,[H.Struct]:(t,{alias:e,sub:n})=>{if(!Array.isArray(n))throw new Error("Unable to encode Struct type");return y8(t,n,!1,e?{_alias:[...e.entries()].reduce((r,[i,s])=>ne(r,{[i]:s}),{})}:{})},[H.Tuple]:(t,{sub:e})=>{if(!Array.isArray(e))throw new Error("Unable to encode Tuple type");return`(${e.map(n=>M_(t,n)).join(",")})`},[H.UInt]:(t,{length:e=32})=>`UInt<${e}>`,[H.Vec]:(t,e)=>oi(t,e,"Vec"),[H.VecFixed]:(t,{length:e,sub:n})=>{if(!Be(e)||!n||Array.isArray(n))throw new Error("Unable to encode VecFixed type");return`[${n.type};${e}]`},[H.WrapperKeepOpaque]:(t,e)=>oi(t,e,"WrapperKeepOpaque"),[H.WrapperOpaque]:(t,e)=>oi(t,e,"WrapperOpaque")};function v8(t,e,n=!0){return n&&e.lookupName?e.lookupName:TX[e.info](t,e)}function M_(t,e){return e.displayName&&!CX.some(n=>e.displayName===n)?e.displayName:v8(t,e)}function Fr(t,e){return ne({},e,{type:v8(t,e,!1)})}const PX=["AssetInstance","Fungibility","Junction","Junctions","MultiAsset","MultiAssetFilter","MultiLocation","Response","WildFungibility","WildMultiAsset","Xcm","XcmError","XcmOrder"];function du(t){return PX.reduce((e,n)=>ne(e,{[n]:`${n}${t}`}),{})}const _8=ir("PortableRegistry"),b8={toNumber:()=>-1},AX={Char:"u32",Str:"Text"},NX=S8(["sp_core::crypto::AccountId32","sp_runtime::generic::era::Era","sp_runtime::multiaddress::MultiAddress","fp_account::AccountId20","account::AccountId20","polkadot_runtime_common::claims::EthereumAddress","frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight","*_democracy::vote::Vote","*_conviction_voting::vote::Vote","*_identity::types::Data","sp_core::OpaqueMetadata","sp_core::OpaquePeerId","sp_core::offchain::OpaqueMultiaddr","primitive_types::*","sp_arithmetic::per_things::*","*_runtime::RuntimeCall","*_runtime::RuntimeEvent","ink::env::types::*","ink::primitives::types::*","ink_env::types::*","ink_primitives::types::*","np_runtime::accountname::AccountName","np_runtime::universaladdress::UniversalAddress"]),RX=S8(["pallet_identity::types::BitFlags"]),IX=["bitvec::order::Lsb0","BitOrderLsb0"],OX=["bitvec::order::Msb0","BitOrderMsb0"],w8=[...IX,...OX],MX=["BoundedBTreeMap","BoundedBTreeSet","BoundedVec","Box","BTreeMap","BTreeSet","Cow","Option","Range","RangeInclusive","Result","WeakBoundedVec","WrapperKeepOpaque","WrapperOpaque"],LX=["entries","keys","new","size","hash","registry"],DX=["generic","misc","pallet","traits","types"];function x8(t){const e=t.length,n=new Array(e);for(let r=0;r{const i=e[r].toString();if(n==="*"||n===i)return!0;if(n.includes("*")&&n.includes("_")&&i.includes("_")){let s=n.split("_"),a=i.split("_");if(s[0]==="*"){const o=a.indexOf(s[1]);o!==-1&&(s=s.slice(1),a=a.slice(o))}return s.length===2&&s[1]==="*"&&s[0]===a[0]?!0:L_(s,a)}return!1})}function UX({def:t,path:e}){return["frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight"].includes(e.join("::"))?!t.isComposite||t.asComposite.fields.length===1?"WeightV1":null:e.length&&NX.some(n=>L_(n,e))?e[e.length-1].toString():null}function E8(t,e,n,r,i=!1){const s=r.length;if(s===0||MX.includes(r[s-1].toString()))return null;const a=new Array(s),o=new Array(s);for(let u=0;u{const{lookupIndex:a,name:o,params:l}=i;if(o){if(r[a])return i}else return null;const u=BX(o,s,n);if(u.length===1||!u.some(y=>l.length!==y.params.length||l.some((v,S)=>!v.name.eq(y.params[S].name)||v.type.unwrapOr(b8).toNumber()!==y.params[S].type.unwrapOr(b8).toNumber())))return i;const d=l.findIndex(({type:y},v)=>u.every(({params:S},_)=>S[v].type.isSome&&(_===0||!S[v].type.eq(y))));if(d===-1)return i;const h=u.length,m=new Array(h);for(let y=0;y!!i).map(({lookupIndex:i,name:s,params:a})=>({lookupIndex:i,name:r[i]||s,params:a}))}function FX(t,e,n,r){if(t.registry.register(e),r.SpRuntimeUncheckedExtrinsic){const[i,,s]=r.SpRuntimeUncheckedExtrinsic,a=t.getSiType(i.type.unwrap()),l=t.getSiType(s.type.unwrap()).path.join("::");let u=a.path.join("::");const c=u==="sp_runtime::multiaddress::MultiAddress";if(c){const[d]=a.params;u=t.getSiType(d.type.unwrap()).path.join("::")}t.registry.register({AccountId:u.endsWith("::AccountId20")||u.endsWith("::H160")?"AccountId20":"AccountId32",Address:c?"MultiAddress":"AccountId",ExtrinsicSignature:["sp_runtime::MultiSignature"].includes(l)?"MultiSignature":n[s.type.unwrap().toNumber()]||"MultiSignature"})}}function jX(t,e){const n=Object.keys(t).some(i=>!i.startsWith("Pallet")),r={};if(t.SpRuntimeUncheckedExtrinsic){const[,{type:i}]=t.SpRuntimeUncheckedExtrinsic;r[i.unwrap().toNumber()]="Call"}else n&&!e&&_8.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic");if(t.FrameSystemEventRecord){const[{type:i}]=t.FrameSystemEventRecord;r[i.unwrap().toNumber()]="Event"}else n&&!e&&_8.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord");return r}function zX(t,e){const n=[],r={};for(let l=0,u=e.length;l"},r);P(this,"__internal__alias");P(this,"__internal__lookups");P(this,"__internal__names");P(this,"__internal__params");P(this,"__internal__typeDefs",{});P(this,"__internal__types");const{lookups:s,names:a,params:o,types:l}=zX(this,this.types);this.__internal__alias=jX(o,i),this.__internal__lookups=s,this.__internal__names=a,this.__internal__params=o,this.__internal__types=l}get names(){return Object.values(this.__internal__names).sort()}get paramTypes(){return this.__internal__params}get types(){return this.getT("types")}register(){FX(this,this.__internal__lookups,this.__internal__names,this.__internal__params)}getName(n){return this.__internal__names[this.__internal__getLookupId(n)]}getSiType(n){const r=(this.__internal__types||this.types)[this.__internal__getLookupId(n)];if(!r)throw new Error(`PortableRegistry: Unable to find type with lookupId ${n.toString()}`);return r.type}getTypeDef(n){const r=this.__internal__getLookupId(n);if(!this.__internal__typeDefs[r]){const i=this.__internal__names[r],s={info:H.DoNotConstruct,lookupIndex:r,lookupName:i,type:this.registry.createLookupType(r)};i&&(this.__internal__typeDefs[r]=s);const a=this.__internal__extract(this.getSiType(n),r);i||(this.__internal__typeDefs[r]=s),Object.keys(a).forEach(o=>{(o!=="lookupName"||a[o])&&(this.__internal__typeDefs[r][o]=a[o])}),a.info===H.Plain&&(this.__internal__typeDefs[r].lookupNameRoot=this.__internal__typeDefs[r].lookupName,delete this.__internal__typeDefs[r].lookupName)}return this.__internal__typeDefs[r]}sanitizeField(n){let r=null,i=null;return n.isSome&&(r=je(n.unwrap()),r.includes("#")?(i=r,r=i.replace(/#/g,"_")):LX.includes(r)&&(i=r,r=`${r}_`)),[r,i]}__internal__createSiDef(n){const r=this.getTypeDef(n),i=n.toNumber();return[H.DoNotConstruct,H.Enum,H.Struct].includes(r.info)&&r.lookupName?{docs:r.docs,info:H.Si,lookupIndex:i,lookupName:this.__internal__names[i],type:this.registry.createLookupType(n)}:r}__internal__getLookupId(n){if(Ye(n)){if(!this.registry.isLookupType(n))throw new Error(`PortableRegistry: Expected a lookup string type, found ${n}`);return parseInt(n.replace("Lookup",""),10)}else if(Be(n))return n;return n.toNumber()}__internal__extract(n,r){const i=n.path.join("::");let s;const a=this.__internal__alias[r]||UX(n);try{if(a)s=this.__internal__extractAliasPath(r,a);else switch(n.def.type){case"Array":s=this.__internal__extractArray(r,n.def.asArray);break;case"BitSequence":s=this.__internal__extractBitSequence(r,n.def.asBitSequence);break;case"Compact":s=this.__internal__extractCompact(r,n.def.asCompact);break;case"Composite":s=this.__internal__extractComposite(r,n,n.def.asComposite);break;case"HistoricMetaCompat":s=this.__internal__extractHistoric(r,n.def.asHistoricMetaCompat);break;case"Primitive":s=this.__internal__extractPrimitive(r,n);break;case"Sequence":s=this.__internal__extractSequence(r,n.def.asSequence);break;case"Tuple":s=this.__internal__extractTuple(r,n.def.asTuple);break;case"Variant":s=this.__internal__extractVariant(r,n,n.def.asVariant);break;default:jg(n.def.type)}}catch(o){throw new Error(`PortableRegistry: ${r}${i?` (${i})`:""}: Error extracting ${Le(n)}: ${o.message}`)}return ne({docs:x8(n.docs),namespace:i},s)}__internal__extractArray(n,{len:r,type:i}){const s=r.toNumber();if(s>2048)throw new Error("Only support for [Type; ], where length <= 2048");return Fr(this.registry,{info:H.VecFixed,length:s,sub:this.__internal__createSiDef(i)})}__internal__extractBitSequence(n,{bitOrderType:r,bitStoreType:i}){const s=this.__internal__createSiDef(r),a=this.__internal__createSiDef(i),[o,l]=w8.includes(s.namespace||"")?[s,a]:[a,s];if(!o.namespace||!w8.includes(o.namespace))throw new Error(`Unexpected bitOrder found as ${o.namespace||""}`);if(l.info!==H.Plain||l.type!=="u8")throw new Error(`Only u8 bitStore is currently supported, found ${l.type}`);return{info:H.Plain,type:"BitVec"}}__internal__extractCompact(n,{type:r}){return Fr(this.registry,{info:H.Compact,sub:this.__internal__createSiDef(r)})}__internal__extractComposite(n,{params:r,path:i},{fields:s}){if(i.length){const a=i[0].toString(),o=i[i.length-1].toString();if(i.length===1&&a==="BTreeMap"){if(r.length!==2)throw new Error(`BTreeMap requires 2 parameters, found ${r.length}`);return Fr(this.registry,{info:H.BTreeMap,sub:r.map(({type:l})=>this.__internal__createSiDef(l.unwrap()))})}else if(i.length===1&&a==="BTreeSet"){if(r.length!==1)throw new Error(`BTreeSet requires 1 parameter, found ${r.length}`);return Fr(this.registry,{info:H.BTreeSet,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(["Range","RangeInclusive"].includes(a)){if(r.length!==1)throw new Error(`Range requires 1 parameter, found ${r.length}`);return Fr(this.registry,{info:a==="Range"?H.Range:H.RangeInclusive,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:a})}else if(["WrapperKeepOpaque","WrapperOpaque"].includes(o)){if(r.length!==1)throw new Error(`WrapperOpaque requires 1 parameter, found ${r.length}`);return Fr(this.registry,{info:o==="WrapperKeepOpaque"?H.WrapperKeepOpaque:H.WrapperOpaque,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:o})}}return RX.some(a=>L_(a,i))?this.__internal__extractCompositeSet(n,r,s):this.__internal__extractFields(n,s)}__internal__extractCompositeSet(n,r,i){if(r.length!==1||i.length!==1)throw new Error("Set handling expects param/field as single entries");return Fr(this.registry,{info:H.Set,length:this.registry.createTypeUnsafe(this.registry.createLookupType(i[0].type),[]).bitLength(),sub:this.getSiType(r[0].type.unwrap()).def.asVariant.variants.map(({index:s,name:a})=>({index:s.toNumber(),info:H.Plain,name:a.toString(),type:"Null"}))})}__internal__extractFields(n,r){let i=!0,s=!0;const a=r.length;for(let u=0;uthis.__internal__createSiDef(s));return Fr(this.registry,{info:H.Tuple,lookupIndex:n,lookupName:this.__internal__names[n],sub:i})}__internal__extractVariant(n,{params:r,path:i},{variants:s}){if(i.length){const a=i[0].toString();if(a==="Option"){if(r.length!==1)throw new Error(`Option requires 1 parameter, found ${r.length}`);return Fr(this.registry,{info:H.Option,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(a==="Result"){if(r.length!==2)throw new Error(`Result requires 2 parameters, found ${r.length}`);return Fr(this.registry,{info:H.Result,sub:r.map(({type:o},l)=>ne({name:["Ok","Error"][l]},this.__internal__createSiDef(o.unwrap())))})}}return s.length===0?{info:H.Null,type:"Null"}:this.__internal__extractVariantEnum(n,s)}__internal__extractVariantEnum(n,r){const i=[];return r.slice().sort((s,a)=>s.index.cmp(a.index)).forEach(({fields:s,index:a,name:o})=>{const l=a.toNumber();for(;i.length!==l;)i.push({index:i.length,info:H.Null,name:`__Unused${i.length}`,type:"Null"});i.push(ne(this.__internal__extractFields(-1,s),{index:l,name:o.toString()}))}),Fr(this.registry,{info:H.Enum,lookupIndex:n,lookupName:this.__internal__names[n],sub:i})}}function k8(t){return(e,{type:n})=>e.createType("Si1TypeDef",{[t]:{type:n.toNumber()}})}function qX(t,{len:e,type:n}){return t.createType("Si1TypeDef",{Array:{len:e,type:n.toNumber()}})}function ZX(t,{bitOrderType:e,bitStoreType:n}){return t.createType("Si1TypeDef",{BitSequence:{bitOrderType:e.toNumber(),bitStoreType:n.toNumber()}})}const GX=k8("Compact");function XX(t,{fields:e}){return t.createType("Si1TypeDef",{Composite:{fields:T8(t,e)}})}function T8(t,e){return e.map(({docs:n,name:r,type:i,typeName:s})=>t.createType("Si1Field",{docs:n,name:r,type:i.toNumber(),typeName:s}))}function KX(t,e){return t.createType("Si1TypeDef",{Tuple:[]})}function JX(t,e){return t.createType("Si1TypeDef",{Primitive:e.toString()})}const YX=k8("Sequence");function $X(t,e){return t.createType("Si1TypeDef",{Tuple:e.map(n=>n.toNumber())})}function QX(t,{variants:e}){return t.createType("Si1TypeDef",{Variant:{variants:e.map(({discriminant:n,docs:r,fields:i,name:s},a)=>t.createType("Si1Variant",{docs:r,fields:T8(t,i),index:n.isSome?n.unwrap().toNumber():a,name:s}))}})}function eK(t,{def:e,path:n}){let r;switch(e.type){case"Array":r=qX(t,e.asArray);break;case"BitSequence":r=ZX(t,e.asBitSequence);break;case"Compact":r=GX(t,e.asCompact);break;case"Composite":r=XX(t,e.asComposite);break;case"Phantom":r=KX(t,n);break;case"Primitive":r=JX(t,e.asPrimitive);break;case"Sequence":r=YX(t,e.asSequence);break;case"Tuple":r=$X(t,e.asTuple);break;case"Variant":r=QX(t,e.asVariant);break;default:jg(e.type)}return r}function tK(t,e){return e.map((n,r)=>t.createType("PortableType",{id:r+1,type:{def:eK(t,n),docs:[],params:n.params.map(i=>t.createType("Si1TypeParameter",{type:i.toNumber()})),path:n.path.map(i=>i.toString())}}))}function D_(t,e=[]){for(let n=0,r=t.length;nn||r))}function kd(t,{info:e}){throw new Error(`Unhandled: Unable to create and validate type from ${t} (info=${H[e]})`)}const nK={[H.BTreeMap]:Vo,[H.BTreeSet]:ps,[H.Compact]:ps,[H.DoNotConstruct]:kd,[H.Enum]:Vo,[H.HashMap]:Vo,[H.Int]:kd,[H.Linkage]:ps,[H.Null]:kd,[H.Option]:ps,[H.Plain]:(t,e)=>e.lookupName||e.type,[H.Range]:ps,[H.RangeInclusive]:ps,[H.Result]:Vo,[H.Set]:Vo,[H.Si]:kd,[H.Struct]:Vo,[H.Tuple]:Vo,[H.UInt]:kd,[H.Vec]:ps,[H.VecFixed]:ps,[H.WrapperKeepOpaque]:ps,[H.WrapperOpaque]:ps};function U_(t){const e=t.length,n=new Array(e);for(let r=0;r!t.hasType(i)&&!t.isLookupType(i)).sort();if(r.length!==0){const i=`Unknown types found, no types for ${r.join(", ")}`;if(e)throw new Error(i);rK.warn(i)}return n}function P8(t,e){return e.map(({type:n})=>t.getTypeDef(n).type)}function A8(t,e){return t.getSiType(e).def.asVariant.variants.map(({fields:n})=>P8(t,n))}function sK({lookup:t,pallets:e}){return e.reduce((n,{calls:r,constants:i,events:s,storage:a})=>(n.push([P8(t,i)]),r.isSome&&n.push(A8(t,r.unwrap().type)),s.isSome&&n.push(A8(t,s.unwrap().type)),a.isSome&&n.push(a.unwrap().items.map(({type:o})=>{if(o.isPlain)return[t.getTypeDef(o.asPlain).type];const{hashers:l,key:u,value:c}=o.asMap;return l.length===1?[t.getTypeDef(c).type,t.getTypeDef(u).type]:[t.getTypeDef(c).type,...t.getSiType(u).def.asTuple.map(d=>t.getTypeDef(d).type)]})),n),[])}function aK(t,e,n){return iK(t,n,D_(sK(e)))}function oK(t){const e=t.map(r=>r.toString().trim()),n=e.findIndex(r=>!r.length);return n===-1?e:e.slice(0,n)}function lK(t,{extrinsic:e,lookup:n,pallets:r}){return t.createTypeUnsafe("MetadataLatest",[{extrinsic:e,lookup:{types:n.types.map(({id:i,type:s})=>t.createTypeUnsafe("PortableType",[{id:i,type:ne({},s,{docs:oK(s.docs)})}]))},pallets:r.map(({calls:i,index:s,name:a})=>({calls:t.createTypeUnsafe("Option",[i.unwrapOr(null)]),index:s,name:a}))}]).toJSON()}function uK(t){return t.isPlain?t.asPlain:t.asMap.value}function V_(t,e,n){const r=Cd(t.lookup,uK(e));return n?`Option<${r}>`:r}function fu(t,{type:e},n,r){const i={},s=t.getSiType(e).def.asVariant.variants;for(let a=0,o=s.length;a"},payload:{}},I8=ne({},{ChargeTransactionPayment:R8,CheckBlockGasLimit:Td,CheckEra:N8,CheckGenesis:{extrinsic:{},payload:{genesisHash:"Hash"}},CheckMortality:N8,CheckNonZeroSender:Td,CheckNonce:{extrinsic:{nonce:"Compact"},payload:{}},CheckSpecVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckTxVersion:{extrinsic:{},payload:{transactionVersion:"u32"}},CheckVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckWeight:Td,LockStakingStatus:Td,SkipCheckIfFeeless:R8,ValidateEquivocationReport:Td},dK,fK,cK),H_=["CheckVersion","CheckGenesis","CheckEra","CheckNonce","CheckWeight","ChargeTransactionPayment","CheckBlockGasLimit"];function hK(t,e={}){const n=[...Object.keys(I8),...Object.keys(e)];return t.filter(r=>!n.includes(r))}function O8(t,e,n={}){return t.map(r=>n[r]||I8[r]).filter(r=>!!r).reduce((r,i)=>ne(r,i[e]),{})}function pK(t,e){if(!(e!=null&&e.length))return{DataType:hs};const n=e.subarray(0,2);return{DataType:t.findMetaEvent(n),value:{data:e.subarray(2),index:n}}}class M8 extends cu{constructor(n,r,i,s="",a=""){const o=(i==null?void 0:i.fields)||[];super(n,o.map(({type:u})=>n.createLookupType(u)),r);P(this,"__internal__meta");P(this,"__internal__method");P(this,"__internal__names",null);P(this,"__internal__section");P(this,"__internal__typeDef");this.__internal__meta=i,this.__internal__method=a,this.__internal__section=s,this.__internal__typeDef=o.map(({type:u})=>n.lookup.getTypeDef(u));const l=o.map(({name:u})=>n.lookup.sanitizeField(u)[0]).filter(u=>!!u);l.length===o.length&&(this.__internal__names=l,ma(this,l,(u,c)=>this[c]))}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get names(){return this.__internal__names}get section(){return this.__internal__section}get typeDef(){return this.__internal__typeDef}toHuman(n){if(this.__internal__names!==null){const r={};for(let i=0,s=this.__internal__names.length;in.toString())}:null,super.toHuman(e))}}const L8=4;class Em extends An{constructor(e,n,{isSigned:r}={}){super(e,{signature:"ExtrinsicSignatureV4",method:"Call"},Em.decodeExtrinsic(e,n,r))}static decodeExtrinsic(e,n,r=!1){if(n instanceof Em)return n;if(n instanceof e.createClassUnsafe("Call"))return{method:n};if(he(n)){const i=e.createTypeUnsafe("ExtrinsicSignatureV4",[n,{isSigned:r}]);return{method:e.createTypeUnsafe("Call",[n.subarray(i.encodedLength)]),signature:i}}return n||{}}get encodedLength(){return this.toU8a().length}get method(){return this.getT("method")}get signature(){return this.getT("signature")}get version(){return L8}addSignature(e,n,r){return this.signature.addSignature(e,n,r),this}sign(e,n){return this.signature.sign(this.method,e,n),this}signFake(e,n){return this.signature.signFake(this.method,e,n),this}}const F_=128,gK=0,j_=new Uint8Array,D8=4,U8=new Uint8Array([0]),V8=127,B8=["ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicV4"];function Cm(t,e,n){if(e instanceof km)return e.unwrap();const r=(n&F_)===F_,i=B8[n&V8]||B8[0];return t.createTypeUnsafe(i,[e,{isSigned:r,version:n}])}function yK(t,e,n=D8){return he(e)||Array.isArray(e)||Oe(e)?vK(t,K(e),n):e instanceof t.createClassUnsafe("Call")?Cm(t,{method:e},n):Cm(t,e,n)}function vK(t,e,n){if(!e.length)return Cm(t,new Uint8Array,n);const[r,i]=kf(e),s=r+i.toNumber();if(s>e.length)throw new Error(`Extrinsic: length less than remainder, expected at least ${s}, found ${e.length}`);const a=e.subarray(r,s);return Cm(t,a.subarray(1),a[0])}class _K extends vm{constructor(e,n,r){super(e,n,r);const i=Object.keys(e.getSignedExtensionTypes()),s=a=>this.inner.signature[a];for(let a=0,o=i.length;a>12,1),o=s/a*a;return[new ai(t,i),new ai(t,o)]}function SK(t,e){if(e.length===0)return[new ai(t),new ai(t)];const n=Cr(e.subarray(0,1)).toNumber(),r=Cr(e.subarray(1,2)).toNumber(),i=n+(r<<8),s=2<>12,1),o=(i>>4)*a;if(s<4||o>=s)throw new Error("Invalid data passed to Mortal era");return[new ai(t,s),new ai(t,o)]}function z_(t=new Uint8Array){if(he(t))return!t.length||t[0]===0?new Uint8Array([0]):new Uint8Array([1,t[0],t[1]]);if(t){if(t instanceof j8)return z_(t.toU8a());if(Oe(t))return z_(kn(t));if(qn(t)){const e=Object.entries(t).map(([i,s])=>[i.toLowerCase(),s]),n=e.find(([i])=>i.toLowerCase()==="mortalera"),r=e.find(([i])=>i.toLowerCase()==="immortalera");return n?{MortalEra:n[1]}:r?{ImmortalEra:r[1]}:{MortalEra:t}}}else return new Uint8Array([0]);throw new Error("Invalid data passed to Era")}class H8 extends Jr{constructor(e,n){super(e,U8)}}class F8 extends cu{constructor(e,n){super(e,{period:ai,phase:ai},wK(e,n))}get encodedLength(){return 2}get period(){return this[0]}get phase(){return this[1]}toHuman(){return{period:Pf(this.period),phase:Pf(this.phase)}}toJSON(){return this.toHex()}toU8a(e){const n=this.period.toNumber(),r=Math.min(15,Math.max(1,bK(n)-1))+(this.phase.toNumber()/Math.max(n>>12,1)<<4);return new Uint8Array([r&255,r>>8])}birth(e){const n=this.phase.toNumber(),r=this.period.toNumber();return~~((Math.max(bn(e).toNumber(),n)-n)/r)*r+n}death(e){return this.birth(e)+this.period.toNumber()}}class j8 extends Ri{constructor(e,n){super(e,{ImmortalEra:H8,MortalEra:F8},z_(n))}get encodedLength(){return this.isImmortalEra?this.asImmortalEra.encodedLength:this.asMortalEra.encodedLength}get asImmortalEra(){if(!this.isImmortalEra)throw new Error(`Cannot convert '${this.type}' via asImmortalEra`);return this.inner}get asMortalEra(){if(!this.isMortalEra)throw new Error(`Cannot convert '${this.type}' via asMortalEra`);return this.inner}get isImmortalEra(){return this.index===0}get isMortalEra(){return this.index>0}toU8a(e){return this.isMortalEra?this.asMortalEra.toU8a(e):this.asImmortalEra.toU8a(e)}}const z8=["ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadV4"];function EK(t,e,n=D8){return e instanceof W8?e.unwrap():t.createTypeUnsafe(z8[n]||z8[0],[e,{version:n}])}class W8 extends vm{constructor(e,n,{version:r}={}){super(e,EK(e,n,r))}get blockHash(){return this.inner.blockHash}get era(){return this.inner.era}get genesisHash(){return this.inner.genesisHash||this.registry.createTypeUnsafe("Hash",[])}get method(){return this.inner.method}get nonce(){return this.inner.nonce}get specVersion(){return this.inner.specVersion||this.registry.createTypeUnsafe("u32",[])}get tip(){return this.inner.tip||this.registry.createTypeUnsafe("Compact",[])}get transactionVersion(){return this.inner.transactionVersion||this.registry.createTypeUnsafe("u32",[])}eq(e){return this.inner.eq(e)}sign(e){const n=this.inner.sign(e);return{signature:Ae(n)}}toHuman(e){return this.inner.toHuman(e)}toJSON(){return this.toHex()}toRawType(){return"ExtrinsicPayload"}toString(){return this.toHex()}toU8a(e){return super.toU8a(e?{method:!0}:!1)}}class CK extends An{constructor(e,n,{version:r=0}={}){throw super(e,{}),new Error(`Unsupported extrinsic payload version ${r}`)}}class kK extends An{constructor(e,n,{isSigned:r=!1,version:i=0}={}){throw super(e,{}),new Error(`Unsupported ${r?"":"un"}signed extrinsic version ${i&V8}`)}}const q8={address:"Address",blockHash:"Hash",blockNumber:"BlockNumber",era:"ExtrinsicEra",genesisHash:"Hash",method:"Call",nonce:"Compact",runtimeVersion:"RuntimeVersion",signedExtensions:"Vec",tip:"Compact",version:"u8"};class TK extends An{constructor(n,r){const i=ne({},n.getSignedExtensionTypes(),n.getSignedExtensionExtra());super(n,ne({},i,q8),r);P(this,"__internal__extraTypes");this.__internal__extraTypes={};const s=a=>this.get(a);for(const[a,o]of Object.entries(i))q8[a]||(this.__internal__extraTypes[a]=o),Af(this,a,s)}get address(){return this.getT("address")}get blockHash(){return this.getT("blockHash")}get blockNumber(){return this.getT("blockNumber")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get runtimeVersion(){return this.getT("runtimeVersion")}get signedExtensions(){return this.getT("signedExtensions")}get tip(){return this.getT("tip")}get version(){return this.getT("version")}toPayload(){const n={},r=Object.keys(this.__internal__extraTypes);for(let i=0,s=r.length;ii.toString()),specVersion:this.runtimeVersion.specVersion.toHex(),tip:this.tip.toHex(),transactionVersion:this.runtimeVersion.transactionVersion.toHex(),version:this.version.toNumber()})}toRaw(){const n=this.toPayload(),r=Ae(this.registry.createTypeUnsafe("ExtrinsicPayload",[n,{version:n.version}]).toU8a({method:!0}));return{address:n.address,data:r,type:"payload"}}}function PK(t,e,n,r){const i=n.length>256?t.hash(n):n;return e.sign(i,r)}class W_ extends An{constructor(n,r){super(n,ne({method:"Bytes"},n.getSignedExtensionTypes(),n.getSignedExtensionExtra()),r);P(this,"__internal__signOptions");this.__internal__signOptions={withType:n.createTypeUnsafe("ExtrinsicSignature",[])instanceof Ri}}inspect(){return super.inspect({method:!0})}get blockHash(){return this.getT("blockHash")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get specVersion(){return this.getT("specVersion")}get tip(){return this.getT("tip")}get transactionVersion(){return this.getT("transactionVersion")}get assetId(){return this.getT("assetId")}sign(n){return PK(this.registry,n,this.toU8a({method:!0}),this.__internal__signOptions)}}const AK=new Uint8Array(256).fill(1);function q_(t,e){return t.createTypeUnsafe("Address",[he(e)?Ae(e):e])}class Tm extends An{constructor(n,r,{isSigned:i}={}){const s=n.getSignedExtensionTypes();super(n,ne({signer:"Address",signature:"ExtrinsicSignature"},s),Tm.decodeExtrinsicSignature(r,i));P(this,"__internal__signKeys");this.__internal__signKeys=Object.keys(s),ma(this,this.__internal__signKeys,a=>this.get(a))}static decodeExtrinsicSignature(n,r=!1){if(n){if(n instanceof Tm)return n}else return j_;return r?n:j_}get encodedLength(){return this.isSigned?super.encodedLength:0}get isSigned(){return!this.signature.isEmpty}get era(){return this.getT("era")}get nonce(){return this.getT("nonce")}get signature(){return this.multiSignature.value||this.multiSignature}get multiSignature(){return this.getT("signature")}get signer(){return this.getT("signer")}get tip(){return this.getT("tip")}_injectSignature(n,r,i){for(let s=0,a=this.__internal__signKeys.length;sa))throw new Error(`Invalid AccountId provided, expected ${n>>3} bytes, found ${i.length}`);super(e,i,n)}eq(e){return super.eq(Z8(e))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return Qp(this,this.registry.chainSS58)}toRawType(){return"AccountId"}}class Pm extends G8{constructor(e,n){super(e,256,n)}}class NK extends G8{constructor(e,n){super(e,264,n)}}const RK=239,X8=252,K8=253,J8=254,IK=new te(RK),OK=new te(1).shln(16),MK=new te(1).shln(32);function Y8(t){return t instanceof Cn?t.toBn():rr(t)||Be(t)||Oe(t)||he(t)||Es(t)?t:Y8(_r(t))}class Cn extends xd{constructor(e,n=new te(0)){super(e,Y8(n))}static calcLength(e){const n=bn(e);return n.lte(IK)?1:n.lt(OK)?2:n.lt(MK)?4:8}static readLength(e){const n=e[0];return n===X8?[1,2]:n===K8?[1,4]:n===J8?[1,8]:[0,1]}static writeLength(e){switch(e.length){case 2:return new Uint8Array([X8]);case 4:return new Uint8Array([K8]);case 8:return new Uint8Array([J8]);default:return new Uint8Array([])}}eq(e){return rr(e)||Be(e)?super.eq(e):super.eq(this.registry.createTypeUnsafe("AccountIndex",[e]))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){const e=Cn.calcLength(this);return Qp(this.toU8a().subarray(0,e),this.registry.chainSS58)}toRawType(){return"AccountIndex"}}class LK extends An{constructor(e,n){super(e,{header:"Header",extrinsics:"Vec"},n)}get contentHash(){return this.registry.hash(this.toU8a())}get extrinsics(){return this.getT("extrinsics")}get hash(){return this.header.hash}get header(){return this.getT("header")}}function Z_(t,e){return e.fields.reduce((n,{name:r,type:i},s)=>(n[r.unwrapOr(`param${s}`).toString()]=t.createLookupType(i),n),{})}function DK(t,e,n){const{args:r,callIndex:i}=e,s=i instanceof $8?i.toU8a():i,a=n||t.findMetaCall(s).meta;return{args:r,argsDef:Z_(t,a),callIndex:i,meta:a}}function UK(t,e,n){const r=t.firstCallIndex.slice();r.set(e.subarray(0,2),0);const i=n||t.findMetaCall(r).meta;return{args:e.subarray(2),argsDef:Z_(t,i),callIndex:r,meta:i}}function VK(t,e=new Uint8Array,n){if(he(e)||Oe(e))return UK(t,K(e),n);if(qn(e)&&e.callIndex&&e.args)return DK(t,e,n);throw new Error(`Call: Cannot decode value '${e}' of type ${typeof e}`)}class $8 extends Ja{constructor(e,n){super(e,n,16)}toPrimitive(){return this.toHex()}}class BK extends An{constructor(n,r,i){var e=(...tae)=>{super(...tae);P(this,"_meta")};const s=VK(n,r,i);try{e(n,{callIndex:$8,args:An.with(s.argsDef)},s)}catch(a){let o="unknown.unknown";try{const l=n.findMetaCall(s.callIndex);o=`${l.section}.${l.method}`}catch{}throw new Error(`Call: failed decoding ${o}:: ${a.message}`)}this._meta=s.meta}get args(){return[...this.getT("args").values()]}get argsDef(){return Z_(this.registry,this.meta)}get argsEntries(){return[...this.getT("args").entries()]}get callIndex(){return this.getT("callIndex").toU8a()}get data(){return this.getT("args").toU8a()}get meta(){return this._meta}get method(){return this.registry.findMetaCall(this.callIndex).method}get section(){return this.registry.findMetaCall(this.callIndex).section}is(n){return n.callIndex[0]===this.callIndex[0]&&n.callIndex[1]===this.callIndex[1]}toHuman(n){let r;try{r=this.registry.findMetaCall(this.callIndex)}catch{}return ne({args:this.argsEntries.reduce((i,[s,a])=>ne(i,{[s]:a.toHuman(n)}),{}),method:r==null?void 0:r.method,section:r==null?void 0:r.section},n&&r?{docs:r.meta.docs.map(i=>i.toString())}:null)}toRawType(){return"Call"}}function Am(t,e,n,r=!0){return n&&Se(n.unwrapOrDefault)?n:t.createTypeUnsafe(e,[r?fa(n)||rt(n)?null:Array.isArray(n)?n:[n]:n])}function HK(t,e,n){return e==="ss58Format"?Am(t,"Option",n,!1):e==="tokenDecimals"?Am(t,"Option>",n):e==="tokenSymbol"?Am(t,"Option>",n):e==="isEthereum"?Am(t,"Bool",n,!1):n}function FK(t,e){return(e&&Se(e.entries)?[...e.entries()]:Object.entries(e||{})).reduce((n,[r,i])=>(n[r]=HK(t,r,i),n),{isEthereum:t.createTypeUnsafe("Bool",[]),ss58Format:t.createTypeUnsafe("Option",[]),tokenDecimals:t.createTypeUnsafe("Option>",[]),tokenSymbol:t.createTypeUnsafe("Option>",[])})}class jK extends iS{constructor(e,n){super(e,FK(e,n))}get isEthereum(){return this.getT("isEthereum")}get ss58Format(){return this.getT("ss58Format")}get tokenDecimals(){return this.getT("tokenDecimals")}get tokenSymbol(){return this.getT("tokenSymbol")}}const zK=Nt("aura"),WK=Nt("BABE"),qK=Nt("FRNK"),ZK=Nt("pow_"),GK=Nt("nmbs");function XK(t,e,n){return n[t.createTypeUnsafe("RawAuraPreDigest",[e.toU8a(!0)]).slotNumber.mod(new te(n.length)).toNumber()]}function KK(t,e,n){const r=t.createTypeUnsafe("RawBabePreDigestCompat",[e.toU8a(!0)]);return n[r.value.toNumber()]}function JK(t,e){return t.createTypeUnsafe("AccountId",[e])}class YK extends Ja{constructor(e,n){super(e,Be(n)?Pn(n,{isLe:!1}):n,32)}get isAura(){return this.eq(zK)}get isBabe(){return this.eq(WK)}get isGrandpa(){return this.eq(qK)}get isPow(){return this.eq(ZK)}get isNimbus(){return this.eq(GK)}extractAuthor(e,n){if(n!=null&&n.length){if(this.isAura)return XK(this.registry,e,n);if(this.isBabe)return KK(this.registry,e,n)}if(this.isPow||this.isNimbus)return JK(this.registry,e)}toHuman(){return this.toString()}toRawType(){return"ConsensusEngineId"}toString(){return this.isAscii?di(this):Ae(this)}}const Q8=new Uint8Array([255]);function $K(t,e){const n=_r(e);return n.length===32?t.createTypeUnsafe("AccountId",[n]):t.createTypeUnsafe("AccountIndex",[Cr(n)])}function QK(t,e){if(e.length===32)return t.createTypeUnsafe("AccountId",[e]);if(e[0]===255)return t.createTypeUnsafe("AccountId",[e.subarray(1)]);const[n,r]=Cn.readLength(e);return t.createTypeUnsafe("AccountIndex",[Cr(e.subarray(n,n+r))])}function eJ(t,e){return e instanceof e5?e.inner:e instanceof Pm||e instanceof Cn?e:rr(e)||Be(e)||Es(e)?t.createTypeUnsafe("AccountIndex",[e]):Array.isArray(e)||Oe(e)||he(e)?QK(t,K(e)):$K(t,e)}class e5 extends vm{constructor(e,n=new Uint8Array){super(e,eJ(e,n))}get encodedLength(){const e=this._rawLength;return e+(e>1?1:0)}get _rawLength(){return this.inner instanceof Cn?Cn.calcLength(this.inner):this.inner.encodedLength}inspect(){const e=this.inner.toU8a().subarray(0,this._rawLength);return{outer:[new Uint8Array(this.inner instanceof Cn?Cn.writeLength(e):Q8),e]}}toHex(){return Ae(this.toU8a())}toRawType(){return"Address"}toU8a(e){const n=this.inner.toU8a().subarray(0,this._rawLength);return e?n:ot(this.inner instanceof Cn?Cn.writeLength(n):Q8,n)}}function t5(t,e){return[0,32].includes(e.length)?{Id:e}:e.length===20?{Address20:e}:e.length<=8?{Index:t.createTypeUnsafe("AccountIndex",[e]).toNumber()}:e}function tJ(t,e){return e instanceof Pm?{Id:e}:he(e)?t5(t,e):e instanceof G_?e:e instanceof Cn||rr(e)||Be(e)?{Index:Be(e)?e:e.toNumber()}:Ye(e)?t5(t,_r(e.toString())):e}class G_ extends Ri{constructor(e,n){super(e,{Id:"AccountId",Index:"Compact",Raw:"Bytes",Address32:"H256",Address20:"H160"},tJ(e,n))}inspect(){const{inner:e,outer:n=[]}=this.inner.inspect();return{inner:e,outer:[new Uint8Array([this.index]),...n]}}toString(){return this.value.toString()}}const Nm=128,X_=0,nJ=127,n5=0;function r5(t){return t?new Uint8Array([Nm|n5]):new Uint8Array([X_])}function rJ(t){return t.length?t.subarray(0,1):new Uint8Array([X_])}function iJ(t,e){return new Uint8Array([(new al(t,e.aye).isTrue?Nm:X_)|t.createTypeUnsafe("Conviction",[e.conviction||n5]).index])}function sJ(t,e){return he(e)?rJ(e):rt(e)||e instanceof Boolean||$u(e)?r5(new al(t,e).isTrue):Be(e)?r5(e<0):iJ(t,e)}class aJ extends Ja{constructor(n,r){const i=sJ(n,r);super(n,i,8);P(this,"__internal__aye");P(this,"__internal__conviction");this.__internal__aye=(i[0]&Nm)===Nm,this.__internal__conviction=this.registry.createTypeUnsafe("Conviction",[i[0]&nJ])}get conviction(){return this.__internal__conviction}get isAye(){return this.__internal__aye}get isNay(){return!this.isAye}toHuman(n){return{conviction:this.conviction.toHuman(n),vote:this.isAye?"Aye":"Nay"}}toPrimitive(){return{aye:this.isAye,conviction:this.conviction.toPrimitive()}}toRawType(){return"Vote"}}function i5(t){return he(t)||Array.isArray(t)?K(t):Oe(t)||GW(t.toString())?kn(t.toString()):Ye(t)?K(t):t}class s5 extends Ja{constructor(e,n=new Uint8Array){super(e,i5(n),160)}eq(e){return!!e&&super.eq(i5(e))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return Y1(this)}toRawType(){return"AccountId"}}const oJ=new Uint8Array([255]);function lJ(t,e){const n=_r(e);return n.length===20?t.createTypeUnsafe("EthereumAccountId",[n]):t.createTypeUnsafe("AccountIndex",[Cr(n)])}function uJ(t,e){if(e.length===20)return t.createTypeUnsafe("EthereumAccountId",[e]);if(e[0]===255)return t.createTypeUnsafe("EthereumAccountId",[e.subarray(1)]);const[n,r]=Cn.readLength(e);return t.createTypeUnsafe("AccountIndex",[Cr(e.subarray(n,n+r))])}function cJ(t,e){return e instanceof a5?e.inner:e instanceof s5||e instanceof Cn?e:he(e)||Array.isArray(e)||Oe(e)?uJ(t,K(e)):rr(e)||Be(e)||Es(e)?t.createTypeUnsafe("AccountIndex",[e]):lJ(t,e)}class a5 extends vm{constructor(e,n=new Uint8Array){super(e,cJ(e,n))}get encodedLength(){const e=this._rawLength;return e+(e>1?1:0)}get _rawLength(){return this.inner instanceof Cn?Cn.calcLength(this.inner):this.inner.encodedLength}toHex(){return Ae(this.toU8a())}toRawType(){return"Address"}toU8a(e){const n=this.inner.toU8a().subarray(0,this._rawLength);return e?n:ot(this.inner instanceof Cn?Cn.writeLength(n):oJ,n)}}function dJ(t,e){const n=e[0];if(n){if(n>=1&&n<=33){const r=n-1,i=e.subarray(1,r+1);return[t.createTypeUnsafe("Raw",[i]),1]}else if(n>=34&&n<=37)return[e.subarray(1,33),n-32]}else return[void 0,void 0];throw new Error(`Unable to decode Data, invalid indicator byte ${n}`)}function fJ(t,e){return he(e)||Ye(e)?dJ(t,K(e)):e?[e,void 0]:[void 0,void 0]}class hJ extends Ri{constructor(e,n){if(super(e,{None:"Null",Raw:"Bytes",BlakeTwo256:"H256",Sha256:"H256",Keccak256:"H256",ShaThree256:"H256"},...fJ(e,n)),this.isRaw&&this.asRaw.length>32)throw new Error("Data.Raw values are limited to a maximum length of 32 bytes")}get asBlakeTwo256(){return this.value}get asKeccak256(){return this.value}get asRaw(){return this.value}get asSha256(){return this.value}get asShaThree256(){return this.value}get isBlakeTwo256(){return this.index===2}get isKeccak256(){return this.index===4}get isNone(){return this.index===0}get isRaw(){return this.index===1}get isSha256(){return this.index===3}get isShaThree256(){return this.index===5}get encodedLength(){return this.toU8a().length}toU8a(){if(this.index===0)return new Uint8Array(1);if(this.index===1){const n=this.value.toU8a(!0),r=Math.min(n.length,32),i=new Uint8Array(r+1);return i.set([r+1],0),i.set(n.subarray(0,r),1),i}const e=new Uint8Array(33);return e.set([this.index+32],0),e.set(this.value.toU8a(),1),e}}const pJ={Blake2_128:[16,!1],Blake2_128Concat:[16,!0],Blake2_256:[32,!1],Identity:[0,!0],Twox128:[16,!1],Twox256:[32,!1],Twox64Concat:[8,!0]};function mJ(t){if(he(t)||!t||Ye(t))return{key:t};if(t instanceof Rm)return{key:t,method:t.method,section:t.section};if(Se(t))return{key:t(),method:t.method,section:t.section};if(Array.isArray(t)){const[e,n=[]]=t;if(!Se(e))throw new Error("Expected function input for key construction");if(e.meta&&e.meta.type.isMap){const r=e.meta.type.asMap;if(!Array.isArray(n)||n.length!==r.hashers.length)throw new Error(`Expected an array of ${r.hashers.length} values as params to a Map query`)}return{key:e(...n),method:e.method,section:e.section}}throw new Error(`Unable to convert input ${t} to StorageKey`)}function gJ(t,e,n){let r=32;const i=n.length,s=new Array(i);for(let a=0;a[a,s[o]]))}function vJ(t){if(t instanceof Rm)return t.meta;if(Se(t))return t.meta;if(Array.isArray(t)){const[e]=t;return e.meta}}function _J(t,e){if(e instanceof Rm)return e.outputType;if(Se(e))return V_(t,e.meta.type);if(Array.isArray(e)){const[n]=e;if(n.meta)return V_(t,n.meta.type)}return"Raw"}class Rm extends wd{constructor(n,r,i={}){const{key:s,method:a,section:o}=mJ(r);super(n,s);P(this,"__internal__args");P(this,"__internal__meta");P(this,"__internal__outputType");P(this,"__internal__method");P(this,"__internal__section");this.__internal__outputType=_J(n,r),this.setMeta(vJ(r),i.section||o,i.method||a)}get args(){return this.__internal__args}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get outputType(){return this.__internal__outputType}get section(){return this.__internal__section}is(n){return n.section===this.section&&n.method===this.method}setMeta(n,r,i){this.__internal__meta=n,this.__internal__method=i||this.__internal__method,this.__internal__section=r||this.__internal__section,n&&(this.__internal__outputType=V_(this.registry,n.type));try{this.__internal__args=yJ(this.registry,this.toU8a(!0),n)}catch{}return this}toHuman(){return this.__internal__args.length?this.__internal__args.map(n=>n.toHuman()):super.toHuman()}toRawType(){return"StorageKey"}}const bJ=Object.freeze(Object.defineProperty({__proto__:null,BitVec:XG,Bool:al,Bytes:wd,Data:hJ,F32:GA,F64:XA,GenericAccountId:Pm,GenericAccountId32:Pm,GenericAccountId33:NK,GenericAccountIndex:Cn,GenericAddress:G_,GenericBlock:LK,GenericCall:BK,GenericChainProperties:jK,GenericConsensusEngineId:YK,GenericEthereumAccountId:s5,GenericEthereumLookupSource:a5,GenericEvent:mK,GenericEventData:M8,GenericExtrinsic:km,GenericExtrinsicEra:j8,GenericExtrinsicPayload:W8,GenericExtrinsicPayloadUnknown:CK,GenericExtrinsicPayloadV4:W_,GenericExtrinsicSignatureV4:Tm,GenericExtrinsicUnknown:kK,GenericExtrinsicV4:Em,GenericImmortalEra:H8,GenericLookupSource:e5,GenericMortalEra:F8,GenericMultiAddress:G_,GenericSignerPayload:TK,GenericVote:aJ,I128:$A,I16:JA,I256:QA,I32:R_,I64:YA,I8:KA,ISize:e8,Null:hs,OptionBool:iX,StorageKey:Rm,Text:Ty,Type:sX,U128:r8,U16:n8,U256:i8,U32:xd,U64:ai,U8:t8,USize:s8,bool:al,f32:GA,f64:XA,i128:$A,i16:JA,i256:QA,i32:R_,i64:YA,i8:KA,isize:e8,u128:r8,u16:n8,u256:i8,u32:xd,u64:ai,u8:t8,usize:s8},Symbol.toStringTag,{value:"Module"}));function o5(t){return({name:e})=>t(e)}const K_=o5(je),l5=o5(t=>t.toString());function wJ(t,e){return t.callIndex[0]===e[0]&&t.callIndex[1]===e[1]}function xJ(t,e,n,r){const i=r.fields,s=je(r.name),a=(...o)=>{if(i.length!==o.length)throw new Error(`Extrinsic ${e}.${s} expects ${i.length} arguments, got ${o.length}.`);return t.createTypeUnsafe("Call",[{args:o,callIndex:n},r])};return a.is=o=>wJ(o,n),a.callIndex=n,a.meta=r,a.method=s,a.section=e,a.toJSON=()=>r.toJSON(),a}function u5({calls:t}){return t.isSome}function c5(t,e,n,r,i){const{fields:s,index:a}=n,o=s.length,l=new Array(o);for(let u=0;u=12?u.toNumber():a;Ln(i,d,()=>fu(e,l.unwrap(),K_,m=>c5(t,e,m,d,h)))}return i}function J_(t,e){return e.toNumber()>=2?t.createTypeUnsafe("StorageHasherV10",[e.toNumber()+1]):t.createTypeUnsafe("StorageHasherV10",[e])}function EJ(t,e){return e.isMap?[ne({},e.asMap,{hasher:J_(t,e.asMap.hasher)}),1]:e.isDoubleMap?[ne({},e.asDoubleMap,{hasher:J_(t,e.asDoubleMap.hasher),key2Hasher:J_(t,e.asDoubleMap.key2Hasher)}),2]:[e.asPlain,0]}function CJ(t,e){const n=e.storage.unwrapOr(null);return t.createTypeUnsafe("ModuleMetadataV10",[ne({},e,{storage:n?ne({},n,{items:n.items.map(r=>ne({},r,{type:t.createTypeUnsafe("StorageEntryTypeV10",EJ(t,r.type))}))}):null})])}function kJ(t,{modules:e}){return t.createTypeUnsafe("MetadataV10",[{modules:e.map(n=>CJ(t,n))}])}function TJ(t,{modules:e}){return t.createTypeUnsafe("MetadataV11",[{extrinsic:{signedExtensions:[],version:0},modules:e}])}function PJ(t,{extrinsic:e,modules:n}){return t.createTypeUnsafe("MetadataV12",[{extrinsic:e,modules:n.map(r=>t.createTypeUnsafe("ModuleMetadataV12",[ne({},r,{index:255})]))}])}function AJ(t,e){return t.createTypeUnsafe("MetadataV13",[e])}const NJ={assets:{Approval:"AssetApproval",ApprovalKey:"AssetApprovalKey",Balance:"TAssetBalance",DestroyWitness:"AssetDestroyWitness"},babe:{EquivocationProof:"BabeEquivocationProof"},balances:{Status:"BalanceStatus"},beefy:{AuthorityId:"BeefyId"},contracts:{StorageKey:"ContractStorageKey"},electionProviderMultiPhase:{Phase:"ElectionPhase"},ethereum:{Block:"EthBlock",Header:"EthHeader",Receipt:"EthReceipt",Transaction:"EthTransaction",TransactionStatus:"EthTransactionStatus"},evm:{Account:"EvmAccount",Log:"EvmLog",Vicinity:"EvmVicinity"},grandpa:{Equivocation:"GrandpaEquivocation",EquivocationProof:"GrandpaEquivocationProof"},identity:{Judgement:"IdentityJudgement"},inclusion:{ValidatorIndex:"ParaValidatorIndex"},paraDisputes:{ValidatorIndex:"ParaValidatorIndex"},paraInclusion:{ValidatorIndex:"ParaValidatorIndex"},paraScheduler:{ValidatorIndex:"ParaValidatorIndex"},paraShared:{ValidatorIndex:"ParaValidatorIndex"},parachains:{Id:"ParaId"},parasDisputes:{ValidatorIndex:"ParaValidatorIndex"},parasInclusion:{ValidatorIndex:"ParaValidatorIndex"},parasScheduler:{ValidatorIndex:"ParaValidatorIndex"},parasShared:{ValidatorIndex:"ParaValidatorIndex"},proposeParachain:{Proposal:"ParachainProposal"},proxy:{Announcement:"ProxyAnnouncement"},scheduler:{ValidatorIndex:"ParaValidatorIndex"},shared:{ValidatorIndex:"ParaValidatorIndex"},society:{Judgement:"SocietyJudgement",Vote:"SocietyVote"},staking:{Compact:"CompactAssignments"},treasury:{Proposal:"TreasuryProposal"},xcm:{AssetId:"XcmAssetId"},xcmPallet:{AssetId:"XcmAssetId"}};function RJ({knownTypes:t},e){var n;return{...NJ[e]??{},...((n=t.typesAlias)==null?void 0:n[e])??{}}}const IJ=[["<",">"],["<",","],[",",">"],["(",")"],["(",","],[",",","],[",",")"]];function Gs(t,e){const n=e.toString(),r=t.findIndex(({def:i})=>i.HistoricMetaCompat===n);return r!==-1?r:t.push({def:{HistoricMetaCompat:n}})-1}function OJ(t,...e){for(let n=0,r=e.length;n[r.name.toString(),n>=12?r.index.toNumber():i]).sort((r,i)=>r[1]-i[1]).reduce((r,[i,s])=>{for(let a=Object.keys(r).length;a{const r=Object.keys(t).find(i=>n.eq(i));if(r)n.setOverride(t[r]);else{const i=n.toString(),s=Object.entries(t).reduce((a,[o,l])=>IJ.reduce((u,[c,d])=>u.replace(`${c}${o}${d}`,`${c}${l}${d}`),a),i);i!==s&&n.setOverride(s)}})}function DJ(t,e,n,r,i){const s=r.map(({args:a,docs:o,name:l},u)=>(Pd(i,a.map(({type:c})=>c)),e.createTypeUnsafe("SiVariant",[{docs:o,fields:a.map(({name:c,type:d})=>e.createTypeUnsafe("SiField",[{name:c,type:Gs(t,d)}])),index:u,name:l}])));return e.createTypeUnsafe("PalletCallMetadataV14",[{type:Y_(n,"Call",t,s)}])}function UJ(t,e,n,r){return n.map(({docs:i,name:s,type:a,value:o})=>(Pd(r,[a]),e.createTypeUnsafe("PalletConstantMetadataV14",[{docs:i,name:s,type:Gs(t,a),value:o}])))}function VJ(t,e,n,r,i){const s=r.map(({docs:a,name:o},l)=>e.createTypeUnsafe("SiVariant",[{docs:a,fields:[],index:l,name:o}]));return e.createTypeUnsafe("PalletErrorMetadataV14",[{type:Y_(n,"Error",t,s)}])}function BJ(t,e,n,r,i){const s=r.map(({args:a,docs:o,name:l},u)=>(Pd(i,a),e.createTypeUnsafe("SiVariant",[{docs:o,fields:a.map(c=>e.createTypeUnsafe("SiField",[{type:Gs(t,c)}])),index:u,name:l}])));return e.createTypeUnsafe("PalletEventMetadataV14",[{type:Y_(n,"Event",t,s)}])}function $_(t,e,n,{hashers:r,isLinked:i,isOptional:s,keys:a,value:o}){return Pd(n,[o,...Array.isArray(a)?a:[a]]),e.createTypeUnsafe("StorageEntryTypeV14",[{Map:{hashers:r,key:r.length===1?Gs(t,a[0]):MJ(t,a.map(l=>Gs(t,l))),value:i?Gs(t,`(${s?`Option<${o.toString()}>`:o.toString()}, Linkage<${a[0].toString()}>)`):Gs(t,o)}}])}function HJ(t,e,{items:n,prefix:r},i){return e.createTypeUnsafe("PalletStorageMetadataV14",[{items:n.map(({docs:s,fallback:a,modifier:o,name:l,type:u})=>{let c;if(u.isPlain){const d=u.asPlain;Pd(i,[d]),c=e.createTypeUnsafe("StorageEntryTypeV14",[{Plain:Gs(t,d)}])}else if(u.isMap){const d=u.asMap;c=$_(t,e,i,{hashers:[d.hasher],isLinked:d.linked.isTrue,isOptional:o.isOptional,keys:[d.key],value:d.value})}else if(u.isDoubleMap){const d=u.asDoubleMap;c=$_(t,e,i,{hashers:[d.hasher,d.key2Hasher],isLinked:!1,isOptional:o.isOptional,keys:[d.key1,d.key2],value:d.value})}else{const d=u.asNMap;c=$_(t,e,i,{hashers:d.hashers,isLinked:!1,isOptional:o.isOptional,keys:d.keyVec,value:d.value})}return e.createTypeUnsafe("StorageEntryMetadataV14",[{docs:s,fallback:a,modifier:o,name:l,type:c}])}),prefix:r}])}function FJ(t,{signedExtensions:e,version:n}){return t.createTypeUnsafe("ExtrinsicMetadataV14",[{signedExtensions:e.map(r=>({identifier:r,type:0})),type:0,version:n}])}function jJ(t,e,n,{calls:r,constants:i,errors:s,events:a,storage:o}){const l=RJ(e,je(n.name));return e.createTypeUnsafe("PalletMetadataV14",[{calls:r&&DJ(t,e,n.name,r,l),constants:UJ(t,e,i,l),errors:s&&VJ(t,e,n.name,s),events:a&&BJ(t,e,n.name,a,l),index:n.index,name:n.name,storage:o&&HJ(t,e,o,l)}])}function zJ(t,e,n){const r=[];OJ(r,"Null","u8","u16","u32","u64"),LJ(t,e.modules,n);const i=FJ(t,e.extrinsic),s=e.modules.map(a=>jJ(r,t,a,{calls:a.calls.unwrapOr(null),constants:a.constants,errors:a.errors.length?a.errors:null,events:a.events.unwrapOr(null),storage:a.storage.unwrapOr(null)}));return t.createTypeUnsafe("MetadataV14",[{extrinsic:i,lookup:{types:r.map((a,o)=>t.createTypeUnsafe("PortableType",[{id:o,type:a}]))},pallets:s}])}function WJ(t,e,n){var i;const r=e.lookup.paramTypes.SpRuntimeUncheckedExtrinsic;return t.createTypeUnsafe("MetadataV15",[ne({},e,{extrinsic:t.createTypeUnsafe("ExtrinsicMetadataV15",[ne({},e.extrinsic,{addressType:r==null?void 0:r[0].type.unwrapOr(0),callType:r==null?void 0:r[1].type.unwrapOr(0),extraType:r==null?void 0:r[3].type.unwrapOr(0),signatureType:r==null?void 0:r[2].type.unwrapOr(0)})]),outerEnums:t.createTypeUnsafe("OuterEnums15",[{callType:r==null?void 0:r[1].type.unwrapOr(0),eventType:(i=e.lookup.paramTypes.FrameSystemEventRecord)==null?void 0:i[0].type.unwrapOr(0)}])})])}function qJ(t,e,n){return e}const d5=1635018093;class ZJ extends xd{constructor(e,n){if(super(e,n),!this.isEmpty&&!this.eq(d5))throw new Error(`MagicNumber mismatch: expected ${e.createTypeUnsafe("u32",[d5]).toHex()}, found ${this.toHex()}`)}}const GJ=[15,14,13,12,11,10,9][0],XJ=14;class Im extends An{constructor(n,r){super(n,{magicNumber:ZJ,metadata:"MetadataAll"},r);P(this,"__internal__converted",new Map);P(this,"__internal__assertVersion",n=>{if(this.version>n)throw new Error(`Cannot convert metadata from version ${this.version} to ${n}`);return this.version===n});P(this,"__internal__getVersion",(n,r)=>{if(n!=="latest"&&this.__internal__assertVersion(n)){const i=`asV${n}`;return this.__internal__metadata()[i]}if(!this.__internal__converted.has(n)){const i=n==="latest"?`asV${GJ}`:`asV${n-1}`;this.__internal__converted.set(n,r(this.registry,this[i],this.version))}return this.__internal__converted.get(n)});P(this,"__internal__metadata",()=>this.getT("metadata"))}get asCallsOnly(){return new Im(this.registry,{magicNumber:this.magicNumber,metadata:this.registry.createTypeUnsafe("MetadataAll",[lK(this.registry,this.asLatest),XJ])})}get asV9(){return this.__internal__assertVersion(9),this.__internal__metadata().asV9}get asV10(){return this.__internal__getVersion(10,kJ)}get asV11(){return this.__internal__getVersion(11,TJ)}get asV12(){return this.__internal__getVersion(12,PJ)}get asV13(){return this.__internal__getVersion(13,AJ)}get asV14(){return this.__internal__getVersion(14,zJ)}get asV15(){return this.__internal__getVersion(15,WJ)}get asLatest(){return this.__internal__getVersion("latest",qJ)}get magicNumber(){return this.getT("magicNumber")}get version(){return this.__internal__metadata().index}getUniqTypes(n){return aK(this.registry,this.asLatest,n)}toJSON(){return super.toJSON()}}const f5=new Uint8Array([109,101,116,97,9]),h5=f5.length-1;function KJ(t,e){if(e.length===0)return f5;if(e[h5]===9)try{return new Im(t,e)}catch{e[h5]=10}return e}class Om extends Im{constructor(e,n){super(e,he(n)||Ye(n)?KJ(e,K(n)):n)}}function p5(t,{pallets:e},n){const r={};for(let i=0,s=e.length;iha({},a,l=>{const u=t.createTypeUnsafe(t.createLookupType(l.type),[kn(l.value.toHex())]);return u.meta=l,u},K_))}return r}function m5(t,e){return ne({args:e.fields.map(({type:n})=>t.getTypeDef(n).type)},e)}function JJ(t,{lookup:e,pallets:n},r){const i={};for(let s=0,a=n.length;s=12?l.toNumber():s;Ln(i,je(u),()=>fu(e,o.unwrap(),l5,d=>({is:h=>Xi(h)&&Xi(h.index)&&h.index.eq(c)&&(he(h.error)?h.error[0]===d.index.toNumber():Xi(h.error)&&h.error.eq(d.index)),meta:t.createTypeUnsafe("ErrorMetadataLatest",[m5(e,d)])})))}}return i}function g5({events:t}){return t.isSome}function YJ(t,{lookup:e,pallets:n},r){const i={},s=n.filter(g5);for(let a=0,o=s.length;a=12?u.toNumber():a;Ln(i,je(c),()=>fu(e,l.unwrap(),l5,h=>({is:m=>Xi(m)&&he(m.index)&&d===m.index[0]&&h.index.eq(m.index[1]),meta:t.createTypeUnsafe("EventMetadataLatest",[m5(e,h)])})))}return i}const $J=t=>ou(t,128),QJ={Blake2_128:t=>kr(t,128),Blake2_128Concat:t=>ot(kr(t,128),K(t)),Blake2_256:t=>kr(t,256),Identity:t=>K(t),Twox128:t=>ou(t,128),Twox256:t=>ou(t,256),Twox64Concat:t=>ot(ou(t,64),K(t))};function eY(t){return QJ[t.type]||$J}const Mm={args:[],hashers:[],keys:[]};function tY(t){return!rt(t)}function y5({method:t,section:e},{args:n,keys:r}){if(Array.isArray(n)){if(n.filter(tY).length!==r.length)throw new Error(`Call to ${je(e||"unknown")}.${je(t||"unknown")} needs ${r.length} arguments, found [${n.join(", ")}]`)}else throw new Error(`Call to ${je(e||"unknown")}.${je(t||"unknown")} needs ${r.length} arguments`)}function v5(t,e,{args:n,hashers:r,keys:i}){const s=i.length,a=new Array(s);for(let o=0;o`${l[d].type}(${Cd(t.lookup,c)})`)}const o=["module","method"].concat(...n.args.map((l,u)=>a[u]));return{inner:i.concat(...s).map((l,u)=>({name:o[u],outer:[l]}))}}function Lm(t,e,n){const[r,i]=v5(t,e,n);return ot(...r,...i)}function eb(t,e,n){return y5(e,n),Kr(Lm(t,e,n))}function nY(t,e,n){const{meta:{type:r}}=e;return(...i)=>{if(r.isPlain)return n.skipHashing?{inner:[],name:"wellKnown",outer:[K(n.key)]}:Q_(t,e,Mm);const{hashers:s,key:a}=r.asMap;return s.length===1?Q_(t,e,{args:i,hashers:s,keys:[a]}):Q_(t,e,{args:i,hashers:s,keys:t.lookup.getSiType(a).def.asTuple})}}function rY(t,e,n){const{meta:{type:r}}=e;let i=null;return(...s)=>{if(r.isPlain)return i||(i=n.skipHashing?Kr(K(n.key)):eb(t,e,Mm)),i;const{hashers:a,key:o}=r.asMap;return a.length===1?eb(t,e,{args:s,hashers:a,keys:[o]}):eb(t,e,{args:s,hashers:a,keys:t.lookup.getSiType(o).def.asTuple})}}function iY(t,e,n){const{meta:r,method:i,prefix:s,section:a}=e,o=rY(t,e,n);return o.inspect=nY(t,e,n),o.meta=r,o.method=je(i),o.prefix=s,o.section=a,o.toJSON=()=>ne({storage:{method:i,prefix:s,section:a}},r.toJSON()),o}function sY(t,{meta:{docs:e,name:n,type:r},section:i},{method:s},a){const o=t.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:e,fallback:t.createTypeUnsafe("Bytes",[]),modifier:t.createTypeUnsafe("StorageEntryModifierLatest",[1]),name:n,type:t.createTypeUnsafe("StorageEntryTypeLatest",[r.asMap.key,0])}]);a.meta=o;const l=(...u)=>t.createTypeUnsafe("StorageKey",[a(...u),{method:s,section:i}]);return l.meta=o,l}function aY(t,e,n){const{meta:{type:r},method:i,section:s}=e;return n.iterKey=sY(t,e,n,(...a)=>{if(a.length&&(r.isPlain||a.length>=r.asMap.hashers.length))throw new Error(`Iteration of ${je(s||"unknown")}.${je(i||"unknown")} needs arguments to be at least one less than the full arguments, found [${a.join(", ")}]`);if(a.length&&r.isMap){const{hashers:o,key:l}=r.asMap,u=o.length===1?[l]:t.lookup.getSiType(l).def.asTuple;return new Jr(t,Lm(t,e,{args:a,hashers:o.slice(0,a.length),keys:u.slice(0,a.length)}))}return new Jr(t,Lm(t,e,Mm))}),n}function _5(t,e,n){const{meta:{type:r}}=e,i=iY(t,e,n);return r.isMap&&aY(t,e,i),i.keyPrefix=(...s)=>i.iterKey&&i.iterKey(...s)||nl(i())[1],i}function b5(t,e){const n=e.toLowerCase();return t.lookup.types.find(r=>r.type.def.isPrimitive&&r.type.def.asPrimitive.toString().toLowerCase()===n||r.type.def.isHistoricMetaCompat&&r.type.def.asHistoricMetaCompat.toString().toLowerCase()===n)}function oY(t,e){let n=b5(t,e);if(!n&&e==="Bytes"){const r=b5(t,"u8");r&&(n=t.lookup.types.find(i=>i.type.def.isSequence&&i.type.def.asSequence.type.eq(r.id)||i.type.def.isHistoricMetaCompat&&i.type.def.asHistoricMetaCompat.eq(e)))}return n}function w5({method:t,prefix:e,section:n},r,{docs:i,type:s}){return a=>{var o;return _5(a,{meta:a.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:a.createTypeUnsafe("Vec",[[i]]),modifier:a.createTypeUnsafe("StorageEntryModifierLatest",["Required"]),name:a.createTypeUnsafe("Text",[t]),toJSON:()=>r,type:a.createTypeUnsafe("StorageEntryTypeLatest",[{Plain:((o=oY(a,s))==null?void 0:o.id)||0}])}]),method:t,prefix:e,section:n},{key:r,skipHashing:!0})}}const lY="Substrate",uY="substrate";function hu(t,e,n){return w5({method:t,prefix:lY,section:uY},e,n)}const cY={changesTrieConfig:hu("changesTrieConfig",":changes_trie",{docs:"Changes trie configuration is stored under this key.",type:"u32"}),childStorageKeyPrefix:hu("childStorageKeyPrefix",":child_storage:",{docs:"Prefix of child storage keys.",type:"u32"}),code:hu("code",":code",{docs:"Wasm code of the runtime.",type:"Bytes"}),extrinsicIndex:hu("extrinsicIndex",":extrinsic_index",{docs:"Current extrinsic index (u32) is stored under this key.",type:"u32"}),heapPages:hu("heapPages",":heappages",{docs:"Number of wasm linear memory pages required for execution of the runtime.",type:"u64"}),intrablockEntropy:hu("intrablockEntropy",":intrablock_entropy",{docs:"Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.",type:"[u8; 32]"})};function dY(t){const e={},n=Object.entries(cY);for(let r=0,i=n.length;rha({palletVersion:w5({method:fY,prefix:d,section:l},Lm(t,{method:hY,prefix:a.toString()},Mm),pY)(t)},u,h=>_5(t,{meta:h,method:h.name.toString(),prefix:d,section:l},{}),K_))}}return r}function gY(t,e){if(!(e instanceof Om))throw new Error("You need to pass a valid Metadata instance to Decorated");const n=e.asLatest,r=e.version;return{consts:p5(t,n),errors:JJ(t,n,r),events:YJ(t,n,r),query:mY(t,n),registry:t,tx:SJ(t,n,r)}}const yY=new Uint8Array(2),x5=ir("registry");function S5(t,e){return parseInt(t,10)-parseInt(e,10)}function E5(t){return t.toString()}function C5(t,e){const n=e.length,r=new Array(n);for(let i=0;i=12?l.toNumber():s,()=>fu(e,o.unwrap(),tb,({docs:d,fields:h,index:m,name:y})=>({args:C5(e,h),docs:d.map(E5),fields:h,index:m.toNumber(),method:y.toString(),name:y.toString(),section:c})))}}}function _Y(t,{lookup:e,pallets:n},r,i){const s=n.filter(g5);Dm(i);for(let a=0,o=s.length;a=12?u.toNumber():a,()=>fu(e,l.unwrap(),tb,d=>{const h=t.createType("EventMetadataLatest",ne({},d,{args:C5(e,d.fields)}));return class extends M8{constructor(m,y){super(m,y,h,je(c),d.name.toString())}}}))}}function bY(t,{lookup:e,pallets:n},r,i,s){const a=n.filter(u5);Dm(i),Dm(s);for(let o=0,l=a.length;o=12?c.toNumber():o,m=je(d),y=u.unwrap();Ln(i,h,()=>fu(e,y,tb,_=>c5(t,e,_,m,h)));const{path:v}=t.lookup.getSiType(y.type),S=v.findIndex(_=>_.eq("pallet"));if(S!==-1){const _=je(v.slice(0,S).map((b,w)=>w===0?b.replace(/^(frame|pallet)_/,""):b).join(" "));s[_]?s[_].push(m):s[_]=[m]}}}function wY(t,e){const n=t.getChainProperties(),r=p5(t,e.asLatest),i=r.system&&(r.system.sS58Prefix||r.system.ss58Prefix);if(!i)return n;const{isEthereum:s,tokenDecimals:a,tokenSymbol:o}=n||{};return t.createTypeUnsafe("ChainProperties",[{isEthereum:s,ss58Format:i,tokenDecimals:a,tokenSymbol:o}])}class nb{constructor(e){P(this,"__internal__chainProperties");P(this,"__internal__classes",new Map);P(this,"__internal__definitions",new Map);P(this,"__internal__firstCallIndex",null);P(this,"__internal__hasher",kr);P(this,"__internal__knownTypes",{});P(this,"__internal__lookup");P(this,"__internal__metadata");P(this,"__internal__metadataVersion",0);P(this,"__internal__signedExtensions",H_);P(this,"__internal__unknownTypes",new Map);P(this,"__internal__userExtensions");P(this,"__internal__knownDefaults");P(this,"__internal__knownDefaultsEntries");P(this,"__internal__knownDefinitions");P(this,"__internal__metadataCalls",{});P(this,"__internal__metadataErrors",{});P(this,"__internal__metadataEvents",{});P(this,"__internal__moduleMap",{});P(this,"createdAtHash");P(this,"__internal__registerObject",e=>{const n=Object.entries(e);for(let r=0,i=n.length;r{this.setLookup(e);let n=null;if(this.hasType("SpWeightsWeightV2Weight")){const r=this.createType("SpWeightsWeightV2Weight");n=r.refTime&&r.proofSize?"SpWeightsWeightV2Weight":"WeightV1"}else rr(this.createType("Weight"))||(n="WeightV1");n&&this.register({Weight:n})});this.__internal__knownDefaults=ne({Json:iS,Metadata:Om,PortableRegistry:WX,Raw:Jr},bJ),this.__internal__knownDefaultsEntries=Object.entries(this.__internal__knownDefaults),this.__internal__knownDefinitions=mm;const n=Object.values(this.__internal__knownDefinitions);for(let r=0,i=n.length;rr.toNumber())}return[12]}get chainIsEthereum(){var e;return((e=this.__internal__chainProperties)==null?void 0:e.isEthereum.isTrue)||!1}get chainSS58(){var e;return(e=this.__internal__chainProperties)!=null&&e.ss58Format.isSome?this.__internal__chainProperties.ss58Format.unwrap().toNumber():void 0}get chainTokens(){var e;if((e=this.__internal__chainProperties)!=null&&e.tokenSymbol.isSome){const n=this.__internal__chainProperties.tokenSymbol.unwrap();if(n.length)return n.map(E5)}return[da.getDefaults().unit]}get firstCallIndex(){return this.__internal__firstCallIndex||yY}isLookupType(e){return/Lookup\d+$/.test(e)}createLookupType(e){return`Lookup${typeof e=="number"?e:e.toNumber()}`}get knownTypes(){return this.__internal__knownTypes}get lookup(){return Gi(this.__internal__lookup,"PortableRegistry has not been set on this registry")}get metadata(){return Gi(this.__internal__metadata,"Metadata has not been set on this registry")}get unknownTypes(){return[...this.__internal__unknownTypes.keys()]}get signedExtensions(){return this.__internal__signedExtensions}clearCache(){this.__internal__classes=new Map}createClass(e){return Ed(this,e)}createClassUnsafe(e){return Ed(this,e)}createType(e,...n){return O_(this,e,n)}createTypeUnsafe(e,n,r){return O_(this,e,n,r)}findMetaCall(e){const[n,r]=[e[0],e[1]];return Gi(this.__internal__metadataCalls[`${n}`]&&this.__internal__metadataCalls[`${n}`][`${r}`],()=>`findMetaCall: Unable to find Call with index [${n}, ${r}]/[${e.toString()}]`)}findMetaError(e){const[n,r]=he(e)?[e[0],e[1]]:[e.index.toNumber(),he(e.error)?e.error[0]:e.error.toNumber()];return Gi(this.__internal__metadataErrors[`${n}`]&&this.__internal__metadataErrors[`${n}`][`${r}`],()=>`findMetaError: Unable to find Error with index [${n}, ${r}]/[${e.toString()}]`)}findMetaEvent(e){const[n,r]=[e[0],e[1]];return Gi(this.__internal__metadataEvents[`${n}`]&&this.__internal__metadataEvents[`${n}`][`${r}`],()=>`findMetaEvent: Unable to find Event with index [${n}, ${r}]/[${e.toString()}]`)}get(e,n,r){return this.getUnsafe(e,n,r)}getUnsafe(e,n,r){let i=this.__internal__classes.get(e)||this.__internal__knownDefaults[e];if(!i){const s=this.__internal__definitions.get(e);let a;s?a=Ed(this,s):r?a=xX(this,r):n&&(x5.warn(`Unable to resolve type ${e}, it will fail on construction`),this.__internal__unknownTypes.set(e,!0),a=_m.with(e)),a&&(i=class extends a{},this.__internal__classes.set(e,i),r&&Be(r.lookupIndex)&&this.__internal__classes.set(this.createLookupType(r.lookupIndex),i))}return i}getChainProperties(){return this.__internal__chainProperties}getClassName(e){const n=[];for(const[r,i]of this.__internal__knownDefaultsEntries)e===i&&n.push(r);for(const[r,i]of this.__internal__classes.entries())e===i&&n.push(r);return n.length?n.sort().reverse()[0]:void 0}getDefinition(e){return this.__internal__definitions.get(e)}getModuleInstances(e,n){var r,i,s,a,o;return((o=(a=(s=(i=(r=this.__internal__knownTypes)==null?void 0:r.typesBundle)==null?void 0:i.spec)==null?void 0:s[e.toString()])==null?void 0:a.instances)==null?void 0:o[n])||this.__internal__moduleMap[n]}getOrThrow(e){const n=this.get(e);if(!n)throw new Error(`type ${e} not found`);return n}getOrUnknown(e){return this.get(e,!0)}getSignedExtensionExtra(){return O8(this.__internal__signedExtensions,"payload",this.__internal__userExtensions)}getSignedExtensionTypes(){return O8(this.__internal__signedExtensions,"extrinsic",this.__internal__userExtensions)}hasClass(e){return this.__internal__classes.has(e)||!!this.__internal__knownDefaults[e]}hasDef(e){return this.__internal__definitions.has(e)}hasType(e){return!this.__internal__unknownTypes.get(e)&&(this.hasClass(e)||this.hasDef(e))}hash(e){return this.createType("CodecHash",this.__internal__hasher(e))}register(e,n){if(Se(e))this.__internal__classes.set(e.name,e);else if(Ye(e)){if(Se(n)){if(e===n.toString())throw new Error(`Unable to register circular ${e} === ${e}`)}else throw new Error(`Expected class definition passed to '${e}' registration`);this.__internal__classes.set(e,n)}else this.__internal__registerObject(e)}setChainProperties(e){e&&(this.__internal__chainProperties=e)}setHasher(e){this.__internal__hasher=e||kr}setKnownTypes(e){this.__internal__knownTypes=e}setLookup(e){this.__internal__lookup=e,e.register()}setMetadata(e,n,r,i){this.__internal__metadata=e.asLatest,this.__internal__metadataVersion=e.version,this.__internal__firstCallIndex=null,this.__internal__registerLookup(this.__internal__metadata.lookup),bY(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataCalls,this.__internal__moduleMap),vY(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataErrors),_Y(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataEvents);const[s]=Object.keys(this.__internal__metadataCalls).sort(S5);if(s){const[a]=Object.keys(this.__internal__metadataCalls[s]).sort(S5);a&&(this.__internal__firstCallIndex=new Uint8Array([parseInt(s,10),parseInt(a,10)]))}this.setSignedExtensions(n||(this.__internal__metadata.extrinsic.version.gt(_n)?this.__internal__metadata.extrinsic.signedExtensions.map(({identifier:a})=>a.toString()):H_),r,i),this.setChainProperties(wY(this,e))}setSignedExtensions(e=H_,n,r){if(this.__internal__signedExtensions=e,this.__internal__userExtensions=n,!r){const i=hK(this.__internal__signedExtensions,this.__internal__userExtensions);i.length&&x5.warn(`Unknown signed extensions ${i.join(", ")} found, treating them as no-effect`)}}}const xY={},Ad={DispatchErrorModule:"DispatchErrorModuleU8",FullIdentification:"()",Keys:"SessionKeys7B",Weight:"WeightV1"},SY=[{minmax:[0,200],types:{...Ad,AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",LookupSource:"AccountId"}},{minmax:[201,214],types:{...Ad,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[215,228],types:{...Ad,Keys:"SessionKeys6"}},{minmax:[229,9099],types:{...Ad,...du("V0")}},{minmax:[9100,9105],types:{...Ad,...du("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}],k5={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},EY=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...k5,...du("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...k5,...du("V1")}},{minmax:[500,9999],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[1e4,void 0],types:{Weight:"WeightV1"}}],T5={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},CY=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...T5,...du("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...T5,...du("V1")}},{minmax:[500,9434],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[9435,void 0],types:{Weight:"WeightV1"}}],kY={"centrifuge-chain":$a,kusama:$a,node:$a,"node-template":$a,polkadot:$a,rococo:SY,shell:$a,statemine:EY,statemint:$a,westend:$a,westmint:CY},TY=Object.freeze(Object.defineProperty({__proto__:null,kusama:B_,polkadot:B_,westend:B_},Symbol.toStringTag,{value:"Module"})),PY={westend:{genesisHash:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"]}};function AY([t,e]){const n=Xj.find(r=>r.network===t)||PY[t];if(!n)throw new Error(`Unable to find info for chain ${t}`);return{genesisHash:kn(n.genesisHash[0]),network:t,versions:e.map(([r,i,s])=>({apis:s,blockNumber:new te(r),specVersion:new te(i)}))}}const NY=Object.entries(TY).map(AY);function pu(t,e,n){return n(t.toString(),e.toString())}function Um(t=[],e){return t.filter(({minmax:[n,r]})=>(n==null||e>=n)&&(r==null||e<=r)).reduce((n,{types:r})=>({...n,...r}),{})}function RY({knownTypes:t},e,n){return pu(e,n,(r,i)=>{var s,a,o,l,u,c;return{...((o=(a=(s=t.typesBundle)==null?void 0:s.spec)==null?void 0:a[i])==null?void 0:o.signedExtensions)??{},...((c=(u=(l=t.typesBundle)==null?void 0:l.chain)==null?void 0:u[r])==null?void 0:c.signedExtensions)??{}}})}function IY({knownTypes:t},e,n,r){const i=bn(r).toNumber();return pu(e,n,(s,a)=>{var o,l,u,c,d,h,m,y;return{...Um(kY[a],i),...Um(xY[s],i),...Um((u=(l=(o=t.typesBundle)==null?void 0:o.spec)==null?void 0:l[a])==null?void 0:u.types,i),...Um((h=(d=(c=t.typesBundle)==null?void 0:c.chain)==null?void 0:d[s])==null?void 0:h.types,i),...((m=t.typesSpec)==null?void 0:m[a])??{},...((y=t.typesChain)==null?void 0:y[s])??{},...t.types??{}}})}function OY({knownTypes:t},e,n){return pu(e,n,(r,i)=>{var s,a,o,l,u,c;return t.hasher||((o=(a=(s=t.typesBundle)==null?void 0:s.chain)==null?void 0:a[r])==null?void 0:o.hasher)||((c=(u=(l=t.typesBundle)==null?void 0:l.spec)==null?void 0:u[i])==null?void 0:c.hasher)||null})}function P5({knownTypes:t},e,n){return pu(e,n,(r,i)=>{var s,a,o,l,u,c;return{...((o=(a=(s=t.typesBundle)==null?void 0:s.spec)==null?void 0:a[i])==null?void 0:o.rpc)??{},...((c=(u=(l=t.typesBundle)==null?void 0:l.chain)==null?void 0:u[r])==null?void 0:c.rpc)??{}}})}function MY({knownTypes:t},e,n){return pu(e,n,(r,i)=>{var s,a,o,l,u,c;return{...((o=(a=(s=t.typesBundle)==null?void 0:s.spec)==null?void 0:a[i])==null?void 0:o.runtime)??{},...((c=(u=(l=t.typesBundle)==null?void 0:l.chain)==null?void 0:u[r])==null?void 0:c.runtime)??{}}})}function LY({knownTypes:t},e,n){return pu(e,n,(r,i)=>{var s,a,o,l,u,c;return{...((o=(a=(s=t.typesBundle)==null?void 0:s.spec)==null?void 0:a[i])==null?void 0:o.alias)??{},...((c=(u=(l=t.typesBundle)==null?void 0:l.chain)==null?void 0:u[r])==null?void 0:c.alias)??{},...t.typesAlias??{}}})}function DY(t,e){const n=NY.find(r=>t.eq(r.genesisHash));return n?[n.versions.reduce((r,i)=>e.gt(i.blockNumber)?i:r,void 0),n.versions.find(r=>e.lte(r.blockNumber))]:[void 0,void 0]}function A5(t=1750){return e=>{let[n,r,i,s]=[0,0,js.EMPTY,js.EMPTY];return new En(a=>(e.subscribe(a),r++===0&&(n===1?s.unsubscribe():i=e.connect(),n=3),()=>{--r===0&&(n===2?(n=0,s.unsubscribe()):(n=1,s=yZ.schedule(()=>{n=0,i.unsubscribe()},t)))}))}}function UY(t,e){return Le({t})===Le({t:e})}function VY(t){throw t}function BY(){}function N5({delay:t,skipChange:e=!1,skipTimeout:n=!1}={}){return r=>r.pipe(Do(VY),e?vd(BY):rG(UY),RA(1),n?v_():A5(t))}function De(t,e){const r=il((...i)=>new En(s=>{const a=e(...i).subscribe(s);return()=>{r.unmemoize(...i),a.unsubscribe()}}).pipe(N5()),{getInstanceId:()=>t});return r}const HY=ir("rpc-core"),FY={fallback:void 0,modifier:{isOptional:!0},type:{asMap:{linked:{isTrue:!1}},isMap:!1}};function Vm(t,{noErrorLog:e,params:n,type:r},i){e||HY.error(`${t}(${n.map(({isOptional:s,name:a,type:o})=>`${a}${s?"?":""}: ${o}`).join(", ")}): ${r}:: ${i.message}`)}function R5(t){return["0x3a636f6465"].includes(t.toHex())}class jY{constructor(e,n,{isPedantic:r=!0,provider:i,userRpc:s={}}){P(this,"__internal__instanceId");P(this,"__internal__isPedantic");P(this,"__internal__registryDefault");P(this,"__internal__storageCache",new Map);P(this,"__internal__storageCacheHits",0);P(this,"__internal__storageCacheSize",0);P(this,"__internal__getBlockRegistry");P(this,"__internal__getBlockHash");P(this,"mapping",new Map);P(this,"provider");P(this,"sections",[]);if(!i||!Se(i.send))throw new Error("Expected Provider to API create");this.__internal__instanceId=e,this.__internal__isPedantic=r,this.__internal__registryDefault=n,this.provider=i;const a=Object.keys(LA);this.sections.push(...a),this.addUserInterfaces(s)}get isConnected(){return this.provider.isConnected}connect(){return this.provider.connect()}disconnect(){return this.provider.disconnect()}get stats(){const e=this.provider.stats;return e?{...e,core:{cacheHits:this.__internal__storageCacheHits,cacheSize:this.__internal__storageCacheSize}}:void 0}setRegistrySwap(e){this.__internal__getBlockRegistry=il(e,{getInstanceId:()=>this.__internal__instanceId})}setResolveBlockHash(e){this.__internal__getBlockHash=il(e,{getInstanceId:()=>this.__internal__instanceId})}addUserInterfaces(e){this.sections.push(...Object.keys(e).filter(n=>!this.sections.includes(n)));for(let n=0,r=this.sections.length;nh?this._createMethodSubscribe(i,u,c):this._createMethodSend(i,u,c))}}}}_memomize(e,n){const r={getInstanceId:()=>this.__internal__instanceId},i=il(e(!0),r);return i.raw=il(e(!1),r),i.meta=n,i}_formatResult(e,n,r,i,s,a,o){return e?this._formatOutput(n,r,i,s,a,o):o}_createMethodSend(e,n,r){const i=r.endpoint||`${e}_${n}`,s=r.params.findIndex(({isHistoric:u})=>u);let a=null;const o=async(u,c)=>{var S;const d=s===-1?null:c[s],h=d&&r.params[s].type==="BlockNumber"?await((S=this.__internal__getBlockHash)==null?void 0:S.call(this,d)):d,{registry:m}=u&&h&&this.__internal__getBlockRegistry?await this.__internal__getBlockRegistry(K(h)):{registry:this.__internal__registryDefault},y=this._formatParams(m,null,r,c),v=await this.provider.send(i,y.map(_=>_.toJSON()),!!h);return this._formatResult(u,m,h,n,r,y,v)},l=u=>(...c)=>{const d=u&&s!==-1&&!!c[s];return new En(h=>(o(u,c).then(m=>{h.next(m),h.complete()}).catch(m=>{Vm(n,r,m),h.error(m),h.complete()}),()=>{u?a==null||a.unmemoize(...c):a==null||a.raw.unmemoize(...c)})).pipe(RA(1),d?A5():v_())};return a=this._memomize(l,r),a}_createSubscriber({paramsJson:e,subName:n,subType:r,update:i},s){return new Promise((a,o)=>{this.provider.subscribe(r,n,e,i).then(a).catch(l=>{s(l),o(l)})})}_createMethodSubscribe(e,n,r){const[i,s,a]=r.pubsub,o=`${e}_${s}`,l=`${e}_${a}`,u=`${e}_${i}`;let c=null;const d=h=>(...m)=>new En(y=>{let v=Promise.resolve(null);const S=this.__internal__registryDefault,_=b=>{Vm(n,r,b),y.error(b)};try{const b=this._formatParams(S,null,r,m),w=(A,O)=>{if(A){Vm(n,r,A);return}try{y.next(this._formatResult(h,S,null,n,r,b,O))}catch(M){y.error(M)}};v=this._createSubscriber({paramsJson:b.map(A=>A.toJSON()),subName:o,subType:u,update:w},_)}catch(b){_(b)}return()=>{h?c==null||c.unmemoize(...m):c==null||c.raw.unmemoize(...m),v.then(b=>fa(b)?Promise.resolve(!1):this.provider.unsubscribe(u,l,b)).catch(b=>Vm(n,r,b))}}).pipe(N5());return c=this._memomize(d,r),c}_formatParams(e,n,r,i){const s=i.length,a=r.params.filter(({isOptional:l})=>!l).length;if(sr.params.length)throw new Error(`Expected ${r.params.length} parameters${a===r.params.length?"":` (${r.params.length-a} optional)`}, ${s} found instead`);const o=new Array(s);for(let l=0;l"){const o=a,l=o.length,u=new Array(l);for(let c=0;cy===o),u=rt(l);if(u&&s){const y=this.__internal__storageCache.get(o);if(y)return this.__internal__storageCacheHits++,y}const c=u?null:l[1],d=fa(c),h=d||R5(r)?c:K(c),m=this._newType(e,n,r,h,d,a);return this.__internal__storageCache.set(o,m),this.__internal__storageCacheSize++,m}_newType(e,n,r,i,s,a=-1){const o=r.outputType||"Raw",l=r.meta||FY,u=a===-1?"":` entry ${a}:`;try{return e.createTypeUnsafe(o,[s?l.fallback?o.includes("Linkage<")?ot(kn(l.fallback.toHex()),new Uint8Array(2)):kn(l.fallback.toHex()):void 0:l.modifier.isOptional?e.createTypeUnsafe(o,[i],{blockHash:n,isPedantic:this.__internal__isPedantic}):i],{blockHash:n,isFallback:s&&!!l.fallback,isOptional:l.modifier.isOptional,isPedantic:this.__internal__isPedantic&&!l.modifier.isOptional})}catch(c){throw new Error(`Unable to decode storage ${r.section||"unknown"}.${r.method||"unknown"}:${u}: ${c.message}`)}}}function rb(t){return ay(t.number)?t.number.unwrap():t.number}function zY(t){return t.pipe(_e(([e])=>e))}function WY(t){return(e,n)=>De(e,(...r)=>zY(t(n,...r)))}function I5(t,e,n,r){Ln(t,e,()=>ha({},n(e),i=>r(e,i)))}function qY(t,e){return De(t,n=>{const r=he(n)?n:_r((n||"").toString());if(r.length>8)return Ce(e.registry.createType("AccountId",r));const i=e.registry.createType("AccountIndex",r);return e.derive.accounts.indexToId(i.toString()).pipe(_e(s=>Gi(s,"Unable to retrieve accountId")))})}function ZY(t,[e,n,r,i,s]){const a=t==null?void 0:t.toString(),o=l=>l.toString()===a;return{isCouncil:((e==null?void 0:e.map(l=>Array.isArray(l)?l[0]:l.who))||n||[]).some(o),isSociety:(i||[]).some(o),isSudo:(s==null?void 0:s.toString())===a,isTechCommittee:(r||[]).some(o)}}function GY(t,e){return De(t,()=>{var s,a,o,l,u;const n=[void 0,[],[],[],void 0],r=[(s=e.query.elections||e.query.phragmenElection||e.query.electionsPhragmen)==null?void 0:s.members,(a=e.query.council)==null?void 0:a.members,(o=e.query.technicalCommittee)==null?void 0:o.members,(l=e.query.society)==null?void 0:l.members,(u=e.query.sudo)==null?void 0:u.key],i=r.filter(c=>c);return i.length?e.queryMulti(i).pipe(_e(c=>{let d=-1;for(let h=0,m=r.length;he.derive.accounts._flags().pipe(_e(r=>ZY(n,r))))}function KY(t,e){return De(t,n=>{try{const r=he(n)?n:_r((n||"").toString());if(r.length>8){const s=e.registry.createType("AccountId",r);return e.derive.accounts.idToIndex(s).pipe(_e(a=>[s,a]))}const i=e.registry.createType("AccountIndex",r);return e.derive.accounts.indexToId(i.toString()).pipe(_e(s=>[s,i]))}catch{return Ce([void 0,void 0])}})}const JY={toHex:()=>{}};function Ii(t){return t.isRaw?di(t.asRaw.toU8a(!0)):t.isNone?void 0:t.toHex()}function YY(t){return t.reduce((e,[n,r])=>{const i=Ii(n),s=Ii(r);return i&&s&&(e[i]=s),e},{})}function $Y(t,e){if(!(t!=null&&t.isSome))return{judgements:[]};const{info:n,judgements:r}=t.unwrap(),i=Ii(n.display);return{display:e&&Ii(e[1])||i,displayParent:e&&i,email:Ii(n.email),image:Ii(n.image),judgements:r,legal:Ii(n.legal),other:YY(n.additional),parent:e==null?void 0:e[0],pgp:n.pgpFingerprint.unwrapOr(JY).toHex(),riot:Ii(n.riot),twitter:Ii(n.twitter),web:Ii(n.web)}}function QY(t,e,n){if(e!=null&&e.isSome)return Ce([e,void 0]);if(n!=null&&n.isSome){const r=n.unwrap();return ut([t.derive.accounts._identity(r[0]).pipe(_e(([i])=>i)),Ce(r)])}return Ce([void 0,void 0])}function e$(t,e){return De(t,n=>{var r;return n&&((r=e.query.identity)!=null&&r.identityOf)?ut([e.query.identity.identityOf(n),e.query.identity.superOf(n)]):Ce([void 0,void 0])})}function t$(t,e){return De(t,n=>e.derive.accounts._identity(n).pipe(Ze(([r,i])=>QY(e,r,i)),_e(([r,i])=>$Y(r,i))))}const n$=WY((t,e)=>t.derive.accounts.hasIdentityMulti([e]));function r$(t,e){return De(t,n=>{var r;return(r=e.query.identity)!=null&&r.identityOf?ut([e.query.identity.identityOf.multi(n),e.query.identity.superOf.multi(n)]).pipe(_e(([i,s])=>i.map((a,o)=>{const l=s[o],u=l&&l.isSome?l.unwrap()[0].toString():void 0;let c;if(a&&a.isSome){const d=Ii(a.unwrap().info.display);d&&!Oe(d)&&(c=d)}return{display:c,hasIdentity:!!(c||u),parentId:u}}))):Ce(n.map(()=>({hasIdentity:!1})))})}function i$(t,e){return De(t,n=>e.derive.accounts.indexes().pipe(_e(r=>r[n.toString()])))}let ib=null;function s$(t){return t.query.indices.accounts.entries().pipe(_e(e=>e.reduce((n,[r,i])=>(i.isSome&&(n[i.unwrap()[0].toString()]=t.registry.createType("AccountIndex",r.args[0])),n),{})))}function a$(t,e){return De(t,()=>ib?Ce(ib):(e.query.indices?s$(e).pipe(lG({})):Ce({})).pipe(_e(n=>(ib=n,n))))}function o$(t,e){return De(t,n=>e.query.indices?e.query.indices.accounts(n).pipe(_e(r=>r.unwrapOr([])[0])):Ce(void 0))}function l$(t,e){var n;return(e&&((n=t.query.nicks)!=null&&n.nameOf)?t.query.nicks.nameOf(e):Ce(void 0)).pipe(_e(r=>r!=null&&r.isSome?di(r.unwrap()[0]).substring(0,t.consts.nicks.maxLength.toNumber()):void 0))}function u$(t,e){return De(t,n=>e.derive.accounts.idAndIndex(n).pipe(Ze(([r,i])=>ut([Ce({accountId:r,accountIndex:i}),e.derive.accounts.identity(r),l$(e,r)])),_e(([{accountId:r,accountIndex:i},s,a])=>({accountId:r,accountIndex:i,identity:s,nickname:a}))))}const c$=Object.freeze(Object.defineProperty({__proto__:null,_flags:GY,_identity:e$,accountId:qY,flags:XY,hasIdentity:n$,hasIdentityMulti:r$,idAndIndex:KY,idToIndex:i$,identity:t$,indexToId:o$,indexes:a$,info:u$},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),d$="0x76657374696e6720";function f$(t,e,n){let r=t.registry.createType("Balance"),i=[],s=t.registry.createType("Balance"),a=!1;if(Array.isArray(n)){i=n.filter(({until:l})=>!l||e&&l.gt(e)),a=i.some(({amount:l})=>l&&l.isMax()),s=t.registry.createType("Balance",i.filter(({id:l})=>l.eq(d$)).reduce((l,{amount:u})=>l.iadd(u),new te(0)));const o=i.filter(({amount:l})=>l&&!l.isMax());o.length&&(r=t.registry.createType("Balance",$g(...o.map(({amount:l})=>l))))}return{allLocked:a,lockedBalance:r,lockedBreakdown:i,vestingLocked:s}}function O5(t,e,n,r){const{allLocked:i,lockedBalance:s,lockedBreakdown:a,vestingLocked:o}=f$(t,e,r);return ne({},n,{availableBalance:t.registry.createType("Balance",i?0:$g(new te(0),n!=null&&n.freeBalance?n.freeBalance.sub(s):new te(0))),lockedBalance:s,lockedBreakdown:a,vestingLocked:o})}function h$(t,e,n){const r=n||[],i=!e.vestingLocked.isZero(),s=r.map(({locked:l,perBlock:u,startingBlock:c})=>t.gt(c)?g2(l,u.mul(t.sub(c))):_n),a=s.reduce((l,u)=>l.iadd(u),new te(0)),o=r.reduce((l,{locked:u})=>l.iadd(u),new te(0));return{isVesting:i,vestedBalance:a,vestedClaimable:i?e.vestingLocked.sub(o.sub(a)):_n,vesting:r.map(({locked:l,perBlock:u,startingBlock:c},d)=>({endBlock:l.div(u).iadd(c),locked:l,perBlock:u,startingBlock:c,vested:s[d]})).filter(({locked:l})=>!l.isZero()),vestingTotal:o}}function p$(t,e){const[n,[r,i,s],a]=e,o=O5(t,a,n,i[0]);return ne(o,h$(a,o,r),{accountId:n.accountId,accountNonce:n.accountNonce,additional:i.slice(1).map((l,u)=>O5(t,a,n.additional[u],l)),namedReserves:s})}function m$(t,e){return ut([t.query.balances.locks(e),t.query.balances.vesting(e)]).pipe(_e(([n,r])=>{let i=null;if(r.isSome){const{offset:s,perBlock:a,startingBlock:o}=r.unwrap();i=t.registry.createType("VestingInfo",{locked:s,perBlock:a,startingBlock:o})}return[i?[i]:null,[n],[]]}))}const g$=t=>!!t;function M5(t){return[t.map(e=>!e),t.filter(g$)]}function y$(t,e,n=["balances"]){var o;const[r,i]=M5(n.map(l=>{var u,c;return((u=t.derive[l])==null?void 0:u.customLocks)||((c=t.query[l])==null?void 0:c.locks)})),[s,a]=M5(n.map(l=>{var u;return(u=t.query[l])==null?void 0:u.reserves}));return ut([(o=t.query.vesting)!=null&&o.vesting?t.query.vesting.vesting(e):Ce(t.registry.createType("Option")),i.length?ut(i.map(l=>l(e))):Ce([]),a.length?ut(a.map(l=>l(e))):Ce([])]).pipe(_e(([l,u,c])=>{let d=-1,h=-1;const m=l.unwrapOr(null);return[m?Array.isArray(m)?m:[m]:null,r.map(y=>y?t.registry.createType("Vec"):u[++d]),s.map(y=>y?t.registry.createType("Vec"):c[++h])]}))}function L5(t,e){const n=e.registry.getModuleInstances(e.runtimeVersion.specName,"balances");return De(t,r=>{var i,s;return ut([e.derive.balances.account(r),Se((i=e.query.system)==null?void 0:i.account)||Se((s=e.query.balances)==null?void 0:s.account)?y$(e,r,n):m$(e,r)]).pipe(Ze(([a,o])=>ut([Ce(a),Ce(o),e.derive.chain.bestNumber()])),_e(a=>p$(e,a)))})}function wr(t){return t.registry.createType("Balance")}function D5(t,[e,n,r,i]){const s=t.registry.createType("Balance",e.toBn());return{freeBalance:e,frozenFee:r,frozenMisc:i,reservedBalance:n,votingBalance:s}}function v$(t,[e,[n,[r,...i]]]){return ne({accountId:e,accountNonce:n,additional:i.map(s=>D5(t,s))},D5(t,r))}function _$(t,e){return ut([t.query.balances.freeBalance(e),t.query.balances.reservedBalance(e),t.query.system.accountNonce(e)]).pipe(_e(([n,r,i])=>[i,[[n,r,wr(t),wr(t)]]]))}function U5(t,e){const n=r=>[r,[[wr(t),wr(t),wr(t),wr(t)]]];return Se(t.query.system.account)?t.query.system.account(e).pipe(_e(({nonce:r})=>n(r))):Se(t.query.system.accountNonce)?t.query.system.accountNonce(e).pipe(_e(r=>n(r))):Ce(n(t.registry.createType("Index")))}function V5(t,e,n=["balances"]){const r=n.map(s=>{var a,o;return((a=t.derive[s])==null?void 0:a.customAccount)||((o=t.query[s])==null?void 0:o.account)}).filter(s=>Se(s)),i=(s,a)=>[s,a.map(({feeFrozen:o,free:l,miscFrozen:u,reserved:c})=>[l,c,o,u])];return r.length?Se(t.query.system.account)?ut([t.query.system.account(e),...r.map(s=>s(e))]).pipe(_e(([{nonce:s},...a])=>i(s,a))):ut([t.query.system.accountNonce(e),...r.map(s=>s(e))]).pipe(_e(([s,...a])=>i(s,a))):U5(t,e)}function b$(t,e){return t.query.system.account(e).pipe(_e(n=>{const r=n.nonce?n.data:n[1],i=n.nonce||n[0];if(!r||r.isEmpty)return[i,[[wr(t),wr(t),wr(t),wr(t)]]];const{feeFrozen:s,free:a,miscFrozen:o,reserved:l}=r;return[i,[[a,l,s,o]]]}))}function w$(t,e){const n=e.registry.getModuleInstances(e.runtimeVersion.specName,"balances"),r=n&&n[0]!=="balances";return De(t,i=>e.derive.accounts.accountId(i).pipe(Ze(s=>{var a,o,l;return s?ut([Ce(s),r?V5(e,s,n):Se((a=e.query.system)==null?void 0:a.account)?b$(e,s):Se((o=e.query.balances)==null?void 0:o.account)?V5(e,s):Se((l=e.query.balances)==null?void 0:l.freeBalance)?_$(e,s):U5(e,s)]):Ce([e.registry.createType("AccountId"),[e.registry.createType("Index"),[[wr(e),wr(e),wr(e),wr(e)]]]])}),_e(s=>v$(e,s))))}function x$(t,e){return De(t,n=>n!=null&&n.length?ut(n.map(r=>e.derive.balances.account(r))):Ce([]))}const S$=Object.freeze(Object.defineProperty({__proto__:null,account:w$,all:L5,votingBalance:L5,votingBalances:x$},Symbol.toStringTag,{value:"Module"}));function B5(t){return(e,n)=>De(e,()=>t(n).pipe(_e(rb)))}function E$(t,e){var s,a,o,l;const n=(s=e.session)!=null&&s.validators?e.session.validators():Ce(null),{logs:[r]}=t.digest,i=r&&(r.isConsensus&&r.asConsensus[0].isNimbus&&r.asConsensus[1]||r.isPreRuntime&&r.asPreRuntime[0].isNimbus&&r.asPreRuntime[1]);if(i){if((a=e.authorMapping)!=null&&a.mappingWithDeposit)return ut([Ce(t),n,e.authorMapping.mappingWithDeposit(i).pipe(_e(u=>u.unwrapOr({account:null}).account))]);if((o=e.parachainStaking)!=null&&o.selectedCandidates&&((l=e.session)!=null&&l.nextKeys)){const u=i.toHex();return ut([Ce(t),n,e.parachainStaking.selectedCandidates().pipe(fm(c=>ut([Ce(c),e.session.nextKeys.multi(c).pipe(_e(d=>d.findIndex(h=>h.unwrapOrDefault().nimbus.toHex()===u)))])),_e(([c,d])=>d===-1?null:c[d]))])}}return ut([Ce(t),n,Ce(null)])}function sb(t,e,n){return t.queryAt(e.parentHash.isEmpty?n||e.hash:e.parentHash).pipe(Ze(r=>E$(e,r)))}const C$=B5(t=>t.rpc.chain.subscribeNewHeads()),k$=B5(t=>t.rpc.chain.subscribeFinalizedHeads());function T$(t,e){return De(t,()=>ut([e.derive.chain.bestNumber(),e.derive.chain.bestNumberFinalized()]).pipe(_e(([n,r])=>e.registry.createType("BlockNumber",n.sub(r)))))}function H5(t,e){const[n]=t.logs.filter(a=>a.isConsensus),[r]=t.logs.filter(a=>a.isPreRuntime),[i]=t.logs.filter(a=>a.isSeal);let s;try{if(r){const[a,o]=r.asPreRuntime;s=a.extractAuthor(o,e)}if(!s&&n){const[a,o]=n.asConsensus;s=a.extractAuthor(o,e)}if(!s&&i){const[a,o]=i.asSeal;s=a.extractAuthor(o,e)}}catch{}return s}function F5(t,e,n,r){const i=t.createClass("Header");class s extends i{constructor(l,u,c,d){super(l,u);P(this,"__internal__author");this.__internal__author=d||H5(this.digest,c||[]),this.createdAtHash=u==null?void 0:u.createdAtHash}get author(){return this.__internal__author}}return new s(t,e,n,r)}function P$(t,e){return t.map((n,r)=>{let i,s;const a=e.filter(({phase:o})=>o.isApplyExtrinsic&&o.asApplyExtrinsic.eq(r)).map(({event:o})=>(o.section==="system"&&(o.method==="ExtrinsicSuccess"?s=o.data[0]:o.method==="ExtrinsicFailed"&&(i=o.data[0],s=o.data[1])),o));return{dispatchError:i,dispatchInfo:s,events:a,extrinsic:n}})}function A$(t,e,n,r,i){const s=t.createClass("SignedBlock");class a extends s{constructor(u,c,d,h,m){super(u,c);P(this,"__internal__author");P(this,"__internal__events");P(this,"__internal__extrinsics");this.__internal__author=m||H5(this.block.header.digest,h||[]),this.__internal__events=d||[],this.__internal__extrinsics=P$(this.block.extrinsics,this.__internal__events),this.createdAtHash=c==null?void 0:c.createdAtHash}get author(){return this.__internal__author}get events(){return this.__internal__events}get extrinsics(){return this.__internal__extrinsics}}return new a(t,e,n,r,i)}function N$(t,e){return De(t,n=>ut([e.rpc.chain.getBlock(n),e.queryAt(n)]).pipe(Ze(([r,i])=>ut([Ce(r),i.system.events(),sb(e,r.block.header,n)])),_e(([r,i,[,s,a]])=>A$(i.registry,r,i,s,a))))}function R$(t,e){return De(t,n=>e.rpc.chain.getBlockHash(n).pipe(Ze(r=>e.derive.chain.getBlock(r))))}function I$(t,e){return De(t,n=>e.rpc.chain.getHeader(n).pipe(Ze(r=>sb(e,r,n)),_e(([r,i,s])=>F5((i||r).registry,r,i,s))))}function O$(t,e){return De(t,()=>e.derive.chain.subscribeFinalizedHeads().pipe(Ze(n=>e.derive.chain.getBlock(n.createdAtHash||n.hash))))}function M$(t,e){return De(t,(n,r,i=[])=>e.rpc.chain.getHeader(n).pipe(Ze(s=>s.parentHash.eq(r)?Ce([s,...i]):e.derive.chain._getHeaderRange(s.parentHash,r,[s,...i]))))}function L$(t,e){return De(t,()=>{let n=null;return e.rpc.chain.subscribeFinalizedHeads().pipe(Ze(r=>{const i=n,s=r.parentHash;return n=r.createdAtHash=r.hash,i===null||s.eq(i)?Ce(r):e.derive.chain._getHeaderRange(s,i,[r]).pipe(Ze(a=>fs(a)))}))})}function D$(t,e){return De(t,()=>e.derive.chain.subscribeNewHeads().pipe(Ze(n=>e.derive.chain.getBlock(n.createdAtHash||n.hash))))}function U$(t,e){return De(t,()=>e.rpc.chain.subscribeNewHeads().pipe(Ze(n=>sb(e,n)),_e(([n,r,i])=>(n.createdAtHash=n.hash,F5(n.registry,n,r,i)))))}const V$=Object.freeze(Object.defineProperty({__proto__:null,_getHeaderRange:M$,bestNumber:C$,bestNumberFinalized:k$,bestNumberLag:T$,getBlock:N$,getBlockByNumber:R$,getHeader:I$,subscribeFinalizedBlocks:O$,subscribeFinalizedHeads:L$,subscribeNewBlocks:D$,subscribeNewHeads:U$},Symbol.toStringTag,{value:"Module"}));function B$(t){return Ce([t.consts.contracts.callBaseFee||t.registry.createType("Balance"),t.consts.contracts.contractFee||t.registry.createType("Balance"),t.consts.contracts.creationFee||t.registry.createType("Balance"),t.consts.contracts.transactionBaseFee||t.registry.createType("Balance"),t.consts.contracts.transactionByteFee||t.registry.createType("Balance"),t.consts.contracts.transferFee||t.registry.createType("Balance"),t.consts.contracts.rentByteFee||t.registry.createType("Balance"),t.consts.contracts.rentDepositOffset||t.registry.createType("Balance"),t.consts.contracts.surchargeReward||t.registry.createType("Balance"),t.consts.contracts.tombstoneDeposit||t.registry.createType("Balance")])}function H$(t,e){return De(t,()=>B$(e).pipe(_e(([n,r,i,s,a,o,l,u,c,d])=>({callBaseFee:n,contractFee:r,creationFee:i,rentByteFee:l,rentDepositOffset:u,surchargeReward:c,tombstoneDeposit:d,transactionBaseFee:s,transactionByteFee:a,transferFee:o}))))}const F$=Object.freeze(Object.defineProperty({__proto__:null,fees:H$},Symbol.toStringTag,{value:"Module"}));function j$(t,e){return De(t,n=>ut([e.rpc.chain.getBlock(n),e.queryAt(n).pipe(Ze(r=>r.system.events()))]).pipe(_e(([r,i])=>({block:r,events:i}))))}const z$=250,W$=new te(6*1e3),j5=new te(5),q$=new te(5*60*1e3);function z5(t,e){return t.derive.balances.account(e).pipe(_e(({accountNonce:n})=>n))}function Z$(t,e){var n;return(n=t.rpc.system)!=null&&n.accountNextIndex?t.rpc.system.accountNextIndex(e):z5(t,e)}function G$(t){return ut([t.rpc.chain.getHeader().pipe(Ze(e=>e.parentHash.isEmpty?Ce(e):t.rpc.chain.getHeader(e.parentHash).pipe(Do(()=>Ce(e))))),t.rpc.chain.getFinalizedHead().pipe(Ze(e=>t.rpc.chain.getHeader(e).pipe(Do(()=>Ce(null)))))]).pipe(_e(([e,n])=>!n||rb(e).sub(rb(n)).gt(j5)?e:n))}function X$(t,e){return(n,r,i)=>ut([rt(r)?z5(e,n):r===-1?Z$(e,n):Ce(e.registry.createType("Index",r)),rt(i)||Be(i)&&i>0?G$(e):Ce(null)]).pipe(_e(([s,a])=>{var o,l,u,c;return{header:a,mortalLength:Math.min(((l=(o=e.consts.system)==null?void 0:o.blockHashCount)==null?void 0:l.toNumber())||z$,q$.div(((u=e.consts.babe)==null?void 0:u.expectedBlockTime)||((c=e.consts.timestamp)==null?void 0:c.minimumPeriod.muln(2))||W$).iadd(j5).toNumber()),nonce:s}}))}const K$={accounts:c$,alliance:cr,bagsList:cr,balances:S$,bounties:cr,chain:V$,contracts:F$,council:cr,crowdloan:cr,democracy:cr,elections:cr,imOnline:cr,membership:cr,parachains:cr,session:cr,society:cr,staking:cr,technicalCommittee:cr,treasury:cr,tx:Object.freeze(Object.defineProperty({__proto__:null,events:j$,signingInfo:X$},Symbol.toStringTag,{value:"Module"}))},Bo={allianceMotion:{instances:["allianceMotion"],methods:[]},bagsList:{instances:["voterBagsList","voterList","bagsList"],methods:[],withDetect:!0},contracts:{instances:["contracts"],methods:[]},council:{instances:["council"],methods:[],withDetect:!0},crowdloan:{instances:["crowdloan"],methods:[]},democracy:{instances:["democracy"],methods:[]},elections:{instances:["phragmenElection","electionsPhragmen","elections","council"],methods:[],withDetect:!0},imOnline:{instances:["imOnline"],methods:[]},membership:{instances:["membership"],methods:[]},parachains:{instances:["parachains","registrar"],methods:[]},session:{instances:["session"],methods:[]},society:{instances:["society"],methods:[]},staking:{instances:["staking"],methods:["erasRewardPoints"]},technicalCommittee:{instances:["technicalCommittee"],methods:[],withDetect:!0},treasury:{instances:["treasury"],methods:[]}};function J$(t,e,n){return t.registry.getModuleInstances(e,n)||[]}function W5(t,e,n){const r={},i=Object.keys(n),s=Object.keys(e.query),a=e.runtimeVersion.specName,o=m=>s.includes(m),l=m=>J$(e,a,m).some(o),u=m=>y=>m.some(v=>s.includes(v)&&e.query[v][y]),c=m=>Object.keys(n[m]),d=(m,y)=>n[m][y](t,e),h=m=>!Bo[m]||Bo[m].instances.some(o)&&(!Bo[m].methods.length||Bo[m].methods.every(u(Bo[m].instances)))||Bo[m].withDetect&&Bo[m].instances.some(l);for(let m=0,y=i.length;m")}get length(){return this.__internal__length}get lengthData(){return this.__internal__data.size}get lengthRefs(){return this.__internal__refs.size}entries(){const e=this.keys(),n=e.length,r=new Array(n);for(let i=0;i=0&&t<=999)return"(Unused)";if(t>=1016){if(t<=1999)return"(For WebSocket standard)";if(t<=2999)return"(For WebSocket extensions)";if(t<=3999)return"(For libraries and frameworks)";if(t<=4999)return"(For applications)"}return iQ[t]||"(Unknown)"}const aQ={chain_finalisedHead:"chain_finalizedHead",chain_subscribeFinalisedHeads:"chain_subscribeFinalizedHeads",chain_unsubscribeFinalisedHeads:"chain_unsubscribeFinalizedHeads"},oQ=2500,lQ=60*1e3,uQ=5e3,jr=ir("api-ws");function Y5(t,e){Object.keys(t).forEach(n=>{e&&e(t[n]),delete t[n]})}function ob(){return{bytesRecv:0,bytesSent:0,cached:0,errors:0,requests:0,subscriptions:0,timeout:0}}class Rd{constructor(e=eQ.WS_URL,n=oQ,r={},i){P(this,"__internal__callCache",new nQ);P(this,"__internal__coder");P(this,"__internal__endpoints");P(this,"__internal__headers");P(this,"__internal__eventemitter");P(this,"__internal__handlers",{});P(this,"__internal__isReadyPromise");P(this,"__internal__stats");P(this,"__internal__waitingForId",{});P(this,"__internal__autoConnectMs");P(this,"__internal__endpointIndex");P(this,"__internal__endpointStats");P(this,"__internal__isConnected",!1);P(this,"__internal__subscriptions",{});P(this,"__internal__timeoutId",null);P(this,"__internal__websocket");P(this,"__internal__timeout");P(this,"__internal__emit",(e,...n)=>{this.__internal__eventemitter.emit(e,...n)});P(this,"__internal__onSocketClose",e=>{const n=new Error(`disconnected from ${this.endpoint}: ${e.code}:: ${e.reason||sQ(e.code)}`);this.__internal__autoConnectMs>0&&jr.error(n.message),this.__internal__isConnected=!1,this.__internal__websocket&&(this.__internal__websocket.onclose=null,this.__internal__websocket.onerror=null,this.__internal__websocket.onmessage=null,this.__internal__websocket.onopen=null,this.__internal__websocket=null),this.__internal__timeoutId&&(clearInterval(this.__internal__timeoutId),this.__internal__timeoutId=null),Y5(this.__internal__handlers,r=>{try{r.callback(n,void 0)}catch(i){jr.error(i)}}),Y5(this.__internal__waitingForId),this.__internal__endpointStats=ob(),this.__internal__emit("disconnected"),this.__internal__autoConnectMs>0&&setTimeout(()=>{this.connectWithRetry().catch(Ki)},this.__internal__autoConnectMs)});P(this,"__internal__onSocketError",e=>{jr.debug(()=>["socket error",e]),this.__internal__emit("error",e)});P(this,"__internal__onSocketMessage",e=>{jr.debug(()=>["received",e.data]);const n=e.data.length;this.__internal__endpointStats.bytesRecv+=n,this.__internal__stats.total.bytesRecv+=n;const r=JSON.parse(e.data);return rt(r.method)?this.__internal__onSocketMessageResult(r):this.__internal__onSocketMessageSubscribe(r)});P(this,"__internal__onSocketMessageResult",e=>{const n=this.__internal__handlers[e.id];if(!n){jr.debug(()=>`Unable to find handler for id=${e.id}`);return}try{const{method:r,params:i,subscription:s}=n,a=this.__internal__coder.decodeResponse(e);if(n.callback(null,a),s){const o=`${s.type}::${a}`;this.__internal__subscriptions[o]=ne({},s,{method:r,params:i}),this.__internal__waitingForId[o]&&this.__internal__onSocketMessageSubscribe(this.__internal__waitingForId[o])}}catch(r){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,n.callback(r,void 0)}delete this.__internal__handlers[e.id]});P(this,"__internal__onSocketMessageSubscribe",e=>{if(!e.method)throw new Error("No method found in JSONRPC response");const r=`${aQ[e.method]||e.method}::${e.params.subscription}`,i=this.__internal__subscriptions[r];if(!i){this.__internal__waitingForId[r]=e,jr.debug(()=>`Unable to find handler for subscription=${r}`);return}delete this.__internal__waitingForId[r];try{const s=this.__internal__coder.decodeResponse(e);i.callback(null,s)}catch(s){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,i.callback(s,void 0)}});P(this,"__internal__onSocketOpen",()=>{if(this.__internal__websocket===null)throw new Error("WebSocket cannot be null in onOpen");return jr.debug(()=>["connected to",this.endpoint]),this.__internal__isConnected=!0,this.__internal__resubscribe(),this.__internal__emit("connected"),!0});P(this,"__internal__resubscribe",()=>{const e=this.__internal__subscriptions;this.__internal__subscriptions={},Promise.all(Object.keys(e).map(async n=>{const{callback:r,method:i,params:s,type:a}=e[n];if(!a.startsWith("author_"))try{await this.subscribe(a,i,s,r)}catch(o){jr.error(o)}})).catch(jr.error)});P(this,"__internal__timeoutHandlers",()=>{const e=Date.now(),n=Object.keys(this.__internal__handlers);for(let r=0,i=n.length;rthis.__internal__timeout){try{s.callback(new Error(`No response received from RPC endpoint in ${this.__internal__timeout/1e3}s`),void 0)}catch{}this.__internal__endpointStats.timeout++,this.__internal__stats.total.timeout++,delete this.__internal__handlers[n[r]]}}});const s=Array.isArray(e)?e:[e];if(s.length===0)throw new Error("WsProvider requires at least one Endpoint");s.forEach(a=>{if(!/^(wss|ws):\/\//.test(a))throw new Error(`Endpoint should start with 'ws://', received '${a}'`)}),this.__internal__eventemitter=new J5,this.__internal__autoConnectMs=n||0,this.__internal__coder=new Q$,this.__internal__endpointIndex=-1,this.__internal__endpoints=s,this.__internal__headers=r,this.__internal__websocket=null,this.__internal__stats={active:{requests:0,subscriptions:0},total:ob()},this.__internal__endpointStats=ob(),this.__internal__timeout=i||lQ,n&&n>0&&this.connectWithRetry().catch(Ki),this.__internal__isReadyPromise=new Promise(a=>{this.__internal__eventemitter.once("connected",()=>{a(this)})})}get hasSubscriptions(){return!0}get isClonable(){return!0}get isConnected(){return this.__internal__isConnected}get isReady(){return this.__internal__isReadyPromise}get endpoint(){return this.__internal__endpoints[this.__internal__endpointIndex]}clone(){return new Rd(this.__internal__endpoints)}selectEndpointIndex(e){return(this.__internal__endpointIndex+1)%e.length}async connect(){if(this.__internal__websocket)throw new Error("WebSocket is already connected");try{this.__internal__endpointIndex=this.selectEndpointIndex(this.__internal__endpoints),this.__internal__websocket=typeof er.WebSocket<"u"&&P2(er.WebSocket,ab)?new ab(this.endpoint):new ab(this.endpoint,void 0,{headers:this.__internal__headers}),this.__internal__websocket&&(this.__internal__websocket.onclose=this.__internal__onSocketClose,this.__internal__websocket.onerror=this.__internal__onSocketError,this.__internal__websocket.onmessage=this.__internal__onSocketMessage,this.__internal__websocket.onopen=this.__internal__onSocketOpen),this.__internal__timeoutId=setInterval(()=>this.__internal__timeoutHandlers(),uQ)}catch(e){throw jr.error(e),this.__internal__emit("error",e),e}}async connectWithRetry(){if(this.__internal__autoConnectMs>0)try{await this.connect()}catch{setTimeout(()=>{this.connectWithRetry().catch(Ki)},this.__internal__autoConnectMs)}}async disconnect(){this.__internal__autoConnectMs=0;try{this.__internal__websocket&&this.__internal__websocket.close(1e3)}catch(e){throw jr.error(e),this.__internal__emit("error",e),e}}get stats(){return{active:{requests:Object.keys(this.__internal__handlers).length,subscriptions:Object.keys(this.__internal__subscriptions).length},total:this.__internal__stats.total}}get endpointStats(){return this.__internal__endpointStats}on(e,n){return this.__internal__eventemitter.on(e,n),()=>{this.__internal__eventemitter.removeListener(e,n)}}send(e,n,r,i){this.__internal__endpointStats.requests++,this.__internal__stats.total.requests++;const[s,a]=this.__internal__coder.encodeJson(e,n);let o=r?this.__internal__callCache.get(a):null;return o?(this.__internal__endpointStats.cached++,this.__internal__stats.total.cached++):(o=this.__internal__send(s,a,e,n,i),r&&this.__internal__callCache.set(a,o)),o}async __internal__send(e,n,r,i,s){return new Promise((a,o)=>{try{if(!this.isConnected||this.__internal__websocket===null)throw new Error("WebSocket is not connected");const l=(c,d)=>{c?o(c):a(d)};jr.debug(()=>["calling",r,n]),this.__internal__handlers[e]={callback:l,method:r,params:i,start:Date.now(),subscription:s};const u=n.length;this.__internal__endpointStats.bytesSent+=u,this.__internal__stats.total.bytesSent+=u,this.__internal__websocket.send(n)}catch(l){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,o(l)}})}subscribe(e,n,r,i){return this.__internal__endpointStats.subscriptions++,this.__internal__stats.total.subscriptions++,this.send(n,r,!1,{callback:i,type:e})}async unsubscribe(e,n,r){const i=`${e}::${r}`;if(rt(this.__internal__subscriptions[i]))return jr.debug(()=>`Unable to find active subscription=${i}`),!1;delete this.__internal__subscriptions[i];try{return this.isConnected&&!fa(this.__internal__websocket)?this.send(n,[r]):!0}catch{return!1}}}const cQ=ir("api/util");function dQ(t,{block:{extrinsics:e,header:n}},r,i){for(const[s,a]of e.entries())if(a.hash.eq(t))return{blockNumber:ay(n.number)?n.number.unwrap():n.number,events:r.filter(({phase:o})=>o.isApplyExtrinsic&&o.asApplyExtrinsic.eqn(s)),txIndex:s};if(i.isInBlock){const s=e.map(a=>a.hash.toHex());cQ.warn(`block ${n.hash.toHex()}: Unable to find extrinsic ${t.toHex()} inside ${s.join(", ")}`)}return{}}function lb(t){return Se(t.sign)}function $5(t,e){const n=a=>Object.keys(e[a]),r=(a,o)=>t(e[a][o]),i={},s=Object.keys(e);for(let a=0,o=s.length;at;function ub(t,e,n,r){return t.filter(({event:i})=>e===i.section&&n.includes(i.method)).map(i=>r(i))}function hQ({event:{data:[t]}}){return t}function pQ({event:{data:t,method:e}}){return e==="ExtrinsicSuccess"?t[0]:t[1]}function mQ(t=[]){return ub(t,"system",["ExtrinsicFailed"],hQ)[0]}function gQ(t=[]){return ub(t,"system",["ExtrinsicFailed","ExtrinsicSuccess"],pQ)[0]}class Bm{constructor({blockNumber:e,dispatchError:n,dispatchInfo:r,events:i,internalError:s,status:a,txHash:o,txIndex:l}){P(this,"dispatchError");P(this,"dispatchInfo");P(this,"internalError");P(this,"events");P(this,"status");P(this,"txHash");P(this,"txIndex");P(this,"blockNumber");this.dispatchError=n||mQ(i),this.dispatchInfo=r||gQ(i),this.events=i||[],this.internalError=s,this.status=a,this.txHash=o,this.txIndex=l,this.blockNumber=e}get isCompleted(){return this.isError||this.status.isInBlock||this.status.isFinalized}get isError(){return this.status.isDropped||this.status.isFinalityTimeout||this.status.isInvalid||this.status.isUsurped}get isFinalized(){return this.status.isFinalized}get isInBlock(){return this.status.isInBlock}get isWarning(){return this.status.isRetracted}filterRecords(e,n){return ub(this.events,e,Array.isArray(n)?n:[n],fQ)}findRecord(e,n){return this.filterRecords(e,n)[0]}toHuman(e){var n,r,i;return{dispatchError:(n=this.dispatchError)==null?void 0:n.toHuman(),dispatchInfo:(r=this.dispatchInfo)==null?void 0:r.toHuman(),events:this.events.map(s=>s.toHuman(e)),internalError:(i=this.internalError)==null?void 0:i.message.toString(),status:this.status.toHuman(e)}}}function Q5(t,e,n,{header:r,mortalLength:i,nonce:s}){if(!r){if(n.era&&!n.blockHash)throw new Error("Expected blockHash to be passed alongside non-immortal era options");return Be(n.era)&&(delete n.era,delete n.blockHash),cb(t,n,{nonce:s})}return cb(t,n,{blockHash:r.hash,era:e.createTypeUnsafe("ExtrinsicEra",[{current:r.number,period:n.era||i}]),nonce:s})}function eN(t,e){let n={};return Se(t)?e=t:n=ne({},t),[n,e]}function cb(t,e,n){return ne({blockHash:t.genesisHash,genesisHash:t.genesisHash},e,n,{runtimeVersion:t.runtimeVersion,signedExtensions:t.registry.signedExtensions,version:t.extrinsicType})}function yQ(t={}){return rr(t)||Be(t)?{nonce:t}:t}function vQ({api:t,apiType:e,blockHash:n,decorateMethod:r}){const i=t.registry.createClass("Extrinsic");class s extends i{constructor(l,u){super(l,u,{version:t.extrinsicType});P(this,"__internal__ignoreStatusCb");P(this,"__internal__transformResult",pa);P(this,"__internal__observeSign",(l,u)=>{const c=lb(l)?l.address:l.toString(),d=yQ(u);return t.derive.tx.signingInfo(c,d.nonce,d.era).pipe(NA(),fm(async h=>{const m=Q5(t,this.registry,d,h);let y=-1;return lb(l)?this.sign(l,m):y=await this.__internal__signViaSigner(c,m,h.header),{options:m,updateId:y}}))});P(this,"__internal__observeStatus",(l,u)=>{if(!u.isFinalized&&!u.isInBlock)return Ce(this.__internal__transformResult(new Bm({status:u,txHash:l})));const c=u.isInBlock?u.asInBlock:u.asFinalized;return t.derive.tx.events(c).pipe(_e(({block:d,events:h})=>this.__internal__transformResult(new Bm({...dQ(l,d,h,u),status:u,txHash:l}))),Do(d=>Ce(this.__internal__transformResult(new Bm({internalError:d,status:u,txHash:l})))))});P(this,"__internal__observeSend",l=>t.rpc.author.submitExtrinsic(this).pipe(vd(u=>{this.__internal__updateSigner(u,l)})));P(this,"__internal__observeSubscribe",l=>{const u=this.hash;return t.rpc.author.submitAndWatchExtrinsic(this).pipe(Ze(c=>this.__internal__observeStatus(u,c)),vd(c=>{this.__internal__updateSigner(c,l)}))});P(this,"__internal__signViaSigner",async(l,u,c)=>{const d=u.signer||t.signer;if(!d)throw new Error("No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");const h=this.registry.createTypeUnsafe("SignerPayload",[ne({},u,{address:l,blockNumber:c?c.number:0,method:this.method})]);let m;if(Se(d.signPayload))m=await d.signPayload(h.toPayload());else if(Se(d.signRaw))m=await d.signRaw(h.toRaw());else throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)");return super.addSignature(l,m.signature,h.toPayload()),m.id});P(this,"__internal__updateSigner",(l,u)=>{if(u&&u.updateId!==-1){const{options:c,updateId:d}=u,h=c.signer||t.signer;h&&Se(h.update)&&h.update(d,l)}});this.__internal__ignoreStatusCb=e==="rxjs"}get hasDryRun(){var l;return Se((l=t.rpc.system)==null?void 0:l.dryRun)}get hasPaymentInfo(){var l;return Se((l=t.call.transactionPaymentApi)==null?void 0:l.queryInfo)}dryRun(l,u){if(!this.hasDryRun)throw new Error("The system.dryRun RPC call is not available in your environment");return n||Ye(u)||he(u)?r(()=>t.rpc.system.dryRun(this.toHex(),n||u)):r(()=>this.__internal__observeSign(l,u).pipe(Ze(()=>t.rpc.system.dryRun(this.toHex()))))()}paymentInfo(l,u){if(!this.hasPaymentInfo)throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment");if(n||Ye(u)||he(u))return r(()=>t.callAt(n||u).pipe(Ze(h=>{const m=this.toU8a();return h.transactionPaymentApi.queryInfo(m,m.length)})));const[c]=eN(u),d=lb(l)?l.address:l.toString();return r(()=>t.derive.tx.signingInfo(d,c.nonce,c.era).pipe(NA(),Ze(h=>{const m=Q5(t,this.registry,c,h),y=cb(t,m,{}),v=t.tx(this.toU8a()).signFake(d,y).toU8a();return t.call.transactionPaymentApi.queryInfo(v,v.length)})))()}send(l){const u=t.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!l);return r(u?this.__internal__observeSubscribe:this.__internal__observeSend)(l)}signAsync(l,u){return r(()=>this.__internal__observeSign(l,u).pipe(_e(()=>this)))()}signAndSend(l,u,c){const[d,h]=eN(u,c),m=t.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!h);return r(()=>this.__internal__observeSign(l,d).pipe(Ze(y=>m?this.__internal__observeSubscribe(y):this.__internal__observeSend(y))))(h)}withResultTransform(l){return this.__internal__transformResult=l,this}}return s}function tN(t,e,n,r,i){const s=vQ({api:e,apiType:t,blockHash:i,decorateMethod:n});return a=>new s(r||e.registry,a)}const _Q=ir("api/augment");function nN(t,e,n=[]){return e.length?` ${e.length} ${t}${n.length?" and":""}`:""}function rN(t,e){return e.length?` + ${t.padStart(7)}: ${e.sort().join(", ")}`:""}function iN(t,e,[n,r]){(n.length||r.length)&&_Q.warn(`api.${t}: Found${nN("added",n,r)}${nN("removed",r)} ${e}:${rN("added",n)}${rN("removed",r)}`)}function sN(t,e){return t.filter(n=>!e.includes(n))}function bQ(t,e){return t.filter(n=>e.includes(n))}function wQ(t,e){const n=Object.keys(t),r=Object.keys(e);return[sN(n,r),sN(r,n)]}function aN(t,e){const n=Object.keys(t),r=bQ(Object.keys(e),n),i=[];for(let s=0,a=r.length;sl[u])}return n}function oN({lookup:t},{method:e,section:n},r){return`${n}.${e}(${r.map(i=>t.getTypeDef(i).type).join(", ")})`}function Hm(t,e,n){const r=n.filter(i=>!rt(i));if(e.meta.type.isPlain){if(r.length!==0)throw new Error(`${oN(t,e,[])} does not take any arguments, ${r.length} found`)}else{const{hashers:i,key:s}=e.meta.type.asMap,a=i.length===1?[s]:t.lookup.getSiType(s).def.asTuple.map(o=>o);if(r.length!==a.length)throw new Error(`${oN(t,e,a)} is a map, requiring ${a.length} arguments, ${r.length} found`)}return[e,r]}class SQ{constructor(){P(this,"__internal__eventemitter",new J5)}emit(e,...n){return this.__internal__eventemitter.emit(e,...n)}on(e,n){return this.__internal__eventemitter.on(e,n),this}off(e,n){return this.__internal__eventemitter.removeListener(e,n),this}once(e,n){return this.__internal__eventemitter.once(e,n),this}}const Fm=1e3,db=250,EQ=50,fb=ir("api/init");let CQ=0;function hb(t,{method:e,section:n}){return Gi(t.rx.query[n]&&t.rx.query[n][e],()=>`query.${n}.${e} is not available in this version of the metadata`)}class kQ extends SQ{constructor(n,r,i){var a;super();P(this,"__internal__instanceId");P(this,"__internal__runtimeLog",{});P(this,"__internal__registry");P(this,"__internal__storageGetQ",[]);P(this,"__internal__storageSubQ",[]);P(this,"__phantom",new te(0));P(this,"_type");P(this,"_call",{});P(this,"_consts",{});P(this,"_derive");P(this,"_errors",{});P(this,"_events",{});P(this,"_extrinsics");P(this,"_extrinsicType",km.LATEST_EXTRINSIC_VERSION);P(this,"_genesisHash");P(this,"_isConnected");P(this,"_isReady",!1);P(this,"_query",{});P(this,"_queryMulti");P(this,"_rpc");P(this,"_rpcCore");P(this,"_runtimeMap",{});P(this,"_runtimeChain");P(this,"_runtimeMetadata");P(this,"_runtimeVersion");P(this,"_rx",{call:{},consts:{},query:{},tx:{}});P(this,"_options");P(this,"_decorateMethod");P(this,"_rxDecorateMethod",n=>n);this.__internal__instanceId=`${++CQ}`,this.__internal__registry=((a=n.source)==null?void 0:a.registry)||n.registry||new nb,this._rx.callAt=(o,l)=>fs(this.at(o,l)).pipe(_e(u=>u.rx.call)),this._rx.queryAt=(o,l)=>fs(this.at(o,l)).pipe(_e(u=>u.rx.query)),this._rx.registry=this.__internal__registry,this._decorateMethod=i,this._options=n,this._type=r;const s=n.source?n.source._rpcCore.provider.isClonable?n.source._rpcCore.provider.clone():n.source._rpcCore.provider:n.provider||new Rd;this._rpcCore=new jY(this.__internal__instanceId,this.__internal__registry,{isPedantic:this._options.isPedantic,provider:s,userRpc:this._options.rpc}),this._isConnected=new uA(this._rpcCore.provider.isConnected),this._rx.hasSubscriptions=this._rpcCore.provider.hasSubscriptions}get registry(){return this.__internal__registry}createType(n,...r){return this.__internal__registry.createType(n,...r)}registerTypes(n){n&&this.__internal__registry.register(n)}get hasSubscriptions(){return this._rpcCore.provider.hasSubscriptions}get supportMulti(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}_emptyDecorated(n,r){return{call:{},consts:{},errors:{},events:{},query:{},registry:n,rx:{call:{},query:{}},tx:tN(this._type,this._rx,this._decorateMethod,n,r)}}_createDecorated(n,r,i,s){i||(i=this._emptyDecorated(n.registry,s)),(r||!n.decoratedMeta)&&(n.decoratedMeta=gY(n.registry,n.metadata));const a=this._decorateCalls(n,this._decorateMethod,s),o=this._decorateCalls(n,this._rxDecorateMethod,s),l=this._decorateStorage(n.decoratedMeta,this._decorateMethod,s),u=this._decorateStorage(n.decoratedMeta,this._rxDecorateMethod,s);return ms("consts",n.decoratedMeta.consts,i.consts,r),ms("errors",n.decoratedMeta.errors,i.errors,r),ms("events",n.decoratedMeta.events,i.events,r),ms("query",l,i.query,r),ms("query",u,i.rx.query,r),ms("call",a,i.call,r),ms("call",o,i.rx.call,r),i.findCall=c=>$P(n.registry,c),i.findError=c=>QP(n.registry,c),i.queryMulti=s?this._decorateMultiAt(i,this._decorateMethod,s):this._decorateMulti(this._decorateMethod),i.runtimeVersion=n.runtimeVersion,{createdAt:s,decoratedApi:i,decoratedMeta:n.decoratedMeta}}_injectMetadata(n,r=!1){(r||!n.decoratedApi)&&(n.decoratedApi=this._emptyDecorated(n.registry));const{decoratedApi:i,decoratedMeta:s}=this._createDecorated(n,r,n.decoratedApi);this._call=i.call,this._consts=i.consts,this._errors=i.errors,this._events=i.events,this._query=i.query,this._rx.call=i.rx.call,this._rx.query=i.rx.query;const a=this._decorateExtrinsics(s,this._decorateMethod),o=this._decorateExtrinsics(s,this._rxDecorateMethod);r||!this._extrinsics?(this._extrinsics=a,this._rx.tx=o):(ms("tx",a,this._extrinsics,!1),ms(null,o,this._rx.tx,!1)),ms(null,s.consts,this._rx.consts,r),this.emit("decorated")}injectMetadata(n,r,i){this._injectMetadata({counter:0,metadata:n,registry:i||this.__internal__registry,runtimeVersion:this.__internal__registry.createType("RuntimeVersionPartial")},r)}_decorateFunctionMeta(n,r){return r.meta=n.meta,r.method=n.method,r.section=n.section,r.toJSON=n.toJSON,n.callIndex&&(r.callIndex=n.callIndex),r}_filterRpc(n,r){Object.keys(r).length!==0&&(this._rpcCore.addUserInterfaces(r),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));const i={};for(let a=0,o=n.length;a!s.includes(l)&&!l.includes("_unstable_"));o.length&&!this._options.noInitWarn&&fb.warn(`RPC methods not decorated: ${o.join(", ")}`);for(let l=0;lfs(this._rpcCore.provider.send(i,s)))}_decorateRpc(n,r,i=this._rpcSubmitter(r)){const s=i,a=(o,l)=>{const u=n[o][l],c=r(u,{methodName:l});return c.meta=u.meta,c.raw=r(u.raw,{methodName:l}),c};for(let o=0,l=n.sections.length;oa(u,h);for(let h=0,m=c.length;hd.version===m);h?ne(h.methods,d.methods):n[o].push(d)}else n[o]=l}}_getRuntimeDefs(n,r,i=""){const s={},a=Object.values(mm);for(let o=0,l=a.length;oF.eq(U));if(c[U]=!0,V){const F=M.map(({version:B})=>B).sort(),L=M.find(({version:B})=>V[1].eq(B));if(L){const B=je(O),W=Object.entries(L.methods);if(W.length){u[B]||(u[B]={});for(let N=0,f=W.length;N[w.toHex(),A.toString()]).filter(([w])=>!c[w]).map(([w,A])=>`${this._runtimeMap[w]||w}/${A}`);!this._options.noInitWarn&&!y&&(h.length&&fb.warn(`${m}: Not decorating runtime apis without matching versions: ${h.join(", ")}`),v.length&&fb.warn(`${m}: Not decorating unknown runtime apis: ${v.join(", ")}`));const S=o?(w,A)=>this._rpcCore.state.call(w,A,o):(w,A)=>this._rpcCore.state.call(w,A),_=w=>ha({},Object.keys(u[w]),A=>this._decorateCall(n,u[w][A],S,a)),b=Object.keys(u);for(let w=0,A=b.length;w{if(o.length!==r.params.length)throw new Error(`${r.name}:: Expected ${r.params.length} arguments, found ${o.length}`);const l=n.createType("Raw",Zn(o.map((u,c)=>n.createTypeUnsafe(r.params[c].type,[u]).toU8a())));return i(r.name,l).pipe(_e(u=>n.createTypeUnsafe(r.type,[u])))});return a.meta=r,a}_decorateMulti(n){return n(r=>r.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(r.map(i=>Array.isArray(i)?i[0].creator.meta.type.isPlain?[i[0].creator]:i[0].creator.meta.type.asMap.hashers.length===1?[i[0].creator,i.slice(1)]:[i[0].creator,...i.slice(1)]:[i.creator])):Ce([]))}_decorateMultiAt(n,r,i){return r(s=>s.length?this._rpcCore.state.queryStorageAt(s.map(a=>{if(Array.isArray(a)){const{creator:o}=hb(n,a[0].creator);return o.meta.type.isPlain?[o]:o.meta.type.asMap.hashers.length===1?[o,a.slice(1)]:[o,...a.slice(1)]}return[hb(n,a.creator).creator]}),i):Ce([]))}_decorateExtrinsics({tx:n},r){const i=tN(this._type,this._rx,r),s=o=>ha({},Object.keys(n[o]),l=>l.startsWith("$")?n[o][l]:this._decorateExtrinsicEntry(n[o][l],i)),a=Object.keys(n);for(let o=0,l=a.length;or(n(...s));return i.is=s=>n.is(s),this._decorateFunctionMeta(n,i)}_decorateStorage({query:n,registry:r},i,s){const a={},o=u=>ha({},Object.keys(n[u]),c=>s?this._decorateStorageEntryAt(r,n[u][c],i,s):this._decorateStorageEntry(n[u][c],i)),l=Object.keys(n);for(let u=0,c=l.length;uHm(l||this.__internal__registry,n,o),s=o=>fs(this.at(o)).pipe(_e(l=>hb(l,n))),a=this._decorateStorageCall(n,r);return a.creator=n,a.at=r((o,...l)=>s(o).pipe(Ze(u=>u(...l)))),a.hash=r((...o)=>this._rpcCore.state.getStorageHash(i(o))),a.is=o=>o.section===n.section&&o.method===n.method,a.key=(...o)=>Ae(nl(n(...o))[1]),a.keyPrefix=(...o)=>Ae(n.keyPrefix(...o)),a.size=r((...o)=>this._rpcCore.state.getStorageSize(i(o))),a.sizeAt=r((o,...l)=>s(o).pipe(Ze(u=>this._rpcCore.state.getStorageSize(i(l,u.creator.meta.registry),o)))),n.iterKey&&n.meta.type.isMap&&(a.entries=r(De(this.__internal__instanceId,(...o)=>this._retrieveMapEntries(n,null,o))),a.entriesAt=r(De(this.__internal__instanceId,(o,...l)=>s(o).pipe(Ze(u=>this._retrieveMapEntries(u.creator,o,l))))),a.entriesPaged=r(De(this.__internal__instanceId,o=>this._retrieveMapEntriesPaged(n,void 0,o))),a.keys=r(De(this.__internal__instanceId,(...o)=>this._retrieveMapKeys(n,null,o))),a.keysAt=r(De(this.__internal__instanceId,(o,...l)=>s(o).pipe(Ze(u=>this._retrieveMapKeys(u.creator,o,l))))),a.keysPaged=r(De(this.__internal__instanceId,o=>this._retrieveMapKeysPaged(n,void 0,o)))),this.supportMulti&&n.meta.type.isMap&&(a.multi=r(o=>n.meta.type.asMap.hashers.length===1?this._retrieveMulti(o.map(l=>[n,[l]])):this._retrieveMulti(o.map(l=>[n,l])))),this._decorateFunctionMeta(n,a)}_decorateStorageEntryAt(n,r,i,s){const a=l=>Hm(n,r,l),o=i((...l)=>this._rpcCore.state.getStorage(a(l),s));return o.creator=r,o.hash=i((...l)=>this._rpcCore.state.getStorageHash(a(l),s)),o.is=l=>l.section===r.section&&l.method===r.method,o.key=(...l)=>Ae(nl(r(...l))[1]),o.keyPrefix=(...l)=>Ae(r.keyPrefix(...l)),o.size=i((...l)=>this._rpcCore.state.getStorageSize(a(l),s)),r.iterKey&&r.meta.type.isMap&&(o.entries=i(De(this.__internal__instanceId,(...l)=>this._retrieveMapEntries(r,s,l))),o.entriesPaged=i(De(this.__internal__instanceId,l=>this._retrieveMapEntriesPaged(r,s,l))),o.keys=i(De(this.__internal__instanceId,(...l)=>this._retrieveMapKeys(r,s,l))),o.keysPaged=i(De(this.__internal__instanceId,l=>this._retrieveMapKeysPaged(r,s,l)))),this.supportMulti&&r.meta.type.isMap&&(o.multi=i(l=>r.meta.type.asMap.hashers.length===1?this._retrieveMulti(l.map(u=>[r,[u]]),s):this._retrieveMulti(l.map(u=>[r,u]),s))),this._decorateFunctionMeta(r,o)}_queueStorage(n,r){const i=r===this.__internal__storageSubQ?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;let s=r.length-1,a=0,o;return s===-1||!r[s]||r[s][1].length===EQ?(s++,o=fs(new Promise(l=>{nc(()=>{const u=r[s][1];delete r[s],l(u)})})).pipe(Ze(l=>i(l))),r.push([o,[n]])):(o=r[s][0],a=r[s][1].length,r[s][1].push(n)),o.pipe(_e(l=>l[a]))}_decorateStorageCall(n,r){const i=De(this.__internal__instanceId,(...s)=>{const a=Hm(this.__internal__registry,n,s);return this.hasSubscriptions?this._queueStorage(a,this.__internal__storageSubQ):this._rpcCore.state.getStorage(a)});return r(i,{methodName:n.method,overrideNoSub:(...s)=>this._queueStorage(Hm(this.__internal__registry,n,s),this.__internal__storageGetQ)})}_retrieveMulti(n,r){if(!n.length)return Ce([]);const i=this.hasSubscriptions&&!r?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return n.length<=db?r?i(n,r):i(n):ut(Fg(n,db).map(s=>r?i(s,r):i(s))).pipe(_e(bf))}_retrieveMapKeys({iterKey:n,meta:r,method:i,section:s},a,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const l=n(...o).toHex(),u=new uA(l),c=a?h=>this._rpcCore.state.getKeysPaged(l,Fm,h,a):h=>this._rpcCore.state.getKeysPaged(l,Fm,h),d=h=>h.setMeta(r,s,i);return u.pipe(Ze(c),_e(h=>h.map(d)),vd(h=>nc(()=>{h.length===Fm?u.next(h[Fm-1].toHex()):u.complete()})),YZ(),_e(bf))}_retrieveMapKeysPaged({iterKey:n,meta:r,method:i,section:s},a,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const l=c=>c.setMeta(r,s,i);return(a?c=>this._rpcCore.state.getKeysPaged(c,o.pageSize,o.startKey||c,a):c=>this._rpcCore.state.getKeysPaged(c,o.pageSize,o.startKey||c))(n(...o.args).toHex()).pipe(_e(c=>c.map(l)))}_retrieveMapEntries(n,r,i){const s=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeys(n,r,i).pipe(Ze(a=>a.length?ut(Fg(a,db).map(s)).pipe(_e(o=>bf(o).map((l,u)=>[a[u],l]))):Ce([])))}_retrieveMapEntriesPaged(n,r,i){const s=r?a=>this._rpcCore.state.queryStorageAt(a,r):a=>this._rpcCore.state.queryStorageAt(a);return this._retrieveMapKeysPaged(n,r,i).pipe(Ze(a=>a.length?s(a).pipe(_e(o=>o.map((l,u)=>[a[u],l]))):Ce([])))}_decorateDeriveRx(n){var s,a,o,l;const r=(s=this._runtimeVersion)==null?void 0:s.specName.toString(),i=Y$(this.__internal__instanceId,this._rx,ne({},this._options.derives,(l=(o=(a=this._options.typesBundle)==null?void 0:a.spec)==null?void 0:o[r||""])==null?void 0:l.derives));return $5(n,i)}_decorateDerive(n){return $5(n,this._rx.derive)}}const TQ=1e4,pb=ir("api/init");function PQ(t){return t.toString()}class AQ extends kQ{constructor(n,r,i){super(n,r,i);P(this,"__internal__atLast",null);P(this,"__internal__healthTimer",null);P(this,"__internal__registries",[]);P(this,"__internal__updateSub",null);P(this,"__internal__waitingRegistries",{});this.registry.setKnownTypes(n),n.source?this.__internal__registries=n.source.__internal__registries:this.registerTypes(n.types),this._rpc=this._decorateRpc(this._rpcCore,this._decorateMethod),this._rx.rpc=this._decorateRpc(this._rpcCore,this._rxDecorateMethod),this.supportMulti&&(this._queryMulti=this._decorateMulti(this._decorateMethod),this._rx.queryMulti=this._decorateMulti(this._rxDecorateMethod)),this._rx.signer=n.signer,this._rpcCore.setRegistrySwap(s=>this.getBlockRegistry(s)),this._rpcCore.setResolveBlockHash(s=>br(this._rpcCore.chain.getBlockHash(s))),this.hasSubscriptions?(this._rpcCore.provider.on("disconnected",()=>this.__internal__onProviderDisconnect()),this._rpcCore.provider.on("error",s=>this.__internal__onProviderError(s)),this._rpcCore.provider.on("connected",()=>this.__internal__onProviderConnect())):this._options.noInitWarn||pb.warn("Api will be available in a limited mode since the provider does not support subscriptions"),this._rpcCore.provider.isConnected&&this.__internal__onProviderConnect().catch(Ki)}_initRegistry(n,r,i,s,a){n.clearCache(),n.setChainProperties(a||this.registry.getChainProperties()),n.setKnownTypes(this._options),n.register(IY(n,r,i.specName,i.specVersion)),n.setHasher(OY(n,r,i.specName)),n.knownTypes.typesBundle&&(n.knownTypes.typesAlias=LY(n,r,i.specName)),n.setMetadata(s,void 0,ne({},RY(n,r,i.specName),this._options.signedExtensions),this._options.noInitWarn)}_getDefaultRegistry(){return Gi(this.__internal__registries.find(({isDefault:n})=>n),"Initialization error, cannot find the default registry")}async at(n,r){const i=K(n),s=Ae(i),a=await this.getBlockRegistry(i,r);return(!this.__internal__atLast||this.__internal__atLast[0]!==s)&&(this.__internal__atLast=[s,this._createDecorated(a,!0,null,i).decoratedApi]),this.__internal__atLast[1]}async _createBlockRegistry(n,r,i){const s=new nb(n),a=new Om(s,await br(this._rpcCore.state.getMetadata.raw(r.parentHash))),o=this._runtimeChain;if(!o)throw new Error("Invalid initializion order, runtimeChain is not available");this._initRegistry(s,o,i,a);const l={counter:0,lastBlockHash:n,metadata:a,registry:s,runtimeVersion:i};return this.__internal__registries.push(l),l}_cacheBlockRegistryProgress(n,r){let i=this.__internal__waitingRegistries[n];return rt(i)&&(i=this.__internal__waitingRegistries[n]=new Promise((s,a)=>{r().then(o=>{delete this.__internal__waitingRegistries[n],s(o)}).catch(o=>{delete this.__internal__waitingRegistries[n],a(o)})})),i}_getBlockRegistryViaVersion(n,r){if(r){const i=this.__internal__registries.find(({runtimeVersion:{specName:s,specVersion:a}})=>s.eq(r.specName)&&a.eq(r.specVersion));if(i)return i.counter++,i.lastBlockHash=n,i}return null}async _getBlockRegistryViaHash(n){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");const r=this.registry.createType("HeaderPartial",this._genesisHash.eq(n)?{number:_n,parentHash:this._genesisHash}:await br(this._rpcCore.chain.getHeader.raw(n)));if(r.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");DY(this._genesisHash,r.number);const i=this.registry.createType("RuntimeVersionPartial",await br(this._rpcCore.state.getRuntimeVersion.raw(r.parentHash)));return this._getBlockRegistryViaVersion(n,i)||await this._cacheBlockRegistryProgress(i.toHex(),()=>this._createBlockRegistry(n,r,i))}async getBlockRegistry(n,r){return this.__internal__registries.find(({lastBlockHash:i})=>i&&Gn(i,n))||this._getBlockRegistryViaVersion(n,r)||await this._cacheBlockRegistryProgress(Ae(n),()=>this._getBlockRegistryViaHash(n))}async _loadMeta(){var n;return this._isReady?!0:(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=(n=this._options.source)!=null&&n._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}async _metaFromSource(n){this._extrinsicType=n.extrinsicVersion,this._runtimeChain=n.runtimeChain,this._runtimeVersion=n.runtimeVersion;const r=Object.keys(n.rpc),i=[];for(let s=0,a=r.length;s{var r;return(r=this._runtimeVersion)!=null&&r.specVersion.eq(n.specVersion)?Ce(!1):this._rpcCore.state.getMetadata().pipe(_e(i=>{pb.log(`Runtime version updated to spec=${n.specVersion.toString()}, tx=${n.transactionVersion.toString()}`),this._runtimeMetadata=i,this._runtimeVersion=n,this._rx.runtimeVersion=n;const s=this._getDefaultRegistry(),a=this._runtimeChain;if(!a)throw new Error("Invalid initializion order, runtimeChain is not available");return s.metadata=i,s.runtimeVersion=n,this._initRegistry(this.registry,a,n,i),this._injectMetadata(s,!0),!0}))})).subscribe())}async _metaFromChain(n){const[r,i,s,a,o,l]=await Promise.all([br(this._rpcCore.chain.getBlockHash(0)),br(this._rpcCore.state.getRuntimeVersion()),br(this._rpcCore.system.chain()),br(this._rpcCore.system.properties()),br(this._rpcCore.rpc.methods()),n?Promise.resolve(null):br(this._rpcCore.state.getMetadata())]);this._runtimeChain=s,this._runtimeVersion=i,this._rx.runtimeVersion=i;const u=`${r.toHex()||"0x"}-${i.specVersion.toString()}`,c=l||(n!=null&&n[u]?new Om(this.registry,n[u]):await br(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,s,i,c,a),this._filterRpc(o.methods.map(PQ),P5(this.registry,s,i.specName)),this._subscribeUpdates(),this.__internal__registries.length||this.__internal__registries.push({counter:0,isDefault:!0,metadata:c,registry:this.registry,runtimeVersion:i}),c.getUniqTypes(this._options.throwOnUnknown||!1),[r,c]}_initFromMeta(n){const r=this._runtimeVersion;if(!r)throw new Error("Invalid initializion order, runtimeVersion is not available");return this._extrinsicType=n.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=r,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}_subscribeHealth(){this._unsubscribeHealth(),this.__internal__healthTimer=this.hasSubscriptions?setInterval(()=>{br(this._rpcCore.system.health.raw()).catch(Ki)},TQ):null}_unsubscribeHealth(){this.__internal__healthTimer&&(clearInterval(this.__internal__healthTimer),this.__internal__healthTimer=null)}_unsubscribeUpdates(){this.__internal__updateSub&&(this.__internal__updateSub.unsubscribe(),this.__internal__updateSub=null)}_unsubscribe(){this._unsubscribeHealth(),this._unsubscribeUpdates()}async __internal__onProviderConnect(){this._isConnected.next(!0),this.emit("connected");try{const n=this._options.initWasm===!1?!0:await Nj(),r=await this._loadMeta();this._subscribeHealth(),r&&!this._isReady&&n&&(this._isReady=!0,this.emit("ready",this))}catch(n){const r=new Error(`FATAL: Unable to initialize the API: ${n.message}`);pb.error(r),this.emit("error",r)}}__internal__onProviderDisconnect(){this._isConnected.next(!1),this._unsubscribe(),this.emit("disconnected")}__internal__onProviderError(n){this.emit("error",n)}}function xr(t){if(t===void 0)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return t}class NQ extends AQ{get call(){return xr(this._call)}get consts(){return xr(this._consts)}get derive(){return xr(this._derive)}get errors(){return xr(this._errors)}get events(){return xr(this._events)}get extrinsicVersion(){return this._extrinsicType}get genesisHash(){return xr(this._genesisHash)}get isConnected(){return this._isConnected.getValue()}get libraryInfo(){return`${YP.name} v${YP.version}`}get query(){return xr(this._query)}get queryMulti(){return xr(this._queryMulti)}get rpc(){return xr(this._rpc)}get runtimeChain(){return xr(this._runtimeChain)}get runtimeMetadata(){return xr(this._runtimeMetadata)}get runtimeVersion(){return xr(this._runtimeVersion)}get rx(){return xr(this._rx)}get stats(){return this._rpcCore.stats}get type(){return this._type}get tx(){return xr(this._extrinsics)}findCall(e){return $P(this.registry,e)}findError(e){return QP(this.registry,e)}}class RQ extends NQ{constructor(e={},n,r){super(e,n,r)}connect(){return this._rpcCore.connect()}disconnect(){return this._unsubscribe(),this._rpcCore.disconnect()}setSigner(e){this._rx.signer=e}async sign(e,n,{signer:r}={}){if(Ye(e)){const i=r||this._rx.signer;if(!(i!=null&&i.signRaw))throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");return(await i.signRaw(ne({type:"bytes"},n,{address:e}))).signature}return Ae(e.sign(K(n.data)))}}class IQ{constructor(e,n){P(this,"__internal__allHasFired",!1);P(this,"__internal__callback");P(this,"__internal__fired",[]);P(this,"__internal__fns",[]);P(this,"__internal__isActive",!0);P(this,"__internal__results",[]);P(this,"__internal__subscriptions",[]);this.__internal__callback=n,this.__internal__subscriptions=e.map(async(r,i)=>{const[s,...a]=Array.isArray(r)?r:[r];return this.__internal__fired.push(!1),this.__internal__fns.push(s),s(...a,this._createCallback(i))})}_allHasFired(){return this.__internal__allHasFired||(this.__internal__allHasFired=this.__internal__fired.filter(e=>!e).length===0),this.__internal__allHasFired}_createCallback(e){return n=>{this.__internal__fired[e]=!0,this.__internal__results[e]=n,this._triggerUpdate()}}_triggerUpdate(){if(!(!this.__internal__isActive||!Se(this.__internal__callback)||!this._allHasFired()))try{Promise.resolve(this.__internal__callback(this.__internal__results)).catch(Ki)}catch{}}unsubscribe(){this.__internal__isActive&&(this.__internal__isActive=!1,this.__internal__subscriptions.map(async e=>{try{const n=await e;Se(n)&&n()}catch{}}))}}function mb(t,e){let n=!1;return{reject:r=>(n||(n=!0,e(r)),hA),resolve:r=>{n||(n=!0,t(r))}}}function OQ(t,e){const n=t.slice(),r=t.length&&Se(t[t.length-1])?n.pop():void 0;if(e&&!Se(r))throw new Error("Expected a callback to be passed with subscriptions");return[n,r]}function MQ(t,e){return new Promise((n,r)=>{const i=mb(n,r),s=t(...e).pipe(Do(a=>i.reject(a))).subscribe(a=>{i.resolve(a),nc(()=>s.unsubscribe())})})}function LQ(t,e,n){return new Promise((r,i)=>{const s=mb(r,i),a=t(...e).pipe(Do(o=>s.reject(o)),vd(()=>s.resolve(()=>a.unsubscribe()))).subscribe(o=>{nc(()=>n(o))})})}function lN(t,e){const n=!!(e!=null&&e.methodName&&e.methodName.includes("subscribe"));return function(...r){const[i,s]=OQ(r,n);return s?LQ(t,i,s):MQ((e==null?void 0:e.overrideNoSub)||t,i)}}class Id extends RQ{constructor(n){super(n,"promise",lN);P(this,"__internal__isReadyPromise");P(this,"__internal__isReadyOrErrorPromise");this.__internal__isReadyPromise=new Promise(r=>{super.once("ready",()=>r(this))}),this.__internal__isReadyOrErrorPromise=new Promise((r,i)=>{const s=mb(r,i);super.once("ready",()=>s.resolve(this)),super.once("error",a=>s.reject(a))})}static create(n){const r=new Id(n);return n&&n.throwOnConnect?r.isReadyOrError:(r.isReadyOrError.catch(Ki),r.isReady)}get isReady(){return this.__internal__isReadyPromise}get isReadyOrError(){return this.__internal__isReadyOrErrorPromise}clone(){return new Id(ne({},this._options,{source:this}))}async combineLatest(n,r){const i=new IQ(n,r);return()=>{i.unsubscribe()}}}const mu=new Uint8Array([161,35,3,33,0]),jm=new Uint8Array([48,83,2,1,1,48,5,6,3,43,101,112,4,34,4,32]),DQ=32,uN=64,UQ=32,Od=jm.length;function VQ(t,e,n){const r=Array.isArray(n)||n===void 0?n:[n],i=Pq(e,t,r),s=i.subarray(0,jm.length);if(!Gn(s,jm))throw new Error("Invalid Pkcs8 header found in body");let a=i.subarray(Od,Od+uN),o=Od+uN,l=i.subarray(o,o+mu.length);if(!Gn(l,mu)&&(o=Od+UQ,a=i.subarray(Od,o),l=i.subarray(o,o+mu.length),!Gn(l,mu)))throw new Error("Invalid Pkcs8 divider found in body");const u=o+mu.length;return{publicKey:i.subarray(u,u+DQ),secretKey:a}}function BQ({publicKey:t,secretKey:e},n){if(!e)throw new Error("Expected a valid secretKey to be passed to encode");const r=ot(jm,e,mu,t);if(!n)return r;const{params:i,password:s,salt:a}=VP(n),{encrypted:o,nonce:l}=_q(r,s.subarray(0,32));return ot(Eq(a,i),l,o)}function HQ(t,{address:e,meta:n},r,i){return ne(Aq(r,["pkcs8",t],i),{address:e,meta:n})}const FQ=new Uint8Array,jQ={ecdsa:ru,ed25519:z1,ethereum:ru,sr25519:uP},cN={ecdsa:new Uint8Array([2]),ed25519:new Uint8Array([0]),ethereum:new Uint8Array([2]),sr25519:new Uint8Array([1])},dN={ecdsa:(t,e)=>bP(t,e,"blake2"),ed25519:yW,ethereum:(t,e)=>bP(t,e,"keccak"),sr25519:EW},zm={ecdsa:t=>t.length>32?kr(t):t,ed25519:t=>t,ethereum:t=>t.length===20?t:gd(X1(t)),sr25519:t=>t};function Md(t){return!t||Kg(t)}function fN(t,e,n){return kr(ot(e||"",n||"",t))}function gu({toSS58:t,type:e},{publicKey:n,secretKey:r},i={},s=null,a){const o=(c,d)=>{const h=VQ(c,d||s,a);if(h.secretKey.length===64)n=h.publicKey,r=h.secretKey;else{const m=jQ[e](h.secretKey);n=m.publicKey,r=m.secretKey}},l=c=>(Md(r)&&s&&o(c,s),s=BQ({publicKey:n,secretKey:r},c),a=void 0,s),u=()=>{const c=zm[e](n);return e==="ethereum"?Y1(c):t(c)};return{get address(){return u()},get addressRaw(){const c=zm[e](n);return e==="ethereum"?c.slice(-20):c},get isLocked(){return Md(r)},get meta(){return i},get publicKey(){return n},get type(){return e},decodePkcs8:o,derive:(c,d)=>{if(e==="ethereum")throw new Error("Unable to derive on this keypair");if(Md(r))throw new Error("Cannot derive on a locked keypair");const{path:h}=CT(c),m=lP({publicKey:n,secretKey:r},h,e);return gu({toSS58:t,type:e},m,d,null)},encodePkcs8:c=>l(c),lock:()=>{r=new Uint8Array},setMeta:c=>{i=ne({},i,c)},sign:(c,d={})=>{if(Md(r))throw new Error("Cannot sign with a locked key pair");return ot(d.withType?cN[e]:FQ,dN[e](K(c),{publicKey:n,secretKey:r}))},toJson:c=>{const d=["ecdsa","ethereum"].includes(e)?n.length===20?Ae(n):Ae(_P(n)):u();return HQ(e,{address:d,meta:i},l(c),!!c)},unlock:c=>o(c),verify:(c,d,h)=>WP(c,d,zm[e](K(h))).isValid,vrfSign:(c,d,h)=>{if(Md(r))throw new Error("Cannot sign with a locked key pair");if(e==="sr25519")return CW(c,{secretKey:r},d,h);const m=dN[e](K(c),{publicKey:n,secretKey:r});return ot(fN(m,d,h),m)},vrfVerify:(c,d,h,m,y)=>e==="sr25519"?kW(c,d,n,m,y):WP(c,ot(cN[e],d.subarray(32)),zm[e](K(h))).isValid&&Gn(d.subarray(0,32),fN(d.subarray(32),m,y))}}const zQ="bottom drive obey lake curtain smoke basket hold race lonely fit walk";class WQ{constructor(){P(this,"__internal__map",{})}add(e){return this.__internal__map[_r(e.address).toString()]=e,e}all(){return Object.values(this.__internal__map)}get(e){const n=this.__internal__map[_r(e).toString()];if(!n)throw new Error(`Unable to retrieve keypair '${he(e)||Oe(e)?Ae(K(e)):e}'`);return n}remove(e){delete this.__internal__map[_r(e).toString()]}}const gb={ecdsa:t=>ru(t),ed25519:t=>z1(t),ethereum:t=>ru(t),sr25519:t=>uP(t)};function qQ({publicKey:t}){return t}class Wm{constructor(e={}){P(this,"__internal__pairs");P(this,"__internal__type");P(this,"__internal__ss58");P(this,"decodeAddress",_r);P(this,"encodeAddress",(e,n)=>this.type==="ethereum"?Y1(e):Qp(e,n??this.__internal__ss58));if(e.type=e.type||"ed25519",!["ecdsa","ethereum","ed25519","sr25519"].includes(e.type||"undefined"))throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${e.type||"unknown"}`);this.__internal__pairs=new WQ,this.__internal__ss58=e.ss58Format,this.__internal__type=e.type}get pairs(){return this.getPairs()}get publicKeys(){return this.getPublicKeys()}get type(){return this.__internal__type}addPair(e){return this.__internal__pairs.add(e)}addFromAddress(e,n={},r=null,i=this.type,s,a){const o=this.decodeAddress(e,s);return this.addPair(gu({toSS58:this.encodeAddress,type:i},{publicKey:o,secretKey:new Uint8Array},n,r,a))}addFromJson(e,n){return this.addPair(this.createFromJson(e,n))}addFromMnemonic(e,n={},r=this.type){return this.addFromUri(e,n,r)}addFromPair(e,n={},r=this.type){return this.addPair(this.createFromPair(e,n,r))}addFromSeed(e,n={},r=this.type){return this.addPair(gu({toSS58:this.encodeAddress,type:r},gb[r](e),n,null))}addFromUri(e,n={},r=this.type){return this.addPair(this.createFromUri(e,n,r))}createFromJson({address:e,encoded:n,encoding:{content:r,type:i,version:s},meta:a},o){if(s==="3"&&r[0]!=="pkcs8")throw new Error(`Unable to decode non-pkcs8 type, [${r.join(",")}] found}`);const l=s==="0"||!Array.isArray(r)?this.type:r[1],u=Array.isArray(i)?i:[i];if(!["ed25519","sr25519","ecdsa","ethereum"].includes(l))throw new Error(`Unknown crypto type ${l}`);const c=Oe(e)?kn(e):this.decodeAddress(e,o),d=Oe(n)?kn(n):UW(n);return gu({toSS58:this.encodeAddress,type:l},{publicKey:c,secretKey:new Uint8Array},a,d,u)}createFromPair(e,n={},r=this.type){return gu({toSS58:this.encodeAddress,type:r},e,n,null)}createFromUri(e,n={},r=this.type){const i=e.startsWith("//")?`${zQ}${e}`:e,{derivePath:s,password:a,path:o,phrase:l}=tz(i);let u;const c=Oe(l,256);if(c)u=kn(l);else{const h=l.split(" ");if([12,15,18,21,24].includes(h.length))u=r==="ethereum"?aq(l,"",!1,64):oq(l,a);else{if(l.length>32)throw new Error("specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes");u=Nt(l.padEnd(32))}}const d=r==="ethereum"?c?gb[r](u):$W(u,s.substring(1)):lP(gb[r](u),o,r);return gu({toSS58:this.encodeAddress,type:r},d,n,null)}getPair(e){return this.__internal__pairs.get(e)}getPairs(){return this.__internal__pairs.all()}getPublicKeys(){return this.__internal__pairs.all().map(qQ)}removePair(e){this.__internal__pairs.remove(e)}setSS58Format(e){this.__internal__ss58=e}toJson(e,n){return this.__internal__pairs.get(e).toJson(n)}}class yb extends Error{constructor(e,n,r){super(`HTTP error! status: ${e} (${n}) for URL: ${r}`),this.status=e,this.statusText=n,this.url=r,this.name="HttpError"}}class ZQ{constructor(e,n=""){this.baseURL=e+n}async fetch(e,n){try{const r=await fetch(this.baseURL+e,n);if(!r.ok)throw new yb(r.status,r.statusText,r.url);return this.responseHandler(r)}catch(r){return this.errorHandler(r)}}async post(e,n,r){const i={"Content-Type":"application/json",...(r==null?void 0:r.headers)||{}};try{const s=await fetch(this.baseURL+e,{method:"POST",body:JSON.stringify(n),headers:i,...r});if(!s.ok)throw new yb(s.status,s.statusText,s.url);return this.responseHandler(s)}catch(s){return this.errorHandler(s)}}async responseHandler(e){try{return await e.json()}catch(n){throw n}}errorHandler(e){return e instanceof yb,Promise.reject(e)}}const GQ=ZQ;class XQ extends GQ{constructor(e,n,r){n.startsWith("http")||(n=`https://${n}`),super(n),this.network=e,this.account=r}getCaptchaChallenge(e,n){const{provider:r}=n,{blockNumber:i}=n,s=this.account,a=`${ho.GetCaptchaChallenge}/${r.datasetId}/${e}/${s}/${i.toString().replace(/,/g,"")}`;return this.fetch(a)}submitCaptchaSolution(e,n,r,i,s){const a=rD.parse({captchas:e,requestHash:n,user:r,dapp:this.account,salt:i,signature:s});return this.post(ho.SubmitCaptchaSolution,a)}verifyDappUser(e,n,r){const i={user:e};return n&&(i.commitmentId=n),r&&(i.maxVerifiedTime=r),this.post(ho.VerifyCaptchaSolution,i)}getProviderStatus(){return this.fetch(ho.GetProviderStatus)}getProviderDetails(){return this.fetch(ho.GetProviderDetails)}}function KQ(t,e,n,r,i){if(t)r=t.pairType,i=t.ss58Format;else if(!r||!i)throw new Tn("GENERAL.NO_PAIR_TYPE_OR_SS58_FORMAT");const s=new Wm({type:r,ss58Format:i});if(!e&&n)return s.addFromAddress(n);if(e){if(t_(e))return s.addFromUri(e);if(Oe(e))return s.addFromSeed(kn(e));if(e.startsWith("//"))return s.addFromUri(e);try{const a=JSON.parse(e),{encoding:{content:o}}=a;return new Wm({type:o[1],ss58Format:i}).addFromJson(a)}catch{throw new Tn("GENERAL.NO_MNEMONIC_OR_SEED")}}else throw new Tn("GENERAL.NO_MNEMONIC_OR_SEED")}function JQ(t,e){return KQ(void 0,void 0,e||YQ(t).toHex(),py.parse("sr25519"),t.registry.chainSS58)}function YQ(t){return t.registry.createType("AccountId",new Uint8Array(new Array(32).fill(0)))}var D={},vb={},dr={},Xs={},$Q=it&&it.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.ReturnNumber=Xs.ResultBuilder=Xs.Result=void 0;var hN=$Q(fg),_b=function(){function t(e,n){this.ok=e,this.err=n}return t.prototype.unwrap=function(){if(this.ok)return this.ok;throw this.err},t.prototype.unwrapRecursively=function(){if(this.ok)return this.ok instanceof t?this.ok.unwrapRecursively():this.ok;if(this.err)throw this.err;return this.ok},t.prototype.unwrapErr=function(){if(this.err)return this.err},t}();Xs.Result=_b;var QQ=function(){function t(){}return t.Ok=function(e){return new _b(e,void 0)},t.Err=function(e){return new _b(void 0,e)},t}();Xs.ResultBuilder=QQ;var eee=function(){function t(e){typeof e=="string"?this.rawNumber=new hN.default(e.substring(2),16):this.rawNumber=new hN.default(e)}return t.prototype.toString=function(){return this.rawNumber.toString()},t.prototype.toHuman=function(){return this.toString()},t.prototype.toNumber=function(){return this.rawNumber.toNumber()},t.ToBN=function(e){return new t(e).rawNumber},t}();Xs.ReturnNumber=eee;const pN=$m(d9),mN=new Uint8Array;function qm(t,e){return e.meta=t,e}function tee(t,e){return qm(t,(n,...r)=>e(n,r))}function nee(t){return(e,n,...r)=>t(e,n,r)}function ree(t=fd()){return t instanceof wd?t:t!=null&&t.length?Kr(K(t)):mN}function Ks(t){const[e,n]=gN(t)?[t.refTime.toBn(),t.proofSize.toBn()]:[bn(t),void 0];return{v1Weight:e,v2Weight:{proofSize:n,refTime:e}}}function gN(t){return!!t.proofSize}const iee=$m(Object.freeze(Object.defineProperty({__proto__:null,EMPTY_SALT:mN,convertWeight:Ks,createBluePrintTx:tee,createBluePrintWithId:nee,encodeSalt:ree,isWeightV2:gN,withMeta:qm},Symbol.toStringTag,{value:"Module"})));var Zm=it&&it.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((r=r.apply(t,e||[])).next())})},Gm=it&&it.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]"u"||typeof e>"u"||t===null||e==null?t:e.isResult?new yN.Result(yu(t.ok,e.body.ok),yu(t.err,e.body.err)):e.name==="ReturnNumber"?new yN.ReturnNumber(t):typeof t!="object"||typeof e!="object"||e.isPrimitive?t:e.name==="Array"?(Object.entries(t).forEach(function(n){var r=n[0],i=n[1];t[r]=yu(i,e.body[0])}),t):(Object.entries(t).forEach(function(n){t[n[0]]=yu(n[1],e.body[n[0]])}),t)}dr.handleReturnType=yu;function uee(t,e){return typeof t>"u"||Object.entries(t).forEach(function(n){t[n[0]]=yu(n[1],e.body[n[0]])}),t}dr.handleEventReturn=uee;var Qa={},wN=it&&it.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((r=r.apply(t,e||[])).next())})},xN=it&&it.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]}"],"label":"get_all_provider_accounts","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":62},"selector":"0x5052021f"},{"args":[{"label":"len","type":{"displayName":["u128"],"type":0}},{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"dapp_contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a random number from 0 to `len` - 1 inclusive. The user account is added to the seed for additional random entropy."],"label":"get_random_number","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x2306aecd"},{"args":[],"default":false,"docs":[" Terminate this contract and return any/all funds in this contract to the destination"],"label":"terminate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x476d839f"},{"args":[{"label":"amount","type":{"displayName":["Balance"],"type":0}}],"default":false,"docs":[" Withdraw some funds from the contract to the specified destination"],"label":"withdraw","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x410fcc9d"},{"args":[{"label":"code_hash","type":{"displayName":[],"type":5}}],"default":false,"docs":[" Set the code hash for this contract"],"label":"set_code_hash","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x9e5c5758"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x31f906a7","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x31f906a7","ty":1}},"name":"fee"},{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"Payee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"}}}},"name":"payee"},{"layout":{"leaf":{"key":"0x31f906a7","ty":2}},"name":"url"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id_content"}],"name":"Provider"}},"root_key":"0x31f906a7"}},"name":"providers"},{"layout":{"root":{"layout":{"leaf":{"key":"0x25c2603c","ty":6}},"root_key":"0x25c2603c"}},"name":"provider_accounts"},{"layout":{"root":{"layout":{"leaf":{"key":"0xd1b08cc7","ty":7}},"root_key":"0xd1b08cc7"}},"name":"urls"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x14493d1d","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x14493d1d","ty":7}},"name":"owner"},{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"DappPayee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"},"2":{"fields":[],"name":"Any"}}}},"name":"payee"}],"name":"Dapp"}},"root_key":"0x14493d1d"}},"name":"dapps"},{"layout":{"root":{"layout":{"leaf":{"key":"0x455ca62f","ty":6}},"root_key":"0x455ca62f"}},"name":"dapp_contracts"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"id"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"user_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"dataset_id"},{"layout":{"enum":{"dispatchKey":"0x81a766df","name":"CaptchaStatus","variants":{"0":{"fields":[],"name":"Pending"},"1":{"fields":[],"name":"Approved"},"2":{"fields":[],"name":"Disapproved"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"dapp_contract"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"provider_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"requested_at"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"completed_at"},{"layout":{"array":{"layout":{"leaf":{"key":"0x81a766df","ty":3}},"len":64,"offset":"0x81a766df"}},"name":"user_signature"}],"name":"Commit"}},"root_key":"0x81a766df"}},"name":"commits"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x5a3119c3","ty":9}},"name":"history"}],"name":"User"}},"root_key":"0x5a3119c3"}},"name":"users"},{"layout":{"root":{"layout":{"leaf":{"key":"0x43f9649b","ty":6}},"root_key":"0x43f9649b"}},"name":"user_accounts"}],"name":"Captcha"}},"root_key":"0xabcdef01"}},"types":[{"id":0,"type":{"def":{"primitive":"u128"}}},{"id":1,"type":{"def":{"primitive":"u32"}}},{"id":2,"type":{"def":{"sequence":{"type":3}}}},{"id":3,"type":{"def":{"primitive":"u8"}}},{"id":4,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":5,"type":{"def":{"array":{"len":32,"type":3}}}},{"id":6,"type":{"def":{"composite":{"fields":[{"type":8}]}},"params":[{"name":"T","type":7}],"path":["BTreeSet"]}},{"id":7,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":8,"type":{"def":{"sequence":{"type":7}}}},{"id":9,"type":{"def":{"sequence":{"type":4}}}},{"id":10,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":14}],"path":["Result"]}},{"id":11,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":13}],"path":["Result"]}},{"id":12,"type":{"def":{"tuple":[]}}},{"id":13,"type":{"def":{"variant":{"variants":[{"index":0,"name":"NotAuthorised"},{"index":1,"name":"TransferFailed"},{"index":2,"name":"SetCodeHashFailed"},{"index":3,"name":"InvalidDestination"},{"index":4,"name":"UnknownMessage"},{"index":5,"name":"ProviderAccountExists"},{"index":6,"name":"ProviderExists"},{"index":7,"name":"ProviderAccountDoesNotExist"},{"index":8,"name":"ProviderDoesNotExist"},{"index":9,"name":"ProviderInsufficientFunds"},{"index":10,"name":"ProviderInactive"},{"index":11,"name":"ProviderUrlUsed"},{"index":12,"name":"DappExists"},{"index":13,"name":"DappDoesNotExist"},{"index":14,"name":"DappInactive"},{"index":15,"name":"DappInsufficientFunds"},{"index":16,"name":"CaptchaDataDoesNotExist"},{"index":17,"name":"CommitDoesNotExist"},{"index":18,"name":"DappUserDoesNotExist"},{"index":19,"name":"NoActiveProviders"},{"index":20,"name":"DatasetIdSolutionsSame"},{"index":21,"name":"CodeNotFound"},{"index":22,"name":"Unknown"},{"index":23,"name":"InvalidContract"},{"index":24,"name":"InvalidPayee"},{"index":25,"name":"InvalidCaptchaStatus"},{"index":26,"name":"NoCorrectCaptcha"},{"index":27,"name":"NotEnoughActiveProviders"},{"index":28,"name":"ProviderFeeTooHigh"},{"index":29,"name":"CommitAlreadyExists"},{"index":30,"name":"NotAuthor"}]}},"path":["common","common","Error"]}},{"id":14,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":15,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":14}],"path":["Result"]}},{"id":16,"type":{"def":{"variant":{"variants":[{"fields":[{"type":17}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":17},{"name":"E","type":14}],"path":["Result"]}},{"id":17,"type":{"def":{"array":{"len":20,"type":3}}}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":7}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":7},{"name":"E","type":14}],"path":["Result"]}},{"id":19,"type":{"def":{"variant":{"variants":[{"fields":[{"type":20}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":20},{"name":"E","type":14}],"path":["Result"]}},{"id":20,"type":{"def":{"sequence":{"type":21}}}},{"id":21,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"}]}},"path":["captcha","captcha","Payee"]}},{"id":22,"type":{"def":{"variant":{"variants":[{"fields":[{"type":23}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":23},{"name":"E","type":14}],"path":["Result"]}},{"id":23,"type":{"def":{"sequence":{"type":24}}}},{"id":24,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"},{"index":2,"name":"Any"}]}},"path":["captcha","captcha","DappPayee"]}},{"id":25,"type":{"def":{"variant":{"variants":[{"fields":[{"type":26}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":26},{"name":"E","type":14}],"path":["Result"]}},{"id":26,"type":{"def":{"sequence":{"type":27}}}},{"id":27,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Active"},{"index":1,"name":"Inactive"}]}},"path":["captcha","captcha","GovernanceStatus"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":14}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":14}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":31}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":31},{"name":"E","type":14}],"path":["Result"]}},{"id":31,"type":{"def":{"primitive":"u16"}}},{"id":32,"type":{"def":{"variant":{"variants":[{"fields":[{"type":33}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":33},{"name":"E","type":14}],"path":["Result"]}},{"id":33,"type":{"def":{"variant":{"variants":[{"fields":[{"type":34}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":34},{"name":"E","type":13}],"path":["Result"]}},{"id":34,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"fee","type":1,"typeName":"u32"},{"name":"payee","type":21,"typeName":"Payee"},{"name":"url","type":2,"typeName":"Vec"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"dataset_id_content","type":4,"typeName":"Hash"}]}},"path":["captcha","captcha","Provider"]}},{"id":35,"type":{"def":{"variant":{"variants":[{"fields":[{"type":36}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":36},{"name":"E","type":14}],"path":["Result"]}},{"id":36,"type":{"def":{"variant":{"variants":[{"fields":[{"type":37}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":37},{"name":"E","type":13}],"path":["Result"]}},{"id":37,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"owner","type":7,"typeName":"AccountId"},{"name":"payee","type":24,"typeName":"DappPayee"}]}},"path":["captcha","captcha","Dapp"]}},{"id":38,"type":{"def":{"variant":{"variants":[{"fields":[{"type":39}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":39},{"name":"E","type":14}],"path":["Result"]}},{"id":39,"type":{"def":{"variant":{"variants":[{"fields":[{"type":40}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":40},{"name":"E","type":13}],"path":["Result"]}},{"id":40,"type":{"def":{"composite":{"fields":[{"name":"correct","type":31,"typeName":"u16"},{"name":"incorrect","type":31,"typeName":"u16"},{"name":"score","type":3,"typeName":"u8"}]}},"path":["captcha","captcha","UserHistorySummary"]}},{"id":41,"type":{"def":{"composite":{"fields":[{"name":"id","type":4,"typeName":"Hash"},{"name":"user_account","type":7,"typeName":"AccountId"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"status","type":42,"typeName":"CaptchaStatus"},{"name":"dapp_contract","type":7,"typeName":"AccountId"},{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"requested_at","type":1,"typeName":"BlockNumber"},{"name":"completed_at","type":1,"typeName":"BlockNumber"},{"name":"user_signature","type":43,"typeName":"[u8; 64]"}]}},"path":["captcha","captcha","Commit"]}},{"id":42,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Pending"},{"index":1,"name":"Approved"},{"index":2,"name":"Disapproved"}]}},"path":["captcha","captcha","CaptchaStatus"]}},{"id":43,"type":{"def":{"array":{"len":64,"type":3}}}},{"id":44,"type":{"def":{"sequence":{"type":41}}}},{"id":45,"type":{"def":{"variant":{"variants":[{"fields":[{"type":46}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":46},{"name":"E","type":14}],"path":["Result"]}},{"id":46,"type":{"def":{"variant":{"variants":[{"fields":[{"type":47}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":47},{"name":"E","type":13}],"path":["Result"]}},{"id":47,"type":{"def":{"primitive":"bool"}}},{"id":48,"type":{"def":{"variant":{"variants":[{"fields":[{"type":49}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":49},{"name":"E","type":14}],"path":["Result"]}},{"id":49,"type":{"def":{"variant":{"variants":[{"fields":[{"type":50}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":50},{"name":"E","type":13}],"path":["Result"]}},{"id":50,"type":{"def":{"composite":{"fields":[{"name":"before","type":1,"typeName":"BlockNumber"},{"name":"dapp_contract","type":7,"typeName":"AccountId"}]}},"path":["captcha","captcha","LastCorrectCaptcha"]}},{"id":51,"type":{"def":{"variant":{"variants":[{"fields":[{"type":52}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":52},{"name":"E","type":14}],"path":["Result"]}},{"id":52,"type":{"def":{"variant":{"variants":[{"fields":[{"type":53}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":53},{"name":"E","type":13}],"path":["Result"]}},{"id":53,"type":{"def":{"composite":{"fields":[{"name":"history","type":9,"typeName":"Vec"}]}},"path":["captcha","captcha","User"]}},{"id":54,"type":{"def":{"variant":{"variants":[{"fields":[{"type":55}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":55},{"name":"E","type":14}],"path":["Result"]}},{"id":55,"type":{"def":{"variant":{"variants":[{"fields":[{"type":41}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":41},{"name":"E","type":13}],"path":["Result"]}},{"id":56,"type":{"def":{"variant":{"variants":[{"fields":[{"type":57}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":57},{"name":"E","type":14}],"path":["Result"]}},{"id":57,"type":{"def":{"variant":{"variants":[{"fields":[{"type":58}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":58},{"name":"E","type":13}],"path":["Result"]}},{"id":58,"type":{"def":{"sequence":{"type":34}}}},{"id":59,"type":{"def":{"variant":{"variants":[{"fields":[{"type":60}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":60},{"name":"E","type":14}],"path":["Result"]}},{"id":60,"type":{"def":{"variant":{"variants":[{"fields":[{"type":61}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":61},{"name":"E","type":13}],"path":["Result"]}},{"id":61,"type":{"def":{"composite":{"fields":[{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"provider","type":34,"typeName":"Provider"},{"name":"block_number","type":1,"typeName":"BlockNumber"}]}},"path":["captcha","captcha","RandomProvider"]}},{"id":62,"type":{"def":{"variant":{"variants":[{"fields":[{"type":63}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":63},{"name":"E","type":14}],"path":["Result"]}},{"id":63,"type":{"def":{"variant":{"variants":[{"fields":[{"type":8}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":8},{"name":"E","type":13}],"path":["Result"]}},{"id":64,"type":{"def":{"primitive":"u64"}}},{"id":65,"type":{"def":{"variant":{}},"path":["ink_env","types","NoChainExtension"]}}],"version":"4"}';function kN(t){return t.map(e=>ne({},e,{name:Array.isArray(e.name)?e.name:[e.name]}))}function pee(t,e){if(!e.metadataVersion.length)throw new Error("Invalid format for V0 (detected) contract metadata");return t.createType("ContractMetadataV1",ne({},e,{spec:ne({},e.spec,{constructors:kN(e.spec.constructors),messages:kN(e.spec.messages)}),types:tK(t,e.types)}))}const mee={ContractConstructorSpec:"ContractMessageParamSpecV2",ContractEventSpec:"ContractEventParamSpecV2",ContractMessageSpec:"ContractMessageParamSpecV2"};function TN(t){return ne({},t,{label:Array.isArray(t.name)?t.name.join("::"):t.name})}function xb(t,e,n){return n.map(r=>t.createType(`${e}V2`,ne(TN(r),{args:r.args.map(i=>t.createType(mee[e],TN(i)))})))}function gee(t,e){return t.createType("ContractMetadataV2",ne({},e,{spec:ne({},e.spec,{constructors:xb(t,"ContractConstructorSpec",e.spec.constructors),events:xb(t,"ContractEventSpec",e.spec.events),messages:xb(t,"ContractMessageSpec",e.spec.messages)})}))}function yee(t,e){return t.createType("ContractMetadataV3",ne({},e,{spec:ne({},e.spec,{constructors:e.spec.constructors.map(n=>t.createType("ContractConstructorSpecV3",ne({},n,{payable:!0})))})}))}function vee(t,e){return t.createType("ContractMetadataV4",ne({},e,{spec:ne({},e.spec,{constructors:e.spec.constructors.map(n=>t.createType("ContractConstructorSpecV4",ne({},n))),messages:e.spec.messages.map(n=>t.createType("ContractMessageSpecV3",ne({},n)))})}))}const PN=["V4","V3","V2","V1"];function Xm(t,e){return(n,r)=>t(n,e(n,r))}function AN(t,e){return e}const NN=Xm(AN,vee),RN=Xm(NN,yee),IN=Xm(RN,gee),_ee=[["V4",AN],["V3",NN],["V2",RN],["V1",IN],["V0",Xm(IN,pee)]],bee=ir("Abi"),wee=["AccountId","AccountIndex","Address","Balance"];function ON(t,e){const n=Be(e)?t[e]:Ye(e)?t.find(({identifier:r})=>[r,je(r)].includes(e.toString())):e;return Gi(n,()=>`Attempted to call an invalid contract interface, ${Le(e)}`)}function xee(t,e){const n=PN.find(a=>qn(e[a])),r=e.version;if(!n&&r&&!PN.find(a=>a===`V${r}`))throw new Error(`Unable to handle version ${r}`);const i=t.createType("ContractMetadata",n?{[n]:e[n]}:r?{[`V${r}`]:e}:{V0:e}),s=_ee.find(([a])=>i[`is${a}`]);if(!s)throw new Error(`Unable to convert ABI with version ${i.type} to latest`);return s[1](t,i[`as${s[0]}`])}function See(t,e){const n=new nb,r=n.createType("ContractProjectInfo",t),i=xee(n,t),s=n.createType("PortableRegistry",{types:i.types},!0);return n.setLookup(s),e&&n.setChainProperties(e),s.types.forEach(({id:a})=>s.getTypeDef(a)),[t,n,i,r]}function Eee(t){return!!t&&t instanceof Map&&!rt(t.type)&&!rt(t.displayName)}function Cee(t){return!!t&&t instanceof qs}class Sb{constructor(e,n){P(this,"events");P(this,"constructors");P(this,"info");P(this,"json");P(this,"messages");P(this,"metadata");P(this,"registry");P(this,"environment",new Map);P(this,"__internal__createArgs",(e,n)=>e.map(({label:r,type:i},s)=>{try{if(!qn(i))throw new Error("Invalid type definition found");const a=i.displayName.length?i.displayName[i.displayName.length-1].toString():void 0,o=je(r);if(a&&wee.includes(a))return{name:o,type:{info:H.Plain,type:a}};const l=this.registry.lookup.getTypeDef(i.type);return{name:o,type:a&&!l.type.startsWith(a)?{displayName:a,...l}:l}}catch(a){throw bee.error(`Error expanding argument ${s} in ${Le(n)}`),a}}));P(this,"__internal__createEvent",(e,n)=>{const r=this.__internal__createArgs(e.args,e),i={args:r,docs:e.docs.map(s=>s.toString()),fromU8a:s=>({args:this.__internal__decodeArgs(r,s),event:i}),identifier:e.label.toString(),index:n};return i});P(this,"__internal__createMessage",(e,n,r={})=>{const i=this.__internal__createArgs(e.args,e),s=e.label.toString(),a={...r,args:i,docs:e.docs.map(o=>o.toString()),fromU8a:o=>({args:this.__internal__decodeArgs(i,o),message:a}),identifier:s,index:n,isDefault:e.default.isTrue,method:je(s),path:s.split("::").map(o=>je(o)),selector:e.selector,toU8a:o=>this.__internal__encodeArgs(e,i,o)};return a});P(this,"__internal__decodeArgs",(e,n)=>{let r=0;return e.map(({type:{lookupName:i,type:s}})=>{const a=this.registry.createType(i||s,n.subarray(r));return r+=a.encodedLength,a})});P(this,"__internal__decodeMessage",(e,n,r)=>{const[,i]=nl(r),s=i.subarray(0,4),a=n.find(o=>o.selector.eq(s));if(!a)throw new Error(`Unable to find ${e} with selector ${Ae(s)}`);return a.fromU8a(i.subarray(4))});P(this,"__internal__encodeArgs",({label:e,selector:n},r,i)=>{if(i.length!==r.length)throw new Error(`Expected ${r.length} arguments to contract message '${e.toString()}', found ${i.length}`);return Kr(ot(this.registry.createType("ContractSelector",n).toU8a(),...r.map(({type:{lookupName:s,type:a}},o)=>this.registry.createType(s||a,i[o]).toU8a())))});[this.json,this.registry,this.metadata,this.info]=See(Ye(e)?JSON.parse(e):e,n),this.constructors=this.metadata.spec.constructors.map((r,i)=>this.__internal__createMessage(r,i,{isConstructor:!0,isDefault:r.default.isTrue,isPayable:r.payable.isTrue,returnType:r.returnType.isSome?this.registry.lookup.getTypeDef(r.returnType.unwrap().type):null})),this.events=this.metadata.spec.events.map((r,i)=>this.__internal__createEvent(r,i)),this.messages=this.metadata.spec.messages.map((r,i)=>this.__internal__createMessage(r,i,{isDefault:r.default.isTrue,isMutating:r.mutates.isTrue,isPayable:r.payable.isTrue,returnType:r.returnType.isSome?this.registry.lookup.getTypeDef(r.returnType.unwrap().type):null}));for(const[r,i]of this.metadata.spec.environment.entries())if(Cee(i)){if(i.isSome){const s=i.unwrap();if(rr(s))this.environment.set(r,s);else if(Eee(s))this.environment.set(r,this.registry.lookup.getTypeDef(s.type));else throw new Error(`Invalid environment definition for ${r}:: Expected either Number or ContractTypeSpec`)}}else throw new Error(`Expected Option<*> definition for ${r} in ContractEnvironment`)}decodeEvent(e){const n=e[0],r=this.events[n];if(!r)throw new Error(`Unable to find event with index ${n}`);return r.fromU8a(e.subarray(1))}decodeConstructor(e){return this.__internal__decodeMessage("message",this.constructors,e)}decodeMessage(e){return this.__internal__decodeMessage("message",this.messages,e)}findConstructor(e){return ON(this.constructors,e)}findMessage(e){return ON(this.messages,e)}}function kee(t,e,n){if(t.isInBlock||t.isFinalized){const r=t.filterRecords("contracts",e);if(r.length)return n(r)}}class Tee{constructor(e,n,r){P(this,"abi");P(this,"api");P(this,"_decorateMethod");P(this,"_isWeightV1");if(!e||!e.isConnected||!e.tx)throw new Error("Your API has not been initialized correctly and is not connected to a chain");if(!e.tx.contracts||!Se(e.tx.contracts.instantiateWithCode)||e.tx.contracts.instantiateWithCode.meta.args.length!==6)throw new Error("The runtime does not expose api.tx.contracts.instantiateWithCode with storageDepositLimit");if(!e.call.contractsApi||!Se(e.call.contractsApi.call))throw new Error("Your runtime does not expose the api.call.contractsApi.call runtime interfaces");this.abi=n instanceof Sb?n:new Sb(n,e.registry.getChainProperties()),this.api=e,this._decorateMethod=r,this._isWeightV1=!e.registry.createType("Weight").proofSize}get registry(){return this.api.registry}}const Pee=new te(5e12).isub(Ss),Aee=ir("Contract");function Nee(t,e){return qm(t,(n,r,...i)=>e(n,r,i))}function Ree(t,e){return qm(t,(n,...r)=>e(n,r))}class Iee extends Bm{constructor(n,r){super(n);P(this,"contractEvents");this.contractEvents=r}}let Oee=class extends Tee{constructor(n,r,i,s){super(n,r,s);P(this,"address");P(this,"__internal__query",{});P(this,"__internal__tx",{});P(this,"__internal__getGas",(n,r=!1)=>{const i=Ks(n);return i.v1Weight.gt(_n)?i:Ks(r?Pee:Ks(this.api.consts.system.blockWeights?this.api.consts.system.blockWeights.maxBlock:this.api.consts.system.maximumBlockWeight).v1Weight.muln(64).div(ey))});P(this,"__internal__exec",(n,{gasLimit:r=_n,storageDepositLimit:i=null,value:s=_n},a)=>this.api.tx.contracts.call(this.address,s,this._isWeightV1?Ks(r).v1Weight:Ks(r).v2Weight,i,this.abi.findMessage(n).toU8a(a)).withResultTransform(o=>new Iee(o,kee(o,["ContractEmitted","ContractExecution"],l=>l.map(({event:{data:[,u]}})=>{try{return this.abi.decodeEvent(u)}catch(c){return Aee.error(`Unable to decode contract event: ${c.message}`),null}}).filter(u=>!!u)))));P(this,"__internal__read",(n,{gasLimit:r=_n,storageDepositLimit:i=null,value:s=_n},a)=>{const o=this.abi.findMessage(n);return{send:this._decorateMethod(l=>this.api.rx.call.contractsApi.call(l,this.address,s,this._isWeightV1?this.__internal__getGas(r,!0).v1Weight:this.__internal__getGas(r,!0).v2Weight,i,o.toU8a(a)).pipe(_e(({debugMessage:u,gasConsumed:c,gasRequired:d,result:h,storageDeposit:m})=>({debugMessage:u,gasConsumed:c,gasRequired:d&&!Ks(d).v1Weight.isZero()?d:c,output:h.isOk&&o.returnType?this.abi.registry.createTypeUnsafe(o.returnType.lookupName||o.returnType.type,[h.asOk.data.toU8a(!0)],{isPedantic:!0}):null,result:h,storageDeposit:m}))))}});this.address=this.registry.createType("AccountId",i),this.abi.messages.forEach(a=>{rt(this.__internal__tx[a.method])&&(this.__internal__tx[a.method]=Ree(a,(o,l)=>this.__internal__exec(a,o,l))),rt(this.__internal__query[a.method])&&(this.__internal__query[a.method]=Nee(a,(o,l,u)=>this.__internal__read(a,l,u).send(o)))})}get query(){return this.__internal__query}get tx(){return this.__internal__tx}};class MN extends Oee{constructor(e,n,r){super(e,n,r,lN)}}class Mee{constructor(e,n){this.__nativeContract=e,this.__api=n}__subscribeOnEvent(e,n=()=>!0){return this.__api.query.system.events(r=>{r.forEach(i=>{const{event:s}=i;if(s.method=="ContractEmitted"){const[a,o]=i.event.data;if(a.toString()===this.__nativeContract.address.toString()){const{args:l,event:u}=this.__nativeContract.abi.decodeEvent(o);n(u.identifier.toString())&&e(l,u)}}})})}}function ue(t,e){return e[t]}function Lee(t,e){return e[t]}function ge(t,e,n){return t.filter(r=>{const{event:i}=r,[s,a]=r.event.data;return i.method=="ContractEmitted"&&s.toString()===e.address.toString()}).map(r=>{const[i,s]=r.event.data,{args:a,event:o}=e.abi.decodeEvent(s),l={};for(let u=0;uD.handleReturnType(n,ue(16,ce)))}getAdmin(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getAdmin",[],e,n=>D.handleReturnType(n,ue(18,ce)))}getPayees(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getPayees",[],e,n=>D.handleReturnType(n,ue(19,ce)))}getDappPayees(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDappPayees",[],e,n=>D.handleReturnType(n,ue(22,ce)))}getStatuses(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getStatuses",[],e,n=>D.handleReturnType(n,ue(25,ce)))}getProviderStakeThreshold(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getProviderStakeThreshold",[],e,n=>D.handleReturnType(n,ue(28,ce)))}getDappStakeThreshold(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDappStakeThreshold",[],e,n=>D.handleReturnType(n,ue(28,ce)))}getMaxProviderFee(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxProviderFee",[],e,n=>D.handleReturnType(n,ue(29,ce)))}getMinNumActiveProviders(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMinNumActiveProviders",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getBlockTime(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getBlockTime",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getMaxUserHistoryAgeSeconds(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryAgeSeconds",[],e,n=>D.handleReturnType(n,ue(29,ce)))}getMaxUserHistoryLen(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryLen",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getMaxUserHistoryAgeBlocks(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryAgeBlocks",[],e,n=>D.handleReturnType(n,ue(29,ce)))}providerRegister(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerRegister",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}providerUpdate(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerUpdate",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}providerDeactivate(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerDeactivate",n=>ge(n,this.__nativeContract,ye),[],e)}providerDeregister(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerDeregister",n=>ge(n,this.__nativeContract,ye),[],e)}getProvider(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getProvider",[e],n,r=>D.handleReturnType(r,ue(32,ce)))}providerFund(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerFund",n=>ge(n,this.__nativeContract,ye),[],e)}providerSetDataset(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerSetDataset",i=>ge(i,this.__nativeContract,ye),[e,n],r)}getDapp(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDapp",[e],n,r=>D.handleReturnType(r,ue(35,ce)))}dappRegister(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappRegister",i=>ge(i,this.__nativeContract,ye),[e,n],r)}dappUpdate(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappUpdate",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}dappFund(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappFund",r=>ge(r,this.__nativeContract,ye),[e],n)}dappDeregister(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappDeregister",r=>ge(r,this.__nativeContract,ye),[e],n)}dappDeactivate(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappDeactivate",r=>ge(r,this.__nativeContract,ye),[e],n)}getUserHistorySummary(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getUserHistorySummary",[e],n,r=>D.handleReturnType(r,ue(38,ce)))}providerCommit(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerCommit",r=>ge(r,this.__nativeContract,ye),[e],n)}providerCommitMany(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerCommitMany",r=>ge(r,this.__nativeContract,ye),[e],n)}dappOperatorIsHumanUser(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappOperatorIsHumanUser",[e,n],r,i=>D.handleReturnType(i,ue(45,ce)))}dappOperatorLastCorrectCaptcha(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappOperatorLastCorrectCaptcha",[e],n,r=>D.handleReturnType(r,ue(48,ce)))}getUser(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getUser",[e],n,r=>D.handleReturnType(r,ue(51,ce)))}getCommit(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getCommit",[e],n,r=>D.handleReturnType(r,ue(54,ce)))}listProvidersByAccounts(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"listProvidersByAccounts",[e],n,r=>D.handleReturnType(r,ue(56,ce)))}listProvidersByStatus(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"listProvidersByStatus",[e],n,r=>D.handleReturnType(r,ue(56,ce)))}getRandomActiveProvider(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getRandomActiveProvider",[e,n],r,i=>D.handleReturnType(i,ue(59,ce)))}getAllProviderAccounts(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getAllProviderAccounts",[],e,n=>D.handleReturnType(n,ue(62,ce)))}getRandomNumber(e,n,r,i){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getRandomNumber",[e,n,r],i,s=>D.handleReturnType(s,ue(28,ce)))}terminate(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"terminate",n=>ge(n,this.__nativeContract,ye),[],e)}withdraw(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"withdraw",r=>ge(r,this.__nativeContract,ye),[e],n)}setCodeHash(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"setCodeHash",r=>ge(r,this.__nativeContract,ye),[e],n)}},Dee=class{constructor(e,n,r){this.__nativeContract=e,this.__callerAddress=r,this.__apiPromise=n}getGitCommitId(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getGitCommitId",[],e,n=>D.handleReturnType(n,ue(16,ce)))}getAdmin(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getAdmin",[],e,n=>D.handleReturnType(n,ue(18,ce)))}getPayees(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getPayees",[],e,n=>D.handleReturnType(n,ue(19,ce)))}getDappPayees(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDappPayees",[],e,n=>D.handleReturnType(n,ue(22,ce)))}getStatuses(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getStatuses",[],e,n=>D.handleReturnType(n,ue(25,ce)))}getProviderStakeThreshold(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getProviderStakeThreshold",[],e,n=>D.handleReturnType(n,ue(28,ce)))}getDappStakeThreshold(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDappStakeThreshold",[],e,n=>D.handleReturnType(n,ue(28,ce)))}getMaxProviderFee(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxProviderFee",[],e,n=>D.handleReturnType(n,ue(29,ce)))}getMinNumActiveProviders(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMinNumActiveProviders",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getBlockTime(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getBlockTime",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getMaxUserHistoryAgeSeconds(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryAgeSeconds",[],e,n=>D.handleReturnType(n,ue(29,ce)))}getMaxUserHistoryLen(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryLen",[],e,n=>D.handleReturnType(n,ue(30,ce)))}getMaxUserHistoryAgeBlocks(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getMaxUserHistoryAgeBlocks",[],e,n=>D.handleReturnType(n,ue(29,ce)))}providerRegister(e,n,r,i){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerRegister",[e,n,r],i,s=>D.handleReturnType(s,ue(10,ce)))}providerUpdate(e,n,r,i){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerUpdate",[e,n,r],i,s=>D.handleReturnType(s,ue(10,ce)))}providerDeactivate(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerDeactivate",[],e,n=>D.handleReturnType(n,ue(10,ce)))}providerDeregister(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerDeregister",[],e,n=>D.handleReturnType(n,ue(10,ce)))}getProvider(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getProvider",[e],n,r=>D.handleReturnType(r,ue(32,ce)))}providerFund(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerFund",[],e,n=>D.handleReturnType(n,ue(10,ce)))}providerSetDataset(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerSetDataset",[e,n],r,i=>D.handleReturnType(i,ue(10,ce)))}getDapp(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getDapp",[e],n,r=>D.handleReturnType(r,ue(35,ce)))}dappRegister(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappRegister",[e,n],r,i=>D.handleReturnType(i,ue(10,ce)))}dappUpdate(e,n,r,i){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappUpdate",[e,n,r],i,s=>D.handleReturnType(s,ue(10,ce)))}dappFund(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappFund",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}dappDeregister(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappDeregister",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}dappDeactivate(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappDeactivate",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}getUserHistorySummary(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getUserHistorySummary",[e],n,r=>D.handleReturnType(r,ue(38,ce)))}providerCommit(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerCommit",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}providerCommitMany(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"providerCommitMany",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}dappOperatorIsHumanUser(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappOperatorIsHumanUser",[e,n],r,i=>D.handleReturnType(i,ue(45,ce)))}dappOperatorLastCorrectCaptcha(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"dappOperatorLastCorrectCaptcha",[e],n,r=>D.handleReturnType(r,ue(48,ce)))}getUser(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getUser",[e],n,r=>D.handleReturnType(r,ue(51,ce)))}getCommit(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getCommit",[e],n,r=>D.handleReturnType(r,ue(54,ce)))}listProvidersByAccounts(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"listProvidersByAccounts",[e],n,r=>D.handleReturnType(r,ue(56,ce)))}listProvidersByStatus(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"listProvidersByStatus",[e],n,r=>D.handleReturnType(r,ue(56,ce)))}getRandomActiveProvider(e,n,r){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getRandomActiveProvider",[e,n],r,i=>D.handleReturnType(i,ue(59,ce)))}getAllProviderAccounts(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getAllProviderAccounts",[],e,n=>D.handleReturnType(n,ue(62,ce)))}getRandomNumber(e,n,r,i){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"getRandomNumber",[e,n,r],i,s=>D.handleReturnType(s,ue(28,ce)))}terminate(e){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"terminate",[],e,n=>D.handleReturnType(n,ue(10,ce)))}withdraw(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"withdraw",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}setCodeHash(e,n){return D.queryOkJSON(this.__apiPromise,this.__nativeContract,this.__callerAddress,"setCodeHash",[e],n,r=>D.handleReturnType(r,ue(10,ce)))}};class Uee{constructor(e,n,r){this.__apiPromise=e,this.__nativeContract=n,this.__keyringPair=r}getGitCommitId(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getGitCommitId",n=>ge(n,this.__nativeContract,ye),[],e)}getAdmin(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getAdmin",n=>ge(n,this.__nativeContract,ye),[],e)}getPayees(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getPayees",n=>ge(n,this.__nativeContract,ye),[],e)}getDappPayees(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getDappPayees",n=>ge(n,this.__nativeContract,ye),[],e)}getStatuses(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getStatuses",n=>ge(n,this.__nativeContract,ye),[],e)}getProviderStakeThreshold(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getProviderStakeThreshold",n=>ge(n,this.__nativeContract,ye),[],e)}getDappStakeThreshold(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getDappStakeThreshold",n=>ge(n,this.__nativeContract,ye),[],e)}getMaxProviderFee(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getMaxProviderFee",n=>ge(n,this.__nativeContract,ye),[],e)}getMinNumActiveProviders(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getMinNumActiveProviders",n=>ge(n,this.__nativeContract,ye),[],e)}getBlockTime(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getBlockTime",n=>ge(n,this.__nativeContract,ye),[],e)}getMaxUserHistoryAgeSeconds(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getMaxUserHistoryAgeSeconds",n=>ge(n,this.__nativeContract,ye),[],e)}getMaxUserHistoryLen(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getMaxUserHistoryLen",n=>ge(n,this.__nativeContract,ye),[],e)}getMaxUserHistoryAgeBlocks(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getMaxUserHistoryAgeBlocks",n=>ge(n,this.__nativeContract,ye),[],e)}providerRegister(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerRegister",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}providerUpdate(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerUpdate",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}providerDeactivate(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerDeactivate",n=>ge(n,this.__nativeContract,ye),[],e)}providerDeregister(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerDeregister",n=>ge(n,this.__nativeContract,ye),[],e)}getProvider(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getProvider",r=>ge(r,this.__nativeContract,ye),[e],n)}providerFund(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerFund",n=>ge(n,this.__nativeContract,ye),[],e)}providerSetDataset(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerSetDataset",i=>ge(i,this.__nativeContract,ye),[e,n],r)}getDapp(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getDapp",r=>ge(r,this.__nativeContract,ye),[e],n)}dappRegister(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappRegister",i=>ge(i,this.__nativeContract,ye),[e,n],r)}dappUpdate(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappUpdate",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}dappFund(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappFund",r=>ge(r,this.__nativeContract,ye),[e],n)}dappDeregister(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappDeregister",r=>ge(r,this.__nativeContract,ye),[e],n)}dappDeactivate(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappDeactivate",r=>ge(r,this.__nativeContract,ye),[e],n)}getUserHistorySummary(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getUserHistorySummary",r=>ge(r,this.__nativeContract,ye),[e],n)}providerCommit(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerCommit",r=>ge(r,this.__nativeContract,ye),[e],n)}providerCommitMany(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"providerCommitMany",r=>ge(r,this.__nativeContract,ye),[e],n)}dappOperatorIsHumanUser(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappOperatorIsHumanUser",i=>ge(i,this.__nativeContract,ye),[e,n],r)}dappOperatorLastCorrectCaptcha(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"dappOperatorLastCorrectCaptcha",r=>ge(r,this.__nativeContract,ye),[e],n)}getUser(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getUser",r=>ge(r,this.__nativeContract,ye),[e],n)}getCommit(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getCommit",r=>ge(r,this.__nativeContract,ye),[e],n)}listProvidersByAccounts(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"listProvidersByAccounts",r=>ge(r,this.__nativeContract,ye),[e],n)}listProvidersByStatus(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"listProvidersByStatus",r=>ge(r,this.__nativeContract,ye),[e],n)}getRandomActiveProvider(e,n,r){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getRandomActiveProvider",i=>ge(i,this.__nativeContract,ye),[e,n],r)}getAllProviderAccounts(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getAllProviderAccounts",n=>ge(n,this.__nativeContract,ye),[],e)}getRandomNumber(e,n,r,i){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"getRandomNumber",s=>ge(s,this.__nativeContract,ye),[e,n,r],i)}terminate(e){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"terminate",n=>ge(n,this.__nativeContract,ye),[],e)}withdraw(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"withdraw",r=>ge(r,this.__nativeContract,ye),[e],n)}setCodeHash(e,n){return D.txSignAndSend(this.__apiPromise,this.__nativeContract,this.__keyringPair,"setCodeHash",r=>ge(r,this.__nativeContract,ye),[e],n)}}class Dd{constructor(e,n,r){this.address=e,this.nativeContract=new MN(r,wb,e),this.nativeAPI=r,this.signer=n,this.contractAbi=new Sb(wb),this.query=new Dee(this.nativeContract,this.nativeAPI,n.address),this.buildExtrinsic=new hee(this.nativeContract,this.nativeAPI),this.tx=new Uee(r,this.nativeContract,n),this.methods=new LN(r,this.nativeContract,n),this.events=new Mee(this.nativeContract,r)}get name(){return this.nativeContract.abi.info.contract.name.toString()}get abi(){return this.contractAbi}withSigner(e){return new Dd(this.address,e,this.nativeAPI)}withAddress(e){return new Dd(e,this.signer,this.nativeAPI)}withAPI(e){return new Dd(this.address,this.signer,e)}}class gs extends Ag{constructor(e,n,r,...i){if(typeof e=="string")super(gf(e,r,e,Iu)),hg.includes(e)&&(this.tKey=n);else{const s=e.asModule,a=e.registry.findMetaError(s);super(`${a.section}.${a.name}`),hg.includes(n)&&(this.tKey=n)}this.tParams=r||{},this.name=n&&`${gs.name}@${n}`||gs.name}}function Vee(t,e,n){const r=[],i=["Hash"];return e.args.forEach((s,a)=>{let o=n[a];i.indexOf(s.type.type)>-1&&!(he(o)||Oe(o))&&(o=Hee(o)),r.push(t.registry.createType(s.type.type,o).toU8a())}),r}function Bee(t,e){if(t.output){const n=t.output;if(n.isOk){const r=n.asOk;if(r.isErr)throw new gs(r.toPrimitive().err.toString(),e,{})}}}function Hee(t){if(t.length>64)throw new Error(`stringToHexPadded: string length ${t.length} exceeds 64`);const n=uy(t).replace("0x","");return`0x${Array(64-n.length+1).join("0")}${n}`}const Fee=new te(5e12).isub(Ss),jee=1.1;function DN(t,e,n,r,i,s){const a=s?jee:1;return{gasLimit:r?t.registry.createType("WeightV2",{refTime:r.refTime.toBn().muln(a),proofSize:r.proofSize.toBn().muln(a)}):e?t.registry.createType("WeightV2",{proofSize:new te(1e6),refTime:Fee}):void 0,storageDepositLimit:i?i.isCharge?i.asCharge.toBn().muln(a):i.isRefund?i.asRefund:null:null,value:n||_n}}function zee(t){var e;return new te(((e=t.consts.babe)==null?void 0:e.expectedBlockTime)||6e3)}const Wee={u8:1,u16:2,u32:4,u64:8,u128:16,"[u8; 32]":32},UN=function(t){const e={};return t.types.filter(r=>{if(r.type.def.primitive)return!0;if(r.type.path&&r.type.path.length>0){const i=Array.from(r.type.path);return z(i,0).indexOf("primitive")>-1&&z(i,1)==="types"}return!1}).forEach(r=>{var s;const i=(s=r.type.def.composite)==null?void 0:s.fields[0];if(i===void 0)throw new Error("Invalid type definition");e[r.id]=r.type.def.primitive||i.typeName||""}),e},qee=(t,e)=>{const n={};let r=0,i=0;for(const s of t){const a=s.name;if(s.layout&&s.layout.leaf&&s.layout.leaf.ty!==void 0){const o=s.layout.leaf.ty;if(e[o]){const u=mf(e,o).toString(),c=mf(Wee,u);n[a]={storageType:u,index:r,startBytes:i,lengthBytes:c},i+=c,r++}}}return n};function VN(t,e,n,r){const{storageEntry:i}=Zee(n,r);if(i){let s=i;for(;"root"in s.layout;)s=s.layout.root;const a=s.root_key||s.layout.leaf.key||"";if(zw(a)===0){const u=UN(n);if(s.layout&&s.layout.leaf&&s.layout.leaf.ty){const c=s.layout.leaf.ty;if(u[c])return{storageType:t.createType("PortableType",{id:c,type:u[c]}),storageKey:a}}}const o=d6(a.slice(2));return{storageType:mf(e.registry.lookup.types,s.layout.leaf.ty),storageKey:o}}throw new gs("CONTRACT.INVALID_STORAGE_NAME",VN.name)}function Zee(t,e){var r,i;const n=(r=t.storage.root.layout.struct)==null?void 0:r.fields.findIndex(s=>s.name===e);return n?{storageEntry:(i=t.storage.root.layout.struct)==null?void 0:i.fields[n],index:n}:{}}async function Gee(t,e,n,r,i){const s=t.rx.call.contractsApi.getStorage(i,"0x00000000"),a=await br(s),l=e.registry.createType("Option",a).unwrap().toU8a(!0),u=l.slice(4,l.length),c=mf(r,n),d=c.startBytes,h=d+c.lengthBytes,m=u.slice(d,h);return e.registry.createType(c.storageType,m)}function Xee(t,e,n){const r=!!t.registry.createType("Weight").proofSize,i=Ks(t.consts.system.blockWeights?t.consts.system.blockWeights.maxBlock:t.consts.system.maximumBlockWeight).v1Weight.div(uo).div(Qg),s=t.consts.system.blockWeights?t.consts.system.blockWeights.perClass.normal.maxExtrinsic.unwrapOrDefault().refTime.toBn().div(uo).div(Qg):_n,a=t.consts.system.blockWeights?t.consts.system.blockWeights.perClass.normal.maxExtrinsic.unwrapOrDefault().proofSize.toBn():_n,o=!1;return new Promise((l,u)=>{let c=0,d=0,h=_n,m=t.registry.createType("WeightV2",{proofSize:_n,refTime:_n}),y=!1;i&&(h=i.mul(uo),c=h.mul(e).div(Ks(t.consts.system.blockWeights?t.consts.system.blockWeights.maxBlock:t.consts.system.maximumBlockWeight).v1Weight).toNumber(),d=c/e.toNumber()*100,c=c/3e3,y=!i.isZero()&&d<65),r&&s&&a&&(m=t.registry.createType("WeightV2",{proofSize:a.div(n),refTime:s.mul(uo).div(n)}),c=s.mul(uo).mul(e).div(t.consts.system.blockWeights?t.consts.system.blockWeights.perClass.normal.maxExtrinsic.unwrapOrDefault().refTime.toBn():Ss).toNumber(),d=c/e.toNumber()*100,c=c/3e3,y=!s.isZero()&&d<65),l({executionTime:c,isEmpty:o,isValid:y,isWeightV2:r,megaGas:i||_n,megaRefTime:s||_n,percentage:d,proofSize:a||_n,weight:h,weightV2:m})})}const Kee=(t,e)=>async(...n)=>{let r;try{r=await t.bind(e)(...n)}catch(i){throw new gs(i._asError,t.name,void 0,{args:n})}if(r&&r.value.err)throw new gs(r.value.err.toString(),t.name,{result:JSON.stringify(r)});if(r.value)return r.value.unwrapRecursively();throw new gs("CONTRACT.QUERY_ERROR",t.name,{},{result:JSON.stringify(r)})};class Km extends Dd{constructor(e,n,r,i,s,a,o,l){a||(a=JQ(e,l)),super(r,a,e),this.api=e,this.contract=new MN(e,n,r),this.pair=a,this.contractName=i,this.nonce=s,this.logger=dO(o||yi.enum.info,`${Km.name}.${i}`),this.json=YL.parse(this.abi.json),this.createStorageGetters()}createStorageGetters(){if(this.json.storage.root.layout.struct)for(const e of this.json.storage.root.layout.struct.fields){const n=`${c6(e.name)}`,r=Km.prototype;r[n]=()=>this.getStorage(e.name)}}async queryAtBlock(e,n,r){const i=await this.api.at(e),s=new LN(i,this.contract,this.signer);return r?(await s[n](...r)).value.unwrap().unwrap():(await s[n]()).value.unwrap().unwrap()}async getExtrinsicAndGasEstimates(e,n,r){const i=this.abi.findMessage(e),s=Vee(this.abi,i,n),a=zee(this.api),o=await Xee(this.api,a,new te(1)),l=o.isWeightV2?o.weightV2:o.isEmpty?-1:o.weight;this.logger.debug("Sending address: ",this.pair.address);const u={gasLimit:l,storageDepositLimit:null};r!==void 0&&(u.value=r);const c=this.contract.query[i.method];if(c===void 0)throw new RangeError(`Method ${e} does not exist on contract ${this.contractName}`);const h=await c(this.pair.address,u,...s);if(h.result.isOk){let m=DN(this.api,i.isMutating,r,h.gasRequired,h.storageDeposit),y=this.contract.tx[e];if(y===void 0)throw new RangeError(`Method ${e} does not exist on contract ${this.contractName}`);const S=await y(m,...s).paymentInfo(this.pair.address);if(this.logger.debug("Payment info: ",S.partialFee.toHuman()),m=DN(this.api,i.isMutating,r,S.weight,h.storageDeposit,!0),Bee(h,e),y=this.contract.tx[e],y===void 0)throw new RangeError(`Method ${e} does not exist on contract ${this.contractName}`);return{extrinsic:y(m,...s),options:m,storageDeposit:h.storageDeposit}}else throw new gs(h.result.asErr,this.getExtrinsicAndGasEstimates.name)}async getStorage(e){var i;const n=UN(this.json),r=qee(((i=this.json.storage.root.layout.struct)==null?void 0:i.fields)||[],n);if(e in r)return Gee(this.api,this.abi,e,r,this.contract.address);{const{storageKey:s,storageType:a}=VN(this.api,this.abi,this.json,e);if(a){const o=this.abi.registry.lookup.getTypeDef(`Lookup${a.id.toNumber()}`),l=this.api.rx.call.contractsApi.getStorage(this.address,s),u=await br(l),c=this.abi.registry.createType("Option",u);return this.abi.registry.createType(o.type,[c.unwrap().toU8a(!0)])}}throw new gs("CONTRACT.INVALID_STORAGE_TYPE",this.getStorage.name)}}const Jee=t=>new Promise(e=>setTimeout(e,t));async function Yee(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`Network response was not ok, status: ${e.status}`);const n=await e.arrayBuffer();return new Uint8Array(n)}catch(e){throw new Tn(e)}}const $ee="NO_SOLUTION";function BN(t,e=!1,n=!1,r){try{const i=t.items.map((s,a)=>{if(s.hash)return s.hash;throw new Tn("CAPTCHA.MISSING_ITEM_HASH",BN.name,void 0,a)});return sc([t.target,...e?Qee(t.solution):[],n?t.salt:"",r?i.sort():i])}catch(i){throw new Tn(i)}}function Qee(t){return t!==void 0?t.sort():[$ee]}async function ete(t){if(t.type==="text")return{...t,hash:Of(t.data)};if(t.type==="image")return{...t,hash:Of(await Yee(t.data))};throw new Tn("CAPTCHA.INVALID_ITEM_FORMAT")}function tte(t){return sc([t.captchaId,t.captchaContentId,[...t.solution].sort(),t.salt])}class HN{constructor(e){this.hash=e,this.parent=null}}class nte{constructor(){this.leaves=[],this.layers=[]}build(e){this.layers.length&&(this.layers=[]);const n=[];for(const r of e){const i=new HN(r);this.leaves.push(i),n.push(i.hash)}this.layers.push(n),this.root=this.buildMerkleTree(this.leaves)[0]}buildMerkleTree(e){const n=e.length;if(n===1)return e;const r=[];let i=0;const s=[];for(;i0?a-1:a+1;o>s.length-1&&(o=a);const l=[e],u=z(s,o);o>a?l.push(u):l.unshift(u),n.push([z(l,0),z(l,1)]),r+=1,e=sc(l)}const i=z(this.layers,this.layers.length-1);return[...n,[z(i,0)]]}}function rte(t,e){try{if(z(e,0).indexOf(t)===-1)return!1;for(const[n,r]of e.entries()){if(t=sc(r),z(e,n+1).indexOf(t)===-1)return!1;const i=z(e,e.length-1);if(t===z(i,0))return!0}return!1}catch{return!1}}class Jm extends Error{constructor(e,n,...r){e instanceof Response?(super(`HTTP Error: ${e.status} ${e.statusText}`),this.cause=e):(super(e.message||"Unknown API Error"),this.cause=e),this.name=n&&`${Jm.name}@${n}`||Jm.name}}class ite{constructor(e,n,r,i,s,a){this.userAccount=e,this.contract=n,this.provider=r,this.providerApi=i,this.web2=s,this.dappAccount=a}async getCaptchaChallenge(){try{const e=await this.providerApi.getCaptchaChallenge(this.userAccount,this.provider);return this.verifyCaptchaChallengeContent(this.provider,e),e}catch(e){throw new Tn(e)}}verifyCaptchaChallengeContent(e,n){const r=z(n.captchas,0),i=r.proof.length,s=z(r.proof,i-1);if(e.provider.datasetIdContent.toString()!==z(s,0))throw new Tn("CAPTCHA.INVALID_DATASET_CONTENT_ID");for(const a of n.captchas){if(!ste(a))throw new Tn("CAPTCHA.INVALID_CAPTCHA_CHALLENGE");if(!rte(a.captcha.captchaContentId,a.proof))throw new Tn("CAPTCHA.INVALID_CAPTCHA_CHALLENGE")}}async submitCaptchaSolution(e,n,r,i,s){const a=new nte,o=i.map(h=>tte(h));a.build(o);const l=a.root.hash,u=void 0;let c;if(this.web2){if(!e||!e.signRaw)throw new Error("Signer is not defined, cannot sign message to prove account ownership");c=(await e.signRaw({address:this.userAccount,data:uy(n),type:"bytes"})).signature}let d;try{d=await this.providerApi.submitCaptchaSolution(i,n,this.contract.pair.address,s,c)}catch(h){throw new Jm(h)}return[d,l,u]}}async function ste(t){const e=t.captcha,n=t.proof;if(!(await Promise.all(e.items.map(async i=>(await ete(i)).hash===i.hash))).every(i=>i===!0))return!1;const r=BN(e,!1,!1,!1);return r!==e.captchaContentId?!1:z(n,0).indexOf(r)!==-1}const ate=ite,FN="@prosopo/current_account",jN="@prosopo/provider";function ote(t){localStorage.setItem(FN,t)}function lte(){return localStorage.getItem(FN)}function ute(t){localStorage.setItem(jN,t)}function cte(){return localStorage.getItem(jN)}const Eb={setAccount:ote,getAccount:lte,setProviderUrl:ute,getProviderUrl:cte},dte=()=>({showModal:!1,loading:!1,index:0,challenge:void 0,solutions:void 0,isHuman:!1,captchaApi:void 0,account:void 0}),fte=(t,e)=>r=>{Object.assign(t,r),e(r)},Cb=t=>{const e=t.networks[t.defaultNetwork];if(!e)throw new Error(`No network found for environment ${t.defaultEnvironment}`);return e};function hte(t,e,n,r){const i=L=>{alert(L.message)},s=Object.assign({onAccountNotFound:i,onError:i,onHuman:L=>{},onExtensionNotFound:()=>{alert("No extension found")},onFailed:()=>{alert("Captcha challenge failed. Please try again")},onExpired:()=>{alert("Completed challenge has expired, please try again")},onChallengeExpired:()=>{alert("Uncompleted challenge has expired, please try again")},onOpen:()=>{},onClose:()=>{}},r),a=L=>{const B=L instanceof Error?L:new Error(String(L));B instanceof d_?s.onAccountNotFound(B.message):s.onError(B)},o=fte(e,n),l=()=>{const L={userAccountAddress:"",...t};return e.account&&(L.userAccountAddress=e.account.account.address),X2.parse(L)},u=async L=>{try{await L()}catch(B){a(B),o({isHuman:!1,showModal:!1,loading:!1})}},c=async()=>{s.onOpen(),await u(async()=>{if(e.loading||e.isHuman)return;w(),o({loading:!0});const L=l();o({dappAccount:L.account.address}),await Jee(100);const B=await O(),W=await F();let N=!1;try{N=(await W.query.dappOperatorIsHumanUser(B.account.address,L.solutionThreshold)).value.unwrap().unwrap()}catch{}if(N){o({isHuman:!0,loading:!1}),s.onHuman({user:B.account.address,dapp:U()}),b();return}const f=Eb.getProviderUrl();let p;if(f){p=await S(f);try{const X=await p.verifyDappUser(B.account.address,void 0,t.challengeValidLength);if(X.solutionApproved){o({isHuman:!0,loading:!1}),s.onHuman({providerUrl:f,user:B.account.address,dapp:U(),commitmentId:X.commitmentId}),b();return}}catch{}}const x={address:B.account.address,data:Nt("message"),type:"bytes"},T=await B.extension.signer.signRaw(x),E=await Kee(W.query.getRandomActiveProvider,W.query)(B.account.address,U()),C=parseInt(E.blockNumber.toString()),I=Gw(E.provider.url.toString());p=await S(I);const g=await(await v(W,E,p)).getCaptchaChallenge();if(g.captchas.length<=0)throw new Error("No captchas returned from provider");const R=g.captchas.map(X=>X.captcha.timeLimitMs||30*1e3).reduce((X,G)=>X+G),q=setTimeout(()=>{s.onChallengeExpired(),o({isHuman:!1,showModal:!1,loading:!1})},R);o({index:0,solutions:g.captchas.map(()=>[]),challenge:g,showModal:!0,timeout:q,blockNumber:C})})},d=async()=>{await u(async()=>{if(_(),!e.challenge)throw new Error("cannot submit, no challenge found");o({showModal:!1});const L=e.challenge,B=Jz(),W=e.challenge.captchas.map((I,k)=>{const g=z(e.solutions,k);return{captchaId:I.captcha.captchaId,captchaContentId:I.captcha.captchaContentId,salt:B,solution:g}}),N=M(),f=V(),p=N.extension.signer,x=z(L.captchas,0);if(!x.captcha.datasetId)throw new Error("No datasetId set for challenge");const T=A(),E=await T.submitCaptchaSolution(p,L.requestHash,x.captcha.datasetId,W,B),C=E[0].solutionApproved;if(C||s.onFailed(),o({submission:E,isHuman:C,loading:!1}),e.isHuman){const I=Gw(T.provider.provider.url.toString());Eb.setProviderUrl(I),s.onHuman({providerUrl:I,user:N.account.address,dapp:U(),commitmentId:E[1],blockNumber:f}),b()}})},h=async()=>{_(),w(),s.onClose()},m=L=>{if(!e.challenge)throw new Error("cannot select, no challenge found");if(e.index>=e.challenge.captchas.length||e.index<0)throw new Error("cannot select, round index out of range");const B=e.index,W=e.solutions,N=z(W,B);N.includes(L)?N.splice(N.indexOf(L),1):N.push(L),o({solutions:W})},y=()=>{if(!e.challenge)throw new Error("cannot proceed to next round, no challenge found");if(e.index+1>=e.challenge.captchas.length)throw new Error("cannot proceed to next round, already at last round");o({index:e.index+1})},v=async(L,B,W)=>{const N=l(),f=new ate(M().account.address,L,B,W,N.web2,U());return o({captchaApi:f}),A()},S=async L=>{const B=l(),W=Cb(B);if(!B.account.address)throw new Tn("GENERAL.SITE_KEY_MISSING");return new XQ(W,L,B.account.address)},_=()=>{window.clearTimeout(e.timeout),o({timeout:void 0})},b=()=>{const L=t.challengeValidLength||120*1e3,B=setTimeout(()=>{o({isHuman:!1}),s.onExpired()},L);o({successfullChallengeTimeout:B})},w=()=>{_(),o(dte())},A=()=>{if(!e.captchaApi)throw new Error("Captcha api not set");return e.captchaApi},O=async()=>{const L=l();if(!L.web2&&!L.userAccountAddress)throw new Error("Account address has not been set for web3 mode");const W=await(L.web2?new Jne:new Yq).getAccount(L);return Eb.setAccount(W.account.address),o({account:W}),M()},M=()=>{if(!e.account)throw new Error("Account not loaded");return e.account},U=()=>{if(!e.dappAccount)throw new Tn("GENERAL.SITE_KEY_MISSING");return e.dappAccount},V=()=>{if(!e.blockNumber)throw new Error("Account not loaded");return e.blockNumber},F=async()=>{const L=l(),B=Cb(L),W=await Id.create({provider:new Rd(B.endpoint),initWasm:!1}),N="sr25519",f=new Wm({type:N,ss58Format:W.registry.chainSS58});return new Km(W,JSON.parse(wb),B.contract.address,"prosopo",0,f.addFromAddress(M().account.address))};return{start:c,cancel:h,submit:d,select:m,nextRound:y}}var zN="3.4.2";function Ud(t,e){return new Promise(function(n){return setTimeout(n,t,e)})}function pte(t,e){e===void 0&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise(function(r){return n.call(window,function(){return r()},{timeout:e})}):Ud(Math.min(t,e))}function WN(t){return!!t&&typeof t.then=="function"}function qN(t,e){try{var n=t();WN(n)?n.then(function(r){return e(!0,r)},function(r){return e(!1,r)}):e(!0,n)}catch(r){e(!1,r)}}function ZN(t,e,n){return n===void 0&&(n=16),Wi(this,void 0,void 0,function(){var r,i,s,a;return gi(this,function(o){switch(o.label){case 0:r=Array(t.length),i=Date.now(),s=0,o.label=1;case 1:return s=i+n?(i=a,[4,Ud(0)]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++s,[3,1];case 4:return[2,r]}})})}function Vd(t){t.then(void 0,function(){})}function eo(t,e){t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535],e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function li(t,e){t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535],e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function vu(t,e){return e%=64,e===32?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])}function zr(t,e){return e%=64,e===0?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=li(t,[4283543511,3981806797]),t=kt(t,[0,t[0]>>>1]),t=li(t,[3301882366,444984403]),t=kt(t,[0,t[0]>>>1]),t}function mte(t,e){t=t||"",e=e||0;var n=t.length%16,r=t.length-n,i=[0,e],s=[0,e],a=[0,0],o=[0,0],l=[2277735313,289559509],u=[1291169091,658871167],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function gte(t){var e;return Rg({name:t.name,message:t.message,stack:(e=t.stack)===null||e===void 0?void 0:e.split(` +`)},t)}function yte(t,e){for(var n=0,r=t.length;n=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function _te(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(t),s=i[1]||void 0,a={},o=/([.:#][\w-]+|\[.+?\])/gi,l=function(h,m){a[h]=a[h]||[],a[h].push(m)};;){var u=o.exec(i[2]);if(!u)break;var c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)l(d[1],(n=(e=d[4])!==null&&e!==void 0?e:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[s,a]}function KN(t){return t&&typeof t=="object"&&"message"in t?t:{message:t}}function bte(t){return typeof t!="function"}function wte(t,e){var n=new Promise(function(r){var i=Date.now();qN(t.bind(null,e),function(){for(var s=[],a=0;a=4}function Ste(){var t=window,e=navigator;return Mi(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!JN()}function Tb(){var t=window,e=navigator;return Mi(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,e.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function Bd(){var t=window,e=navigator;return Mi(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,e.vendor.indexOf("Apple")===0,"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function Pb(){var t=window;return Mi(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function Ete(){var t,e,n=window;return Mi(["buildID"in navigator,"MozAppearance"in((e=(t=document.documentElement)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Cte(){var t=window;return Mi([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}function kte(){var t=window;return Mi(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}function Tte(){if(navigator.platform==="iPad")return!0;var t=screen,e=t.width/t.height;return Mi(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}function Pte(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function Ate(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function YN(){var t=Tb(),e=Ete();if(!t&&!e)return!1;var n=window;return Mi(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function Nte(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(Rte())return-1;var n=4500,r=5e3,i=new e(1,r,44100),s=i.createOscillator();s.type="triangle",s.frequency.value=1e4;var a=i.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,s.connect(a),a.connect(i.destination),s.start(0);var o=Ite(i),l=o[0],u=o[1],c=l.then(function(d){return Ote(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d});return Vd(c),function(){return u(),c}}function Rte(){return Bd()&&!Pb()&&!kte()}function Ite(t){var e=3,n=500,r=500,i=5e3,s=function(){},a=new Promise(function(o,l){var u=!1,c=0,d=0;t.oncomplete=function(y){return o(y.renderedBuffer)};var h=function(){setTimeout(function(){return l($N("timeout"))},Math.min(r,d+i-Date.now()))},m=function(){try{var y=t.startRendering();switch(WN(y)&&Vd(y),t.state){case"running":d=Date.now(),u&&h();break;case"suspended":document.hidden||c++,u&&c>=e?l($N("suspended")):setTimeout(m,n);break}}catch(v){l(v)}};m(),s=function(){u||(u=!0,d>0&&h())}});return[a,s]}function Ote(t){for(var e=0,n=0;n=0?"+":"").concat(Math.abs(r))}function sne(){var t=new Date().getFullYear();return Math.max(Oi(new Date(t,0,1).getTimezoneOffset()),Oi(new Date(t,6,1).getTimezoneOffset()))}function ane(){try{return!!window.sessionStorage}catch{return!0}}function one(){try{return!!window.localStorage}catch{return!0}}function lne(){if(!(JN()||Ste()))try{return!!window.indexedDB}catch{return!0}}function une(){return!!window.openDatabase}function cne(){return navigator.cpuClass}function dne(){var t=navigator.platform;return t==="MacIntel"&&Bd()&&!Pb()?Tte()?"iPad":"iPhone":t}function fne(){return navigator.vendor||""}function hne(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];ed.length*.6}),o.sort(),[2,o]}})})}function yne(){return Bd()||YN()}function vne(t){var e;return Wi(this,void 0,void 0,function(){var n,r,i,s,l,a,o,l;return gi(this,function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),i=new Array(t.length),s={},t4(r),l=0;l')}function Ine(){var t,e=document.createElement("canvas"),n=(t=e.getContext("webgl"))!==null&&t!==void 0?t:e.getContext("experimental-webgl");if(n&&"getExtension"in n){var r=n.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(n.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(n.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function One(){return navigator.pdfViewerEnabled}function Mne(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]}var Lne={fonts:Vte,domBlockers:gne,fontPreferences:Nne,audio:Nte,screenFrame:nne,osCpu:Gte,languages:Xte,colorDepth:Kte,deviceMemory:Jte,screenResolution:Yte,hardwareConcurrency:rne,timezone:ine,sessionStorage:ane,localStorage:one,indexedDB:lne,openDatabase:une,cpuClass:cne,platform:dne,plugins:Bte,canvas:Hte,touchSupport:Zte,vendor:fne,vendorFlavors:hne,cookiesEnabled:pne,colorGamut:bne,invertedColors:wne,forcedColors:xne,monochrome:Ene,contrast:Cne,reducedMotion:kne,hdr:Tne,math:Pne,videoCard:Ine,pdfViewerEnabled:One,architecture:Mne};function Dne(t){return xte(Lne,t,[])}var Une="$ if upgrade to Pro: https://fpjs.dev/pro";function Vne(t){var e=Bne(t),n=Hne(e);return{score:e,comment:Une.replace(/\$/g,"".concat(n))}}function Bne(t){if(YN())return .4;if(Bd())return Pb()?.5:.3;var e=t.platform.value||"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}function Hne(t){return XN(.99+.01*t,1e-4)}function Fne(t){for(var e="",n=0,r=Object.keys(t).sort();n=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(zN,"/npm-monitoring"),!0),t.send()}catch{}}function Zne(t){var e=t===void 0?{}:t,n=e.delayFallback,r=e.debug,i=e.monitoring,s=i===void 0?!0:i;return Wi(this,void 0,void 0,function(){var a;return gi(this,function(o){switch(o.label){case 0:return s&&qne(),[4,zne(n)];case 1:return o.sent(),a=Dne({debug:r}),[2,Wne(a,r)]}})})}function to(t,e){t=[z(t,0)>>>16,z(t,0)&65535,z(t,1)>>>16,z(t,1)&65535],e=[z(e,0)>>>16,z(e,0)&65535,z(e,1)>>>16,z(e,1)&65535];const n=[0,0,0,0];return n[3]+=z(t,3)+z(e,3),n[2]+=z(n,3)>>>16,n[3]&=65535,n[2]+=z(t,2)+z(e,2),n[1]+=z(n,2)>>>16,n[2]&=65535,n[1]+=z(t,1)+z(e,1),n[0]+=z(n,1)>>>16,n[1]&=65535,n[0]+=z(t,0)+z(e,0),n[0]&=65535,[z(n,0)<<16|z(n,1),z(n,2)<<16|z(n,3)]}function ui(t,e){t=[z(t,0)>>>16,z(t,0)&65535,z(t,1)>>>16,z(t,1)&65535],e=[z(e,0)>>>16,z(e,0)&65535,z(e,1)>>>16,z(e,1)&65535];const n=[0,0,0,0];return n[3]+=z(t,3)*z(e,3),n[2]+=z(n,3)>>>16,n[3]&=65535,n[2]+=z(t,2)*z(e,3),n[1]+=z(n,2)>>>16,n[2]&=65535,n[2]+=z(t,3)*z(e,2),n[1]+=z(n,2)>>>16,n[2]&=65535,n[1]+=z(t,1)*z(e,3),n[0]+=z(n,1)>>>16,n[1]&=65535,n[1]+=z(t,2)*z(e,2),n[0]+=z(n,1)>>>16,n[1]&=65535,n[1]+=z(t,3)*z(e,1),n[0]+=z(n,1)>>>16,n[1]&=65535,n[0]+=z(t,0)*z(e,3)+z(t,1)*z(e,2)+z(t,2)*z(e,1)+z(t,3)*z(e,0),n[0]&=65535,[z(n,0)<<16|z(n,1),z(n,2)<<16|z(n,3)]}function wu(t,e){return e%=64,e===32?[z(t,1),z(t,0)]:e<32?[z(t,0)<>>32-e,z(t,1)<>>32-e]:(e-=32,[z(t,1)<>>32-e,z(t,0)<>>32-e])}function Wr(t,e){return e%=64,e===0?t:e<32?[z(t,0)<>>32-e,z(t,1)<>>1]),t=ui(t,[4283543511,3981806797]),t=Tt(t,[0,z(t,0)>>>1]),t=ui(t,[3301882366,444984403]),t=Tt(t,[0,z(t,0)>>>1]),t}function Gne(t,e){t=t||"",e=e||0;const n=t.length%16,r=t.length-n;let i=[0,e],s=[0,e],a=[0,0],o=[0,0];const l=[2277735313,289559509],u=[1291169091,658871167];let c=0;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(z(i,1)>>>0).toString(16)).slice(-8)+("00000000"+(z(s,0)>>>0).toString(16)).slice(-8)+("00000000"+(z(s,1)>>>0).toString(16)).slice(-8)}function Xne(t,e,n){const{area:r,offsetParameter:i,multiplier:s,fontSizeFactor:a,maxShadowBlur:o}=n;class l{constructor(v){this.currentNumber=v%i,this.currentNumber<=0&&(this.currentNumber+=i)}getNext(){return this.currentNumber=s*this.currentNumber%i,this.currentNumber}}function u(y,v,S){return y=(y-1)/i,S?y*v:Math.floor(y*v)}function c(y,v,S){const _=v.createRadialGradient(u(y.getNext(),S.width,void 0),u(y.getNext(),S.height,void 0),u(y.getNext(),S.width,void 0),u(y.getNext(),S.width,void 0),u(y.getNext(),S.height,void 0),u(y.getNext(),S.width,void 0));_.addColorStop(0,z(h,u(y.getNext(),h.length,void 0))),_.addColorStop(1,z(h,u(y.getNext(),h.length,void 0))),v.fillStyle=_}function d(y,v){const b=[];for(let w=0;w{});return n.signRaw=async r=>{const i=e.keypair.sign(r.data);return{id:1,signature:Ae(i)}},{accounts:{get:async()=>[e],subscribe:()=>()=>{}},name:"procaptcha-web2",version:"0.1.11",signer:n}}async createAccount(e){const n={area:{width:300,height:300},offsetParameter:2001000001,multiplier:15e3,fontSizeFactor:1.5,maxShadowBlur:50,numberOfRounds:5,seed:42},r=await this.getFingerprint(),i=Xne(n.numberOfRounds,n.seed,n),s=Of([i,r].join(""),128).slice(2),a=Nt(s),o=rq(a),l=await Id.create({provider:e,initWasm:!1}),u="ed25519",d=new Wm({type:u,ss58Format:l.registry.chainSS58}).addFromMnemonic(o),h=d.address.length===42?d.address:Qp(_r(d.address),l.registry.chainSS58);return{address:h,type:u,name:h,keypair:d}}async getFingerprint(){const r=await(await Zne()).get(),{screenFrame:i,...s}=r.components;return a4(s)}}const u4=lh` + align-items: center; + justify-content: flex-end; + display: flex; + padding: 8px; + + @media (max-width: 245px) { + &:nth-of-type(1), + &:nth-of-type(2) { + display: none; + } /* Both logos hidden */ + } + + @media (min-width: 245px) and (max-width: 400px) { + &:nth-of-type(1) { + display: flex; + } /* logoWithText */ + &:nth-of-type(2) { + display: none; + } /* logoWithoutText */ + } + + @media (min-width: 401px) { + &:nth-of-type(1) { + display: none; + } /* logoWithText */ + &:nth-of-type(2) { + display: flex; + } /* logoWithoutText */ + } +`,Hd=t=>{const e=j.useRef(t),n=i=>{e.current=i};return[e.current,n]},Yne=()=>{const[t,e]=j.useState(!1),[n,r]=j.useState(0),[i,s]=j.useState([]),[a,o]=Hd(void 0),[l,u]=j.useState(!1),[c,d]=j.useState(void 0),[h,m]=j.useState(!1),[y,v]=j.useState(void 0),[S,_]=j.useState(void 0),[b,w]=Hd(void 0),[A,O]=Hd(void 0),[M,U]=Hd(void 0),[V,F]=Hd(void 0);return[{isHuman:t,index:n,solutions:i,captchaApi:a,showModal:l,challenge:c,loading:h,account:y,dappAccount:S,submission:b,timeout:A,blockNumber:M,successfullChallengeTimeout:V},L=>{L.account!==void 0&&v(L.account),L.isHuman!==void 0&&e(L.isHuman),L.index!==void 0&&r(L.index),L.solutions!==void 0&&s(L.solutions.slice()),L.captchaApi!==void 0&&o(L.captchaApi),L.showModal!==void 0&&u(L.showModal),L.challenge!==void 0&&d(L.challenge),L.loading!==void 0&&m(L.loading),L.showModal!==void 0&&u(L.showModal),L.dappAccount!==void 0&&_(L.dappAccount),L.submission!==void 0&&w(L.submission),L.timeout!==void 0&&O(L.timeout),L.successfullChallengeTimeout!==void 0&&F(L.timeout),L.blockNumber!==void 0&&U(L.blockNumber)}]},$ne=t=>{const e=t.config,n=t.callbacks||{},[r,i]=Yne(),s=hte(e,r,i,n),a={maxWidth:"400px",minWidth:"200px"},o=j.useMemo(()=>t.config.theme==="light"?uT:cT,[t.config.theme]);return Hn(yV,{theme:o,children:lu(Ct,{sx:{maxWidth:"100%",maxHeight:"100%",overflowX:"auto"},children:[Hn(AF,{open:r.showModal,sx:{zIndex:2147483647},children:r.challenge?Hn(Aj,{challenge:r.challenge,index:r.index,solutions:r.solutions,onSubmit:s.submit,onCancel:s.cancel,onClick:s.select,onNext:s.nextRound,themeColor:e.theme??"light"}):Hn(pF,{children:"No challenge set."})}),lu(Ct,{p:0,sx:[...Array.isArray(a)?a:[a]],"data-cy":"button-human",children:[" ",lu(Ct,{p:1,border:1,bgcolor:o.palette.background.default,borderColor:o.palette.grey[300],borderRadius:2,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap"},children:[Hn(Ct,{sx:{display:"flex",flexDirection:"column"},children:lu(Ct,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flexWrap:"wrap"},children:[lu(Ct,{sx:{height:"50px",width:"50px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[Hn(Ct,{sx:{display:r.loading?"none":"block"},children:Hn(tj,{onChange:s.start,checked:r.isHuman,inputProps:{"aria-label":"controlled"},sx:{"& .MuiSvgIcon-root":{fontSize:32,position:"relative"},"& .PrivateSwitchBase-input":{width:"1.4em",height:"1.4em",top:"auto",left:"auto",opacity:"1","&::before":{content:'""',position:"absolute",height:"100%",width:"100%"}}}})}),Hn(Ct,{sx:{display:r.loading?"block":"none"},children:Hn(Ct,{pt:"5px",children:Hn(cj,{size:"24px",disableShrink:!0})})})]}),Hn(Ct,{p:1,children:Hn(Vp,{color:o.palette.primary.contrastText,children:"I am a human"})})]})}),Hn(Ct,{children:Hn(vj,{href:"https://prosopo.io",target:"_blank",children:Hn(Ct,{children:lu("div",{children:[Hn("div",{css:u4,dangerouslySetInnerHTML:{__html:t.config.theme==="light"?nre:tre}}),Hn("div",{css:u4,dangerouslySetInnerHTML:{__html:t.config.theme==="light"?Qne:ere}})]})})})})]})]})]})})},Qne='Prosopo Logo Black',ere='Prosopo Logo Black',tre='',nre='';var c4,rre=H3;c4=rre.createRoot;var d4;const ire="procaptcha.bundle.js",f4=()=>document&&document.currentScript&&"src"in document.currentScript&&document.currentScript.src!==void 0?document.currentScript:void 0,sre=t=>{const e=f4();if(e&&e.src.indexOf("".concat(t))!==-1){const n=new URLSearchParams(e.src.split("?")[1]);return{onloadUrlCallback:n.get("onload")||void 0,renderExplicit:n.get("render")||void 0}}return{onloadUrlCallback:void 0,renderExplicit:void 0}},h4=t=>(t||(t=""),X2.parse({defaultEnvironment:Mf.parse("production"),defaultNetwork:co.parse("rococo"),userAccountAddress:"",account:{address:t},serverUrl:""})),are=t=>t.closest("form"),Ho=t=>{const e=window[t.replace("window.","")];if(typeof e!="function")throw new Error("Callback ".concat(t," is not defined on the window object"));return e},ore=(t,e)=>{const n=are(t);if(!n)return;const r=document.createElement("input");r.type="hidden",r.name=sr.procaptchaResponse,r.value=JSON.stringify(e),n.appendChild(r)},lre=new Set(["light","dark"]),ure=t=>lre.has(t)?t:"light",p4=(t,e,n)=>{t.forEach(r=>{const i=(n==null?void 0:n.callback)||r.getAttribute("data-callback"),s=(n==null?void 0:n["chalexpired-callback"])||r.getAttribute("data-chalexpired-callback"),a=(n==null?void 0:n["error-callback"])||r.getAttribute("data-error-callback"),o=(n==null?void 0:n["close-callback"])||r.getAttribute("data-close-callback"),l=(n==null?void 0:n["open-callback"])||r.getAttribute("data-open-callback"),u=(n==null?void 0:n["expired-callback"])||r.getAttribute("data-expired-callback"),c={onHuman:m=>ore(r,m),onChallengeExpired:()=>{},onExpired:()=>{alert("Completed challenge has expired, please try again")},onError:m=>{},onClose:()=>{},onOpen:()=>{}};i&&(c.onHuman=Ho(i)),s&&(c.onChallengeExpired=Ho(s)),u&&(c.onExpired=Ho(u)),a&&(c.onError=Ho(a)),o&&(c.onClose=Ho(o)),l&&(c.onOpen=Ho(l));const d=(n==null?void 0:n.theme)||r.getAttribute("data-theme")||"light";e.theme=ure(d);const h=(n==null?void 0:n["challenge-valid-length"])||r.getAttribute("data-challenge-valid-length");h&&(e.challengeValidLength=parseInt(h)),c4(r).render(ee.jsx($ne,{config:e,callbacks:c}))})},cre=()=>{const t=Array.from(document.getElementsByClassName("procaptcha"));if(t.length){const e=z(t,0).getAttribute("data-sitekey")||void 0,n=h4(e);p4(t,n)}},dre=(t,e)=>{const n=e.siteKey,r=h4(n),i=document.getElementById(t);i&&p4([i],r,e)};function Lb(t){document&&document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)}const{onloadUrlCallback:m4,renderExplicit:fre}=sre(ire);if(fre!=="explicit"&&Lb(cre),m4){const t=Ho(m4);(d4=f4())==null||d4.addEventListener("load",()=>{Lb(t)})}return Di.default=Lb,Di.render=dre,Object.defineProperties(Di,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Di}({}); \ No newline at end of file diff --git a/assets/js/general.js b/assets/js/general.js index 9cfa41b..2c62596 100644 --- a/assets/js/general.js +++ b/assets/js/general.js @@ -1,19 +1,19 @@ -/* global jQuery, hCaptcha, HCaptchaGeneralObject */ +/* global jQuery, procaptcha, PROCAPTCHAGeneralObject */ /** - * @param HCaptchaGeneralObject.ajaxUrl - * @param HCaptchaGeneralObject.checkConfigAction - * @param HCaptchaGeneralObject.nonce - * @param HCaptchaGeneralObject.modeLive - * @param HCaptchaGeneralObject.modeTestPublisher - * @param HCaptchaGeneralObject.modeTestEnterpriseSafeEndUser - * @param HCaptchaGeneralObject.modeTestEnterpriseBotDetected - * @param HCaptchaGeneralObject.siteKey - * @param HCaptchaGeneralObject.modeTestPublisherSiteKey - * @param HCaptchaGeneralObject.modeTestEnterpriseSafeEndUserSiteKey - * @param HCaptchaGeneralObject.modeTestEnterpriseBotDetectedSiteKey - * @param HCaptchaGeneralObject.checkConfigNotice - * @param HCaptchaMainObject.params + * @param PROCAPTCHAGeneralObject.ajaxUrl + * @param PROCAPTCHAGeneralObject.checkConfigAction + * @param PROCAPTCHAGeneralObject.nonce + * @param PROCAPTCHAGeneralObject.modeLive + * @param PROCAPTCHAGeneralObject.modeTestPublisher + * @param PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUser + * @param PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetected + * @param PROCAPTCHAGeneralObject.siteKey + * @param PROCAPTCHAGeneralObject.modeTestPublisherSiteKey + * @param PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUserSiteKey + * @param PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetectedSiteKey + * @param PROCAPTCHAGeneralObject.checkConfigNotice + * @param PROCAPTCHAMainObject.params */ /** @@ -22,30 +22,30 @@ * @param {Object} $ jQuery instance. */ const general = function( $ ) { - const msgSelector = '#hcaptcha-message'; + const msgSelector = '#procaptcha-message'; let $message = $( msgSelector ); - const $form = $( 'form.hcaptcha-general' ); - const $siteKey = $( '[name="hcaptcha_settings[site_key]"]' ); - const $secretKey = $( '[name="hcaptcha_settings[secret_key]"]' ); - const $theme = $( '[name="hcaptcha_settings[theme]"]' ); - const $size = $( '[name="hcaptcha_settings[size]"]' ); - const $language = $( '[name="hcaptcha_settings[language]"]' ); - const $mode = $( '[name="hcaptcha_settings[mode]"]' ); - const $customThemes = $( '[name="hcaptcha_settings[custom_themes][]"]' ); - const $configParams = $( '[name="hcaptcha_settings[config_params]"]' ); + const $form = $( 'form.procaptcha-general' ); + const $siteKey = $( '[name="procaptcha_settings[site_key]"]' ); + const $secretKey = $( '[name="procaptcha_settings[secret_key]"]' ); + const $theme = $( '[name="procaptcha_settings[theme]"]' ); + const $size = $( '[name="procaptcha_settings[size]"]' ); + const $language = $( '[name="procaptcha_settings[language]"]' ); + const $mode = $( '[name="procaptcha_settings[mode]"]' ); + const $customThemes = $( '[name="procaptcha_settings[custom_themes][]"]' ); + const $configParams = $( '[name="procaptcha_settings[config_params]"]' ); const $submit = $form.find( '#submit' ); const modes = {}; const siteKeyInitVal = $siteKey.val(); const secretKeyInitVal = $secretKey.val(); - modes[ HCaptchaGeneralObject.modeLive ] = HCaptchaGeneralObject.siteKey; - modes[ HCaptchaGeneralObject.modeTestPublisher ] = HCaptchaGeneralObject.modeTestPublisherSiteKey; - modes[ HCaptchaGeneralObject.modeTestEnterpriseSafeEndUser ] = HCaptchaGeneralObject.modeTestEnterpriseSafeEndUserSiteKey; - modes[ HCaptchaGeneralObject.modeTestEnterpriseBotDetected ] = HCaptchaGeneralObject.modeTestEnterpriseBotDetectedSiteKey; + modes[ PROCAPTCHAGeneralObject.modeLive ] = PROCAPTCHAGeneralObject.siteKey; + modes[ PROCAPTCHAGeneralObject.modeTestPublisher ] = PROCAPTCHAGeneralObject.modeTestPublisherSiteKey; + modes[ PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUser ] = PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUserSiteKey; + modes[ PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetected ] = PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetectedSiteKey; function clearMessage() { $message.remove(); - $( '
' ).insertAfter( '#hcaptcha-options h2' ); + $( '
' ).insertAfter( '#procaptcha-options h2' ); $message = $( msgSelector ); } @@ -78,18 +78,18 @@ const general = function( $ ) { showMessage( response, 'notice-error' ); } - function hCaptchaUpdate( params ) { - const updatedParams = Object.assign( hCaptcha.getParams(), params ); - hCaptcha.setParams( updatedParams ); + function pCAPTCHAUpdate( params ) { + const updatedParams = Object.assign( procaptcha.getParams(), params ); + procaptcha.setParams( updatedParams ); - const sampleHCaptcha = document.querySelector( '#hcaptcha-options .h-captcha' ); - sampleHCaptcha.innerHTML = ''; + const samplePROCAPTCHA = document.querySelector( '#procaptcha-options .pro-captcha' ); + samplePROCAPTCHA.innerHTML = ''; for ( const key in params ) { - sampleHCaptcha.setAttribute( `data-${ key }`, `${ params[ key ] }` ); + samplePROCAPTCHA.setAttribute( `data-${ key }`, `${ params[ key ] }` ); } - hCaptcha.bindEvents(); + procaptcha.bindEvents(); } function applyCustomThemes() { @@ -117,7 +117,7 @@ const general = function( $ ) { }; } - hCaptchaUpdate( configParams ); + pCAPTCHAUpdate( configParams ); } function checkConfig() { @@ -125,17 +125,17 @@ const general = function( $ ) { $submit.attr( 'disabled', true ); const data = { - action: HCaptchaGeneralObject.checkConfigAction, - nonce: HCaptchaGeneralObject.nonce, + action: PROCAPTCHAGeneralObject.checkConfigAction, + nonce: PROCAPTCHAGeneralObject.nonce, mode: $mode.val(), siteKey: $siteKey.val(), secretKey: $secretKey.val(), - 'h-captcha-response': $( 'textarea[name="h-captcha-response"]' ).val(), + 'pro-captcha-response': $( 'textarea[name="pro-captcha-response"]' ).val(), }; // noinspection JSVoidFunctionReturnValueUsed,JSCheckFunctionSignatures return $.post( { - url: HCaptchaGeneralObject.ajaxUrl, + url: PROCAPTCHAGeneralObject.ajaxUrl, data, } ) .done( function( response ) { @@ -151,7 +151,7 @@ const general = function( $ ) { showErrorMessage( response.statusText ); } ) .always( function() { - hCaptchaUpdate( {} ); + pCAPTCHAUpdate( {} ); } ); } @@ -160,7 +160,7 @@ const general = function( $ ) { clearMessage(); $submit.attr( 'disabled', false ); } else { - showErrorMessage( HCaptchaGeneralObject.checkConfigNotice ); + showErrorMessage( PROCAPTCHAGeneralObject.checkConfigNotice ); $submit.attr( 'disabled', true ); } } @@ -173,7 +173,7 @@ const general = function( $ ) { $siteKey.on( 'change', function( e ) { const sitekey = $( e.target ).val(); - hCaptchaUpdate( { sitekey } ); + pCAPTCHAUpdate( { sitekey } ); checkCredentialsChange(); } ); @@ -183,11 +183,11 @@ const general = function( $ ) { $theme.on( 'change', function( e ) { const theme = $( e.target ).val(); - hCaptchaUpdate( { theme } ); + pCAPTCHAUpdate( { theme } ); } ); $size.on( 'change', function( e ) { - const $invisibleNotice = $( '#hcaptcha-invisible-notice' ); + const $invisibleNotice = $( '#procaptcha-invisible-notice' ); const size = $( e.target ).val(); if ( 'invisible' === size ) { @@ -196,12 +196,12 @@ const general = function( $ ) { $invisibleNotice.hide(); } - hCaptchaUpdate( { size } ); + pCAPTCHAUpdate( { size } ); } ); $language.on( 'change', function( e ) { const hl = $( e.target ).val(); - hCaptchaUpdate( { hl } ); + pCAPTCHAUpdate( { hl } ); } ); $mode.on( 'change', function( e ) { @@ -211,7 +211,7 @@ const general = function( $ ) { return; } - if ( mode === HCaptchaGeneralObject.modeLive ) { + if ( mode === PROCAPTCHAGeneralObject.modeLive ) { $siteKey.attr( 'disabled', false ); $secretKey.attr( 'disabled', false ); } else { @@ -220,7 +220,7 @@ const general = function( $ ) { } const sitekey = modes[ mode ]; - hCaptchaUpdate( { sitekey } ); + pCAPTCHAUpdate( { sitekey } ); } ); $customThemes.on( 'change', function() { @@ -237,6 +237,6 @@ const general = function( $ ) { } ); }; -window.hCaptchaGeneral = general; +window.pCAPTCHAGeneral = general; jQuery( document ).ready( general ); diff --git a/assets/js/general.min.js b/assets/js/general.min.js index 622d9a7..a0eff79 100644 --- a/assets/js/general.min.js +++ b/assets/js/general.min.js @@ -1 +1 @@ -(()=>{var e=function(e){var t="#hcaptcha-message",a=e(t),n=e("form.hcaptcha-general"),c=e('[name="hcaptcha_settings[site_key]"]'),s=e('[name="hcaptcha_settings[secret_key]"]'),i=e('[name="hcaptcha_settings[theme]"]'),o=e('[name="hcaptcha_settings[size]"]'),r=e('[name="hcaptcha_settings[language]"]'),h=e('[name="hcaptcha_settings[mode]"]'),l=e('[name="hcaptcha_settings[custom_themes][]"]'),d=e('[name="hcaptcha_settings[config_params]"]'),p=n.find("#submit"),u={},m=c.val(),f=s.val();function v(){a.remove(),e('
').insertAfter("#hcaptcha-options h2"),a=e(t)}function b(t,n){a.removeClass(),a.addClass(n+" notice is-dismissible");var c=t.split("\n").map((function(e){return"

".concat(e,"

")}));a.html(c.join("")),e(document).trigger("wp-updates-notice-added");var s=e("#wpwrap").position().top;e("html, body").animate({scrollTop:a.offset().top-s-parseInt(a.css("margin-bottom"))},1e3)}function g(e){b(e,"notice-error")}function C(e){var t=Object.assign(hCaptcha.getParams(),e);hCaptcha.setParams(t);var a=document.querySelector("#hcaptcha-options .h-captcha");for(var n in a.innerHTML="",e)a.setAttribute("data-".concat(n),"".concat(e[n]));hCaptcha.bindEvents()}function y(){var e,t=d.val().trim();t=t||null;try{e=JSON.parse(t)}catch(e){return d.css("background-color","#ffabaf"),p.attr("disabled",!0),void g("Bad JSON!")}l.prop("checked")||(e={sitekey:c.val(),theme:i.val(),size:o.val(),hl:r.val()}),C(e)}function j(){v(),p.attr("disabled",!0);var t={action:HCaptchaGeneralObject.checkConfigAction,nonce:HCaptchaGeneralObject.nonce,mode:h.val(),siteKey:c.val(),secretKey:s.val(),"h-captcha-response":e('textarea[name="h-captcha-response"]').val()};return e.post({url:HCaptchaGeneralObject.ajaxUrl,data:t}).done((function(e){e.success?(!function(e){b(e,"notice-success")}(e.data),p.attr("disabled",!1)):g(e.data)})).fail((function(e){g(e.statusText)})).always((function(){C({})}))}function O(){c.val()===m&&s.val()===f?(v(),p.attr("disabled",!1)):(g(HCaptchaGeneralObject.checkConfigNotice),p.attr("disabled",!0))}u[HCaptchaGeneralObject.modeLive]=HCaptchaGeneralObject.siteKey,u[HCaptchaGeneralObject.modeTestPublisher]=HCaptchaGeneralObject.modeTestPublisherSiteKey,u[HCaptchaGeneralObject.modeTestEnterpriseSafeEndUser]=HCaptchaGeneralObject.modeTestEnterpriseSafeEndUserSiteKey,u[HCaptchaGeneralObject.modeTestEnterpriseBotDetected]=HCaptchaGeneralObject.modeTestEnterpriseBotDetectedSiteKey,e("#check_config").on("click",(function(e){e.preventDefault(),j()})),c.on("change",(function(t){C({sitekey:e(t.target).val()}),O()})),s.on("change",(function(){O()})),i.on("change",(function(t){C({theme:e(t.target).val()})})),o.on("change",(function(t){var a=e("#hcaptcha-invisible-notice"),n=e(t.target).val();"invisible"===n?a.show():a.hide(),C({size:n})})),r.on("change",(function(t){C({hl:e(t.target).val()})})),h.on("change",(function(t){var a=e(t.target).val();u.hasOwnProperty(a)&&(a===HCaptchaGeneralObject.modeLive?(c.attr("disabled",!1),s.attr("disabled",!1)):(c.attr("disabled",!0),s.attr("disabled",!0)),C({sitekey:u[a]}))})),l.on("change",(function(){y()})),d.on("blur",(function(){y()})),d.on("focus",(function(){d.css("background-color","unset"),p.attr("disabled",!1)}))};window.hCaptchaGeneral=e,jQuery(document).ready(e)})(); \ No newline at end of file +(()=>{var e=function(e){var t="#procaptcha-message",a=e(t),n=e("form.procaptcha-general"),c=e('[name="procaptcha_settings[site_key]"]'),s=e('[name="procaptcha_settings[secret_key]"]'),i=e('[name="procaptcha_settings[theme]"]'),o=e('[name="procaptcha_settings[size]"]'),r=e('[name="procaptcha_settings[language]"]'),h=e('[name="procaptcha_settings[mode]"]'),l=e('[name="procaptcha_settings[custom_themes][]"]'),d=e('[name="procaptcha_settings[config_params]"]'),p=n.find("#submit"),u={},m=c.val(),f=s.val();function v(){a.remove(),e('
').insertAfter("#procaptcha-options h2"),a=e(t)}function b(t,n){a.removeClass(),a.addClass(n+" notice is-dismissible");var c=t.split("\n").map((function(e){return"

".concat(e,"

")}));a.html(c.join("")),e(document).trigger("wp-updates-notice-added");var s=e("#wpwrap").position().top;e("html, body").animate({scrollTop:a.offset().top-s-parseInt(a.css("margin-bottom"))},1e3)}function g(e){b(e,"notice-error")}function C(e){var t=Object.assign(procaptcha.getParams(),e);procaptcha.setParams(t);var a=document.querySelector("#procaptcha-options .pro-captcha");for(var n in a.innerHTML="",e)a.setAttribute("data-".concat(n),"".concat(e[n]));procaptcha.bindEvents()}function y(){var e,t=d.val().trim();t=t||null;try{e=JSON.parse(t)}catch(e){return d.css("background-color","#ffabaf"),p.attr("disabled",!0),void g("Bad JSON!")}l.prop("checked")||(e={sitekey:c.val(),theme:i.val(),size:o.val(),hl:r.val()}),C(e)}function j(){v(),p.attr("disabled",!0);var t={action:PROCAPTCHAGeneralObject.checkConfigAction,nonce:PROCAPTCHAGeneralObject.nonce,mode:h.val(),siteKey:c.val(),secretKey:s.val(),"pro-captcha-response":e('textarea[name="pro-captcha-response"]').val()};return e.post({url:PROCAPTCHAGeneralObject.ajaxUrl,data:t}).done((function(e){e.success?(!function(e){b(e,"notice-success")}(e.data),p.attr("disabled",!1)):g(e.data)})).fail((function(e){g(e.statusText)})).always((function(){C({})}))}function O(){c.val()===m&&s.val()===f?(v(),p.attr("disabled",!1)):(g(PROCAPTCHAGeneralObject.checkConfigNotice),p.attr("disabled",!0))}u[PROCAPTCHAGeneralObject.modeLive]=PROCAPTCHAGeneralObject.siteKey,u[PROCAPTCHAGeneralObject.modeTestPublisher]=PROCAPTCHAGeneralObject.modeTestPublisherSiteKey,u[PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUser]=PROCAPTCHAGeneralObject.modeTestEnterpriseSafeEndUserSiteKey,u[PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetected]=PROCAPTCHAGeneralObject.modeTestEnterpriseBotDetectedSiteKey,e("#check_config").on("click",(function(e){e.preventDefault(),j()})),c.on("change",(function(t){C({sitekey:e(t.target).val()}),O()})),s.on("change",(function(){O()})),i.on("change",(function(t){C({theme:e(t.target).val()})})),o.on("change",(function(t){var a=e("#procaptcha-invisible-notice"),n=e(t.target).val();"invisible"===n?a.show():a.hide(),C({size:n})})),r.on("change",(function(t){C({hl:e(t.target).val()})})),h.on("change",(function(t){var a=e(t.target).val();u.hasOwnProperty(a)&&(a===PROCAPTCHAGeneralObject.modeLive?(c.attr("disabled",!1),s.attr("disabled",!1)):(c.attr("disabled",!0),s.attr("disabled",!0)),C({sitekey:u[a]}))})),l.on("change",(function(){y()})),d.on("blur",(function(){y()})),d.on("focus",(function(){d.css("background-color","unset"),p.attr("disabled",!1)}))};window.pCAPTCHAGeneral=e,jQuery(document).ready(e)})(); \ No newline at end of file diff --git a/assets/js/integrations.js b/assets/js/integrations.js index d708a8f..2d84d5c 100644 --- a/assets/js/integrations.js +++ b/assets/js/integrations.js @@ -1,13 +1,13 @@ -/* global jQuery, HCaptchaIntegrationsObject */ +/* global jQuery, PROCAPTCHAIntegrationsObject */ /** - * @param HCaptchaIntegrationsObject.ajaxUrl - * @param HCaptchaIntegrationsObject.action - * @param HCaptchaIntegrationsObject.nonce - * @param HCaptchaIntegrationsObject.activateMsg - * @param HCaptchaIntegrationsObject.deactivateMsg - * @param HCaptchaIntegrationsObject.activateThemeMsg - * @param HCaptchaIntegrationsObject.deactivateThemeMsg + * @param PROCAPTCHAIntegrationsObject.ajaxUrl + * @param PROCAPTCHAIntegrationsObject.action + * @param PROCAPTCHAIntegrationsObject.nonce + * @param PROCAPTCHAIntegrationsObject.activateMsg + * @param PROCAPTCHAIntegrationsObject.deactivateMsg + * @param PROCAPTCHAIntegrationsObject.activateThemeMsg + * @param PROCAPTCHAIntegrationsObject.deactivateThemeMsg */ /** @@ -16,14 +16,14 @@ * @param {jQuery} $ The jQuery instance. */ const integrations = function( $ ) { - const msgSelector = '#hcaptcha-message'; + const msgSelector = '#procaptcha-message'; let $message = $( msgSelector ); const $wpwrap = $( '#wpwrap' ); const $adminmenuwrap = $( '#adminmenuwrap' ); function clearMessage() { $message.remove(); - $( '
' ).insertAfter( '#hcaptcha-options h2' ); + $( '
' ).insertAfter( '#procaptcha-options h2' ); $message = $( msgSelector ); } @@ -74,7 +74,7 @@ const integrations = function( $ ) { .find( 'tbody' ) .children() .each( function( i, el ) { - let alt = $( el ).find( '.hcaptcha-integrations-logo img' ).attr( 'alt' ); + let alt = $( el ).find( '.procaptcha-integrations-logo img' ).attr( 'alt' ); alt = alt ? alt : ''; alt = alt.replace( ' Logo', '' ); const lowerAlt = alt.toLowerCase(); @@ -115,20 +115,20 @@ const integrations = function( $ ) { const $tr = $target.closest( 'tr' ); let status = $tr.attr( 'class' ); - status = status.replace( 'hcaptcha-integrations-', '' ); + status = status.replace( 'procaptcha-integrations-', '' ); const $fieldset = $tr.find( 'fieldset' ); // noinspection JSUnresolvedVariable let msg = entity === 'plugin' - ? HCaptchaIntegrationsObject.deactivateMsg - : HCaptchaIntegrationsObject.deactivateThemeMsg; + ? PROCAPTCHAIntegrationsObject.deactivateMsg + : PROCAPTCHAIntegrationsObject.deactivateThemeMsg; let activate = false; if ( $fieldset.attr( 'disabled' ) ) { // noinspection JSUnresolvedVariable msg = entity === 'plugin' - ? HCaptchaIntegrationsObject.activateMsg - : HCaptchaIntegrationsObject.activateThemeMsg; + ? PROCAPTCHAIntegrationsObject.activateMsg + : PROCAPTCHAIntegrationsObject.activateThemeMsg; activate = true; } @@ -139,8 +139,8 @@ const integrations = function( $ ) { const activateClass = activate ? 'on' : 'off'; const data = { - action: HCaptchaIntegrationsObject.action, - nonce: HCaptchaIntegrationsObject.nonce, + action: PROCAPTCHAIntegrationsObject.action, + nonce: PROCAPTCHAIntegrationsObject.nonce, activate, entity, status, @@ -150,7 +150,7 @@ const integrations = function( $ ) { // noinspection JSVoidFunctionReturnValueUsed $.post( { - url: HCaptchaIntegrationsObject.ajaxUrl, + url: PROCAPTCHAIntegrationsObject.ajaxUrl, data, } ) .done( function( response ) { @@ -182,6 +182,6 @@ const integrations = function( $ ) { } ); }; -window.hCaptchaIntegrations = integrations; +window.pCAPTCHAIntegrations = integrations; jQuery( document ).ready( integrations ); diff --git a/assets/js/integrations.min.js b/assets/js/integrations.min.js index de18ff9..bfa1eae 100644 --- a/assets/js/integrations.min.js +++ b/assets/js/integrations.min.js @@ -1 +1 @@ -(()=>{var t=function(t){var a="#hcaptcha-message",e=t(a),i=t("#wpwrap"),n=t("#adminmenuwrap");function o(a,o){e.removeClass(),e.addClass(o+" notice settings-error is-dismissible"),e.html("

".concat(a,"

")),t(document).trigger("wp-updates-notice-added");var s=e.clone();e.css("visibility","hidden"),s.css("margin","0px"),s.css("top",i.position().top);var c="block"===n.css("display")?n.width():0;s.css("left",c),s.width(t(window).width()-c),s.css("position","fixed"),t("body").append(s),setTimeout((function(){e.css("visibility","unset"),s.remove()}),3e3)}function s(t){o(t,"notice-error")}t(".form-table img").on("click",(function(n){n.preventDefault(),e.remove(),t('
').insertAfter("#hcaptcha-options h2"),e=t(a);var c=t(n.target),r=c.data("entity");if(r=r||"",-1!==t.inArray(r,["core","theme","plugin"])&&-1===t.inArray(r,["core"])){var d=c.attr("alt");d=(d=d||"").replace(" Logo","");var p=c.closest("tr"),l=p.attr("class");l=l.replace("hcaptcha-integrations-","");var f=p.find("fieldset"),h="plugin"===r?HCaptchaIntegrationsObject.deactivateMsg:HCaptchaIntegrationsObject.deactivateThemeMsg,g=!1;if(f.attr("disabled")&&(h="plugin"===r?HCaptchaIntegrationsObject.activateMsg:HCaptchaIntegrationsObject.activateThemeMsg,g=!0),n.ctrlKey||confirm(h.replace("%s",d))){var u=g?"on":"off",v={action:HCaptchaIntegrationsObject.action,nonce:HCaptchaIntegrationsObject.nonce,activate:g,entity:r,status:l};p.addClass(u),t.post({url:HCaptchaIntegrationsObject.ajaxUrl,data:v}).done((function(a){if(a.success){var n=t(".form-table").eq(g?0:1),c=i.position().top;f.attr("disabled",!g),f.find("input").attr("disabled",!g),function(t){o(t,"notice-success")}(a.data),function(a,e,i){var n=!1,o=e.toLowerCase();a.find("tbody").children().each((function(a,e){var s=t(e).find(".hcaptcha-integrations-logo img").attr("alt");if((s=(s=s||"").replace(" Logo","")).toLowerCase()>o)return i.insertBefore(t(e)),n=!0,!1})),n||a.find("tbody").append(i)}(n,d,p),t("html, body").animate({scrollTop:p.offset().top-c-e.outerHeight()},1e3)}else s(a.data)})).fail((function(t){s(t.statusText)})).always((function(){p.removeClass("on off")}))}}}))};window.hCaptchaIntegrations=t,jQuery(document).ready(t)})(); \ No newline at end of file +(()=>{var t=function(t){var a="#procaptcha-message",e=t(a),i=t("#wpwrap"),n=t("#adminmenuwrap");function o(a,o){e.removeClass(),e.addClass(o+" notice settings-error is-dismissible"),e.html("

".concat(a,"

")),t(document).trigger("wp-updates-notice-added");var s=e.clone();e.css("visibility","hidden"),s.css("margin","0px"),s.css("top",i.position().top);var c="block"===n.css("display")?n.width():0;s.css("left",c),s.width(t(window).width()-c),s.css("position","fixed"),t("body").append(s),setTimeout((function(){e.css("visibility","unset"),s.remove()}),3e3)}function s(t){o(t,"notice-error")}t(".form-table img").on("click",(function(n){n.preventDefault(),e.remove(),t('
').insertAfter("#procaptcha-options h2"),e=t(a);var c=t(n.target),r=c.data("entity");if(r=r||"",-1!==t.inArray(r,["core","theme","plugin"])&&-1===t.inArray(r,["core"])){var d=c.attr("alt");d=(d=d||"").replace(" Logo","");var p=c.closest("tr"),l=p.attr("class");l=l.replace("procaptcha-integrations-","");var f=p.find("fieldset"),h="plugin"===r?PROCAPTCHAIntegrationsObject.deactivateMsg:PROCAPTCHAIntegrationsObject.deactivateThemeMsg,g=!1;if(f.attr("disabled")&&(h="plugin"===r?PROCAPTCHAIntegrationsObject.activateMsg:PROCAPTCHAIntegrationsObject.activateThemeMsg,g=!0),n.ctrlKey||confirm(h.replace("%s",d))){var u=g?"on":"off",v={action:PROCAPTCHAIntegrationsObject.action,nonce:PROCAPTCHAIntegrationsObject.nonce,activate:g,entity:r,status:l};p.addClass(u),t.post({url:PROCAPTCHAIntegrationsObject.ajaxUrl,data:v}).done((function(a){if(a.success){var n=t(".form-table").eq(g?0:1),c=i.position().top;f.attr("disabled",!g),f.find("input").attr("disabled",!g),function(t){o(t,"notice-success")}(a.data),function(a,e,i){var n=!1,o=e.toLowerCase();a.find("tbody").children().each((function(a,e){var s=t(e).find(".procaptcha-integrations-logo img").attr("alt");if((s=(s=s||"").replace(" Logo","")).toLowerCase()>o)return i.insertBefore(t(e)),n=!0,!1})),n||a.find("tbody").append(i)}(n,d,p),t("html, body").animate({scrollTop:p.offset().top-c-e.outerHeight()},1e3)}else s(a.data)})).fail((function(t){s(t.statusText)})).always((function(){p.removeClass("on off")}))}}}))};window.pCAPTCHAIntegrations=t,jQuery(document).ready(t)})(); \ No newline at end of file diff --git a/assets/js/notifications.js b/assets/js/notifications.js index 6c211fa..2445ea5 100644 --- a/assets/js/notifications.js +++ b/assets/js/notifications.js @@ -1,11 +1,11 @@ -/* global jQuery, HCaptchaNotificationsObject */ +/* global jQuery, PROCAPTCHANotificationsObject */ /** - * @param HCaptchaNotificationsObject.ajaxUrl - * @param HCaptchaNotificationsObject.dismissNotificationAction - * @param HCaptchaNotificationsObject.dismissNotificationNonce - * @param HCaptchaNotificationsObject.resetNotificationAction - * @param HCaptchaNotificationsObject.resetNotificationNonce + * @param PROCAPTCHANotificationsObject.ajaxUrl + * @param PROCAPTCHANotificationsObject.dismissNotificationAction + * @param PROCAPTCHANotificationsObject.dismissNotificationNonce + * @param PROCAPTCHANotificationsObject.resetNotificationAction + * @param PROCAPTCHANotificationsObject.resetNotificationNonce */ /** @@ -14,17 +14,17 @@ * @param {Object} $ jQuery instance. */ const notifications = ( $ ) => { - const optionsSelector = 'form#hcaptcha-options'; - const sectionKeysSelector = 'h3.hcaptcha-section-keys'; - const notificationsSelector = 'div#hcaptcha-notifications'; - const notificationSelector = 'div.hcaptcha-notification'; + const optionsSelector = 'form#procaptcha-options'; + const sectionKeysSelector = 'h3.procaptcha-section-keys'; + const notificationsSelector = 'div#procaptcha-notifications'; + const notificationSelector = 'div.procaptcha-notification'; const dismissSelector = notificationsSelector + ' button.notice-dismiss'; - const navPrevSelector = '#hcaptcha-navigation .prev'; - const navNextSelector = '#hcaptcha-navigation .next'; + const navPrevSelector = '#procaptcha-navigation .prev'; + const navNextSelector = '#procaptcha-navigation .next'; const navSelectors = navPrevSelector + ', ' + navNextSelector; - const buttonsSelector = '.hcaptcha-notification-buttons'; + const buttonsSelector = '.procaptcha-notification-buttons'; const resetBtnSelector = 'button#reset_notifications'; - const footerSelector = '#hcaptcha-notifications-footer'; + const footerSelector = '#procaptcha-notifications-footer'; let $notifications; const getVisibleNotificationIndex = function() { @@ -81,8 +81,8 @@ const notifications = ( $ ) => { const $notification = $( event.target ).closest( notificationSelector ); const data = { - action: HCaptchaNotificationsObject.dismissNotificationAction, - nonce: HCaptchaNotificationsObject.dismissNotificationNonce, + action: PROCAPTCHANotificationsObject.dismissNotificationAction, + nonce: PROCAPTCHANotificationsObject.dismissNotificationNonce, id: $notification.data( 'id' ), }; @@ -102,7 +102,7 @@ const notifications = ( $ ) => { // noinspection JSVoidFunctionReturnValueUsed,JSCheckFunctionSignatures $.post( { - url: HCaptchaNotificationsObject.ajaxUrl, + url: PROCAPTCHANotificationsObject.ajaxUrl, data, } ); @@ -130,13 +130,13 @@ const notifications = ( $ ) => { $( resetBtnSelector ).on( 'click', function() { const data = { - action: HCaptchaNotificationsObject.resetNotificationAction, - nonce: HCaptchaNotificationsObject.resetNotificationNonce, + action: PROCAPTCHANotificationsObject.resetNotificationAction, + nonce: PROCAPTCHANotificationsObject.resetNotificationNonce, }; // noinspection JSVoidFunctionReturnValueUsed,JSCheckFunctionSignatures $.post( { - url: HCaptchaNotificationsObject.ajaxUrl, + url: PROCAPTCHANotificationsObject.ajaxUrl, data, } ).success( function( response ) { if ( ! response.success ) { diff --git a/assets/js/notifications.min.js b/assets/js/notifications.min.js index 99af2d6..4d3e222 100644 --- a/assets/js/notifications.min.js +++ b/assets/js/notifications.min.js @@ -1 +1 @@ -jQuery(document).ready((function(t){var i,a="form#hcaptcha-options",n="div#hcaptcha-notifications",o="div.hcaptcha-notification",c=n+" button.notice-dismiss",e="#hcaptcha-navigation .prev",s="#hcaptcha-navigation .next",r=e+", "+s,d=".hcaptcha-notification-buttons",h="#hcaptcha-notifications-footer",f=function(){if(!(i=t(o)).length)return!1;var a=0;return i.each((function(i){if(t(this).is(":visible"))return a=i,!1})),a},l=function(){var a=f();a>=0?(t(r).removeClass("disabled"),0===a&&t(e).addClass("disabled"),a===i.length-1&&t(s).addClass("disabled")):t(r).addClass("disabled")},u=function(){var a=f();t(h).find(d).remove(),a<0||t(i[a]).find(d).clone().removeClass("hidden").prependTo(h)};t(a).on("click",c,(function(i){var a=t(i.target).closest(o),c={action:HCaptchaNotificationsObject.dismissNotificationAction,nonce:HCaptchaNotificationsObject.dismissNotificationNonce,id:a.data("id")},e=t(o).index(a)+1;e=e=0&&c!==o&&c>=0&&c=0?(t(r).removeClass("disabled"),0===a&&t(e).addClass("disabled"),a===i.length-1&&t(s).addClass("disabled")):t(r).addClass("disabled")},u=function(){var a=f();t(h).find(d).remove(),a<0||t(i[a]).find(d).clone().removeClass("hidden").prependTo(h)};t(a).on("click",c,(function(i){var a=t(i.target).closest(o),c={action:PROCAPTCHANotificationsObject.dismissNotificationAction,nonce:PROCAPTCHANotificationsObject.dismissNotificationNonce,id:a.data("id")},e=t(o).index(a)+1;e=e=0&&c!==o&&c>=0&&c { @@ -16,7 +16,7 @@ document.addEventListener( 'DOMContentLoaded', function() { ); // noinspection JSUnresolvedVariable - const message = HCaptchaSystemInfoObject.copiedMsg; + const message = PROCAPTCHASystemInfoObject.copiedMsg; // eslint-disable-next-line no-alert alert( message ); diff --git a/assets/js/system-info.min.js b/assets/js/system-info.min.js index 8c0f02b..0ae65ad 100644 --- a/assets/js/system-info.min.js +++ b/assets/js/system-info.min.js @@ -1 +1 @@ -document.addEventListener("DOMContentLoaded",(function(){document.querySelector("#hcaptcha-system-info-wrap .helper").addEventListener("click",(function(){var e=document.getElementById("hcaptcha-system-info");navigator.clipboard.writeText(e.value).then((function(){}),(function(){}));var t=HCaptchaSystemInfoObject.copiedMsg;alert(t)}))})); \ No newline at end of file +document.addEventListener("DOMContentLoaded",(function(){document.querySelector("#procaptcha-system-info-wrap .helper").addEventListener("click",(function(){var e=document.getElementById("procaptcha-system-info");navigator.clipboard.writeText(e.value).then((function(){}),(function(){}));var t=PROCAPTCHASystemInfoObject.copiedMsg;alert(t)}))})); \ No newline at end of file diff --git a/src/php/ACFE/Form.php b/src/php/ACFE/Form.php index 852f6ff..3c5be02 100644 --- a/src/php/ACFE/Form.php +++ b/src/php/ACFE/Form.php @@ -2,12 +2,12 @@ /** * Form class file. * - * @package hcaptcha-wp + * @package procaptcha-wp */ -namespace HCaptcha\ACFE; +namespace PROCAPTCHA\ACFE; -use HCaptcha\Helpers\HCaptcha; +use PROCAPTCHA\Helpers\PROCAPTCHA; /** * Class Form. @@ -17,7 +17,7 @@ class Form { /** * Script handle. */ - const HANDLE = 'hcaptcha-acfe'; + const HANDLE = 'procaptcha-acfe'; /** * Render hook. @@ -58,7 +58,7 @@ public function __construct() { public function init_hooks() { add_action( 'acfe/form/render/before_fields', [ $this, 'before_fields' ] ); add_action( self::RENDER_HOOK, [ $this, 'remove_recaptcha_render' ], 8 ); - add_action( self::RENDER_HOOK, [ $this, 'add_hcaptcha' ], 11 ); + add_action( self::RENDER_HOOK, [ $this, 'add_procaptcha' ], 11 ); add_filter( self::VALIDATION_HOOK, [ $this, 'remove_recaptcha_verify' ], 9, 4 ); add_filter( self::VALIDATION_HOOK, [ $this, 'verify' ], 11, 4 ); add_action( 'wp_print_footer_scripts', [ $this, 'enqueue_scripts' ], 9 ); @@ -94,27 +94,27 @@ public function remove_recaptcha_render( array $field ) { } /** - * Replaces reCaptcha field by hCaptcha. + * Replaces reCaptcha field by procaptcha. * * @param array $field Field. * * @return void */ - public function add_hcaptcha( array $field ) { + public function add_procaptcha( array $field ) { if ( ! $this->is_recaptcha( $field ) ) { return; } $args = [ 'id' => [ - 'source' => HCaptcha::get_class_source( __CLASS__ ), + 'source' => PROCAPTCHA::get_class_source( __CLASS__ ), 'form_id' => $this->form_id, ], ]; $form = '
' . - '
' . HCaptcha::form( $args ) . '
' . + '
' . PROCAPTCHA::form( $args ) . '
' . '' . '
'; @@ -166,15 +166,15 @@ public function verify( $valid, string $value, array $field, string $input ) { 0; // phpcs:enable WordPress.Security.NonceVerification.Missing - $id = HCaptcha::get_widget_id(); + $id = PROCAPTCHA::get_widget_id(); // Avoid duplicate token: do not process during ajax validation. - // Process hcaptcha widget check when form protection is skipped. - if ( wp_doing_ajax() && apply_filters( 'hcap_protect_form', true, $id['source'], $id['form_id'] ) ) { + // Process procaptcha widget check when form protection is skipped. + if ( wp_doing_ajax() && apply_filters( 'procap_protect_form', true, $id['source'], $id['form_id'] ) ) { return $valid; } - return null === hcaptcha_request_verify( $value ); + return null === procaptcha_request_verify( $value ); } /** @@ -187,13 +187,13 @@ public function enqueue_scripts() { return; } - $min = hcap_min_suffix(); + $min = procap_min_suffix(); wp_enqueue_script( self::HANDLE, - HCAPTCHA_URL . "/assets/js/hcaptcha-acfe$min.js", - [ 'jquery', 'hcaptcha' ], - HCAPTCHA_VERSION, + PROCAPTCHA_URL . "/assets/js/procaptcha-acfe$min.js", + [ 'jquery', 'procaptcha' ], + PROCAPTCHA_VERSION, true ); } diff --git a/src/php/Abstracts/LoginBase.php b/src/php/Abstracts/LoginBase.php index 57e196f..29af141 100644 --- a/src/php/Abstracts/LoginBase.php +++ b/src/php/Abstracts/LoginBase.php @@ -2,12 +2,12 @@ /** * LoginBase class file. * - * @package hcaptcha-wp + * @package procaptcha-wp */ -namespace HCaptcha\Abstracts; +namespace PROCAPTCHA\Abstracts; -use HCaptcha\Helpers\HCaptcha; +use PROCAPTCHA\Helpers\PROCAPTCHA; use WP_Error; use WP_User; @@ -19,17 +19,17 @@ abstract class LoginBase { /** * Nonce action. */ - const ACTION = 'hcaptcha_login'; + const ACTION = 'procaptcha_login'; /** * Nonce name. */ - const NONCE = 'hcaptcha_login_nonce'; + const NONCE = 'procaptcha_login_nonce'; /** * Login attempts data option name. */ - const LOGIN_DATA = 'hcaptcha_login_data'; + const LOGIN_DATA = 'procaptcha_login_data'; /** * User IP. @@ -49,7 +49,7 @@ abstract class LoginBase { * Constructor. */ public function __construct() { - $this->ip = hcap_get_user_ip(); + $this->ip = procap_get_user_ip(); $this->login_data = get_option( self::LOGIN_DATA, [] ); if ( ! isset( $this->login_data[ $this->ip ] ) || ! is_array( $this->login_data[ $this->ip ] ) ) { @@ -96,7 +96,7 @@ public function login_failed( string $username, $error = null ) { $this->login_data[ $this->ip ][] = time(); $now = time(); - $login_interval = (int) hcaptcha()->settings()->get( 'login_interval' ); + $login_interval = (int) procaptcha()->settings()->get( 'login_interval' ); foreach ( $this->login_data as & $login_datum ) { $login_datum = array_values( @@ -128,12 +128,12 @@ public function add_captcha() { 'action' => static::ACTION, 'name' => static::NONCE, 'id' => [ - 'source' => HCaptcha::get_class_source( static::class ), + 'source' => PROCAPTCHA::get_class_source( static::class ), 'form_id' => 'login', ], ]; - HCaptcha::form_display( $args ); + PROCAPTCHA::form_display( $args ); } /** @@ -143,8 +143,8 @@ public function add_captcha() { */ protected function is_login_limit_exceeded(): bool { $now = time(); - $login_limit = (int) hcaptcha()->settings()->get( 'login_limit' ); - $login_interval = (int) hcaptcha()->settings()->get( 'login_interval' ); + $login_limit = (int) procaptcha()->settings()->get( 'login_limit' ); + $login_interval = (int) procaptcha()->settings()->get( 'login_interval' ); $login_data_for_ip = $this->login_data[ $this->ip ] ?? []; $count = count( array_filter( @@ -160,7 +160,7 @@ static function ( $time ) use ( $now, $login_interval ) { * * @param bool $is_login_limit_exceeded The protection status of a form. */ - return apply_filters( 'hcap_login_limit_exceeded', $count >= $login_limit ); + return apply_filters( 'procap_login_limit_exceeded', $count >= $login_limit ); } /** @@ -173,7 +173,7 @@ static function ( $time ) use ( $now, $login_interval ) { * @return bool */ public function protect_form( $value, array $source, $form_id ): bool { - if ( 'login' === $form_id && HCaptcha::get_class_source( static::class ) === $source ) { + if ( 'login' === $form_id && PROCAPTCHA::get_class_source( static::class ) === $source ) { return false; } diff --git a/src/php/Abstracts/LostPasswordBase.php b/src/php/Abstracts/LostPasswordBase.php index f3d0be3..10fedd1 100644 --- a/src/php/Abstracts/LostPasswordBase.php +++ b/src/php/Abstracts/LostPasswordBase.php @@ -2,12 +2,12 @@ /** * LostPasswordBase class file. * - * @package hcaptcha-wp + * @package procaptcha-wp */ -namespace HCaptcha\Abstracts; +namespace PROCAPTCHA\Abstracts; -use HCaptcha\Helpers\HCaptcha; +use PROCAPTCHA\Helpers\PROCAPTCHA; use WP_Error; /** @@ -40,12 +40,12 @@ public function add_captcha() { 'action' => static::ACTION, 'name' => static::NONCE, 'id' => [ - 'source' => HCaptcha::get_class_source( __CLASS__ ), + 'source' => PROCAPTCHA::get_class_source( __CLASS__ ), 'form_id' => 'lost_password', ], ]; - HCaptcha::form_display( $args ); + PROCAPTCHA::form_display( $args ); } /** @@ -71,11 +71,11 @@ public function verify( $errors ) { } // phpcs:enable WordPress.Security.NonceVerification.Missing - $error_message = hcaptcha_verify_post( + $error_message = procaptcha_verify_post( static::NONCE, static::ACTION ); - HCaptcha::add_error_message( $errors, $error_message ); + PROCAPTCHA::add_error_message( $errors, $error_message ); } } diff --git a/src/php/Admin/Notifications.php b/src/php/Admin/Notifications.php index 03c31ad..e258b03 100644 --- a/src/php/Admin/Notifications.php +++ b/src/php/Admin/Notifications.php @@ -2,10 +2,10 @@ /** * Notifications class file. * - * @package hcaptcha-wp + * @package procaptcha-wp */ -namespace HCaptcha\Admin; +namespace PROCAPTCHA\Admin; /** * Class Notifications. @@ -17,27 +17,27 @@ class Notifications { /** * Admin script handle. */ - const HANDLE = 'hcaptcha-notifications'; + const HANDLE = 'procaptcha-notifications'; /** * Script localization object. */ - const OBJECT = 'HCaptchaNotificationsObject'; + const OBJECT = 'PROCAPTCHANotificationsObject'; /** * Dismiss notification ajax action. */ - const DISMISS_NOTIFICATION_ACTION = 'hcaptcha-dismiss-notification'; + const DISMISS_NOTIFICATION_ACTION = 'procaptcha-dismiss-notification'; /** * Reset notifications ajax action. */ - const RESET_NOTIFICATIONS_ACTION = 'hcaptcha-reset-notifications'; + const RESET_NOTIFICATIONS_ACTION = 'procaptcha-reset-notifications'; /** * Dismissed user meta. */ - const HCAPTCHA_DISMISSED_META_KEY = 'hcaptcha_dismissed'; + const PROCAPTCHA_DISMISSED_META_KEY = 'procaptcha_dismissed'; /** * Notifications. @@ -79,68 +79,68 @@ private function init_hooks() { * @noinspection HtmlUnknownTarget */ private function init_notifications() { - $hcaptcha_url = 'https://www.hcaptcha.com/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=sk'; - $register_url = 'https://www.hcaptcha.com/signup-interstitial/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=sk'; - $pro_url = 'https://www.hcaptcha.com/pro?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=not'; - $dashboard_url = 'https://dashboard.hcaptcha.com/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=not'; - $post_leadership_url = 'https://www.hcaptcha.com/post/hcaptcha-named-a-technology-leader-in-bot-management/?r=wp&utm_source=wordpress&utm_medium=wpplugin&utm_campaign=not'; + $procaptcha_url = 'https://www.prosopo.io/'; + $register_url = 'https://www.prosopo.io/'; + $pro_url = 'https://www.prosopo.io/'; + $dashboard_url = 'https://www.prosopo.io/'; + $post_leadership_url = 'https://www.prosopo.io/'; $this->notifications = [ 'register' => [ - 'title' => __( 'Get your hCaptcha site keys', 'hcaptcha-for-forms-and-more' ), + 'title' => __( 'Get your Prosopo site keys', 'prosopoCaptcha' ), 'message' => sprintf( - /* translators: 1: hCaptcha link, 2: register link. */ - __( 'To use %1$s, please register %2$s to get your site and secret keys.', 'hcaptcha-for-forms-and-more' ), + /* translators: 1: procaptcha link, 2: register link. */ + __( 'To use %1$s, please register %2$s to get your site keys.', 'prosopoCaptcha' ), sprintf( '%2$s', - $hcaptcha_url, - __( 'hCaptcha', 'hcaptcha-for-forms-and-more' ) + $procaptcha_url, + __( 'procaptcha', 'prosopoCaptcha' ) ), sprintf( '%2$s', $register_url, - __( 'here', 'hcaptcha-for-forms-and-more' ) + __( 'here', 'prosopoCaptcha' ) ) ), 'button' => [ 'url' => $register_url, - 'text' => __( 'Get site keys', 'hcaptcha-for-forms-and-more' ), + 'text' => __( 'Get site keys', 'prosopoCaptcha' ), ], ], 'pro-free-trial' => [ - 'title' => __( 'Try Pro for free', 'hcaptcha-for-forms-and-more' ), + 'title' => __( 'Try Pro for free', 'prosopoCaptchae' ), 'message' => sprintf( - /* translators: 1: hCaptcha Pro link, 2: dashboard link. */ - __( 'Want low friction and custom themes? %1$s is for you. %2$s, no credit card required.', 'hcaptcha-for-forms-and-more' ), + /* translators: 1: procaptcha Pro link, 2: dashboard link. */ + __( 'Want low friction and custom themes? %1$s is for you. %2$s, no credit card required.', 'prosopoCaptchae' ), sprintf( '%2$s', $pro_url, - __( 'hCaptcha Pro', 'hcaptcha-for-forms-and-more' ) + __( 'procaptcha Pro', 'prosopoCaptchae' ) ), sprintf( '%2$s', $dashboard_url, - __( 'Start a free trial in your dashboard', 'hcaptcha-for-forms-and-more' ) + __( 'Start a free trial in your dashboard', 'prosopoCaptchae' ) ) ), 'button' => [ 'url' => $pro_url, - 'text' => __( 'Try Pro', 'hcaptcha-for-forms-and-more' ), + 'text' => __( 'Try Pro', 'prosopoCaptchae' ), ], ], 'post-leadership' => [ - 'title' => __( 'hCaptcha\'s Leadership', 'hcaptcha-for-forms-and-more' ), - 'message' => __( 'hCaptcha Named a Technology Leader in Bot Management: 2023 SPARK Matrix™', 'hcaptcha-for-forms-and-more' ), + 'title' => __( 'procaptcha\'s Leadership', 'prosopoCaptchae' ), + 'message' => __( 'procaptcha Named a Technology Leader in Bot Management: 2023 SPARK Matrix™', 'prosopoCaptchae' ), 'button' => [ 'url' => $post_leadership_url, - 'text' => __( 'Read post', 'hcaptcha-for-forms-and-more' ), + 'text' => __( 'Read post', 'prosopoCaptchae' ), ], ], ]; - $settings = hcaptcha()->settings(); + $settings = procaptcha()->settings(); - if ( ! empty( $settings->get_site_key() ) && ! empty( $settings->get_secret_key() ) ) { + if ( ! empty( $settings->get_site_key() ) ) { unset( $this->notifications['register'] ); } } @@ -155,7 +155,7 @@ public function show() { // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @noinspection NullPointerExceptionInspection */ - $dismissed = get_user_meta( $user->ID, self::HCAPTCHA_DISMISSED_META_KEY, true ) ?: []; + $dismissed = get_user_meta( $user->ID, self::PROCAPTCHA_DISMISSED_META_KEY, true ) ?: []; $notifications = array_diff_key( $this->notifications, array_flip( $dismissed ) ); if ( ! $notifications ) { @@ -163,9 +163,9 @@ public function show() { } ?> -
-
- +
+
+
-