From 0143325dfe539f4ec2996e0f3ae0e25af2b686ec Mon Sep 17 00:00:00 2001 From: Tyler Cote Date: Sat, 18 Nov 2023 10:37:35 -0500 Subject: [PATCH] Angular update (#183) * rebuilt dapp demo * fix build * support for TokenPauseTransaction, TokenUnpauseTransaction, TokenWipeTransaction, TokenGrantKyc, TokenRevokeKyc * TokenUnfreezeTransaction, TokenFreezeTransaction * prng transaction * rebuilt demo dapp * added a few more things to demo, removed a console log * doing update * working on upgrade * update to angular 14 * update build * fixed up allowance example * checking in * various tweaks * rebuilt demo --- CHANGELOG.md | 3 + docs/3rdpartylicenses.txt | 731 +++++++++++++++++- docs/index.html | 4 +- docs/main.09f994a493d175f3.js | 1 - docs/main.0d557f31e8179c03.js | 1 + docs/polyfills.9df2b5b4d2109f5e.js | 1 + docs/polyfills.c4926320fcde5e61.js | 1 - docs/runtime.6570018310fb27bc.js | 1 - docs/runtime.b64b4f3711fed510.js | 1 + docs/styles.51632a37bb4b3a46.css | 1 + docs/styles.cd313580d90cbe40.css | 1 - example/dapp/package-lock.json | 74 +- example/dapp/package.json | 6 +- .../allowance-approve.component.html | 11 +- .../allowance-delete.component.html | 16 +- .../allowance-delete.component.ts | 28 +- .../send-transaction.component.ts | 19 +- example/dapp/tsconfig.json | 74 +- lib/CHANGELOG.md | 6 + lib/README.md | 2 +- lib/src/hashconnect.ts | 37 + lib/src/types/hashconnect.ts | 2 + 22 files changed, 917 insertions(+), 104 deletions(-) delete mode 100644 docs/main.09f994a493d175f3.js create mode 100644 docs/main.0d557f31e8179c03.js create mode 100644 docs/polyfills.9df2b5b4d2109f5e.js delete mode 100644 docs/polyfills.c4926320fcde5e61.js delete mode 100644 docs/runtime.6570018310fb27bc.js create mode 100644 docs/runtime.b64b4f3711fed510.js create mode 100644 docs/styles.51632a37bb4b3a46.css delete mode 100644 docs/styles.cd313580d90cbe40.css diff --git a/CHANGELOG.md b/CHANGELOG.md index 474d5a54..6b45a87c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.2.5 +- lock crypto.js version to fix 'invalid decryption' bug + ## v0.2.4 - wrapped a console log in if(debug) diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt index 3df76a5b..9b3e84cf 100644 --- a/docs/3rdpartylicenses.txt +++ b/docs/3rdpartylicenses.txt @@ -16,6 +16,32 @@ MIT @angular/router MIT +@babel/runtime +MIT +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @costlydeveloper/ngx-awesome-popup MIT MIT License @@ -41,6 +67,81 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@ethersproject/abi +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/address +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/bignumber +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + @ethersproject/bytes MIT MIT License @@ -66,9 +167,84 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@ethersproject/constants +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/keccak256 +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + @ethersproject/logger MIT +@ethersproject/properties +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + @ethersproject/rlp MIT MIT License @@ -94,6 +270,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@ethersproject/strings +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + @hashgraph/cryptography Apache-2.0 @@ -516,6 +717,40 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +asn1js +BSD-3-Clause +Copyright (c) 2014, GMO GlobalSign +Copyright (c) 2015-2022, Peculiar Ventures +All rights reserved. + +Author 2014-2019, Yury Strozhevsky + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + awesome-qr Apache-2.0 Apache License @@ -722,6 +957,17 @@ Apache License +axios +MIT +# Copyright (c) 2014-present Matt Zabriskie & Collaborators + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + base64-js MIT The MIT License (MIT) @@ -752,7 +998,7 @@ MIT The MIT License (MIT) ===================== -Copyright © `<2022>` `Michael Mclaughlin` +Copyright © `<2023>` `Michael Mclaughlin` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation @@ -978,8 +1224,29 @@ SOFTWARE. -js-logger +js-sha3 MIT +Copyright 2015-2018 Chen, Yi-Cyuan + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + long Apache-2.0 @@ -1206,6 +1473,369 @@ PERFORMANCE OF THIS SOFTWARE. minimalistic-crypto-utils MIT +node-forge +(BSD-3-Clause OR GPL-2.0) +You may use the Forge project under the terms of either the BSD License or the +GNU General Public License (GPL) Version 2. + +The BSD License is recommended for most projects. It is simple and easy to +understand and it places almost no restrictions on what you can do with the +Forge project. + +If the GPL suits your project better you are also free to use Forge under +that license. + +You don't have to do anything special to choose one license or the other and +you don't have to notify anyone which license you are using. You are free to +use this project in commercial projects as long as the copyright header is +left intact. + +If you are a commercial entity and use this set of libraries in your +commercial software then reasonable payment to Digital Bazaar, if you can +afford it, is not required but is expected and would be appreciated. If this +library saves you time, then it's saving you money. The cost of developing +the Forge software was on the order of several hundred hours and tens of +thousands of dollars. We are attempting to strike a balance between helping +the development community while not being taken advantage of by lucrative +commercial entities for our efforts. + +------------------------------------------------------------------------------- +New BSD License (3-clause) +Copyright (c) 2010, Digital Bazaar, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Digital Bazaar, Inc. nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL DIGITAL BAZAAR BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------------------- + 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. + + + +pino +MIT +The MIT License (MIT) + +Copyright (c) 2016-2019 Matteo Collina, David Mark Clements and the Pino contributors + +Pino contributors listed at https://github.com/pinojs/pino#the-team and in +the README file. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + protobufjs BSD-3-Clause This license applies to all parts of protobuf.js except those files @@ -1249,6 +1879,84 @@ standalone and requires a support library to be linked with it. This support library is itself covered by the above license. +pvtsutils +MIT +MIT License + +Copyright (c) 2017-2022 Peculiar Ventures, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +pvutils +MIT +MIT License + +Copyright (c) 2016-2019, Peculiar Ventures +All rights reserved. + +Author 2016-2019, Yury Strozhevsky + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +quick-format-unescaped +MIT +The MIT License (MIT) + +Copyright (c) 2016-2019 David Mark Clements + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + rxjs Apache-2.0 Apache License @@ -1480,6 +2188,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +spark-md5 +(WTFPL OR MIT) + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2015 André Cruz + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + + ts-typed-events MIT MIT License @@ -1550,7 +2275,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2020 Google LLC. https://angular.io/license +Copyright (c) 2010-2022 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/index.html b/docs/index.html index 71857bc4..d985ac49 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,9 +4,9 @@ - + - + \ No newline at end of file diff --git a/docs/main.09f994a493d175f3.js b/docs/main.09f994a493d175f3.js deleted file mode 100644 index bf0f2de4..00000000 --- a/docs/main.09f994a493d175f3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdapp=self.webpackChunkdapp||[]).push([[179],{8923:(Me,re,G)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.proto=re.google=re.com=re.Writer=re.Reader=void 0;var a,x=g(G(5884)),S=function _(a){return a&&a.__esModule?a:{default:a}}(G(7658)),j=g(G(379));function b(a){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(b=function(c){return c?i:r})(a)}function g(a,r){if(!r&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var i=b(r);if(i&&i.has(a))return i.get(a);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if("default"!=p&&Object.prototype.hasOwnProperty.call(a,p)){var v=f?Object.getOwnPropertyDescriptor(a,p):null;v&&(v.get||v.set)?Object.defineProperty(c,p,v):c[p]=a[p]}return c.default=a,i&&i.set(a,c),c}null==(a=x.util).Long&&(console.log("Patching Protobuf Long.js instance..."),a.Long=S.default,null!=x.Reader._configure&&x.Reader._configure(x.BufferReader)),re.Reader=x.Reader,re.Writer=x.Writer,re.proto=j.proto,re.com=j.com,re.google=j.google},379:(Me,re,G)=>{"use strict";var x=function j(T,a){if(!a&&T&&T.__esModule)return T;if(null===T||"object"!=typeof T&&"function"!=typeof T)return{default:T};var r=S(a);if(r&&r.has(T))return r.get(T);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in T)if("default"!=f&&Object.prototype.hasOwnProperty.call(T,f)){var p=c?Object.getOwnPropertyDescriptor(T,f):null;p&&(p.get||p.set)?Object.defineProperty(i,f,p):i[f]=T[f]}return i.default=T,r&&r.set(T,i),i}(G(5884));function S(T){if("function"!=typeof WeakMap)return null;var a=new WeakMap,r=new WeakMap;return(S=function(i){return i?r:a})(T)}Object.defineProperty(re,"__esModule",{value:!0}),re.proto=re.google=re.default=re.com=void 0;const _=x.Reader,b=x.Writer,g=x.util,d=x.roots.hashgraph||(x.roots.hashgraph={});re.default=d;const w=d.com={hedera:{mirror:{api:{proto:{ConsensusTopicQuery:function(){function f(p){if(p)for(var v=Object.keys(p),L=0;L>>3){case 1:ee.topicID=d.proto.TopicID.decode(p,p.uint32());break;case 2:ee.consensusStartTime=d.proto.Timestamp.decode(p,p.uint32());break;case 3:ee.consensusEndTime=d.proto.Timestamp.decode(p,p.uint32());break;case 4:ee.limit=p.uint64();break;default:p.skipType(7&oe)}return ee},f}(),ConsensusTopicResponse:function(){function f(p){if(p)for(var v=Object.keys(p),L=0;L>>3){case 1:ee.consensusTimestamp=d.proto.Timestamp.decode(p,p.uint32());break;case 2:ee.message=p.bytes();break;case 3:ee.runningHash=p.bytes();break;case 4:ee.sequenceNumber=p.uint64();break;case 5:ee.runningHashVersion=p.uint64();break;case 6:ee.chunkInfo=d.proto.ConsensusMessageChunkInfo.decode(p,p.uint32());break;default:p.skipType(7&oe)}return ee},f}(),ConsensusService:function(){function f(p,v,L){x.rpc.Service.call(this,p,v,L)}return(f.prototype=Object.create(x.rpc.Service.prototype)).constructor=f,f.create=function(p,v,L){return new this(p,v,L)},Object.defineProperty(f.prototype.subscribeTopic=function p(v,L){return this.rpcCall(p,d.com.hedera.mirror.api.proto.ConsensusTopicQuery,d.com.hedera.mirror.api.proto.ConsensusTopicResponse,v,L)},"name",{value:"subscribeTopic"}),f}(),AddressBookQuery:function(){function f(p){if(p)for(var v=Object.keys(p),L=0;L>>3){case 1:ee.fileId=d.proto.FileID.decode(p,p.uint32());break;case 2:ee.limit=p.int32();break;default:p.skipType(7&oe)}return ee},f}(),NetworkService:function(){function f(p,v,L){x.rpc.Service.call(this,p,v,L)}return(f.prototype=Object.create(x.rpc.Service.prototype)).constructor=f,f.create=function(p,v,L){return new this(p,v,L)},Object.defineProperty(f.prototype.getNodes=function p(v,L){return this.rpcCall(p,d.com.hedera.mirror.api.proto.AddressBookQuery,d.proto.NodeAddress,v,L)},"name",{value:"getNodes"}),f}()}}}}};re.com=w;const k=d.proto={TransactionList:function(){function a(r){if(this.transactionList=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.transactionList&&f.transactionList.length||(f.transactionList=[]),f.transactionList.push(d.proto.Transaction.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),ShardID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.shardNum=r.int64():r.skipType(7&p);return f},a}(),RealmID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.shardNum=r.int64();break;case 2:f.realmNum=r.int64();break;default:r.skipType(7&p)}return f},a}(),AccountID:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.shardNum=i.int64();break;case 2:p.realmNum=i.int64();break;case 3:p.accountNum=i.int64();break;case 4:p.alias=i.bytes();break;default:i.skipType(7&v)}return p},a}(),FileID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.shardNum=r.int64();break;case 2:f.realmNum=r.int64();break;case 3:f.fileNum=r.int64();break;default:r.skipType(7&p)}return f},a}(),ContractID:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.shardNum=i.int64();break;case 2:p.realmNum=i.int64();break;case 3:p.contractNum=i.int64();break;case 4:p.evmAddress=i.bytes();break;default:i.skipType(7&v)}return p},a}(),TransactionID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.transactionValidStart=d.proto.Timestamp.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.scheduled=r.bool();break;case 4:f.nonce=r.int32();break;default:r.skipType(7&p)}return f},a}(),AccountAmount:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.amount=r.sint64();break;case 3:f.isApproval=r.bool();break;default:r.skipType(7&p)}return f},a}(),TransferList:function(){function a(r){if(this.accountAmounts=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.accountAmounts&&f.accountAmounts.length||(f.accountAmounts=[]),f.accountAmounts.push(d.proto.AccountAmount.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),NftTransfer:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.senderAccountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.receiverAccountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.serialNumber=r.int64();break;case 4:f.isApproval=r.bool();break;default:r.skipType(7&p)}return f},a}(),TokenTransferList:function(){function a(r){if(this.transfers=[],this.nftTransfers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.transfers&&f.transfers.length||(f.transfers=[]),f.transfers.push(d.proto.AccountAmount.decode(r,r.uint32()));break;case 3:f.nftTransfers&&f.nftTransfers.length||(f.nftTransfers=[]),f.nftTransfers.push(d.proto.NftTransfer.decode(r,r.uint32()));break;case 4:f.expectedDecimals=d.google.protobuf.UInt32Value.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),Fraction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.numerator=r.int64();break;case 2:f.denominator=r.int64();break;default:r.skipType(7&p)}return f},a}(),TopicID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.shardNum=r.int64();break;case 2:f.realmNum=r.int64();break;case 3:f.topicNum=r.int64();break;default:r.skipType(7&p)}return f},a}(),TokenID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.shardNum=r.int64();break;case 2:f.realmNum=r.int64();break;case 3:f.tokenNum=r.int64();break;default:r.skipType(7&p)}return f},a}(),ScheduleID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.shardNum=r.int64();break;case 2:f.realmNum=r.int64();break;case 3:f.scheduleNum=r.int64();break;default:r.skipType(7&p)}return f},a}(),TokenType:function(){const a={},r=Object.create(a);return r[a[0]="FUNGIBLE_COMMON"]=0,r[a[1]="NON_FUNGIBLE_UNIQUE"]=1,r}(),SubType:function(){const a={},r=Object.create(a);return r[a[0]="DEFAULT"]=0,r[a[1]="TOKEN_FUNGIBLE_COMMON"]=1,r[a[2]="TOKEN_NON_FUNGIBLE_UNIQUE"]=2,r[a[3]="TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES"]=3,r[a[4]="TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES"]=4,r[a[5]="SCHEDULE_CREATE_CONTRACT_CALL"]=5,r}(),TokenSupplyType:function(){const a={},r=Object.create(a);return r[a[0]="INFINITE"]=0,r[a[1]="FINITE"]=1,r}(),TokenFreezeStatus:function(){const a={},r=Object.create(a);return r[a[0]="FreezeNotApplicable"]=0,r[a[1]="Frozen"]=1,r[a[2]="Unfrozen"]=2,r}(),TokenKycStatus:function(){const a={},r=Object.create(a);return r[a[0]="KycNotApplicable"]=0,r[a[1]="Granted"]=1,r[a[2]="Revoked"]=2,r}(),TokenPauseStatus:function(){const a={},r=Object.create(a);return r[a[0]="PauseNotApplicable"]=0,r[a[1]="Paused"]=1,r[a[2]="Unpaused"]=2,r}(),Key:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;case 2:p.ed25519=i.bytes();break;case 3:p.RSA_3072=i.bytes();break;case 4:p.ECDSA_384=i.bytes();break;case 5:p.thresholdKey=d.proto.ThresholdKey.decode(i,i.uint32());break;case 6:p.keyList=d.proto.KeyList.decode(i,i.uint32());break;case 7:p.ECDSASecp256k1=i.bytes();break;case 8:p.delegatableContractId=d.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),ThresholdKey:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.threshold=r.uint32();break;case 2:f.keys=d.proto.KeyList.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),KeyList:function(){function a(r){if(this.keys=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.keys&&f.keys.length||(f.keys=[]),f.keys.push(d.proto.Key.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),Signature:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.contract=i.bytes();break;case 2:p.ed25519=i.bytes();break;case 3:p.RSA_3072=i.bytes();break;case 4:p.ECDSA_384=i.bytes();break;case 5:p.thresholdSignature=d.proto.ThresholdSignature.decode(i,i.uint32());break;case 6:p.signatureList=d.proto.SignatureList.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),ThresholdSignature:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.sigs=d.proto.SignatureList.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),SignatureList:function(){function a(r){if(this.sigs=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.sigs&&f.sigs.length||(f.sigs=[]),f.sigs.push(d.proto.Signature.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),SignaturePair:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.pubKeyPrefix=i.bytes();break;case 2:p.contract=i.bytes();break;case 3:p.ed25519=i.bytes();break;case 4:p.RSA_3072=i.bytes();break;case 5:p.ECDSA_384=i.bytes();break;case 6:p.ECDSASecp256k1=i.bytes();break;default:i.skipType(7&v)}return p},a}(),SignatureMap:function(){function a(r){if(this.sigPair=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.sigPair&&f.sigPair.length||(f.sigPair=[]),f.sigPair.push(d.proto.SignaturePair.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),HederaFunctionality:function(){const a={},r=Object.create(a);return r[a[0]="NONE"]=0,r[a[1]="CryptoTransfer"]=1,r[a[2]="CryptoUpdate"]=2,r[a[3]="CryptoDelete"]=3,r[a[4]="CryptoAddLiveHash"]=4,r[a[5]="CryptoDeleteLiveHash"]=5,r[a[6]="ContractCall"]=6,r[a[7]="ContractCreate"]=7,r[a[8]="ContractUpdate"]=8,r[a[9]="FileCreate"]=9,r[a[10]="FileAppend"]=10,r[a[11]="FileUpdate"]=11,r[a[12]="FileDelete"]=12,r[a[13]="CryptoGetAccountBalance"]=13,r[a[14]="CryptoGetAccountRecords"]=14,r[a[15]="CryptoGetInfo"]=15,r[a[16]="ContractCallLocal"]=16,r[a[17]="ContractGetInfo"]=17,r[a[18]="ContractGetBytecode"]=18,r[a[19]="GetBySolidityID"]=19,r[a[20]="GetByKey"]=20,r[a[21]="CryptoGetLiveHash"]=21,r[a[22]="CryptoGetStakers"]=22,r[a[23]="FileGetContents"]=23,r[a[24]="FileGetInfo"]=24,r[a[25]="TransactionGetRecord"]=25,r[a[26]="ContractGetRecords"]=26,r[a[27]="CryptoCreate"]=27,r[a[28]="SystemDelete"]=28,r[a[29]="SystemUndelete"]=29,r[a[30]="ContractDelete"]=30,r[a[31]="Freeze"]=31,r[a[32]="CreateTransactionRecord"]=32,r[a[33]="CryptoAccountAutoRenew"]=33,r[a[34]="ContractAutoRenew"]=34,r[a[35]="GetVersionInfo"]=35,r[a[36]="TransactionGetReceipt"]=36,r[a[50]="ConsensusCreateTopic"]=50,r[a[51]="ConsensusUpdateTopic"]=51,r[a[52]="ConsensusDeleteTopic"]=52,r[a[53]="ConsensusGetTopicInfo"]=53,r[a[54]="ConsensusSubmitMessage"]=54,r[a[55]="UncheckedSubmit"]=55,r[a[56]="TokenCreate"]=56,r[a[58]="TokenGetInfo"]=58,r[a[59]="TokenFreezeAccount"]=59,r[a[60]="TokenUnfreezeAccount"]=60,r[a[61]="TokenGrantKycToAccount"]=61,r[a[62]="TokenRevokeKycFromAccount"]=62,r[a[63]="TokenDelete"]=63,r[a[64]="TokenUpdate"]=64,r[a[65]="TokenMint"]=65,r[a[66]="TokenBurn"]=66,r[a[67]="TokenAccountWipe"]=67,r[a[68]="TokenAssociateToAccount"]=68,r[a[69]="TokenDissociateFromAccount"]=69,r[a[70]="ScheduleCreate"]=70,r[a[71]="ScheduleDelete"]=71,r[a[72]="ScheduleSign"]=72,r[a[73]="ScheduleGetInfo"]=73,r[a[74]="TokenGetAccountNftInfos"]=74,r[a[75]="TokenGetNftInfo"]=75,r[a[76]="TokenGetNftInfos"]=76,r[a[77]="TokenFeeScheduleUpdate"]=77,r[a[78]="NetworkGetExecutionTime"]=78,r[a[79]="TokenPause"]=79,r[a[80]="TokenUnpause"]=80,r[a[81]="CryptoApproveAllowance"]=81,r[a[82]="CryptoDeleteAllowance"]=82,r[a[83]="GetAccountDetails"]=83,r[a[84]="EthereumTransaction"]=84,r[a[85]="NodeStakeUpdate"]=85,r[a[86]="UtilPrng"]=86,r}(),FeeComponents:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.min=r.int64();break;case 2:f.max=r.int64();break;case 3:f.constant=r.int64();break;case 4:f.bpt=r.int64();break;case 5:f.vpt=r.int64();break;case 6:f.rbh=r.int64();break;case 7:f.sbh=r.int64();break;case 8:f.gas=r.int64();break;case 9:f.tv=r.int64();break;case 10:f.bpr=r.int64();break;case 11:f.sbpr=r.int64();break;default:r.skipType(7&p)}return f},a}(),TransactionFeeSchedule:function(){function a(r){if(this.fees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.hederaFunctionality=r.int32();break;case 2:f.feeData=d.proto.FeeData.decode(r,r.uint32());break;case 3:f.fees&&f.fees.length||(f.fees=[]),f.fees.push(d.proto.FeeData.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),FeeData:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.nodedata=d.proto.FeeComponents.decode(r,r.uint32());break;case 2:f.networkdata=d.proto.FeeComponents.decode(r,r.uint32());break;case 3:f.servicedata=d.proto.FeeComponents.decode(r,r.uint32());break;case 4:f.subType=r.int32();break;default:r.skipType(7&p)}return f},a}(),FeeSchedule:function(){function a(r){if(this.transactionFeeSchedule=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.transactionFeeSchedule&&f.transactionFeeSchedule.length||(f.transactionFeeSchedule=[]),f.transactionFeeSchedule.push(d.proto.TransactionFeeSchedule.decode(r,r.uint32()));break;case 2:f.expiryTime=d.proto.TimestampSeconds.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CurrentAndNextFeeSchedule:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.currentFeeSchedule=d.proto.FeeSchedule.decode(r,r.uint32());break;case 2:f.nextFeeSchedule=d.proto.FeeSchedule.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ServiceEndpoint:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.ipAddressV4=r.bytes();break;case 2:f.port=r.int32();break;default:r.skipType(7&p)}return f},a}(),NodeAddress:function(){function a(r){if(this.serviceEndpoint=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.ipAddress=r.bytes();break;case 2:f.portno=r.int32();break;case 3:f.memo=r.bytes();break;case 4:f.RSA_PubKey=r.string();break;case 5:f.nodeId=r.int64();break;case 6:f.nodeAccountId=d.proto.AccountID.decode(r,r.uint32());break;case 7:f.nodeCertHash=r.bytes();break;case 8:f.serviceEndpoint&&f.serviceEndpoint.length||(f.serviceEndpoint=[]),f.serviceEndpoint.push(d.proto.ServiceEndpoint.decode(r,r.uint32()));break;case 9:f.description=r.string();break;case 10:f.stake=r.int64();break;default:r.skipType(7&p)}return f},a}(),NodeAddressBook:function(){function a(r){if(this.nodeAddress=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.nodeAddress&&f.nodeAddress.length||(f.nodeAddress=[]),f.nodeAddress.push(d.proto.NodeAddress.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),SemanticVersion:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.major=r.int32();break;case 2:f.minor=r.int32();break;case 3:f.patch=r.int32();break;case 4:f.pre=r.string();break;case 5:f.build=r.string();break;default:r.skipType(7&p)}return f},a}(),Setting:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.name=r.string();break;case 2:f.value=r.string();break;case 3:f.data=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ServicesConfigurationList:function(){function a(r){if(this.nameValue=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.nameValue&&f.nameValue.length||(f.nameValue=[]),f.nameValue.push(d.proto.Setting.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),TokenRelationship:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.symbol=r.string();break;case 3:f.balance=r.uint64();break;case 4:f.kycStatus=r.int32();break;case 5:f.freezeStatus=r.int32();break;case 6:f.decimals=r.uint32();break;case 7:f.automaticAssociation=r.bool();break;default:r.skipType(7&p)}return f},a}(),TokenBalance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.balance=r.uint64();break;case 3:f.decimals=r.uint32();break;default:r.skipType(7&p)}return f},a}(),TokenBalances:function(){function a(r){if(this.tokenBalances=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.tokenBalances&&f.tokenBalances.length||(f.tokenBalances=[]),f.tokenBalances.push(d.proto.TokenBalance.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),TokenAssociation:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.accountId=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),StakingInfo:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.declineReward=i.bool();break;case 2:p.stakePeriodStart=d.proto.Timestamp.decode(i,i.uint32());break;case 3:p.pendingReward=i.int64();break;case 4:p.stakedToMe=i.int64();break;case 5:p.stakedAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 6:p.stakedNodeId=i.int64();break;default:i.skipType(7&v)}return p},a}(),Timestamp:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.seconds=r.int64();break;case 2:f.nanos=r.int32();break;default:r.skipType(7&p)}return f},a}(),TimestampSeconds:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.seconds=r.int64():r.skipType(7&p);return f},a}(),ConsensusCreateTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.memo=r.string();break;case 2:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 3:f.submitKey=d.proto.Key.decode(r,r.uint32());break;case 6:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 7:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),Duration:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.seconds=r.int64():r.skipType(7&p);return f},a}(),ConsensusDeleteTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.topicID=d.proto.TopicID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),ConsensusGetTopicInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.topicID=d.proto.TopicID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ConsensusGetTopicInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.topicID=d.proto.TopicID.decode(r,r.uint32());break;case 5:f.topicInfo=d.proto.ConsensusTopicInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ResponseType:function(){const a={},r=Object.create(a);return r[a[0]="ANSWER_ONLY"]=0,r[a[1]="ANSWER_STATE_PROOF"]=1,r[a[2]="COST_ANSWER"]=2,r[a[3]="COST_ANSWER_STATE_PROOF"]=3,r}(),QueryHeader:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.payment=d.proto.Transaction.decode(r,r.uint32());break;case 2:f.responseType=r.int32();break;default:r.skipType(7&p)}return f},a}(),Transaction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.body=d.proto.TransactionBody.decode(r,r.uint32());break;case 2:f.sigs=d.proto.SignatureList.decode(r,r.uint32());break;case 3:f.sigMap=d.proto.SignatureMap.decode(r,r.uint32());break;case 4:f.bodyBytes=r.bytes();break;case 5:f.signedTransactionBytes=r.bytes();break;default:r.skipType(7&p)}return f},a}(),TransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.transactionID=d.proto.TransactionID.decode(i,i.uint32());break;case 2:p.nodeAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.transactionFee=i.uint64();break;case 4:p.transactionValidDuration=d.proto.Duration.decode(i,i.uint32());break;case 5:p.generateRecord=i.bool();break;case 6:p.memo=i.string();break;case 7:p.contractCall=d.proto.ContractCallTransactionBody.decode(i,i.uint32());break;case 8:p.contractCreateInstance=d.proto.ContractCreateTransactionBody.decode(i,i.uint32());break;case 9:p.contractUpdateInstance=d.proto.ContractUpdateTransactionBody.decode(i,i.uint32());break;case 22:p.contractDeleteInstance=d.proto.ContractDeleteTransactionBody.decode(i,i.uint32());break;case 50:p.ethereumTransaction=d.proto.EthereumTransactionBody.decode(i,i.uint32());break;case 10:p.cryptoAddLiveHash=d.proto.CryptoAddLiveHashTransactionBody.decode(i,i.uint32());break;case 48:p.cryptoApproveAllowance=d.proto.CryptoApproveAllowanceTransactionBody.decode(i,i.uint32());break;case 49:p.cryptoDeleteAllowance=d.proto.CryptoDeleteAllowanceTransactionBody.decode(i,i.uint32());break;case 11:p.cryptoCreateAccount=d.proto.CryptoCreateTransactionBody.decode(i,i.uint32());break;case 12:p.cryptoDelete=d.proto.CryptoDeleteTransactionBody.decode(i,i.uint32());break;case 13:p.cryptoDeleteLiveHash=d.proto.CryptoDeleteLiveHashTransactionBody.decode(i,i.uint32());break;case 14:p.cryptoTransfer=d.proto.CryptoTransferTransactionBody.decode(i,i.uint32());break;case 15:p.cryptoUpdateAccount=d.proto.CryptoUpdateTransactionBody.decode(i,i.uint32());break;case 16:p.fileAppend=d.proto.FileAppendTransactionBody.decode(i,i.uint32());break;case 17:p.fileCreate=d.proto.FileCreateTransactionBody.decode(i,i.uint32());break;case 18:p.fileDelete=d.proto.FileDeleteTransactionBody.decode(i,i.uint32());break;case 19:p.fileUpdate=d.proto.FileUpdateTransactionBody.decode(i,i.uint32());break;case 20:p.systemDelete=d.proto.SystemDeleteTransactionBody.decode(i,i.uint32());break;case 21:p.systemUndelete=d.proto.SystemUndeleteTransactionBody.decode(i,i.uint32());break;case 23:p.freeze=d.proto.FreezeTransactionBody.decode(i,i.uint32());break;case 24:p.consensusCreateTopic=d.proto.ConsensusCreateTopicTransactionBody.decode(i,i.uint32());break;case 25:p.consensusUpdateTopic=d.proto.ConsensusUpdateTopicTransactionBody.decode(i,i.uint32());break;case 26:p.consensusDeleteTopic=d.proto.ConsensusDeleteTopicTransactionBody.decode(i,i.uint32());break;case 27:p.consensusSubmitMessage=d.proto.ConsensusSubmitMessageTransactionBody.decode(i,i.uint32());break;case 28:p.uncheckedSubmit=d.proto.UncheckedSubmitBody.decode(i,i.uint32());break;case 29:p.tokenCreation=d.proto.TokenCreateTransactionBody.decode(i,i.uint32());break;case 31:p.tokenFreeze=d.proto.TokenFreezeAccountTransactionBody.decode(i,i.uint32());break;case 32:p.tokenUnfreeze=d.proto.TokenUnfreezeAccountTransactionBody.decode(i,i.uint32());break;case 33:p.tokenGrantKyc=d.proto.TokenGrantKycTransactionBody.decode(i,i.uint32());break;case 34:p.tokenRevokeKyc=d.proto.TokenRevokeKycTransactionBody.decode(i,i.uint32());break;case 35:p.tokenDeletion=d.proto.TokenDeleteTransactionBody.decode(i,i.uint32());break;case 36:p.tokenUpdate=d.proto.TokenUpdateTransactionBody.decode(i,i.uint32());break;case 37:p.tokenMint=d.proto.TokenMintTransactionBody.decode(i,i.uint32());break;case 38:p.tokenBurn=d.proto.TokenBurnTransactionBody.decode(i,i.uint32());break;case 39:p.tokenWipe=d.proto.TokenWipeAccountTransactionBody.decode(i,i.uint32());break;case 40:p.tokenAssociate=d.proto.TokenAssociateTransactionBody.decode(i,i.uint32());break;case 41:p.tokenDissociate=d.proto.TokenDissociateTransactionBody.decode(i,i.uint32());break;case 45:p.tokenFeeScheduleUpdate=d.proto.TokenFeeScheduleUpdateTransactionBody.decode(i,i.uint32());break;case 46:p.tokenPause=d.proto.TokenPauseTransactionBody.decode(i,i.uint32());break;case 47:p.tokenUnpause=d.proto.TokenUnpauseTransactionBody.decode(i,i.uint32());break;case 42:p.scheduleCreate=d.proto.ScheduleCreateTransactionBody.decode(i,i.uint32());break;case 43:p.scheduleDelete=d.proto.ScheduleDeleteTransactionBody.decode(i,i.uint32());break;case 44:p.scheduleSign=d.proto.ScheduleSignTransactionBody.decode(i,i.uint32());break;case 51:p.nodeStakeUpdate=d.proto.NodeStakeUpdateTransactionBody.decode(i,i.uint32());break;case 52:p.utilPrng=d.proto.UtilPrngTransactionBody.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),SystemDeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 2:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;case 3:p.expirationTime=d.proto.TimestampSeconds.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),SystemUndeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 2:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),FreezeTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.startHour=r.int32();break;case 2:f.startMin=r.int32();break;case 3:f.endHour=r.int32();break;case 4:f.endMin=r.int32();break;case 5:f.updateFile=d.proto.FileID.decode(r,r.uint32());break;case 6:f.fileHash=r.bytes();break;case 7:f.startTime=d.proto.Timestamp.decode(r,r.uint32());break;case 8:f.freezeType=r.int32();break;default:r.skipType(7&p)}return f},a}(),FreezeType:function(){const a={},r=Object.create(a);return r[a[0]="UNKNOWN_FREEZE_TYPE"]=0,r[a[1]="FREEZE_ONLY"]=1,r[a[2]="PREPARE_UPGRADE"]=2,r[a[3]="FREEZE_UPGRADE"]=3,r[a[4]="FREEZE_ABORT"]=4,r[a[5]="TELEMETRY_UPGRADE"]=5,r}(),ContractCallTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 2:f.gas=r.int64();break;case 3:f.amount=r.int64();break;case 4:f.functionParameters=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ContractCreateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 16:p.initcode=i.bytes();break;case 3:p.adminKey=d.proto.Key.decode(i,i.uint32());break;case 4:p.gas=i.int64();break;case 5:p.initialBalance=i.int64();break;case 6:p.proxyAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 8:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 9:p.constructorParameters=i.bytes();break;case 10:p.shardID=d.proto.ShardID.decode(i,i.uint32());break;case 11:p.realmID=d.proto.RealmID.decode(i,i.uint32());break;case 12:p.newRealmAdminKey=d.proto.Key.decode(i,i.uint32());break;case 13:p.memo=i.string();break;case 14:p.maxAutomaticTokenAssociations=i.int32();break;case 15:p.autoRenewAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 17:p.stakedAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 18:p.stakedNodeId=i.int64();break;case 19:p.declineReward=i.bool();break;default:i.skipType(7&v)}return p},a}(),ContractUpdateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;case 2:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 3:p.adminKey=d.proto.Key.decode(i,i.uint32());break;case 6:p.proxyAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 7:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 8:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 9:p.memo=i.string();break;case 10:p.memoWrapper=d.google.protobuf.StringValue.decode(i,i.uint32());break;case 11:p.maxAutomaticTokenAssociations=d.google.protobuf.Int32Value.decode(i,i.uint32());break;case 12:p.autoRenewAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 13:p.stakedAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 14:p.stakedNodeId=i.int64();break;case 15:p.declineReward=d.google.protobuf.BoolValue.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),LiveHash:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountId=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.hash=r.bytes();break;case 3:f.keys=d.proto.KeyList.decode(r,r.uint32());break;case 5:f.duration=d.proto.Duration.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoAddLiveHashTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.liveHash=d.proto.LiveHash.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),CryptoCreateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.key=d.proto.Key.decode(i,i.uint32());break;case 2:p.initialBalance=i.uint64();break;case 3:p.proxyAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 6:p.sendRecordThreshold=i.uint64();break;case 7:p.receiveRecordThreshold=i.uint64();break;case 8:p.receiverSigRequired=i.bool();break;case 9:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 10:p.shardID=d.proto.ShardID.decode(i,i.uint32());break;case 11:p.realmID=d.proto.RealmID.decode(i,i.uint32());break;case 12:p.newRealmAdminKey=d.proto.Key.decode(i,i.uint32());break;case 13:p.memo=i.string();break;case 14:p.maxAutomaticTokenAssociations=i.int32();break;case 15:p.stakedAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 16:p.stakedNodeId=i.int64();break;case 17:p.declineReward=i.bool();break;case 18:p.alias=i.bytes();break;default:i.skipType(7&v)}return p},a}(),CryptoDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.transferAccountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.deleteAccountID=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoDeleteLiveHashTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountOfLiveHash=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.liveHashToDelete=r.bytes();break;default:r.skipType(7&p)}return f},a}(),CryptoTransferTransactionBody:function(){function a(r){if(this.tokenTransfers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.transfers=d.proto.TransferList.decode(r,r.uint32());break;case 2:f.tokenTransfers&&f.tokenTransfers.length||(f.tokenTransfers=[]),f.tokenTransfers.push(d.proto.TokenTransferList.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),CryptoUpdateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 2:p.accountIDToUpdate=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.key=d.proto.Key.decode(i,i.uint32());break;case 4:p.proxyAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 5:p.proxyFraction=i.int32();break;case 6:p.sendRecordThreshold=i.uint64();break;case 11:p.sendRecordThresholdWrapper=d.google.protobuf.UInt64Value.decode(i,i.uint32());break;case 7:p.receiveRecordThreshold=i.uint64();break;case 12:p.receiveRecordThresholdWrapper=d.google.protobuf.UInt64Value.decode(i,i.uint32());break;case 8:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 9:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 10:p.receiverSigRequired=i.bool();break;case 13:p.receiverSigRequiredWrapper=d.google.protobuf.BoolValue.decode(i,i.uint32());break;case 14:p.memo=d.google.protobuf.StringValue.decode(i,i.uint32());break;case 15:p.maxAutomaticTokenAssociations=d.google.protobuf.Int32Value.decode(i,i.uint32());break;case 16:p.stakedAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 17:p.stakedNodeId=i.int64();break;case 18:p.declineReward=d.google.protobuf.BoolValue.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),CryptoApproveAllowanceTransactionBody:function(){function a(r){if(this.cryptoAllowances=[],this.nftAllowances=[],this.tokenAllowances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.cryptoAllowances&&f.cryptoAllowances.length||(f.cryptoAllowances=[]),f.cryptoAllowances.push(d.proto.CryptoAllowance.decode(r,r.uint32()));break;case 2:f.nftAllowances&&f.nftAllowances.length||(f.nftAllowances=[]),f.nftAllowances.push(d.proto.NftAllowance.decode(r,r.uint32()));break;case 3:f.tokenAllowances&&f.tokenAllowances.length||(f.tokenAllowances=[]),f.tokenAllowances.push(d.proto.TokenAllowance.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),CryptoAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.owner=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.spender=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.amount=r.int64();break;default:r.skipType(7&p)}return f},a}(),NftAllowance:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.owner=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.spender=d.proto.AccountID.decode(r,r.uint32());break;case 4:if(f.serialNumbers&&f.serialNumbers.length||(f.serialNumbers=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.owner=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.spender=d.proto.AccountID.decode(r,r.uint32());break;case 4:f.amount=r.int64();break;default:r.skipType(7&p)}return f},a}(),CryptoDeleteAllowanceTransactionBody:function(){function a(r){if(this.nftAllowances=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.nftAllowances&&f.nftAllowances.length||(f.nftAllowances=[]),f.nftAllowances.push(d.proto.NftRemoveAllowance.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),NftRemoveAllowance:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.owner=d.proto.AccountID.decode(r,r.uint32());break;case 3:if(f.serialNumbers&&f.serialNumbers.length||(f.serialNumbers=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.ethereumData=r.bytes();break;case 2:f.callData=d.proto.FileID.decode(r,r.uint32());break;case 3:f.maxGasAllowance=r.int64();break;default:r.skipType(7&p)}return f},a}(),FileAppendTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 2:f.fileID=d.proto.FileID.decode(r,r.uint32());break;case 4:f.contents=r.bytes();break;default:r.skipType(7&p)}return f},a}(),FileCreateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 2:f.expirationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 3:f.keys=d.proto.KeyList.decode(r,r.uint32());break;case 4:f.contents=r.bytes();break;case 5:f.shardID=d.proto.ShardID.decode(r,r.uint32());break;case 6:f.realmID=d.proto.RealmID.decode(r,r.uint32());break;case 7:f.newRealmAdminKey=d.proto.Key.decode(r,r.uint32());break;case 8:f.memo=r.string();break;default:r.skipType(7&p)}return f},a}(),FileDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.fileID=d.proto.FileID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),FileUpdateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.fileID=d.proto.FileID.decode(r,r.uint32());break;case 2:f.expirationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 3:f.keys=d.proto.KeyList.decode(r,r.uint32());break;case 4:f.contents=r.bytes();break;case 5:f.memo=d.google.protobuf.StringValue.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractDeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;case 2:p.transferAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.transferContractID=d.proto.ContractID.decode(i,i.uint32());break;case 4:p.permanentRemoval=i.bool();break;default:i.skipType(7&v)}return p},a}(),ConsensusUpdateTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.topicID=d.proto.TopicID.decode(r,r.uint32());break;case 2:f.memo=d.google.protobuf.StringValue.decode(r,r.uint32());break;case 4:f.expirationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 6:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 7:f.submitKey=d.proto.Key.decode(r,r.uint32());break;case 8:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 9:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ConsensusMessageChunkInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.initialTransactionID=d.proto.TransactionID.decode(r,r.uint32());break;case 2:f.total=r.int32();break;case 3:f.number=r.int32();break;default:r.skipType(7&p)}return f},a}(),ConsensusSubmitMessageTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.topicID=d.proto.TopicID.decode(r,r.uint32());break;case 2:f.message=r.bytes();break;case 3:f.chunkInfo=d.proto.ConsensusMessageChunkInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),UncheckedSubmitBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.transactionBytes=r.bytes():r.skipType(7&p);return f},a}(),TokenCreateTransactionBody:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.name=r.string();break;case 2:f.symbol=r.string();break;case 3:f.decimals=r.uint32();break;case 4:f.initialSupply=r.uint64();break;case 5:f.treasury=d.proto.AccountID.decode(r,r.uint32());break;case 6:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 7:f.kycKey=d.proto.Key.decode(r,r.uint32());break;case 8:f.freezeKey=d.proto.Key.decode(r,r.uint32());break;case 9:f.wipeKey=d.proto.Key.decode(r,r.uint32());break;case 10:f.supplyKey=d.proto.Key.decode(r,r.uint32());break;case 11:f.freezeDefault=r.bool();break;case 13:f.expiry=d.proto.Timestamp.decode(r,r.uint32());break;case 14:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;case 15:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 16:f.memo=r.string();break;case 17:f.tokenType=r.int32();break;case 18:f.supplyType=r.int32();break;case 19:f.maxSupply=r.int64();break;case 20:f.feeScheduleKey=d.proto.Key.decode(r,r.uint32());break;case 21:f.customFees&&f.customFees.length||(f.customFees=[]),f.customFees.push(d.proto.CustomFee.decode(r,r.uint32()));break;case 22:f.pauseKey=d.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),FractionalFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.fractionalAmount=d.proto.Fraction.decode(r,r.uint32());break;case 2:f.minimumAmount=r.int64();break;case 3:f.maximumAmount=r.int64();break;case 4:f.netOfTransfers=r.bool();break;default:r.skipType(7&p)}return f},a}(),FixedFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.amount=r.int64();break;case 2:f.denominatingTokenId=d.proto.TokenID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),RoyaltyFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.exchangeValueFraction=d.proto.Fraction.decode(r,r.uint32());break;case 2:f.fallbackFee=d.proto.FixedFee.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CustomFee:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fixedFee=d.proto.FixedFee.decode(i,i.uint32());break;case 2:p.fractionalFee=d.proto.FractionalFee.decode(i,i.uint32());break;case 4:p.royaltyFee=d.proto.RoyaltyFee.decode(i,i.uint32());break;case 3:p.feeCollectorAccountId=d.proto.AccountID.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),AssessedCustomFee:function(){function a(r){if(this.effectivePayerAccountId=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.amount=r.int64();break;case 2:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 3:f.feeCollectorAccountId=d.proto.AccountID.decode(r,r.uint32());break;case 4:f.effectivePayerAccountId&&f.effectivePayerAccountId.length||(f.effectivePayerAccountId=[]),f.effectivePayerAccountId.push(d.proto.AccountID.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TokenFreezeAccountTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.account=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenUnfreezeAccountTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.account=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenGrantKycTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.account=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenRevokeKycTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.account=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.token=d.proto.TokenID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),TokenUpdateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.symbol=r.string();break;case 3:f.name=r.string();break;case 4:f.treasury=d.proto.AccountID.decode(r,r.uint32());break;case 5:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 6:f.kycKey=d.proto.Key.decode(r,r.uint32());break;case 7:f.freezeKey=d.proto.Key.decode(r,r.uint32());break;case 8:f.wipeKey=d.proto.Key.decode(r,r.uint32());break;case 9:f.supplyKey=d.proto.Key.decode(r,r.uint32());break;case 10:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;case 11:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 12:f.expiry=d.proto.Timestamp.decode(r,r.uint32());break;case 13:f.memo=d.google.protobuf.StringValue.decode(r,r.uint32());break;case 14:f.feeScheduleKey=d.proto.Key.decode(r,r.uint32());break;case 15:f.pauseKey=d.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenMintTransactionBody:function(){function a(r){if(this.metadata=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.amount=r.uint64();break;case 3:f.metadata&&f.metadata.length||(f.metadata=[]),f.metadata.push(r.bytes());break;default:r.skipType(7&p)}return f},a}(),TokenBurnTransactionBody:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.amount=r.uint64();break;case 3:if(f.serialNumbers&&f.serialNumbers.length||(f.serialNumbers=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.token=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.account=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.amount=r.uint64();break;case 4:if(f.serialNumbers&&f.serialNumbers.length||(f.serialNumbers=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.account=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.tokens&&f.tokens.length||(f.tokens=[]),f.tokens.push(d.proto.TokenID.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TokenDissociateTransactionBody:function(){function a(r){if(this.tokens=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.account=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.tokens&&f.tokens.length||(f.tokens=[]),f.tokens.push(d.proto.TokenID.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TokenFeeScheduleUpdateTransactionBody:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.customFees&&f.customFees.length||(f.customFees=[]),f.customFees.push(d.proto.CustomFee.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TokenPauseTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.token=d.proto.TokenID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),TokenUnpauseTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.token=d.proto.TokenID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),ScheduleCreateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.scheduledTransactionBody=d.proto.SchedulableTransactionBody.decode(r,r.uint32());break;case 2:f.memo=r.string();break;case 3:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 4:f.payerAccountID=d.proto.AccountID.decode(r,r.uint32());break;case 5:f.expirationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 13:f.waitForExpiry=r.bool();break;default:r.skipType(7&p)}return f},a}(),SchedulableTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.transactionFee=i.uint64();break;case 2:p.memo=i.string();break;case 3:p.contractCall=d.proto.ContractCallTransactionBody.decode(i,i.uint32());break;case 4:p.contractCreateInstance=d.proto.ContractCreateTransactionBody.decode(i,i.uint32());break;case 5:p.contractUpdateInstance=d.proto.ContractUpdateTransactionBody.decode(i,i.uint32());break;case 6:p.contractDeleteInstance=d.proto.ContractDeleteTransactionBody.decode(i,i.uint32());break;case 37:p.cryptoApproveAllowance=d.proto.CryptoApproveAllowanceTransactionBody.decode(i,i.uint32());break;case 38:p.cryptoDeleteAllowance=d.proto.CryptoDeleteAllowanceTransactionBody.decode(i,i.uint32());break;case 7:p.cryptoCreateAccount=d.proto.CryptoCreateTransactionBody.decode(i,i.uint32());break;case 8:p.cryptoDelete=d.proto.CryptoDeleteTransactionBody.decode(i,i.uint32());break;case 9:p.cryptoTransfer=d.proto.CryptoTransferTransactionBody.decode(i,i.uint32());break;case 10:p.cryptoUpdateAccount=d.proto.CryptoUpdateTransactionBody.decode(i,i.uint32());break;case 11:p.fileAppend=d.proto.FileAppendTransactionBody.decode(i,i.uint32());break;case 12:p.fileCreate=d.proto.FileCreateTransactionBody.decode(i,i.uint32());break;case 13:p.fileDelete=d.proto.FileDeleteTransactionBody.decode(i,i.uint32());break;case 14:p.fileUpdate=d.proto.FileUpdateTransactionBody.decode(i,i.uint32());break;case 15:p.systemDelete=d.proto.SystemDeleteTransactionBody.decode(i,i.uint32());break;case 16:p.systemUndelete=d.proto.SystemUndeleteTransactionBody.decode(i,i.uint32());break;case 17:p.freeze=d.proto.FreezeTransactionBody.decode(i,i.uint32());break;case 18:p.consensusCreateTopic=d.proto.ConsensusCreateTopicTransactionBody.decode(i,i.uint32());break;case 19:p.consensusUpdateTopic=d.proto.ConsensusUpdateTopicTransactionBody.decode(i,i.uint32());break;case 20:p.consensusDeleteTopic=d.proto.ConsensusDeleteTopicTransactionBody.decode(i,i.uint32());break;case 21:p.consensusSubmitMessage=d.proto.ConsensusSubmitMessageTransactionBody.decode(i,i.uint32());break;case 22:p.tokenCreation=d.proto.TokenCreateTransactionBody.decode(i,i.uint32());break;case 23:p.tokenFreeze=d.proto.TokenFreezeAccountTransactionBody.decode(i,i.uint32());break;case 24:p.tokenUnfreeze=d.proto.TokenUnfreezeAccountTransactionBody.decode(i,i.uint32());break;case 25:p.tokenGrantKyc=d.proto.TokenGrantKycTransactionBody.decode(i,i.uint32());break;case 26:p.tokenRevokeKyc=d.proto.TokenRevokeKycTransactionBody.decode(i,i.uint32());break;case 27:p.tokenDeletion=d.proto.TokenDeleteTransactionBody.decode(i,i.uint32());break;case 28:p.tokenUpdate=d.proto.TokenUpdateTransactionBody.decode(i,i.uint32());break;case 29:p.tokenMint=d.proto.TokenMintTransactionBody.decode(i,i.uint32());break;case 30:p.tokenBurn=d.proto.TokenBurnTransactionBody.decode(i,i.uint32());break;case 31:p.tokenWipe=d.proto.TokenWipeAccountTransactionBody.decode(i,i.uint32());break;case 32:p.tokenAssociate=d.proto.TokenAssociateTransactionBody.decode(i,i.uint32());break;case 33:p.tokenDissociate=d.proto.TokenDissociateTransactionBody.decode(i,i.uint32());break;case 39:p.tokenFeeScheduleUpdate=d.proto.TokenFeeScheduleUpdateTransactionBody.decode(i,i.uint32());break;case 35:p.tokenPause=d.proto.TokenPauseTransactionBody.decode(i,i.uint32());break;case 36:p.tokenUnpause=d.proto.TokenUnpauseTransactionBody.decode(i,i.uint32());break;case 34:p.scheduleDelete=d.proto.ScheduleDeleteTransactionBody.decode(i,i.uint32());break;case 40:p.utilPrng=d.proto.UtilPrngTransactionBody.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),ScheduleDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.scheduleID=d.proto.ScheduleID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),UtilPrngTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.range=r.int32():r.skipType(7&p);return f},a}(),ScheduleSignTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.scheduleID=d.proto.ScheduleID.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),NodeStakeUpdateTransactionBody:function(){function a(r){if(this.nodeStake=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.endOfStakingPeriod=d.proto.Timestamp.decode(r,r.uint32());break;case 2:f.nodeStake&&f.nodeStake.length||(f.nodeStake=[]),f.nodeStake.push(d.proto.NodeStake.decode(r,r.uint32()));break;case 3:f.maxStakingRewardRatePerHbar=r.int64();break;case 4:f.nodeRewardFeeFraction=d.proto.Fraction.decode(r,r.uint32());break;case 5:f.stakingPeriodsStored=r.int64();break;case 6:f.stakingPeriod=r.int64();break;case 7:f.stakingRewardFeeFraction=d.proto.Fraction.decode(r,r.uint32());break;case 8:f.stakingStartThreshold=r.int64();break;case 9:f.stakingRewardRate=r.int64();break;default:r.skipType(7&p)}return f},a}(),NodeStake:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.maxStake=r.int64();break;case 2:f.minStake=r.int64();break;case 3:f.nodeId=r.int64();break;case 4:f.rewardRate=r.int64();break;case 5:f.stake=r.int64();break;case 6:f.stakeNotRewarded=r.int64();break;case 7:f.stakeRewarded=r.int64();break;default:r.skipType(7&p)}return f},a}(),ResponseHeader:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.nodeTransactionPrecheckCode=r.int32();break;case 2:f.responseType=r.int32();break;case 3:f.cost=r.uint64();break;case 4:f.stateProof=r.bytes();break;default:r.skipType(7&p)}return f},a}(),TransactionResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.nodeTransactionPrecheckCode=r.int32();break;case 2:f.cost=r.uint64();break;default:r.skipType(7&p)}return f},a}(),ResponseCodeEnum:function(){const a={},r=Object.create(a);return r[a[0]="OK"]=0,r[a[1]="INVALID_TRANSACTION"]=1,r[a[2]="PAYER_ACCOUNT_NOT_FOUND"]=2,r[a[3]="INVALID_NODE_ACCOUNT"]=3,r[a[4]="TRANSACTION_EXPIRED"]=4,r[a[5]="INVALID_TRANSACTION_START"]=5,r[a[6]="INVALID_TRANSACTION_DURATION"]=6,r[a[7]="INVALID_SIGNATURE"]=7,r[a[8]="MEMO_TOO_LONG"]=8,r[a[9]="INSUFFICIENT_TX_FEE"]=9,r[a[10]="INSUFFICIENT_PAYER_BALANCE"]=10,r[a[11]="DUPLICATE_TRANSACTION"]=11,r[a[12]="BUSY"]=12,r[a[13]="NOT_SUPPORTED"]=13,r[a[14]="INVALID_FILE_ID"]=14,r[a[15]="INVALID_ACCOUNT_ID"]=15,r[a[16]="INVALID_CONTRACT_ID"]=16,r[a[17]="INVALID_TRANSACTION_ID"]=17,r[a[18]="RECEIPT_NOT_FOUND"]=18,r[a[19]="RECORD_NOT_FOUND"]=19,r[a[20]="INVALID_SOLIDITY_ID"]=20,r[a[21]="UNKNOWN"]=21,r[a[22]="SUCCESS"]=22,r[a[23]="FAIL_INVALID"]=23,r[a[24]="FAIL_FEE"]=24,r[a[25]="FAIL_BALANCE"]=25,r[a[26]="KEY_REQUIRED"]=26,r[a[27]="BAD_ENCODING"]=27,r[a[28]="INSUFFICIENT_ACCOUNT_BALANCE"]=28,r[a[29]="INVALID_SOLIDITY_ADDRESS"]=29,r[a[30]="INSUFFICIENT_GAS"]=30,r[a[31]="CONTRACT_SIZE_LIMIT_EXCEEDED"]=31,r[a[32]="LOCAL_CALL_MODIFICATION_EXCEPTION"]=32,r[a[33]="CONTRACT_REVERT_EXECUTED"]=33,r[a[34]="CONTRACT_EXECUTION_EXCEPTION"]=34,r[a[35]="INVALID_RECEIVING_NODE_ACCOUNT"]=35,r[a[36]="MISSING_QUERY_HEADER"]=36,r[a[37]="ACCOUNT_UPDATE_FAILED"]=37,r[a[38]="INVALID_KEY_ENCODING"]=38,r[a[39]="NULL_SOLIDITY_ADDRESS"]=39,r[a[40]="CONTRACT_UPDATE_FAILED"]=40,r[a[41]="INVALID_QUERY_HEADER"]=41,r[a[42]="INVALID_FEE_SUBMITTED"]=42,r[a[43]="INVALID_PAYER_SIGNATURE"]=43,r[a[44]="KEY_NOT_PROVIDED"]=44,r[a[45]="INVALID_EXPIRATION_TIME"]=45,r[a[46]="NO_WACL_KEY"]=46,r[a[47]="FILE_CONTENT_EMPTY"]=47,r[a[48]="INVALID_ACCOUNT_AMOUNTS"]=48,r[a[49]="EMPTY_TRANSACTION_BODY"]=49,r[a[50]="INVALID_TRANSACTION_BODY"]=50,r[a[51]="INVALID_SIGNATURE_TYPE_MISMATCHING_KEY"]=51,r[a[52]="INVALID_SIGNATURE_COUNT_MISMATCHING_KEY"]=52,r[a[53]="EMPTY_LIVE_HASH_BODY"]=53,r[a[54]="EMPTY_LIVE_HASH"]=54,r[a[55]="EMPTY_LIVE_HASH_KEYS"]=55,r[a[56]="INVALID_LIVE_HASH_SIZE"]=56,r[a[57]="EMPTY_QUERY_BODY"]=57,r[a[58]="EMPTY_LIVE_HASH_QUERY"]=58,r[a[59]="LIVE_HASH_NOT_FOUND"]=59,r[a[60]="ACCOUNT_ID_DOES_NOT_EXIST"]=60,r[a[61]="LIVE_HASH_ALREADY_EXISTS"]=61,r[a[62]="INVALID_FILE_WACL"]=62,r[a[63]="SERIALIZATION_FAILED"]=63,r[a[64]="TRANSACTION_OVERSIZE"]=64,r[a[65]="TRANSACTION_TOO_MANY_LAYERS"]=65,r[a[66]="CONTRACT_DELETED"]=66,r[a[67]="PLATFORM_NOT_ACTIVE"]=67,r[a[68]="KEY_PREFIX_MISMATCH"]=68,r[a[69]="PLATFORM_TRANSACTION_NOT_CREATED"]=69,r[a[70]="INVALID_RENEWAL_PERIOD"]=70,r[a[71]="INVALID_PAYER_ACCOUNT_ID"]=71,r[a[72]="ACCOUNT_DELETED"]=72,r[a[73]="FILE_DELETED"]=73,r[a[74]="ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS"]=74,r[a[75]="SETTING_NEGATIVE_ACCOUNT_BALANCE"]=75,r[a[76]="OBTAINER_REQUIRED"]=76,r[a[77]="OBTAINER_SAME_CONTRACT_ID"]=77,r[a[78]="OBTAINER_DOES_NOT_EXIST"]=78,r[a[79]="MODIFYING_IMMUTABLE_CONTRACT"]=79,r[a[80]="FILE_SYSTEM_EXCEPTION"]=80,r[a[81]="AUTORENEW_DURATION_NOT_IN_RANGE"]=81,r[a[82]="ERROR_DECODING_BYTESTRING"]=82,r[a[83]="CONTRACT_FILE_EMPTY"]=83,r[a[84]="CONTRACT_BYTECODE_EMPTY"]=84,r[a[85]="INVALID_INITIAL_BALANCE"]=85,r[a[86]="INVALID_RECEIVE_RECORD_THRESHOLD"]=86,r[a[87]="INVALID_SEND_RECORD_THRESHOLD"]=87,r[a[88]="ACCOUNT_IS_NOT_GENESIS_ACCOUNT"]=88,r[a[89]="PAYER_ACCOUNT_UNAUTHORIZED"]=89,r[a[90]="INVALID_FREEZE_TRANSACTION_BODY"]=90,r[a[91]="FREEZE_TRANSACTION_BODY_NOT_FOUND"]=91,r[a[92]="TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=92,r[a[93]="RESULT_SIZE_LIMIT_EXCEEDED"]=93,r[a[94]="NOT_SPECIAL_ACCOUNT"]=94,r[a[95]="CONTRACT_NEGATIVE_GAS"]=95,r[a[96]="CONTRACT_NEGATIVE_VALUE"]=96,r[a[97]="INVALID_FEE_FILE"]=97,r[a[98]="INVALID_EXCHANGE_RATE_FILE"]=98,r[a[99]="INSUFFICIENT_LOCAL_CALL_GAS"]=99,r[a[100]="ENTITY_NOT_ALLOWED_TO_DELETE"]=100,r[a[101]="AUTHORIZATION_FAILED"]=101,r[a[102]="FILE_UPLOADED_PROTO_INVALID"]=102,r[a[103]="FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK"]=103,r[a[104]="FEE_SCHEDULE_FILE_PART_UPLOADED"]=104,r[a[105]="EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED"]=105,r[a[106]="MAX_CONTRACT_STORAGE_EXCEEDED"]=106,r[a[107]="TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT"]=107,r[a[108]="TOTAL_LEDGER_BALANCE_INVALID"]=108,r[a[110]="EXPIRATION_REDUCTION_NOT_ALLOWED"]=110,r[a[111]="MAX_GAS_LIMIT_EXCEEDED"]=111,r[a[112]="MAX_FILE_SIZE_EXCEEDED"]=112,r[a[113]="RECEIVER_SIG_REQUIRED"]=113,r[a[150]="INVALID_TOPIC_ID"]=150,r[a[155]="INVALID_ADMIN_KEY"]=155,r[a[156]="INVALID_SUBMIT_KEY"]=156,r[a[157]="UNAUTHORIZED"]=157,r[a[158]="INVALID_TOPIC_MESSAGE"]=158,r[a[159]="INVALID_AUTORENEW_ACCOUNT"]=159,r[a[160]="AUTORENEW_ACCOUNT_NOT_ALLOWED"]=160,r[a[162]="TOPIC_EXPIRED"]=162,r[a[163]="INVALID_CHUNK_NUMBER"]=163,r[a[164]="INVALID_CHUNK_TRANSACTION_ID"]=164,r[a[165]="ACCOUNT_FROZEN_FOR_TOKEN"]=165,r[a[166]="TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED"]=166,r[a[167]="INVALID_TOKEN_ID"]=167,r[a[168]="INVALID_TOKEN_DECIMALS"]=168,r[a[169]="INVALID_TOKEN_INITIAL_SUPPLY"]=169,r[a[170]="INVALID_TREASURY_ACCOUNT_FOR_TOKEN"]=170,r[a[171]="INVALID_TOKEN_SYMBOL"]=171,r[a[172]="TOKEN_HAS_NO_FREEZE_KEY"]=172,r[a[173]="TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN"]=173,r[a[174]="MISSING_TOKEN_SYMBOL"]=174,r[a[175]="TOKEN_SYMBOL_TOO_LONG"]=175,r[a[176]="ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN"]=176,r[a[177]="TOKEN_HAS_NO_KYC_KEY"]=177,r[a[178]="INSUFFICIENT_TOKEN_BALANCE"]=178,r[a[179]="TOKEN_WAS_DELETED"]=179,r[a[180]="TOKEN_HAS_NO_SUPPLY_KEY"]=180,r[a[181]="TOKEN_HAS_NO_WIPE_KEY"]=181,r[a[182]="INVALID_TOKEN_MINT_AMOUNT"]=182,r[a[183]="INVALID_TOKEN_BURN_AMOUNT"]=183,r[a[184]="TOKEN_NOT_ASSOCIATED_TO_ACCOUNT"]=184,r[a[185]="CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT"]=185,r[a[186]="INVALID_KYC_KEY"]=186,r[a[187]="INVALID_WIPE_KEY"]=187,r[a[188]="INVALID_FREEZE_KEY"]=188,r[a[189]="INVALID_SUPPLY_KEY"]=189,r[a[190]="MISSING_TOKEN_NAME"]=190,r[a[191]="TOKEN_NAME_TOO_LONG"]=191,r[a[192]="INVALID_WIPING_AMOUNT"]=192,r[a[193]="TOKEN_IS_IMMUTABLE"]=193,r[a[194]="TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT"]=194,r[a[195]="TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES"]=195,r[a[196]="ACCOUNT_IS_TREASURY"]=196,r[a[197]="TOKEN_ID_REPEATED_IN_TOKEN_LIST"]=197,r[a[198]="TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=198,r[a[199]="EMPTY_TOKEN_TRANSFER_BODY"]=199,r[a[200]="EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS"]=200,r[a[201]="INVALID_SCHEDULE_ID"]=201,r[a[202]="SCHEDULE_IS_IMMUTABLE"]=202,r[a[203]="INVALID_SCHEDULE_PAYER_ID"]=203,r[a[204]="INVALID_SCHEDULE_ACCOUNT_ID"]=204,r[a[205]="NO_NEW_VALID_SIGNATURES"]=205,r[a[206]="UNRESOLVABLE_REQUIRED_SIGNERS"]=206,r[a[207]="SCHEDULED_TRANSACTION_NOT_IN_WHITELIST"]=207,r[a[208]="SOME_SIGNATURES_WERE_INVALID"]=208,r[a[209]="TRANSACTION_ID_FIELD_NOT_ALLOWED"]=209,r[a[210]="IDENTICAL_SCHEDULE_ALREADY_CREATED"]=210,r[a[211]="INVALID_ZERO_BYTE_IN_STRING"]=211,r[a[212]="SCHEDULE_ALREADY_DELETED"]=212,r[a[213]="SCHEDULE_ALREADY_EXECUTED"]=213,r[a[214]="MESSAGE_SIZE_TOO_LARGE"]=214,r[a[215]="OPERATION_REPEATED_IN_BUCKET_GROUPS"]=215,r[a[216]="BUCKET_CAPACITY_OVERFLOW"]=216,r[a[217]="NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION"]=217,r[a[218]="BUCKET_HAS_NO_THROTTLE_GROUPS"]=218,r[a[219]="THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC"]=219,r[a[220]="SUCCESS_BUT_MISSING_EXPECTED_OPERATION"]=220,r[a[221]="UNPARSEABLE_THROTTLE_DEFINITIONS"]=221,r[a[222]="INVALID_THROTTLE_DEFINITIONS"]=222,r[a[223]="ACCOUNT_EXPIRED_AND_PENDING_REMOVAL"]=223,r[a[224]="INVALID_TOKEN_MAX_SUPPLY"]=224,r[a[225]="INVALID_TOKEN_NFT_SERIAL_NUMBER"]=225,r[a[226]="INVALID_NFT_ID"]=226,r[a[227]="METADATA_TOO_LONG"]=227,r[a[228]="BATCH_SIZE_LIMIT_EXCEEDED"]=228,r[a[229]="INVALID_QUERY_RANGE"]=229,r[a[230]="FRACTION_DIVIDES_BY_ZERO"]=230,r[a[231]="INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]=231,r[a[232]="CUSTOM_FEES_LIST_TOO_LONG"]=232,r[a[233]="INVALID_CUSTOM_FEE_COLLECTOR"]=233,r[a[234]="INVALID_TOKEN_ID_IN_CUSTOM_FEES"]=234,r[a[235]="TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR"]=235,r[a[236]="TOKEN_MAX_SUPPLY_REACHED"]=236,r[a[237]="SENDER_DOES_NOT_OWN_NFT_SERIAL_NO"]=237,r[a[238]="CUSTOM_FEE_NOT_FULLY_SPECIFIED"]=238,r[a[239]="CUSTOM_FEE_MUST_BE_POSITIVE"]=239,r[a[240]="TOKEN_HAS_NO_FEE_SCHEDULE_KEY"]=240,r[a[241]="CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE"]=241,r[a[242]="ROYALTY_FRACTION_CANNOT_EXCEED_ONE"]=242,r[a[243]="FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT"]=243,r[a[244]="CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES"]=244,r[a[245]="CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON"]=245,r[a[246]="CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=246,r[a[247]="INVALID_CUSTOM_FEE_SCHEDULE_KEY"]=247,r[a[248]="INVALID_TOKEN_MINT_METADATA"]=248,r[a[249]="INVALID_TOKEN_BURN_METADATA"]=249,r[a[250]="CURRENT_TREASURY_STILL_OWNS_NFTS"]=250,r[a[251]="ACCOUNT_STILL_OWNS_NFTS"]=251,r[a[252]="TREASURY_MUST_OWN_BURNED_NFT"]=252,r[a[253]="ACCOUNT_DOES_NOT_OWN_WIPED_NFT"]=253,r[a[254]="ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=254,r[a[255]="MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED"]=255,r[a[256]="PAYER_ACCOUNT_DELETED"]=256,r[a[257]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH"]=257,r[a[258]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS"]=258,r[a[259]="INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"]=259,r[a[260]="SERIAL_NUMBER_LIMIT_REACHED"]=260,r[a[261]="CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE"]=261,r[a[262]="NO_REMAINING_AUTOMATIC_ASSOCIATIONS"]=262,r[a[263]="EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT"]=263,r[a[264]="REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT"]=264,r[a[265]="TOKEN_IS_PAUSED"]=265,r[a[266]="TOKEN_HAS_NO_PAUSE_KEY"]=266,r[a[267]="INVALID_PAUSE_KEY"]=267,r[a[268]="FREEZE_UPDATE_FILE_DOES_NOT_EXIST"]=268,r[a[269]="FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH"]=269,r[a[270]="NO_UPGRADE_HAS_BEEN_PREPARED"]=270,r[a[271]="NO_FREEZE_IS_SCHEDULED"]=271,r[a[272]="UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE"]=272,r[a[273]="FREEZE_START_TIME_MUST_BE_FUTURE"]=273,r[a[274]="PREPARED_UPDATE_FILE_IS_IMMUTABLE"]=274,r[a[275]="FREEZE_ALREADY_SCHEDULED"]=275,r[a[276]="FREEZE_UPGRADE_IN_PROGRESS"]=276,r[a[277]="UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED"]=277,r[a[278]="UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED"]=278,r[a[279]="CONSENSUS_GAS_EXHAUSTED"]=279,r[a[280]="REVERTED_SUCCESS"]=280,r[a[281]="MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED"]=281,r[a[282]="INVALID_ALIAS_KEY"]=282,r[a[283]="UNEXPECTED_TOKEN_DECIMALS"]=283,r[a[284]="INVALID_PROXY_ACCOUNT_ID"]=284,r[a[285]="INVALID_TRANSFER_ACCOUNT_ID"]=285,r[a[286]="INVALID_FEE_COLLECTOR_ACCOUNT_ID"]=286,r[a[287]="ALIAS_IS_IMMUTABLE"]=287,r[a[288]="SPENDER_ACCOUNT_SAME_AS_OWNER"]=288,r[a[289]="AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY"]=289,r[a[290]="NEGATIVE_ALLOWANCE_AMOUNT"]=290,r[a[291]="CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]=291,r[a[292]="SPENDER_DOES_NOT_HAVE_ALLOWANCE"]=292,r[a[293]="AMOUNT_EXCEEDS_ALLOWANCE"]=293,r[a[294]="MAX_ALLOWANCES_EXCEEDED"]=294,r[a[295]="EMPTY_ALLOWANCES"]=295,r[a[296]="SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]=296,r[a[297]="REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]=297,r[a[298]="FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES"]=298,r[a[299]="NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES"]=299,r[a[300]="INVALID_ALLOWANCE_OWNER_ID"]=300,r[a[301]="INVALID_ALLOWANCE_SPENDER_ID"]=301,r[a[302]="REPEATED_ALLOWANCES_TO_DELETE"]=302,r[a[303]="INVALID_DELEGATING_SPENDER"]=303,r[a[304]="DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL"]=304,r[a[305]="DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL"]=305,r[a[306]="SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE"]=306,r[a[307]="SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME"]=307,r[a[308]="SCHEDULE_FUTURE_THROTTLE_EXCEEDED"]=308,r[a[309]="SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED"]=309,r[a[310]="INVALID_ETHEREUM_TRANSACTION"]=310,r[a[311]="WRONG_CHAIN_ID"]=311,r[a[312]="WRONG_NONCE"]=312,r[a[313]="ACCESS_LIST_UNSUPPORTED"]=313,r[a[314]="SCHEDULE_PENDING_EXPIRATION"]=314,r[a[315]="CONTRACT_IS_TOKEN_TREASURY"]=315,r[a[316]="CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES"]=316,r[a[317]="CONTRACT_EXPIRED_AND_PENDING_REMOVAL"]=317,r[a[318]="CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT"]=318,r[a[319]="PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION"]=319,r[a[320]="PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED"]=320,r[a[321]="SELF_STAKING_IS_NOT_ALLOWED"]=321,r[a[322]="INVALID_STAKING_ID"]=322,r[a[323]="STAKING_NOT_ENABLED"]=323,r[a[324]="INVALID_PRNG_RANGE"]=324,r[a[325]="MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED"]=325,r[a[326]="INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE"]=326,r[a[327]="INSUFFICIENT_BALANCES_FOR_STORAGE_RENT"]=327,r[a[328]="MAX_CHILD_RECORDS_EXCEEDED"]=328,r[a[329]="INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES"]=329,r}(),ConsensusTopicInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.memo=r.string();break;case 2:f.runningHash=r.bytes();break;case 3:f.sequenceNumber=r.uint64();break;case 4:f.expirationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 5:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 6:f.submitKey=d.proto.Key.decode(r,r.uint32());break;case 7:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 8:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;case 9:f.ledgerId=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ConsensusService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createTopic=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createTopic"}),Object.defineProperty(a.prototype.updateTopic=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateTopic"}),Object.defineProperty(a.prototype.deleteTopic=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteTopic"}),Object.defineProperty(a.prototype.getTopicInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTopicInfo"}),Object.defineProperty(a.prototype.submitMessage=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"submitMessage"}),a}(),Query:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.getByKey=d.proto.GetByKeyQuery.decode(i,i.uint32());break;case 2:p.getBySolidityID=d.proto.GetBySolidityIDQuery.decode(i,i.uint32());break;case 3:p.contractCallLocal=d.proto.ContractCallLocalQuery.decode(i,i.uint32());break;case 4:p.contractGetInfo=d.proto.ContractGetInfoQuery.decode(i,i.uint32());break;case 5:p.contractGetBytecode=d.proto.ContractGetBytecodeQuery.decode(i,i.uint32());break;case 6:p.ContractGetRecords=d.proto.ContractGetRecordsQuery.decode(i,i.uint32());break;case 7:p.cryptogetAccountBalance=d.proto.CryptoGetAccountBalanceQuery.decode(i,i.uint32());break;case 8:p.cryptoGetAccountRecords=d.proto.CryptoGetAccountRecordsQuery.decode(i,i.uint32());break;case 9:p.cryptoGetInfo=d.proto.CryptoGetInfoQuery.decode(i,i.uint32());break;case 10:p.cryptoGetLiveHash=d.proto.CryptoGetLiveHashQuery.decode(i,i.uint32());break;case 11:p.cryptoGetProxyStakers=d.proto.CryptoGetStakersQuery.decode(i,i.uint32());break;case 12:p.fileGetContents=d.proto.FileGetContentsQuery.decode(i,i.uint32());break;case 13:p.fileGetInfo=d.proto.FileGetInfoQuery.decode(i,i.uint32());break;case 14:p.transactionGetReceipt=d.proto.TransactionGetReceiptQuery.decode(i,i.uint32());break;case 15:p.transactionGetRecord=d.proto.TransactionGetRecordQuery.decode(i,i.uint32());break;case 16:p.transactionGetFastRecord=d.proto.TransactionGetFastRecordQuery.decode(i,i.uint32());break;case 50:p.consensusGetTopicInfo=d.proto.ConsensusGetTopicInfoQuery.decode(i,i.uint32());break;case 51:p.networkGetVersionInfo=d.proto.NetworkGetVersionInfoQuery.decode(i,i.uint32());break;case 52:p.tokenGetInfo=d.proto.TokenGetInfoQuery.decode(i,i.uint32());break;case 53:p.scheduleGetInfo=d.proto.ScheduleGetInfoQuery.decode(i,i.uint32());break;case 54:p.tokenGetAccountNftInfos=d.proto.TokenGetAccountNftInfosQuery.decode(i,i.uint32());break;case 55:p.tokenGetNftInfo=d.proto.TokenGetNftInfoQuery.decode(i,i.uint32());break;case 56:p.tokenGetNftInfos=d.proto.TokenGetNftInfosQuery.decode(i,i.uint32());break;case 57:p.networkGetExecutionTime=d.proto.NetworkGetExecutionTimeQuery.decode(i,i.uint32());break;case 58:p.accountDetails=d.proto.GetAccountDetailsQuery.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),GetByKeyQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.key=d.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),EntityID:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.accountID=d.proto.AccountID.decode(i,i.uint32());break;case 2:p.liveHash=d.proto.LiveHash.decode(i,i.uint32());break;case 3:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 4:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),GetByKeyResponse:function(){function a(r){if(this.entities=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.entities&&f.entities.length||(f.entities=[]),f.entities.push(d.proto.EntityID.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),GetBySolidityIDQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.solidityID=r.string();break;default:r.skipType(7&p)}return f},a}(),GetBySolidityIDResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.fileID=d.proto.FileID.decode(r,r.uint32());break;case 4:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractLoginfo:function(){function a(r){if(this.topic=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 2:f.bloom=r.bytes();break;case 3:f.topic&&f.topic.length||(f.topic=[]),f.topic.push(r.bytes());break;case 4:f.data=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ContractFunctionResult:function(){function a(r){if(this.logInfo=[],this.createdContractIDs=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 2:f.contractCallResult=r.bytes();break;case 3:f.errorMessage=r.string();break;case 4:f.bloom=r.bytes();break;case 5:f.gasUsed=r.uint64();break;case 6:f.logInfo&&f.logInfo.length||(f.logInfo=[]),f.logInfo.push(d.proto.ContractLoginfo.decode(r,r.uint32()));break;case 7:f.createdContractIDs&&f.createdContractIDs.length||(f.createdContractIDs=[]),f.createdContractIDs.push(d.proto.ContractID.decode(r,r.uint32()));break;case 9:f.evmAddress=d.google.protobuf.BytesValue.decode(r,r.uint32());break;case 10:f.gas=r.int64();break;case 11:f.amount=r.int64();break;case 12:f.functionParameters=r.bytes();break;case 13:f.senderId=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractCallLocalQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 3:f.gas=r.int64();break;case 4:f.functionParameters=r.bytes();break;case 5:f.maxResultSize=r.int64();break;case 6:f.senderId=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractCallLocalResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.functionResult=d.proto.ContractFunctionResult.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.contractInfo=d.proto.ContractGetInfoResponse.ContractInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a.ContractInfo=function(){function r(i){if(this.tokenRelationships=[],i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;case 2:p.accountID=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.contractAccountID=i.string();break;case 4:p.adminKey=d.proto.Key.decode(i,i.uint32());break;case 5:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 6:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 7:p.storage=i.int64();break;case 8:p.memo=i.string();break;case 9:p.balance=i.uint64();break;case 10:p.deleted=i.bool();break;case 11:p.tokenRelationships&&p.tokenRelationships.length||(p.tokenRelationships=[]),p.tokenRelationships.push(d.proto.TokenRelationship.decode(i,i.uint32()));break;case 12:p.ledgerId=i.bytes();break;case 13:p.autoRenewAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 14:p.maxAutomaticTokenAssociations=i.int32();break;case 15:p.stakingInfo=d.proto.StakingInfo.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},r}(),a}(),ContractGetBytecodeQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractGetBytecodeResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 6:f.bytecode=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ContractGetRecordsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ContractGetRecordsResponse:function(){function a(r){if(this.records=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 3:f.records&&f.records.length||(f.records=[]),f.records.push(d.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TransactionRecord:function(){function a(i){if(this.tokenTransferLists=[],this.assessedCustomFees=[],this.automaticTokenAssociations=[],this.paidStakingRewards=[],i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.receipt=d.proto.TransactionReceipt.decode(i,i.uint32());break;case 2:p.transactionHash=i.bytes();break;case 3:p.consensusTimestamp=d.proto.Timestamp.decode(i,i.uint32());break;case 4:p.transactionID=d.proto.TransactionID.decode(i,i.uint32());break;case 5:p.memo=i.string();break;case 6:p.transactionFee=i.uint64();break;case 7:p.contractCallResult=d.proto.ContractFunctionResult.decode(i,i.uint32());break;case 8:p.contractCreateResult=d.proto.ContractFunctionResult.decode(i,i.uint32());break;case 10:p.transferList=d.proto.TransferList.decode(i,i.uint32());break;case 11:p.tokenTransferLists&&p.tokenTransferLists.length||(p.tokenTransferLists=[]),p.tokenTransferLists.push(d.proto.TokenTransferList.decode(i,i.uint32()));break;case 12:p.scheduleRef=d.proto.ScheduleID.decode(i,i.uint32());break;case 13:p.assessedCustomFees&&p.assessedCustomFees.length||(p.assessedCustomFees=[]),p.assessedCustomFees.push(d.proto.AssessedCustomFee.decode(i,i.uint32()));break;case 14:p.automaticTokenAssociations&&p.automaticTokenAssociations.length||(p.automaticTokenAssociations=[]),p.automaticTokenAssociations.push(d.proto.TokenAssociation.decode(i,i.uint32()));break;case 15:p.parentConsensusTimestamp=d.proto.Timestamp.decode(i,i.uint32());break;case 16:p.alias=i.bytes();break;case 17:p.ethereumHash=i.bytes();break;case 18:p.paidStakingRewards&&p.paidStakingRewards.length||(p.paidStakingRewards=[]),p.paidStakingRewards.push(d.proto.AccountAmount.decode(i,i.uint32()));break;case 19:p.prngBytes=i.bytes();break;case 20:p.prngNumber=i.int32();break;default:i.skipType(7&v)}return p},a}(),TransactionReceipt:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.status=r.int32();break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.fileID=d.proto.FileID.decode(r,r.uint32());break;case 4:f.contractID=d.proto.ContractID.decode(r,r.uint32());break;case 5:f.exchangeRate=d.proto.ExchangeRateSet.decode(r,r.uint32());break;case 6:f.topicID=d.proto.TopicID.decode(r,r.uint32());break;case 7:f.topicSequenceNumber=r.uint64();break;case 8:f.topicRunningHash=r.bytes();break;case 9:f.topicRunningHashVersion=r.uint64();break;case 10:f.tokenID=d.proto.TokenID.decode(r,r.uint32());break;case 11:f.newTotalSupply=r.uint64();break;case 12:f.scheduleID=d.proto.ScheduleID.decode(r,r.uint32());break;case 13:f.scheduledTransactionID=d.proto.TransactionID.decode(r,r.uint32());break;case 14:if(f.serialNumbers&&f.serialNumbers.length||(f.serialNumbers=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.hbarEquiv=r.int32();break;case 2:f.centEquiv=r.int32();break;case 3:f.expirationTime=d.proto.TimestampSeconds.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ExchangeRateSet:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.currentRate=d.proto.ExchangeRate.decode(r,r.uint32());break;case 2:f.nextRate=d.proto.ExchangeRate.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoGetAccountBalanceQuery:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.header=d.proto.QueryHeader.decode(i,i.uint32());break;case 2:p.accountID=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.contractID=d.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),CryptoGetAccountBalanceResponse:function(){function a(r){if(this.tokenBalances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.balance=r.uint64();break;case 4:f.tokenBalances&&f.tokenBalances.length||(f.tokenBalances=[]),f.tokenBalances.push(d.proto.TokenBalance.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),CryptoGetAccountRecordsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoGetAccountRecordsResponse:function(){function a(r){if(this.records=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.records&&f.records.length||(f.records=[]),f.records.push(d.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),CryptoGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.accountInfo=d.proto.CryptoGetInfoResponse.AccountInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a.AccountInfo=function(){function r(i){if(this.liveHashes=[],this.tokenRelationships=[],i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.accountID=d.proto.AccountID.decode(i,i.uint32());break;case 2:p.contractAccountID=i.string();break;case 3:p.deleted=i.bool();break;case 4:p.proxyAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 6:p.proxyReceived=i.int64();break;case 7:p.key=d.proto.Key.decode(i,i.uint32());break;case 8:p.balance=i.uint64();break;case 9:p.generateSendRecordThreshold=i.uint64();break;case 10:p.generateReceiveRecordThreshold=i.uint64();break;case 11:p.receiverSigRequired=i.bool();break;case 12:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 13:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 14:p.liveHashes&&p.liveHashes.length||(p.liveHashes=[]),p.liveHashes.push(d.proto.LiveHash.decode(i,i.uint32()));break;case 15:p.tokenRelationships&&p.tokenRelationships.length||(p.tokenRelationships=[]),p.tokenRelationships.push(d.proto.TokenRelationship.decode(i,i.uint32()));break;case 16:p.memo=i.string();break;case 17:p.ownedNfts=i.int64();break;case 18:p.maxAutomaticTokenAssociations=i.int32();break;case 19:p.alias=i.bytes();break;case 20:p.ledgerId=i.bytes();break;case 21:p.ethereumNonce=i.int64();break;case 22:p.stakingInfo=d.proto.StakingInfo.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},r}(),a}(),CryptoGetLiveHashQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.hash=r.bytes();break;default:r.skipType(7&p)}return f},a}(),CryptoGetLiveHashResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.liveHash=d.proto.LiveHash.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),CryptoGetStakersQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ProxyStaker:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.amount=r.int64();break;default:r.skipType(7&p)}return f},a}(),AllProxyStakers:function(){function a(r){if(this.proxyStaker=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.proxyStaker&&f.proxyStaker.length||(f.proxyStaker=[]),f.proxyStaker.push(d.proto.ProxyStaker.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),CryptoGetStakersResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 3:f.stakers=d.proto.AllProxyStakers.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),FileGetContentsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.fileID=d.proto.FileID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),FileGetContentsResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.fileContents=d.proto.FileGetContentsResponse.FileContents.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a.FileContents=function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 2:p.contents=i.bytes();break;default:i.skipType(7&v)}return p},r}(),a}(),FileGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.fileID=d.proto.FileID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),FileGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.fileInfo=d.proto.FileGetInfoResponse.FileInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a.FileInfo=function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.fileID=d.proto.FileID.decode(i,i.uint32());break;case 2:p.size=i.int64();break;case 3:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 4:p.deleted=i.bool();break;case 5:p.keys=d.proto.KeyList.decode(i,i.uint32());break;case 6:p.memo=i.string();break;case 7:p.ledgerId=i.bytes();break;default:i.skipType(7&v)}return p},r}(),a}(),TransactionGetReceiptQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.transactionID=d.proto.TransactionID.decode(r,r.uint32());break;case 3:f.includeDuplicates=r.bool();break;case 4:f.includeChildReceipts=r.bool();break;default:r.skipType(7&p)}return f},a}(),TransactionGetReceiptResponse:function(){function a(r){if(this.duplicateTransactionReceipts=[],this.childTransactionReceipts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.receipt=d.proto.TransactionReceipt.decode(r,r.uint32());break;case 4:f.duplicateTransactionReceipts&&f.duplicateTransactionReceipts.length||(f.duplicateTransactionReceipts=[]),f.duplicateTransactionReceipts.push(d.proto.TransactionReceipt.decode(r,r.uint32()));break;case 5:f.childTransactionReceipts&&f.childTransactionReceipts.length||(f.childTransactionReceipts=[]),f.childTransactionReceipts.push(d.proto.TransactionReceipt.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TransactionGetRecordQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.transactionID=d.proto.TransactionID.decode(r,r.uint32());break;case 3:f.includeDuplicates=r.bool();break;case 4:f.includeChildRecords=r.bool();break;default:r.skipType(7&p)}return f},a}(),TransactionGetRecordResponse:function(){function a(r){if(this.duplicateTransactionRecords=[],this.childTransactionRecords=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 3:f.transactionRecord=d.proto.TransactionRecord.decode(r,r.uint32());break;case 4:f.duplicateTransactionRecords&&f.duplicateTransactionRecords.length||(f.duplicateTransactionRecords=[]),f.duplicateTransactionRecords.push(d.proto.TransactionRecord.decode(r,r.uint32()));break;case 5:f.childTransactionRecords&&f.childTransactionRecords.length||(f.childTransactionRecords=[]),f.childTransactionRecords.push(d.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),TransactionGetFastRecordQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.transactionID=d.proto.TransactionID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TransactionGetFastRecordResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.transactionRecord=d.proto.TransactionRecord.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),NetworkGetVersionInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?f.header=d.proto.QueryHeader.decode(r,r.uint32()):r.skipType(7&p);return f},a}(),NetworkGetVersionInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.hapiProtoVersion=d.proto.SemanticVersion.decode(r,r.uint32());break;case 3:f.hederaServicesVersion=d.proto.SemanticVersion.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),NetworkGetExecutionTimeQuery:function(){function a(r){if(this.transactionIds=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.transactionIds&&f.transactionIds.length||(f.transactionIds=[]),f.transactionIds.push(d.proto.TransactionID.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),NetworkGetExecutionTimeResponse:function(){function a(r){if(this.executionTimes=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:if(f.executionTimes&&f.executionTimes.length||(f.executionTimes=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.token=d.proto.TokenID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenInfo:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.name=r.string();break;case 3:f.symbol=r.string();break;case 4:f.decimals=r.uint32();break;case 5:f.totalSupply=r.uint64();break;case 6:f.treasury=d.proto.AccountID.decode(r,r.uint32());break;case 7:f.adminKey=d.proto.Key.decode(r,r.uint32());break;case 8:f.kycKey=d.proto.Key.decode(r,r.uint32());break;case 9:f.freezeKey=d.proto.Key.decode(r,r.uint32());break;case 10:f.wipeKey=d.proto.Key.decode(r,r.uint32());break;case 11:f.supplyKey=d.proto.Key.decode(r,r.uint32());break;case 12:f.defaultFreezeStatus=r.int32();break;case 13:f.defaultKycStatus=r.int32();break;case 14:f.deleted=r.bool();break;case 15:f.autoRenewAccount=d.proto.AccountID.decode(r,r.uint32());break;case 16:f.autoRenewPeriod=d.proto.Duration.decode(r,r.uint32());break;case 17:f.expiry=d.proto.Timestamp.decode(r,r.uint32());break;case 18:f.memo=r.string();break;case 19:f.tokenType=r.int32();break;case 20:f.supplyType=r.int32();break;case 21:f.maxSupply=r.int64();break;case 22:f.feeScheduleKey=d.proto.Key.decode(r,r.uint32());break;case 23:f.customFees&&f.customFees.length||(f.customFees=[]),f.customFees.push(d.proto.CustomFee.decode(r,r.uint32()));break;case 24:f.pauseKey=d.proto.Key.decode(r,r.uint32());break;case 25:f.pauseStatus=r.int32();break;case 26:f.ledgerId=r.bytes();break;default:r.skipType(7&p)}return f},a}(),TokenGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.tokenInfo=d.proto.TokenInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ScheduleGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.scheduleID=d.proto.ScheduleID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),ScheduleInfo:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.scheduleID=d.proto.ScheduleID.decode(i,i.uint32());break;case 2:p.deletionTime=d.proto.Timestamp.decode(i,i.uint32());break;case 3:p.executionTime=d.proto.Timestamp.decode(i,i.uint32());break;case 4:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 5:p.scheduledTransactionBody=d.proto.SchedulableTransactionBody.decode(i,i.uint32());break;case 6:p.memo=i.string();break;case 7:p.adminKey=d.proto.Key.decode(i,i.uint32());break;case 8:p.signers=d.proto.KeyList.decode(i,i.uint32());break;case 9:p.creatorAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 10:p.payerAccountID=d.proto.AccountID.decode(i,i.uint32());break;case 11:p.scheduledTransactionID=d.proto.TransactionID.decode(i,i.uint32());break;case 12:p.ledgerId=i.bytes();break;case 13:p.waitForExpiry=i.bool();break;default:i.skipType(7&v)}return p},a}(),ScheduleGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.scheduleInfo=d.proto.ScheduleInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenGetAccountNftInfosQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.start=r.int64();break;case 4:f.end=r.int64();break;default:r.skipType(7&p)}return f},a}(),TokenGetAccountNftInfosResponse:function(){function a(r){if(this.nfts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.nfts&&f.nfts.length||(f.nfts=[]),f.nfts.push(d.proto.TokenNftInfo.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),NftID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenID=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.serialNumber=r.int64();break;default:r.skipType(7&p)}return f},a}(),TokenGetNftInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.nftID=d.proto.NftID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenNftInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.nftID=d.proto.NftID.decode(r,r.uint32());break;case 2:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.creationTime=d.proto.Timestamp.decode(r,r.uint32());break;case 4:f.metadata=r.bytes();break;case 5:f.ledgerId=r.bytes();break;case 6:f.spenderId=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenGetNftInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.nft=d.proto.TokenNftInfo.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),TokenGetNftInfosQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.tokenID=d.proto.TokenID.decode(r,r.uint32());break;case 3:f.start=r.int64();break;case 4:f.end=r.int64();break;default:r.skipType(7&p)}return f},a}(),TokenGetNftInfosResponse:function(){function a(r){if(this.nfts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.tokenID=d.proto.TokenID.decode(r,r.uint32());break;case 3:f.nfts&&f.nfts.length||(f.nfts=[]),f.nfts.push(d.proto.TokenNftInfo.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),GetAccountDetailsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.QueryHeader.decode(r,r.uint32());break;case 2:f.accountId=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),GetAccountDetailsResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.header=d.proto.ResponseHeader.decode(r,r.uint32());break;case 2:f.accountDetails=d.proto.GetAccountDetailsResponse.AccountDetails.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a.AccountDetails=function(){function r(i){if(this.tokenRelationships=[],this.grantedCryptoAllowances=[],this.grantedNftAllowances=[],this.grantedTokenAllowances=[],i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.accountId=d.proto.AccountID.decode(i,i.uint32());break;case 2:p.contractAccountId=i.string();break;case 3:p.deleted=i.bool();break;case 4:p.proxyAccountId=d.proto.AccountID.decode(i,i.uint32());break;case 5:p.proxyReceived=i.int64();break;case 6:p.key=d.proto.Key.decode(i,i.uint32());break;case 7:p.balance=i.uint64();break;case 8:p.receiverSigRequired=i.bool();break;case 9:p.expirationTime=d.proto.Timestamp.decode(i,i.uint32());break;case 10:p.autoRenewPeriod=d.proto.Duration.decode(i,i.uint32());break;case 11:p.tokenRelationships&&p.tokenRelationships.length||(p.tokenRelationships=[]),p.tokenRelationships.push(d.proto.TokenRelationship.decode(i,i.uint32()));break;case 12:p.memo=i.string();break;case 13:p.ownedNfts=i.int64();break;case 14:p.maxAutomaticTokenAssociations=i.int32();break;case 15:p.alias=i.bytes();break;case 16:p.ledgerId=i.bytes();break;case 17:p.grantedCryptoAllowances&&p.grantedCryptoAllowances.length||(p.grantedCryptoAllowances=[]),p.grantedCryptoAllowances.push(d.proto.GrantedCryptoAllowance.decode(i,i.uint32()));break;case 18:p.grantedNftAllowances&&p.grantedNftAllowances.length||(p.grantedNftAllowances=[]),p.grantedNftAllowances.push(d.proto.GrantedNftAllowance.decode(i,i.uint32()));break;case 19:p.grantedTokenAllowances&&p.grantedTokenAllowances.length||(p.grantedTokenAllowances=[]),p.grantedTokenAllowances.push(d.proto.GrantedTokenAllowance.decode(i,i.uint32()));break;default:i.skipType(7&v)}return p},r}(),a}(),GrantedCryptoAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.spender=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.amount=r.int64();break;default:r.skipType(7&p)}return f},a}(),GrantedNftAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.spender=d.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),GrantedTokenAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.spender=d.proto.AccountID.decode(r,r.uint32());break;case 3:f.amount=r.int64();break;default:r.skipType(7&p)}return f},a}(),Response:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.getByKey=d.proto.GetByKeyResponse.decode(i,i.uint32());break;case 2:p.getBySolidityID=d.proto.GetBySolidityIDResponse.decode(i,i.uint32());break;case 3:p.contractCallLocal=d.proto.ContractCallLocalResponse.decode(i,i.uint32());break;case 5:p.contractGetBytecodeResponse=d.proto.ContractGetBytecodeResponse.decode(i,i.uint32());break;case 4:p.contractGetInfo=d.proto.ContractGetInfoResponse.decode(i,i.uint32());break;case 6:p.contractGetRecordsResponse=d.proto.ContractGetRecordsResponse.decode(i,i.uint32());break;case 7:p.cryptogetAccountBalance=d.proto.CryptoGetAccountBalanceResponse.decode(i,i.uint32());break;case 8:p.cryptoGetAccountRecords=d.proto.CryptoGetAccountRecordsResponse.decode(i,i.uint32());break;case 9:p.cryptoGetInfo=d.proto.CryptoGetInfoResponse.decode(i,i.uint32());break;case 10:p.cryptoGetLiveHash=d.proto.CryptoGetLiveHashResponse.decode(i,i.uint32());break;case 11:p.cryptoGetProxyStakers=d.proto.CryptoGetStakersResponse.decode(i,i.uint32());break;case 12:p.fileGetContents=d.proto.FileGetContentsResponse.decode(i,i.uint32());break;case 13:p.fileGetInfo=d.proto.FileGetInfoResponse.decode(i,i.uint32());break;case 14:p.transactionGetReceipt=d.proto.TransactionGetReceiptResponse.decode(i,i.uint32());break;case 15:p.transactionGetRecord=d.proto.TransactionGetRecordResponse.decode(i,i.uint32());break;case 16:p.transactionGetFastRecord=d.proto.TransactionGetFastRecordResponse.decode(i,i.uint32());break;case 150:p.consensusGetTopicInfo=d.proto.ConsensusGetTopicInfoResponse.decode(i,i.uint32());break;case 151:p.networkGetVersionInfo=d.proto.NetworkGetVersionInfoResponse.decode(i,i.uint32());break;case 152:p.tokenGetInfo=d.proto.TokenGetInfoResponse.decode(i,i.uint32());break;case 153:p.scheduleGetInfo=d.proto.ScheduleGetInfoResponse.decode(i,i.uint32());break;case 154:p.tokenGetAccountNftInfos=d.proto.TokenGetAccountNftInfosResponse.decode(i,i.uint32());break;case 155:p.tokenGetNftInfo=d.proto.TokenGetNftInfoResponse.decode(i,i.uint32());break;case 156:p.tokenGetNftInfos=d.proto.TokenGetNftInfosResponse.decode(i,i.uint32());break;case 157:p.networkGetExecutionTime=d.proto.NetworkGetExecutionTimeResponse.decode(i,i.uint32());break;case 158:p.accountDetails=d.proto.GetAccountDetailsResponse.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),CryptoService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createAccount"}),Object.defineProperty(a.prototype.updateAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateAccount"}),Object.defineProperty(a.prototype.cryptoTransfer=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"cryptoTransfer"}),Object.defineProperty(a.prototype.cryptoDelete=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"cryptoDelete"}),Object.defineProperty(a.prototype.approveAllowances=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"approveAllowances"}),Object.defineProperty(a.prototype.deleteAllowances=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteAllowances"}),Object.defineProperty(a.prototype.addLiveHash=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"addLiveHash"}),Object.defineProperty(a.prototype.deleteLiveHash=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteLiveHash"}),Object.defineProperty(a.prototype.getLiveHash=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getLiveHash"}),Object.defineProperty(a.prototype.getAccountRecords=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getAccountRecords"}),Object.defineProperty(a.prototype.cryptoGetBalance=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"cryptoGetBalance"}),Object.defineProperty(a.prototype.getAccountInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getAccountInfo"}),Object.defineProperty(a.prototype.getTransactionReceipts=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTransactionReceipts"}),Object.defineProperty(a.prototype.getFastTransactionRecord=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getFastTransactionRecord"}),Object.defineProperty(a.prototype.getTxRecordByTxID=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTxRecordByTxID"}),Object.defineProperty(a.prototype.getStakersByAccountID=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getStakersByAccountID"}),a}(),FileService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createFile=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createFile"}),Object.defineProperty(a.prototype.updateFile=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateFile"}),Object.defineProperty(a.prototype.deleteFile=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteFile"}),Object.defineProperty(a.prototype.appendContent=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"appendContent"}),Object.defineProperty(a.prototype.getFileContent=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getFileContent"}),Object.defineProperty(a.prototype.getFileInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getFileInfo"}),Object.defineProperty(a.prototype.systemDelete=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"systemDelete"}),Object.defineProperty(a.prototype.systemUndelete=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"systemUndelete"}),a}(),FreezeService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.freeze=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"freeze"}),a}(),NetworkService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.getVersionInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getVersionInfo"}),Object.defineProperty(a.prototype.getExecutionTime=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getExecutionTime"}),Object.defineProperty(a.prototype.uncheckedSubmit=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"uncheckedSubmit"}),Object.defineProperty(a.prototype.getAccountDetails=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getAccountDetails"}),a}(),ScheduleService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createSchedule=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createSchedule"}),Object.defineProperty(a.prototype.signSchedule=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"signSchedule"}),Object.defineProperty(a.prototype.deleteSchedule=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteSchedule"}),Object.defineProperty(a.prototype.getScheduleInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getScheduleInfo"}),a}(),SmartContractService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createContract=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createContract"}),Object.defineProperty(a.prototype.updateContract=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateContract"}),Object.defineProperty(a.prototype.contractCallMethod=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"contractCallMethod"}),Object.defineProperty(a.prototype.getContractInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getContractInfo"}),Object.defineProperty(a.prototype.contractCallLocalMethod=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"contractCallLocalMethod"}),Object.defineProperty(a.prototype.contractGetBytecode=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"ContractGetBytecode"}),Object.defineProperty(a.prototype.getBySolidityID=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getBySolidityID"}),Object.defineProperty(a.prototype.getTxRecordByContractID=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTxRecordByContractID"}),Object.defineProperty(a.prototype.deleteContract=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteContract"}),Object.defineProperty(a.prototype.systemDelete=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"systemDelete"}),Object.defineProperty(a.prototype.systemUndelete=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"systemUndelete"}),Object.defineProperty(a.prototype.callEthereum=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"callEthereum"}),a}(),ThrottleGroup:function(){function a(r){if(this.operations=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:if(f.operations&&f.operations.length||(f.operations=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3){case 1:f.name=r.string();break;case 2:f.burstPeriodMs=r.uint64();break;case 3:f.throttleGroups&&f.throttleGroups.length||(f.throttleGroups=[]),f.throttleGroups.push(d.proto.ThrottleGroup.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),ThrottleDefinitions:function(){function a(r){if(this.throttleBuckets=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.throttleBuckets&&f.throttleBuckets.length||(f.throttleBuckets=[]),f.throttleBuckets.push(d.proto.ThrottleBucket.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),TokenService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"createToken"}),Object.defineProperty(a.prototype.updateToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateToken"}),Object.defineProperty(a.prototype.mintToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"mintToken"}),Object.defineProperty(a.prototype.burnToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"burnToken"}),Object.defineProperty(a.prototype.deleteToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"deleteToken"}),Object.defineProperty(a.prototype.wipeTokenAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"wipeTokenAccount"}),Object.defineProperty(a.prototype.freezeTokenAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"freezeTokenAccount"}),Object.defineProperty(a.prototype.unfreezeTokenAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"unfreezeTokenAccount"}),Object.defineProperty(a.prototype.grantKycToTokenAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"grantKycToTokenAccount"}),Object.defineProperty(a.prototype.revokeKycFromTokenAccount=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"revokeKycFromTokenAccount"}),Object.defineProperty(a.prototype.associateTokens=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"associateTokens"}),Object.defineProperty(a.prototype.dissociateTokens=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"dissociateTokens"}),Object.defineProperty(a.prototype.updateTokenFeeSchedule=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"updateTokenFeeSchedule"}),Object.defineProperty(a.prototype.getTokenInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTokenInfo"}),Object.defineProperty(a.prototype.getAccountNftInfos=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getAccountNftInfos"}),Object.defineProperty(a.prototype.getTokenNftInfo=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTokenNftInfo"}),Object.defineProperty(a.prototype.getTokenNftInfos=function r(i,c){return this.rpcCall(r,d.proto.Query,d.proto.Response,i,c)},"name",{value:"getTokenNftInfos"}),Object.defineProperty(a.prototype.pauseToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"pauseToken"}),Object.defineProperty(a.prototype.unpauseToken=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"unpauseToken"}),a}(),SignedTransaction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.bodyBytes=r.bytes();break;case 2:f.sigMap=d.proto.SignatureMap.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),UtilService:function(){function a(r,i,c){x.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(x.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.prng=function r(i,c){return this.rpcCall(r,d.proto.Transaction,d.proto.TransactionResponse,i,c)},"name",{value:"prng"}),a}(),TokenUnitBalance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.tokenId=d.proto.TokenID.decode(r,r.uint32());break;case 2:f.balance=r.uint64();break;default:r.skipType(7&p)}return f},a}(),SingleAccountBalances:function(){function a(r){if(this.tokenUnitBalances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.accountID=d.proto.AccountID.decode(r,r.uint32());break;case 2:f.hbarBalance=r.uint64();break;case 3:f.tokenUnitBalances&&f.tokenUnitBalances.length||(f.tokenUnitBalances=[]),f.tokenUnitBalances.push(d.proto.TokenUnitBalance.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),AllAccountBalances:function(){function a(r){if(this.allAccounts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.consensusTimestamp=d.proto.Timestamp.decode(r,r.uint32());break;case 2:f.allAccounts&&f.allAccounts.length||(f.allAccounts=[]),f.allAccounts.push(d.proto.SingleAccountBalances.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),ContractActions:function(){function a(r){if(this.contractActions=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.contractActions&&f.contractActions.length||(f.contractActions=[]),f.contractActions.push(d.proto.ContractAction.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),ContractActionType:function(){const a={},r=Object.create(a);return r[a[0]="NO_ACTION"]=0,r[a[1]="CALL"]=1,r[a[2]="CREATE"]=2,r[a[3]="PRECOMPILE"]=3,r[a[4]="SYSTEM"]=4,r}(),CallOperationType:function(){const a={},r=Object.create(a);return r[a[0]="OP_UNKNOWN"]=0,r[a[1]="OP_CALL"]=1,r[a[2]="OP_CALLCODE"]=2,r[a[3]="OP_DELEGATECALL"]=3,r[a[4]="OP_STATICCALL"]=4,r[a[5]="OP_CREATE"]=5,r[a[6]="OP_CREATE2"]=6,r}(),ContractAction:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.callType=i.int32();break;case 2:p.callingAccount=d.proto.AccountID.decode(i,i.uint32());break;case 3:p.callingContract=d.proto.ContractID.decode(i,i.uint32());break;case 4:p.gas=i.int64();break;case 5:p.input=i.bytes();break;case 6:p.recipientAccount=d.proto.AccountID.decode(i,i.uint32());break;case 7:p.recipientContract=d.proto.ContractID.decode(i,i.uint32());break;case 8:p.invalidSolidityAddress=i.bytes();break;case 9:p.value=i.int64();break;case 10:p.gasUsed=i.int64();break;case 11:p.output=i.bytes();break;case 12:p.revertReason=i.bytes();break;case 13:p.error=i.bytes();break;case 14:p.callDepth=i.int32();break;case 15:p.callOperationType=i.int32();break;default:i.skipType(7&v)}return p},a}(),ContractBytecode:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.contractId=d.proto.ContractID.decode(r,r.uint32());break;case 2:f.initcode=r.bytes();break;case 3:f.runtimeBytecode=r.bytes();break;default:r.skipType(7&p)}return f},a}(),ContractStateChanges:function(){function a(r){if(this.contractStateChanges=[],r)for(var i=Object.keys(r),c=0;c>>3?(f.contractStateChanges&&f.contractStateChanges.length||(f.contractStateChanges=[]),f.contractStateChanges.push(d.proto.ContractStateChange.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),ContractStateChange:function(){function a(r){if(this.storageChanges=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.contractId=d.proto.ContractID.decode(r,r.uint32());break;case 2:f.storageChanges&&f.storageChanges.length||(f.storageChanges=[]),f.storageChanges.push(d.proto.StorageChange.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),StorageChange:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.slot=r.bytes();break;case 2:f.valueRead=r.bytes();break;case 3:f.valueWritten=d.google.protobuf.BytesValue.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),HashAlgorithm:function(){const a={},r=Object.create(a);return r[a[0]="HASH_ALGORITHM_UNKNOWN"]=0,r[a[1]="SHA_384"]=1,r}(),HashObject:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.algorithm=r.int32();break;case 2:f.length=r.int32();break;case 3:f.hash=r.bytes();break;default:r.skipType(7&p)}return f},a}(),RecordStreamFile:function(){function a(r){if(this.recordStreamItems=[],this.sidecars=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.hapiProtoVersion=d.proto.SemanticVersion.decode(r,r.uint32());break;case 2:f.startObjectRunningHash=d.proto.HashObject.decode(r,r.uint32());break;case 3:f.recordStreamItems&&f.recordStreamItems.length||(f.recordStreamItems=[]),f.recordStreamItems.push(d.proto.RecordStreamItem.decode(r,r.uint32()));break;case 4:f.endObjectRunningHash=d.proto.HashObject.decode(r,r.uint32());break;case 5:f.blockNumber=r.int64();break;case 6:f.sidecars&&f.sidecars.length||(f.sidecars=[]),f.sidecars.push(d.proto.SidecarMetadata.decode(r,r.uint32()));break;default:r.skipType(7&p)}return f},a}(),RecordStreamItem:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.transaction=d.proto.Transaction.decode(r,r.uint32());break;case 2:f.record=d.proto.TransactionRecord.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),SidecarMetadata:function(){function a(r){if(this.types=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.hash=d.proto.HashObject.decode(r,r.uint32());break;case 2:f.id=r.int32();break;case 3:if(f.types&&f.types.length||(f.types=[]),2==(7&p))for(var v=r.uint32()+r.pos;r.pos>>3?(f.sidecarRecords&&f.sidecarRecords.length||(f.sidecarRecords=[]),f.sidecarRecords.push(d.proto.TransactionSidecarRecord.decode(r,r.uint32()))):r.skipType(7&p);return f},a}(),TransactionSidecarRecord:function(){function a(i){if(i)for(var c=Object.keys(i),f=0;f>>3){case 1:p.consensusTimestamp=d.proto.Timestamp.decode(i,i.uint32());break;case 2:p.migration=i.bool();break;case 3:p.stateChanges=d.proto.ContractStateChanges.decode(i,i.uint32());break;case 4:p.actions=d.proto.ContractActions.decode(i,i.uint32());break;case 5:p.bytecode=d.proto.ContractBytecode.decode(i,i.uint32());break;default:i.skipType(7&v)}return p},a}(),SignatureFile:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.fileSignature=d.proto.SignatureObject.decode(r,r.uint32());break;case 2:f.metadataSignature=d.proto.SignatureObject.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),SignatureObject:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:f.type=r.int32();break;case 2:f.length=r.int32();break;case 3:f.checksum=r.int32();break;case 4:f.signature=r.bytes();break;case 5:f.hashObject=d.proto.HashObject.decode(r,r.uint32());break;default:r.skipType(7&p)}return f},a}(),SignatureType:function(){const a={},r=Object.create(a);return r[a[0]="SIGNATURE_TYPE_UNKNOWN"]=0,r[a[1]="SHA_384_WITH_RSA"]=1,r}()};re.proto=k;const I=d.google={protobuf:{DoubleValue:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.double():i.skipType(7&v);return p},r}(),FloatValue:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.float():i.skipType(7&v);return p},r}(),Int64Value:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.int64():i.skipType(7&v);return p},r}(),UInt64Value:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.uint64():i.skipType(7&v);return p},r}(),Int32Value:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.int32():i.skipType(7&v);return p},r}(),UInt32Value:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.uint32():i.skipType(7&v);return p},r}(),BoolValue:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.bool():i.skipType(7&v);return p},r}(),StringValue:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.string():i.skipType(7&v);return p},r}(),BytesValue:function(){function r(i){if(i)for(var c=Object.keys(i),f=0;f>>3?p.value=i.bytes():i.skipType(7&v);return p},r}()}};re.google=I},4881:(Me,re,G)=>{"use strict";function x(n){return"function"==typeof n}let S=!1;const j={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else S&&console.log("RxJS: Back to a better error behavior. Thank you. <3");S=n},get useDeprecatedSynchronousErrorHandling(){return S}};function _(n){setTimeout(()=>{throw n},0)}const b={closed:!0,next(n){},error(n){if(j.useDeprecatedSynchronousErrorHandling)throw n;_(n)},complete(){}},g=Array.isArray||(n=>n&&"number"==typeof n.length);function d(n){return null!==n&&"object"==typeof n}const k=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,o)=>`${o+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class I{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:o,_unsubscribe:s,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof I)t.remove(this);else if(null!==t)for(let u=0;ue.concat(t instanceof k?t.errors:t),[])}I.EMPTY=((n=new I).closed=!0,n);const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class i extends I{constructor(e,t,o){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b;break;case 1:if(!e){this.destination=b;break}if("object"==typeof e){e instanceof i?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,t,o)}}[a](){return this}static create(e,t,o){const s=new i(e,t,o);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class c extends i{constructor(e,t,o,s){super(),this._parentSubscriber=e;let l,u=this;x(t)?l=t:t&&(l=t.next,o=t.error,s=t.complete,t!==b&&(u=Object.create(t),x(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=l,this._error=o,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;j.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:o}=j;if(this._error)o&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)o?(t.syncErrorValue=e,t.syncErrorThrown=!0):_(e),this.unsubscribe();else{if(this.unsubscribe(),o)throw e;_(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);j.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(o){if(this.unsubscribe(),j.useDeprecatedSynchronousErrorHandling)throw o;_(o)}}__tryOrSetError(e,t,o){if(!j.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,o)}catch(s){return j.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(_(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v="function"==typeof Symbol&&Symbol.observable||"@@observable";function L(n){return n}function oe(n){return 0===n.length?L:1===n.length?n[0]:function(t){return n.reduce((o,s)=>s(o),t)}}let de=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const o=new n;return o.source=this,o.operator=t,o}subscribe(t,o,s){const{operator:l}=this,u=function p(n,e,t){if(n){if(n instanceof i)return n;if(n[a])return n[a]()}return n||e||t?new i(n,e,t):new i(b)}(t,o,s);if(u.add(l?l.call(u,this.source):this.source||j.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),j.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(t){try{return this._subscribe(t)}catch(o){j.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=o),function f(n){for(;n;){const{closed:e,destination:t,isStopped:o}=n;if(e||o)return!1;n=t&&t instanceof i?t:null}return!0}(t)?t.error(o):console.warn(o)}}forEach(t,o){return new(o=he(o))((s,l)=>{let u;u=this.subscribe(h=>{try{t(h)}catch(A){l(A),u&&u.unsubscribe()}},l,s)})}_subscribe(t){const{source:o}=this;return o&&o.subscribe(t)}[v](){return this}pipe(...t){return 0===t.length?this:oe(t)(this)}toPromise(t){return new(t=he(t))((o,s)=>{let l;this.subscribe(u=>l=u,u=>s(u),()=>o(l))})}}return n.create=e=>new n(e),n})();function he(n){if(n||(n=j.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ae=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class J extends I{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const o=t.indexOf(this.subscriber);-1!==o&&t.splice(o,1)}}class $ extends i{constructor(e){super(e),this.destination=e}}let C=(()=>{class n extends de{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[a](){return new $(this)}lift(t){const o=new E(this,this);return o.operator=t,o}next(t){if(this.closed)throw new Ae;if(!this.isStopped){const{observers:o}=this,s=o.length,l=o.slice();for(let u=0;unew E(e,t),n})();class E extends C{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):I.EMPTY}}function N(n){return n&&"function"==typeof n.schedule}function P(n,e){return function(o){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return o.lift(new Q(n,e))}}class Q{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Y(e,this.project,this.thisArg))}}class Y extends i{constructor(e,t,o){super(e),this.project=t,this.count=0,this.thisArg=o||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(t)}}const ne=n=>e=>{for(let t=0,o=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function kt(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Ze=n=>{if(n&&"function"==typeof n[v])return(n=>e=>{const t=n[v]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(He(n))return ne(n);if(kt(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,_),e))(n);if(n&&"function"==typeof n[z])return(n=>e=>{const t=n[z]();for(;;){let o;try{o=t.next()}catch(s){return e.error(s),e}if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${d(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function at(n,e){return new de(t=>{const o=new I;let s=0;return o.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||o.add(this.schedule())):t.complete()})),o})}function At(n,e){return e?function St(n,e){if(null!=n){if(function ft(n){return n&&"function"==typeof n[v]}(n))return function br(n,e){return new de(t=>{const o=new I;return o.add(e.schedule(()=>{const s=n[v]();o.add(s.subscribe({next(l){o.add(e.schedule(()=>t.next(l)))},error(l){o.add(e.schedule(()=>t.error(l)))},complete(){o.add(e.schedule(()=>t.complete()))}}))})),o})}(n,e);if(kt(n))return function nt(n,e){return new de(t=>{const o=new I;return o.add(e.schedule(()=>n.then(s=>{o.add(e.schedule(()=>{t.next(s),o.add(e.schedule(()=>t.complete()))}))},s=>{o.add(e.schedule(()=>t.error(s)))}))),o})}(n,e);if(He(n))return at(n,e);if(function Ct(n){return n&&"function"==typeof n[z]}(n)||"string"==typeof n)return function nn(n,e){if(!n)throw new Error("Iterable cannot be null");return new de(t=>{const o=new I;let s;return o.add(()=>{s&&"function"==typeof s.return&&s.return()}),o.add(e.schedule(()=>{s=n[z](),o.add(e.schedule(function(){if(t.closed)return;let l,u;try{const h=s.next();l=h.value,u=h.done}catch(h){return void t.error(h)}u?t.complete():(t.next(l),this.schedule())}))})),o})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof de?n:new de(Ze(n))}class vt extends i{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class zt extends i{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function $t(n,e){if(e.closed)return;if(n instanceof de)return n.subscribe(e);let t;try{t=Ze(n)(e)}catch(o){e.error(o)}return t}function Pt(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(Pt((s,l)=>At(n(s,l)).pipe(P((u,h)=>e(s,u,l,h))),t)):("number"==typeof e&&(t=e),o=>o.lift(new un(n,t)))}class un{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new jn(e,this.project,this.concurrent))}}class jn extends zt{constructor(e,t,o=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Cn(n=Number.POSITIVE_INFINITY){return Pt(L,n)}function rr(n,e){return e?at(n,e):new de(ne(n))}function Z(){return function(e){return e.lift(new B(e))}}class B{constructor(e){this.connectable=e}call(e,t){const{connectable:o}=this;o._refCount++;const s=new R(e,o),l=t.subscribe(s);return s.closed||(s.connection=o.connect()),l}}class R extends i{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:o}=this,s=e._connection;this.connection=null,s&&(!o||s===o)&&s.unsubscribe()}}class le extends de{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new I,e.add(this.source.subscribe(new Fe(this.getSubject(),this))),e.closed&&(this._connection=null,e=I.EMPTY)),e}refCount(){return Z()(this)}}const Ce=(()=>{const n=le.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Fe extends ${constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class Xt{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:o}=this,s=this.subjectFactory(),l=o(s).subscribe(e);return l.add(t.subscribe(s)),l}}function tr(){return new C}function Dt(n){for(let e in n)if(n[e]===Dt)return e;throw Error("Could not find renamed property on target object.")}function so(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Vt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Vt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Kn(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const xo=Dt({__forward_ref__:Dt});function Yt(n){return n.__forward_ref__=Yt,n.toString=function(){return Vt(this())},n}function _t(n){return Fo(n)?n():n}function Fo(n){return"function"==typeof n&&n.hasOwnProperty(xo)&&n.__forward_ref__===Yt}function Jn(n){return n&&!!n.\u0275providers}const ci="https://g.co/ng/security#xss";class Le extends Error{constructor(e,t){super(function Mn(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function F(n){return"string"==typeof n?n:null==n?"":String(n)}function Ee(n,e){throw new Le(-201,!1)}function Zt(n,e){null==n&&function ut(n,e,t,o){throw new Error(`ASSERTION ERROR: ${n}`+(null==o?"":` [Expected=> ${t} ${o} ${e} <=Actual]`))}(e,n,null,"!=")}function et(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function je(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ye(n){return ot(n,xn)||ot(n,Pn)}function ot(n,e){return n.hasOwnProperty(e)?n[e]:null}function an(n){return n&&(n.hasOwnProperty(Nn)||n.hasOwnProperty(we))?n[Nn]:null}const xn=Dt({\u0275prov:Dt}),Nn=Dt({\u0275inj:Dt}),Pn=Dt({ngInjectableDef:Dt}),we=Dt({ngInjectorDef:Dt});var bt=(()=>((bt=bt||{})[bt.Default=0]="Default",bt[bt.Host=1]="Host",bt[bt.Self=2]="Self",bt[bt.SkipSelf=4]="SkipSelf",bt[bt.Optional=8]="Optional",bt))();let ar;function An(n){const e=ar;return ar=n,e}function cr(n,e,t){const o=Ye(n);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:t&bt.Optional?null:void 0!==e?e:void Ee(Vt(n))}const Dn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Rr={},to="__NG_DI_FLAG__",go="ngTempTokenPath",Uo=/\n/gm,Hy="__source";let mu;function Hc(n){const e=mu;return mu=n,e}function Gk(n,e=bt.Default){if(void 0===mu)throw new Le(-203,!1);return null===mu?cr(n,void 0,e):mu.get(n,e&bt.Optional?null:void 0,e)}function mt(n,e=bt.Default){return(function gr(){return ar}()||Gk)(_t(n),e)}function _r(n,e=bt.Default){return mt(n,Qd(e))}function Qd(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Np(n){const e=[];for(let t=0;t((is=is||{})[is.OnPush=0]="OnPush",is[is.Default=1]="Default",is))(),ss=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ss||(ss={})),ss))();const Ks={},Sr=[],Hd=Dt({\u0275cmp:Dt}),Pp=Dt({\u0275dir:Dt}),Rp=Dt({\u0275pipe:Dt}),Vy=Dt({\u0275mod:Dt}),Ys=Dt({\u0275fac:Dt}),bu=Dt({__NG_ELEMENT_ID__:Dt});let Vk=0;function Yn(n){return Na(()=>{const t=!0===n.standalone,o={},s={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===is.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Sr,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ss.Emulated,id:"c"+Vk++,styles:n.styles||Sr,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},l=n.dependencies,u=n.features;return s.inputs=Wy(n.inputs,o),s.outputs=Wy(n.outputs),u&&u.forEach(h=>h(s)),s.directiveDefs=l?()=>("function"==typeof l?l():l).map(Ky).filter(Yy):null,s.pipeDefs=l?()=>("function"==typeof l?l():l).map(ui).filter(Yy):null,s})}function Ky(n){return Pr(n)||Xo(n)}function Yy(n){return null!==n}function li(n){return Na(()=>({type:n.type,bootstrap:n.bootstrap||Sr,declarations:n.declarations||Sr,imports:n.imports||Sr,exports:n.exports||Sr,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Wy(n,e){if(null==n)return Ks;const t={};for(const o in n)if(n.hasOwnProperty(o)){let s=n[o],l=s;Array.isArray(s)&&(l=s[1],s=s[0]),t[s]=o,e&&(e[s]=l)}return t}const Tn=Yn;function vi(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Pr(n){return n[Hd]||null}function Xo(n){return n[Pp]||null}function ui(n){return n[Rp]||null}function Mi(n,e){const t=n[Vy]||null;if(!t&&!0===e)throw new Error(`Type ${Vt(n)} does not have '\u0275mod' property.`);return t}function xi(n){return Array.isArray(n)&&"object"==typeof n[1]}function cs(n){return Array.isArray(n)&&!0===n[1]}function Up(n){return 0!=(4&n.flags)}function Iu(n){return n.componentOffset>-1}function Wd(n){return 1==(1&n.flags)}function ls(n){return null!==n.template}function Wk(n){return 0!=(256&n[2])}function dc(n,e){return n.hasOwnProperty(Ys)?n[Ys]:null}class qk{constructor(e,t,o){this.previousValue=e,this.currentValue=t,this.firstChange=o}isFirstChange(){return this.firstChange}}function Gi(){return e2}function e2(n){return n.type.prototype.ngOnChanges&&(n.setInput=Xk),Jk}function Jk(){const n=n2(this),e=n?.current;if(e){const t=n.previous;if(t===Ks)n.previous=e;else for(let o in e)t[o]=e[o];n.current=null,this.ngOnChanges(e)}}function Xk(n,e,t,o){const s=this.declaredInputs[t],l=n2(n)||function e8(n,e){return n[t2]=e}(n,{previous:Ks,current:null}),u=l.current||(l.current={}),h=l.previous,A=h[s];u[s]=new qk(A&&A.currentValue,e,h===Ks),n[o]=e}Gi.ngInherit=!0;const t2="__ngSimpleChanges__";function n2(n){return n[t2]||null}function Vo(n){for(;Array.isArray(n);)n=n[0];return n}function $d(n,e){return Vo(e[n])}function Oi(n,e){return Vo(e[n.index])}function i2(n,e){return n.data[e]}function $c(n,e){return n[e]}function Si(n,e){const t=e[n];return xi(t)?t:t[0]}function Zd(n){return 64==(64&n[2])}function Pa(n,e){return null==e?null:n[e]}function s2(n){n[18]=0}function Gp(n,e){n[5]+=e;let t=n,o=n[3];for(;null!==o&&(1===e&&1===t[5]||-1===e&&0===t[5]);)o[5]+=e,t=o,o=o[3]}const Rn={lFrame:g2(null),bindingsEnabled:!0};function c2(){return Rn.bindingsEnabled}function ct(){return Rn.lFrame.lView}function wr(){return Rn.lFrame.tView}function vn(n){return Rn.lFrame.contextLView=n,n[8]}function In(n){return Rn.lFrame.contextLView=null,n}function Ko(){let n=l2();for(;null!==n&&64===n.type;)n=n.parent;return n}function l2(){return Rn.lFrame.currentTNode}function Es(n,e){const t=Rn.lFrame;t.currentTNode=n,t.isParent=e}function Qp(){return Rn.lFrame.isParent}function Hp(){Rn.lFrame.isParent=!1}function fi(){const n=Rn.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Zc(){return Rn.lFrame.bindingIndex++}function h8(n,e){const t=Rn.lFrame;t.bindingIndex=t.bindingRootIndex=n,zp(e)}function zp(n){Rn.lFrame.currentDirectiveIndex=n}function h2(){return Rn.lFrame.currentQueryIndex}function Kp(n){Rn.lFrame.currentQueryIndex=n}function A8(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function p2(n,e,t){if(t&bt.SkipSelf){let s=e,l=n;for(;!(s=s.parent,null!==s||t&bt.Host||(s=A8(l),null===s||(l=l[15],10&s.type))););if(null===s)return!1;e=s,n=l}const o=Rn.lFrame=A2();return o.currentTNode=e,o.lView=n,!0}function Yp(n){const e=A2(),t=n[1];Rn.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function A2(){const n=Rn.lFrame,e=null===n?null:n.child;return null===e?g2(n):e}function g2(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function m2(){const n=Rn.lFrame;return Rn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const y2=m2;function Wp(){const n=m2();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function hi(){return Rn.lFrame.selectedIndex}function fc(n){Rn.lFrame.selectedIndex=n}function no(){const n=Rn.lFrame;return i2(n.tView,n.selectedIndex)}function qd(n,e){for(let t=e.directiveStart,o=e.directiveEnd;t=o)break}else e[A]<0&&(n[18]+=65536),(h>11>16&&(3&n[2])===e){n[2]+=2048;try{l.call(h)}finally{}}}else try{l.call(h)}finally{}}class Tu{constructor(e,t,o){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=o}}function qp(n,e,t){let o=0;for(;oe){u=l-1;break}}}for(;l>16}(n),o=e;for(;t>0;)o=o[15],t--;return o}let Jp=!0;function nf(n){const e=Jp;return Jp=n,e}let M8=0;const Ms={};function rf(n,e){const t=k2(n,e);if(-1!==t)return t;const o=e[1];o.firstCreatePass&&(n.injectorIndex=e.length,Xp(o.data,n),Xp(e,null),Xp(o.blueprint,null));const s=e6(n,e),l=n.injectorIndex;if(I2(s)){const u=ef(s),h=tf(s,e),A=h[1].data;for(let y=0;y<8;y++)e[l+y]=h[u+y]|A[u+y]}return e[l+8]=s,l}function Xp(n,e){n.push(0,0,0,0,0,0,0,0,e)}function k2(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function e6(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,o=null,s=e;for(;null!==s;){if(o=B2(s),null===o)return-1;if(t++,s=s[15],-1!==o.injectorIndex)return o.injectorIndex|t<<16}return-1}function t6(n,e,t){!function x8(n,e,t){let o;"string"==typeof t?o=t.charCodeAt(0)||0:t.hasOwnProperty(bu)&&(o=t[bu]),null==o&&(o=t[bu]=M8++);const s=255&o;e.data[n+(s>>5)]|=1<=0?255&e:N8:e}(t);if("function"==typeof l){if(!p2(e,n,o))return o&bt.Host?D2(s,0,o):E2(e,t,o,s);try{const u=l(o);if(null!=u||o&bt.Optional)return u;Ee()}finally{y2()}}else if("number"==typeof l){let u=null,h=k2(n,e),A=-1,y=o&bt.Host?e[16][6]:null;for((-1===h||o&bt.SkipSelf)&&(A=-1===h?e6(n,e):e[h+8],-1!==A&&S2(o,!1)?(u=e[1],h=ef(A),e=tf(A,e)):h=-1);-1!==h;){const D=e[1];if(O2(l,h,D.data)){const U=S8(h,e,t,u,o,y);if(U!==Ms)return U}A=e[h+8],-1!==A&&S2(o,e[1].data[h+8]===y)&&O2(l,h,e)?(u=D,h=ef(A),e=tf(A,e)):h=-1}}return s}function S8(n,e,t,o,s,l){const u=e[1],h=u.data[n+8],D=sf(h,u,t,null==o?Iu(h)&&Jp:o!=u&&0!=(3&h.type),s&bt.Host&&l===h);return null!==D?hc(e,u,D,h):Ms}function sf(n,e,t,o,s){const l=n.providerIndexes,u=e.data,h=1048575&l,A=n.directiveStart,D=l>>20,q=s?h+D:n.directiveEnd;for(let ce=o?h:h+D;ce=A&&ye.type===t)return ce}if(s){const ce=u[A];if(ce&&ls(ce)&&ce.type===t)return A}return null}function hc(n,e,t,o){let s=n[t];const l=e.data;if(function T8(n){return n instanceof Tu}(s)){const u=s;u.resolving&&function X(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new Le(-200,`Circular dependency in DI detected for ${n}${t}`)}(function W(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():F(n)}(l[t]));const h=nf(u.canSeeViewProviders);u.resolving=!0;const A=u.injectImpl?An(u.injectImpl):null;p2(n,o,bt.Default);try{s=n[t]=u.factory(void 0,l,n,o),e.firstCreatePass&&t>=o.directiveStart&&function I8(n,e,t){const{ngOnChanges:o,ngOnInit:s,ngDoCheck:l}=e.type.prototype;if(o){const u=e2(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,u),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,u)}s&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,s),l&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,l),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,l))}(t,l[t],e)}finally{null!==A&&An(A),nf(h),u.resolving=!1,y2()}}return s}function O2(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[Ys]||n6(e),o=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==o;){const l=s[Ys]||n6(s);if(l&&l!==t)return l;s=Object.getPrototypeOf(s)}return l=>new l})}function n6(n){return Fo(n)?()=>{const e=n6(_t(n));return e&&e()}:dc(n)}function B2(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}const el="__parameters__";function nl(n,e,t){return Na(()=>{const o=function r6(n){return function(...t){if(n){const o=n(...t);for(const s in o)this[s]=o[s]}}}(e);function s(...l){if(this instanceof s)return o.apply(this,l),this;const u=new s(...l);return h.annotation=u,h;function h(A,y,D){const U=A.hasOwnProperty(el)?A[el]:Object.defineProperty(A,el,{value:[]})[el];for(;U.length<=D;)U.push(null);return(U[D]=U[D]||[]).push(u),A}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class hn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=et({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pc(n,e){n.forEach(t=>Array.isArray(t)?pc(t,e):e(t))}function P2(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function cf(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Bi(n,e,t){let o=rl(n,e);return o>=0?n[1|o]=t:(o=~o,function U8(n,e,t,o){let s=n.length;if(s==e)n.push(t,o);else if(1===s)n.push(o,n[0]),n[0]=t;else{for(s--,n.push(n[s-1],n[s]);s>e;)n[s]=n[s-2],s--;n[e]=t,n[e+1]=o}}(n,o,e,t)),o}function i6(n,e){const t=rl(n,e);if(t>=0)return n[1|t]}function rl(n,e){return function R2(n,e,t){let o=0,s=n.length>>t;for(;s!==o;){const l=o+(s-o>>1),u=n[l<e?s=l:o=l+1}return~(s<((Ii=Ii||{})[Ii.Important=1]="Important",Ii[Ii.DashCase=2]="DashCase",Ii))();const d6=new Map;let aD=0;const h6="__ngContext__";function ni(n,e){xi(e)?(n[h6]=e[20],function lD(n){d6.set(n[20],n)}(e)):n[h6]=e}function A6(n,e){return undefined(n,e)}function Pu(n){const e=n[3];return cs(e)?e[3]:e}function g6(n){return nb(n[13])}function m6(n){return nb(n[4])}function nb(n){for(;null!==n&&!cs(n);)n=n[4];return n}function il(n,e,t,o,s){if(null!=o){let l,u=!1;cs(o)?l=o:xi(o)&&(u=!0,o=o[0]);const h=Vo(o);0===n&&null!==t?null==s?cb(e,t,h):Ac(e,t,h,s||null,!0):1===n&&null!==t?Ac(e,t,h,s||null,!0):2===n?function C6(n,e,t){const o=ff(n,e);o&&function MD(n,e,t,o){n.removeChild(e,t,o)}(n,o,e,t)}(e,h,u):3===n&&e.destroyNode(h),null!=l&&function SD(n,e,t,o,s){const l=t[7];l!==Vo(t)&&il(e,n,o,l,s);for(let h=10;h0&&(n[t-1][4]=o[4]);const l=cf(n,10+e);!function wD(n,e){Ru(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(o[1],o);const u=l[19];null!==u&&u.detachView(l[1]),o[3]=null,o[4]=null,o[2]&=-65}return o}function ib(n,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&Ru(n,e,t,3,null,null),function CD(n){let e=n[13];if(!e)return w6(n[1],n);for(;e;){let t=null;if(xi(e))t=e[13];else{const o=e[10];o&&(t=o)}if(!t){for(;e&&!e[4]&&e!==n;)xi(e)&&w6(e[1],e),e=e[3];null===e&&(e=n),xi(e)&&w6(e[1],e),t=e&&e[4]}e=t}}(e)}}function w6(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function ED(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let o=0;o=0?o[s=u]():o[s=-u].unsubscribe(),l+=2}else{const u=o[s=t[l+1]];t[l].call(u)}if(null!==o){for(let l=s+1;l-1){const{encapsulation:l}=n.data[o.directiveStart+s];if(l===ss.None||l===ss.Emulated)return null}return Oi(o,t)}}(n,e.parent,t)}function Ac(n,e,t,o,s){n.insertBefore(e,t,o,s)}function cb(n,e,t){n.appendChild(e,t)}function lb(n,e,t,o,s){null!==o?Ac(n,e,t,o,s):cb(n,e,t)}function ff(n,e){return n.parentNode(e)}let D6,fb=function db(n,e,t){return 40&n.type?Oi(n,t):null};function hf(n,e,t,o){const s=sb(n,o,e),l=e[11],h=function ub(n,e,t){return fb(n,e,t)}(o.parent||e[6],o,e);if(null!=s)if(Array.isArray(t))for(let A=0;A((Io=Io||{})[Io.NONE=0]="NONE",Io[Io.HTML=1]="HTML",Io[Io.STYLE=2]="STYLE",Io[Io.SCRIPT=3]="SCRIPT",Io[Io.URL=4]="URL",Io[Io.RESOURCE_URL=5]="RESOURCE_URL",Io))();function B6(n){const e=function Uu(){const n=ct();return n&&n[12]}();return e?e.sanitize(Io.URL,n)||"":function Fu(n,e){const t=function zD(n){return n instanceof vb&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${ci})`)}return t===e}(n,"URL")?Ra(n):function M6(n){return(n=String(n)).match(WD)?n:"unsafe:"+n}(F(n))}const bf=new hn("ENVIRONMENT_INITIALIZER"),ju=new hn("INJECTOR",-1),Ob=new hn("INJECTOR_DEF_TYPES");class Sb{get(e,t=Rr){if(t===Rr){const o=new Error(`NullInjectorError: No provider for ${Vt(e)}!`);throw o.name="NullInjectorError",o}return t}}function sE(...n){return{\u0275providers:Bb(0,n),\u0275fromNgModule:!0}}function Bb(n,...e){const t=[],o=new Set;let s;return pc(e,l=>{const u=l;N6(u,t,[],o)&&(s||(s=[]),s.push(u))}),void 0!==s&&Nb(s,t),t}function Nb(n,e){for(let t=0;t{e.push(l)})}}function N6(n,e,t,o){if(!(n=_t(n)))return!1;let s=null,l=an(n);const u=!l&&Pr(n);if(l||u){if(u&&!u.standalone)return!1;s=n}else{const A=n.ngModule;if(l=an(A),!l)return!1;s=A}const h=o.has(s);if(u){if(h)return!1;if(o.add(s),u.dependencies){const A="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const y of A)N6(y,e,t,o)}}else{if(!l)return!1;{if(null!=l.imports&&!h){let y;o.add(s);try{pc(l.imports,D=>{N6(D,e,t,o)&&(y||(y=[]),y.push(D))})}finally{}void 0!==y&&Nb(y,e)}if(!h){const y=dc(s)||(()=>new s);e.push({provide:s,useFactory:y,deps:Sr},{provide:Ob,useValue:s,multi:!0},{provide:bf,useValue:()=>mt(s),multi:!0})}const A=l.providers;null==A||h||P6(A,D=>{e.push(D)})}}return s!==n&&void 0!==n.providers}function P6(n,e){for(let t of n)Jn(t)&&(t=t.\u0275providers),Array.isArray(t)?P6(t,e):e(t)}const aE=Dt({provide:String,useValue:Dt});function R6(n){return null!==n&&"object"==typeof n&&aE in n}function mc(n){return"function"==typeof n}const F6=new hn("Set Injector scope."),_f={},lE={};let L6;function wf(){return void 0===L6&&(L6=new Sb),L6}class Js{}class Fb extends Js{get destroyed(){return this._destroyed}constructor(e,t,o,s){super(),this.parent=t,this.source=o,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,j6(e,u=>this.processProvider(u)),this.records.set(ju,sl(void 0,this)),s.has("environment")&&this.records.set(Js,sl(void 0,this));const l=this.records.get(F6);null!=l&&"string"==typeof l.value&&this.scopes.add(l.value),this.injectorDefTypes=new Set(this.get(Ob.multi,Sr,bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Hc(this),o=An(void 0);try{return e()}finally{Hc(t),An(o)}}get(e,t=Rr,o=bt.Default){this.assertNotDestroyed(),o=Qd(o);const s=Hc(this),l=An(void 0);try{if(!(o&bt.SkipSelf)){let h=this.records.get(e);if(void 0===h){const A=function pE(n){return"function"==typeof n||"object"==typeof n&&n instanceof hn}(e)&&Ye(e);h=A&&this.injectableDefInScope(A)?sl(U6(e),_f):null,this.records.set(e,h)}if(null!=h)return this.hydrate(e,h)}return(o&bt.Self?wf():this.parent).get(e,t=o&bt.Optional&&t===Rr?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[go]=u[go]||[]).unshift(Vt(e)),s)throw u;return function Hk(n,e,t,o){const s=n[go];throw e[Hy]&&s.unshift(e[Hy]),n.message=function zk(n,e,t,o=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let s=Vt(e);if(Array.isArray(e))s=e.map(Vt).join(" -> ");else if("object"==typeof e){let l=[];for(let u in e)if(e.hasOwnProperty(u)){let h=e[u];l.push(u+":"+("string"==typeof h?JSON.stringify(h):Vt(h)))}s=`{${l.join(", ")}}`}return`${t}${o?"("+o+")":""}[${s}]: ${n.replace(Uo,"\n ")}`}("\n"+n.message,s,t,o),n.ngTokenPath=s,n[go]=null,n}(u,e,"R3InjectorError",this.source)}throw u}finally{An(l),Hc(s)}}resolveInjectorInitializers(){const e=Hc(this),t=An(void 0);try{const o=this.get(bf.multi,Sr,bt.Self);for(const s of o)s()}finally{Hc(e),An(t)}}toString(){const e=[],t=this.records;for(const o of t.keys())e.push(Vt(o));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Le(205,!1)}processProvider(e){let t=mc(e=_t(e))?e:_t(e&&e.provide);const o=function dE(n){return R6(n)?sl(void 0,n.useValue):sl(Lb(n),_f)}(e);if(mc(e)||!0!==e.multi)this.records.get(t);else{let s=this.records.get(t);s||(s=sl(void 0,_f,!0),s.factory=()=>Np(s.multi),this.records.set(t,s)),t=e,s.multi.push(e)}this.records.set(t,o)}hydrate(e,t){return t.value===_f&&(t.value=lE,t.value=t.factory()),"object"==typeof t.value&&t.value&&function hE(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=_t(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function U6(n){const e=Ye(n),t=null!==e?e.factory:dc(n);if(null!==t)return t;if(n instanceof hn)throw new Le(204,!1);if(n instanceof Function)return function uE(n){const e=n.length;if(e>0)throw function Mu(n,e){const t=[];for(let o=0;ot.factory(n):()=>new n}(n);throw new Le(204,!1)}function Lb(n,e,t){let o;if(mc(n)){const s=_t(n);return dc(s)||U6(s)}if(R6(n))o=()=>_t(n.useValue);else if(function Rb(n){return!(!n||!n.useFactory)}(n))o=()=>n.useFactory(...Np(n.deps||[]));else if(function Pb(n){return!(!n||!n.useExisting)}(n))o=()=>mt(_t(n.useExisting));else{const s=_t(n&&(n.useClass||n.provide));if(!function fE(n){return!!n.deps}(n))return dc(s)||U6(s);o=()=>new s(...Np(n.deps))}return o}function sl(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function j6(n,e){for(const t of n)Array.isArray(t)?j6(t,e):t&&Jn(t)?j6(t.\u0275providers,e):e(t)}class AE{}class Ub{}class mE{resolveComponentFactory(e){throw function gE(n){const e=Error(`No component factory found for ${Vt(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let zi=(()=>{class n{}return n.NULL=new mE,n})();function yE(){return al(Ko(),ct())}function al(n,e){return new Ni(Oi(n,e))}let Ni=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=yE,n})();function bE(n){return n instanceof Ni?n.nativeElement:n}class Gu{}let Xs=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function _E(){const n=ct(),t=Si(Ko().index,n);return(xi(t)?t:n)[11]}(),n})(),wE=(()=>{class n{}return n.\u0275prov=et({token:n,providedIn:"root",factory:()=>null}),n})();class Qu{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const vE=new Qu("15.1.2"),G6={};function H6(n){return n.ngOriginalError}class cl{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&H6(e);for(;t&&H6(t);)t=H6(t);return t||null}}function Gb(n){return n.ownerDocument.defaultView}function ea(n){return n instanceof Function?n():n}function Hb(n,e,t){let o=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const l=e.length;if(s+l===o||n.charCodeAt(s+l)<=32)return s}t=s+1}}const zb="ng-template";function SE(n,e,t){let o=0;for(;ol?"":s[U+1].toLowerCase();const ce=8&o?q:null;if(ce&&-1!==Hb(ce,y,0)||2&o&&y!==q){if(us(o))return!1;u=!0}}}}else{if(!u&&!us(o)&&!us(A))return!1;if(u&&us(A))continue;u=!1,o=A|1&o}}return us(o)||u}function us(n){return 0==(1&n)}function PE(n,e,t,o){if(null===e)return-1;let s=0;if(o||!t){let l=!1;for(;s-1)for(t++;t0?'="'+h+'"':"")+"]"}else 8&o?s+="."+u:4&o&&(s+=" "+u);else""!==s&&!us(u)&&(e+=Yb(l,s),s=""),o=u,l=l||!us(o);t++}return""!==s&&(e+=Yb(l,s)),e}const Fn={};function se(n){Wb(wr(),ct(),hi()+n,!1)}function Wb(n,e,t,o){if(!o)if(3==(3&e[2])){const l=n.preOrderCheckHooks;null!==l&&Jd(e,l,t)}else{const l=n.preOrderHooks;null!==l&&Xd(e,l,0,t)}fc(t)}function Jb(n,e=null,t=null,o){const s=Xb(n,e,t,o);return s.resolveInjectorInitializers(),s}function Xb(n,e=null,t=null,o,s=new Set){const l=[t||Sr,sE(n)];return o=o||("object"==typeof n?void 0:Vt(n)),new Fb(l,e||wf(),o||null,s)}let pi=(()=>{class n{static create(t,o){if(Array.isArray(t))return Jb({name:""},o,t,"");{const s=t.name??"";return Jb({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rr,n.NULL=new Sb,n.\u0275prov=et({token:n,providedIn:"any",factory:()=>mt(ju)}),n.__NG_ELEMENT_ID__=-1,n})();function ke(n,e=bt.Default){const t=ct();return null===t?mt(n,e):M2(Ko(),t,_t(n),e)}function a_(n,e){const t=n.contentQueries;if(null!==t)for(let o=0;o22&&Wb(n,e,22,!1),t(o,s)}finally{fc(l)}}function Z6(n,e,t){if(Up(e)){const s=e.directiveEnd;for(let l=e.directiveStart;l0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(u)!=h&&u.push(h),u.push(t,o,l)}}(n,e,o,Hu(n,t,s.hostVars,Fn),s)}function xs(n,e,t,o,s,l){const u=Oi(n,e);!function nA(n,e,t,o,s,l,u){if(null==l)n.removeAttribute(e,s,t);else{const h=null==u?F(l):u(l,o||"",s);n.setAttribute(e,s,h,t)}}(e[11],u,l,n.value,t,o,s)}function kM(n,e,t,o,s,l){const u=l[e];if(null!==u){const h=o.setInput;for(let A=0;A0&&rA(t)}}function rA(n){for(let o=g6(n);null!==o;o=m6(o))for(let s=10;s0&&rA(l)}const t=n[1].components;if(null!==t)for(let o=0;o0&&rA(s)}}function OM(n,e){const t=Si(e,n),o=t[1];(function SM(n,e){for(let t=e.length;t-1&&(_6(e,o),cf(t,o))}this._attachedToViewContainer=!1}ib(this._lView[1],this._lView)}onDestroy(e){u_(this._lView[1],this._lView,null,e)}markForCheck(){oA(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){kf(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ID(n,e){Ru(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Le(902,!1);this._appRef=e}}class BM extends zu{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;kf(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class w_ extends zi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Pr(e);return new Vu(t,this.ngModule)}}function v_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class PM{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,o){o=Qd(o);const s=this.injector.get(e,G6,o);return s!==G6||t===G6?s:this.parentInjector.get(e,t,o)}}class Vu extends Ub{get inputs(){return v_(this.componentDef.inputs)}get outputs(){return v_(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function GE(n){return n.map(jE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,o,s){let l=(s=s||this.ngModule)instanceof Js?s:s?.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const u=l?new PM(e,l):e,h=u.get(Gu,null);if(null===h)throw new Le(407,!1);const A=u.get(wE,null),y=h.createRenderer(null,this.componentDef),D=this.componentDef.selectors[0][0]||"div",U=o?function dM(n,e,t){return n.selectRootElement(e,t===ss.ShadowDom)}(y,o,this.componentDef.encapsulation):b6(y,D,function NM(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(D)),q=this.componentDef.onPush?288:272,ce=X6(0,null,null,1,0,null,null,null,null,null),ye=If(null,ce,null,q,null,null,h,y,A,u,null);let Be,ze;Yp(ye);try{const tt=this.componentDef;let Pe,qe=null;tt.findHostDirectiveDefs?(Pe=[],qe=new Map,tt.findHostDirectiveDefs(tt,Pe,qe),Pe.push(tt)):Pe=[tt];const Et=function FM(n,e){const t=n[1];return n[22]=e,dl(t,22,2,"#host",null)}(ye,U),En=function LM(n,e,t,o,s,l,u,h){const A=s[1];!function UM(n,e,t,o){for(const s of n)e.mergedAttrs=ku(e.mergedAttrs,s.hostAttrs);null!==e.mergedAttrs&&(Df(e,e.mergedAttrs,!0),null!==t&&mb(o,t,e))}(o,n,e,u);const y=l.createRenderer(e,t),D=If(s,l_(t),null,t.onPush?32:16,s[n.index],n,l,y,h||null,null,null);return A.firstCreatePass&&tA(A,n,o.length-1),Tf(s,D),s[n.index]=D}(Et,U,tt,Pe,ye,h,y);ze=i2(ce,22),U&&function GM(n,e,t,o){if(o)qp(n,t,["ng-version",vE.full]);else{const{attrs:s,classes:l}=function QE(n){const e=[],t=[];let o=1,s=2;for(;o0&&gb(n,t,l.join(" "))}}(y,tt,U,o),void 0!==t&&function QM(n,e,t){const o=n.projection=[];for(let s=0;s=0;o--){const s=n[o];s.hostVars=e+=s.hostVars,s.hostAttrs=ku(s.hostAttrs,t=ku(t,s.hostAttrs))}}(o)}function aA(n){return n===Ks?{}:n===Sr?[]:n}function VM(n,e){const t=n.viewQuery;n.viewQuery=t?(o,s)=>{e(o,s),t(o,s)}:e}function KM(n,e){const t=n.contentQueries;n.contentQueries=t?(o,s,l)=>{e(o,s,l),t(o,s,l)}:e}function YM(n,e){const t=n.hostBindings;n.hostBindings=t?(o,s)=>{e(o,s),t(o,s)}:e}let Mf=null;function yc(){if(!Mf){const n=Dn.Symbol;if(n&&n.iterator)Mf=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;tu(Vo(Et[o.index])):o.index;let qe=null;if(!u&&h&&(qe=function ax(n,e,t,o){const s=n.cleanup;if(null!=s)for(let l=0;lA?h[A]:null}"string"==typeof u&&(l+=2)}return null}(n,e,s,o.index)),null!==qe)(qe.__ngLastListenerFn__||qe).__ngNextListenerFn__=l,qe.__ngLastListenerFn__=l,q=!1;else{l=G_(o,e,D,l,!1);const Et=t.listen(ze,s,l);U.push(l,Et),y&&y.push(s,Pe,tt,tt+1)}}else l=G_(o,e,D,l,!1);const ce=o.outputs;let ye;if(q&&null!==ce&&(ye=ce[s])){const Be=ye.length;if(Be)for(let ze=0;ze-1?Si(n.index,e):e);let A=j_(e,0,o,u),y=l.__ngNextListenerFn__;for(;y;)A=j_(e,0,y,u)&&A,y=y.__ngNextListenerFn__;return s&&!1===A&&(u.preventDefault(),u.returnValue=!1),A}}function st(n=1){return function g8(n){return(Rn.lFrame.contextLView=function m8(n,e){for(;n>0;)e=e[15],n--;return e}(n,Rn.lFrame.contextLView))[8]}(n)}function Sf(n,e){return n<<17|e<<2}function Fa(n){return n>>17&32767}function AA(n){return 2|n}function _c(n){return(131068&n)>>2}function gA(n,e){return-131069&n|e<<2}function mA(n){return 1|n}function q_(n,e,t,o,s){const l=n[t+1],u=null===e;let h=o?Fa(l):_c(l),A=!1;for(;0!==h&&(!1===A||u);){const D=n[h+1];gx(n[h],e)&&(A=!0,n[h+1]=o?mA(D):AA(D)),h=o?Fa(D):_c(D)}A&&(n[t+1]=o?AA(l):mA(l))}function gx(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&rl(n,e)>=0}function Bf(n,e){return function ds(n,e,t,o){const s=ct(),l=wr(),u=function Zs(n){const e=Rn.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);l.firstUpdatePass&&function s4(n,e,t,o){const s=n.data;if(null===s[t+1]){const l=s[hi()],u=function i4(n,e){return e>=n.expandoStartIndex}(n,t);(function u4(n,e){return 0!=(n.flags&(e?8:16))})(l,o)&&null===e&&!u&&(e=!1),e=function Tx(n,e,t,o){const s=function Vp(n){const e=Rn.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let l=o?e.residualClasses:e.residualStyles;if(null===s)0===(o?e.classBindings:e.styleBindings)&&(t=Wu(t=yA(null,n,e,t,o),e.attrs,o),l=null);else{const u=e.directiveStylingLast;if(-1===u||n[u]!==s)if(t=yA(s,n,e,t,o),null===l){let A=function kx(n,e,t){const o=t?e.classBindings:e.styleBindings;if(0!==_c(o))return n[Fa(o)]}(n,e,o);void 0!==A&&Array.isArray(A)&&(A=yA(null,n,e,A[1],o),A=Wu(A,e.attrs,o),function Dx(n,e,t,o){n[Fa(t?e.classBindings:e.styleBindings)]=o}(n,e,o,A))}else l=function Ex(n,e,t){let o;const s=e.directiveEnd;for(let l=1+e.directiveStylingLast;l0)&&(y=!0)):D=t,s)if(0!==A){const q=Fa(n[h+1]);n[o+1]=Sf(q,h),0!==q&&(n[q+1]=gA(n[q+1],o)),n[h+1]=function fx(n,e){return 131071&n|e<<17}(n[h+1],o)}else n[o+1]=Sf(h,0),0!==h&&(n[h+1]=gA(n[h+1],o)),h=o;else n[o+1]=Sf(A,0),0===h?h=o:n[A+1]=gA(n[A+1],o),A=o;y&&(n[o+1]=AA(n[o+1])),q_(n,D,o,!0),q_(n,D,o,!1),function Ax(n,e,t,o,s){const l=s?n.residualClasses:n.residualStyles;null!=l&&"string"==typeof e&&rl(l,e)>=0&&(t[o+1]=mA(t[o+1]))}(e,D,n,o,l),u=Sf(h,A),l?e.classBindings=u:e.styleBindings=u}(s,l,e,t,u,o)}}(l,n,u,o),e!==Fn&&ri(s,u,e)&&function c4(n,e,t,o,s,l,u,h){if(!(3&e.type))return;const A=n.data,y=A[h+1],D=function hx(n){return 1==(1&n)}(y)?l4(A,e,t,s,_c(y),u):void 0;Nf(D)||(Nf(l)||function dx(n){return 2==(2&n)}(y)&&(l=l4(A,null,t,s,h,u)),function BD(n,e,t,o,s){if(e)s?n.addClass(t,o):n.removeClass(t,o);else{let l=-1===o.indexOf("-")?void 0:Ii.DashCase;null==s?n.removeStyle(t,o,l):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),l|=Ii.Important),n.setStyle(t,o,s,l))}}(o,u,$d(hi(),t),s,l))}(l,l.data[hi()],s,s[11],n,s[u+1]=function Ox(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=Vt(Ra(n)))),n}(e,t),o,u)}(n,e,null,!0),Bf}function yA(n,e,t,o,s){let l=null;const u=t.directiveEnd;let h=t.directiveStylingLast;for(-1===h?h=t.directiveStart:h++;h0;){const A=n[s],y=Array.isArray(A),D=y?A[1]:A,U=null===D;let q=t[s+1];q===Fn&&(q=U?Sr:void 0);let ce=U?i6(q,o):D===o?q:void 0;if(y&&!Nf(ce)&&(ce=i6(A,o)),Nf(ce)&&(h=ce,u))return h;const ye=n[s+1];s=u?Fa(ye):_c(ye)}if(null!==e){let A=l?e.residualClasses:e.residualStyles;null!=A&&(h=i6(A,o))}return h}function Nf(n){return void 0!==n}function me(n,e=""){const t=ct(),o=wr(),s=n+22,l=o.firstCreatePass?dl(o,s,1,e,null):o.data[s],u=t[s]=function y6(n,e){return n.createText(e)}(t[11],e);hf(o,t,u,l),Es(l,!1)}function $u(n){return gn("",n,""),$u}function gn(n,e,t){const o=ct(),s=function hl(n,e,t,o){return ri(n,Zc(),t)?e+F(t)+o:Fn}(o,n,e,t);return s!==Fn&&function ta(n,e,t){const o=$d(e,n);!function rb(n,e,t){n.setValue(e,t)}(n[11],o,t)}(o,hi(),s),gn}const Il="en-US";let S4=Il;function wA(n,e,t,o,s){if(n=_t(n),Array.isArray(n))for(let l=0;l>20;if(mc(n)||!n.multi){const ce=new Tu(A,s,ke),ye=IA(h,e,s?D:D+q,U);-1===ye?(t6(rf(y,u),l,h),vA(l,n,e.length),e.push(h),y.directiveStart++,y.directiveEnd++,s&&(y.providerIndexes+=1048576),t.push(ce),u.push(ce)):(t[ye]=ce,u[ye]=ce)}else{const ce=IA(h,e,D+q,U),ye=IA(h,e,D,D+q),ze=ye>=0&&t[ye];if(s&&!ze||!s&&!(ce>=0&&t[ce])){t6(rf(y,u),l,h);const tt=function $O(n,e,t,o,s){const l=new Tu(n,t,ke);return l.multi=[],l.index=e,l.componentProviders=0,rw(l,s,o&&!t),l}(s?WO:YO,t.length,s,o,A);!s&&ze&&(t[ye].providerFactory=tt),vA(l,n,e.length,0),e.push(h),y.directiveStart++,y.directiveEnd++,s&&(y.providerIndexes+=1048576),t.push(tt),u.push(tt)}else vA(l,n,ce>-1?ce:ye,rw(t[s?ye:ce],A,!s&&o));!s&&o&&ze&&t[ye].componentProviders++}}}function vA(n,e,t,o){const s=mc(e),l=function cE(n){return!!n.useClass}(e);if(s||l){const A=(l?_t(e.useClass):e).prototype.ngOnDestroy;if(A){const y=n.destroyHooks||(n.destroyHooks=[]);if(!s&&e.multi){const D=y.indexOf(t);-1===D?y.push(t,[o,A]):y[D+1].push(o,A)}else y.push(t,A)}}}function rw(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function IA(n,e,t,o){for(let s=t;s{t.providersResolver=(o,s)=>function KO(n,e,t){const o=wr();if(o.firstCreatePass){const s=ls(n);wA(t,o.data,o.blueprint,s,!0),wA(e,o.data,o.blueprint,s,!1)}}(o,s?s(n):n,e)}}class Cl{}class ow{}class iw extends Cl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new w_(this);const o=Mi(e);this._bootstrapComponents=ea(o.bootstrap),this._r3Injector=Xb(e,t,[{provide:Cl,useValue:this},{provide:zi,useValue:this.componentFactoryResolver}],Vt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class TA extends ow{constructor(e){super(),this.moduleType=e}create(e){return new iw(this.moduleType,e)}}class qO extends Cl{constructor(e,t,o){super(),this.componentFactoryResolver=new w_(this),this.instance=null;const s=new Fb([...e,{provide:Cl,useValue:this},{provide:zi,useValue:this.componentFactoryResolver}],t||wf(),o,new Set(["environment"]));this.injector=s,s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function Uf(n,e,t=null){return new qO(n,e,t).injector}let JO=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const o=Bb(0,t.type),s=o.length>0?Uf([o],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,s)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=et({token:n,providedIn:"environment",factory:()=>new n(mt(Js))}),n})();function sw(n){n.getStandaloneInjector=e=>e.get(JO).getOrCreateStandaloneInjector(n)}function DA(n,e,t){const o=fi()+n,s=ct();return s[o]===Fn?Os(s,o,t?e.call(t):e()):Ku(s,o)}function jo(n,e,t,o){return Aw(ct(),fi(),n,e,t,o)}function t3(n,e,t,o,s){return function gw(n,e,t,o,s,l,u){const h=e+t;return bc(n,h,s,l)?Os(n,h+2,u?o.call(u,s,l):o(s,l)):r3(n,h+2)}(ct(),fi(),n,e,t,o,s)}function n3(n,e,t,o){return function bw(n,e,t,o,s,l){let u=e+t,h=!1;for(let A=0;A=0;t--){const o=e[t];if(n===o.name)return o}}(e,t.pipeRegistry),t.data[s]=o,o.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(s,o.onDestroy)):o=t.data[s];const l=o.factory||(o.factory=dc(o.type)),u=An(ke);try{const h=nf(!1),A=l();return nf(h),function ox(n,e,t,o){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=o}(t,ct(),s,A),A}finally{An(u)}}function Gf(n,e,t){const o=n+22,s=ct(),l=$c(s,o);return function o3(n,e){return n[1].data[e].pure}(s,o)?Aw(s,fi(),e,l.transform,t,l):l.transform(t)}function EA(n){return e=>{setTimeout(n,void 0,e)}}const lo=class AS extends C{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,o){let s=e,l=t||(()=>null),u=o;if(e&&"object"==typeof e){const A=e;s=A.next?.bind(A),l=A.error?.bind(A),u=A.complete?.bind(A)}this.__isAsync&&(l=EA(l),s&&(s=EA(s)),u&&(u=EA(u)));const h=super.subscribe({next:s,error:l,complete:u});return e instanceof I&&e.add(h),h}};function gS(){return this._results[yc()]()}class MA{get changes(){return this._changes||(this._changes=new lo)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=yc(),o=MA.prototype;o[t]||(o[t]=gS)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const o=this;o.dirty=!1;const s=function Hi(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function F8(n,e,t){if(n.length!==e.length)return!1;for(let o=0;o{class n{}return n.__NG_ELEMENT_ID__=bS,n})();const mS=na,yS=class extends mS{constructor(e,t,o){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=o}createEmbeddedView(e,t){const o=this._declarationTContainer.tViews,s=If(this._declarationLView,o,e,16,null,o.declTNode,null,null,null,null,t||null);s[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(s[19]=u.createEmbeddedView(o)),$6(o,s,e),new zu(s)}};function bS(){return Qf(Ko(),ct())}function Qf(n,e){return 4&n.type?new yS(e,n,al(n,e)):null}let Ri=(()=>{class n{}return n.__NG_ELEMENT_ID__=_S,n})();function _S(){return vw(Ko(),ct())}const wS=Ri,_w=class extends wS{constructor(e,t,o){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=o}get element(){return al(this._hostTNode,this._hostLView)}get injector(){return new Jc(this._hostTNode,this._hostLView)}get parentInjector(){const e=e6(this._hostTNode,this._hostLView);if(I2(e)){const t=tf(e,this._hostLView),o=ef(e);return new Jc(t[1].data[o+8],t)}return new Jc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=ww(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,o){let s,l;"number"==typeof o?s=o:null!=o&&(s=o.index,l=o.injector);const u=e.createEmbeddedView(t||{},l);return this.insert(u,s),u}createComponent(e,t,o,s,l){const u=e&&!function Eu(n){return"function"==typeof n}(e);let h;if(u)h=t;else{const U=t||{};h=U.index,o=U.injector,s=U.projectableNodes,l=U.environmentInjector||U.ngModuleRef}const A=u?e:new Vu(Pr(e)),y=o||this.parentInjector;if(!l&&null==A.ngModule){const q=(u?y:this.parentInjector).get(Js,null);q&&(l=q)}const D=A.create(y,s,void 0,l);return this.insert(D.hostView,h),D}insert(e,t){const o=e._lView,s=o[1];if(function i8(n){return cs(n[3])}(o)){const D=this.indexOf(e);if(-1!==D)this.detach(D);else{const U=o[3],q=new _w(U,U[6],U[3]);q.detach(q.indexOf(e))}}const l=this._adjustIndex(t),u=this._lContainer;!function TD(n,e,t,o){const s=10+o,l=t.length;o>0&&(t[s-1][4]=e),o0)o.push(u[h/2]);else{const y=l[h+1],D=e[-A];for(let U=10;U{class n{constructor(t){this.appInits=t,this.resolve=zf,this.reject=zf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,s)=>{this.resolve=o,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{l.subscribe({complete:h,error:A})});t.push(u)}}Promise.all(t).then(()=>{o()}).catch(s=>{this.reject(s)}),0===t.length&&o(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(mt(Vf,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const s3=new hn("AppId",{providedIn:"root",factory:function Ww(){return`${jA()}${jA()}${jA()}`}});function jA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $w=new hn("Platform Initializer"),Zw=new hn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qw=new hn("appBootstrapListener"),Jw=new hn("AnimationModuleType");let YS=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const ra=new hn("LocaleId",{providedIn:"root",factory:()=>_r(ra,bt.Optional|bt.SkipSelf)||function WS(){return typeof $localize<"u"&&$localize.locale||Il}()});class ZS{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Xw=(()=>{class n{compileModuleSync(t){return new TA(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const o=this.compileModuleSync(t),l=ea(Mi(t).declarations).reduce((u,h)=>{const A=Pr(h);return A&&u.push(new Vu(A)),u},[]);return new ZS(o,l)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const XS=(()=>Promise.resolve(0))();function GA(n){typeof Zone>"u"?XS.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class uo{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lo(!1),this.onMicrotaskEmpty=new lo(!1),this.onStable=new lo(!1),this.onError=new lo(!1),typeof Zone>"u")throw new Le(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&t,s.shouldCoalesceRunChangeDetection=o,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function eB(){let n=Dn.requestAnimationFrame,e=Dn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function rB(n){const e=()=>{!function nB(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Dn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,HA(n),n.isCheckStableRunning=!0,QA(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),HA(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,o,s,l,u,h)=>{try{return nv(n),t.invokeTask(s,l,u,h)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||n.shouldCoalesceRunChangeDetection)&&e(),rv(n)}},onInvoke:(t,o,s,l,u,h,A)=>{try{return nv(n),t.invoke(s,l,u,h,A)}finally{n.shouldCoalesceRunChangeDetection&&e(),rv(n)}},onHasTask:(t,o,s,l)=>{t.hasTask(s,l),o===s&&("microTask"==l.change?(n._hasPendingMicrotasks=l.microTask,HA(n),QA(n)):"macroTask"==l.change&&(n.hasPendingMacrotasks=l.macroTask))},onHandleError:(t,o,s,l)=>(t.handleError(s,l),n.runOutsideAngular(()=>n.onError.emit(l)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!uo.isInAngularZone())throw new Le(909,!1)}static assertNotInAngularZone(){if(uo.isInAngularZone())throw new Le(909,!1)}run(e,t,o){return this._inner.run(e,t,o)}runTask(e,t,o,s){const l=this._inner,u=l.scheduleEventTask("NgZoneEvent: "+s,e,tB,zf,zf);try{return l.runTask(u,t,o)}finally{l.cancelTask(u)}}runGuarded(e,t,o){return this._inner.runGuarded(e,t,o)}runOutsideAngular(e){return this._outer.run(e)}}const tB={};function QA(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function HA(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function nv(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function rv(n){n._nesting--,QA(n)}class oB{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lo,this.onMicrotaskEmpty=new lo,this.onStable=new lo,this.onError=new lo}run(e,t,o){return e.apply(t,o)}runGuarded(e,t,o){return e.apply(t,o)}runOutsideAngular(e){return e()}runTask(e,t,o,s){return e.apply(t,o)}}const ov=new hn(""),Yf=new hn("");let KA,zA=(()=>{class n{constructor(t,o,s){this._ngZone=t,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,KA||(function iB(n){KA=n}(s),s.addToWindow(o)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{uo.assertNotInAngularZone(),GA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())GA(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(t)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,o,s){let l=-1;o&&o>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==l),t(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:t,timeoutId:l,updateCb:s})}whenStable(t,o,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,o,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(mt(uo),mt(VA),mt(Yf))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),VA=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,o){this._applications.set(t,o)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,o=!0){return KA?.findTestabilityInTree(this,t,o)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),La=null;const iv=new hn("AllowMultipleToken"),YA=new hn("PlatformDestroyListeners");class sv{constructor(e,t){this.name=e,this.token=t}}function cv(n,e,t=[]){const o=`Platform: ${e}`,s=new hn(o);return(l=[])=>{let u=WA();if(!u||u.injector.get(iv,!1)){const h=[...t,...l,{provide:s,useValue:!0}];n?n(h):function cB(n){if(La&&!La.get(iv,!1))throw new Le(400,!1);La=n;const e=n.get(uv);(function av(n){const e=n.get($w,null);e&&e.forEach(t=>t())})(n)}(function lv(n=[],e){return pi.create({name:e,providers:[{provide:F6,useValue:"platform"},{provide:YA,useValue:new Set([()=>La=null])},...n]})}(h,o))}return function uB(n){const e=WA();if(!e)throw new Le(401,!1);return e}()}}function WA(){return La?.get(uv)??null}let uv=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,o){const s=function fv(n,e){let t;return t="noop"===n?new oB:("zone.js"===n?void 0:n)||new uo(e),t}(o?.ngZone,function dv(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(o)),l=[{provide:uo,useValue:s}];return s.run(()=>{const u=pi.create({providers:l,parent:this.injector,name:t.moduleType.name}),h=t.create(u),A=h.injector.get(cl,null);if(!A)throw new Le(402,!1);return s.runOutsideAngular(()=>{const y=s.onError.subscribe({next:D=>{A.handleError(D)}});h.onDestroy(()=>{Wf(this._modules,h),y.unsubscribe()})}),function hv(n,e,t){try{const o=t();return Yu(o)?o.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):o}catch(o){throw e.runOutsideAngular(()=>n.handleError(o)),o}}(A,s,()=>{const y=h.injector.get(Kf);return y.runInitializers(),y.donePromise.then(()=>(function B4(n){Zt(n,"Expected localeId to be defined"),"string"==typeof n&&(S4=n.toLowerCase().replace(/_/g,"-"))}(h.injector.get(ra,Il)||Il),this._moduleDoBootstrap(h),h))})})}bootstrapModule(t,o=[]){const s=pv({},o);return function sB(n,e,t){const o=new TA(t);return Promise.resolve(o)}(0,0,t).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(t){const o=t.injector.get(As);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>o.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new Le(-403,!1);t.instance.ngDoBootstrap(o)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Le(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const t=this._injector.get(YA,null);t&&(t.forEach(o=>o()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(mt(pi))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function pv(n,e){return Array.isArray(e)?e.reduce(pv,n):{...n,...e}}let As=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,o,s){this._zone=t,this._injector=o,this._exceptionHandler=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new de(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new de(h=>{let A;this._zone.runOutsideAngular(()=>{A=this._zone.onStable.subscribe(()=>{uo.assertNotInAngularZone(),GA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const y=this._zone.onUnstable.subscribe(()=>{uo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{A.unsubscribe(),y.unsubscribe()}});this.isStable=function hr(...n){let e=Number.POSITIVE_INFINITY,t=null,o=n[n.length-1];return N(o)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof o&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof de?n[0]:Cn(e)(rr(n,t))}(l,u.pipe(function qt(){return n=>Z()(function en(n,e){return function(o){let s;if(s="function"==typeof n?n:function(){return n},"function"==typeof e)return o.lift(new Xt(s,e));const l=Object.create(o,Ce);return l.source=o,l.subjectFactory=s,l}}(tr)(n))}()))}bootstrap(t,o){const s=t instanceof Ub;if(!this._injector.get(Kf).done)throw!s&&function zc(n){const e=Pr(n)||Xo(n)||ui(n);return null!==e&&e.standalone}(t),new Le(405,false);let u;u=s?t:this._injector.get(zi).resolveComponentFactory(t),this.componentTypes.push(u.componentType);const h=function aB(n){return n.isBoundToModule}(u)?void 0:this._injector.get(Cl),y=u.create(pi.NULL,[],o||u.selector,h),D=y.location.nativeElement,U=y.injector.get(ov,null);return U?.registerApplication(D),y.onDestroy(()=>{this.detachView(y.hostView),Wf(this.components,y),U?.unregisterApplication(D)}),this._loadComponent(y),y}tick(){if(this._runningTick)throw new Le(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const o=t;this._views.push(o),o.attachToAppRef(this)}detachView(t){const o=t;Wf(this._views,o),o.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const o=this._injector.get(qw,[]);o.push(...this._bootstrapListeners),o.forEach(s=>s(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Wf(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new Le(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(mt(uo),mt(Js),mt(cl))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Wf(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Ua=(()=>{class n{}return n.__NG_ELEMENT_ID__=fB,n})();function fB(n){return function hB(n,e,t){if(Iu(n)&&!t){const o=Si(n.index,e);return new zu(o,o)}return 47&n.type?new zu(e[16],e):null}(Ko(),ct(),16==(16&n))}class bv{constructor(){}supports(e){return xf(e)}create(e){return new bB(e)}}const yB=(n,e)=>e;class bB{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yB}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,o=this._removalsHead,s=0,l=null;for(;t||o;){const u=!o||t&&t.currentIndex{u=this._trackByFn(s,h),null!==t&&Object.is(t.trackById,u)?(o&&(t=this._verifyReinsertion(t,h,u,s)),Object.is(t.item,h)||this._addIdentityChange(t,h)):(t=this._mismatch(t,h,u,s),o=!0),t=t._next,s++}),this.length=s;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,o,s){let l;return null===e?l=this._itTail:(l=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,l,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(o,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,l,s)):e=this._addAfter(new _B(t,o),l,s),e}_verifyReinsertion(e,t,o,s){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==l?e=this._reinsertAfter(l,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,l=e._nextRemoved;return null===s?this._removalsHead=l:s._nextRemoved=l,null===l?this._removalsTail=s:l._prevRemoved=s,this._insertAfter(e,t,o),this._addToMoves(e,o),e}_moveAfter(e,t,o){return this._unlink(e),this._insertAfter(e,t,o),this._addToMoves(e,o),e}_addAfter(e,t,o){return this._insertAfter(e,t,o),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,o){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new _v),this._linkedRecords.put(e),e.currentIndex=o,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,o=e._next;return null===t?this._itHead=o:t._next=o,null===o?this._itTail=t:o._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _v),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class _B{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wB{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===t||t<=o.currentIndex)&&Object.is(o.trackById,e))return o;return null}remove(e){const t=e._prevDup,o=e._nextDup;return null===t?this._head=o:t._nextDup=o,null===o?this._tail=t:o._prevDup=t,null===this._head}}class _v{constructor(){this.map=new Map}put(e){const t=e.trackById;let o=this.map.get(t);o||(o=new wB,this.map.set(t,o)),o.add(e)}get(e,t){const s=this.map.get(e);return s?s.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wv(n,e,t){const o=n.previousIndex;if(null===o)return o;let s=0;return t&&o{if(t&&t.key===s)this._maybeAddToChanges(t,o),this._appendAfter=t,t=t._next;else{const l=this._getOrCreateRecordForKey(s,o);t=this._insertBeforeOrAppend(t,l)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let o=t;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const o=e._prev;return t._next=e,t._prev=o,e._prev=t,o&&(o._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const s=this._records.get(e);this._maybeAddToChanges(s,t);const l=s._prev,u=s._next;return l&&(l._next=u),u&&(u._prev=l),s._next=null,s._prev=null,s}const o=new IB(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(o=>t(e[o],o))}}class IB{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Iv(){return new qf([new bv])}let qf=(()=>{class n{constructor(t){this.factories=t}static create(t,o){if(null!=o){const s=o.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:o=>n.create(t,o||Iv()),deps:[[n,new Ou,new xu]]}}find(t){const o=this.factories.find(s=>s.supports(t));if(null!=o)return o;throw new Le(901,!1)}}return n.\u0275prov=et({token:n,providedIn:"root",factory:Iv}),n})();function Cv(){return new a3([new vv])}let a3=(()=>{class n{constructor(t){this.factories=t}static create(t,o){if(o){const s=o.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:o=>n.create(t,o||Cv()),deps:[[n,new Ou,new xu]]}}find(t){const o=this.factories.find(s=>s.supports(t));if(o)return o;throw new Le(901,!1)}}return n.\u0275prov=et({token:n,providedIn:"root",factory:Cv}),n})();const kB=cv(null,"core",[]);let DB=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(mt(As))},n.\u0275mod=li({type:n}),n.\u0275inj=je({}),n})();let XA=null;function Ps(){return XA}class xB{}const oi=new hn("DocumentToken");let eg=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return function OB(){return mt(Tv)}()},providedIn:"platform"}),n})();const SB=new hn("Location Initialized");let Tv=(()=>{class n extends eg{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ps().getBaseHref(this._doc)}onPopState(t){const o=Ps().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",t,!1),()=>o.removeEventListener("popstate",t)}onHashChange(t){const o=Ps().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",t,!1),()=>o.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,o,s){kv()?this._history.pushState(t,o,s):this._location.hash=s}replaceState(t,o,s){kv()?this._history.replaceState(t,o,s):this._location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(mt(oi))},n.\u0275prov=et({token:n,factory:function(){return function BB(){return new Tv(mt(oi))}()},providedIn:"platform"}),n})();function kv(){return!!window.history.pushState}function tg(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Dv(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function ia(n){return n&&"?"!==n[0]?"?"+n:n}let Ic=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return _r(Mv)},providedIn:"root"}),n})();const Ev=new hn("appBaseHref");let Mv=(()=>{class n extends Ic{constructor(t,o){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??_r(oi).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return tg(this._baseHref,t)}path(t=!1){const o=this._platformLocation.pathname+ia(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${o}${s}`:o}pushState(t,o,s,l){const u=this.prepareExternalUrl(s+ia(l));this._platformLocation.pushState(t,o,u)}replaceState(t,o,s,l){const u=this.prepareExternalUrl(s+ia(l));this._platformLocation.replaceState(t,o,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(mt(eg),mt(Ev,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NB=(()=>{class n extends Ic{constructor(t,o){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=o&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(t){const o=tg(this._baseHref,t);return o.length>0?"#"+o:o}pushState(t,o,s,l){let u=this.prepareExternalUrl(s+ia(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(t,o,u)}replaceState(t,o,s,l){let u=this.prepareExternalUrl(s+ia(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(t,o,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(mt(eg),mt(Ev,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),ng=(()=>{class n{constructor(t){this._subject=new lo,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const o=this._locationStrategy.getBaseHref();this._basePath=function FB(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(Dv(xv(o))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,o=""){return this.path()==this.normalize(t+ia(o))}normalize(t){return n.stripTrailingSlash(function RB(n,e){return n&&new RegExp(`^${n}([/;?#]|$)`).test(e)?e.substring(n.length):e}(this._basePath,xv(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,o="",s=null){this._locationStrategy.pushState(s,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ia(o)),s)}replaceState(t,o="",s=null){this._locationStrategy.replaceState(s,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ia(o)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{const o=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",o){this._urlChangeListeners.forEach(s=>s(t,o))}subscribe(t,o,s){return this._subject.subscribe({next:t,error:o,complete:s})}}return n.normalizeQueryParams=ia,n.joinWithSlash=tg,n.stripTrailingSlash=Dv,n.\u0275fac=function(t){return new(t||n)(mt(Ic))},n.\u0275prov=et({token:n,factory:function(){return function PB(){return new ng(mt(Ic))}()},providedIn:"root"}),n})();function xv(n){return n.replace(/\/index.html$/,"")}const fg=/\s+/,Uv=[];let u3=(()=>{class n{constructor(t,o,s,l){this._iterableDiffers=t,this._keyValueDiffers=o,this._ngEl=s,this._renderer=l,this.initialClasses=Uv,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(fg):Uv}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(fg):t}ngDoCheck(){for(const o of this.initialClasses)this._updateState(o,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const o of t)this._updateState(o,!0);else if(null!=t)for(const o of Object.keys(t))this._updateState(o,Boolean(t[o]));this._applyStateDiff()}_updateState(t,o){const s=this.stateMap.get(t);void 0!==s?(s.enabled!==o&&(s.changed=!0,s.enabled=o),s.touched=!0):this.stateMap.set(t,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const o=t[0],s=t[1];s.changed?(this._toggleClass(o,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),s.touched=!1}}_toggleClass(t,o){(t=t.trim()).length>0&&t.split(fg).forEach(s=>{o?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return n.\u0275fac=function(t){return new(t||n)(ke(qf),ke(a3),ke(Ni),ke(Xs))},n.\u0275dir=Tn({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class vN{constructor(e,t,o,s){this.$implicit=e,this.ngForOf=t,this.index=o,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pr=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,o,s){this._viewContainer=t,this._template=o,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const o=this._viewContainer;t.forEachOperation((s,l,u)=>{if(null==s.previousIndex)o.createEmbeddedView(this._template,new vN(s.item,this._ngForOf,-1,-1),null===u?void 0:u);else if(null==u)o.remove(null===l?void 0:l);else if(null!==l){const h=o.get(l);o.move(h,u),Qv(h,s)}});for(let s=0,l=o.length;s{Qv(o.get(s.currentIndex),s)})}static ngTemplateContextGuard(t,o){return!0}}return n.\u0275fac=function(t){return new(t||n)(ke(Ri),ke(na),ke(qf))},n.\u0275dir=Tn({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function Qv(n,e){n.context.$implicit=e.item}let Wi=(()=>{class n{constructor(t,o){this._viewContainer=t,this._context=new CN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Hv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Hv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,o){return!0}}return n.\u0275fac=function(t){return new(t||n)(ke(Ri),ke(na))},n.\u0275dir=Tn({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class CN{constructor(){this.$implicit=null,this.ngIf=null}}function Hv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Vt(e)}'.`)}let d3=(()=>{class n{constructor(t,o,s){this._ngEl=t,this._differs=o,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,o){const[s,l]=t.split("."),u=-1===s.indexOf("-")?void 0:Ii.DashCase;null!=o?this._renderer.setStyle(this._ngEl.nativeElement,s,l?`${o}${l}`:o,u):this._renderer.removeStyle(this._ngEl.nativeElement,s,u)}_applyChanges(t){t.forEachRemovedItem(o=>this._setStyle(o.key,null)),t.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),t.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(ke(Ni),ke(a3),ke(Xs))},n.\u0275dir=Tn({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Ag=(()=>{class n{transform(t){return JSON.stringify(t,null,2)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=vi({name:"json",type:n,pure:!1,standalone:!0}),n})(),f3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({}),n})();let JN=(()=>{class n{}return n.\u0275prov=et({token:n,providedIn:"root",factory:()=>new XN(mt(oi),window)}),n})();class XN{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function eP(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const o=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let s=o.currentNode;for(;s;){const l=s.shadowRoot;if(l){const u=l.getElementById(e)||l.querySelector(`[name="${e}"]`);if(u)return u}s=o.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),o=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,l=this.offset();this.window.scrollTo(o-l[0],s-l[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Yv(this.window.history)||Yv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Yv(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class EP extends xB{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _g extends EP{static makeCurrent(){!function MB(n){XA||(XA=n)}(new _g)}onAndCancel(e,t,o){return e.addEventListener(t,o,!1),()=>{e.removeEventListener(t,o,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function MP(){return p3=p3||document.querySelector("base"),p3?p3.getAttribute("href"):null}();return null==t?null:function xP(n){ch=ch||document.createElement("a"),ch.setAttribute("href",n);const e=ch.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){p3=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function _N(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const o=t.indexOf("="),[s,l]=-1==o?[t,""]:[t.slice(0,o),t.slice(o+1)];if(s.trim()===e)return decodeURIComponent(l)}return null}(document.cookie,e)}}let ch,p3=null;const Xv=new hn("TRANSITION_ID"),SP=[{provide:Vf,useFactory:function OP(n,e,t){return()=>{t.get(Kf).donePromise.then(()=>{const o=Ps(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const lh=new hn("EventManagerPlugins");let uh=(()=>{class n{constructor(t,o){this._zone=o,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,o,s){return this._findPluginFor(o).addEventListener(t,o,s)}addGlobalEventListener(t,o,s){return this._findPluginFor(o).addGlobalEventListener(t,o,s)}getZone(){return this._zone}_findPluginFor(t){const o=this._eventNameToPlugin.get(t);if(o)return o;const s=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(t){const o=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),o.add(s))}),this.onStylesAdded(o)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),A3=(()=>{class n extends tI{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,o,s){t.forEach(l=>{const u=this._doc.createElement("style");u.textContent=l,s.push(o.appendChild(u))})}addHost(t){const o=[];this._addStylesToHost(this._stylesSet,t,o),this._hostNodes.set(t,o)}removeHost(t){const o=this._hostNodes.get(t);o&&o.forEach(nI),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((o,s)=>{this._addStylesToHost(t,s,o)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(nI))}}return n.\u0275fac=function(t){return new(t||n)(mt(oi))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();function nI(n){Ps().remove(n)}const wg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},vg=/%COMP%/g;function Ig(n,e){return e.flat(100).map(t=>t.replace(vg,n))}function iI(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let dh=(()=>{class n{constructor(t,o,s){this.eventManager=t,this.sharedStylesHost=o,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Cg(t)}createRenderer(t,o){if(!t||!o)return this.defaultRenderer;switch(o.encapsulation){case ss.Emulated:{let s=this.rendererByCompId.get(o.id);return s||(s=new jP(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,s)),s.applyToHost(t),s}case ss.ShadowDom:return new GP(this.eventManager,this.sharedStylesHost,t,o);default:if(!this.rendererByCompId.has(o.id)){const s=Ig(o.id,o.styles);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(mt(uh),mt(A3),mt(s3))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();class Cg{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(wg[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(aI(e)?e.content:e).appendChild(t)}insertBefore(e,t,o){e&&(aI(e)?e.content:e).insertBefore(t,o)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error(`The selector "${e}" did not match any elements`);return t||(o.textContent=""),o}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,o,s){if(s){t=s+":"+t;const l=wg[s];l?e.setAttributeNS(l,t,o):e.setAttribute(t,o)}else e.setAttribute(t,o)}removeAttribute(e,t,o){if(o){const s=wg[o];s?e.removeAttributeNS(s,t):e.removeAttribute(`${o}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,o,s){s&(Ii.DashCase|Ii.Important)?e.style.setProperty(t,o,s&Ii.Important?"important":""):e.style[t]=o}removeStyle(e,t,o){o&Ii.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,o){e[t]=o}setValue(e,t){e.nodeValue=t}listen(e,t,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,iI(o)):this.eventManager.addEventListener(e,t,iI(o))}}function aI(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class jP extends Cg{constructor(e,t,o,s){super(e),this.component=o;const l=Ig(s+"-"+o.id,o.styles);t.addStyles(l),this.contentAttr=function FP(n){return"_ngcontent-%COMP%".replace(vg,n)}(s+"-"+o.id),this.hostAttr=function LP(n){return"_nghost-%COMP%".replace(vg,n)}(s+"-"+o.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const o=super.createElement(e,t);return super.setAttribute(o,this.contentAttr,""),o}}class GP extends Cg{constructor(e,t,o,s){super(e),this.sharedStylesHost=t,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Ig(s.id,s.styles);for(let u=0;u{class n extends eI{constructor(t){super(t)}supports(t){return!0}addEventListener(t,o,s){return t.addEventListener(o,s,!1),()=>this.removeEventListener(t,o,s)}removeEventListener(t,o,s){return t.removeEventListener(o,s)}}return n.\u0275fac=function(t){return new(t||n)(mt(oi))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const cI=["alt","control","meta","shift"],HP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zP={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let VP=(()=>{class n extends eI{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,o,s){const l=n.parseEventName(o),u=n.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ps().onAndCancel(t,l.domEventName,u))}static parseEventName(t){const o=t.toLowerCase().split("."),s=o.shift();if(0===o.length||"keydown"!==s&&"keyup"!==s)return null;const l=n._normalizeKey(o.pop());let u="",h=o.indexOf("code");if(h>-1&&(o.splice(h,1),u="code."),cI.forEach(y=>{const D=o.indexOf(y);D>-1&&(o.splice(D,1),u+=y+".")}),u+=l,0!=o.length||0===l.length)return null;const A={};return A.domEventName=s,A.fullKey=u,A}static matchEventFullKeyCode(t,o){let s=HP[t.key]||t.key,l="";return o.indexOf("code.")>-1&&(s=t.code,l="code."),!(null==s||!s)&&(s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),cI.forEach(u=>{u!==s&&(0,zP[u])(t)&&(l+=u+".")}),l+=s,l===o)}static eventCallback(t,o,s){return l=>{n.matchEventFullKeyCode(l,t)&&s.runGuarded(()=>o(l))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(mt(oi))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const uI=[{provide:Zw,useValue:"browser"},{provide:$w,useValue:function KP(){_g.makeCurrent()},multi:!0},{provide:oi,useFactory:function WP(){return function LD(n){D6=n}(document),document},deps:[]}],$P=cv(kB,"browser",uI),dI=new hn(""),fI=[{provide:Yf,useClass:class BP{addToWindow(e){Dn.getAngularTestability=(o,s=!0)=>{const l=e.findTestabilityInTree(o,s);if(null==l)throw new Error("Could not find testability for element.");return l},Dn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Dn.getAllAngularRootElements=()=>e.getAllRootElements(),Dn.frameworkStabilizers||(Dn.frameworkStabilizers=[]),Dn.frameworkStabilizers.push(o=>{const s=Dn.getAllAngularTestabilities();let l=s.length,u=!1;const h=function(A){u=u||A,l--,0==l&&o(u)};s.forEach(function(A){A.whenStable(h)})})}findTestabilityInTree(e,t,o){return null==t?null:e.getTestability(t)??(o?Ps().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:ov,useClass:zA,deps:[uo,VA,Yf]},{provide:zA,useClass:zA,deps:[uo,VA,Yf]}],hI=[{provide:F6,useValue:"root"},{provide:cl,useFactory:function YP(){return new cl},deps:[]},{provide:lh,useClass:QP,multi:!0,deps:[oi,uo,Zw]},{provide:lh,useClass:VP,multi:!0,deps:[oi]},{provide:dh,useClass:dh,deps:[uh,A3,s3]},{provide:Gu,useExisting:dh},{provide:tI,useExisting:A3},{provide:A3,useClass:A3,deps:[oi]},{provide:uh,useClass:uh,deps:[lh,uo]},{provide:class tP{},useClass:NP,deps:[]},[]];let kg=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:s3,useValue:t.appId},{provide:Xv,useExisting:s3},SP]}}}return n.\u0275fac=function(t){return new(t||n)(mt(dI,12))},n.\u0275mod=li({type:n}),n.\u0275inj=je({providers:[...hI,...fI],imports:[f3,DB]}),n})(),pI=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(mt(oi))},n.\u0275prov=et({token:n,factory:function(t){let o=null;return o=t?new t:function qP(){return new pI(mt(oi))}(),o},providedIn:"root"}),n})();function fh(n,e){return new de(t=>{const o=n.length;if(0===o)return void t.complete();const s=new Array(o);let l=0,u=0;for(let h=0;h{y||(y=!0,u++),s[h]=D},error:D=>t.error(D),complete:()=>{l++,(l===o||!y)&&(u===o&&t.next(e?e.reduce((D,U,q)=>(D[U]=s[q],D),{}):s),t.complete())}}))}})}typeof window<"u"&&window;let mI=(()=>{class n{constructor(t,o){this._renderer=t,this._elementRef=o,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,o){this._renderer.setProperty(this._elementRef.nativeElement,t,o)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(ke(Xs),ke(Ni))},n.\u0275dir=Tn({type:n}),n})(),Cc=(()=>{class n extends mI{}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,features:[Br]}),n})();const Rs=new hn("NgValueAccessor"),s7={provide:Rs,useExisting:Yt(()=>Fs),multi:!0};let Fs=(()=>{class n extends Cc{writeValue(t){this.setProperty("checked",t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){1&t&&xe("change",function(l){return o.onChange(l.target.checked)})("blur",function(){return o.onTouched()})},features:[Yr([s7]),Br]}),n})();const a7={provide:Rs,useExisting:Yt(()=>kr),multi:!0},l7=new hn("CompositionEventMode");let kr=(()=>{class n extends mI{constructor(t,o,s){super(t,o),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function c7(){const n=Ps()?Ps().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(ke(Xs),ke(Ni),ke(l7,8))},n.\u0275dir=Tn({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,o){1&t&&xe("input",function(l){return o._handleInput(l.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(l){return o._compositionEnd(l.target.value)})},features:[Yr([a7]),Br]}),n})();function Ga(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}const ii=new hn("NgValidators"),Qa=new hn("NgAsyncValidators");function hh(n){return null}function DI(n){return null!=n}function EI(n){return Yu(n)?At(n):n}function MI(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function xI(n,e){return e.map(t=>t(n))}function OI(n){return n.map(e=>function f7(n){return!n.validate}(e)?e:t=>e.validate(t))}function Eg(n){return null!=n?function SI(n){if(!n)return null;const e=n.filter(DI);return 0==e.length?null:function(t){return MI(xI(t,e))}}(OI(n)):null}function Mg(n){return null!=n?function BI(n){if(!n)return null;const e=n.filter(DI);return 0==e.length?null:function(t){return function i7(...n){if(1===n.length){const e=n[0];if(g(e))return fh(e,null);if(d(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return fh(t.map(o=>e[o]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return fh(n=1===n.length&&g(n[0])?n[0]:n,null).pipe(P(t=>e(...t)))}return fh(n,null)}(xI(t,e).map(EI)).pipe(P(MI))}}(OI(n)):null}function NI(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function xg(n){return n?Array.isArray(n)?n:[n]:[]}function ph(n,e){return Array.isArray(n)?n.includes(e):n===e}function FI(n,e){const t=xg(e);return xg(n).forEach(s=>{ph(t,s)||t.push(s)}),t}function LI(n,e){return xg(e).filter(t=>!ph(n,t))}class UI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Eg(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Mg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class mi extends UI{get formDirective(){return null}get path(){return null}}class Ha extends UI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class jI{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vr=(()=>{class n extends jI{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(ke(Ha,2))},n.\u0275dir=Tn({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){2&t&&Bf("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Br]}),n})();const g3="VALID",gh="INVALID",El="PENDING",m3="DISABLED";function mh(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class zI{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===g3}get invalid(){return this.status===gh}get pending(){return this.status==El}get disabled(){return this.status===m3}get enabled(){return this.status!==m3}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(FI(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(FI(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(LI(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(LI(e,this._rawAsyncValidators))}hasValidator(e){return ph(this._rawValidators,e)}hasAsyncValidator(e){return ph(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=El,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=m3,this.errors=null,this._forEachChild(o=>{o.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=g3,this._forEachChild(o=>{o.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===g3||this.status===El)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?m3:g3}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=El,this._hasOwnPendingAsyncValidator=!0;const t=EI(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((o,s)=>o&&o._find(s),this)}getError(e,t){const o=t?this.get(t):this;return o&&o.errors?o.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new lo,this.statusChanges=new lo}_calculateStatus(){return this._allControlsDisabled()?m3:this.errors?gh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(El)?El:this._anyControlsHaveStatus(gh)?gh:g3}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){mh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function _7(n){return Array.isArray(n)?Eg(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function w7(n){return Array.isArray(n)?Mg(n):n||null}(this._rawAsyncValidators)}}const y3=new hn("CallSetDisabledState",{providedIn:"root",factory:()=>Fg}),Fg="always";function b3(n,e,t=Fg){(function Lg(n,e){const t=function PI(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(NI(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const o=function RI(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(NI(o,e.asyncValidator)):"function"==typeof o&&n.setAsyncValidators([o]);const s=()=>n.updateValueAndValidity();_h(e._rawValidators,s),_h(e._rawAsyncValidators,s)})(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function C7(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&VI(n,e)})}(n,e),function k7(n,e){const t=(o,s)=>{e.valueAccessor.writeValue(o),s&&e.viewToModelUpdate(o)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function T7(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&VI(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function I7(n,e){if(e.valueAccessor.setDisabledState){const t=o=>{e.valueAccessor.setDisabledState(o)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function _h(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function VI(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function WI(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function $I(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const ZI=class extends zI{constructor(e=null,t,o){super(function Ng(n){return(mh(n)?n.validators:n)||null}(t),function Pg(n,e){return(mh(e)?e.asyncValidators:n)||null}(o,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mh(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=$I(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){WI(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){WI(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){$I(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},N7={provide:Ha,useExisting:Yt(()=>yr)},XI=(()=>Promise.resolve())();let yr=(()=>{class n extends Ha{constructor(t,o,s,l,u,h){super(),this._changeDetectorRef=u,this.callSetDisabledState=h,this.control=new ZI,this._registered=!1,this.update=new lo,this._parent=t,this._setValidators(o),this._setAsyncValidators(s),this.valueAccessor=function Gg(n,e){if(!e)return null;let t,o,s;return Array.isArray(e),e.forEach(l=>{l.constructor===kr?t=l:function M7(n){return Object.getPrototypeOf(n.constructor)===Cc}(l)?o=l:s=l}),s||o||t||null}(0,l)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const o=t.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function jg(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){b3(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){XI.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const o=t.isDisabled.currentValue,s=0!==o&&function Dl(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(o);XI.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function yh(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(ke(mi,9),ke(ii,10),ke(Qa,10),ke(Rs,10),ke(Ua,8),ke(y3,8))},n.\u0275dir=Tn({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Yr([N7]),Br,Gi]}),n})();const R7={provide:Rs,useExisting:Yt(()=>za),multi:!0};let za=(()=>{class n extends Cc{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=o=>{t(""==o?null:parseFloat(o))}}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,o){1&t&&xe("input",function(l){return o.onChange(l.target.value)})("blur",function(){return o.onTouched()})},features:[Yr([R7]),Br]}),n})(),eC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({}),n})();const V7={provide:Rs,useExisting:Yt(()=>Ir),multi:!0};function aC(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Ir=(()=>{class n extends Cc{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const s=aC(this._getOptionId(t),t);this.setProperty("value",s)}registerOnChange(t){this.onChange=o=>{this.value=this._getOptionValue(o),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o),t))return o;return null}_getOptionValue(t){const o=function K7(n){return n.split(":")[0]}(t);return this._optionMap.has(o)?this._optionMap.get(o):t}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,o){1&t&&xe("change",function(l){return o.onChange(l.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Yr([V7]),Br]}),n})(),Dr=(()=>{class n{constructor(t,o,s){this._element=t,this._renderer=o,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(aC(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(ke(Ni),ke(Xs),ke(Ir,9))},n.\u0275dir=Tn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const Y7={provide:Rs,useExisting:Yt(()=>Kg),multi:!0};function cC(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Kg=(()=>{class n extends Cc{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let o;if(this.value=t,Array.isArray(t)){const s=t.map(l=>this._getOptionId(l));o=(l,u)=>{l._setSelected(s.indexOf(u.toString())>-1)}}else o=(s,l)=>{s._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(t){this.onChange=o=>{const s=[],l=o.selectedOptions;if(void 0!==l){const u=l;for(let h=0;h{class n{constructor(t,o,s){this._element=t,this._renderer=o,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(cC(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(cC(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(ke(Ni),ke(Xs),ke(Kg,9))},n.\u0275dir=Tn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function uC(n){return"number"==typeof n?n:parseFloat(n)}let Tc=(()=>{class n{constructor(){this._validator=hh}ngOnChanges(t){if(this.inputName in t){const o=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):hh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Tn({type:n,features:[Gi]}),n})();const $7={provide:ii,useExisting:Yt(()=>w3),multi:!0};let w3=(()=>{class n extends Tc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>uC(t),this.createValidator=t=>function _I(n){return e=>{if(Ga(e.value)||Ga(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&Ss("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[Yr([$7]),Br]}),n})();const Z7={provide:ii,useExisting:Yt(()=>Va),multi:!0};let Va=(()=>{class n extends Tc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>uC(t),this.createValidator=t=>function bI(n){return e=>{if(Ga(e.value)||Ga(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&tvh),multi:!0};let vh=(()=>{class n extends Tc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function lC(n){return"number"==typeof n?n:parseInt(n,10)}(t),this.createValidator=t=>function TI(n){return e=>function yI(n){return null!=n&&"number"==typeof n.length}(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275dir=Tn({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&Ss("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Yr([t9]),Br]}),n})(),r9=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({imports:[eC]}),n})(),i9=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:y3,useValue:t.callSetDisabledState??Fg}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({imports:[r9]}),n})();function pn(...n){let e=n[n.length-1];return N(e)?(n.pop(),at(n,e)):rr(n)}class $i extends C{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ae;return this._value}next(e){super.next(this._value=e)}}const Ih=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();class s9 extends i{notifyNext(e,t,o,s,l){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class a9 extends i{constructor(e,t,o){super(),this.parent=e,this.outerValue=t,this.outerIndex=o,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function c9(n,e,t,o,s=new a9(n,t,o)){if(!s.closed)return e instanceof de?e.subscribe(s):Ze(e)(s)}const AC={};function gC(...n){let e,t;return N(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&g(n[0])&&(n=n[0]),rr(n,t).lift(new l9(e))}class l9{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new u9(e,this.resultSelector))}}class u9 extends s9{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(AC),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let o=0;on.complete());function Ch(n){return n?function f9(n){return new de(e=>n.schedule(()=>e.complete()))}(n):kc}function mC(n){return new de(e=>{let t;try{t=n()}catch(s){return void e.error(s)}return(t?At(t):Ch()).subscribe(e)})}function Ml(n,e){return new de(e?t=>e.schedule(h9,0,{error:n,subscriber:t}):t=>t.error(n))}function h9({error:n,subscriber:e}){e.error(n)}function ys(n,e){return"function"==typeof e?t=>t.pipe(ys((o,s)=>At(n(o,s)).pipe(P((l,u)=>e(o,l,s,u))))):t=>t.lift(new p9(n))}class p9{constructor(e){this.project=e}call(e,t){return t.subscribe(new A9(e,this.project))}}class A9 extends zt{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const o=this.index++;try{t=this.project(e,o)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const o=new vt(this),s=this.destination;s.add(o),this.innerSubscription=$t(e,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const yC=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function xl(n){return e=>0===n?Ch():e.lift(new g9(n))}class g9{constructor(e){if(this.total=e,this.total<0)throw new yC}call(e,t){return t.subscribe(new m9(e,this.total))}}class m9 extends i{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,o=++this.count;o<=t&&(this.destination.next(e),o===t&&(this.destination.complete(),this.unsubscribe()))}}function Ka(n,e){return function(o){return o.lift(new b9(n,e))}}class b9{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new _9(e,this.predicate,this.thisArg))}}class _9 extends i{constructor(e,t,o){super(e),this.predicate=t,this.thisArg=o,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}t&&this.destination.next(e)}}function Th(n=null){return e=>e.lift(new w9(n))}class w9{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new v9(e,this.defaultValue))}}class v9 extends i{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function bC(n=T9){return e=>e.lift(new I9(n))}class I9{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new C9(e,this.errorFactory))}}class C9 extends i{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function T9(){return new Ih}function Ya(n,e){const t=arguments.length>=2;return o=>o.pipe(n?Ka((s,l)=>n(s,l,o)):L,xl(1),t?Th(e):bC(()=>new Ih))}function Dc(n,e){return Pt(n,e,1)}function Wa(){}function Wo(n,e,t){return function(s){return s.lift(new k9(n,e,t))}}class k9{constructor(e,t,o){this.nextOrObserver=e,this.error=t,this.complete=o}call(e,t){return t.subscribe(new D9(e,this.nextOrObserver,this.error,this.complete))}}class D9 extends i{constructor(e,t,o,s){super(e),this._tapNext=Wa,this._tapError=Wa,this._tapComplete=Wa,this._tapError=o||Wa,this._tapComplete=s||Wa,x(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Wa,this._tapError=t.error||Wa,this._tapComplete=t.complete||Wa)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Ec(n){return function(t){const o=new E9(n),s=t.lift(o);return o.caught=s}}class E9{constructor(e){this.selector=e}call(e,t){return t.subscribe(new M9(e,this.selector,this.caught))}}class M9 extends zt{constructor(e,t,o){super(e),this.selector=t,this.caught=o}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(l){return void super.error(l)}this._unsubscribeAndRecycle();const o=new vt(this);this.add(o);const s=$t(t,o);s!==o&&this.add(s)}}}function _C(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(s){return s.lift(new x9(n,e,t))}}class x9{constructor(e,t,o=!1){this.accumulator=e,this.seed=t,this.hasSeed=o}call(e,t){return t.subscribe(new O9(e,this.accumulator,this.seed,this.hasSeed))}}class O9 extends i{constructor(e,t,o,s){super(e),this.accumulator=t,this._seed=o,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let o;try{o=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=o,this.destination.next(o)}}function $g(n){return function(t){return 0===n?Ch():t.lift(new S9(n))}}class S9{constructor(e){if(this.total=e,this.total<0)throw new yC}call(e,t){return t.subscribe(new B9(e,this.total))}}class B9 extends i{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,o=this.total,s=this.count++;t.length0){const o=this.count>=this.total?this.total:this.count,s=this.ring;for(let l=0;l=2;return o=>o.pipe(n?Ka((s,l)=>n(s,l,o)):L,$g(1),t?Th(e):bC(()=>new Ih))}class P9{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new R9(e,this.predicate,this.inclusive))}}class R9 extends i{constructor(e,t,o){super(e),this.predicate=t,this.inclusive=o,this.index=0}_next(e){const t=this.destination;let o;try{o=this.predicate(e,this.index++)}catch(s){return void t.error(s)}this.nextOrComplete(e,o)}nextOrComplete(e,t){const o=this.destination;Boolean(t)?o.next(e):(this.inclusive&&o.next(e),o.complete())}}class L9{constructor(e){this.value=e}call(e,t){return t.subscribe(new U9(e,this.value))}}class U9 extends i{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function Zg(n){return e=>e.lift(new j9(n))}class j9{constructor(e){this.callback=e}call(e,t){return t.subscribe(new G9(e,this.callback))}}class G9 extends i{constructor(e,t){super(e),this.add(new I(t))}}const Qn="primary",v3=Symbol("RouteTitle");class Q9{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Ol(n){return new Q9(n)}function H9(n,e,t){const o=t.path.split("/");if(o.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||o.lengtho[l]===s)}return n===e}function IC(n){return Array.prototype.concat.apply([],n)}function CC(n){return n.length>0?n[n.length-1]:null}function $o(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function $a(n){return hA(n)?n:Yu(n)?At(Promise.resolve(n)):pn(n)}const kh=!1,V9={exact:function DC(n,e,t){if(!xc(n.segments,e.segments)||!Dh(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const o in e.children)if(!n.children[o]||!DC(n.children[o],e.children[o],t))return!1;return!0},subset:EC},TC={exact:function K9(n,e){return Ls(n,e)},subset:function Y9(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>vC(n[t],e[t]))},ignored:()=>!0};function kC(n,e,t){return V9[t.paths](n.root,e.root,t.matrixParams)&&TC[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function EC(n,e,t){return MC(n,e,e.segments,t)}function MC(n,e,t,o){if(n.segments.length>t.length){const s=n.segments.slice(0,t.length);return!(!xc(s,t)||e.hasChildren()||!Dh(s,t,o))}if(n.segments.length===t.length){if(!xc(n.segments,t)||!Dh(n.segments,t,o))return!1;for(const s in e.children)if(!n.children[s]||!EC(n.children[s],e.children[s],o))return!1;return!0}{const s=t.slice(0,n.segments.length),l=t.slice(n.segments.length);return!!(xc(n.segments,s)&&Dh(n.segments,s,o)&&n.children[Qn])&&MC(n.children[Qn],e,l,o)}}function Dh(n,e,t){return e.every((o,s)=>TC[t](n[s].parameters,o.parameters))}class Mc{constructor(e=new ir([],{}),t={},o=null){this.root=e,this.queryParams=t,this.fragment=o}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ol(this.queryParams)),this._queryParamMap}toString(){return Z9.serialize(this)}}class ir{constructor(e,t){this.segments=e,this.children=t,this.parent=null,$o(t,(o,s)=>o.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Eh(this)}}class I3{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ol(this.parameters)),this._parameterMap}toString(){return SC(this)}}function xc(n,e){return n.length===e.length&&n.every((t,o)=>t.path===e[o].path)}let C3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return new qg},providedIn:"root"}),n})();class qg{parse(e){const t=new iR(e);return new Mc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${T3(e.root,!0)}`,o=function X9(n){const e=Object.keys(n).map(t=>{const o=n[t];return Array.isArray(o)?o.map(s=>`${Mh(t)}=${Mh(s)}`).join("&"):`${Mh(t)}=${Mh(o)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),s="string"==typeof e.fragment?`#${function q9(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${o}${s}`}}const Z9=new qg;function Eh(n){return n.segments.map(e=>SC(e)).join("/")}function T3(n,e){if(!n.hasChildren())return Eh(n);if(e){const t=n.children[Qn]?T3(n.children[Qn],!1):"",o=[];return $o(n.children,(s,l)=>{l!==Qn&&o.push(`${l}:${T3(s,!1)}`)}),o.length>0?`${t}(${o.join("//")})`:t}{const t=function $9(n,e){let t=[];return $o(n.children,(o,s)=>{s===Qn&&(t=t.concat(e(o,s)))}),$o(n.children,(o,s)=>{s!==Qn&&(t=t.concat(e(o,s)))}),t}(n,(o,s)=>s===Qn?[T3(n.children[Qn],!1)]:[`${s}:${T3(o,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Qn]?`${Eh(n)}/${t[0]}`:`${Eh(n)}/(${t.join("//")})`}}function xC(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mh(n){return xC(n).replace(/%3B/gi,";")}function Jg(n){return xC(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xh(n){return decodeURIComponent(n)}function OC(n){return xh(n.replace(/\+/g,"%20"))}function SC(n){return`${Jg(n.path)}${function J9(n){return Object.keys(n).map(e=>`;${Jg(e)}=${Jg(n[e])}`).join("")}(n.parameters)}`}const eR=/^[^\/()?;=#]+/;function Oh(n){const e=n.match(eR);return e?e[0]:""}const tR=/^[^=?&#]+/,rR=/^[^&#]+/;class iR{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ir([],{}):new ir([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(o[Qn]=new ir(e,t)),o}parseSegment(){const e=Oh(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Le(4009,kh);return this.capture(e),new I3(xh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Oh(this.remaining);if(!t)return;this.capture(t);let o="";if(this.consumeOptional("=")){const s=Oh(this.remaining);s&&(o=s,this.capture(o))}e[xh(t)]=xh(o)}parseQueryParam(e){const t=function nR(n){const e=n.match(tR);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let o="";if(this.consumeOptional("=")){const u=function oR(n){const e=n.match(rR);return e?e[0]:""}(this.remaining);u&&(o=u,this.capture(o))}const s=OC(t),l=OC(o);if(e.hasOwnProperty(s)){let u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const o=Oh(this.remaining),s=this.remaining[o.length];if("/"!==s&&")"!==s&&";"!==s)throw new Le(4010,kh);let l;o.indexOf(":")>-1?(l=o.slice(0,o.indexOf(":")),this.capture(l),this.capture(":")):e&&(l=Qn);const u=this.parseChildren();t[l]=1===Object.keys(u).length?u[Qn]:new ir([],u),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Le(4011,kh)}}function Xg(n){return n.segments.length>0?new ir([],{[Qn]:n}):n}function Sh(n){const e={};for(const o of Object.keys(n.children)){const l=Sh(n.children[o]);(l.segments.length>0||l.hasChildren())&&(e[o]=l)}return function sR(n){if(1===n.numberOfChildren&&n.children[Qn]){const e=n.children[Qn];return new ir(n.segments.concat(e.segments),e.children)}return n}(new ir(n.segments,e))}function Oc(n){return n instanceof Mc}function lR(n,e,t,o,s){if(0===t.length)return Sl(e.root,e.root,e.root,o,s);const l=function PC(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new NC(!0,0,n);let e=0,t=!1;const o=n.reduce((s,l,u)=>{if("object"==typeof l&&null!=l){if(l.outlets){const h={};return $o(l.outlets,(A,y)=>{h[y]="string"==typeof A?A.split("/"):A}),[...s,{outlets:h}]}if(l.segmentPath)return[...s,l.segmentPath]}return"string"!=typeof l?[...s,l]:0===u?(l.split("/").forEach((h,A)=>{0==A&&"."===h||(0==A&&""===h?t=!0:".."===h?e++:""!=h&&s.push(h))}),s):[...s,l]},[]);return new NC(t,e,o)}(t);return l.toRoot()?Sl(e.root,e.root,new ir([],{}),o,s):function u(A){const y=function dR(n,e,t,o){if(n.isAbsolute)return new Bl(e.root,!0,0);if(-1===o)return new Bl(t,t===e.root,0);return function RC(n,e,t){let o=n,s=e,l=t;for(;l>s;){if(l-=s,o=o.parent,!o)throw new Le(4005,!1);s=o.segments.length}return new Bl(o,!1,s-l)}(t,o+(k3(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,e,n.snapshot?._urlSegment,A),D=y.processChildren?Nl(y.segmentGroup,y.index,l.commands):tm(y.segmentGroup,y.index,l.commands);return Sl(e.root,y.segmentGroup,D,o,s)}(n.snapshot?._lastPathIndex)}function k3(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function D3(n){return"object"==typeof n&&null!=n&&n.outlets}function Sl(n,e,t,o,s){let u,l={};o&&$o(o,(A,y)=>{l[y]=Array.isArray(A)?A.map(D=>`${D}`):`${A}`}),u=n===e?t:BC(n,e,t);const h=Xg(Sh(u));return new Mc(h,l,s)}function BC(n,e,t){const o={};return $o(n.children,(s,l)=>{o[l]=s===e?t:BC(s,e,t)}),new ir(n.segments,o)}class NC{constructor(e,t,o){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=o,e&&o.length>0&&k3(o[0]))throw new Le(4003,!1);const s=o.find(D3);if(s&&s!==CC(o))throw new Le(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bl{constructor(e,t,o){this.segmentGroup=e,this.processChildren=t,this.index=o}}function tm(n,e,t){if(n||(n=new ir([],{})),0===n.segments.length&&n.hasChildren())return Nl(n,e,t);const o=function hR(n,e,t){let o=0,s=e;const l={match:!1,pathIndex:0,commandIndex:0};for(;s=t.length)return l;const u=n.segments[s],h=t[o];if(D3(h))break;const A=`${h}`,y=o0&&void 0===A)break;if(A&&y&&"object"==typeof y&&void 0===y.outlets){if(!LC(A,y,u))return l;o+=2}else{if(!LC(A,{},u))return l;o++}s++}return{match:!0,pathIndex:s,commandIndex:o}}(n,e,t),s=t.slice(o.commandIndex);if(o.match&&o.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(s[u]=tm(n.children[u],e,l))}),$o(n.children,(l,u)=>{void 0===o[u]&&(s[u]=l)}),new ir(n.segments,s))}}function nm(n,e,t){const o=n.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[o]=nm(new ir([],{}),0,t))}),e}function FC(n){const e={};return $o(n,(t,o)=>e[o]=`${t}`),e}function LC(n,e,t){return n==t.path&&Ls(e,t.parameters)}const E3="imperative";class Us{constructor(e,t){this.id=e,this.url=t}}class rm extends Us{constructor(e,t,o="imperative",s=null){super(e,t),this.type=0,this.navigationTrigger=o,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sc extends Us{constructor(e,t,o){super(e,t),this.urlAfterRedirects=o,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Bh extends Us{constructor(e,t,o,s){super(e,t),this.reason=o,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class UC extends Us{constructor(e,t,o,s){super(e,t),this.reason=o,this.code=s,this.type=16}}class jC extends Us{constructor(e,t,o,s){super(e,t),this.error=o,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class AR extends Us{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gR extends Us{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mR extends Us{constructor(e,t,o,s,l){super(e,t),this.urlAfterRedirects=o,this.state=s,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yR extends Us{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bR extends Us{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _R{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class wR{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vR{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class IR{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CR{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TR{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class GC{constructor(e,t,o){this.routerEvent=e,this.position=t,this.anchor=o,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let DR=(()=>{class n{createUrlTree(t,o,s,l,u,h){return lR(t||o.root,s,l,u,h)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),ER=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(e){return DR.\u0275fac(e)},providedIn:"root"}),n})();class QC{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=om(e,this._root);return t?t.children.map(o=>o.value):[]}firstChild(e){const t=om(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=im(e,this._root);return t.length<2?[]:t[t.length-2].children.map(s=>s.value).filter(s=>s!==e)}pathFromRoot(e){return im(e,this._root).map(t=>t.value)}}function om(n,e){if(n===e.value)return e;for(const t of e.children){const o=om(n,t);if(o)return o}return null}function im(n,e){if(n===e.value)return[e];for(const t of e.children){const o=im(n,t);if(o.length)return o.unshift(e),o}return[]}class aa{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Pl(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class HC extends QC{constructor(e,t){super(e),this.snapshot=t,sm(this,e)}toString(){return this.snapshot.toString()}}function zC(n,e){const t=function MR(n,e){const u=new Nh([],{},{},"",{},Qn,e,null,n.root,-1,{});return new KC("",new aa(u,[]))}(n,e),o=new $i([new I3("",{})]),s=new $i({}),l=new $i({}),u=new $i({}),h=new $i(""),A=new Rl(o,s,u,h,l,Qn,e,t.root);return A.snapshot=t.root,new HC(new aa(A,[]),t)}class Rl{constructor(e,t,o,s,l,u,h,A){this.url=e,this.params=t,this.queryParams=o,this.fragment=s,this.data=l,this.outlet=u,this.component=h,this.title=this.data?.pipe(P(y=>y[v3]))??pn(void 0),this._futureSnapshot=A}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(P(e=>Ol(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(e=>Ol(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function VC(n,e="emptyOnly"){const t=n.pathFromRoot;let o=0;if("always"!==e)for(o=t.length-1;o>=1;){const s=t[o],l=t[o-1];if(s.routeConfig&&""===s.routeConfig.path)o--;else{if(l.component)break;o--}}return function xR(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(o))}class Nh{get title(){return this.data?.[v3]}constructor(e,t,o,s,l,u,h,A,y,D,U){this.url=e,this.params=t,this.queryParams=o,this.fragment=s,this.data=l,this.outlet=u,this.component=h,this.routeConfig=A,this._urlSegment=y,this._lastPathIndex=D,this._resolve=U}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ol(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ol(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(o=>o.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class KC extends QC{constructor(e,t){super(t),this.url=e,sm(this,t)}toString(){return YC(this._root)}}function sm(n,e){e.value._routerState=n,e.children.forEach(t=>sm(n,t))}function YC(n){const e=n.children.length>0?` { ${n.children.map(YC).join(", ")} } `:"";return`${n.value}${e}`}function am(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Ls(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Ls(e.params,t.params)||n.params.next(t.params),function z9(n,e){if(n.length!==e.length)return!1;for(let t=0;tLs(t.parameters,e[o].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||cm(n.parent,e.parent))}function M3(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const o=t.value;o._futureSnapshot=e.value;const s=function SR(n,e,t){return e.children.map(o=>{for(const s of t.children)if(n.shouldReuseRoute(o.value,s.value.snapshot))return M3(n,o,s);return M3(n,o)})}(n,e,t);return new aa(o,s)}{if(n.shouldAttach(e.value)){const l=n.retrieve(e.value);if(null!==l){const u=l.route;return u.value._futureSnapshot=e.value,u.children=e.children.map(h=>M3(n,h)),u}}const o=function BR(n){return new Rl(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(e.value),s=e.children.map(l=>M3(n,l));return new aa(o,s)}}const lm="ngNavigationCancelingError";function WC(n,e){const{redirectTo:t,navigationBehaviorOptions:o}=Oc(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,s=$C(!1,0,e);return s.url=t,s.navigationBehaviorOptions=o,s}function $C(n,e,t){const o=new Error("NavigationCancelingError: "+(n||""));return o[lm]=!0,o.cancellationCode=e,t&&(o.url=t),o}function ZC(n){return qC(n)&&Oc(n.url)}function qC(n){return n&&n[lm]}class NR{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new x3,this.attachRef=null}}let x3=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,o){const s=this.getOrCreateContext(t);s.outlet=o,this.contexts.set(t,s)}onChildOutletDestroyed(t){const o=this.getContext(t);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let o=this.getContext(t);return o||(o=new NR,this.contexts.set(t,o)),o}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ph=!1;let um=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=Qn,this.activateEvents=new lo,this.deactivateEvents=new lo,this.attachEvents=new lo,this.detachEvents=new lo,this.parentContexts=_r(x3),this.location=_r(Ri),this.changeDetector=_r(Ua),this.environmentInjector=_r(Js)}ngOnChanges(t){if(t.name){const{firstChange:o,previousValue:s}=t.name;if(o)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Le(4012,Ph);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Le(4012,Ph);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Le(4012,Ph);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,o){this.activated=t,this._activatedRoute=o,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,o){if(this.isActivated)throw new Le(4013,Ph);this._activatedRoute=t;const s=this.location,u=t.snapshot.component,h=this.parentContexts.getOrCreateContext(this.name).children,A=new PR(t,h,s.injector);if(o&&function RR(n){return!!n.resolveComponentFactory}(o)){const y=o.resolveComponentFactory(u);this.activated=s.createComponent(y,s.length,A)}else this.activated=s.createComponent(u,{index:s.length,injector:A,environmentInjector:o??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Tn({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gi]}),n})();class PR{constructor(e,t,o){this.route=e,this.childContexts=t,this.parent=o}get(e,t){return e===Rl?this.route:e===x3?this.childContexts:this.parent.get(e,t)}}let dm=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Yn({type:n,selectors:[["ng-component"]],standalone:!0,features:[sw],decls:1,vars:0,template:function(t,o){1&t&&Co(0,"router-outlet")},dependencies:[um],encapsulation:2}),n})();function JC(n,e){return n.providers&&!n._injector&&(n._injector=Uf(n.providers,e,`Route: ${n.path}`)),n._injector??e}function hm(n){const e=n.children&&n.children.map(hm),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Qn&&(t.component=dm),t}function Zi(n){return n.outlet||Qn}function XC(n,e){const t=n.filter(o=>Zi(o)===e);return t.push(...n.filter(o=>Zi(o)!==e)),t}function O3(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class GR{constructor(e,t,o,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=o,this.forwardEvent=s}activate(e){const t=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,o,e),am(this.futureState.root),this.activateChildRoutes(t,o,e)}deactivateChildRoutes(e,t,o){const s=Pl(t);e.children.forEach(l=>{const u=l.value.outlet;this.deactivateRoutes(l,s[u],o),delete s[u]}),$o(s,(l,u)=>{this.deactivateRouteAndItsChildren(l,o)})}deactivateRoutes(e,t,o){const s=e.value,l=t?t.value:null;if(s===l)if(s.component){const u=o.getContext(s.outlet);u&&this.deactivateChildRoutes(e,t,u.children)}else this.deactivateChildRoutes(e,t,o);else l&&this.deactivateRouteAndItsChildren(t,o)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const o=t.getContext(e.value.outlet),s=o&&e.value.component?o.children:t,l=Pl(e);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);if(o&&o.outlet){const u=o.outlet.detach(),h=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:u,route:e,contexts:h})}}deactivateRouteAndOutlet(e,t){const o=t.getContext(e.value.outlet),s=o&&e.value.component?o.children:t,l=Pl(e);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}activateChildRoutes(e,t,o){const s=Pl(t);e.children.forEach(l=>{this.activateRoutes(l,s[l.value.outlet],o),this.forwardEvent(new TR(l.value.snapshot))}),e.children.length&&this.forwardEvent(new IR(e.value.snapshot))}activateRoutes(e,t,o){const s=e.value,l=t?t.value:null;if(am(s),s===l)if(s.component){const u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,u.children)}else this.activateChildRoutes(e,t,o);else if(s.component){const u=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const h=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),u.children.onOutletReAttached(h.contexts),u.attachRef=h.componentRef,u.route=h.route.value,u.outlet&&u.outlet.attach(h.componentRef,h.route.value),am(h.route.value),this.activateChildRoutes(e,null,u.children)}else{const h=O3(s.snapshot),A=h?.get(zi)??null;u.attachRef=null,u.route=s,u.resolver=A,u.injector=h,u.outlet&&u.outlet.activateWith(s,u.injector),this.activateChildRoutes(e,null,u.children)}}else this.activateChildRoutes(e,null,o)}}class e5{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Rh{constructor(e,t){this.component=e,this.route=t}}function QR(n,e,t){const o=n._root;return S3(o,e?e._root:null,t,[o.value])}function Fl(n,e){const t=Symbol(),o=e.get(n,t);return o===t?"function"!=typeof n||function lt(n){return null!==Ye(n)}(n)?e.get(n):n:o}function S3(n,e,t,o,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=Pl(e);return n.children.forEach(u=>{(function zR(n,e,t,o,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,u=e?e.value:null,h=t?t.getContext(n.value.outlet):null;if(u&&l.routeConfig===u.routeConfig){const A=function VR(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!xc(n.url,e.url);case"pathParamsOrQueryParamsChange":return!xc(n.url,e.url)||!Ls(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cm(n,e)||!Ls(n.queryParams,e.queryParams);default:return!cm(n,e)}}(u,l,l.routeConfig.runGuardsAndResolvers);A?s.canActivateChecks.push(new e5(o)):(l.data=u.data,l._resolvedData=u._resolvedData),S3(n,e,l.component?h?h.children:null:t,o,s),A&&h&&h.outlet&&h.outlet.isActivated&&s.canDeactivateChecks.push(new Rh(h.outlet.component,u))}else u&&B3(e,h,s),s.canActivateChecks.push(new e5(o)),S3(n,null,l.component?h?h.children:null:t,o,s)})(u,l[u.value.outlet],t,o.concat([u.value]),s),delete l[u.value.outlet]}),$o(l,(u,h)=>B3(u,t.getContext(h),s)),s}function B3(n,e,t){const o=Pl(n),s=n.value;$o(o,(l,u)=>{B3(l,s.component?e?e.children.getContext(u):null:e,t)}),t.canDeactivateChecks.push(new Rh(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function N3(n){return"function"==typeof n}function pm(n){return n instanceof Ih||"EmptyError"===n?.name}const Fh=Symbol("INITIAL_VALUE");function Ll(){return ys(n=>gC(n.map(e=>e.pipe(xl(1),function y9(...n){const e=n[n.length-1];return N(e)?(n.pop(),t=>Wg(n,t,e)):t=>Wg(n,t)}(Fh)))).pipe(P(e=>{for(const t of e)if(!0!==t){if(t===Fh)return Fh;if(!1===t||t instanceof Mc)return t}return!0}),Ka(e=>e!==Fh),xl(1)))}function t5(n){return function ee(...n){return oe(n)}(Wo(e=>{if(Oc(e))throw WC(0,e)}),P(e=>!0===e))}const Am={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function n5(n,e,t,o,s){const l=gm(n,e,t);return l.matched?function cF(n,e,t,o){const s=e.canMatch;return s&&0!==s.length?pn(s.map(u=>{const h=Fl(u,n);return $a(function qR(n){return n&&N3(n.canMatch)}(h)?h.canMatch(e,t):n.runInContext(()=>h(e,t)))})).pipe(Ll(),t5()):pn(!0)}(o=JC(e,o),e,t).pipe(P(u=>!0===u?l:{...Am})):pn(l)}function gm(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Am}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const s=(e.matcher||H9)(t,n,e);if(!s)return{...Am};const l={};$o(s.posParams,(h,A)=>{l[A]=h.path});const u=s.consumed.length>0?{...l,...s.consumed[s.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:s.consumed,remainingSegments:t.slice(s.consumed.length),parameters:u,positionalParamSegments:s.posParams??{}}}function Lh(n,e,t,o){if(t.length>0&&function dF(n,e,t){return t.some(o=>Uh(n,e,o)&&Zi(o)!==Qn)}(n,t,o)){const l=new ir(e,function uF(n,e,t,o){const s={};s[Qn]=o,o._sourceSegment=n,o._segmentIndexShift=e.length;for(const l of t)if(""===l.path&&Zi(l)!==Qn){const u=new ir([],{});u._sourceSegment=n,u._segmentIndexShift=e.length,s[Zi(l)]=u}return s}(n,e,o,new ir(t,n.children)));return l._sourceSegment=n,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:[]}}if(0===t.length&&function fF(n,e,t){return t.some(o=>Uh(n,e,o))}(n,t,o)){const l=new ir(n.segments,function lF(n,e,t,o,s){const l={};for(const u of o)if(Uh(n,t,u)&&!s[Zi(u)]){const h=new ir([],{});h._sourceSegment=n,h._segmentIndexShift=e.length,l[Zi(u)]=h}return{...s,...l}}(n,e,t,o,n.children));return l._sourceSegment=n,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:t}}const s=new ir(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}function Uh(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function r5(n,e,t,o){return!!(Zi(n)===o||o!==Qn&&Uh(e,t,n))&&("**"===n.path||gm(e,n,t).matched)}function o5(n,e,t){return 0===e.length&&!n.children[t]}const jh=!1;class Gh{constructor(e){this.segmentGroup=e||null}}class i5{constructor(e){this.urlTree=e}}function P3(n){return Ml(new Gh(n))}function s5(n){return Ml(new i5(n))}class gF{constructor(e,t,o,s,l){this.injector=e,this.configLoader=t,this.urlSerializer=o,this.urlTree=s,this.config=l,this.allowRedirects=!0}apply(){const e=Lh(this.urlTree.root,[],[],this.config).segmentGroup,t=new ir(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,Qn).pipe(P(l=>this.createUrlTree(Sh(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ec(l=>{if(l instanceof i5)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Gh?this.noMatchError(l):l}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,Qn).pipe(P(s=>this.createUrlTree(Sh(s),e.queryParams,e.fragment))).pipe(Ec(s=>{throw s instanceof Gh?this.noMatchError(s):s}))}noMatchError(e){return new Le(4002,jh)}createUrlTree(e,t,o){const s=Xg(e);return new Mc(s,t,o)}expandSegmentGroup(e,t,o,s){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,t,o).pipe(P(l=>new ir([],l))):this.expandSegment(e,o,t,o.segments,s,!0)}expandChildren(e,t,o){const s=[];for(const l of Object.keys(o.children))"primary"===l?s.unshift(l):s.push(l);return At(s).pipe(Dc(l=>{const u=o.children[l],h=XC(t,l);return this.expandSegmentGroup(e,h,u,l).pipe(P(A=>({segment:A,outlet:l})))}),_C((l,u)=>(l[u.outlet]=u.segment,l),{}),wC())}expandSegment(e,t,o,s,l,u){return At(o).pipe(Dc(h=>this.expandSegmentAgainstRoute(e,t,o,h,s,l,u).pipe(Ec(y=>{if(y instanceof Gh)return pn(null);throw y}))),Ya(h=>!!h),Ec((h,A)=>{if(pm(h))return o5(t,s,l)?pn(new ir([],{})):P3(t);throw h}))}expandSegmentAgainstRoute(e,t,o,s,l,u,h){return r5(s,t,l,u)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,l,u):h&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u):P3(t):P3(t)}expandSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,o,s,u):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,o,s){const l=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?s5(l):this.lineralizeSegments(o,l).pipe(Pt(u=>{const h=new ir(u,{});return this.expandSegment(e,h,t,u,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u){const{matched:h,consumedSegments:A,remainingSegments:y,positionalParamSegments:D}=gm(t,s,l);if(!h)return P3(t);const U=this.applyRedirectCommands(A,s.redirectTo,D);return s.redirectTo.startsWith("/")?s5(U):this.lineralizeSegments(s,U).pipe(Pt(q=>this.expandSegment(e,t,o,q.concat(y),u,!1)))}matchSegmentAgainstRoute(e,t,o,s,l){return"**"===o.path?(e=JC(o,e),o.loadChildren?(o._loadedRoutes?pn({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe(P(h=>(o._loadedRoutes=h.routes,o._loadedInjector=h.injector,new ir(s,{})))):pn(new ir(s,{}))):n5(t,o,s,e).pipe(ys(({matched:u,consumedSegments:h,remainingSegments:A})=>u?this.getChildConfig(e=o._injector??e,o,s).pipe(Pt(D=>{const U=D.injector??e,q=D.routes,{segmentGroup:ce,slicedSegments:ye}=Lh(t,h,A,q),Be=new ir(ce.segments,ce.children);if(0===ye.length&&Be.hasChildren())return this.expandChildren(U,q,Be).pipe(P(qe=>new ir(h,qe)));if(0===q.length&&0===ye.length)return pn(new ir(h,{}));const ze=Zi(o)===l;return this.expandSegment(U,Be,q,ye,ze?Qn:l,!0).pipe(P(Pe=>new ir(h.concat(Pe.segments),Pe.children)))})):P3(t)))}getChildConfig(e,t,o){return t.children?pn({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?pn({routes:t._loadedRoutes,injector:t._loadedInjector}):function aF(n,e,t,o){const s=e.canLoad;return void 0===s||0===s.length?pn(!0):pn(s.map(u=>{const h=Fl(u,n);return $a(function YR(n){return n&&N3(n.canLoad)}(h)?h.canLoad(e,t):n.runInContext(()=>h(e,t)))})).pipe(Ll(),t5())}(e,t,o).pipe(Pt(s=>s?this.configLoader.loadChildren(e,t).pipe(Wo(l=>{t._loadedRoutes=l.routes,t._loadedInjector=l.injector})):function pF(n){return Ml($C(jh,3))}())):pn({routes:[],injector:e})}lineralizeSegments(e,t){let o=[],s=t.root;for(;;){if(o=o.concat(s.segments),0===s.numberOfChildren)return pn(o);if(s.numberOfChildren>1||!s.children[Qn])return Ml(new Le(4e3,jh));s=s.children[Qn]}}applyRedirectCommands(e,t,o){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,o)}applyRedirectCreateUrlTree(e,t,o,s){const l=this.createSegmentGroup(e,t.root,o,s);return new Mc(l,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const o={};return $o(e,(s,l)=>{if("string"==typeof s&&s.startsWith(":")){const h=s.substring(1);o[l]=t[h]}else o[l]=s}),o}createSegmentGroup(e,t,o,s){const l=this.createSegments(e,t.segments,o,s);let u={};return $o(t.children,(h,A)=>{u[A]=this.createSegmentGroup(e,h,o,s)}),new ir(l,u)}createSegments(e,t,o,s){return t.map(l=>l.path.startsWith(":")?this.findPosParam(e,l,s):this.findOrReturn(l,o))}findPosParam(e,t,o){const s=o[t.path.substring(1)];if(!s)throw new Le(4001,jh);return s}findOrReturn(e,t){let o=0;for(const s of t){if(s.path===e.path)return t.splice(o),s;o++}return e}}class yF{}class wF{constructor(e,t,o,s,l,u,h){this.injector=e,this.rootComponentType=t,this.config=o,this.urlTree=s,this.url=l,this.paramsInheritanceStrategy=u,this.urlSerializer=h}recognize(){const e=Lh(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,Qn).pipe(P(t=>{if(null===t)return null;const o=new Nh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Qn,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new aa(o,t),l=new KC(this.url,s);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(e){const t=e.value,o=VC(t,this.paramsInheritanceStrategy);t.params=Object.freeze(o.params),t.data=Object.freeze(o.data),e.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(e,t,o,s){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,t,o):this.processSegment(e,t,o,o.segments,s)}processChildren(e,t,o){return At(Object.keys(o.children)).pipe(Dc(s=>{const l=o.children[s],u=XC(t,s);return this.processSegmentGroup(e,u,l,s)}),_C((s,l)=>s&&l?(s.push(...l),s):null),function N9(n,e=!1){return t=>t.lift(new P9(n,e))}(s=>null!==s),Th(null),wC(),P(s=>{if(null===s)return null;const l=c5(s);return function vF(n){n.sort((e,t)=>e.value.outlet===Qn?-1:t.value.outlet===Qn?1:e.value.outlet.localeCompare(t.value.outlet))}(l),l}))}processSegment(e,t,o,s,l){return At(t).pipe(Dc(u=>this.processSegmentAgainstRoute(u._injector??e,u,o,s,l)),Ya(u=>!!u),Ec(u=>{if(pm(u))return o5(o,s,l)?pn([]):pn(null);throw u}))}processSegmentAgainstRoute(e,t,o,s,l){if(t.redirectTo||!r5(t,o,s,l))return pn(null);let u;if("**"===t.path){const h=s.length>0?CC(s).parameters:{},A=u5(o)+s.length;u=pn({snapshot:new Nh(s,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,d5(t),Zi(t),t.component??t._loadedComponent??null,t,l5(o),A,f5(t)),consumedSegments:[],remainingSegments:[]})}else u=n5(o,t,s,e).pipe(P(({matched:h,consumedSegments:A,remainingSegments:y,parameters:D})=>{if(!h)return null;const U=u5(o)+A.length;return{snapshot:new Nh(A,D,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,d5(t),Zi(t),t.component??t._loadedComponent??null,t,l5(o),U,f5(t)),consumedSegments:A,remainingSegments:y}}));return u.pipe(ys(h=>{if(null===h)return pn(null);const{snapshot:A,consumedSegments:y,remainingSegments:D}=h;e=t._injector??e;const U=t._loadedInjector??e,q=function IF(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:ce,slicedSegments:ye}=Lh(o,y,D,q.filter(ze=>void 0===ze.redirectTo));if(0===ye.length&&ce.hasChildren())return this.processChildren(U,q,ce).pipe(P(ze=>null===ze?null:[new aa(A,ze)]));if(0===q.length&&0===ye.length)return pn([new aa(A,[])]);const Be=Zi(t)===l;return this.processSegment(U,q,ce,ye,Be?Qn:l).pipe(P(ze=>null===ze?null:[new aa(A,ze)]))}))}}function CF(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function c5(n){const e=[],t=new Set;for(const o of n){if(!CF(o)){e.push(o);continue}const s=e.find(l=>o.value.routeConfig===l.value.routeConfig);void 0!==s?(s.children.push(...o.children),t.add(s)):e.push(o)}for(const o of t){const s=c5(o.children);e.push(new aa(o.value,s))}return e.filter(o=>!t.has(o))}function l5(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function u5(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function d5(n){return n.data||{}}function f5(n){return n.resolve||{}}function h5(n){return"string"==typeof n.title||null===n.title}function mm(n){return ys(e=>{const t=n(e);return t?At(t).pipe(P(()=>e)):pn(e)})}const Ul=new hn("ROUTES");let ym=(()=>{class n{constructor(t,o){this.injector=t,this.compiler=o,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return pn(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const o=$a(t.loadComponent()).pipe(P(A5),Wo(l=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=l}),Zg(()=>{this.componentLoaders.delete(t)})),s=new le(o,()=>new C).pipe(Z());return this.componentLoaders.set(t,s),s}loadChildren(t,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return pn({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);const l=this.loadModuleFactoryOrRoutes(o.loadChildren).pipe(P(h=>{this.onLoadEndListener&&this.onLoadEndListener(o);let A,y,D=!1;Array.isArray(h)?y=h:(A=h.create(t).injector,y=IC(A.get(Ul,[],bt.Self|bt.Optional)));return{routes:y.map(hm),injector:A}}),Zg(()=>{this.childrenLoaders.delete(o)})),u=new le(l,()=>new C).pipe(Z());return this.childrenLoaders.set(o,u),u}loadModuleFactoryOrRoutes(t){return $a(t()).pipe(P(A5),Pt(s=>s instanceof ow||Array.isArray(s)?pn(s):At(this.compiler.compileModuleAsync(s))))}}return n.\u0275fac=function(t){return new(t||n)(mt(pi),mt(Xw))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function A5(n){return function BF(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let Hh=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new C,this.configLoader=_r(ym),this.environmentInjector=_r(Js),this.urlSerializer=_r(C3),this.rootContexts=_r(x3),this.navigationId=0,this.afterPreactivation=()=>pn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=s=>this.events.next(new wR(s)),this.configLoader.onLoadStartListener=s=>this.events.next(new _R(s))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const o=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:o})}setupNavigations(t){return this.transitions=new $i({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:E3,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ka(o=>0!==o.id),P(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),ys(o=>{let s=!1,l=!1;return pn(o).pipe(Wo(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ys(u=>{const h=t.browserUrlTree.toString(),A=!t.navigated||u.extractedUrl.toString()!==h||h!==t.currentUrlTree.toString();if(!A&&"reload"!==(u.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const D="";return this.events.next(new UC(u.id,t.serializeUrl(o.rawUrl),D,0)),t.rawUrlTree=u.rawUrl,u.resolve(null),kc}if(t.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return g5(u.source)&&(t.browserUrlTree=u.extractedUrl),pn(u).pipe(ys(D=>{const U=this.transitions?.getValue();return this.events.next(new rm(D.id,this.urlSerializer.serialize(D.extractedUrl),D.source,D.restoredState)),U!==this.transitions?.getValue()?kc:Promise.resolve(D)}),function mF(n,e,t,o){return ys(s=>function AF(n,e,t,o,s){return new gF(n,e,t,o,s).apply()}(n,e,t,s.extractedUrl,o).pipe(P(l=>({...s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),Wo(D=>{this.currentNavigation={...this.currentNavigation,finalUrl:D.urlAfterRedirects},o.urlAfterRedirects=D.urlAfterRedirects}),function kF(n,e,t,o,s){return Pt(l=>function _F(n,e,t,o,s,l,u="emptyOnly"){return new wF(n,e,t,o,s,u,l).recognize().pipe(ys(h=>null===h?function bF(n){return new de(e=>e.error(n))}(new yF):pn(h)))}(n,e,t,l.urlAfterRedirects,o.serialize(l.urlAfterRedirects),o,s).pipe(P(u=>({...l,targetSnapshot:u}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Wo(D=>{if(o.targetSnapshot=D.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!D.extras.skipLocationChange){const q=t.urlHandlingStrategy.merge(D.urlAfterRedirects,D.rawUrl);t.setBrowserUrl(q,D)}t.browserUrlTree=D.urlAfterRedirects}const U=new AR(D.id,this.urlSerializer.serialize(D.extractedUrl),this.urlSerializer.serialize(D.urlAfterRedirects),D.targetSnapshot);this.events.next(U)}));if(A&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:D,extractedUrl:U,source:q,restoredState:ce,extras:ye}=u,Be=new rm(D,this.urlSerializer.serialize(U),q,ce);this.events.next(Be);const ze=zC(U,this.rootComponentType).snapshot;return pn(o={...u,targetSnapshot:ze,urlAfterRedirects:U,extras:{...ye,skipLocationChange:!1,replaceUrl:!1}})}{const D="";return this.events.next(new UC(u.id,t.serializeUrl(o.extractedUrl),D,1)),t.rawUrlTree=u.rawUrl,u.resolve(null),kc}}),Wo(u=>{const h=new gR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}),P(u=>o={...u,guards:QR(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),function XR(n,e){return Pt(t=>{const{targetSnapshot:o,currentSnapshot:s,guards:{canActivateChecks:l,canDeactivateChecks:u}}=t;return 0===u.length&&0===l.length?pn({...t,guardsResult:!0}):function eF(n,e,t,o){return At(n).pipe(Pt(s=>function sF(n,e,t,o,s){const l=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return l&&0!==l.length?pn(l.map(h=>{const A=O3(e)??s,y=Fl(h,A);return $a(function ZR(n){return n&&N3(n.canDeactivate)}(y)?y.canDeactivate(n,e,t,o):A.runInContext(()=>y(n,e,t,o))).pipe(Ya())})).pipe(Ll()):pn(!0)}(s.component,s.route,t,e,o)),Ya(s=>!0!==s,!0))}(u,o,s,n).pipe(Pt(h=>h&&function KR(n){return"boolean"==typeof n}(h)?function tF(n,e,t,o){return At(e).pipe(Dc(s=>Wg(function rF(n,e){return null!==n&&e&&e(new vR(n)),pn(!0)}(s.route.parent,o),function nF(n,e){return null!==n&&e&&e(new CR(n)),pn(!0)}(s.route,o),function iF(n,e,t){const o=e[e.length-1],l=e.slice(0,e.length-1).reverse().map(u=>function HR(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(u)).filter(u=>null!==u).map(u=>mC(()=>pn(u.guards.map(A=>{const y=O3(u.node)??t,D=Fl(A,y);return $a(function $R(n){return n&&N3(n.canActivateChild)}(D)?D.canActivateChild(o,n):y.runInContext(()=>D(o,n))).pipe(Ya())})).pipe(Ll())));return pn(l).pipe(Ll())}(n,s.path,t),function oF(n,e,t){const o=e.routeConfig?e.routeConfig.canActivate:null;if(!o||0===o.length)return pn(!0);const s=o.map(l=>mC(()=>{const u=O3(e)??t,h=Fl(l,u);return $a(function WR(n){return n&&N3(n.canActivate)}(h)?h.canActivate(e,n):u.runInContext(()=>h(e,n))).pipe(Ya())}));return pn(s).pipe(Ll())}(n,s.route,t))),Ya(s=>!0!==s,!0))}(o,l,n,e):pn(h)),P(h=>({...t,guardsResult:h})))})}(this.environmentInjector,u=>this.events.next(u)),Wo(u=>{if(o.guardsResult=u.guardsResult,Oc(u.guardsResult))throw WC(0,u.guardsResult);const h=new mR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(h)}),Ka(u=>!!u.guardsResult||(t.restoreHistory(u),this.cancelNavigationTransition(u,"",3),!1)),mm(u=>{if(u.guards.canActivateChecks.length)return pn(u).pipe(Wo(h=>{const A=new yR(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(A)}),ys(h=>{let A=!1;return pn(h).pipe(function DF(n,e){return Pt(t=>{const{targetSnapshot:o,guards:{canActivateChecks:s}}=t;if(!s.length)return pn(t);let l=0;return At(s).pipe(Dc(u=>function EF(n,e,t,o){const s=n.routeConfig,l=n._resolve;return void 0!==s?.title&&!h5(s)&&(l[v3]=s.title),function MF(n,e,t,o){const s=function xF(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===s.length)return pn({});const l={};return At(s).pipe(Pt(u=>function OF(n,e,t,o){const s=O3(e)??o,l=Fl(n,s);return $a(l.resolve?l.resolve(e,t):s.runInContext(()=>l(e,t)))}(n[u],e,t,o).pipe(Ya(),Wo(h=>{l[u]=h}))),$g(1),function F9(n){return e=>e.lift(new L9(n))}(l),Ec(u=>pm(u)?kc:Ml(u)))}(l,n,e,o).pipe(P(u=>(n._resolvedData=u,n.data=VC(n,t).resolve,s&&h5(s)&&(n.data[v3]=s.title),null)))}(u.route,o,n,e)),Wo(()=>l++),$g(1),Pt(u=>l===s.length?pn(t):kc))})}(t.paramsInheritanceStrategy,this.environmentInjector),Wo({next:()=>A=!0,complete:()=>{A||(t.restoreHistory(h),this.cancelNavigationTransition(h,"",2))}}))}),Wo(h=>{const A=new bR(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(A)}))}),mm(u=>{const h=A=>{const y=[];A.routeConfig?.loadComponent&&!A.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(A.routeConfig).pipe(Wo(D=>{A.component=D}),P(()=>{})));for(const D of A.children)y.push(...h(D));return y};return gC(h(u.targetSnapshot.root)).pipe(Th(),xl(1))}),mm(()=>this.afterPreactivation()),P(u=>{const h=function OR(n,e,t){const o=M3(n,e._root,t?t._root:void 0);return new HC(o,e)}(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return o={...u,targetRouterState:h}}),Wo(u=>{t.currentUrlTree=u.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),t.routerState=u.targetRouterState,"deferred"===t.urlUpdateStrategy&&(u.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,u),t.browserUrlTree=u.urlAfterRedirects)}),((n,e,t)=>P(o=>(new GR(e,o.targetRouterState,o.currentRouterState,t).activate(n),o)))(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u)),Wo({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Sc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Zg(()=>{s||l||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Ec(u=>{if(l=!0,qC(u)){ZC(u)||(t.navigated=!0,t.restoreHistory(o,!0));const h=new Bh(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode);if(this.events.next(h),ZC(u)){const A=t.urlHandlingStrategy.merge(u.url,t.rawUrlTree),y={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||g5(o.source)};t.scheduleNavigation(A,E3,null,y,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{t.restoreHistory(o,!0);const h=new jC(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);this.events.next(h);try{o.resolve(t.errorHandler(u))}catch(A){o.reject(A)}}return kc}))}))}cancelNavigationTransition(t,o,s){const l=new Bh(t.id,this.urlSerializer.serialize(t.extractedUrl),o,s);this.events.next(l),t.resolve(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function g5(n){return n!==E3}let m5=(()=>{class n{buildTitle(t){let o,s=t.root;for(;void 0!==s;)o=this.getResolvedTitleForRoute(s)??o,s=s.children.find(l=>l.outlet===Qn);return o}getResolvedTitleForRoute(t){return t.data[v3]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return _r(NF)},providedIn:"root"}),n})(),NF=(()=>{class n extends m5{constructor(t){super(),this.title=t}updateTitle(t){const o=this.buildTitle(t);void 0!==o&&this.title.setTitle(o)}}return n.\u0275fac=function(t){return new(t||n)(mt(pI))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),PF=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return _r(FF)},providedIn:"root"}),n})();class RF{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let FF=(()=>{class n extends RF{}return n.\u0275fac=function(){let e;return function(o){return(e||(e=Yo(n)))(o||n)}}(),n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const zh=new hn("",{providedIn:"root",factory:()=>({})});let UF=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:function(){return _r(jF)},providedIn:"root"}),n})(),jF=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,o){return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function GF(n){throw n}function QF(n,e,t){return e.parse("/")}const HF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=_r(YS),this.isNgZoneEnabled=!1,this.options=_r(zh,{optional:!0})||{},this.errorHandler=this.options.errorHandler||GF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||QF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=_r(UF),this.routeReuseStrategy=_r(PF),this.urlCreationStrategy=_r(ER),this.titleStrategy=_r(m5),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=IC(_r(Ul,{optional:!0})??[]),this.navigationTransitions=_r(Hh),this.urlSerializer=_r(C3),this.location=_r(ng),this.isNgZoneEnabled=_r(uo)instanceof uo&&uo.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Mc,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zC(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),E3,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const o="popstate"===t.type?"popstate":"hashchange";"popstate"===o&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,o,t.state)},0)}))}navigateToSyncWithBrowser(t,o,s){const l={replaceUrl:!0},u=s?.navigationId?s:null;if(s){const A={...s};delete A.navigationId,delete A.\u0275routerPageId,0!==Object.keys(A).length&&(l.state=A)}const h=this.parseUrl(t);this.scheduleNavigation(h,o,u,l)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(hm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,o={}){const{relativeTo:s,queryParams:l,fragment:u,queryParamsHandling:h,preserveFragment:A}=o,y=A?this.currentUrlTree.fragment:u;let D=null;switch(h){case"merge":D={...this.currentUrlTree.queryParams,...l};break;case"preserve":D=this.currentUrlTree.queryParams;break;default:D=l||null}return null!==D&&(D=this.removeEmptyProps(D)),this.urlCreationStrategy.createUrlTree(s,this.routerState,this.currentUrlTree,t,D,y??null)}navigateByUrl(t,o={skipLocationChange:!1}){const s=Oc(t)?t:this.parseUrl(t),l=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(l,E3,null,o)}navigate(t,o={skipLocationChange:!1}){return function VF(n){for(let e=0;e{const l=t[s];return null!=l&&(o[s]=l),o},{})}scheduleNavigation(t,o,s,l,u){if(this.disposed)return Promise.resolve(!1);let h,A,y,D;return u?(h=u.resolve,A=u.reject,y=u.promise):y=new Promise((U,q)=>{h=U,A=q}),D="computed"===this.canceledNavigationResolution?s&&s.\u0275routerPageId?s.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:D,source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:l,resolve:h,reject:A,promise:y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),y.catch(U=>Promise.reject(U))}setBrowserUrl(t,o){const s=this.urlSerializer.serialize(t),l={...o.extras.state,...this.generateNgRouterState(o.id,o.targetPageId)};this.location.isCurrentPathEqualTo(s)||o.extras.replaceUrl?this.location.replaceState(s,"",l):this.location.go(s,"",l)}restoreHistory(t,o=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===s?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,o){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:o}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class b5{}let WF=(()=>{class n{constructor(t,o,s,l,u){this.router=t,this.injector=s,this.preloadingStrategy=l,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe(Ka(t=>t instanceof Sc),Dc(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,o){const s=[];for(const l of o){l.providers&&!l._injector&&(l._injector=Uf(l.providers,t,`Route: ${l.path}`));const u=l._injector??t,h=l._loadedInjector??u;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?s.push(this.preloadConfig(u,l)):(l.children||l._loadedRoutes)&&s.push(this.processRoutes(h,l.children??l._loadedRoutes))}return At(s).pipe(Cn())}preloadConfig(t,o){return this.preloadingStrategy.preload(o,()=>{let s;s=o.loadChildren&&void 0===o.canLoad?this.loader.loadChildren(t,o):pn(null);const l=s.pipe(Pt(u=>null===u?pn(void 0):(o._loadedRoutes=u.routes,o._loadedInjector=u.injector,this.processRoutes(u.injector??t,u.routes))));return o.loadComponent&&!o._loadedComponent?At([l,this.loader.loadComponent(o)]).pipe(Cn()):l})}}return n.\u0275fac=function(t){return new(t||n)(mt(Fi),mt(Xw),mt(Js),mt(b5),mt(ym))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _m=new hn("");let _5=(()=>{class n{constructor(t,o,s,l,u={}){this.urlSerializer=t,this.transitions=o,this.viewportScroller=s,this.zone=l,this.options=u,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},u.scrollPositionRestoration=u.scrollPositionRestoration||"disabled",u.anchorScrolling=u.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof rm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Sc&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof GC&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new GC(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(t){!function s_(){throw new Error("invalid")}()},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();function Bc(n,e){return{\u0275kind:n,\u0275providers:e}}function v5(){const n=_r(pi);return e=>{const t=n.get(As);if(e!==t.components[0])return;const o=n.get(Fi),s=n.get(I5);1===n.get(vm)&&o.initialNavigation(),n.get(C5,null,bt.Optional)?.setUpPreloading(),n.get(_m,null,bt.Optional)?.init(),o.resetRootComponentType(t.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}const I5=new hn("",{factory:()=>new C}),vm=new hn("",{providedIn:"root",factory:()=>1});const C5=new hn("");function XF(n){return Bc(0,[{provide:C5,useExisting:WF},{provide:b5,useExisting:n}])}const T5=new hn("ROUTER_FORROOT_GUARD"),eL=[ng,{provide:C3,useClass:qg},Fi,x3,{provide:Rl,useFactory:function w5(n){return n.routerState.root},deps:[Fi]},ym,[]];function tL(){return new sv("Router",Fi)}let k5=(()=>{class n{constructor(t){}static forRoot(t,o){return{ngModule:n,providers:[eL,[],{provide:Ul,multi:!0,useValue:t},{provide:T5,useFactory:iL,deps:[[Fi,new xu,new Ou]]},{provide:zh,useValue:o||{}},o?.useHash?{provide:Ic,useClass:NB}:{provide:Ic,useClass:Mv},{provide:_m,useFactory:()=>{const n=_r(JN),e=_r(uo),t=_r(zh),o=_r(Hh),s=_r(C3);return t.scrollOffset&&n.setOffset(t.scrollOffset),new _5(s,o,n,e,t)}},o?.preloadingStrategy?XF(o.preloadingStrategy).\u0275providers:[],{provide:sv,multi:!0,useFactory:tL},o?.initialNavigation?sL(o):[],[{provide:D5,useFactory:v5},{provide:qw,multi:!0,useExisting:D5}]]}}static forChild(t){return{ngModule:n,providers:[{provide:Ul,multi:!0,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(mt(T5,8))},n.\u0275mod=li({type:n}),n.\u0275inj=je({imports:[dm]}),n})();function iL(n){return"guarded"}function sL(n){return["disabled"===n.initialNavigation?Bc(3,[{provide:Vf,multi:!0,useFactory:()=>{const e=_r(Fi);return()=>{e.setUpLocationChangeListener()}}},{provide:vm,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Bc(2,[{provide:vm,useValue:0},{provide:Vf,multi:!0,deps:[pi],useFactory:e=>{const t=e.get(SB,Promise.resolve());return()=>t.then(()=>new Promise(s=>{const l=e.get(Fi),u=e.get(I5);(function o(s){e.get(Fi).events.pipe(Ka(u=>u instanceof Sc||u instanceof Bh||u instanceof jC),P(u=>u instanceof Sc||u instanceof Bh&&(0===u.code||1===u.code)&&null),Ka(u=>null!==u),xl(1)).subscribe(()=>{s()})})(()=>{s(!0)}),e.get(Hh).afterPreactivation=()=>(s(!0),u.closed?pn(void 0):u),l.initialNavigation()}))}}]).\u0275providers:[]]}const D5=new hn("");class Gl{}Gl.\u0275fac=function(e){return new(e||Gl)},Gl.\u0275mod=li({type:Gl}),Gl.\u0275inj=je({imports:[k5.forRoot([]),k5]});class lL extends I{constructor(e,t){super()}schedule(e,t=0){return this}}let E5=(()=>{class n{constructor(t,o=n.now){this.SchedulerAction=t,this.now=o}schedule(t,o=0,s){return new this.SchedulerAction(this,t).schedule(s,o)}}return n.now=()=>Date.now(),n})();class Za extends E5{constructor(e,t=E5.now){super(e,()=>Za.delegate&&Za.delegate!==this?Za.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,o){return Za.delegate&&Za.delegate!==this?Za.delegate.schedule(e,t,o):super.schedule(e,t,o)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let o;this.active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}}const dL=new Za(class uL extends lL{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,o=0){return setInterval(e.flush.bind(e,this),o)}recycleAsyncId(e,t,o=0){if(null!==o&&this.delay===o&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(e,t);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,o=!1;try{this.work(e)}catch(l){o=!0,s=!!l&&l||new Error(l)}if(o)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,o=t.actions,s=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&o.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}});class bs{constructor(e,t,o){this.kind=e,this.value=t,this.error=o,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,o){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return o&&o()}}accept(e,t,o){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,o)}toObservable(){switch(this.kind){case"N":return pn(this.value);case"E":return Ml(this.error);case"C":return Ch()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new bs("N",e):bs.undefinedValueNotification}static createError(e){return new bs("E",void 0,e)}static createComplete(){return bs.completeNotification}}bs.completeNotification=new bs("C"),bs.undefinedValueNotification=new bs("N",void 0);class hL{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Cm(e,this.delay,this.scheduler))}}class Cm extends i{constructor(e,t,o){super(e),this.delay=t,this.scheduler=o,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,o=t.queue,s=e.scheduler,l=e.destination;for(;o.length>0&&o[0].time-s.now()<=0;)o.shift().notification.observe(l);if(o.length>0){const u=Math.max(0,o[0].time-s.now());this.schedule(e,u)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Cm.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,o=new pL(t.now()+this.delay,e);this.queue.push(o),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(bs.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(bs.createComplete()),this.unsubscribe()}}class pL{constructor(e,t){this.time=e,this.notification=t}}class M5{}class AL{}const ca="*";function x5(n,e){return{type:7,name:n,definitions:e,options:{}}}function Wr(n,e=null){return{type:4,styles:e,timings:n}}function O5(n,e=null){return{type:2,steps:n,options:e}}function dt(n){return{type:6,styles:n,offset:null}}function $r(n,e,t){return{type:0,name:n,styles:e,options:t}}function bo(n){return{type:5,steps:n}}function Hr(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function gL(n=null){return{type:9,options:n}}function mL(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function S5(n){Promise.resolve().then(n)}class F3{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){S5(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class B5{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,o=0,s=0;const l=this.players.length;0==l?S5(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++t==l&&this._onFinish()}),u.onDestroy(()=>{++o==l&&this._onDestroy()}),u.onStart(()=>{++s==l&&this._onStart()})}),this.totalTime=this.players.reduce((u,h)=>Math.max(u,h.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(o=>{const s=o.totalTime?Math.min(1,t/o.totalTime):1;o.setPosition(s)})}getPosition(){const e=this.players.reduce((t,o)=>null===t||o.totalTime>t.totalTime?o:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}function N5(n){return new Le(3e3,!1)}function JL(){return typeof window<"u"&&typeof window.document<"u"}function km(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function qa(n){switch(n.length){case 0:return new F3;case 1:return n[0];default:return new B5(n)}}function P5(n,e,t,o,s=new Map,l=new Map){const u=[],h=[];let A=-1,y=null;if(o.forEach(D=>{const U=D.get("offset"),q=U==A,ce=q&&y||new Map;D.forEach((ye,Be)=>{let ze=Be,tt=ye;if("offset"!==Be)switch(ze=e.normalizePropertyName(ze,u),tt){case"!":tt=s.get(Be);break;case ca:tt=l.get(Be);break;default:tt=e.normalizeStyleValue(Be,ze,tt,u)}ce.set(ze,tt)}),q||h.push(ce),y=ce,A=U}),u.length)throw function jL(n){return new Le(3502,!1)}();return h}function Dm(n,e,t,o){switch(e){case"start":n.onStart(()=>o(t&&Em(t,"start",n)));break;case"done":n.onDone(()=>o(t&&Em(t,"done",n)));break;case"destroy":n.onDestroy(()=>o(t&&Em(t,"destroy",n)))}}function Em(n,e,t){const l=Mm(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),u=n._data;return null!=u&&(l._data=u),l}function Mm(n,e,t,o,s="",l=0,u){return{element:n,triggerName:e,fromState:t,toState:o,phaseName:s,totalTime:l,disabled:!!u}}function Li(n,e,t){let o=n.get(e);return o||n.set(e,o=t),o}function R5(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let xm=(n,e)=>!1,F5=(n,e,t)=>[],L5=null;function Om(n){const e=n.parentNode||n.host;return e===L5?null:e}(km()||typeof Element<"u")&&(JL()?(L5=(()=>document.documentElement)(),xm=(n,e)=>{for(;e;){if(e===n)return!0;e=Om(e)}return!1}):xm=(n,e)=>n.contains(e),F5=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const o=n.querySelector(e);return o?[o]:[]});let Nc=null,U5=!1;const j5=xm,G5=F5;let Q5=(()=>{class n{validateStyleProperty(t){return function eU(n){Nc||(Nc=function tU(){return typeof document<"u"?document.body:null}()||{},U5=!!Nc.style&&"WebkitAppearance"in Nc.style);let e=!0;return Nc.style&&!function XL(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Nc.style,!e&&U5&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Nc.style)),e}(t)}matchesElement(t,o){return!1}containsElement(t,o){return j5(t,o)}getParentElement(t){return Om(t)}query(t,o,s){return G5(t,o,s)}computeStyle(t,o,s){return s||""}animate(t,o,s,l,u,h=[],A){return new F3(s,l)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),Sm=(()=>{class n{}return n.NOOP=new Q5,n})();const Bm="ng-enter",Vh="ng-leave",Kh="ng-trigger",Yh=".ng-trigger",z5="ng-animating",Nm=".ng-animating";function la(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pm(parseFloat(e[1]),e[2])}function Pm(n,e){return"s"===e?1e3*n:n}function Wh(n,e,t){return n.hasOwnProperty("duration")?n:function oU(n,e,t){let s,l=0,u="";if("string"==typeof n){const h=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===h)return e.push(N5()),{duration:0,delay:0,easing:""};s=Pm(parseFloat(h[1]),h[2]);const A=h[3];null!=A&&(l=Pm(parseFloat(A),h[4]));const y=h[5];y&&(u=y)}else s=n;if(!t){let h=!1,A=e.length;s<0&&(e.push(function yL(){return new Le(3100,!1)}()),h=!0),l<0&&(e.push(function bL(){return new Le(3101,!1)}()),h=!0),h&&e.splice(A,0,N5())}return{duration:s,delay:l,easing:u}}(n,e,t)}function L3(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function V5(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Ja(n,e=new Map,t){if(t)for(let[o,s]of t)e.set(o,s);for(let[o,s]of n)e.set(o,s);return e}function Y5(n,e,t){return t?e+":"+t+";":""}function W5(n){let e="";for(let t=0;t{const l=Fm(s);t&&!t.has(s)&&t.set(s,n.style[l]),n.style[l]=o}),km()&&W5(n))}function Pc(n,e){n.style&&(e.forEach((t,o)=>{const s=Fm(o);n.style[s]=""}),km()&&W5(n))}function U3(n){return Array.isArray(n)?1==n.length?n[0]:O5(n):n}const Rm=new RegExp("{{\\s*(.+?)\\s*}}","g");function $5(n){let e=[];if("string"==typeof n){let t;for(;t=Rm.exec(n);)e.push(t[1]);Rm.lastIndex=0}return e}function j3(n,e,t){const o=n.toString(),s=o.replace(Rm,(l,u)=>{let h=e[u];return null==h&&(t.push(function wL(n){return new Le(3003,!1)}()),h=""),h.toString()});return s==o?n:s}function $h(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const aU=/-+([a-z0-9])/g;function Fm(n){return n.replace(aU,(...e)=>e[1].toUpperCase())}function cU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ui(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function vL(n){return new Le(3004,!1)}()}}function Z5(n,e){return window.getComputedStyle(n)[e]}function pU(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(o=>function AU(n,e,t){if(":"==n[0]){const A=function gU(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,o)=>parseFloat(o)>parseFloat(t);case":decrement":return(t,o)=>parseFloat(o) *"}}(n,t);if("function"==typeof A)return void e.push(A);n=A}const o=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return t.push(function PL(n){return new Le(3015,!1)}()),e;const s=o[1],l=o[2],u=o[3];e.push(q5(s,u));"<"==l[0]&&!("*"==s&&"*"==u)&&e.push(q5(u,s))}(o,t,e)):t.push(n),t}const Xh=new Set(["true","1"]),e0=new Set(["false","0"]);function q5(n,e){const t=Xh.has(n)||e0.has(n),o=Xh.has(e)||e0.has(e);return(s,l)=>{let u="*"==n||n==s,h="*"==e||e==l;return!u&&t&&"boolean"==typeof s&&(u=s?Xh.has(n):e0.has(n)),!h&&o&&"boolean"==typeof l&&(h=l?Xh.has(e):e0.has(e)),u&&h}}const mU=new RegExp("s*:selfs*,?","g");function Lm(n,e,t,o){return new yU(n).build(e,t,o)}class yU{constructor(e){this._driver=e}build(e,t,o){const s=new wU(t);return this._resetContextStyleTimingState(s),Ui(this,U3(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let o=t.queryCount=0,s=t.depCount=0;const l=[],u=[];return"@"==e.name.charAt(0)&&t.errors.push(function CL(){return new Le(3006,!1)}()),e.definitions.forEach(h=>{if(this._resetContextStyleTimingState(t),0==h.type){const A=h,y=A.name;y.toString().split(/\s*,\s*/).forEach(D=>{A.name=D,l.push(this.visitState(A,t))}),A.name=y}else if(1==h.type){const A=this.visitTransition(h,t);o+=A.queryCount,s+=A.depCount,u.push(A)}else t.errors.push(function TL(){return new Le(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:o,depCount:s,options:null}}visitState(e,t){const o=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(o.containsDynamicStyles){const l=new Set,u=s||{};o.styles.forEach(h=>{h instanceof Map&&h.forEach(A=>{$5(A).forEach(y=>{u.hasOwnProperty(y)||l.add(y)})})}),l.size&&($h(l.values()),t.errors.push(function kL(n,e){return new Le(3008,!1)}()))}return{type:0,name:e.name,style:o,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const o=Ui(this,U3(e.animation),t);return{type:1,matchers:pU(e.expr,t.errors),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Rc(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(o=>Ui(this,o,t)),options:Rc(e.options)}}visitGroup(e,t){const o=t.currentTime;let s=0;const l=e.steps.map(u=>{t.currentTime=o;const h=Ui(this,u,t);return s=Math.max(s,t.currentTime),h});return t.currentTime=s,{type:3,steps:l,options:Rc(e.options)}}visitAnimate(e,t){const o=function IU(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Um(Wh(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Um(0,0,"");return l.dynamic=!0,l.strValue=t,l}const s=Wh(t,e);return Um(s.duration,s.delay,s.easing)}(e.timings,t.errors);t.currentAnimateTimings=o;let s,l=e.styles?e.styles:dt({});if(5==l.type)s=this.visitKeyframes(l,t);else{let u=e.styles,h=!1;if(!u){h=!0;const y={};o.easing&&(y.easing=o.easing),u=dt(y)}t.currentTime+=o.duration+o.delay;const A=this.visitStyle(u,t);A.isEmptyStep=h,s=A}return t.currentAnimateTimings=null,{type:4,timings:o,style:s,options:null}}visitStyle(e,t){const o=this._makeStyleAst(e,t);return this._validateStyleAst(o,t),o}_makeStyleAst(e,t){const o=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let h of s)"string"==typeof h?h===ca?o.push(h):t.errors.push(new Le(3002,!1)):o.push(V5(h));let l=!1,u=null;return o.forEach(h=>{if(h instanceof Map&&(h.has("easing")&&(u=h.get("easing"),h.delete("easing")),!l))for(let A of h.values())if(A.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:o,easing:u,offset:e.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(e,t){const o=t.currentAnimateTimings;let s=t.currentTime,l=t.currentTime;o&&l>0&&(l-=o.duration+o.delay),e.styles.forEach(u=>{"string"!=typeof u&&u.forEach((h,A)=>{const y=t.collectedStyles.get(t.currentQuerySelector),D=y.get(A);let U=!0;D&&(l!=s&&l>=D.startTime&&s<=D.endTime&&(t.errors.push(function EL(n,e,t,o,s){return new Le(3010,!1)}()),U=!1),l=D.startTime),U&&y.set(A,{startTime:l,endTime:s}),t.options&&function sU(n,e,t){const o=e.params||{},s=$5(n);s.length&&s.forEach(l=>{o.hasOwnProperty(l)||t.push(function _L(n){return new Le(3001,!1)}())})}(h,t.options,t.errors)})})}visitKeyframes(e,t){const o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function ML(){return new Le(3011,!1)}()),o;let l=0;const u=[];let h=!1,A=!1,y=0;const D=e.steps.map(tt=>{const Pe=this._makeStyleAst(tt,t);let qe=null!=Pe.offset?Pe.offset:function vU(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const o=t;e=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(Pe.styles),Et=0;return null!=qe&&(l++,Et=Pe.offset=qe),A=A||Et<0||Et>1,h=h||Et0&&l{const qe=q>0?Pe==ce?1:q*Pe:u[Pe],Et=qe*ze;t.currentTime=ye+Be.delay+Et,Be.duration=Et,this._validateStyleAst(tt,t),tt.offset=qe,o.styles.push(tt)}),o}visitReference(e,t){return{type:8,animation:Ui(this,U3(e.animation),t),options:Rc(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Rc(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Rc(e.options)}}visitQuery(e,t){const o=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[l,u]=function bU(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(mU,"")),n=n.replace(/@\*/g,Yh).replace(/@\w+/g,t=>Yh+"-"+t.slice(1)).replace(/:animating/g,Nm),[n,e]}(e.selector);t.currentQuerySelector=o.length?o+" "+l:l,Li(t.collectedStyles,t.currentQuerySelector,new Map);const h=Ui(this,U3(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=o,{type:11,selector:l,limit:s.limit||0,optional:!!s.optional,includeSelf:u,animation:h,originalSelector:e.selector,options:Rc(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function BL(){return new Le(3013,!1)}());const o="full"===e.timings?{duration:0,delay:0,easing:"full"}:Wh(e.timings,t.errors,!0);return{type:12,animation:Ui(this,U3(e.animation),t),timings:o,options:null}}}class wU{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Rc(n){return n?(n=L3(n)).params&&(n.params=function _U(n){return n?L3(n):null}(n.params)):n={},n}function Um(n,e,t){return{duration:n,delay:e,easing:t}}function jm(n,e,t,o,s,l,u=null,h=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:o,duration:s,delay:l,totalTime:s+l,easing:u,subTimeline:h}}class t0{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let o=this._map.get(e);o||this._map.set(e,o=[]),o.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const kU=new RegExp(":enter","g"),EU=new RegExp(":leave","g");function Gm(n,e,t,o,s,l=new Map,u=new Map,h,A,y=[]){return(new MU).buildKeyframes(n,e,t,o,s,l,u,h,A,y)}class MU{buildKeyframes(e,t,o,s,l,u,h,A,y,D=[]){y=y||new t0;const U=new Qm(e,t,y,s,l,D,[]);U.options=A;const q=A.delay?la(A.delay):0;U.currentTimeline.delayNextStep(q),U.currentTimeline.setStyles([u],null,U.errors,A),Ui(this,o,U);const ce=U.timelines.filter(ye=>ye.containsAnimation());if(ce.length&&h.size){let ye;for(let Be=ce.length-1;Be>=0;Be--){const ze=ce[Be];if(ze.element===t){ye=ze;break}}ye&&!ye.allowOnlyTimelineStyles()&&ye.setStyles([h],null,U.errors,A)}return ce.length?ce.map(ye=>ye.buildKeyframes()):[jm(t,[],[],[],0,q,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const o=t.subInstructions.get(t.element);if(o){const s=t.createSubContext(e.options),l=t.currentTimeline.currentTime,u=this._visitSubInstructions(o,s,s.options);l!=u&&t.transformIntoNewTimeline(u)}t.previousNode=e}visitAnimateRef(e,t){const o=t.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,o),this.visitReference(e.animation,o),t.transformIntoNewTimeline(o.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,o){for(const s of e){const l=s?.delay;if(l){const u="number"==typeof l?l:la(j3(l,s?.params??{},t.errors));o.delayNextStep(u)}}}_visitSubInstructions(e,t,o){let l=t.currentTimeline.currentTime;const u=null!=o.duration?la(o.duration):null,h=null!=o.delay?la(o.delay):null;return 0!==u&&e.forEach(A=>{const y=t.appendInstructionToTimeline(A,u,h);l=Math.max(l,y.duration+y.delay)}),l}visitReference(e,t){t.updateOptions(e.options,!0),Ui(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const o=t.subContextCount;let s=t;const l=e.options;if(l&&(l.params||l.delay)&&(s=t.createSubContext(l),s.transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=n0);const u=la(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(u=>Ui(this,u,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>o&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const o=[];let s=t.currentTimeline.currentTime;const l=e.options&&e.options.delay?la(e.options.delay):0;e.steps.forEach(u=>{const h=t.createSubContext(e.options);l&&h.delayNextStep(l),Ui(this,u,h),s=Math.max(s,h.currentTimeline.currentTime),o.push(h.currentTimeline)}),o.forEach(u=>t.currentTimeline.mergeTimelineCollectedStyles(u)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const o=e.strValue;return Wh(t.params?j3(o,t.params,t.errors):o,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const o=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;o.delay&&(t.incrementTime(o.delay),s.snapshotCurrentStyles());const l=e.style;5==l.type?this.visitKeyframes(l,t):(t.incrementTime(o.duration),this.visitStyle(l,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const o=t.currentTimeline,s=t.currentAnimateTimings;!s&&o.hasCurrentStyleProperties()&&o.forwardFrame();const l=s&&s.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(l):o.setStyles(e.styles,l,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const o=t.currentAnimateTimings,s=t.currentTimeline.duration,l=o.duration,h=t.createSubContext().currentTimeline;h.easing=o.easing,e.styles.forEach(A=>{h.forwardTime((A.offset||0)*l),h.setStyles(A.styles,A.easing,t.errors,t.options),h.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(h),t.transformIntoNewTimeline(s+l),t.previousNode=e}visitQuery(e,t){const o=t.currentTimeline.currentTime,s=e.options||{},l=s.delay?la(s.delay):0;l&&(6===t.previousNode.type||0==o&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=n0);let u=o;const h=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=h.length;let A=null;h.forEach((y,D)=>{t.currentQueryIndex=D;const U=t.createSubContext(e.options,y);l&&U.delayNextStep(l),y===t.element&&(A=U.currentTimeline),Ui(this,e.animation,U),U.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,U.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(u),A&&(t.currentTimeline.mergeTimelineCollectedStyles(A),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const o=t.parentContext,s=t.currentTimeline,l=e.timings,u=Math.abs(l.duration),h=u*(t.currentQueryTotal-1);let A=u*t.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":A=h-A;break;case"full":A=o.currentStaggerTime}const D=t.currentTimeline;A&&D.delayNextStep(A);const U=D.currentTime;Ui(this,e.animation,t),t.previousNode=e,o.currentStaggerTime=s.currentTime-U+(s.startTime-o.currentTimeline.startTime)}}const n0={};class Qm{constructor(e,t,o,s,l,u,h,A){this._driver=e,this.element=t,this.subInstructions=o,this._enterClassName=s,this._leaveClassName=l,this.errors=u,this.timelines=h,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=n0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=A||new r0(this._driver,t,0),h.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const o=e;let s=this.options;null!=o.duration&&(s.duration=la(o.duration)),null!=o.delay&&(s.delay=la(o.delay));const l=o.params;if(l){let u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(h=>{(!t||!u.hasOwnProperty(h))&&(u[h]=j3(l[h],u,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const o=e.params={};Object.keys(t).forEach(s=>{o[s]=t[s]})}}return e}createSubContext(e=null,t,o){const s=t||this.element,l=new Qm(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,o||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(e),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(e){return this.previousNode=n0,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,o){const s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(o??0)+e.delay,easing:""},l=new xU(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(l),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,o,s,l,u){let h=[];if(s&&h.push(this.element),e.length>0){e=(e=e.replace(kU,"."+this._enterClassName)).replace(EU,"."+this._leaveClassName);let y=this._driver.query(this.element,e,1!=o);0!==o&&(y=o<0?y.slice(y.length+o,y.length):y.slice(0,o)),h.push(...y)}return!l&&0==h.length&&u.push(function NL(n){return new Le(3014,!1)}()),h}}class r0{constructor(e,t,o,s){this._driver=e,this.element=t,this.startTime=o,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r0(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,o]of this._globalTimelineStyles)this._backFill.set(t,o||ca),this._currentKeyframe.set(t,ca);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,o,s){t&&this._previousKeyframe.set("easing",t);const l=s&&s.params||{},u=function OU(n,e){const t=new Map;let o;return n.forEach(s=>{if("*"===s){o=o||e.keys();for(let l of o)t.set(l,ca)}else Ja(s,t)}),t}(e,this._globalTimelineStyles);for(let[h,A]of u){const y=j3(A,l,o);this._pendingStyles.set(h,y),this._localTimelineStyles.has(h)||this._backFill.set(h,this._globalTimelineStyles.get(h)??ca),this._updateStyle(h,y)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,o)=>{const s=this._styleSummary.get(o);(!s||t.time>s.time)&&this._updateStyle(o,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,o=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((h,A)=>{const y=Ja(h,new Map,this._backFill);y.forEach((D,U)=>{"!"===D?e.add(U):D===ca&&t.add(U)}),o||y.set("offset",A/this.duration),s.push(y)});const l=e.size?$h(e.values()):[],u=t.size?$h(t.values()):[];if(o){const h=s[0],A=new Map(h);h.set("offset",0),A.set("offset",1),s=[h,A]}return jm(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}class xU extends r0{constructor(e,t,o,s,l,u,h=!1){super(e,t,u.delay),this.keyframes=o,this.preStyleProps=s,this.postStyleProps=l,this._stretchStartingKeyframe=h,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:o,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const l=[],u=o+t,h=t/u,A=Ja(e[0]);A.set("offset",0),l.push(A);const y=Ja(e[0]);y.set("offset",eT(h)),l.push(y);const D=e.length-1;for(let U=1;U<=D;U++){let q=Ja(e[U]);const ce=q.get("offset");q.set("offset",eT((t+ce*o)/u)),l.push(q)}o=u,t=0,s="",e=l}return jm(this.element,e,this.preStyleProps,this.postStyleProps,o,t,s,!0)}}function eT(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Hm{}const SU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class BU extends Hm{normalizePropertyName(e,t){return Fm(e)}normalizeStyleValue(e,t,o,s){let l="";const u=o.toString().trim();if(SU.has(t)&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{const h=o.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&s.push(function IL(n,e){return new Le(3005,!1)}())}return u+l}}function tT(n,e,t,o,s,l,u,h,A,y,D,U,q){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:l,toState:o,toStyles:u,timelines:h,queriedElements:A,preStyleProps:y,postStyleProps:D,totalTime:U,errors:q}}const zm={};class nT{constructor(e,t,o){this._triggerName=e,this.ast=t,this._stateStyles=o}match(e,t,o,s){return function NU(n,e,t,o,s){return n.some(l=>l(e,t,o,s))}(this.ast.matchers,e,t,o,s)}buildStyles(e,t,o){let s=this._stateStyles.get("*");return void 0!==e&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,o):new Map}build(e,t,o,s,l,u,h,A,y,D){const U=[],q=this.ast.options&&this.ast.options.params||zm,ye=this.buildStyles(o,h&&h.params||zm,U),Be=A&&A.params||zm,ze=this.buildStyles(s,Be,U),tt=new Set,Pe=new Map,qe=new Map,Et="void"===s,En={params:PU(Be,q),delay:this.ast.options?.delay},cn=D?[]:Gm(e,t,this.ast.animation,l,u,ye,ze,En,y,U);let Ar=0;if(cn.forEach(ge=>{Ar=Math.max(ge.duration+ge.delay,Ar)}),U.length)return tT(t,this._triggerName,o,s,Et,ye,ze,[],[],Pe,qe,Ar,U);cn.forEach(ge=>{const ve=ge.element,Qe=Li(Pe,ve,new Set);ge.preStyleProps.forEach(Ue=>Qe.add(Ue));const Ne=Li(qe,ve,new Set);ge.postStyleProps.forEach(Ue=>Ne.add(Ue)),ve!==t&&tt.add(ve)});const ue=$h(tt.values());return tT(t,this._triggerName,o,s,Et,ye,ze,cn,ue,Pe,qe,Ar)}}function PU(n,e){const t=L3(e);for(const o in n)n.hasOwnProperty(o)&&null!=n[o]&&(t[o]=n[o]);return t}class RU{constructor(e,t,o){this.styles=e,this.defaultParams=t,this.normalizer=o}buildStyles(e,t){const o=new Map,s=L3(this.defaultParams);return Object.keys(e).forEach(l=>{const u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((u,h)=>{u&&(u=j3(u,s,t));const A=this.normalizer.normalizePropertyName(h,t);u=this.normalizer.normalizeStyleValue(h,A,u,t),o.set(h,u)})}),o}}class LU{constructor(e,t,o){this.name=e,this.ast=t,this._normalizer=o,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{this.states.set(s.name,new RU(s.style,s.options&&s.options.params||{},o))}),rT(this.states,"true","1"),rT(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new nT(e,s,this.states))}),this.fallbackTransition=function UU(n,e,t){return new nT(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,h)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,o,s){return this.transitionFactories.find(u=>u.match(e,t,o,s))||null}matchStyles(e,t,o){return this.fallbackTransition.buildStyles(e,t,o)}}function rT(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const jU=new t0;class GU{constructor(e,t,o){this.bodyNode=e,this._driver=t,this._normalizer=o,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const o=[],l=Lm(this._driver,t,o,[]);if(o.length)throw function GL(n){return new Le(3503,!1)}();this._animations.set(e,l)}_buildPlayer(e,t,o){const s=e.element,l=P5(0,this._normalizer,0,e.keyframes,t,o);return this._driver.animate(s,l,e.duration,e.delay,e.easing,[],!0)}create(e,t,o={}){const s=[],l=this._animations.get(e);let u;const h=new Map;if(l?(u=Gm(this._driver,t,l,Bm,Vh,new Map,new Map,o,jU,s),u.forEach(D=>{const U=Li(h,D.element,new Map);D.postStyleProps.forEach(q=>U.set(q,null))})):(s.push(function QL(){return new Le(3300,!1)}()),u=[]),s.length)throw function HL(n){return new Le(3504,!1)}();h.forEach((D,U)=>{D.forEach((q,ce)=>{D.set(ce,this._driver.computeStyle(U,ce,ca))})});const y=qa(u.map(D=>{const U=h.get(D.element);return this._buildPlayer(D,new Map,U)}));return this._playersById.set(e,y),y.onDestroy(()=>this.destroy(e)),this.players.push(y),y}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const o=this.players.indexOf(t);o>=0&&this.players.splice(o,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function zL(n){return new Le(3301,!1)}();return t}listen(e,t,o,s){const l=Mm(t,"","","");return Dm(this._getPlayer(e),o,l,s),()=>{}}command(e,t,o,s){if("register"==o)return void this.register(e,s[0]);if("create"==o)return void this.create(e,t,s[0]||{});const l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const oT="ng-animate-queued",Vm="ng-animate-disabled",KU=[],iT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},YU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qi="__ng_removed";class Km{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const o=e&&e.hasOwnProperty("value");if(this.value=function qU(n){return n??null}(o?e.value:e),o){const l=L3(e);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const o=this.options.params;Object.keys(t).forEach(s=>{null==o[s]&&(o[s]=t[s])})}}}const G3="void",Ym=new Km(G3);class WU{constructor(e,t,o){this.id=e,this.hostElement=t,this._engine=o,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ji(t,this._hostClassName)}listen(e,t,o,s){if(!this._triggers.has(t))throw function VL(n,e){return new Le(3302,!1)}();if(null==o||0==o.length)throw function KL(n){return new Le(3303,!1)}();if(!function JU(n){return"start"==n||"done"==n}(o))throw function YL(n,e){return new Le(3400,!1)}();const l=Li(this._elementListeners,e,[]),u={name:t,phase:o,callback:s};l.push(u);const h=Li(this._engine.statesByElement,e,new Map);return h.has(t)||(Ji(e,Kh),Ji(e,Kh+"-"+t),h.set(t,Ym)),()=>{this._engine.afterFlush(()=>{const A=l.indexOf(u);A>=0&&l.splice(A,1),this._triggers.has(t)||h.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function WL(n){return new Le(3401,!1)}();return t}trigger(e,t,o,s=!0){const l=this._getTrigger(t),u=new Wm(this.id,t,e);let h=this._engine.statesByElement.get(e);h||(Ji(e,Kh),Ji(e,Kh+"-"+t),this._engine.statesByElement.set(e,h=new Map));let A=h.get(t);const y=new Km(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&A&&y.absorbOptions(A.options),h.set(t,y),A||(A=Ym),y.value!==G3&&A.value===y.value){if(!function tj(n,e){const t=Object.keys(n),o=Object.keys(e);if(t.length!=o.length)return!1;for(let s=0;s{Pc(e,ze),js(e,tt)})}return}const q=Li(this._engine.playersByElement,e,[]);q.forEach(Be=>{Be.namespaceId==this.id&&Be.triggerName==t&&Be.queued&&Be.destroy()});let ce=l.matchTransition(A.value,y.value,e,y.params),ye=!1;if(!ce){if(!s)return;ce=l.fallbackTransition,ye=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:ce,fromState:A,toState:y,player:u,isFallbackTransition:ye}),ye||(Ji(e,oT),u.onStart(()=>{Ql(e,oT)})),u.onDone(()=>{let Be=this.players.indexOf(u);Be>=0&&this.players.splice(Be,1);const ze=this._engine.playersByElement.get(e);if(ze){let tt=ze.indexOf(u);tt>=0&&ze.splice(tt,1)}}),this.players.push(u),q.push(u),u}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,o)=>{this._elementListeners.set(o,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(o=>o.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const o=this._engine.driver.query(e,Yh,!0);o.forEach(s=>{if(s[qi])return;const l=this._engine.fetchNamespacesByElement(s);l.size?l.forEach(u=>u.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,o,s){const l=this._engine.statesByElement.get(e),u=new Map;if(l){const h=[];if(l.forEach((A,y)=>{if(u.set(y,A.value),this._triggers.has(y)){const D=this.trigger(e,y,G3,s);D&&h.push(D)}}),h.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,u),o&&qa(h).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),o=this._engine.statesByElement.get(e);if(t&&o){const s=new Set;t.forEach(l=>{const u=l.name;if(s.has(u))return;s.add(u);const A=this._triggers.get(u).fallbackTransition,y=o.get(u)||Ym,D=new Km(G3),U=new Wm(this.id,u,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:u,transition:A,fromState:y,toState:D,player:U,isFallbackTransition:!0})})}}removeNode(e,t){const o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(o.totalAnimations){const l=o.players.length?o.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else{let u=e;for(;u=u.parentNode;)if(o.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)o.markElementAsRemoved(this.id,e,!1,t);else{const l=e[qi];(!l||l===iT)&&(o.afterFlush(()=>this.clearElementCache(e)),o.destroyInnerAnimations(e),o._onRemovalComplete(e,t))}}insertNode(e,t){Ji(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(o=>{const s=o.player;if(s.destroyed)return;const l=o.element,u=this._elementListeners.get(l);u&&u.forEach(h=>{if(h.name==o.triggerName){const A=Mm(l,o.triggerName,o.fromState.value,o.toState.value);A._data=e,Dm(o.player,h.phase,A,h.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(o)}),this._queue=[],t.sort((o,s)=>{const l=o.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:this._engine.driver.containsElement(o.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(o=>o.element===e)||t,t}}class $U{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,o){this.bodyNode=e,this.driver=t,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,l)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(o=>{o.queued&&e.push(o)})}),e}createNamespace(e,t){const o=new WU(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(o,t):(this.newHostElements.set(t,o),this.collectEnterElement(t)),this._namespaceLookup[e]=o}_balanceNamespaceList(e,t){const o=this._namespaceList,s=this.namespacesByHostElement;if(o.length-1>=0){let u=!1,h=this.driver.getParentElement(t);for(;h;){const A=s.get(h);if(A){const y=o.indexOf(A);o.splice(y+1,0,e),u=!0;break}h=this.driver.getParentElement(h)}u||o.unshift(e)}else o.push(e);return s.set(t,e),e}register(e,t){let o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,t)),o}registerTrigger(e,t,o){let s=this._namespaceLookup[e];s&&s.register(t,o)&&this.totalAnimations++}destroy(e,t){if(!e)return;const o=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(o.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(o);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>o.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,o=this.statesByElement.get(e);if(o)for(let s of o.values())if(s.namespaceId){const l=this._fetchNamespace(s.namespaceId);l&&t.add(l)}return t}trigger(e,t,o,s){if(o0(t)){const l=this._fetchNamespace(e);if(l)return l.trigger(t,o,s),!0}return!1}insertNode(e,t,o,s){if(!o0(t))return;const l=t[qi];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const u=this.collectedLeaveElements.indexOf(t);u>=0&&this.collectedLeaveElements.splice(u,1)}if(e){const u=this._fetchNamespace(e);u&&u.insertNode(t,o)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ji(e,Vm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ql(e,Vm))}removeNode(e,t,o,s){if(o0(t)){const l=e?this._fetchNamespace(e):null;if(l?l.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),o){const u=this.namespacesByHostElement.get(t);u&&u.id!==e&&u.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,o,s,l){this.collectedLeaveElements.push(t),t[qi]={namespaceId:e,setForRemoval:s,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:l}}listen(e,t,o,s,l){return o0(t)?this._fetchNamespace(e).listen(t,o,s,l):()=>{}}_buildInstruction(e,t,o,s,l){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,s,e.fromState.options,e.toState.options,t,l)}destroyInnerAnimations(e){let t=this.driver.query(e,Yh,!0);t.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Nm,!0),t.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qa(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[qi];if(t&&t.setForRemoval){if(e[qi]=iT,t.namespaceId){this.destroyInnerAnimations(e);const o=this._fetchNamespace(t.namespaceId);o&&o.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Vm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,s)=>this._balanceNamespaceList(o,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;oo()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],t.length?qa(t).onDone(()=>{o.forEach(s=>s())}):o.forEach(s=>s())}}reportError(e){throw function $L(n){return new Le(3402,!1)}()}_flushAnimations(e,t){const o=new t0,s=[],l=new Map,u=[],h=new Map,A=new Map,y=new Map,D=new Set;this.disabledNodes.forEach(_e=>{D.add(_e);const De=this.driver.query(_e,".ng-animate-queued",!0);for(let Te=0;Te{const Te=Bm+Be++;ye.set(De,Te),_e.forEach($e=>Ji($e,Te))});const ze=[],tt=new Set,Pe=new Set;for(let _e=0;_ett.add($e)):Pe.add(De))}const qe=new Map,Et=cT(q,Array.from(tt));Et.forEach((_e,De)=>{const Te=Vh+Be++;qe.set(De,Te),_e.forEach($e=>Ji($e,Te))}),e.push(()=>{ce.forEach((_e,De)=>{const Te=ye.get(De);_e.forEach($e=>Ql($e,Te))}),Et.forEach((_e,De)=>{const Te=qe.get(De);_e.forEach($e=>Ql($e,Te))}),ze.forEach(_e=>{this.processLeaveNode(_e)})});const En=[],cn=[];for(let _e=this._namespaceList.length-1;_e>=0;_e--)this._namespaceList[_e].drainQueuedTransitions(t).forEach(Te=>{const $e=Te.player,Tt=Te.element;if(En.push($e),this.collectedEnterElements.length){const Vn=Tt[qi];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(Te.triggerName)){const po=Vn.previousTriggersValues.get(Te.triggerName),Gr=this.statesByElement.get(Te.element);if(Gr&&Gr.has(Te.triggerName)){const zo=Gr.get(Te.triggerName);zo.value=po,Gr.set(Te.triggerName,zo)}}return void $e.destroy()}}const Lt=!U||!this.driver.containsElement(U,Tt),on=qe.get(Tt),qn=ye.get(Tt),mn=this._buildInstruction(Te,o,qn,on,Lt);if(mn.errors&&mn.errors.length)return void cn.push(mn);if(Lt)return $e.onStart(()=>Pc(Tt,mn.fromStyles)),$e.onDestroy(()=>js(Tt,mn.toStyles)),void s.push($e);if(Te.isFallbackTransition)return $e.onStart(()=>Pc(Tt,mn.fromStyles)),$e.onDestroy(()=>js(Tt,mn.toStyles)),void s.push($e);const Bn=[];mn.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||Bn.push(Vn)}),mn.timelines=Bn,o.append(Tt,mn.timelines),u.push({instruction:mn,player:$e,element:Tt}),mn.queriedElements.forEach(Vn=>Li(h,Vn,[]).push($e)),mn.preStyleProps.forEach((Vn,po)=>{if(Vn.size){let Gr=A.get(po);Gr||A.set(po,Gr=new Set),Vn.forEach((zo,Jr)=>Gr.add(Jr))}}),mn.postStyleProps.forEach((Vn,po)=>{let Gr=y.get(po);Gr||y.set(po,Gr=new Set),Vn.forEach((zo,Jr)=>Gr.add(Jr))})});if(cn.length){const _e=[];cn.forEach(De=>{_e.push(function ZL(n,e){return new Le(3505,!1)}())}),En.forEach(De=>De.destroy()),this.reportError(_e)}const Ar=new Map,ue=new Map;u.forEach(_e=>{const De=_e.element;o.has(De)&&(ue.set(De,De),this._beforeAnimationBuild(_e.player.namespaceId,_e.instruction,Ar))}),s.forEach(_e=>{const De=_e.element;this._getPreviousPlayers(De,!1,_e.namespaceId,_e.triggerName,null).forEach($e=>{Li(Ar,De,[]).push($e),$e.destroy()})});const ge=ze.filter(_e=>uT(_e,A,y)),ve=new Map;aT(ve,this.driver,Pe,y,ca).forEach(_e=>{uT(_e,A,y)&&ge.push(_e)});const Ne=new Map;ce.forEach((_e,De)=>{aT(Ne,this.driver,new Set(_e),A,"!")}),ge.forEach(_e=>{const De=ve.get(_e),Te=Ne.get(_e);ve.set(_e,new Map([...Array.from(De?.entries()??[]),...Array.from(Te?.entries()??[])]))});const Ue=[],Ke=[],Se={};u.forEach(_e=>{const{element:De,player:Te,instruction:$e}=_e;if(o.has(De)){if(D.has(De))return Te.onDestroy(()=>js(De,$e.toStyles)),Te.disabled=!0,Te.overrideTotalTime($e.totalTime),void s.push(Te);let Tt=Se;if(ue.size>1){let on=De;const qn=[];for(;on=on.parentNode;){const mn=ue.get(on);if(mn){Tt=mn;break}qn.push(on)}qn.forEach(mn=>ue.set(mn,Tt))}const Lt=this._buildAnimation(Te.namespaceId,$e,Ar,l,Ne,ve);if(Te.setRealPlayer(Lt),Tt===Se)Ue.push(Te);else{const on=this.playersByElement.get(Tt);on&&on.length&&(Te.parentPlayer=qa(on)),s.push(Te)}}else Pc(De,$e.fromStyles),Te.onDestroy(()=>js(De,$e.toStyles)),Ke.push(Te),D.has(De)&&s.push(Te)}),Ke.forEach(_e=>{const De=l.get(_e.element);if(De&&De.length){const Te=qa(De);_e.setRealPlayer(Te)}}),s.forEach(_e=>{_e.parentPlayer?_e.syncPlayerEvents(_e.parentPlayer):_e.destroy()});for(let _e=0;_e!Lt.destroyed);Tt.length?XU(this,De,Tt):this.processLeaveNode(De)}return ze.length=0,Ue.forEach(_e=>{this.players.push(_e),_e.onDone(()=>{_e.destroy();const De=this.players.indexOf(_e);this.players.splice(De,1)}),_e.play()}),Ue}elementContainsData(e,t){let o=!1;const s=t[qi];return s&&s.setForRemoval&&(o=!0),this.playersByElement.has(t)&&(o=!0),this.playersByQueriedElement.has(t)&&(o=!0),this.statesByElement.has(t)&&(o=!0),this._fetchNamespace(e).elementContainsData(t)||o}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,o,s,l){let u=[];if(t){const h=this.playersByQueriedElement.get(e);h&&(u=h)}else{const h=this.playersByElement.get(e);if(h){const A=!l||l==G3;h.forEach(y=>{y.queued||!A&&y.triggerName!=s||u.push(y)})}}return(o||s)&&(u=u.filter(h=>!(o&&o!=h.namespaceId||s&&s!=h.triggerName))),u}_beforeAnimationBuild(e,t,o){const l=t.element,u=t.isRemovalTransition?void 0:e,h=t.isRemovalTransition?void 0:t.triggerName;for(const A of t.timelines){const y=A.element,D=y!==l,U=Li(o,y,[]);this._getPreviousPlayers(y,D,u,h,t.toState).forEach(ce=>{const ye=ce.getRealPlayer();ye.beforeDestroy&&ye.beforeDestroy(),ce.destroy(),U.push(ce)})}Pc(l,t.fromStyles)}_buildAnimation(e,t,o,s,l,u){const h=t.triggerName,A=t.element,y=[],D=new Set,U=new Set,q=t.timelines.map(ye=>{const Be=ye.element;D.add(Be);const ze=Be[qi];if(ze&&ze.removedBeforeQueried)return new F3(ye.duration,ye.delay);const tt=Be!==A,Pe=function ej(n){const e=[];return lT(n,e),e}((o.get(Be)||KU).map(Ar=>Ar.getRealPlayer())).filter(Ar=>!!Ar.element&&Ar.element===Be),qe=l.get(Be),Et=u.get(Be),En=P5(0,this._normalizer,0,ye.keyframes,qe,Et),cn=this._buildPlayer(ye,En,Pe);if(ye.subTimeline&&s&&U.add(Be),tt){const Ar=new Wm(e,h,Be);Ar.setRealPlayer(cn),y.push(Ar)}return cn});y.forEach(ye=>{Li(this.playersByQueriedElement,ye.element,[]).push(ye),ye.onDone(()=>function ZU(n,e,t){let o=n.get(e);if(o){if(o.length){const s=o.indexOf(t);o.splice(s,1)}0==o.length&&n.delete(e)}return o}(this.playersByQueriedElement,ye.element,ye))}),D.forEach(ye=>Ji(ye,z5));const ce=qa(q);return ce.onDestroy(()=>{D.forEach(ye=>Ql(ye,z5)),js(A,t.toStyles)}),U.forEach(ye=>{Li(s,ye,[]).push(ce)}),ce}_buildPlayer(e,t,o){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,o):new F3(e.duration,e.delay)}}class Wm{constructor(e,t,o){this.namespaceId=e,this.triggerName=t,this.element=o,this._player=new F3,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,o)=>{t.forEach(s=>Dm(e,o,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Li(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function o0(n){return n&&1===n.nodeType}function sT(n,e){const t=n.style.display;return n.style.display=e??"none",t}function aT(n,e,t,o,s){const l=[];t.forEach(A=>l.push(sT(A)));const u=[];o.forEach((A,y)=>{const D=new Map;A.forEach(U=>{const q=e.computeStyle(y,U,s);D.set(U,q),(!q||0==q.length)&&(y[qi]=YU,u.push(y))}),n.set(y,D)});let h=0;return t.forEach(A=>sT(A,l[h++])),u}function cT(n,e){const t=new Map;if(n.forEach(h=>t.set(h,[])),0==e.length)return t;const s=new Set(e),l=new Map;function u(h){if(!h)return 1;let A=l.get(h);if(A)return A;const y=h.parentNode;return A=t.has(y)?y:s.has(y)?1:u(y),l.set(h,A),A}return e.forEach(h=>{const A=u(h);1!==A&&t.get(A).push(h)}),t}function Ji(n,e){n.classList?.add(e)}function Ql(n,e){n.classList?.remove(e)}function XU(n,e,t){qa(t).onDone(()=>n.processLeaveNode(e))}function lT(n,e){for(let t=0;ts.add(l)):e.set(n,o),t.delete(n),!0}class s0{constructor(e,t,o){this.bodyNode=e,this._driver=t,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(s,l)=>{},this._transitionEngine=new $U(e,t,o),this._timelineEngine=new GU(e,t,o),this._transitionEngine.onRemovalComplete=(s,l)=>this.onRemovalComplete(s,l)}registerTrigger(e,t,o,s,l){const u=e+"-"+s;let h=this._triggerCache[u];if(!h){const A=[],D=Lm(this._driver,l,A,[]);if(A.length)throw function UL(n,e){return new Le(3404,!1)}();h=function FU(n,e,t){return new LU(n,e,t)}(s,D,this._normalizer),this._triggerCache[u]=h}this._transitionEngine.registerTrigger(t,s,h)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,o,s){this._transitionEngine.insertNode(e,t,o,s)}onRemove(e,t,o,s){this._transitionEngine.removeNode(e,t,s||!1,o)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,o,s){if("@"==o.charAt(0)){const[l,u]=R5(o);this._timelineEngine.command(l,t,u,s)}else this._transitionEngine.trigger(e,t,o,s)}listen(e,t,o,s,l){if("@"==o.charAt(0)){const[u,h]=R5(o);return this._timelineEngine.listen(u,t,h,l)}return this._transitionEngine.listen(e,t,o,s,l)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let rj=(()=>{class n{constructor(t,o,s){this._element=t,this._startStyles=o,this._endStyles=s,this._state=0;let l=n.initialStylesByElement.get(t);l||n.initialStylesByElement.set(t,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&js(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(js(this._element,this._initialStyles),this._endStyles&&(js(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Pc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pc(this._element,this._endStyles),this._endStyles=null),js(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function $m(n){let e=null;return n.forEach((t,o)=>{(function oj(n){return"display"===n||"position"===n})(o)&&(e=e||new Map,e.set(o,t))}),e}class dT{constructor(e,t,o,s){this.element=e,this.keyframes=t,this.options=o,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(o=>{t.push(Object.fromEntries(o))}),t}_triggerWebAnimation(e,t,o){return e.animate(this._convertKeyframesToObject(t),o)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((o,s)=>{"offset"!==s&&e.set(s,this._finished?o:Z5(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class ij{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return j5(e,t)}getParentElement(e){return Om(e)}query(e,t,o){return G5(e,t,o)}computeStyle(e,t,o){return window.getComputedStyle(e)[t]}animate(e,t,o,s,l,u=[]){const A={duration:o,delay:s,fill:0==s?"both":"forwards"};l&&(A.easing=l);const y=new Map,D=u.filter(ce=>ce instanceof dT);(function lU(n,e){return 0===n||0===e})(o,s)&&D.forEach(ce=>{ce.currentSnapshot.forEach((ye,Be)=>y.set(Be,ye))});let U=function iU(n){return n.length?n[0]instanceof Map?n:n.map(e=>V5(e)):[]}(t).map(ce=>Ja(ce));U=function uU(n,e,t){if(t.size&&e.length){let o=e[0],s=[];if(t.forEach((l,u)=>{o.has(u)||s.push(u),o.set(u,l)}),s.length)for(let l=1;lu.set(h,Z5(n,h)))}}return e}(e,U,y);const q=function nj(n,e){let t=null,o=null;return Array.isArray(e)&&e.length?(t=$m(e[0]),e.length>1&&(o=$m(e[e.length-1]))):e instanceof Map&&(t=$m(e)),t||o?new rj(n,t,o):null}(e,U);return new dT(e,U,A,q)}}let sj=(()=>{class n extends M5{constructor(t,o){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(o.body,{id:"0",encapsulation:ss.None,styles:[],data:{animation:[]}})}build(t){const o=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?O5(t):t;return fT(this._renderer,null,o,"register",[s]),new aj(o,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(mt(Gu),mt(oi))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();class aj extends AL{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new cj(this._id,e,t||{},this._renderer)}}class cj{constructor(e,t,o,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",o)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return fT(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function fT(n,e,t,o,s){return n.setProperty(e,`@@${t}:${o}`,s)}const hT="@.disabled";let lj=(()=>{class n{constructor(t,o,s){this.delegate=t,this.engine=o,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),o.onRemovalComplete=(l,u)=>{const h=u?.parentNode(l);h&&u.removeChild(h,l)}}createRenderer(t,o){const l=this.delegate.createRenderer(t,o);if(!(t&&o&&o.data&&o.data.animation)){let D=this._rendererCache.get(l);return D||(D=new pT("",l,this.engine,()=>this._rendererCache.delete(l)),this._rendererCache.set(l,D)),D}const u=o.id,h=o.id+"-"+this._currentId;this._currentId++,this.engine.register(h,t);const A=D=>{Array.isArray(D)?D.forEach(A):this.engine.registerTrigger(u,h,t,D.name,D)};return o.data.animation.forEach(A),new uj(this,h,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,o,s){t>=0&&to(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[u,h]=l;u(h)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([o,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(mt(Gu),mt(s0),mt(uo))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();class pT{constructor(e,t,o,s){this.namespaceId=e,this.delegate=t,this.engine=o,this._onDestroy=s,this.destroyNode=this.delegate.destroyNode?l=>t.destroyNode(l):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,o,s=!0){this.delegate.insertBefore(e,t,o),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,o){this.engine.onRemove(this.namespaceId,t,this.delegate,o)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,o,s){this.delegate.setAttribute(e,t,o,s)}removeAttribute(e,t,o){this.delegate.removeAttribute(e,t,o)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,o,s){this.delegate.setStyle(e,t,o,s)}removeStyle(e,t,o){this.delegate.removeStyle(e,t,o)}setProperty(e,t,o){"@"==t.charAt(0)&&t==hT?this.disableAnimations(e,!!o):this.delegate.setProperty(e,t,o)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,o){return this.delegate.listen(e,t,o)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class uj extends pT{constructor(e,t,o,s,l){super(t,o,s,l),this.factory=e,this.namespaceId=t}setProperty(e,t,o){"@"==t.charAt(0)?"."==t.charAt(1)&&t==hT?this.disableAnimations(e,o=void 0===o||!!o):this.engine.process(this.namespaceId,e,t.slice(1),o):this.delegate.setProperty(e,t,o)}listen(e,t,o){if("@"==t.charAt(0)){const s=function dj(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let l=t.slice(1),u="";return"@"!=l.charAt(0)&&([l,u]=function fj(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(l)),this.engine.listen(this.namespaceId,s,l,u,h=>{this.factory.scheduleListenerCallback(h._data||-1,o,h)})}return this.delegate.listen(e,t,o)}}let hj=(()=>{class n extends s0{constructor(t,o,s,l){super(t.body,o,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(mt(oi),mt(Sm),mt(Hm),mt(As))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const AT=[{provide:M5,useClass:sj},{provide:Hm,useFactory:function pj(){return new BU}},{provide:s0,useClass:hj},{provide:Gu,useFactory:function Aj(n,e,t){return new lj(n,e,t)},deps:[dh,s0,uo]}],Zm=[{provide:Sm,useFactory:()=>new ij},{provide:Jw,useValue:"BrowserAnimations"},...AT],gT=[{provide:Sm,useClass:Q5},{provide:Jw,useValue:"NoopAnimations"},...AT];let gj=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?gT:Zm}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({providers:Zm,imports:[kg]}),n})();const c0=["elButtonWrapper"],l0=["elButton"],u0=function(n,e,t,o,s,l,u,h,A,y){return{"":n,"ed-btn-success":e,"ed-btn-info":t,"ed-btn-warning":o,"ed-btn-danger":s,"ed-btn-dark":l,"ed-btn-light":u,"ed-btn-primary":h,"ed-btn-secondary":A,"ed-btn-link":y}},ua=function(n){return{"text-align":n}},d0=function(n){return{closeDelay:n}},f0=function(n,e){return{value:n,params:e}},h0=function(n,e,t,o,s){return{"standard-dialog":n,"success-dialog":e,"info-dialog":t,"warning-dialog":o,"danger-dialog":s}},Ej=["elDialogWrapper"];function Mj(n,e){}function xj(n,e){1&n&&fA(0)}function Oj(n,e){}function Sj(n,e){}function Bj(n,e){if(1&n){const t=or();K(0,"button",16,17),xe("click",function(){const l=vn(t).$implicit;return In(st(2).onCustomButton(l))}),me(2),te()}if(2&n){const t=e.$implicit;ae("ngClass",n3(2,u0,[!!t.LayoutType&&0===t.LayoutType,!!t.LayoutType&&1===t.LayoutType,!!t.LayoutType&&2===t.LayoutType,!!t.LayoutType&&3===t.LayoutType,!!t.LayoutType&&4===t.LayoutType,!!t.LayoutType&&5===t.LayoutType,!!t.LayoutType&&6===t.LayoutType,!!t.LayoutType&&7===t.LayoutType,!!t.LayoutType&&8===t.LayoutType,!!t.LayoutType&&9===t.LayoutType])),se(2),gn(" ",t.Label," ")}}function Nj(n,e){if(1&n&&(K(0,"div",14),pt(1,Bj,3,13,"button",15),te()),2&n){const t=st();ae("ngStyle",jo(2,ua,t.dialogBelonging.DialogCoreConfig.ButtonPosition)),se(1),ae("ngForOf",t.dialogBelonging.Buttons)}}const Pj=function(){return{maxWidth:"100%",maxHeight:"100%",height:"100%",width:"100%",borderRadius:"0"}},Rj=function(){return{width:"100%",height:"100%"}},Fj=function(n,e,t,o,s,l){return{width:n,minWidth:e,maxWidth:t,height:o,minHeight:s,maxHeight:l}};class da{}var fa=(()=>(function(n){n[n.NONE=0]="NONE",n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER"}(fa||(fa={})),fa))(),Xa=(()=>(function(n){n[n.NONE=0]="NONE",n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER",n[n.DARK=5]="DARK",n[n.LIGHT=6]="LIGHT",n[n.PRIMARY=7]="PRIMARY",n[n.SECONDARY=8]="SECONDARY",n[n.LINK=9]="LINK"}(Xa||(Xa={})),Xa))(),Q3=(()=>(function(n){n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER",n[n.DARK=5]="DARK",n[n.LIGHT=6]="LIGHT",n[n.PRIMARY=7]="PRIMARY",n[n.SECONDARY=8]="SECONDARY"}(Q3||(Q3={})),Q3))(),Hl=(()=>(function(n){n[n.NONE=0]="NONE",n.BOUNCE_IN="bounceIn",n.SWING="swing",n.ZOOM_IN="zoomIn",n.ZOOM_IN_ROTATE="zoomInRotate",n.ELASTIC="elastic",n.JELLO="jello",n.FADE_IN="fadeIn",n.SLIDE_IN_UP="slideInUp",n.SLIDE_IN_DOWN="slideInDown",n.SLIDE_IN_LEFT="slideInLeft",n.SLIDE_IN_RIGHT="slideInRight"}(Hl||(Hl={})),Hl))(),zl=(()=>(function(n){n[n.NONE=0]="NONE",n.ZOOM_OUT_WIND="zoomOutWind",n.BOUNCE_OUT="bounceOut",n.FLIP_OUT="flipOutY",n.ZOOM_OUT="zoomOut",n.ZOOM_OUT_ROTATE="zoomOutRotate",n.SLIDE_OUT_UP="slideOutUp",n.SLIDE_OUT_DOWN="slideOutDown",n.SLIDE_OUT_LEFT="slideOutLeft",n.SLIDE_OUT_RIGHT="slideOutRight"}(zl||(zl={})),zl))();let Vl=(()=>{class n{constructor(t){this.userGlobalConfig=t,this.productionGlobalConfig=new wT,this.authorGlobalConfig=new wT,this.userGeneratedConfig=new dG(t),this.authorGlobalConfig.DisplayColor.Primary=null,this.authorGlobalConfig.DisplayColor.Secondary=null,this.authorGlobalConfig.DisplayColor.Success=null,this.authorGlobalConfig.DisplayColor.Info=null,this.authorGlobalConfig.DisplayColor.Warning=null,this.authorGlobalConfig.DisplayColor.Danger=null,this.authorGlobalConfig.DisplayColor.Light=null,this.authorGlobalConfig.DisplayColor.Dark=null,this.productionGlobalConfig.DisplayColor=this.authorGlobalConfig.DisplayColor,this.setUserColors(this.userGeneratedConfig.ColorList),this.setNodeStyles(this.productionGlobalConfig.DisplayColor)}resetStyles(){this.setUserColors(this.userGeneratedConfig.ColorList),this.setNodeStyles(this.productionGlobalConfig.DisplayColor,!0)}setNodeStyles(t,o=!1){if(o){let s=document.getElementById("ngx-awesome-popup-glob-styles");s&&s.remove()}this.setToastStyles(),Object.keys(t).forEach(s=>{t[s]&&(this.setButtonStyling(s,t[s]),this.setIconStyling(s,t[s]),this.setToastStyling(s,t[s]),this.setDialogFrame(s,t[s]),Q3[s.toUpperCase()]===Q3.PRIMARY&&this.getSheet("ngx-awesome-popup-styles").addRule(".ngx-awesome-popup-overlay",`background: ${t[s].TransparentDarkenVariance}!important;`))})}setUserColors(t){if("object"!=typeof t)return;const o=Object.keys(t),s=Object.keys(this.productionGlobalConfig.DisplayColor);o.forEach(l=>{if(s.find(u=>u===l))if(t[l]){const u=new hG(t[l]);u.Base&&(this.productionGlobalConfig.DisplayColor[l]=u)}else this.productionGlobalConfig.DisplayColor[l]=null})}getSheet(t){let o=document.getElementById(t);if(!o){const s=document.head||document.getElementsByTagName("head")[0];if(!s)return;o=document.createElement("style"),o.setAttribute("id",t),o.appendChild(document.createTextNode("")),s.appendChild(o)}return o?o.sheet:null}setToastStyling(t,o){const s=`.toast-wrapper.standard-toast .evolve-toast.${t.toLowerCase()}-dialog`,l=`\n background: ${o.BrightShade}!important;\n border-color: ${o.Brighten}!important;\n `,u=`.toast-wrapper.simple-toast .evolve-toast.${t.toLowerCase()}-dialog`,h=`\n background: ${o.BrightWarmly}!important;\n color: ${o.Darken}!important;\n `,A=`.toast-wrapper .evolve-toast.${t.toLowerCase()}-dialog .progress-bar`,y=`\n background-color: ${o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(A,y),this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l),this.getSheet("ngx-awesome-popup-glob-styles").addRule(u,h)}setButtonStyling(t,o){const s=`.ed-btn-${t.toLowerCase()}`,l=`\n color: ${o.ContrastColor}!important;\n background: ${o.Base}!important;\n border-color: ${o.BrightenForShade}!important;\n `,u=`.ed-btn-${t.toLowerCase()}:hover`,h=`\n background: ${o.IsBaseBright?o.DarkenForShade:o.BrightenForShade}!important;\n border-color: ${o.IsBaseBright?o.Darken:o.Brighten}!important;\n `,A=`.ed-btn-${t.toLowerCase()}:focus, .ed-btn-${t.toLowerCase()}:active`,y=`\n box-shadow: 0 0 1px 2px ${o.IsBaseBright?o.Darken:o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l),this.getSheet("ngx-awesome-popup-glob-styles").addRule(u,h),this.getSheet("ngx-awesome-popup-glob-styles").addRule(A,y)}setIconStyling(t,o){const s=`.ap-icon-${t.toLowerCase()}`,l=`color: ${o.BrightenForShade}!important;`;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l)}setDialogFrame(t,o){const s=`.ngx-awesome-popup-overlay .${t.toLowerCase()}-dialog`,l=`\n border-color: ${o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l)}setToastStyles(){this.getSheet("ngx-awesome-popup-styles").addRule(".toast-entity","all 0.5s ease;"),this.getSheet("ngx-awesome-popup-styles").addRule(".toast-entity:first-child","animation: move 0.7s ease-out;"),/msie\s|trident\//i.test(window.navigator.userAgent)||(this.getSheet("ngx-awesome-popup-styles").addRule("@-webkit-keyframes move","\n 0% {margin-top: -5px; opacity: 0.4;}\n 30% {margin-top: -4px; opacity: 0.7;}\n 100% {margin-top: 0px; opacity: 1;}\n "),this.getSheet("ngx-awesome-popup-styles").addRule("@keyframes move","\n 0% {margin-top: -5px; opacity: 0.4;}\n 30% {margin-top: -4px; opacity: 0.7;}\n 100% {margin-top: 0px; opacity: 1;}\n "))}}return n.\u0275fac=function(t){return new(t||n)(mt("cdGlobalConfig"))},n.\u0275prov=et({factory:function(){return new n(mt("cdGlobalConfig"))},token:n,providedIn:"root"}),n})();class uG{constructor(){this.Width=null,this.MinWidth=null,this.MaxWidth=null,this.Height=null,this.MinHeight=null,this.MaxHeight=null,this.FullScreen=null}}class p0{constructor(e,t,o=Xa.PRIMARY){this.Label=e,this.ID=t,this.LayoutType=o}}class dG{constructor(e){if(this.ColorList=new _T,e){const t=new si;t.copyValuesFrom(e,this);const o=new _T;this.ColorList=t.copyValuesFrom(this.ColorList,o)}}}class _T{constructor(){this.Primary=null,this.Secondary=null,this.Success=null,this.Info=null,this.Warning=null,this.Danger=null,this.Light=null,this.Dark=null}}class wT{constructor(){this.DisplayColor=new fG}}class fG{constructor(){this.Primary=null,this.Secondary=null,this.Success=null,this.Info=null,this.Warning=null,this.Danger=null,this.Light=null,this.Dark=null}}class hG{constructor(e){if(this.Base=null,this.Brighten=null,this.BrightenForShade=null,this.Darken=null,this.DarkenForShade=null,this.ContrastColor=null,this.TransparentDarkenVariance=null,this.BrightShade=null,this.BrightWarmly=null,this.IsBaseBright=null,this.Base=this.isColor(e)){this.Brighten=this.brightness(this.Base,"brighten",25),this.BrightenForShade=this.brightness(this.Base,"brighten",10),this.Darken=this.brightness(this.Base,"darken",20),this.DarkenForShade=this.brightness(this.Base,"darken",10);const t=Math.floor(100*this.luminance(this.Base)),o=t>50?5:t>40?10:t>20?15:t,s=t>55?65:t>45?60:t>20?55:t>10?45:80;this.BrightShade=this.brightness(this.brightness(this.Base,"darken",o),"brighten",s),this.BrightWarmly=this.brightness(this.brightness(this.saturate(this.Base),"darken",o-10),"brighten",s-5),this.TransparentDarkenVariance=this.brightness(this.transparentize(this.Base,80),"darken",40),this.isBright(this.Base)?(this.ContrastColor="rgba(58,65,71,0.5)",this.IsBaseBright=!0):(this.ContrastColor="rgb(255,255,255, 0.7)",this.IsBaseBright=!1)}}saturate(e){const t=this.getRGBArray(e),o=55*this.getLightnessOfRGB(e),[s,l,u]=this.getLowMidHi(t);if(s.val===u.val)return e;const h=Math.round(Math.min(255-o,o)),A=Math.min(255-u.val,s.val),y=Math.min(h/10,A),D=(o-l.val)/(o-u.val)+.07,U=[];return U[u.index]=Math.round(u.val+y),U[s.index]=Math.round(s.val-y),U[l.index]=Math.round(o+(U[u.index]-o)*D+5),`rgb(${[U].join()})`}brightness(e,t,o){const s=this.getRGBArray(e),[l,u,h]=this.getLowMidHi(s);if("brighten"===t&&255===l.val||"darken"===t&&0===h.val)return e;const A=o/100*255;let y=[];if("brighten"===t){y[l.index]=Math.round(l.val+Math.min(255-l.val,A));const D=(y[l.index]-l.val)/(255-l.val);y[u.index]=u.val+(255-u.val)*D,y[h.index]=h.val+(255-h.val)*D}if("darken"===t){y[h.index]=h.val-Math.min(h.val,A);const D=(h.val-y[h.index])/h.val;y[u.index]=u.val-u.val*D,y[l.index]=l.val-l.val*D}return y=y.map(D=>Math.round(D)),s.length>3?(y.push(s[3]),`rgba(${y.join()})`):`rgb(${y.join()})`}getLightnessOfRGB(e){const t=this.getRGBArray(e);return(Math.max(...t)+Math.min(...t))/2/255}isBright(e){return this.contrast(this.luminance(e))}getLowMidHi(e){const t=e.slice(),o=e.length>3?t.reverse().slice(1).reverse():e;let s={val:-1,index:-1},l={val:1/0,index:-1};o.map((A,y)=>{A>s.val&&(s={val:A,index:y}),A+t)}luminance(e){const o=this.getRGBArray(e).map(s=>(s/=255)<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4));return.2126*o[0]+.7152*o[1]+.0722*o[2]}transparentize(e,t){const o=this.Base.replace(/^(rgb|rgba)\(/,"").replace(/\)$/,"").replace(/\s/g,"").split(",").map(l=>+l);return o.length>3&&o.pop(),o.push((100-t)/100),`rgb(${o.join()})`}}class si{copyValuesFrom(e,t){if("object"!=typeof e)return t;const o=Object.keys(e),s=Object.keys(t);return o.forEach(l=>{if(s.find(u=>u===l||u==="_"+l))if(l.includes("Date")){const u=Date.parse(e[l]);u?t[l]=new Date(u):null!==e[l]&&(t[l]=e[l])}else null!==e[l]&&(t[l]=e[l])}),t}}class t1{constructor(e,t){this.ParentInjector=e,this.AdditionalTokens=t}get(e,t,o){return this.AdditionalTokens.get(e)||this.ParentInjector.get(e,t)}}const AG=[dt({transform:"scale3d(0.7, 0.7, 0.7)",offset:0,opacity:0}),dt({transform:"scale3d(1.3, 1.3, 1.3)",offset:.3,opacity:.3}),dt({transform:"scale3d(0.95, 0.95, 0.95)",offset:.6,opacity:1}),dt({transform:"scale3d(1.03, 1.03, 1.03)",opacity:1,offset:.8}),dt({transform:"transform: scale3d(0.97, 0.97, 0.97)",offset:.9}),dt({transform:"scale3d(1, 1, 1)",offset:1,opacity:1})],gG=[dt({offset:0,opacity:0}),dt({transform:"rotate3d(0, 0, 1, 10deg)",offset:.2}),dt({transform:"rotate3d(0, 0, 1, -7deg)",offset:.3,opacity:1}),dt({transform:"rotate3d(0, 0, 1, 3deg)",offset:.55}),dt({transform:"rotate3d(0, 0, 1, -3deg)",offset:.8}),dt({transform:"none",offset:1})],mG=[dt({transform:"scale3d(0.3, 0.3, 0.3)",offset:0}),dt({offset:.1,opacity:1}),dt({transform:"scale3d(1, 1, 1)",offset:1})],yG=[dt({transform:"scale(0.1) rotate(30deg)",offset:0,opacity:0}),dt({transform:"rotate(-10deg)",offset:.5,opacity:1}),dt({transform:"rotate(3deg)",offset:.7}),dt({transform:"scale(1)",offset:1})],bG=[dt({transform:"scale3d(1, 1, 1)",offset:0,opacity:0}),dt({transform:"scale3d(1.25, 0.75, 1)",offset:.3}),dt({transform:"scale3d(0.75, 1.25, 1)",offset:.4,opacity:1}),dt({transform:"scale3d(1.15, 0.85, 1)",offset:.5}),dt({transform:"scale3d(0.95, 1.05, 1)",offset:.6}),dt({transform:"scale3d(1.05, 0.95, 1)",offset:.7}),dt({transform:"scale3d(1, 1, 1)",offset:1})],_G=[dt({offset:0,opacity:0}),dt({transform:"skewX(-12.5deg) skewY(-12.5deg)",offset:.111}),dt({transform:"skewX(6.25deg) skewY(6.25deg)",offset:.222}),dt({transform:"skewX(-3.125deg) skewY(-3.125deg)",offset:.333,opacity:1}),dt({transform:"skewX(1.5625deg) skewY(1.5625deg)",offset:.444}),dt({transform:"skewX(-0.78125deg) skewY(-0.78125deg)",offset:.555}),dt({transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.666}),dt({transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.777}),dt({transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)",offset:.888}),dt({transform:"none",offset:1})],wG=[dt({offset:0,opacity:0}),dt({offset:1,opacity:1})],vG=[dt({offset:0,opacity:0,transform:"translate3d(0, 100%, 0)"}),dt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],IG=[dt({offset:0,opacity:0,transform:"translate3d(0, -100%, 0)"}),dt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],CG=[dt({offset:0,opacity:0,transform:"translate3d(-100%, 0, 0)"}),dt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],TG=[dt({offset:0,opacity:0,transform:"translate3d(100%, 0, 0)"}),dt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],kG=[dt({transform:"scale3d(.475, .475, .475) translate3d(-42px, 0, 0)",offset:.4}),dt({transform:"scale(.1) translate3d(400px, 0, 0)","transform-origin":"top center",offset:1,opacity:0})],DG=[dt({transform:"scale3d(1.3, 1.3, 1.3)",offset:.3}),dt({transform:"scale3d(0.9, 0.9, 0.9)",offset:.5}),dt({transform:"scale3d(0.3, 0.3, 0.3)",opacity:0,offset:1})],EG=[dt({transform:"perspective(400px)",offset:0}),dt({transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:1,offset:.33}),dt({transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:0,offset:.9})],MG=[dt({opacity:1,offset:0}),dt({offset:.5,transform:"scale3d(0.3, 0.3, 0.3)",opacity:0}),dt({offset:1,opacity:0})],xG=[dt({opacity:1,offset:0}),dt({offset:.9,transform:"rotate(200deg) scale(0.1)",opacity:0})],OG=[dt({transform:"translate3d(0, 0, 0)",offset:0}),dt({transform:"translate3d(0, -100%, 0)",opacity:0,offset:1})],SG=[dt({transform:"translate3d(0, 0, 0)",offset:0}),dt({transform:"translate3d(0, 100%, 0)",opacity:0,offset:1})],BG=[dt({transform:"translate3d(0, 0, 0)",offset:0}),dt({transform:"translate3d(-100%, 0, 0)",opacity:0,offset:1})],NG=[dt({transform:"translate3d(0, 0, 0)",offset:0}),dt({transform:"translate3d(100%, 0, 0)",opacity:0,offset:1})],PG=[dt({transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)",offset:.15}),dt({transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)",offset:.3}),dt({transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)",offset:.45}),dt({transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)",offset:.6}),dt({transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)",offset:.75}),dt({transform:"none",offset:1})];let jG=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Yn({type:n,selectors:[["ed-default-loader"]],decls:7,vars:0,consts:[[1,"box-position"],[1,"loader-center"],[1,"lds-ring"]],template:function(t,o){1&t&&(K(0,"div",0)(1,"div",1)(2,"div",2),Co(3,"div")(4,"div")(5,"div")(6,"div"),te()()())},styles:[".box-position[_ngcontent-%COMP%]{height:auto;left:50%;margin:0 auto;position:absolute;text-align:center;top:44%;transform:translate(-50%,-40%)}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%]{display:inline-block;height:80px;position:relative;width:80px}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border:8px solid;border-color:#d4d4d4 transparent transparent transparent;border-radius:50%;box-sizing:border-box;display:block;height:64px;margin:8px;position:absolute;width:64px}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})(),ET=(()=>{class n{constructor(t={}){this.userConfig=t,this.authorConfig=new z3,this.productionConfig=new z3;const o=new z3,s=new si;s.copyValuesFrom(t.DialogCoreConfig,o.DialogCoreConfig),t.DialogCoreConfig=o.DialogCoreConfig,null!==t.DialogCoreConfig.LoaderComponent&&(t.DialogCoreConfig.DisplayLoader=null===t.DialogCoreConfig.DisplayLoader),this.authorConfig.DialogCoreConfig.Width="auto",this.authorConfig.DialogCoreConfig.Height="auto",this.authorConfig.DialogCoreConfig.HideScrollbar=!1,this.authorConfig.DialogCoreConfig.EscapeKeyClose=!1,this.authorConfig.DialogCoreConfig.ButtonPosition="right",this.authorConfig.DialogCoreConfig.DisplayLoader=!1,this.authorConfig.DialogCoreConfig.FullScreen=!1,this.authorConfig.DialogCoreConfig.LayoutType=fa.NONE,this.authorConfig.DialogCoreConfig.LoaderComponent=jG,this.authorConfig.DialogCoreConfig.AnimationIn=Hl.ZOOM_IN,this.authorConfig.DialogCoreConfig.AnimationOut=zl.ZOOM_OUT,this.authorConfig.DialogCoreConfig.CustomStyles=new NT,s.copyValuesFrom(this.authorConfig.DialogCoreConfig,this.productionConfig.DialogCoreConfig),s.copyValuesFrom(t.DialogCoreConfig,this.productionConfig.DialogCoreConfig)}}return n.\u0275fac=function(t){return new(t||n)(mt("dialogConfig"))},n.\u0275prov=et({factory:function(){return new n(mt("dialogConfig"))},token:n,providedIn:"root"}),n})(),MT=(()=>{class n{constructor(t){this.viewContainerRef=t}}return n.\u0275fac=function(t){return new(t||n)(ke(Ri))},n.\u0275dir=Tn({type:n,selectors:[["","appInsertionLoader",""]]}),n})(),xT=(()=>{class n{constructor(t){this.viewContainerRef=t}}return n.\u0275fac=function(t){return new(t||n)(ke(Ri))},n.\u0275dir=Tn({type:n,selectors:[["","appInsertion",""]]}),n})(),GG=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.componentFactoryResolver=o,this.cd=s,this.fadeInOutAnimation="open",this.showLoader=!0,setTimeout(()=>{this.boxAnimation=this.dialogBelonging.DialogCoreConfig.AnimationIn},1)}ngAfterViewInit(){this.hideScrollbar(),this.loadChildComponent(this.childComponentType),this.loadLoaderComponent(this.dialogBelonging.DialogCoreConfig.LoaderComponent),this.setDefaultResponse(),this.cd.detectChanges(),this.setCustomStyles()}hideScrollbar(){this.dialogBelonging.DialogCoreConfig.HideScrollbar&&(this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}revertScrollbarSettings(){this.dialogBelonging.DialogCoreConfig.HideScrollbar&&(document.body.style.overflow=this.bodyOverflow)}setDefaultResponse(){const t=new QG;t.setBelonging(this.dialogBelonging),this.dialogBelonging.EventsController.setDefaultResponse(t)}ngOnDestroy(){this.revertScrollbarSettings(),this.childComponentRef&&this.childComponentRef.destroy(),this.loaderComponentRef&&this.loaderComponentRef.destroy()}hideScroller(){}loadChildComponent(t){const o=this.componentFactoryResolver.resolveComponentFactory(t),s=this.insertionPoint.viewContainerRef;s.clear(),this.childComponentRef=s.createComponent(o),this.childComponentRef.instance.dialogBelonging=this.dialogBelonging}loadLoaderComponent(t){const o=this.componentFactoryResolver.resolveComponentFactory(t),s=this.loaderInsertionPoint.viewContainerRef;s.clear(),this.loaderComponentRef=s.createComponent(o)}close(){this.dialogBelonging.EventsController.close()}closeParent$(){this.boxAnimation=this.dialogBelonging.DialogCoreConfig.AnimationOut;const t=this.dialogBelonging.DialogCoreConfig.AnimationOut?800:200;return this.fadeInOutAnimation="close-fast",new de(o=>{o.next(""),o.complete()}).pipe(function Im(n,e=dL){const o=function fL(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return s=>s.lift(new hL(o,e))}(t))}onOverlayClicked(t){}onCustomButton(t){this.dialogBelonging.EventsController.onButtonClick(t)}closeLoader(){this.showLoader=!1}setCustomStyles(){this.dialogBelonging.DialogCoreConfig.CustomStyles.WrapperCSS&&this.elDialogWrapper&&(this.elDialogWrapper.nativeElement.style.cssText+=this.dialogBelonging.DialogCoreConfig.CustomStyles.WrapperCSS),this.dialogBelonging.DialogCoreConfig.CustomStyles.ButtonSectionCSS&&this.elButtonWrapper&&(this.elButtonWrapper.nativeElement.style.cssText+=this.dialogBelonging.DialogCoreConfig.CustomStyles.ButtonSectionCSS),this.dialogBelonging.DialogCoreConfig.CustomStyles.ButtonCSS&&this.elButton&&this.elButton.forEach(t=>{t.nativeElement.style.cssText+=this.dialogBelonging.DialogCoreConfig.CustomStyles.ButtonCSS})}keyEvent(t){"Escape"===t.key&&this.close()}}return n.\u0275fac=function(t){return new(t||n)(ke("dialogBelonging"),ke(zi),ke(Ua))},n.\u0275cmp=Yn({type:n,selectors:[["dialog-popup-wrapper"]],viewQuery:function(t,o){if(1&t&&(Bo(Ej,5),Bo(c0,5),Bo(xT,7),Bo(MT,7),Bo(l0,5)),2&t){let s;To(s=ko())&&(o.elDialogWrapper=s.first),To(s=ko())&&(o.elButtonWrapper=s.first),To(s=ko())&&(o.insertionPoint=s.first),To(s=ko())&&(o.loaderInsertionPoint=s.first),To(s=ko())&&(o.elButton=s)}},hostBindings:function(t,o){1&t&&xe("keyup",function(l){return o.keyEvent(l)},0,Gb)},decls:15,vars:31,consts:[[1,"ngx-awesome-popup-overlay",3,"dblclick"],[1,"evolve-parent-dialog",3,"ngStyle","ngClass"],["elDialogWrapper",""],[1,"loader-holder",3,"ngClass"],[1,"dialog-loader"],["appInsertionLoader",""],[4,"ngIf","ngIfElse"],["fullScreen",""],[1,"content-holder",3,"ngStyle"],[1,"component-content",3,"ngClass"],["appInsertion",""],[1,"button-holder"],["elButtonWrapper",""],["class","button-section",3,"ngStyle",4,"ngIf"],[1,"button-section",3,"ngStyle"],["class","ed-btn ed-btn-lg",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"ed-btn","ed-btn-lg",3,"ngClass","click"],["elButton",""]],template:function(t,o){if(1&t&&(K(0,"div",0),xe("dblclick",function(l){return o.onOverlayClicked(l)}),K(1,"div",1,2)(3,"div",3)(4,"div",4),pt(5,Mj,0,0,"ng-template",5),te()(),pt(6,xj,1,0,"ng-container",6),pt(7,Oj,0,0,"ng-template",null,7,Mw),K(9,"div",8)(10,"div",9),pt(11,Sj,0,0,"ng-template",10),te()(),K(12,"div",11,12),pt(14,Nj,2,4,"div",13),te()()()),2&t){const s=function R_(n){return $c(function d8(){return Rn.lFrame.contextLView}(),22+n)}(8);ae("@fadeInOut",t3(13,f0,o.fadeInOutAnimation,jo(11,d0,0===o.dialogBelonging.DialogCoreConfig.AnimationOut?"200ms":"300ms"))),se(1),ae("@.disabled",0===o.dialogBelonging.DialogCoreConfig.AnimationIn&&0===o.dialogBelonging.DialogCoreConfig.AnimationOut)("@boxAnimations",o.boxAnimation)("ngStyle",o.dialogBelonging.DialogCoreConfig.FullScreen&&DA(16,Pj))("ngClass",function hs(n,e,t,o,s,l,u,h){const A=fi()+n,y=ct(),D=Vi(y,A,t,o,s,l);return ri(y,A+4,u)||D?Os(y,A+5,h?e.call(h,t,o,s,l,u):e(t,o,s,l,u)):Ku(y,A+5)}(17,h0,0===o.dialogBelonging.DialogCoreConfig.LayoutType,1===o.dialogBelonging.DialogCoreConfig.LayoutType,2===o.dialogBelonging.DialogCoreConfig.LayoutType,3===o.dialogBelonging.DialogCoreConfig.LayoutType,4===o.dialogBelonging.DialogCoreConfig.LayoutType)),se(2),ae("ngClass",o.dialogBelonging.DialogCoreConfig.DisplayLoader?o.showLoader?"dialog-loader-active":"dialog-loader-gone":"dialog-loader-off"),se(3),ae("ngIf",!o.dialogBelonging.DialogCoreConfig.FullScreen)("ngIfElse",s),se(3),ae("ngStyle",o.dialogBelonging.DialogCoreConfig.FullScreen?DA(23,Rj):function pw(n,e,t,o,s,l,u,h,A){const y=fi()+n,D=ct(),U=Vi(D,y,t,o,s,l);return bc(D,y+4,u,h)||U?Os(D,y+6,A?e.call(A,t,o,s,l,u,h):e(t,o,s,l,u,h)):Ku(D,y+6)}(24,Fj,o.dialogBelonging.DialogCoreConfig.Width,o.dialogBelonging.DialogCoreConfig.MinWidth,o.dialogBelonging.DialogCoreConfig.MaxWidth,o.dialogBelonging.DialogCoreConfig.Height,o.dialogBelonging.DialogCoreConfig.MinHeight,o.dialogBelonging.DialogCoreConfig.MaxHeight)),se(1),ae("ngClass",o.dialogBelonging.DialogCoreConfig.DisplayLoader?o.showLoader?"component-content-preparing":"component-content-ready":"component-content-loader-off"),se(4),ae("ngIf",o.dialogBelonging.Buttons.length>0)}},dependencies:[u3,pr,Wi,d3,xT,MT],styles:['.ed-btn-sm[_ngcontent-%COMP%]{font-size:12px;font-weight:normal;margin-right:3px;min-width:40px;padding:2px 8px}.ed-btn-md[_ngcontent-%COMP%]{font-size:14px;margin-right:5px;min-width:60px;padding:3px 10px}.ed-btn-lg[_ngcontent-%COMP%]{font-size:16px;margin-right:5px;min-width:70px;padding:4px 10px}.ed-btn[_ngcontent-%COMP%]{background-color:transparent;border:none;border-radius:3px;cursor:pointer;display:inline-block;line-height:1.5;text-align:center;text-decoration:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.ed-btn[_ngcontent-%COMP%]:hover{color:#989ea5}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn[_ngcontent-%COMP%], .ed-btn[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px;outline:0}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn[_ngcontent-%COMP%], .ed-btn[_ngcontent-%COMP%]:active, .ed-btn.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn[_ngcontent-%COMP%]:focus, .ed-btn[_ngcontent-%COMP%]:active:focus, .ed-btn.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px}.ed-btn[_ngcontent-%COMP%]:disabled, .ed-btn.disabled[_ngcontent-%COMP%], fieldset[_ngcontent-%COMP%]:disabled .ed-btn[_ngcontent-%COMP%]{box-shadow:none;opacity:.6;pointer-events:none}.ed-btn-primary[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#ff9e00;border-color:#ff9e00}.ed-btn-primary[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#ffa81a;background:#ffb133}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-primary[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #ffa81a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-primary[_ngcontent-%COMP%]:active, .ed-btn-primary.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #ffa81a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-primary[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-primary[_ngcontent-%COMP%]:focus, .ed-btn-primary[_ngcontent-%COMP%]:active:focus, .ed-btn-primary.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #ffa81a}.ed-btn-secondary[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#989ea5;border-color:#989ea5}.ed-btn-secondary[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#a6abb1;background:#b3b8bd}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-secondary[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #a6abb1}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-secondary[_ngcontent-%COMP%]:active, .ed-btn-secondary.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #a6abb1}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-secondary[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-secondary[_ngcontent-%COMP%]:focus, .ed-btn-secondary[_ngcontent-%COMP%]:active:focus, .ed-btn-secondary.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #a6abb1}.ed-btn-success[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#3caea3;border-color:#3caea3}.ed-btn-success[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#45bfb3;background:#58c5bb}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-success[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #45bfb3}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-success[_ngcontent-%COMP%]:active, .ed-btn-success.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #45bfb3}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-success[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-success[_ngcontent-%COMP%]:focus, .ed-btn-success[_ngcontent-%COMP%]:active:focus, .ed-btn-success.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #45bfb3}.ed-btn-info[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#2f8ee5;border-color:#2f8ee5}.ed-btn-info[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#469ae8;background:#5ca7eb}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-info[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #469ae8}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-info[_ngcontent-%COMP%]:active, .ed-btn-info.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #469ae8}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-info[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-info[_ngcontent-%COMP%]:focus, .ed-btn-info[_ngcontent-%COMP%]:active:focus, .ed-btn-info.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #469ae8}.ed-btn-warning[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#ffc107;border-color:#ffc107}.ed-btn-warning[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#ffc721;background:#ffce3a}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-warning[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #ffc721}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-warning[_ngcontent-%COMP%]:active, .ed-btn-warning.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #ffc721}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-warning[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-warning[_ngcontent-%COMP%]:focus, .ed-btn-warning[_ngcontent-%COMP%]:active:focus, .ed-btn-warning.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #ffc721}.ed-btn-danger[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#e46464;border-color:#e46464}.ed-btn-danger[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#e87a7a;background:#ec8f8f}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-danger[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #e87a7a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-danger[_ngcontent-%COMP%]:active, .ed-btn-danger.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #e87a7a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-danger[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-danger[_ngcontent-%COMP%]:focus, .ed-btn-danger[_ngcontent-%COMP%]:active:focus, .ed-btn-danger.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #e87a7a}.ed-btn-light[_ngcontent-%COMP%]{color:#343a40cc;background:#fbfbfb;border-color:#fbfbfb}.ed-btn-light[_ngcontent-%COMP%]:hover{color:#343a40;border-color:#fff;background:white}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-light[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #fff}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-light[_ngcontent-%COMP%]:active, .ed-btn-light.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #fff}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-light[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-light[_ngcontent-%COMP%]:focus, .ed-btn-light[_ngcontent-%COMP%]:active:focus, .ed-btn-light.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #fff}.ed-btn-dark[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#343a40;border-color:#343a40}.ed-btn-dark[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#3f474e;background:#4b545c}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-dark[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #3f474e}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-dark[_ngcontent-%COMP%]:active, .ed-btn-dark.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #3f474e}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-dark[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-dark[_ngcontent-%COMP%]:focus, .ed-btn-dark[_ngcontent-%COMP%]:active:focus, .ed-btn-dark.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #3f474e}@font-face{font-family:"icomoon";src:url(data:font/eot;base64,CAgAAGQHAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA/2/OwAAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFbwAAALwAAABgY21hcBdW0ooAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmw5gfRwAAAXgAAAOUaGVhZBxow6wAAAUMAAAANmhoZWEHuQPJAAAFRAAAACRobXR4FEoACQAABWgAAAAgbG9jYQLuAhQAAAWIAAAAEm1heHAADABaAAAFnAAAACBuYW1lmUoJ+wAABbwAAAGGcG9zdAADAAAAAAdEAAAAIAADA0IBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkDA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpA//9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAAAAA24DbgA7AFcAAAE0Ji8BNz4BNTQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BBw4BFRQWHwEeATMyNj8BFx4BMzI2PwE+ATcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCkQYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg0IBw0FaGcFDgcHDgU0BQbdIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjATYHDQVoZwUOBwcOBTQFBgYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg2JW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAwAJAAAD9wO3AA8AJgA8AAAlNTQmKwEiBh0BFBY7ATI2JxM0JicuASsBIgYHDgEVExQWOwEyNjUDARYUBw4BIyEiJicmNDcBPgEzMhYXAkkKCG4ICgoIbggKAQoCAwMHBH4EBwMDAgkMCGoHDAgBtwkKCiIT/JITIgoKCQG3CSMUFCMJpW0HDAwHbQgLC94BBgMGAgIEBAICBwP++wYHBwYCFvzbESYRERMTEREmEQMlERUVEQAAAAIAAAAAA24DbgAkAEAAAAE0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAR4BMzI2NwE+ATUXFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAt4FBjQFDQcIDQXpgQUOBwcOBTQFBQUFzwUOBwcOBQE2BgWQIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjAhMIDgUzBQYGBeiBBQYGBTQFDgcHDgXPBQUFBQE3BQ0HXFtQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAwAAAAADbgNuAB8ALwBLAAAlNTQmKwERNCYrASIGHQEUFjsBFSMiBh0BFBYzITI2NQM1NCYrASIGHQEUFjsBMjYFFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAkkKCDcLB7cICgoINzcICgoIAQAICkkLB24ICgoIbgcLAW4jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiOlWwgKASUICgoIXAcLtwoIWwgLCwgCAFsICgoIWwgLC+ZbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAABAAAAAAAAwM5v/18PPPUACwQAAAAAANyqP3wAAAAA3Ko/fAAAAAAD9wO3AAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAP3AAEAAAAAAAAAAAAAAAAAAAAIBAAAAAAAAAAAAAAAAgAAAANuAAAEAAAJA24AAANuAAAAAAAAAAoAFAAeAKAA/AFgAcoAAAABAAAACABYAAMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==);src:url(data:font/eot;base64,CAgAAGQHAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA/2/OwAAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFbwAAALwAAABgY21hcBdW0ooAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmw5gfRwAAAXgAAAOUaGVhZBxow6wAAAUMAAAANmhoZWEHuQPJAAAFRAAAACRobXR4FEoACQAABWgAAAAgbG9jYQLuAhQAAAWIAAAAEm1heHAADABaAAAFnAAAACBuYW1lmUoJ+wAABbwAAAGGcG9zdAADAAAAAAdEAAAAIAADA0IBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkDA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpA//9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAAAAA24DbgA7AFcAAAE0Ji8BNz4BNTQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BBw4BFRQWHwEeATMyNj8BFx4BMzI2PwE+ATcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCkQYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg0IBw0FaGcFDgcHDgU0BQbdIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjATYHDQVoZwUOBwcOBTQFBgYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg2JW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAwAJAAAD9wO3AA8AJgA8AAAlNTQmKwEiBh0BFBY7ATI2JxM0JicuASsBIgYHDgEVExQWOwEyNjUDARYUBw4BIyEiJicmNDcBPgEzMhYXAkkKCG4ICgoIbggKAQoCAwMHBH4EBwMDAgkMCGoHDAgBtwkKCiIT/JITIgoKCQG3CSMUFCMJpW0HDAwHbQgLC94BBgMGAgIEBAICBwP++wYHBwYCFvzbESYRERMTEREmEQMlERUVEQAAAAIAAAAAA24DbgAkAEAAAAE0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAR4BMzI2NwE+ATUXFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAt4FBjQFDQcIDQXpgQUOBwcOBTQFBQUFzwUOBwcOBQE2BgWQIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjAhMIDgUzBQYGBeiBBQYGBTQFDgcHDgXPBQUFBQE3BQ0HXFtQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAwAAAAADbgNuAB8ALwBLAAAlNTQmKwERNCYrASIGHQEUFjsBFSMiBh0BFBYzITI2NQM1NCYrASIGHQEUFjsBMjYFFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAkkKCDcLB7cICgoINzcICgoIAQAICkkLB24ICgoIbgcLAW4jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiOlWwgKASUICgoIXAcLtwoIWwgLCwgCAFsICgoIWwgLC+ZbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAABAAAAAAAAwM5v/18PPPUACwQAAAAAANyqP3wAAAAA3Ko/fAAAAAAD9wO3AAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAP3AAEAAAAAAAAAAAAAAAAAAAAIBAAAAAAAAAAAAAAAAgAAAANuAAAEAAAJA24AAANuAAAAAAAAAAoAFAAeAKAA/AFgAcoAAAABAAAACABYAAMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format("embedded-opentype"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBW8AAAC8AAAAYGNtYXAXVtKKAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZsOYH0cAAAF4AAADlGhlYWQcaMOsAAAFDAAAADZoaGVhB7kDyQAABUQAAAAkaG10eBRKAAkAAAVoAAAAIGxvY2EC7gIUAAAFiAAAABJtYXhwAAwAWgAABZwAAAAgbmFtZZlKCfsAAAW8AAABhnBvc3QAAwAAAAAHRAAAACAAAwNCAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAwPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QP//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAACAAAAAANuA24AOwBXAAABNCYvATc+ATU0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAQcOARUUFh8BHgEzMjY/ARceATMyNj8BPgE3FAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWApEGBWhoBQYGBTQFDgcHDgVnaAUNBwgNBjMFBgYFZ2cFBgYFMwYNCAcNBWhnBQ4HBw4FNAUG3SMid1BQW1tQUHcjIiIjd1BQW1tQUHciIwE2Bw0FaGcFDgcHDgU0BQYGBWhoBQYGBTQFDgcHDgVnaAUNBwgNBjMFBgYFZ2cFBgYFMwYNiVtQUHciIyMid1BQW1tQUHciIyMid1BQAAMACQAAA/cDtwAPACYAPAAAJTU0JisBIgYdARQWOwEyNicTNCYnLgErASIGBw4BFRMUFjsBMjY1AwEWFAcOASMhIiYnJjQ3AT4BMzIWFwJJCghuCAoKCG4ICgEKAgMDBwR+BAcDAwIJDAhqBwwIAbcJCgoiE/ySEyIKCgkBtwkjFBQjCaVtBwwMB20ICwveAQYDBgICBAQCAgcD/vsGBwcGAhb82xEmERETExERJhEDJREVFREAAAACAAAAAANuA24AJABAAAABNCYvAS4BIyIGDwEnLgEjIgYPAQ4BFRQWHwEeATMyNjcBPgE1FxQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgLeBQY0BQ0HCA0F6YEFDgcHDgU0BQUFBc8FDgcHDgUBNgYFkCMid1BQW1tQUHcjIiIjd1BQW1tQUHciIwITCA4FMwUGBgXogQUGBgU0BQ4HBw4FzwUFBQUBNwUNB1xbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAMAAAAAA24DbgAfAC8ASwAAJTU0JisBETQmKwEiBh0BFBY7ARUjIgYdARQWMyEyNjUDNTQmKwEiBh0BFBY7ATI2BRQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgJJCgg3Cwe3CAoKCDc3CAoKCAEACApJCwduCAoKCG4HCwFuIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjpVsICgElCAoKCFwHC7cKCFsICwsIAgBbCAoKCFsICwvmW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAAAAAQAAAAAAAMDOb/9fDzz1AAsEAAAAAADcqj98AAAAANyqP3wAAAAAA/cDtwAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAAD9wABAAAAAAAAAAAAAAAAAAAACAQAAAAAAAAAAAAAAAIAAAADbgAABAAACQNuAAADbgAAAAAAAAAKABQAHgCgAPwBYAHKAAAAAQAAAAgAWAADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format("truetype"),url(data:font/woff;base64,d09GRgABAAAAAAewAAsAAAAAB2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFb2NtYXAAAAFoAAAAVAAAAFQXVtKKZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAA5QAAAOUw5gfR2hlYWQAAAVYAAAANgAAADYcaMOsaGhlYQAABZAAAAAkAAAAJAe5A8lobXR4AAAFtAAAACAAAAAgFEoACWxvY2EAAAXUAAAAEgAAABIC7gIUbWF4cAAABegAAAAgAAAAIAAMAFpuYW1lAAAGCAAAAYYAAAGGmUoJ+3Bvc3QAAAeQAAAAIAAAACAAAwAAAAMDQgGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QMDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkD//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgAAAAADbgNuADsAVwAAATQmLwE3PgE1NCYvAS4BIyIGDwEnLgEjIgYPAQ4BFRQWHwEHDgEVFBYfAR4BMzI2PwEXHgEzMjY/AT4BNxQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgKRBgVoaAUGBgU0BQ4HBw4FZ2gFDQcIDQYzBQYGBWdnBQYGBTMGDQgHDQVoZwUOBwcOBTQFBt0jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiMBNgcNBWhnBQ4HBw4FNAUGBgVoaAUGBgU0BQ4HBw4FZ2gFDQcIDQYzBQYGBWdnBQYGBTMGDYlbUFB3IiMjIndQUFtbUFB3IiMjIndQUAADAAkAAAP3A7cADwAmADwAACU1NCYrASIGHQEUFjsBMjYnEzQmJy4BKwEiBgcOARUTFBY7ATI2NQMBFhQHDgEjISImJyY0NwE+ATMyFhcCSQoIbggKCghuCAoBCgIDAwcEfgQHAwMCCQwIagcMCAG3CQoKIhP8khMiCgoJAbcJIxQUIwmlbQcMDAdtCAsL3gEGAwYCAgQEAgIHA/77BgcHBgIW/NsRJhERExMRESYRAyURFRURAAAAAgAAAAADbgNuACQAQAAAATQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BHgEzMjY3AT4BNRcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYC3gUGNAUNBwgNBemBBQ4HBw4FNAUFBQXPBQ4HBw4FATYGBZAjIndQUFtbUFB3IyIiI3dQUFtbUFB3IiMCEwgOBTMFBgYF6IEFBgYFNAUOBwcOBc8FBQUFATcFDQdcW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAAADAAAAAANuA24AHwAvAEsAACU1NCYrARE0JisBIgYdARQWOwEVIyIGHQEUFjMhMjY1AzU0JisBIgYdARQWOwEyNgUUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCSQoINwsHtwgKCgg3NwgKCggBAAgKSQsHbggKCghuBwsBbiMid1BQW1tQUHcjIiIjd1BQW1tQUHciI6VbCAoBJQgKCghcBwu3CghbCAsLCAIAWwgKCghbCAsL5ltQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAAEAAAAAAADAzm//Xw889QALBAAAAAAA3Ko/fAAAAADcqj98AAAAAAP3A7cAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA/cAAQAAAAAAAAAAAAAAAAAAAAgEAAAAAAAAAAAAAAACAAAAA24AAAQAAAkDbgAAA24AAAAAAAAACgAUAB4AoAD8AWABygAAAAEAAAAIAFgAAwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff"),url(data:font/svg;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiID4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPG1ldGFkYXRhPkdlbmVyYXRlZCBieSBJY29Nb29uPC9tZXRhZGF0YT4KCTxkZWZzPgoJCTxmb250IGlkPSJpY29tb29uIiBob3Jpei1hZHYteD0iMTAyNCI+CgkJCTxmb250LWZhY2UgdW5pdHMtcGVyLWVtPSIxMDI0IiBhc2NlbnQ9Ijk2MCIgZGVzY2VudD0iLTY0Ii8+CgkJCTxtaXNzaW5nLWdseXBoIGhvcml6LWFkdi14PSIxMDI0Ii8+CgkJCTxnbHlwaCB1bmljb2RlPSImI3gyMDsiIGhvcml6LWFkdi14PSI1MTIiIGQ9IiIvPgoJCQk8Z2x5cGggdW5pY29kZT0iJiN4ZTkwMDsiIGdseXBoLW5hbWU9InRpbWVzLWNpcmNsZSIgaG9yaXotYWR2LXg9Ijg3OCIgZD0iTTY1Ni41NzEgMzA5LjcxNGMwIDkuNzE0LTQgMTguODU3LTEwLjg1NyAyNS43MTRsLTEwMy40MjkgMTAzLjQyOSAxMDMuNDI5IDEwMy40MjljNi44NTcgNi44NTcgMTAuODU3IDE2IDEwLjg1NyAyNS43MTRzLTQgMTkuNDI5LTEwLjg1NyAyNi4yODZsLTUxLjQyOSA1MS40MjljLTYuODU3IDYuODU3LTE2LjU3MSAxMC44NTctMjYuMjg2IDEwLjg1N3MtMTguODU3LTQtMjUuNzE0LTEwLjg1N2wtMTAzLjQyOS0xMDMuNDI5LTEwMy40MjkgMTAzLjQyOWMtNi44NTcgNi44NTctMTYgMTAuODU3LTI1LjcxNCAxMC44NTdzLTE5LjQyOS00LTI2LjI4Ni0xMC44NTdsLTUxLjQyOS01MS40MjljLTYuODU3LTYuODU3LTEwLjg1Ny0xNi41NzEtMTAuODU3LTI2LjI4NnM0LTE4Ljg1NyAxMC44NTctMjUuNzE0bDEwMy40MjktMTAzLjQyOS0xMDMuNDI5LTEwMy40MjljLTYuODU3LTYuODU3LTEwLjg1Ny0xNi0xMC44NTctMjUuNzE0czQtMTkuNDI5IDEwLjg1Ny0yNi4yODZsNTEuNDI5LTUxLjQyOWM2Ljg1Ny02Ljg1NyAxNi41NzEtMTAuODU3IDI2LjI4Ni0xMC44NTdzMTguODU3IDQgMjUuNzE0IDEwLjg1N2wxMDMuNDI5IDEwMy40MjkgMTAzLjQyOS0xMDMuNDI5YzYuODU3LTYuODU3IDE2LTEwLjg1NyAyNS43MTQtMTAuODU3czE5LjQyOSA0IDI2LjI4NiAxMC44NTdsNTEuNDI5IDUxLjQyOWM2Ljg1NyA2Ljg1NyAxMC44NTcgMTYuNTcxIDEwLjg1NyAyNi4yODZ6TTg3Ny43MTQgNDM4Ljg1N2MwLTI0Mi4yODYtMTk2LjU3MS00MzguODU3LTQzOC44NTctNDM4Ljg1N3MtNDM4Ljg1NyAxOTYuNTcxLTQzOC44NTcgNDM4Ljg1NyAxOTYuNTcxIDQzOC44NTcgNDM4Ljg1NyA0MzguODU3IDQzOC44NTctMTk2LjU3MSA0MzguODU3LTQzOC44NTd6Ii8+CgkJCTxnbHlwaCB1bmljb2RlPSImI3hlOTAxOyIgZ2x5cGgtbmFtZT0iZXhjbGFtYXRpb24tdHJpYW5nbGUsIHdhcm5pbmciIGQ9Ik01ODUuMTQzIDE2NS4xNDN2MTA4LjU3MWMwIDEwLjI4Ni04IDE4Ljg1Ny0xOC4yODYgMTguODU3aC0xMDkuNzE0Yy0xMC4yODYgMC0xOC4yODYtOC41NzEtMTguMjg2LTE4Ljg1N3YtMTA4LjU3MWMwLTEwLjI4NiA4LTE4Ljg1NyAxOC4yODYtMTguODU3aDEwOS43MTRjMTAuMjg2IDAgMTguMjg2IDguNTcxIDE4LjI4NiAxOC44NTd6TTU4NCAzNzguODU3bDEwLjI4NiAyNjIuMjg2YzAgMy40MjktMS43MTQgOC01LjcxNCAxMC44NTctMy40MjkgMi44NTctOC41NzEgNi4yODYtMTMuNzE0IDYuMjg2aC0xMjUuNzE0Yy01LjE0MyAwLTEwLjI4Ni0zLjQyOS0xMy43MTQtNi4yODYtNC0yLjg1Ny01LjcxNC04LjU3MS01LjcxNC0xMmw5LjcxNC0yNjEuMTQzYzAtNy40MjkgOC41NzEtMTMuMTQzIDE5LjQyOS0xMy4xNDNoMTA1LjcxNGMxMC4yODYgMCAxOC44NTcgNS43MTQgMTkuNDI5IDEzLjE0M3pNNTc2IDkxMi41NzFsNDM4Ljg1Ny04MDQuNTcxYzEyLjU3MS0yMi4yODYgMTItNDkuNzE0LTEuMTQzLTcycy0zNy4xNDMtMzYtNjIuODU3LTM2aC04NzcuNzE0Yy0yNS43MTQgMC00OS43MTQgMTMuNzE0LTYyLjg1NyAzNnMtMTMuNzE0IDQ5LjcxNC0xLjE0MyA3Mmw0MzguODU3IDgwNC41NzFjMTIuNTcxIDIzLjQyOSAzNy4xNDMgMzguMjg2IDY0IDM4LjI4NnM1MS40MjktMTQuODU3IDY0LTM4LjI4NnoiLz4KCQkJPGdseXBoIHVuaWNvZGU9IiYjeGU5MDI7IiBnbHlwaC1uYW1lPSJjaGVjay1jaXJjbGUiIGhvcml6LWFkdi14PSI4NzgiIGQ9Ik03MzMuNzE0IDUzMS40MjhjMCA5LjcxNC0zLjQyOSAxOS40MjktMTAuMjg2IDI2LjI4NmwtNTIgNTEuNDI5Yy02Ljg1NyA2Ljg1Ny0xNiAxMC44NTctMjUuNzE0IDEwLjg1N3MtMTguODU3LTQtMjUuNzE0LTEwLjg1N2wtMjMzLjE0My0yMzIuNTcxLTEyOS4xNDMgMTI5LjE0M2MtNi44NTcgNi44NTctMTYgMTAuODU3LTI1LjcxNCAxMC44NTdzLTE4Ljg1Ny00LTI1LjcxNC0xMC44NTdsLTUyLTUxLjQyOWMtNi44NTctNi44NTctMTAuMjg2LTE2LjU3MS0xMC4yODYtMjYuMjg2czMuNDI5LTE4Ljg1NyAxMC4yODYtMjUuNzE0bDIwNi44NTctMjA2Ljg1N2M2Ljg1Ny02Ljg1NyAxNi41NzEtMTAuODU3IDI1LjcxNC0xMC44NTcgOS43MTQgMCAxOS40MjkgNCAyNi4yODYgMTAuODU3bDMxMC4yODYgMzEwLjI4NmM2Ljg1NyA2Ljg1NyAxMC4yODYgMTYgMTAuMjg2IDI1LjcxNHpNODc3LjcxNCA0MzguODU3YzAtMjQyLjI4Ni0xOTYuNTcxLTQzOC44NTctNDM4Ljg1Ny00MzguODU3cy00MzguODU3IDE5Ni41NzEtNDM4Ljg1NyA0MzguODU3IDE5Ni41NzEgNDM4Ljg1NyA0MzguODU3IDQzOC44NTcgNDM4Ljg1Ny0xOTYuNTcxIDQzOC44NTctNDM4Ljg1N3oiLz4KCQkJPGdseXBoIHVuaWNvZGU9IiYjeGU5MDM7IiBnbHlwaC1uYW1lPSJpbmZvLWNpcmNsZSIgaG9yaXotYWR2LXg9Ijg3OCIgZD0iTTU4NS4xNDMgMTY0LjU3MXY5MS40MjljMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtNTQuODU3djI5Mi41NzFjMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtMTgyLjg1N2MtMTAuMjg2IDAtMTguMjg2LTgtMTguMjg2LTE4LjI4NnYtOTEuNDI5YzAtMTAuMjg2IDgtMTguMjg2IDE4LjI4Ni0xOC4yODZoNTQuODU3di0xODIuODU3aC01NC44NTdjLTEwLjI4NiAwLTE4LjI4Ni04LTE4LjI4Ni0xOC4yODZ2LTkxLjQyOWMwLTEwLjI4NiA4LTE4LjI4NiAxOC4yODYtMTguMjg2aDI1NmMxMC4yODYgMCAxOC4yODYgOCAxOC4yODYgMTguMjg2ek01MTIgNjc2LjU3MXY5MS40MjljMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtMTA5LjcxNGMtMTAuMjg2IDAtMTguMjg2LTgtMTguMjg2LTE4LjI4NnYtOTEuNDI5YzAtMTAuMjg2IDgtMTguMjg2IDE4LjI4Ni0xOC4yODZoMTA5LjcxNGMxMC4yODYgMCAxOC4yODYgOCAxOC4yODYgMTguMjg2ek04NzcuNzE0IDQzOC44NTdjMC0yNDIuMjg2LTE5Ni41NzEtNDM4Ljg1Ny00MzguODU3LTQzOC44NTdzLTQzOC44NTcgMTk2LjU3MS00MzguODU3IDQzOC44NTcgMTk2LjU3MSA0MzguODU3IDQzOC44NTcgNDM4Ljg1NyA0MzguODU3LTE5Ni41NzEgNDM4Ljg1Ny00MzguODU3eiIvPgoJCTwvZm9udD48L2RlZnM+Cjwvc3ZnPgo=) format("svg");font-weight:normal;font-style:normal;font-display:block}[class^=icon-][_ngcontent-%COMP%], [class*=" icon-"][_ngcontent-%COMP%]{font-family:"icomoon"!important;-webkit-font-smoothing:antialiased;font-style:normal;font-feature-settings:normal;font-variant:normal;font-weight:normal;line-height:1;-moz-osx-font-smoothing:grayscale;speak:never;text-transform:none}.icon-times-circle[_ngcontent-%COMP%]:before{content:"\\e900"}.icon-exclamation-triangle[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-warning[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-check-circle[_ngcontent-%COMP%]:before{content:"\\e902"}.icon-info-circle[_ngcontent-%COMP%]:before{content:"\\e903"}.ngx-awesome-popup-overlay[_ngcontent-%COMP%]{align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:rgba(51,32,0,.4);bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;opacity:0;position:fixed;right:0;top:0;z-index:999999999}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{text-align:center}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%]{width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{display:block;width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;white-space:pre-wrap;word-wrap:break-word}.evolve-parent-dialog[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%]{background:#fbfbfb;border-radius:5px;border-top:7px solid;box-shadow:0 0 4px 1px #00000040;display:flex;flex-direction:column;max-height:calc(100vh - 100px);max-width:calc(100vw - 100px);box-sizing:border-box;position:relative;vertical-align:bottom}.evolve-parent-dialog.standard-dialog[_ngcontent-%COMP%], .evolve-confirm-box.standard-dialog[_ngcontent-%COMP%]{border-color:transparent;padding:17px 20px 10px}.evolve-parent-dialog.success-dialog[_ngcontent-%COMP%], .evolve-confirm-box.success-dialog[_ngcontent-%COMP%]{border-color:#3caea3}.evolve-parent-dialog.info-dialog[_ngcontent-%COMP%], .evolve-confirm-box.info-dialog[_ngcontent-%COMP%]{border-color:#2f8ee5}.evolve-parent-dialog.warning-dialog[_ngcontent-%COMP%], .evolve-confirm-box.warning-dialog[_ngcontent-%COMP%]{border-color:#ffc107}.evolve-parent-dialog.danger-dialog[_ngcontent-%COMP%], .evolve-confirm-box.danger-dialog[_ngcontent-%COMP%]{border-color:#e46464}.ap-icon-success[_ngcontent-%COMP%]{color:#58c5bb}.ap-icon-info[_ngcontent-%COMP%]{color:#5ca7eb}.ap-icon-warning[_ngcontent-%COMP%]{color:#ffce3a}.ap-icon-danger[_ngcontent-%COMP%]{color:#ec8f8f}.evolve-parent-dialog[_ngcontent-%COMP%]{padding:20px 20px 10px;opacity:0;background:#fbfbfb;box-shadow:0 0 4px 1px #00000040;box-sizing:border-box}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content[_ngcontent-%COMP%]{height:100%;max-width:95vw;transition-delay:.4s;transition-duration:.4s;transition-property:opacity;transition-timing-function:linear;width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-loader-off[_ngcontent-%COMP%]{opacity:1!important;transition:none!important}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-preparing[_ngcontent-%COMP%]{opacity:0;transition:none!important}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-ready[_ngcontent-%COMP%]{height:100%;opacity:1}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader[_ngcontent-%COMP%]{opacity:1}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-off[_ngcontent-%COMP%]{display:none;opacity:0!important}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-gone[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-active[_ngcontent-%COMP%]{opacity:1}.loader-holder[_ngcontent-%COMP%]{align-items:center;background:#fbfbfb;display:flex;flex-direction:column;height:100%;justify-content:center;margin:-20px;opacity:1;position:absolute;transition-delay:.4s;transition-duration:.4s;transition-property:opacity;transition-timing-function:linear;width:100%}.content-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:calc(100vw - 100px);overflow:auto}.button-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;width:100%}.button-holder[_ngcontent-%COMP%] .button-section[_ngcontent-%COMP%]{background:rgba(222,226,230,.2);border-top:1px solid rgba(152,158,165,.2);margin:20px -20px -10px;padding:5px 20px}'],data:{animation:[x5("fadeInOut",[$r("open",dt({opacity:1})),$r("close-fast",dt({opacity:0})),$r("close-instant",dt({opacity:0})),Hr("* => close-fast",[mL("*",[gL()]),Wr("{{closeDelay}}")]),Hr("* => open",[Wr(100)]),Hr("* => close-instant",[Wr(0)])]),x5("boxAnimations",[$r("reset",dt({opacity:1})),$r("bounceIn",dt({opacity:1})),$r("swing",dt({opacity:1})),$r("zoomIn",dt({opacity:1})),$r("zoomInRotate",dt({opacity:1})),$r("elastic",dt({opacity:1})),$r("jello",dt({opacity:1})),$r("fadeIn",dt({opacity:1})),$r("slideInUp",dt({opacity:1})),$r("slideInDown",dt({opacity:1})),$r("slideInLeft",dt({opacity:1})),$r("slideInRight",dt({opacity:1})),Hr("* => bounceIn",Wr("1000ms cubic-bezier(0.215, 0.61, 0.355, 1)",bo(AG))),Hr("* => swing",Wr("800ms",bo(gG))),Hr("* => zoomIn",Wr("400ms",bo(mG))),Hr("* => zoomInRotate",Wr("800ms ease-out",bo(yG))),Hr("* => elastic",Wr("1000ms",bo(bG))),Hr("* => jello",Wr(1e3,bo(_G))),Hr("* => fadeIn",Wr("400ms ease-out",bo(wG))),Hr("* => slideInUp",Wr("400ms ease-out",bo(vG))),Hr("* => slideInDown",Wr("400ms ease-out",bo(IG))),Hr("* => slideInLeft",Wr("400ms ease-out",bo(CG))),Hr("* => slideInRight",Wr("400ms ease-out",bo(TG))),Hr("* => reset",dt({opacity:1})),$r("zoomOutWind",dt({opacity:0})),$r("bounceOut",dt({opacity:0})),$r("flipOutY",dt({opacity:0})),$r("zoomOut",dt({opacity:0})),$r("zoomOutRotate",dt({opacity:0})),$r("slideOutUp",dt({opacity:0})),$r("slideOutDown",dt({opacity:0})),$r("slideOutLeft",dt({opacity:0})),$r("slideOutRight",dt({opacity:0})),Hr("* => zoomOutWind",Wr("400ms ease-in",bo(kG))),Hr("* => bounceOut",Wr("400ms ease-in",bo(DG))),Hr("* => flipOutY",Wr("400ms ease-in",bo(EG))),Hr("* => zoomOut",Wr("400ms ease-in",bo(MG))),Hr("* => zoomOutRotate",Wr("400ms ease-out",bo(xG))),Hr("* => slideOutUp",Wr("300ms ease-in",bo(OG))),Hr("* => slideOutDown",Wr("300ms ease-in",bo(SG))),Hr("* => slideOutLeft",Wr("300ms ease-in",bo(BG))),Hr("* => slideOutRight",Wr("300ms ease-in",bo(NG))),Hr("* => wobble",Wr(1e3,bo(PG)))])]}}),n})(),OT=(()=>{class n{constructor(t,o,s){this.componentFactoryResolver=t,this.injector=o,this.appRef=s,this.dialogParentComponentRefList=[]}open(t,o){const s=o.EventsController,l=this.getComponentRef(s,o);return this.dialogParentComponentRefList.push(l),l.instance.dialogBelonging=o,l.instance.childComponentType=t,this.appendToBodyParentComponent(l),this.listeners(s),s}getComponentRef(t,o){let s;if(-1===this.findDialogIndex(o.EntityUniqueID)){const u=new WeakMap;return u.set(BT,t),s=this.componentFactoryResolver.resolveComponentFactory(GG),s.create(new t1(this.injector,u))}return null}listeners(t){const o=t.afterClosed$.subscribe(l=>{const u=this.findDialogIndex(l.DialogBelonging.EntityUniqueID);this.removeFromBodyDialogWrapperComponent(u),o.unsubscribe()}),s=t.afterLoader$.subscribe(l=>{if(l){const u=this.findDialogIndex(l);-1!==u&&this.dialogParentComponentRefList[u].instance.closeLoader()}s.unsubscribe()})}childComponentResolver(){}appendToBodyParentComponent(t){this.appRef.attachView(t.hostView),document.body.appendChild(t.hostView.rootNodes[0])}closeDialogWrapperComponent(t){const o=this.findDialogIndex(t);this.removeFromBodyDialogWrapperComponent(o)}removeFromBodyDialogWrapperComponent(t){t>-1&&this.dialogParentComponentRefList[t].instance.closeParent$().pipe(P(o=>{this.appRef.detachView(this.dialogParentComponentRefList[t].hostView),this.dialogParentComponentRefList[t].destroy(),this.dialogParentComponentRefList.splice(t,1)})).subscribe()}findDialogIndex(t){return this.dialogParentComponentRefList.findIndex(o=>t===o.instance.dialogBelonging.EntityUniqueID)}}return n.\u0275fac=function(t){return new(t||n)(mt(zi),mt(pi),mt(As))},n.\u0275prov=et({factory:function(){return new n(mt(zi),mt(ju),mt(As))},token:n,providedIn:"root"}),n})();class Cr{constructor(e){this.component=e,this.dialogCarrier=new HG,this.dialogCarrier.setComponent(this.component)}openDialog$(){return this.dialogCarrier.openDialog$().pipe(P(e=>{const t=new ST;return(new si).copyValuesFrom(e,t),t}),xl(1))}setButtons(e){this.dialogCarrier.setButtons(e)}setCustomData(e){this.dialogCarrier.setCustomData(e)}setConfig(e){this.dialogCarrier.setConfig(e)}}class ST extends si{constructor(){super(),this.Payload=null,this.Success=null,this.ClickedButtonID=null}setPayload(e){this.Payload=e}setClickedButtonID(e){this.ClickedButtonID=e}}class BT{constructor(e){this.EntityUniqueID=e,this._afterClosed=new C,this.afterClosed$=this._afterClosed.asObservable(),this._afterLoader=new C,this.afterLoader$=this._afterLoader.asObservable(),this._onButtonClick=new C,this.onButtonClick$=this._onButtonClick.asObservable(),this._buttonList=new C,this.buttonList$=this._buttonList.asObservable()}close(e=null){this.defaultResponse.setPayload(e),this._afterClosed.next(this.defaultResponse)}onButtonClick(e){this.defaultResponse.setClickedButtonID(e.ID),this._onButtonClick.next(e)}setButtonList(e){this._buttonList.next(e)}closeLoader(){setTimeout(()=>{this._afterLoader.next(this.EntityUniqueID)},0)}setDefaultResponse(e){this.defaultResponse=e}}class QG extends ST{constructor(){super(),this.DialogBelonging=null}setBelonging(e){this.DialogBelonging=e}}class HG{constructor(){this.dialogBelonging=new PT}setComponent(e){this.component=e}setButtons(e){e.length&&(this.dialogBelonging.Buttons=e)}setCustomData(e){this.dialogBelonging.CustomData=e}setConfig(e){(new si).copyValuesFrom(e,this.dialogBelonging.DialogCoreConfig),e?.LoaderComponent&&(this.dialogBelonging.DialogCoreConfig.DisplayLoader=!0)}openDialog$(){return da.injector.get(OT).open(this.component,this.dialogBelonging).afterClosed$}}class NT{constructor(){this.ButtonSectionCSS=null,this.ButtonCSS=null,this.WrapperCSS=null}}class zG extends uG{constructor(){super(...arguments),this.EscapeKeyClose=null,this.HideScrollbar=null,this.ButtonPosition=null,this.LayoutType=null,this.DisplayLoader=null,this.LoaderComponent=null,this.AnimationIn=null,this.AnimationOut=null,this.CustomStyles=new NT}}class z3{constructor(){this.Buttons=[],this.DialogCoreConfig=new zG}}class PT extends z3{constructor(){super(),this.EntityUniqueID="D"+Math.random().toString(36).substr(2,9),this.CustomData=null,this.EventsController=new BT(this.EntityUniqueID);const e=da.injector.get(ET),t=new z3;(new si).copyValuesFrom(e.productionConfig.DialogCoreConfig,t.DialogCoreConfig),this.DialogCoreConfig=t.DialogCoreConfig,this.Buttons=e.productionConfig.Buttons.slice()}}let qG=(()=>{class n{constructor(t){this.injector=t,da.injector=t}static forRoot(t){return{ngModule:n,providers:[{provide:"cdGlobalConfig",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(mt(pi))},n.\u0275mod=li({type:n}),n.\u0275inj=je({providers:[Vl],imports:[f3,kg,gj]}),n})(),JG=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:"dialogConfig",useValue:t},{provide:"dialogBelonging",useClass:PT}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=li({type:n}),n.\u0275inj=je({providers:[OT,ET],imports:[f3]}),n})();function GT(n,e,t,o,s,l,u){try{var h=n[l](u),A=h.value}catch(y){return void t(y)}h.done?e(A):Promise.resolve(A).then(o,s)}function Ge(n){return function(){var e=this,t=arguments;return new Promise(function(o,s){var l=n.apply(e,t);function u(A){GT(l,o,s,u,h,"next",A)}function h(A){GT(l,o,s,u,h,"throw",A)}u(void 0)})}}const Fr=new class XG{constructor(){this._timeDrift=0,this._contractId=null,this._keyList=null,this._thresholdKey=null,this._publicKeyED25519=null,this._publicKeyECDSA=null,this._privateKeyConstructor=null,this._accountIdConstructor=null,this._delegateContractId=null,this._evmAddress=null,this._ethereumTransactionDataLegacyFromBytes=null,this._ethereumTransactionDataEip1559FromBytes=null,this._transactionReceiptQueryConstructor=null,this._transactionRecordQueryConstructor=null}setTimeDrift(e){this._timeDrift=e}get timeDrift(){if(null==this._timeDrift)throw new Error("Cache.timeDrift was used before it was set");return this._timeDrift}setContractId(e){this._contractId=e}get contractId(){if(null==this._contractId)throw new Error("Cache.contractId was used before it was set");return this._contractId}setKeyList(e){this._keyList=e}get keyList(){if(null==this._keyList)throw new Error("Cache.keyList was used before it was set");return this._keyList}setThresholdKey(e){this._thresholdKey=e}get thresholdKey(){if(null==this._thresholdKey)throw new Error("Cache.thresholdKey was used before it was set");return this._thresholdKey}setPublicKeyED25519(e){this._publicKeyED25519=e}get publicKeyED25519(){if(null==this._publicKeyED25519)throw new Error("Cache.publicKeyED25519 was used before it was set");return this._publicKeyED25519}setPublicKeyECDSA(e){this._publicKeyECDSA=e}get publicKeyECDSA(){if(null==this._publicKeyECDSA)throw new Error("Cache.publicKeyECDSA was used before it was set");return this._publicKeyECDSA}setPrivateKeyConstructor(e){this._privateKeyConstructor=e}get privateKeyConstructor(){if(null==this._privateKeyConstructor)throw new Error("Cache.privateKeyConstructor was used before it was set");return this._privateKeyConstructor}setAccountIdConstructor(e){this._accountIdConstructor=e}get accountIdConstructor(){if(null==this._accountIdConstructor)throw new Error("Cache.accountIdConstructor was used before it was set");return this._accountIdConstructor}setDelegateContractId(e){this._delegateContractId=e}get delegateContractId(){if(null==this._delegateContractId)throw new Error("Cache.delegateContractId was used before it was set");return this._delegateContractId}setEvmAddress(e){this._evmAddress=e}get evmAddress(){if(null==this._evmAddress)throw new Error("Cache.evmAddress was used before it was set");return this._evmAddress}setEthereumTransactionDataLegacyFromBytes(e){this._ethereumTransactionDataLegacyFromBytes=e}get ethereumTransactionDataLegacyFromBytes(){if(null==this._ethereumTransactionDataLegacyFromBytes)throw new Error("Cache.ethereumTransactionDataLegacyFromBytes was used before it was set");return this._ethereumTransactionDataLegacyFromBytes}setEthereumTransactionDataEip1559FromBytes(e){this._ethereumTransactionDataEip1559FromBytes=e}get ethereumTransactionDataEip1559FromBytes(){if(null==this._ethereumTransactionDataEip1559FromBytes)throw new Error("Cache.ethereumTransactionDataEip1559FromBytes was used before it was set");return this._ethereumTransactionDataEip1559FromBytes}setTransactionReceiptQueryConstructor(e){this._transactionReceiptQueryConstructor=e}get transactionReceiptQueryConstructor(){if(null==this._transactionReceiptQueryConstructor)throw new Error("Cache.transactionReceiptQueryConstructor was used before it was set");return this._transactionReceiptQueryConstructor}setTransactionRecordQueryConstructor(e){this._transactionRecordQueryConstructor=e}get transactionRecordQueryConstructor(){if(null==this._transactionRecordQueryConstructor)throw new Error("Cache.transactionRecordQueryConstructor was used before it was set");return this._transactionRecordQueryConstructor}setAddressBookQueryConstructor(e){this._addressBookQueryConstructor=e}get addressBookQueryConstructor(){if(null==this._addressBookQueryConstructor)throw new Error("Cache.addressBookQueryConstructor was used before it was set");return this._addressBookQueryConstructor}};class Kl extends(null){constructor(e,t){super(),this._keys=e??[],this._threshold=t??null}static of(...e){return new Kl(e,null)}static from(e,t,o){return new Kl(null==t?Array.from(e):Array.from(e,t,o))}get threshold(){return this._threshold}setThreshold(e){return this._threshold=e,this}push(...e){return this._keys.push(...e)}splice(e,t,...o){return new Kl(this._keys.splice(e,t,...o),this.threshold)}slice(e,t){return new Kl(this._keys.slice(e,t),this.threshold)}[Symbol.iterator](){return this._keys[Symbol.iterator]()}toArray(){return this._keys.slice()}toString(){return JSON.stringify({threshold:this._threshold,keys:this._keys.toString()})}}const ec={privateKeyConstructor:null,privateKeyFromBytes:null};class _o extends Error{constructor(e){super(e instanceof Error?e.message:e),this.name="BadKeyError",e instanceof Error&&(this.cause=e,this.stack=e.stack)}}class b0{}var _s=G(489);function r1(n,e){if(n===e)return!0;if(n.byteLength!==e.byteLength)return!1;const t=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(e.buffer,e.byteOffset,e.byteLength);let s=n.byteLength;for(;s--;)if(t.getUint8(s)!==o.getUint8(s))return!1;return!0}function _0(n,e){if(n.byteLengthparseInt(o,16)))}const w0=Mr("302a300506032b6570032100");class Xi extends b0{constructor(e){super(),this._keyData=e}get _type(){return"ED25519"}static fromBytes(e){switch(e.length){case 32:return Xi.fromBytesRaw(e);case 44:return Xi.fromBytesDer(e);default:throw new _o(`invalid public key length: ${e.length} bytes`)}}static fromBytesDer(e){if(44!=e.length||!_0(e,w0))throw new _o(`invalid public key length: ${e.length} bytes`);return new Xi(e.subarray(12))}static fromBytesRaw(e){if(32!=e.length)throw new _o(`invalid public key length: ${e.length} bytes`);return new Xi(e)}static fromString(e){return Xi.fromBytes(Mr(e))}verify(e,t){return _s.sign.detached.verify(e,t,this._keyData)}toBytesDer(){const e=new Uint8Array(w0.length+32);return e.set(w0,0),e.set(this._keyData.subarray(0,32),w0.length),e}toBytesRaw(){return this._keyData.slice()}equals(e){return r1(this._keyData,e._keyData)}}function v0(n){return Promise.resolve(_s.randomBytes(n))}const I0=Mr("302e020100300506032b657004220420");class wo{constructor(e,t){this._keyPair=e instanceof Uint8Array?_s.sign.keyPair.fromSeed(e):e,this._chainCode=t??null}get _type(){return"ED25519"}static generate(){const e=function eQ(n){return _s.randomBytes(n)}(64);return new wo(_s.sign.keyPair.fromSeed(e.subarray(0,32)),e.subarray(32))}static generateAsync(){return Ge(function*(){const e=yield v0(64);return new wo(_s.sign.keyPair.fromSeed(e.subarray(0,32)),e.subarray(32))})()}static fromBytes(e){switch(e.length){case 48:return wo.fromBytesDer(e);case 32:case 64:return wo.fromBytesRaw(e);default:throw new _o(`invalid private key length: ${e.length} bytes`)}}static fromBytesDer(e){if(48!=e.length||!_0(e,I0))throw new _o(`invalid private key length: ${e.length} bytes`);const t=_s.sign.keyPair.fromSeed(e.subarray(16));return new wo(t)}static fromBytesRaw(e){switch(e.length){case 32:return new wo(_s.sign.keyPair.fromSeed(e));case 64:return new wo(_s.sign.keyPair.fromSecretKey(e))}throw new _o(`invalid private key length: ${e.length} bytes`)}static fromString(e){return wo.fromBytes(Mr(e))}static fromStringDer(e){return wo.fromBytesDer(Mr(e))}static fromStringRaw(e){return wo.fromBytesRaw(Mr(e))}get publicKey(){return new Xi(this._keyPair.publicKey)}sign(e){return _s.sign.detached(e,this._keyPair.secretKey)}toBytesDer(){const e=new Uint8Array(I0.length+32);return e.set(I0,0),e.set(this._keyPair.secretKey.subarray(0,32),I0.length),e}toBytesRaw(){return this._keyPair.secretKey.slice(0,32)}}const ha=Object.freeze({BadLength:"BadLength",UnknownWords:"UnknownWords",ChecksumMismatch:"ChecksumMismatch"});class tc extends Error{constructor(e,t,o){let s;switch(t){case ha.BadLength:s="mnemonic is of an unexpected number of words";break;case ha.ChecksumMismatch:s="checksum byte in mnemonic did not match the rest of the mnemonic";break;case ha.UnknownWords:s="mnemonic contained words that are not in the standard word list";break;default:throw new Error(`unexpected value ${t.toString()} for 'reason'`)}super(`invalid mnemonic: ${s}`),typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,tc),this.name="BadMnemonicError",this.reason=t,this.mnemonic=e,this.unknownWordIndices=o}}const o1=["aback","abbey","abbot","abide","ablaze","able","aboard","abode","abort","abound","about","above","abroad","abrupt","absent","absorb","absurd","abuse","accent","accept","access","accord","accuse","ace","ache","aching","acid","acidic","acorn","acre","across","act","action","active","actor","actual","acute","adam","adapt","add","added","addict","adept","adhere","adjust","admire","admit","adobe","adopt","adrift","adult","adverb","advice","aerial","afar","affair","affect","afford","afghan","afield","afloat","afraid","afresh","after","again","age","agency","agenda","agent","aghast","agile","ago","agony","agree","agreed","ahead","aid","aide","aim","air","airman","airy","akin","alarm","alaska","albeit","album","ale","alert","alibi","alice","alien","alight","align","alike","alive","alkali","all","alley","allied","allow","alloy","ally","almond","almost","aloft","alone","along","aloof","aloud","alpha","alpine","also","altar","alter","always","amaze","amazon","amber","ambush","amen","amend","amid","amidst","amiss","among","amount","ample","amuse","anchor","and","andrew","anew","angel","anger","angle","angry","animal","ankle","annoy","annual","answer","anthem","any","anyhow","anyway","apart","apathy","apex","apiece","appeal","appear","apple","apply","april","apron","arab","arcade","arcane","arch","arctic","ardent","are","area","argue","arid","arise","ark","arm","armful","army","aroma","around","arouse","array","arrest","arrive","arrow","arson","art","artery","artful","artist","ascent","ash","ashen","ashore","aside","ask","asleep","aspect","assay","assent","assert","assess","asset","assign","assist","assume","assure","asthma","astute","asylum","ate","athens","atlas","atom","atomic","attach","attack","attain","attend","attic","auburn","audio","audit","august","aunt","auntie","aura","austin","author","auto","autumn","avail","avenge","avenue","avert","avid","avoid","await","awake","awaken","award","aware","awash","away","awful","awhile","axe","axes","axiom","axis","axle","aye","babe","baby","bach","back","backup","bacon","bad","badge","badly","bag","baggy","bail","bait","bake","baker","bakery","bald","ball","ballad","ballet","ballot","baltic","bamboo","ban","banal","banana","band","bang","bank","bar","barber","bare","barely","barge","bark","barley","barn","baron","barrel","barren","basalt","base","basic","basil","basin","basis","basket","bass","bat","batch","bath","baton","battle","bay","beach","beacon","beak","beam","bean","bear","beard","beast","beat","beauty","become","bed","beech","beef","beefy","beep","beer","beet","beetle","before","beg","beggar","begin","behalf","behave","behind","beige","being","belief","bell","belly","belong","below","belt","bench","bend","benign","bent","berlin","berry","berth","beset","beside","best","bestow","bet","beta","betray","better","beware","beyond","bias","biceps","bicker","bid","big","bigger","bike","bile","bill","bin","binary","bind","biopsy","birch","bird","birdie","birth","bishop","bit","bitch","bite","bitter","black","blade","blame","bland","blast","blaze","bleak","blend","bless","blew","blind","blink","blip","bliss","blitz","block","blond","blood","bloody","bloom","blot","blouse","blow","blue","bluff","blunt","blur","blush","boar","board","boast","boat","bob","bodily","body","bogus","boil","bold","bolt","bomb","bombay","bond","bone","bonn","bonnet","bonus","bony","book","boom","boost","boot","booth","booze","border","bore","borrow","bosom","boss","boston","both","bother","bottle","bottom","bought","bounce","bound","bounty","bout","bovine","bow","bowel","bowl","box","boy","boyish","brace","brain","brainy","brake","bran","branch","brand","brandy","brass","brave","bravo","brazil","breach","bread","break","breast","breath","bred","breed","breeze","brew","bribe","brick","bride","bridge","brief","bright","brim","brine","bring","brink","brisk","broad","broke","broken","bronze","brook","broom","brown","bruise","brush","brutal","brute","bubble","buck","bucket","buckle","budget","buffet","buggy","build","bulb","bulge","bulk","bulky","bull","bullet","bully","bump","bumpy","bunch","bundle","bunk","bunny","burden","bureau","burial","buried","burly","burn","burnt","burrow","burst","bury","bus","bush","bust","bustle","busy","but","butler","butt","butter","button","buy","buyer","buzz","bye","byte","cab","cabin","cable","cache","cactus","caesar","cage","cairo","cajun","cajole","cake","calf","call","caller","calm","calmly","came","camel","camera","camp","campus","can","canada","canal","canary","cancel","cancer","candid","candle","candy","cane","canine","canoe","canopy","canvas","canyon","cap","cape","car","carbon","card","care","career","caress","cargo","carl","carnal","carol","carp","carpet","carrot","carry","cart","cartel","case","cash","cask","cast","castle","casual","cat","catch","cater","cattle","caught","causal","cause","cave","cease","celery","cell","cellar","celtic","cement","censor","census","cent","cereal","chain","chair","chalk","chalky","champ","chance","change","chant","chaos","chap","chapel","charge","charm","chart","chase","chat","cheap","cheat","check","cheek","cheeky","cheer","cheery","cheese","chef","cheque","cherry","chess","chest","chew","chic","chick","chief","child","chile","chill","chilly","chin","china","chip","choice","choir","choose","chop","choppy","chord","chorus","chose","chosen","chris","chrome","chunk","chunky","church","cider","cigar","cinema","circa","circle","circus","cite","city","civic","civil","clad","claim","clammy","clan","clap","clash","clasp","class","clause","claw","clay","clean","clear","clergy","clerk","clever","click","client","cliff","climax","climb","clinch","cling","clinic","clip","cloak","clock","clone","close","closer","closet","cloth","cloud","cloudy","clout","clown","club","clue","clumsy","clung","clutch","coach","coal","coarse","coast","coat","coax","cobalt","cobra","coca","cock","cocoa","code","coffee","coffin","cohort","coil","coin","coke","cold","collar","colon","colony","colt","column","comb","combat","come","comedy","comic","commit","common","compel","comply","concur","cone","confer","congo","consul","convex","convey","convoy","cook","cool","cope","copper","copy","coral","cord","core","cork","corn","corner","corps","corpse","corpus","cortex","cosmic","cosmos","cost","costly","cotton","couch","cough","could","count","county","coup","couple","coupon","course","court","cousin","cove","cover","covert","cow","coward","cowboy","cozy","crab","crack","cradle","craft","crafty","crag","crane","crash","crate","crater","crawl","crazy","creak","cream","creamy","create","credit","creed","creek","creep","creepy","crept","crest","crew","cried","crime","crisis","crisp","critic","crook","crop","cross","crow","crowd","crown","crude","cruel","cruise","crunch","crush","crust","crux","cry","crypt","cuba","cube","cubic","cuckoo","cuff","cult","cup","curb","cure","curfew","curl","curry","curse","cursor","curve","cuss","custom","cut","cute","cycle","cyclic","cynic","czech","dad","daddy","dagger","daily","dairy","daisy","dale","dam","damage","damp","dampen","dance","danger","danish","dare","dark","darken","darn","dart","dash","data","date","david","dawn","day","dead","deadly","deaf","deal","dealer","dean","dear","death","debate","debit","debris","debt","debtor","decade","decay","decent","decide","deck","decor","decree","deduce","deed","deep","deeply","deer","defeat","defect","defend","defer","define","defy","degree","deity","delay","delete","delhi","delta","demand","demise","demo","demure","denial","denote","dense","dental","deny","depart","depend","depict","deploy","depot","depth","deputy","derive","desert","design","desire","desist","desk","detail","detect","deter","detest","detour","device","devise","devoid","devote","devour","dial","diana","diary","dice","dictum","did","die","diesel","diet","differ","dig","digest","digit","dine","dinghy","dinner","diode","dip","dire","direct","dirt","dirty","disc","disco","dish","disk","dismal","dispel","ditch","dive","divert","divide","divine","dizzy","docile","dock","doctor","dog","dogma","dole","doll","dollar","dolly","domain","dome","domino","donate","done","donkey","donor","doom","door","dorsal","dose","dot","double","doubt","dough","dour","dove","down","dozen","draft","drag","dragon","drain","drama","drank","draw","drawer","dread","dream","dreary","dress","drew","dried","drift","drill","drink","drip","drive","driver","drop","drove","drown","drug","drum","drunk","dry","dual","duck","duct","due","duel","duet","duke","dull","duly","dumb","dummy","dump","dune","dung","duress","during","dusk","dust","dusty","dutch","duty","dwarf","dwell","dyer","dying","dynamo","each","eager","eagle","ear","earl","early","earn","earth","ease","easel","easily","east","easter","easy","eat","eaten","eater","echo","eddy","eden","edge","edible","edict","edit","editor","eel","eerie","eerily","effect","effort","egg","ego","eight","eighth","eighty","either","elbow","elder","eldest","elect","eleven","elicit","elite","else","elude","elves","embark","emblem","embryo","emerge","emit","empire","employ","empty","enable","enamel","end","endure","enemy","energy","engage","engine","enjoy","enlist","enough","ensure","entail","enter","entire","entry","envoy","envy","enzyme","epic","epoch","equal","equate","equip","equity","era","erect","eric","erode","erotic","errant","error","escape","escort","essay","essex","estate","esteem","ethic","ethnic","europe","evade","eve","even","event","ever","every","evict","evil","evoke","evolve","exact","exam","exceed","excel","except","excess","excise","excite","excuse","exempt","exert","exile","exist","exit","exodus","exotic","expand","expect","expert","expire","export","expose","extend","extra","eye","eyed","fabric","face","facial","fact","factor","fade","fail","faint","fair","fairly","fairy","faith","fake","falcon","fall","false","falter","fame","family","famine","famous","fan","fancy","far","farce","fare","farm","farmer","fast","fasten","faster","fat","fatal","fate","father","fatty","fault","faulty","fauna","fear","feast","feat","fed","fee","feeble","feed","feel","feet","fell","fellow","felt","female","fence","fend","ferry","fetal","fetch","feudal","fever","few","fewer","fiasco","fiddle","field","fiend","fierce","fiery","fifth","fifty","fig","fight","figure","file","fill","filled","filler","film","filter","filth","filthy","final","finale","find","fine","finery","finger","finish","finite","fire","firm","firmly","first","fiscal","fish","fisher","fist","fit","fitful","five","fix","flag","flair","flak","flame","flank","flap","flare","flash","flask","flat","flavor","flaw","fled","flee","fleece","fleet","flesh","fleshy","flew","flick","flight","flimsy","flint","flirt","float","flock","flood","floor","floppy","flora","floral","flour","flow","flower","fluent","fluffy","fluid","flung","flurry","flush","flute","flux","fly","flyer","foal","foam","focal","focus","fog","foil","fold","folk","follow","folly","fond","fondly","font","food","fool","foot","for","forbid","force","ford","forest","forge","forget","fork","form","formal","format","former","fort","forth","forty","forum","fossil","foster","foul","found","four","fourth","fox","foyer","frail","frame","franc","france","frank","fraud","fred","free","freed","freely","freeze","french","frenzy","fresh","friar","friday","fridge","fried","friend","fright","fringe","frock","frog","from","front","frost","frosty","frown","frozen","frugal","fruit","fry","fudge","fuel","full","fully","fumes","fun","fund","funny","fur","furry","fury","fuse","fusion","fuss","fussy","futile","future","fuzzy","gadget","gain","gala","galaxy","gale","gall","galley","gallon","gallop","gamble","game","gamma","gandhi","gang","gap","garage","garden","garlic","gas","gasp","gate","gather","gauge","gaunt","gave","gaze","gear","geese","gem","gemini","gender","gene","geneva","genial","genius","genre","gentle","gently","gentry","genus","george","germ","get","ghetto","ghost","giant","gift","giggle","gill","gilt","ginger","girl","give","given","glad","glade","glance","gland","glare","glass","glassy","gleam","glee","glide","global","globe","gloom","gloomy","gloria","glory","gloss","glossy","glove","glow","glue","gnat","gnu","goal","goat","gold","golden","golf","gone","gong","goo","good","goose","gore","gorge","gory","gosh","gospel","gossip","got","gothic","govern","gown","grab","grace","grade","grail","grain","grand","grant","grape","graph","grasp","grass","grassy","grate","grave","gravel","gravy","grease","greasy","great","greece","greed","greedy","greek","green","greet","grew","grey","grid","grief","grill","grim","grin","grind","grip","grit","gritty","groan","groin","groom","groove","gross","ground","group","grove","grow","grown","growth","grudge","grunt","guard","guess","guest","guide","guild","guilt","guilty","guise","guitar","gulf","gully","gun","gunman","guru","gut","guy","gypsy","habit","hack","had","hail","hair","hairy","haiti","hale","half","hall","halt","hamlet","hammer","hand","handle","handy","hang","hangar","hanoi","happen","happy","harass","harbor","hard","harder","hardly","hare","harem","harm","harp","harry","harsh","has","hash","hassle","haste","hasten","hasty","hat","hatch","hate","haul","haunt","havana","have","haven","havoc","hawaii","hawk","hay","hazard","haze","hazel","hazy","head","heal","health","heap","hear","heard","heart","hearth","hearty","heat","heater","heaven","heavy","hebrew","heck","hectic","hedge","heel","hefty","height","heir","held","helium","helix","hell","hello","helm","helmet","help","hemp","hence","henry","her","herald","herb","herd","here","hereby","hermes","hernia","hero","heroic","heroin","hey","heyday","hick","hidden","hide","high","higher","highly","hill","him","hind","hinder","hint","hippie","hire","his","hiss","hit","hive","hoard","hoarse","hobby","hockey","hold","holder","hole","hollow","holly","holy","home","honest","honey","hood","hook","hope","horn","horrid","horror","horse","hose","host","hot","hotel","hound","hour","house","hover","how","huge","hull","human","humane","humble","humid","hung","hunger","hungry","hunt","hurdle","hurl","hurry","hurt","hush","hut","hybrid","hymn","hyphen","ice","icing","icon","idaho","idea","ideal","idiom","idiot","idle","idly","idol","ignite","ignore","ill","image","immune","impact","imply","import","impose","inca","incest","inch","income","incur","indeed","index","india","indian","indoor","induce","inept","inert","infant","infect","infer","influx","inform","inject","injure","injury","ink","inlaid","inland","inlet","inmate","inn","innate","inner","input","insane","insect","insert","inset","inside","insist","insult","insure","intact","intake","intend","inter","into","invade","invent","invest","invite","invoke","inward","iowa","iran","iraq","irish","iron","ironic","irony","isaac","isabel","island","isle","israel","issue","italy","itch","item","itself","ivan","ivory","jack","jacket","jacob","jade","jaguar","jail","james","jane","japan","jargon","java","jaw","jazz","jeep","jelly","jerky","jest","jet","jewel","jewish","jim","job","jock","jockey","joe","john","join","joint","joke","jolly","jolt","jordan","joseph","joy","joyful","joyous","judge","judy","juice","juicy","july","jumble","jumbo","jump","june","jungle","junior","junk","junta","jury","just","kansas","karate","karl","keel","keen","keep","keeper","kenya","kept","kernel","kettle","key","khaki","kick","kid","kidnap","kidney","kill","killer","kin","kind","kindly","king","kiss","kite","kitten","knack","knee","kneel","knew","knife","knight","knit","knob","knock","knot","know","known","koran","korea","kuwait","label","lace","lack","lad","ladder","laden","lady","lagoon","laity","lake","lamb","lame","lamp","lance","land","lane","lap","lapse","large","larval","laser","last","latch","late","lately","latent","later","latest","latin","latter","laugh","launch","lava","lavish","law","lawful","lawn","lawyer","lay","layer","layman","lazy","lead","leader","leaf","leafy","league","leak","leaky","lean","leap","learn","lease","leash","least","leave","led","ledge","left","leg","legacy","legal","legend","legion","lemon","lend","length","lens","lent","leo","leper","lesion","less","lessen","lesser","lesson","lest","let","lethal","letter","level","lever","levy","lewis","liable","liar","libel","libya","lice","lick","lid","lie","lied","lier","life","lift","light","like","likely","limb","lime","limit","limp","line","linear","linen","linger","link","lint","lion","lip","liquid","liquor","list","listen","lit","live","lively","liver","liz","lizard","load","loaf","loan","lobby","lobe","local","locate","lock","locus","lodge","loft","lofty","log","logic","logo","london","lone","lonely","long","longer","look","loop","loose","loosen","loot","lord","lorry","lose","loss","lost","lot","lotion","lotus","loud","loudly","lounge","lousy","love","lovely","lover","low","lower","lowest","loyal","lucid","luck","lucky","lucy","lull","lump","lumpy","lunacy","lunar","lunch","lung","lure","lurid","lush","lust","lute","luther","luxury","lying","lymph","lynch","lyric","macho","macro","mad","madam","made","mafia","magic","magma","magnet","magnum","magpie","maid","maiden","mail","main","mainly","major","make","maker","male","malice","mall","malt","mammal","manage","mane","mania","manic","manner","manor","mantle","manual","manure","many","map","maple","marble","march","mare","margin","maria","marina","mark","market","marry","mars","marsh","martin","martyr","mary","mask","mason","mass","mast","master","mat","match","mate","matrix","matter","mature","maxim","may","maybe","mayor","maze","mead","meadow","meal","mean","meant","meat","medal","media","median","medic","medium","meet","mellow","melody","melon","melt","member","memo","memory","menace","mend","mental","mentor","menu","mercy","mere","merely","merge","merger","merit","merry","mesh","mess","messy","met","metal","meter","method","methyl","metric","metro","mexico","miami","mickey","mid","midday","middle","midst","midway","might","mighty","mild","mildew","mile","milk","milky","mill","mimic","mince","mind","mine","mini","mink","minor","mint","minus","minute","mire","mirror","mirth","misery","miss","mist","misty","mite","mix","moan","moat","mob","mobile","mock","mode","model","modem","modern","modest","modify","module","moist","molar","mold","mole","molten","moment","monday","money","monk","monkey","month","mood","moody","moon","moor","moral","morale","morbid","more","morgue","mortal","mortar","mosaic","moscow","moses","mosque","moss","most","mostly","moth","mother","motion","motive","motor","mount","mourn","mouse","mouth","move","movie","mrs","much","muck","mucus","mud","muddle","muddy","mule","mummy","munich","murder","murky","murmur","muscle","museum","music","mussel","must","mutant","mute","mutiny","mutter","mutton","mutual","muzzle","myopic","myriad","myself","mystic","myth","nadir","nail","naked","name","namely","nape","napkin","naples","narrow","nasal","nasty","nathan","nation","native","nature","nausea","naval","nave","navy","near","nearer","nearly","neat","neatly","neck","need","needle","needy","negate","neon","nepal","nephew","nerve","nest","net","neural","never","newly","next","nice","nicely","niche","nickel","niece","night","nile","nimble","nine","ninety","ninth","nobel","noble","nobody","node","noise","noisy","none","noon","nor","norm","normal","north","norway","nose","nosy","not","note","notice","notify","notion","noun","novel","novice","now","nozzle","null","numb","number","nurse","nut","nylon","nymph","oak","oar","oasis","oath","obese","obey","object","oblige","oboe","obtain","obtuse","occult","occupy","occur","ocean","octave","odd","off","offend","offer","office","offset","often","ohio","oil","oily","okay","old","older","oldest","olive","omega","omen","omit","once","one","onion","only","onset","onto","onus","onward","opaque","open","openly","opera","opium","oppose","optic","option","oracle","oral","orange","orbit","orchid","ordeal","order","organ","orgasm","orient","origin","ornate","orphan","oscar","other","otter","ought","ounce","our","out","outer","output","outset","oval","oven","over","overt","owe","owing","owl","own","owner","oxford","oxide","oxygen","oyster","ozone","pace","pack","packet","pact","pad","paddle","paddy","pagan","page","paid","pain","paint","pair","palace","pale","palm","pan","panama","panel","panic","papa","papal","paper","parade","parcel","pardon","parent","paris","parish","park","parody","parrot","part","partly","party","pascal","pass","past","paste","pastel","pastor","pastry","pat","patch","patent","path","patio","patrol","patron","paul","pause","pave","paw","pawn","pay","peace","peach","peak","pear","pearl","pedal","peel","peer","peking","pelvic","pelvis","pen","penal","pence","pencil","penny","people","pepper","per","perch","peril","period","perish","permit","person","peru","pest","pet","peter","petite","petrol","petty","phase","philip","phone","photo","phrase","piano","pick","picket","picnic","pie","piece","pier","pierce","piety","pig","pigeon","piggy","pike","pile","pill","pillar","pillow","pilot","pin","pinch","pine","pink","pint","pious","pipe","pirate","piss","pistol","piston","pit","pitch","pity","pivot","pixel","pizza","place","placid","plague","plain","plan","plane","planet","plank","plant","plasma","plate","play","player","plea","plead","please","pledge","plenty","plight","plot","plough","ploy","plug","plum","plump","plunge","plural","plus","plush","pocket","poem","poet","poetic","poetry","point","poison","poland","polar","pole","police","policy","polish","polite","poll","pollen","polo","pond","ponder","pony","pool","poor","poorly","pop","poppy","pore","pork","port","portal","pose","posh","post","postal","pot","potato","potent","pouch","pound","pour","powder","power","praise","pray","prayer","preach","prefer","prefix","press","pretty","price","pride","priest","primal","prime","prince","print","prior","prism","prison","privy","prize","probe","profit","prompt","prone","proof","propel","proper","prose","proton","proud","prove","proven","proxy","prune","pry","psalm","pseudo","psyche","pub","public","puff","pull","pulp","pulpit","pulsar","pulse","pump","punch","punish","punk","pupil","puppet","puppy","pure","purely","purge","purify","purple","purse","pursue","push","pushy","put","putt","puzzle","quaint","quake","quarry","quart","quartz","quebec","queen","queer","query","quest","queue","quick","quid","quiet","quilt","quirk","quit","quite","quiver","quiz","quota","quote","rabbit","race","racial","racism","rack","racket","radar","radio","radish","radius","raffle","raft","rage","raid","rail","rain","rainy","raise","rake","rally","ramp","random","range","rank","ransom","rape","rapid","rare","rarely","rarity","rash","rat","rate","rather","ratify","ratio","rattle","rave","raven","raw","ray","razor","reach","react","read","reader","ready","real","really","realm","reap","rear","reason","rebel","recall","recent","recess","recipe","reckon","record","recoup","rector","red","redeem","redo","reduce","reed","reef","reek","refer","reform","refuge","refuse","regal","regard","regent","regime","region","regret","reign","reject","relate","relax","relay","relic","relief","relish","rely","remain","remark","remedy","remind","remit","remote","remove","renal","render","rent","rental","repair","repeal","repeat","repent","reply","report","rescue","resent","reside","resign","resin","resist","resort","rest","result","resume","retail","retain","retina","retire","return","reveal","review","revise","revive","revolt","reward","rex","rhine","rhino","rhyme","rhythm","ribbon","rice","rich","rick","rid","ride","rider","ridge","rife","rifle","rift","right","rigid","rile","rim","ring","rinse","riot","ripe","ripen","ripple","rise","risk","risky","rite","ritual","ritz","rival","river","road","roar","roast","rob","robe","robert","robin","robot","robust","rock","rocket","rocky","rod","rode","rodent","rogue","role","roll","roman","rome","roof","room","root","rope","rose","rosy","rot","rotate","rotor","rotten","rouge","rough","round","route","rover","row","royal","rub","rubber","rubble","ruby","rudder","rude","rug","rugby","ruin","rule","ruler","rumble","rump","run","rune","rung","runway","rural","rush","russia","rust","rustic","rusty","sack","sacred","sad","saddle","sadism","sadly","safari","safe","safely","safer","safety","saga","sage","sahara","said","sail","sailor","saint","sake","salad","salary","sale","saline","saliva","salmon","saloon","salt","salty","salute","sam","same","sample","sand","sandy","sane","sash","satin","satire","saturn","sauce","saucer","saudi","sauna","savage","save","saw","say","scale","scalp","scan","scant","scar","scarce","scare","scarf","scary","scene","scenic","scent","school","scold","scope","score","scorn","scotch","scott","scout","scrap","scrape","scream","screen","screw","script","scroll","scrub","scum","sea","seal","seam","seaman","search","season","seat","second","secret","sect","sector","secure","see","seed","seeing","seek","seem","seize","seldom","select","self","sell","seller","semi","senate","send","senile","senior","sense","sensor","sent","sentry","seoul","sequel","serene","serial","series","sermon","serum","serve","server","set","settle","seven","severe","sew","sewage","shabby","shade","shadow","shady","shaft","shaggy","shah","shake","shaky","shall","sham","shame","shape","share","shark","sharp","shawl","she","shear","sheen","sheep","sheer","sheet","shelf","shell","sherry","shield","shift","shine","shiny","ship","shire","shirk","shirt","shiver","shock","shoe","shook","shoot","shop","shore","short","shot","should","shout","show","shower","shrank","shrewd","shrill","shrimp","shrine","shrink","shrub","shrug","shut","shy","shyly","sick","side","siege","sigh","sight","sigma","sign","signal","silent","silk","silken","silky","sill","silly","silo","silver","simple","simply","since","sinful","sing","singer","single","sink","sir","sire","siren","sister","sit","site","sitter","six","sixth","sixty","size","sketch","skill","skin","skinny","skip","skirt","skull","sky","slab","slack","slain","slam","slang","slap","slat","slate","slave","sleek","sleep","sleepy","sleeve","slice","slick","slid","slide","slight","slim","slimy","sling","slip","slit","slogan","slope","sloppy","slot","slow","slowly","slug","slum","slump","smack","small","smart","smash","smear","smell","smelly","smelt","smile","smite","smoke","smoky","smooth","smug","snack","snail","snake","snap","snatch","sneak","snow","snowy","snug","soak","soap","sober","soccer","social","sock","socket","socks","soda","sodden","sodium","sofa","soft","soften","softly","soggy","soil","solar","sold","sole","solely","solemn","solid","solo","solve","some","son","sonar","sonata","song","sonic","sony","soon","sooner","soot","soothe","sordid","sore","sorrow","sorry","sort","soul","sound","soup","sour","source","soviet","sow","space","spade","spain","span","spare","spark","sparse","spasm","spat","spate","speak","spear","speech","speed","speedy","spell","spend","sphere","spice","spicy","spider","spiky","spill","spin","spinal","spine","spiral","spirit","spit","spite","splash","split","spoil","spoke","sponge","spoon","sport","spot","spouse","spray","spread","spree","spring","sprint","spur","squad","square","squash","squat","squid","stab","stable","stack","staff","stage","stain","stair","stairs","stake","stale","stall","stamp","stance","stand","staple","star","starch","stare","stark","start","starve","state","static","statue","status","stay","stead","steady","steak","steal","steam","steel","steep","steer","stem","stench","step","stereo","stern","stew","stick","sticky","stiff","stifle","stigma","still","sting","stint","stir","stitch","stock","stocky","stone","stony","stool","stop","store","storm","stormy","story","stout","stove","stow","strain","strait","strand","strap","strata","straw","stray","streak","stream","street","stress","strict","stride","strife","strike","string","strip","stripe","strive","stroke","stroll","strong","stud","studio","study","stuff","stuffy","stunt","stupid","sturdy","style","submit","subtle","subtly","suburb","such","sudden","sue","suez","suffer","sugar","suit","suite","suitor","sullen","sultan","sum","summer","summit","summon","sun","sunday","sunny","sunset","super","superb","supper","supple","supply","sure","surely","surf","surge","survey","suture","swamp","swan","swap","swarm","sway","swear","sweat","sweaty","sweden","sweep","sweet","swell","swift","swim","swine","swing","swirl","swiss","switch","sword","swore","sydney","symbol","synod","syntax","syria","syrup","system","table","tablet","taboo","tacit","tackle","tact","tactic","tail","tailor","taiwan","take","tale","talent","talk","tall","tally","tame","tampa","tan","tandem","tangle","tank","tap","tape","target","tariff","tarp","tart","tarzan","task","taste","tasty","tattoo","taurus","taut","tavern","tax","taxi","tea","teach","teak","team","tear","tease","tech","teeth","tell","temper","temple","tempo","tempt","ten","tenant","tend","tender","tendon","tennis","tenor","tense","tent","tenth","tenure","teresa","term","terror","terse","test","texas","text","thank","thaw","them","theme","thence","theory","there","these","thesis","they","thick","thief","thigh","thin","thing","think","third","thirst","thirty","this","thomas","thorn","those","though","thread","threat","three","thrill","thrive","throat","throne","throng","throw","thrust","thud","thug","thumb","thus","thyme","tibet","tick","ticket","tidal","tide","tidy","tie","tier","tiger","tight","tile","till","tilt","timber","time","timid","tin","tiny","tip","tire","tissue","title","toad","toast","today","toe","toilet","token","tokyo","told","toll","tom","tomato","tomb","tonal","tone","tongue","tonic","too","took","tool","tooth","top","topaz","topic","torch","torque","torso","tort","toss","total","touch","tough","tour","toward","towel","tower","town","toxic","toxin","toy","trace","track","tract","trade","tragic","trail","train","trait","tram","trance","trap","trauma","travel","tray","tread","treat","treaty","treble","tree","trek","tremor","trench","trend","trendy","trial","tribal","tribe","trick","tricky","tried","trifle","trim","trio","trip","triple","troop","trophy","trot","trough","trout","truce","truck","true","truly","trunk","trust","truth","try","tube","tumble","tuna","tundra","tune","tunic","tunnel","turban","turf","turk","turkey","turn","turtle","tutor","tweed","twelve","twenty","twice","twin","twist","two","tycoon","tying","type","tyrant","ugly","ulcer","ultra","umpire","unable","uncle","under","uneasy","unfair","unify","union","unique","unit","unite","unity","unlike","unrest","unruly","until","update","upheld","uphill","uphold","upon","upper","uproar","upset","upshot","uptake","upturn","upward","urban","urge","urgent","urging","urine","usable","usage","use","useful","user","usual","utmost","utter","vacant","vacuum","vague","vain","valet","valid","valley","value","valve","van","vanish","vanity","vary","vase","vast","vat","vault","vector","veil","vein","velvet","vendor","veneer","venice","venom","vent","venue","venus","verb","verbal","verge","verify","verity","verse","versus","very","vessel","vest","vet","veto","via","viable","vicar","vice","victim","victor","video","vienna","view","vigil","viking","vile","villa","vine","vinyl","viola","violet","violin","viral","virgo","virtue","virus","visa","vision","visit","visual","vital","vivid","vocal","vodka","vogue","voice","void","volley","volume","vote","vowel","voyage","vulgar","wade","wage","waist","wait","waiter","wake","walk","walker","wall","wallet","walnut","wander","want","war","warden","warm","warmth","warn","warp","warsaw","wary","was","wash","wasp","waste","watch","water","watery","wave","wax","way","weak","weaken","wealth","weapon","wear","weary","weave","wedge","wee","weed","week","weekly","weep","weigh","weight","weird","well","were","west","wet","whale","wharf","what","wheat","wheel","when","whence","where","which","whiff","while","whim","whip","whisky","white","who","whole","wholly","whom","whose","why","wicked","wide","widely","widen","wider","widow","width","wife","wig","wild","wildly","will","willow","wily","win","wind","window","windy","wine","wing","wink","winner","winter","wipe","wire","wisdom","wise","wish","wit","witch","with","within","witty","wizard","woke","wolf","wolves","woman","womb","won","wonder","wood","wooden","woods","woody","wool","word","work","worker","world","worm","worry","worse","worst","worth","worthy","would","wound","wrap","wrath","wreath","wreck","wring","wrist","writ","write","writer","wrong","xerox","yacht","yale","yard","yarn","yeah","year","yeard","yeast","yellow","yet","yield","yogurt","yolk","you","young","your","youth","zaire","zeal","zebra","zenith","zero","zeus","zigzag","zinc","zombie","zone"],C0=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function HT(n){return i1.apply(this,arguments)}function i1(){return i1=Ge(function*(n){return new Uint8Array(yield crypto.subtle.digest("SHA-256",n))}),i1.apply(this,arguments)}function tQ(n){return(new TextDecoder).decode(n)}function W3(n){return(new TextEncoder).encode(n)}function $3(n,e,t){return s1.apply(this,arguments)}function s1(){return s1=Ge(function*(n,e,t){const o="string"==typeof e?W3(e):e,s="string"==typeof t?W3(t):t;try{const l=yield window.crypto.subtle.importKey("raw",o,{name:"HMAC",hash:n},!1,["sign"]);return new Uint8Array(yield window.crypto.subtle.sign("HMAC",l,s))}catch{throw new Error("Fallback if SubtleCrypto fails is not implemented")}}),s1.apply(this,arguments)}function zT(n,e,t){return a1.apply(this,arguments)}function a1(){return a1=Ge(function*(n,e,t){const o=new Uint8Array(37);o[0]=0,o.set(n,1),new DataView(o.buffer,o.byteOffset,o.byteLength).setUint32(33,t,!1),o[33]|=128;const s=yield $3("SHA-512",e,o);return{keyData:s.subarray(0,32),chainCode:s.subarray(32)}}),a1.apply(this,arguments)}var VT=G(7715);const T0=new VT.ec("secp256k1"),nQ=2147483648;function k0(n,e,t){return c1.apply(this,arguments)}function c1(){return c1=Ge(function*(n,e,t){const o=0!=(t&nQ),s=new Uint8Array(37),l=Mr(T0.keyFromPrivate(n).getPublic(!0,"hex"));o?(s[0]=0,s.set(n,1)):s.set(l,0),new DataView(s.buffer,s.byteOffset,s.byteLength).setUint32(33,t,!1);const u=yield $3("SHA-512",e,s),h=u.subarray(0,32),A=u.subarray(32);try{const y=T0.keyFromPrivate(n).getPrivate().add(T0.keyFromPrivate(h).getPrivate());return y.eqn(0)?k0(n,e,t+1):{keyData:Mr(T0.keyFromPrivate(y.toArray()).getPrivate("hex")),chainCode:A}}catch{return k0(n,e,t+1)}}),c1.apply(this,arguments)}function Z3(n,e,t,o,s){return l1.apply(this,arguments)}function l1(){return l1=Ge(function*(n,e,t,o,s){const l="string"==typeof e?W3(e):e,u="string"==typeof t?W3(t):t;try{const h=yield window.crypto.subtle.importKey("raw",l,{name:"PBKDF2",hash:n},!1,["deriveBits"]);return new Uint8Array(yield window.crypto.subtle.deriveBits({name:"PBKDF2",hash:n,salt:u,iterations:o},h,s<<3))}catch{throw new Error("(BUG) Non-Exhaustive switch statement for algorithms")}}),l1.apply(this,arguments)}function u1(){return u1=Ge(function*(n,e){return Z3("SHA-512",n.join(" "),`mnemonic${e}`,2048,64)}),u1.apply(this,arguments)}var oQ=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,d1=Math.ceil,Qs=Math.floor,Di="[BigNumber Error] ",KT=Di+"Number primitive has more than 15 significant digits: ",ws=1e14,f1=9007199254740991,h1=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],nc=1e7,Go=1e9;function es(n){var e=0|n;return n>0||n===e?e:e-1}function ts(n){for(var e,t,o=1,s=n.length,l=n[0]+"";oy^t?1:-1;for(h=(A=s.length)<(y=l.length)?A:y,u=0;ul[u]^t?1:-1;return A==y?0:A>y^t?1:-1}function oo(n,e,t,o){if(nt||n!==Qs(n))throw Error(Di+(o||"Argument")+("number"==typeof n?nt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(n))}function D0(n){var e=n.c.length-1;return es(n.e/14)==e&&n.c[e]%2!=0}function E0(n,e){return(n.length>1?n.charAt(0)+"."+n.slice(1):n)+(e<0?"e":"e+")+e}function pa(n,e,t){var o,s;if(e<0){for(s=t+".";++e;s+=t);n=s+n}else if(++e>(o=n.length)){for(s=t,e-=o;--e;s+=t);n+=s}else eU?Te.c=Te.e=null:ue.e=10;Ke/=10,Ue++);return void(Ue>U?Te.c=Te.e=null:(Te.e=Ue,Te.c=[ue]))}De=String(ue)}else{if(!oQ.test(De=String(ue)))return o(Te,De,Se);Te.s=45==De.charCodeAt(0)?(De=De.slice(1),-1):1}(Ue=De.indexOf("."))>-1&&(De=De.replace(".","")),(Ke=De.search(/e/i))>0?(Ue<0&&(Ue=Ke),Ue+=+De.slice(Ke+1),De=De.substring(0,Ke)):Ue<0&&(Ue=De.length)}else{if(oo(ge,2,ze.length,"Base"),10==ge&&tt)return cn(Te=new Pe(ue),u+Te.e+1,h);if(De=String(ue),Se="number"==typeof ue){if(0*ue!=0)return o(Te,De,Se,ge);if(Te.s=1/ue<0?(De=De.slice(1),-1):1,Pe.DEBUG&&De.replace(/^0\.0*|\./,"").length>15)throw Error(KT+ue)}else Te.s=45===De.charCodeAt(0)?(De=De.slice(1),-1):1;for(ve=ze.slice(0,ge),Ue=Ke=0,_e=De.length;Ke<_e;Ke++)if(ve.indexOf(Qe=De.charAt(Ke))<0){if("."==Qe){if(Ke>Ue){Ue=_e;continue}}else if(!Ne&&(De==De.toUpperCase()&&(De=De.toLowerCase())||De==De.toLowerCase()&&(De=De.toUpperCase()))){Ne=!0,Ke=-1,Ue=0;continue}return o(Te,String(ue),Se,ge)}Se=!1,(Ue=(De=t(De,ge,10,Te.s)).indexOf("."))>-1?De=De.replace(".",""):Ue=De.length}for(Ke=0;48===De.charCodeAt(Ke);Ke++);for(_e=De.length;48===De.charCodeAt(--_e););if(De=De.slice(Ke,++_e)){if(_e-=Ke,Se&&Pe.DEBUG&&_e>15&&(ue>f1||ue!==Qs(ue)))throw Error(KT+Te.s*ue);if((Ue=Ue-Ke-1)>U)Te.c=Te.e=null;else if(Ue=y)?E0(_e,Ke):pa(_e,Ke,"0");else if(Ue=(ue=cn(new Pe(ue),ge,ve)).e,Se=(_e=ts(ue.c)).length,1==Qe||2==Qe&&(ge<=Ue||Ue<=A)){for(;SeSe){if(--ge>0)for(_e+=".";ge--;_e+="0");}else if((ge+=Ue-Se)>0)for(Ue+1==Se&&(_e+=".");ge--;_e+="0");return ue.s<0&&Ne?"-"+_e:_e}function Et(ue,ge){for(var ve,Qe=1,Ne=new Pe(ue[0]);Qe=10;Ne/=10,Qe++);return(ve=Qe+14*ve-1)>U?ue.c=ue.e=null:ve=10;Se/=10,Ne++);if((Ue=ge-Ne)<0)Ue+=14,Te=(_e=$e[De=0])/Tt[Ne-(Ke=ge)-1]%10|0;else if((De=d1((Ue+1)/14))>=$e.length){if(!Qe)break e;for(;$e.length<=De;$e.push(0));_e=Te=0,Ne=1,Ke=(Ue%=14)-14+1}else{for(_e=Se=$e[De],Ne=1;Se>=10;Se/=10,Ne++);Te=(Ke=(Ue%=14)-14+Ne)<0?0:_e/Tt[Ne-Ke-1]%10|0}if(Qe=Qe||ge<0||null!=$e[De+1]||(Ke<0?_e:_e%Tt[Ne-Ke-1]),Qe=ve<4?(Te||Qe)&&(0==ve||ve==(ue.s<0?3:2)):Te>5||5==Te&&(4==ve||Qe||6==ve&&(Ue>0?Ke>0?_e/Tt[Ne-Ke]:0:$e[De-1])%10&1||ve==(ue.s<0?8:7)),ge<1||!$e[0])return $e.length=0,Qe?($e[0]=Tt[(14-(ge-=ue.e+1)%14)%14],ue.e=-ge||0):$e[0]=ue.e=0,ue;if(0==Ue?($e.length=De,Se=1,De--):($e.length=De+1,Se=Tt[14-Ue],$e[De]=Ke>0?Qs(_e/Tt[Ne-Ke]%Tt[Ke])*Se:0),Qe)for(;;){if(0==De){for(Ue=1,Ke=$e[0];Ke>=10;Ke/=10,Ue++);for(Ke=$e[0]+=Se,Se=1;Ke>=10;Ke/=10,Se++);Ue!=Se&&(ue.e++,$e[0]==ws&&($e[0]=1));break}if($e[De]+=Se,$e[De]!=ws)break;$e[De--]=0,Se=1}for(Ue=$e.length;0===$e[--Ue];$e.pop());}ue.e>U?ue.c=ue.e=null:ue.e=y?E0(ge,ve):pa(ge,ve,"0"),ue.s<0?"-"+ge:ge)}return Pe.clone=YT,Pe.ROUND_UP=0,Pe.ROUND_DOWN=1,Pe.ROUND_CEIL=2,Pe.ROUND_FLOOR=3,Pe.ROUND_HALF_UP=4,Pe.ROUND_HALF_DOWN=5,Pe.ROUND_HALF_EVEN=6,Pe.ROUND_HALF_CEIL=7,Pe.ROUND_HALF_FLOOR=8,Pe.EUCLID=9,Pe.config=Pe.set=function(ue){var ge,ve;if(null!=ue){if("object"!=typeof ue)throw Error(Di+"Object expected: "+ue);if(ue.hasOwnProperty(ge="DECIMAL_PLACES")&&(oo(ve=ue[ge],0,Go,ge),u=ve),ue.hasOwnProperty(ge="ROUNDING_MODE")&&(oo(ve=ue[ge],0,8,ge),h=ve),ue.hasOwnProperty(ge="EXPONENTIAL_AT")&&((ve=ue[ge])&&ve.pop?(oo(ve[0],-Go,0,ge),oo(ve[1],0,Go,ge),A=ve[0],y=ve[1]):(oo(ve,-Go,Go,ge),A=-(y=ve<0?-ve:ve))),ue.hasOwnProperty(ge="RANGE"))if((ve=ue[ge])&&ve.pop)oo(ve[0],-Go,-1,ge),oo(ve[1],1,Go,ge),D=ve[0],U=ve[1];else{if(oo(ve,-Go,Go,ge),!ve)throw Error(Di+ge+" cannot be zero: "+ve);D=-(U=ve<0?-ve:ve)}if(ue.hasOwnProperty(ge="CRYPTO")){if((ve=ue[ge])!==!!ve)throw Error(Di+ge+" not true or false: "+ve);if(ve){if(!(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)))throw q=!ve,Error(Di+"crypto unavailable");q=ve}else q=ve}if(ue.hasOwnProperty(ge="MODULO_MODE")&&(oo(ve=ue[ge],0,9,ge),ce=ve),ue.hasOwnProperty(ge="POW_PRECISION")&&(oo(ve=ue[ge],0,Go,ge),ye=ve),ue.hasOwnProperty(ge="FORMAT")){if("object"!=typeof(ve=ue[ge]))throw Error(Di+ge+" not an object: "+ve);Be=ve}if(ue.hasOwnProperty(ge="ALPHABET")){if("string"!=typeof(ve=ue[ge])||/^.?$|[+\-.\s]|(.).*\1/.test(ve))throw Error(Di+ge+" invalid: "+ve);tt="0123456789"==ve.slice(0,10),ze=ve}}return{DECIMAL_PLACES:u,ROUNDING_MODE:h,EXPONENTIAL_AT:[A,y],RANGE:[D,U],CRYPTO:q,MODULO_MODE:ce,POW_PRECISION:ye,FORMAT:Be,ALPHABET:ze}},Pe.isBigNumber=function(ue){if(!ue||!0!==ue._isBigNumber)return!1;if(!Pe.DEBUG)return!0;var ge,ve,Qe=ue.c,Ne=ue.e,Ue=ue.s;e:if("[object Array]"=={}.toString.call(Qe)){if((1===Ue||-1===Ue)&&Ne>=-Go&&Ne<=Go&&Ne===Qs(Ne)){if(0===Qe[0]){if(0===Ne&&1===Qe.length)return!0;break e}if((ge=(Ne+1)%14)<1&&(ge+=14),String(Qe[0]).length==ge){for(ge=0;ge=ws||ve!==Qs(ve))break e;if(0!==ve)return!0}}}else if(null===Qe&&null===Ne&&(null===Ue||1===Ue||-1===Ue))return!0;throw Error(Di+"Invalid BigNumber: "+ue)},Pe.maximum=Pe.max=function(){return Et(arguments,s.lt)},Pe.minimum=Pe.min=function(){return Et(arguments,s.gt)},Pe.random=(ue=9007199254740992,ge=Math.random()*ue&2097151?function(){return Qs(Math.random()*ue)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(ve){var Qe,Ne,Ue,Ke,Se,_e=0,De=[],Te=new Pe(l);if(null==ve?ve=u:oo(ve,0,Go),Ke=d1(ve/14),q)if(crypto.getRandomValues){for(Qe=crypto.getRandomValues(new Uint32Array(Ke*=2));_e>>11))>=9e15?(Ne=crypto.getRandomValues(new Uint32Array(2)),Qe[_e]=Ne[0],Qe[_e+1]=Ne[1]):(De.push(Se%1e14),_e+=2);_e=Ke/2}else{if(!crypto.randomBytes)throw q=!1,Error(Di+"crypto unavailable");for(Qe=crypto.randomBytes(Ke*=7);_e=9e15?crypto.randomBytes(7).copy(Qe,_e):(De.push(Se%1e14),_e+=7);_e=Ke/7}if(!q)for(;_e=10;Se/=10,_e++);_e<14&&(Ue-=14-_e)}return Te.e=Ue,Te.c=De,Te}),Pe.sum=function(){for(var ue=1,ge=arguments,ve=new Pe(ge[0]);ueNe-1&&(null==Se[Ke+1]&&(Se[Ke+1]=0),Se[Ke+1]+=Se[Ke]/Ne|0,Se[Ke]%=Ne)}return Se.reverse()}return function(ve,Qe,Ne,Ue,Ke){var Se,_e,De,Te,$e,Tt,Lt,on,qn=ve.indexOf("."),mn=u,Bn=h;for(qn>=0&&(Te=ye,ye=0,ve=ve.replace(".",""),Tt=(on=new Pe(Qe)).pow(ve.length-qn),ye=Te,on.c=ge(pa(ts(Tt.c),Tt.e,"0"),10,Ne,ue),on.e=on.c.length),De=Te=(Lt=ge(ve,Qe,Ne,Ke?(Se=ze,ue):(Se=ue,ze))).length;0==Lt[--Te];Lt.pop());if(!Lt[0])return Se.charAt(0);if(qn<0?--De:(Tt.c=Lt,Tt.e=De,Tt.s=Ue,Lt=(Tt=e(Tt,on,mn,Bn,Ne)).c,$e=Tt.r,De=Tt.e),qn=Lt[_e=De+mn+1],Te=Ne/2,$e=$e||_e<0||null!=Lt[_e+1],$e=Bn<4?(null!=qn||$e)&&(0==Bn||Bn==(Tt.s<0?3:2)):qn>Te||qn==Te&&(4==Bn||$e||6==Bn&&1&Lt[_e-1]||Bn==(Tt.s<0?8:7)),_e<1||!Lt[0])ve=$e?pa(Se.charAt(1),-mn,Se.charAt(0)):Se.charAt(0);else{if(Lt.length=_e,$e)for(--Ne;++Lt[--_e]>Ne;)Lt[_e]=0,_e||(++De,Lt=[1].concat(Lt));for(Te=Lt.length;!Lt[--Te];);for(qn=0,ve="";qn<=Te;ve+=Se.charAt(Lt[qn++]));ve=pa(ve,De,Se.charAt(0))}return ve}}(),e=function(){function ue(Qe,Ne,Ue){var Ke,Se,_e,De,Te=0,$e=Qe.length,Tt=Ne%nc,Lt=Ne/nc|0;for(Qe=Qe.slice();$e--;)Te=((Se=Tt*(_e=Qe[$e]%nc)+(Ke=Lt*_e+(De=Qe[$e]/nc|0)*Tt)%nc*nc+Te)/Ue|0)+(Ke/nc|0)+Lt*De,Qe[$e]=Se%Ue;return Te&&(Qe=[Te].concat(Qe)),Qe}function ge(Qe,Ne,Ue,Ke){var Se,_e;if(Ue!=Ke)_e=Ue>Ke?1:-1;else for(Se=_e=0;SeNe[Se]?1:-1;break}return _e}function ve(Qe,Ne,Ue,Ke){for(var Se=0;Ue--;)Qe[Ue]-=Se,Qe[Ue]=(Se=Qe[Ue]1;Qe.splice(0,1));}return function(Qe,Ne,Ue,Ke,Se){var _e,De,Te,$e,Tt,Lt,on,qn,mn,Bn,er,Vn,po,Gr,zo,Jr,wi,Ao=Qe.s==Ne.s?1:-1,Kr=Qe.c,Or=Ne.c;if(!(Kr&&Kr[0]&&Or&&Or[0]))return new Pe(Qe.s&&Ne.s&&(Kr?!Or||Kr[0]!=Or[0]:Or)?Kr&&0==Kr[0]||!Or?0*Ao:Ao/0:NaN);for(mn=(qn=new Pe(Ao)).c=[],Ao=Ue+(De=Qe.e-Ne.e)+1,Se||(Se=ws,De=es(Qe.e/14)-es(Ne.e/14),Ao=Ao/14|0),Te=0;Or[Te]==(Kr[Te]||0);Te++);if(Or[Te]>(Kr[Te]||0)&&De--,Ao<0)mn.push(1),$e=!0;else{for(Gr=Kr.length,Jr=Or.length,Te=0,Ao+=2,(Tt=Qs(Se/(Or[0]+1)))>1&&(Or=ue(Or,Tt,Se),Kr=ue(Kr,Tt,Se),Jr=Or.length,Gr=Kr.length),po=Jr,er=(Bn=Kr.slice(0,Jr)).length;er=Se/2&&zo++;do{if(Tt=0,(_e=ge(Or,Bn,Jr,er))<0){if(Vn=Bn[0],Jr!=er&&(Vn=Vn*Se+(Bn[1]||0)),(Tt=Qs(Vn/zo))>1)for(Tt>=Se&&(Tt=Se-1),on=(Lt=ue(Or,Tt,Se)).length,er=Bn.length;1==ge(Lt,Bn,on,er);)Tt--,ve(Lt,Jr=10;Ao/=10,Te++);cn(qn,Ue+(qn.e=Te+14*De-1)+1,Ke,$e)}else qn.e=De,qn.r=+$e;return qn}}(),o=function(){var ue=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ge=/^([^.]+)\.$/,ve=/^\.([^.]+)$/,Qe=/^-?(Infinity|NaN)$/,Ne=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(Ue,Ke,Se,_e){var De,Te=Se?Ke:Ke.replace(Ne,"");if(Qe.test(Te))Ue.s=isNaN(Te)?null:Te<0?-1:1;else{if(!Se&&(Te=Te.replace(ue,function($e,Tt,Lt){return De="x"==(Lt=Lt.toLowerCase())?16:"b"==Lt?2:8,_e&&_e!=De?$e:Tt}),_e&&(De=_e,Te=Te.replace(ge,"$1").replace(ve,"0.$1")),Ke!=Te))return new Pe(Te,De);if(Pe.DEBUG)throw Error(Di+"Not a"+(_e?" base "+_e:"")+" number: "+Ke);Ue.s=null}Ue.c=Ue.e=null}}(),s.absoluteValue=s.abs=function(){var ue=new Pe(this);return ue.s<0&&(ue.s=1),ue},s.comparedTo=function(ue,ge){return Yl(this,new Pe(ue,ge))},s.decimalPlaces=s.dp=function(ue,ge){var ve,Qe,Ne;if(null!=ue)return oo(ue,0,Go),null==ge?ge=h:oo(ge,0,8),cn(new Pe(this),ue+this.e+1,ge);if(!(ve=this.c))return null;if(Qe=14*((Ne=ve.length-1)-es(this.e/14)),Ne=ve[Ne])for(;Ne%10==0;Ne/=10,Qe--);return Qe<0&&(Qe=0),Qe},s.dividedBy=s.div=function(ue,ge){return e(this,new Pe(ue,ge),u,h)},s.dividedToIntegerBy=s.idiv=function(ue,ge){return e(this,new Pe(ue,ge),0,1)},s.exponentiatedBy=s.pow=function(ue,ge){var ve,Qe,Ne,Ue,Se,_e,De,Te,$e=this;if((ue=new Pe(ue)).c&&!ue.isInteger())throw Error(Di+"Exponent not an integer: "+Ar(ue));if(null!=ge&&(ge=new Pe(ge)),Se=ue.e>14,!$e.c||!$e.c[0]||1==$e.c[0]&&!$e.e&&1==$e.c.length||!ue.c||!ue.c[0])return Te=new Pe(Math.pow(+Ar($e),Se?2-D0(ue):+Ar(ue))),ge?Te.mod(ge):Te;if(_e=ue.s<0,ge){if(ge.c?!ge.c[0]:!ge.s)return new Pe(NaN);(Qe=!_e&&$e.isInteger()&&ge.isInteger())&&($e=$e.mod(ge))}else{if(ue.e>9&&($e.e>0||$e.e<-1||(0==$e.e?$e.c[0]>1||Se&&$e.c[1]>=24e7:$e.c[0]<8e13||Se&&$e.c[0]<=9999975e7)))return Ue=$e.s<0&&D0(ue)?-0:0,$e.e>-1&&(Ue=1/Ue),new Pe(_e?1/Ue:Ue);ye&&(Ue=d1(ye/14+2))}for(Se?(ve=new Pe(.5),_e&&(ue.s=1),De=D0(ue)):De=(Ne=Math.abs(+Ar(ue)))%2,Te=new Pe(l);;){if(De){if(!(Te=Te.times($e)).c)break;Ue?Te.c.length>Ue&&(Te.c.length=Ue):Qe&&(Te=Te.mod(ge))}if(Ne){if(0===(Ne=Qs(Ne/2)))break;De=Ne%2}else if(cn(ue=ue.times(ve),ue.e+1,1),ue.e>14)De=D0(ue);else{if(0==(Ne=+Ar(ue)))break;De=Ne%2}$e=$e.times($e),Ue?$e.c&&$e.c.length>Ue&&($e.c.length=Ue):Qe&&($e=$e.mod(ge))}return Qe?Te:(_e&&(Te=l.div(Te)),ge?Te.mod(ge):Ue?cn(Te,ye,h,void 0):Te)},s.integerValue=function(ue){var ge=new Pe(this);return null==ue?ue=h:oo(ue,0,8),cn(ge,ge.e+1,ue)},s.isEqualTo=s.eq=function(ue,ge){return 0===Yl(this,new Pe(ue,ge))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(ue,ge){return Yl(this,new Pe(ue,ge))>0},s.isGreaterThanOrEqualTo=s.gte=function(ue,ge){return 1===(ge=Yl(this,new Pe(ue,ge)))||0===ge},s.isInteger=function(){return!!this.c&&es(this.e/14)>this.c.length-2},s.isLessThan=s.lt=function(ue,ge){return Yl(this,new Pe(ue,ge))<0},s.isLessThanOrEqualTo=s.lte=function(ue,ge){return-1===(ge=Yl(this,new Pe(ue,ge)))||0===ge},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(ue,ge){var ve,Qe,Ne,Ue,Ke=this,Se=Ke.s;if(ge=(ue=new Pe(ue,ge)).s,!Se||!ge)return new Pe(NaN);if(Se!=ge)return ue.s=-ge,Ke.plus(ue);var _e=Ke.e/14,De=ue.e/14,Te=Ke.c,$e=ue.c;if(!_e||!De){if(!Te||!$e)return Te?(ue.s=-ge,ue):new Pe($e?Ke:NaN);if(!Te[0]||!$e[0])return $e[0]?(ue.s=-ge,ue):new Pe(Te[0]?Ke:3==h?-0:0)}if(_e=es(_e),De=es(De),Te=Te.slice(),Se=_e-De){for((Ue=Se<0)?(Se=-Se,Ne=Te):(De=_e,Ne=$e),Ne.reverse(),ge=Se;ge--;Ne.push(0));Ne.reverse()}else for(Qe=(Ue=(Se=Te.length)<(ge=$e.length))?Se:ge,Se=ge=0;ge0)for(;ge--;Te[ve++]=0);for(ge=ws-1;Qe>Se;){if(Te[--Qe]<$e[Qe]){for(ve=Qe;ve&&!Te[--ve];Te[ve]=ge);--Te[ve],Te[Qe]+=ws}Te[Qe]-=$e[Qe]}for(;0==Te[0];Te.splice(0,1),--De);return Te[0]?En(ue,Te,De):(ue.s=3==h?-1:1,ue.c=[ue.e=0],ue)},s.modulo=s.mod=function(ue,ge){var ve,Qe,Ne=this;return ue=new Pe(ue,ge),!Ne.c||!ue.s||ue.c&&!ue.c[0]?new Pe(NaN):!ue.c||Ne.c&&!Ne.c[0]?new Pe(Ne):(9==ce?(Qe=ue.s,ue.s=1,ve=e(Ne,ue,0,3),ue.s=Qe,ve.s*=Qe):ve=e(Ne,ue,0,ce),!(ue=Ne.minus(ve.times(ue))).c[0]&&1==ce&&(ue.s=Ne.s),ue)},s.multipliedBy=s.times=function(ue,ge){var ve,Qe,Ne,Ue,Ke,Se,_e,De,Te,$e,Tt,Lt,on,qn,mn,Bn=this,er=Bn.c,Vn=(ue=new Pe(ue,ge)).c;if(!(er&&Vn&&er[0]&&Vn[0]))return!Bn.s||!ue.s||er&&!er[0]&&!Vn||Vn&&!Vn[0]&&!er?ue.c=ue.e=ue.s=null:(ue.s*=Bn.s,er&&Vn?(ue.c=[0],ue.e=0):ue.c=ue.e=null),ue;for(Qe=es(Bn.e/14)+es(ue.e/14),ue.s*=Bn.s,(_e=er.length)<($e=Vn.length)&&(on=er,er=Vn,Vn=on,Ne=_e,_e=$e,$e=Ne),Ne=_e+$e,on=[];Ne--;on.push(0));for(qn=ws,mn=nc,Ne=$e;--Ne>=0;){for(ve=0,Tt=Vn[Ne]%mn,Lt=Vn[Ne]/mn|0,Ue=Ne+(Ke=_e);Ue>Ne;)ve=((De=Tt*(De=er[--Ke]%mn)+(Se=Lt*De+(Te=er[Ke]/mn|0)*Tt)%mn*mn+on[Ue]+ve)/qn|0)+(Se/mn|0)+Lt*Te,on[Ue--]=De%qn;on[Ue]=ve}return ve?++Qe:on.splice(0,1),En(ue,on,Qe)},s.negated=function(){var ue=new Pe(this);return ue.s=-ue.s||null,ue},s.plus=function(ue,ge){var ve,Qe=this,Ne=Qe.s;if(ge=(ue=new Pe(ue,ge)).s,!Ne||!ge)return new Pe(NaN);if(Ne!=ge)return ue.s=-ge,Qe.minus(ue);var Ue=Qe.e/14,Ke=ue.e/14,Se=Qe.c,_e=ue.c;if(!Ue||!Ke){if(!Se||!_e)return new Pe(Ne/0);if(!Se[0]||!_e[0])return _e[0]?ue:new Pe(Se[0]?Qe:0*Ne)}if(Ue=es(Ue),Ke=es(Ke),Se=Se.slice(),Ne=Ue-Ke){for(Ne>0?(Ke=Ue,ve=_e):(Ne=-Ne,ve=Se),ve.reverse();Ne--;ve.push(0));ve.reverse()}for((Ne=Se.length)-(ge=_e.length)<0&&(ve=_e,_e=Se,Se=ve,ge=Ne),Ne=0;ge;)Ne=(Se[--ge]=Se[ge]+_e[ge]+Ne)/ws|0,Se[ge]=ws===Se[ge]?0:Se[ge]%ws;return Ne&&(Se=[Ne].concat(Se),++Ke),En(ue,Se,Ke)},s.precision=s.sd=function(ue,ge){var ve,Qe,Ne;if(null!=ue&&ue!==!!ue)return oo(ue,1,Go),null==ge?ge=h:oo(ge,0,8),cn(new Pe(this),ue,ge);if(!(ve=this.c))return null;if(Qe=14*(Ne=ve.length-1)+1,Ne=ve[Ne]){for(;Ne%10==0;Ne/=10,Qe--);for(Ne=ve[0];Ne>=10;Ne/=10,Qe++);}return ue&&this.e+1>Qe&&(Qe=this.e+1),Qe},s.shiftedBy=function(ue){return oo(ue,-f1,f1),this.times("1e"+ue)},s.squareRoot=s.sqrt=function(){var ue,ge,ve,Qe,Ne,Ue=this,Ke=Ue.c,Se=Ue.s,_e=Ue.e,De=u+4,Te=new Pe("0.5");if(1!==Se||!Ke||!Ke[0])return new Pe(!Se||Se<0&&(!Ke||Ke[0])?NaN:Ke?Ue:1/0);if(0==(Se=Math.sqrt(+Ar(Ue)))||Se==1/0?(((ge=ts(Ke)).length+_e)%2==0&&(ge+="0"),Se=Math.sqrt(+ge),_e=es((_e+1)/2)-(_e<0||_e%2),ve=new Pe(ge=Se==1/0?"5e"+_e:(ge=Se.toExponential()).slice(0,ge.indexOf("e")+1)+_e)):ve=new Pe(Se+""),ve.c[0])for((Se=(_e=ve.e)+De)<3&&(Se=0);;)if(ve=Te.times((Ne=ve).plus(e(Ue,Ne,De,1))),ts(Ne.c).slice(0,Se)===(ge=ts(ve.c)).slice(0,Se)){if(ve.e<_e&&--Se,"9999"!=(ge=ge.slice(Se-3,Se+1))&&(Qe||"4999"!=ge)){(!+ge||!+ge.slice(1)&&"5"==ge.charAt(0))&&(cn(ve,ve.e+u+2,1),ue=!ve.times(ve).eq(Ue));break}if(!Qe&&(cn(Ne,Ne.e+u+2,0),Ne.times(Ne).eq(Ue))){ve=Ne;break}De+=4,Se+=4,Qe=1}return cn(ve,ve.e+u+1,h,ue)},s.toExponential=function(ue,ge){return null!=ue&&(oo(ue,0,Go),ue++),qe(this,ue,ge,1)},s.toFixed=function(ue,ge){return null!=ue&&(oo(ue,0,Go),ue=ue+this.e+1),qe(this,ue,ge)},s.toFormat=function(ue,ge,ve){var Qe;if(null==ve)null!=ue&&ge&&"object"==typeof ge?(ve=ge,ge=null):ue&&"object"==typeof ue?(ve=ue,ue=ge=null):ve=Be;else if("object"!=typeof ve)throw Error(Di+"Argument not an object: "+ve);if(Qe=this.toFixed(ue,ge),this.c){var Ue,Ke=Qe.split("."),Se=+ve.groupSize,_e=+ve.secondaryGroupSize,De=ve.groupSeparator||"",Te=Ke[0],$e=Ke[1],Tt=this.s<0,Lt=Tt?Te.slice(1):Te,on=Lt.length;if(_e&&(Ue=Se,Se=_e,_e=Ue,on-=Ue),Se>0&&on>0){for(Te=Lt.substr(0,Ue=on%Se||Se);Ue0&&(Te+=De+Lt.slice(Ue)),Tt&&(Te="-"+Te)}Qe=$e?Te+(ve.decimalSeparator||"")+((_e=+ve.fractionGroupSize)?$e.replace(new RegExp("\\d{"+_e+"}\\B","g"),"$&"+(ve.fractionGroupSeparator||"")):$e):Te}return(ve.prefix||"")+Qe+(ve.suffix||"")},s.toFraction=function(ue){var ge,ve,Qe,Ne,Ue,Ke,Se,_e,De,Te,$e,Tt,Lt=this,on=Lt.c;if(null!=ue&&(!(Se=new Pe(ue)).isInteger()&&(Se.c||1!==Se.s)||Se.lt(l)))throw Error(Di+"Argument "+(Se.isInteger()?"out of range: ":"not an integer: ")+Ar(Se));if(!on)return new Pe(Lt);for(ge=new Pe(l),De=ve=new Pe(l),Qe=_e=new Pe(l),Tt=ts(on),Ue=ge.e=Tt.length-Lt.e-1,ge.c[0]=h1[(Ke=Ue%14)<0?14+Ke:Ke],ue=!ue||Se.comparedTo(ge)>0?Ue>0?ge:De:Se,Ke=U,U=1/0,Se=new Pe(Tt),_e.c[0]=0;Te=e(Se,ge,0,1),1!=(Ne=ve.plus(Te.times(Qe))).comparedTo(ue);)ve=Qe,Qe=Ne,De=_e.plus(Te.times(Ne=De)),_e=Ne,ge=Se.minus(Te.times(Ne=ge)),Se=Ne;return Ne=e(ue.minus(ve),Qe,0,1),_e=_e.plus(Ne.times(De)),ve=ve.plus(Ne.times(Qe)),_e.s=De.s=Lt.s,$e=e(De,Qe,Ue*=2,h).minus(Lt).abs().comparedTo(e(_e,ve,Ue,h).minus(Lt).abs())<1?[De,Qe]:[_e,ve],U=Ke,$e},s.toNumber=function(){return+Ar(this)},s.toPrecision=function(ue,ge){return null!=ue&&oo(ue,1,Go),qe(this,ue,ge,2)},s.toString=function(ue){var ge,ve=this,Qe=ve.s,Ne=ve.e;return null===Ne?Qe?(ge="Infinity",Qe<0&&(ge="-"+ge)):ge="NaN":(null==ue?ge=Ne<=A||Ne>=y?E0(ts(ve.c),Ne):pa(ts(ve.c),Ne,"0"):10===ue&&tt?ge=pa(ts((ve=cn(new Pe(ve),u+Ne+1,h)).c),ve.e,"0"):(oo(ue,2,ze.length,"Base"),ge=t(pa(ts(ve.c),Ne,"0"),10,ue,Qe,!0)),Qe<0&&ve.c[0]&&(ge="-"+ge)),ge},s.valueOf=s.toJSON=function(){return Ar(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=n&&Pe.set(n),Pe}();const Ot=iQ;function WT(n,e){const o=function cQ(n,e,t,o){let s=new Ot(0);for(const u of n)s=s.times(e),s=s.plus(u);const l=new Uint8Array(o);for(let u=o-1;u>=0;u-=1){const h=s.dividedToIntegerBy(t),A=s.modulo(t);s=h,l[u]=A.toNumber()}return l}(n.map(u=>e.indexOf(u.toLowerCase())),e.length,256,33),s=o[o.length-1],l=new Uint8Array(o.length-1);for(let u=0;u{var e,t,o,s,l,u,h,A,y,D,U,q,ce,ye,Be,ze,tt,Pe,qe,Et,En,cn,Ar,ue,ge,ve,Qe,Ne,Ue,Ke,Se,_e,De,Te,$e,Tt,Lt,on,qn,mn,Bn,er,Vn,po,Gr,zo,Jr,wi,Ao,Kr,Or,va,Ia,Ca,Ta,ka,Da,Ea,Ma,xa,Oa,Sa,Ba;for(o=0;o<48;o+=2)s=n[0]^n[10]^n[20]^n[30]^n[40],l=n[1]^n[11]^n[21]^n[31]^n[41],A=n[4]^n[14]^n[24]^n[34]^n[44],y=n[5]^n[15]^n[25]^n[35]^n[45],D=n[6]^n[16]^n[26]^n[36]^n[46],U=n[7]^n[17]^n[27]^n[37]^n[47],t=(ce=n[9]^n[19]^n[29]^n[39]^n[49])^((h=n[3]^n[13]^n[23]^n[33]^n[43])<<1|(u=n[2]^n[12]^n[22]^n[32]^n[42])>>>31),n[0]^=e=(q=n[8]^n[18]^n[28]^n[38]^n[48])^(u<<1|h>>>31),n[1]^=t,n[10]^=e,n[11]^=t,n[20]^=e,n[21]^=t,n[30]^=e,n[31]^=t,n[40]^=e,n[41]^=t,t=l^(y<<1|A>>>31),n[2]^=e=s^(A<<1|y>>>31),n[3]^=t,n[12]^=e,n[13]^=t,n[22]^=e,n[23]^=t,n[32]^=e,n[33]^=t,n[42]^=e,n[43]^=t,t=h^(U<<1|D>>>31),n[4]^=e=u^(D<<1|U>>>31),n[5]^=t,n[14]^=e,n[15]^=t,n[24]^=e,n[25]^=t,n[34]^=e,n[35]^=t,n[44]^=e,n[45]^=t,t=y^(ce<<1|q>>>31),n[6]^=e=A^(q<<1|ce>>>31),n[7]^=t,n[16]^=e,n[17]^=t,n[26]^=e,n[27]^=t,n[36]^=e,n[37]^=t,n[46]^=e,n[47]^=t,t=U^(l<<1|s>>>31),n[8]^=e=D^(s<<1|l>>>31),n[9]^=t,n[18]^=e,n[19]^=t,n[28]^=e,n[29]^=t,n[38]^=e,n[39]^=t,n[48]^=e,n[49]^=t,Be=n[1],zo=n[11]<<4|n[10]>>>28,Jr=n[10]<<4|n[11]>>>28,Ne=n[20]<<3|n[21]>>>29,Ue=n[21]<<3|n[20]>>>29,xa=n[31]<<9|n[30]>>>23,Oa=n[30]<<9|n[31]>>>23,er=n[40]<<18|n[41]>>>14,Vn=n[41]<<18|n[40]>>>14,Te=n[2]<<1|n[3]>>>31,$e=n[3]<<1|n[2]>>>31,tt=n[12]<<12|n[13]>>>20,wi=n[22]<<10|n[23]>>>22,Ao=n[23]<<10|n[22]>>>22,Ke=n[33]<<13|n[32]>>>19,Se=n[32]<<13|n[33]>>>19,Sa=n[42]<<2|n[43]>>>30,Ba=n[43]<<2|n[42]>>>30,Ca=n[5]<<30|n[4]>>>2,Ta=n[4]<<30|n[5]>>>2,Tt=n[14]<<6|n[15]>>>26,Lt=n[15]<<6|n[14]>>>26,qe=n[24]<<11|n[25]>>>21,Kr=n[34]<<15|n[35]>>>17,Or=n[35]<<15|n[34]>>>17,_e=n[45]<<29|n[44]>>>3,De=n[44]<<29|n[45]>>>3,ue=n[6]<<28|n[7]>>>4,ge=n[7]<<28|n[6]>>>4,ka=n[17]<<23|n[16]>>>9,Da=n[16]<<23|n[17]>>>9,on=n[26]<<25|n[27]>>>7,qn=n[27]<<25|n[26]>>>7,Et=n[36]<<21|n[37]>>>11,En=n[37]<<21|n[36]>>>11,va=n[47]<<24|n[46]>>>8,Ia=n[46]<<24|n[47]>>>8,po=n[8]<<27|n[9]>>>5,Gr=n[9]<<27|n[8]>>>5,ve=n[18]<<20|n[19]>>>12,Qe=n[19]<<20|n[18]>>>12,Ea=n[29]<<7|n[28]>>>25,Ma=n[28]<<7|n[29]>>>25,mn=n[38]<<8|n[39]>>>24,Bn=n[39]<<8|n[38]>>>24,cn=n[48]<<14|n[49]>>>18,Ar=n[49]<<14|n[48]>>>18,n[0]=(ye=n[0])^~(ze=n[13]<<12|n[12]>>>20)&(Pe=n[25]<<11|n[24]>>>21),n[1]=Be^~tt&qe,n[10]=ue^~ve&Ne,n[11]=ge^~Qe&Ue,n[20]=Te^~Tt&on,n[21]=$e^~Lt&qn,n[30]=po^~zo&wi,n[31]=Gr^~Jr&Ao,n[40]=Ca^~ka&Ea,n[41]=Ta^~Da&Ma,n[2]=ze^~Pe&Et,n[3]=tt^~qe&En,n[12]=ve^~Ne&Ke,n[13]=Qe^~Ue&Se,n[22]=Tt^~on&mn,n[23]=Lt^~qn&Bn,n[32]=zo^~wi&Kr,n[33]=Jr^~Ao&Or,n[42]=ka^~Ea&xa,n[43]=Da^~Ma&Oa,n[4]=Pe^~Et&cn,n[5]=qe^~En&Ar,n[14]=Ne^~Ke&_e,n[15]=Ue^~Se&De,n[24]=on^~mn&er,n[25]=qn^~Bn&Vn,n[34]=wi^~Kr&va,n[35]=Ao^~Or&Ia,n[44]=Ea^~xa&Sa,n[45]=Ma^~Oa&Ba,n[6]=Et^~cn&ye,n[7]=En^~Ar&Be,n[16]=Ke^~_e&ue,n[17]=Se^~De&ge,n[26]=mn^~er&Te,n[27]=Bn^~Vn&$e,n[36]=Kr^~va&po,n[37]=Or^~Ia&Gr,n[46]=xa^~Sa&Ca,n[47]=Oa^~Ba&Ta,n[8]=cn^~ye&ze,n[9]=Ar^~Be&tt,n[18]=_e^~ue&ve,n[19]=De^~ge&Qe,n[28]=er^~Te&Tt,n[29]=Vn^~$e&Lt,n[38]=va^~po&zo,n[39]=Ia^~Gr&Jr,n[48]=Sa^~Ca&ka,n[49]=Ba^~Ta&Da,n[0]^=$T[o],n[1]^=$T[o+1]},g1=e=>{var t;if("0x"===e.slice(0,2)){t=[];for(var o=2,s=e.length;o{for(var y,D,t=e.length,o=n.blocks,s=n.blockCount<<2,l=n.blockCount,u=n.outputBlocks,h=n.s,A=0;A>2]|=e[A]<>2]|=D<>2]|=(192|D>>6)<>2]|=(128|63&D)<=57344?(o[y>>2]|=(224|D>>12)<>2]|=(128|D>>6&63)<>2]|=(128|63&D)<>2]|=(240|D>>18)<>2]|=(128|D>>12&63)<>2]|=(128|D>>6&63)<>2]|=(128|63&D)<=s){for(n.start=y-s,n.block=o[l],y=0;y>2]|=uQ[3&y],n.lastByteIndex===s)for(o[0]=o[l],y=1;y>4&15]+rc[15&q]+rc[q>>12&15]+rc[q>>8&15]+rc[q>>20&15]+rc[q>>16&15]+rc[q>>28&15]+rc[q>>24&15];ce%l==0&&(A1(h),y=0)}return"0x"+U})((n=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:34,outputBlocks:8,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e})(),t)},q3=new VT.ec("secp256k1");function ZT(){const n=q3.genKeyPair();return{privateKey:Mr(n.getPrivate("hex")),publicKey:Mr(n.getPublic(!0,"hex"))}}function m1(){return(m1=Ge(function*(){return Promise.resolve(ZT())})).apply(this,arguments)}function M0(n){const e=q3.keyFromPrivate(n);return{privateKey:Mr(e.getPrivate("hex")),publicKey:Mr(e.getPublic(!0,"hex"))}}const x0=Mr("302d300706052b8104000a032200");class ns extends b0{constructor(e){super(),this._keyData=e}get _type(){return"secp256k1"}static fromBytes(e){switch(e.length){case 33:return ns.fromBytesRaw(e);case 49:return ns.fromBytesDer(e);default:throw new _o(`invalid public key length: ${e.length} bytes`)}}static fromBytesDer(e){if(44!=e.length||!_0(e,x0))throw new _o(`invalid public key length: ${e.length} bytes`);return new ns(e.subarray(12))}static fromBytesRaw(e){if(33!=e.length)throw new _o(`invalid public key length: ${e.length} bytes`);return new ns(e)}static fromString(e){return ns.fromBytes(Mr(e))}verify(e,t){return function gQ(n,e,t){const o=ki(e),s=Mr(g1(`0x${o}`));return q3.keyFromPublic(n).verify(s,{r:t.subarray(0,32),s:t.subarray(32,64)})}(this._keyData,e,t)}toBytesDer(){const e=new Uint8Array(x0.length+this._keyData.length);return e.set(x0,0),e.set(this._keyData,x0.length),e}toBytesRaw(){return new Uint8Array(this._keyData.subarray())}toEthereumAddress(){const e=Mr(g1(`0x${ki(function pQ(n){return Mr(q3.keyFromPublic(n).getPublic(!1,"hex"))}(this.toBytesRaw()).subarray(1))}`));return ki(e.subarray(12))}equals(e){return r1(this._keyData,e._keyData)}}const J3=Mr("3030020100300706052b8104000a04220420");class Qo{constructor(e,t){this._keyPair=e,this._chainCode=t??null}get _type(){return"secp256k1"}static generate(){return new Qo(ZT())}static generateAsync(){return Ge(function*(){return new Qo(yield function hQ(){return m1.apply(this,arguments)}())})()}static fromBytes(e){switch(e.length){case 32:return Qo.fromBytesRaw(e);case 50:return Qo.fromBytesDer(e);default:throw new _o(`invalid private key length: ${e.length} bytes`)}}static fromBytesDer(e){if(32!=e.length&&!_0(e,J3))throw new _o("invalid der header");return new Qo(M0(e.subarray(J3.length)))}static fromBytesRaw(e){return new Qo(M0(e))}static fromString(e){return Qo.fromBytes(Mr(e))}static fromStringDer(e){return Qo.fromBytesDer(Mr(e))}static fromStringRaw(e){return Qo.fromBytesRaw(Mr(e))}get publicKey(){return new ns(this._keyPair.publicKey)}sign(e){return function AQ(n,e){const t=ki(e),o=Mr(g1(`0x${t}`)),l=q3.keyFromPrivate(n).sign(o),u=l.r.toArray("be",32),h=l.s.toArray("be",32),A=new Uint8Array(64);return A.set(u,0),A.set(h,32),A}(this._keyPair.privateKey,e)}toBytesDer(){const e=new Uint8Array(J3.length+32);return e.set(J3,0),e.set(this._keyPair.privateKey.subarray(0,32),J3.length),e}toBytesRaw(){const e=new Uint8Array(32);return e.set(this._keyPair.privateKey.slice(0,32),0),e}}const qT=[44,3030,0,0];class Is{constructor({words:e,legacy:t}){this.words=e,this._isLegacy=t}static generate(){return Is._generate(24)}static generate12(){return Is._generate(12)}static _generate(e){return Ge(function*(){let t;if(12===e)t=16;else{if(24!==e)throw new Error(`unsupported phrase length ${e}, only 12 or 24 are supported`);t=32}const o=yield v0(t),A=((XT(Array.from(o))+(yield ek(o))).match(/(.{1,11})/g)??[]).map(y=>C0[JT(y)]);return new Is({words:A,legacy:!1})})()}static fromWords(e){return new Is({words:e,legacy:22===e.length})._validate()}toPrivateKey(e=""){return this.toEd25519PrivateKey(e)}toEd25519PrivateKey(e="",t=qT){var o=this;return Ge(function*(){if(o._isLegacy){if(e.length>0)throw new Error("legacy 22-word mnemonics do not support passphrases");return o.toLegacyPrivateKey()}let{keyData:s,chainCode:l}=yield o._toKeyData(e,"ed25519 seed");for(const h of t)({keyData:s,chainCode:l}=yield zT(s,l,h));const u=_s.sign.keyPair.fromSeed(s);if(null==ec.privateKeyConstructor)throw new Error("PrivateKey not found in cache");return ec.privateKeyConstructor(new wo(u,l))})()}toEcdsaPrivateKey(e="",t=qT){var o=this;return Ge(function*(){let{keyData:s,chainCode:l}=yield o._toKeyData(e,"Bitcoin seed");for(const u of t)({keyData:s,chainCode:l}=yield k0(s,l,u));if(null==ec.privateKeyConstructor)throw new Error("PrivateKey not found in cache");return ec.privateKeyConstructor(new Qo(M0(s),l))})()}_toKeyData(e,t){var o=this;return Ge(function*(){const s=yield function rQ(n,e){return u1.apply(this,arguments)}(o.words,e),l=yield $3("SHA-512",t,s);return{keyData:l.subarray(0,32),chainCode:l.subarray(32)}})()}static fromString(e){return Ge(function*(){return Is.fromWords(e.split(/\s|,/))})()}_validate(){var e=this;return Ge(function*(){if(e._isLegacy){if(22!==e.words.length)throw new tc(e,ha.BadLength,[]);const t=e.words.reduce((u,h,A)=>o1.includes(h.toLowerCase())?u:[...u,A],[]);if(t.length>0)throw new tc(e,ha.UnknownWords,t);const[o,s]=WT(e.words,o1),l=function aQ(n){let e=255;for(let t=0;t>>1^(1&e?178:0)}return 255^e}(o);if(s!==l)throw new tc(e,ha.ChecksumMismatch,[])}else{if(12!==e.words.length&&24!==e.words.length)throw new tc(e,ha.BadLength,[]);const t=e.words.reduce((D,U,q)=>C0.includes(U)?D:[...D,q],[]);if(t.length>0)throw new tc(e,ha.UnknownWords,t);const o=e.words.map(D=>C0.indexOf(D).toString(2).padStart(11,"0")).join(""),s=32*Math.floor(o.length/33),l=o.slice(0,s),u=o.slice(s),A=l.match(/(.{1,8})/g).map(JT);if((yield ek(Uint8Array.from(A)))!==u)throw new tc(e,ha.ChecksumMismatch,[])}return e})()}toLegacyPrivateKey(){var e=this;return Ge(function*(){let t;if(e._isLegacy?[t]=WT(e.words,o1):t=yield function sQ(n,e){return p1.apply(this,arguments)}(e.words,C0),null==ec.privateKeyFromBytes)throw new Error("PrivateKey not found in cache");return ec.privateKeyFromBytes(t)})()}toString(){return this.words.join(" ")}}function JT(n){return parseInt(n,2)}function XT(n){return n.map(e=>e.toString(2).padStart(8,"0")).join("")}function ek(n){return y1.apply(this,arguments)}function y1(){return y1=Ge(function*(n){const t=8*n.length/32,o=yield HT(n);return XT(Array.from(o)).slice(0,t)}),y1.apply(this,arguments)}class ji extends b0{constructor(e){super(),this._key=e}get _type(){return this._key._type}static fromBytes(e){try{return new ji(Xi.fromBytes(e))}catch{}try{return new ji(ns.fromBytes(e))}catch{}throw new _o(`invalid public key length: ${e.length} bytes`)}static fromBytesED25519(e){return new ji(Xi.fromBytes(e))}static fromBytesECDSA(e){return new ji(ns.fromBytes(e))}static fromString(e){return ji.fromBytes(Mr(e))}static fromStringED25519(e){return ji.fromBytesED25519(Mr(e))}static fromStringECDSA(e){return ji.fromBytesECDSA(Mr(e))}verify(e,t){return this._key.verify(e,t)}verifyTransaction(e){console.log("Deprecated: use `@hashgraph/sdk`.PublicKey instead"),e._requireFrozen(),e.isFrozen()||e.freeze();for(const t of e._signedTransactions)if(null!=t.sigMap&&null!=t.sigMap.sigPair){let o=!1;for(const s of t.sigMap.sigPair)if(r1(s.pubKeyPrefix,this.toBytesRaw())&&(o=!0,!this.verify(t.bodyBytes,null!=s.ed25519?s.ed25519:s.ECDSASecp256k1)))return!1;if(!o)return!1}return!0}toBytes(){return this._key instanceof Xi?this.toBytesRaw():this.toBytesDer()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toString(){return this.toStringDer()}toStringDer(){return ki(this.toBytesDer())}toStringRaw(){return ki(this.toBytesRaw())}toEthereumAddress(){if(this._key instanceof ns)return this._key.toEthereumAddress();throw new Error("unsupported operation on Ed25519PublicKey")}equals(e){return(this._key instanceof Xi&&e._key instanceof Xi||this._key instanceof ns&&e._key instanceof ns)&&this._key.equals(e._key)}}function bQ(n,e,t,o){return b1.apply(this,arguments)}function b1(){return b1=Ge(function*(n,e,t,o){let s;switch(n.toUpperCase()){case"AES-128-CTR":s={name:"AES-CTR",counter:t,length:128};break;case"AES-128-CBC":s={name:"AES-CBC",iv:t};break;default:throw new Error("(BUG) non-exhaustive switch statement for CipherAlgorithm")}const l=yield window.crypto.subtle.importKey("raw",e,s.name,!1,["encrypt"]);return new Uint8Array(yield window.crypto.subtle.encrypt(s,l,o))}),b1.apply(this,arguments)}function tk(n,e,t,o){return _1.apply(this,arguments)}function _1(){return _1=Ge(function*(n,e,t,o){let s;switch(n.toUpperCase()){case"AES-128-CTR":s={name:"AES-CTR",counter:t,length:128};break;case"AES-128-CBC":s={name:"AES-CBC",iv:t};break;default:throw new Error("(BUG) non-exhaustive switch statement for CipherAlgorithm")}const l=yield window.crypto.subtle.importKey("raw",e,s.name,!1,["decrypt"]);return new Uint8Array(yield window.crypto.subtle.decrypt(s,l,o))}),_1.apply(this,arguments)}const nk="hmac-sha256";function w1(){return w1=Ge(function*(n,e){const l=yield v0(32),u=yield Z3("SHA-256",e,l,262144,32),h=yield v0(16),A=yield bQ("AES-128-CTR",u.slice(0,16),h,n),y=yield $3("SHA-384",u.slice(16),A),D={version:1,crypto:{ciphertext:ki(A),cipherparams:{iv:ki(h)},cipher:"AES-128-CTR",kdf:"pbkdf2",kdfparams:{dkLen:32,salt:ki(l),c:262144,prf:nk},mac:ki(y)}};return W3(JSON.stringify(D))}),w1.apply(this,arguments)}function v1(){return v1=Ge(function*(n,e){const t=JSON.parse(tQ(n));if(1!==t.version)throw new _o(`unsupported keystore version: ${t.version}`);const{ciphertext:o,cipherparams:{iv:s},cipher:l,kdf:u,kdfparams:{dkLen:h,salt:A,c:y,prf:D},mac:U}=t.crypto;if("pbkdf2"!==u)throw new _o(`unsupported key derivation function:" + ${u}`);if(D!==nk)throw new _o(`unsupported key derivation hash function: ${D}`);const q=Mr(A),ce=Mr(s),ye=Mr(o),Be=yield Z3("SHA-256",e,q,y,h),ze=Mr(U),tt=yield $3("SHA-384",Be.slice(16),ye);if(!ze.every((Pe,qe)=>Pe===tt[qe]))throw new _o("HMAC mismatch; passphrase is incorrect");return tk(l,Be.slice(0,16),ce,ye)}),v1.apply(this,arguments)}function I1(n){return rk(n)[0]}function rk(n){const[e,t]=function CQ(n){if(n[0]<128)return[n[0],n.subarray(1)];const e=n[0]-128,t=n.subarray(1,e+1),o=n.subarray(e+1);return[ok(t),o]}(n.subarray(1)),o=t.subarray(0,e),s=t.subarray(e);switch(n[0]){case 2:return[{int:ok(o)},s];case 4:return[{bytes:o},s];case 5:return[{},s];case 6:return[{ident:IQ(o)},s];case 48:return[{seq:vQ(o)},s];default:throw new Error(`unsupported DER type tag: ${n[0]}`)}}function vQ(n){let e=n;const t=[];for(;0!==e.length;){const[o,s]=rk(e);t.push(o),e=s}return t}function IQ(n){const e=[Math.floor(n[0]/40),n[0]%40];let t=0;for(const o of n.subarray(1))t*=128,o<128?(t+=o,e.push(t),t=0):t+=127&o;return e.join(".")}function ok(n){const e=n.length;if(1===e)return n[0];let t=new DataView(n.buffer,n.byteOffset,n.byteLength);if(2===e)return t.getUint16(0,!1);if(3===e){const o=Uint8Array.of(0,...n);t=new DataView(o.buffer,o.byteOffset,o.byteLength)}if(e>4)throw new Error(`unsupported DER integer length of ${e} bytes`);return t.getUint32(0,!1)}class $l{constructor(e){if(!("seq"in e&&e.seq.length>=1&&"ident"in e.seq[0]))throw new Error(`error parsing AlgorithmIdentifier from ${JSON.stringify(e)}`);this.algIdent=e.seq[0].ident,this.parameters=e.seq[1]}toString(){return JSON.stringify(this)}}class TQ{constructor(e){if(!("seq"in e)||2!==e.seq.length)throw new Error(`error parsing PBES2Params from ${JSON.stringify(e)}`);this.kdf=new $l(e.seq[0]),this.encScheme=new $l(e.seq[1])}}class kQ{constructor(e){if("seq"in e&&e.seq.length>=2&&"bytes"in e.seq[0]&&"int"in e.seq[1]&&(this.salt=e.seq[0].bytes,this.iterCount=e.seq[1].int,e.seq.length>2))return"seq"in e.seq[2]?void(this.prf=new $l(e.seq[2])):("int"in e.seq[2]&&(this.keyLength=e.seq[2].int),void(4===e.seq.length&&(this.prf=new $l(e.seq[3]))));throw new Error(`error parsing PBKDF2Params from ${JSON.stringify(e)}`)}}class C1{constructor(e){if(!("seq"in e)||3!==e.seq.length)throw new Error(`error parsing PrivateKeyInfo from ${JSON.stringify(e)}`);if(!("int"in e.seq[0])||0!==e.seq[0].int)throw new Error(`expected version = 0, got ${JSON.stringify(e.seq[0])}`);if(this.version=0,this.algId=new $l(e.seq[1]),!("bytes"in e.seq[2]))throw new Error(`expected octet string as 3rd element, got ${JSON.stringify(e.seq[2])}`);this.privateKey=e.seq[2].bytes}static parse(e){return new C1(I1(e))}}class T1{constructor(e){if("seq"in e&&2===e.seq.length&&"bytes"in e.seq[1])return this.algId=new $l(e.seq[0]),void(this.data=e.seq[1].bytes);throw new Error(`error parsing EncryptedPrivateKeyInfo from ${JSON.stringify(e)}`)}static parse(e){return new T1(I1(e))}decrypt(e){var t=this;return Ge(function*(){if("1.2.840.113549.1.5.13"!==t.algId.algIdent||!t.algId.parameters)throw new Error(`unsupported key encryption algorithm: ${t.algId.toString()}`);const o=new TQ(t.algId.parameters);if("1.2.840.113549.1.5.12"!==o.kdf.algIdent||!o.kdf.parameters)throw new Error(`unsupported key derivation function: ${o.kdf.toString()}`);const s=new kQ(o.kdf.parameters);if(!s.prf)throw new Error("unsupported PRF HMAC-SHA-1");if("1.2.840.113549.2.9"!==s.prf.algIdent)throw new Error(`unsupported PRF ${s.prf.toString()}`);if("2.16.840.1.101.3.4.1.2"!==o.encScheme.algIdent)throw new Error(`unsupported encryption scheme: ${o.encScheme.toString()}`);if(!o.encScheme.parameters||!("bytes"in o.encScheme.parameters))throw new Error(`expected IV as bytes for AES-128-CBC, got: ${JSON.stringify(o.encScheme.parameters)}`);const l=s.keyLength||16,u=o.encScheme.parameters.bytes,h=yield Z3("SHA-256",e,s.salt,s.iterCount,l),A=yield tk("AES-128-CBC",h,u,t.data);return C1.parse(A)})()}}function DQ(n){return Uint8Array.from(atob(n),e=>e.charCodeAt(0))}const EQ="-----BEGIN PRIVATE KEY-----\n",MQ="-----END PRIVATE KEY-----\n",xQ="-----BEGIN ENCRYPTED PRIVATE KEY-----\n",OQ="-----END ENCRYPTED PRIVATE KEY-----\n";function k1(){return k1=Ge(function*(n,e){const t=e?xQ:EQ,o=e?OQ:MQ,s=n.indexOf(t),l=n.indexOf(o);if(-1===s||-1===l)throw new _o("failed to find a private key in the PEM file");const h=DQ(n.slice(s+t.length,l));if(e){let A;try{A=T1.parse(h)}catch(q){throw new _o(`failed to parse encrypted private key: ${null!=q&&null!=q.message?q.message:""}`)}const y=yield A.decrypt(e);let D=null;if("1.3.101.112"===y.algId.algIdent)D=wo;else{if("1.3.132.0.10"!==y.algId.algIdent)throw new _o(`unknown private key algorithm ${y.algId.toString()}`);D=Qo}const U=I1(y.privateKey);if(!("bytes"in U))throw new _o(`expected ASN bytes, got ${JSON.stringify(U)}`);return D.fromBytes(U.bytes)}return h.subarray(16)}),k1.apply(this,arguments)}class ur extends b0{constructor(e){super(),this._key=e}get _type(){return this._key._type}static generateED25519(){return new ur(wo.generate())}static generateECDSA(){return new ur(Qo.generate())}static generate(){return ur.generateED25519()}static generateAsync(){return Ge(function*(){return ur.generateED25519Async()})()}static generateED25519Async(){return Ge(function*(){return new ur(yield wo.generateAsync())})()}static generateECDSAAsync(){return Ge(function*(){return new ur(yield Qo.generateAsync())})()}static fromBytes(e){try{return new ur(wo.fromBytes(e))}catch{}try{return new ur(Qo.fromBytes(e))}catch{}throw new _o(`invalid private key length: ${e.length} bytes`)}static fromBytesECDSA(e){return new ur(Qo.fromBytes(e))}static fromBytesED25519(e){return new ur(wo.fromBytes(e))}static fromString(e){return ur.fromBytes(Mr(e))}static fromStringECDSA(e){return ur.fromBytesECDSA(Mr(e))}static fromStringED25519(e){return ur.fromBytesED25519(Mr(e))}static fromMnemonic(e,t=""){return Ge(function*(){return("string"==typeof e?yield Is.fromString(e):e).toEd25519PrivateKey(t)})()}static fromKeystore(e,t=""){return Ge(function*(){return ur.fromBytes(yield function wQ(n,e){return v1.apply(this,arguments)}(e,t))})()}static fromPem(e,t=""){return Ge(function*(){const o=yield function SQ(n,e){return k1.apply(this,arguments)}(e,t);return o instanceof wo||o instanceof Qo?new ur(o):ur.fromBytes(o)})()}derive(e){var t=this;return Ge(function*(){if(null==t._key._chainCode)throw new Error("this private key does not support key derivation");if(t._key instanceof wo){const{keyData:o,chainCode:s}=yield zT(t.toBytesRaw(),t._key._chainCode,e);return new ur(new wo(o,s))}{const{keyData:o,chainCode:s}=yield k0(t.toBytesRaw(),t._key._chainCode,e);return new ur(new Qo(M0(o),s))}})()}legacyDerive(e){var t=this;return Ge(function*(){const o=yield function BQ(n,e){const t=new Uint8Array(n.length+8);t.set(n,0);const o=new DataView(t.buffer,t.byteOffset,t.byteLength);0xffffffffff===e?(o.setInt32(n.length+0,255),o.setInt32(n.length+4,-1)):(o.setInt32(n.length+0,e<0?-1:0),o.setInt32(n.length+4,e));return Z3("SHA-512",t,Uint8Array.from([255]),2048,32)}(t.toBytesRaw().subarray(0,32),e);return new ur(new(0,t._key.constructor)(o))})()}get publicKey(){return new ji(this._key.publicKey)}sign(e){return this._key.sign(e)}signTransaction(e){if(e._requireFrozen(),e.isFrozen()||e.freeze(),1!=e._signedTransactions.length)throw new Error("`PrivateKey.signTransaction()` requires `Transaction` to have a single node `AccountId` set");const t=e._signedTransactions[0],o=ki(this.publicKey.toBytesRaw());null==t.sigMap&&(t.sigMap={}),null==t.sigMap.sigPair&&(t.sigMap.sigPair=[]);for(const u of t.sigMap.sigPair)if(null!=u.pubKeyPrefix&&ki(u.pubKeyPrefix)===o)switch(this._type){case"ED25519":return u.ed25519;case"secp256k1":return u.ECDSASecp256k1}const s=this.sign(null!=t.bodyBytes?t.bodyBytes:new Uint8Array),l={pubKeyPrefix:this.publicKey.toBytesRaw()};switch(this._type){case"ED25519":l.ed25519=s;break;case"secp256k1":l.ECDSASecp256k1=s}return t.sigMap.sigPair.push(l),e._signerPublicKeys.add(o),s}isDerivable(){return null!=this._key._chainCode}toBytes(){return this._key instanceof wo?this.toBytesRaw():this.toBytesDer()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toString(){return this.toStringDer()}toStringDer(){return ki(this.toBytesDer())}toStringRaw(){return ki(this.toBytesRaw())}toKeystore(e=""){return function _Q(n,e){return w1.apply(this,arguments)}(this.toBytesRaw(),e)}}ec.privateKeyConstructor=n=>new ur(n),ec.privateKeyFromBytes=n=>ur.fromBytes(n);class Zl{constructor(e){this._mnemonic=e}static generate(){return Ge(function*(){return new Zl(yield Is._generate(24))})()}static generate12(){return Ge(function*(){return new Zl(yield Is._generate(12))})()}static fromWords(e){return Ge(function*(){return new Zl(yield Is.fromWords(e))})()}toPrivateKey(e=""){var t=this;return Ge(function*(){return Fr.privateKeyConstructor(yield t._mnemonic.toPrivateKey(e))})()}toEd25519PrivateKey(e="",t){var o=this;return Ge(function*(){return Fr.privateKeyConstructor(yield o._mnemonic.toEd25519PrivateKey(e,t))})()}toEcdsaPrivateKey(e="",t){var o=this;return Ge(function*(){return Fr.privateKeyConstructor(yield o._mnemonic.toEcdsaPrivateKey(e,t))})()}static fromString(e){return Ge(function*(){return new Zl(yield Is.fromString(e))})()}toLegacyPrivateKey(){var e=this;return Ge(function*(){return Fr.privateKeyConstructor(yield e._mnemonic.toLegacyPrivateKey())})()}toString(){return this._mnemonic.toString()}}function NQ(n,e){if(n===e)return!0;if(n.byteLength!==e.byteLength)return!1;const t=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(e.buffer,e.byteOffset,e.byteLength);let s=n.byteLength;for(;s--;)if(t.getUint8(s)!==o.getUint8(s))return!1;return!0}class On{_toProtobufKey(){throw new Error("not implemented")}static _fromProtobufKey(e){if(null!=e.contractID)return Fr.contractId(e.contractID);if(null!=e.delegatableContractId)return Fr.delegateContractId(e.delegatableContractId);if(null!=e.ed25519&&e.ed25519.byteLength>0)return Fr.publicKeyED25519(e.ed25519);if(null!=e.ECDSASecp256k1&&e.ECDSASecp256k1.byteLength>0)return Fr.publicKeyECDSA(e.ECDSASecp256k1);if(null!=e.thresholdKey&&null!=e.thresholdKey.threshold)return Fr.thresholdKey(e.thresholdKey);if(null!=e.keyList)return Fr.keyList(e.keyList);throw new Error(`(BUG) keyFromProtobuf: not implemented key case: ${JSON.stringify(e)}`)}}class fo extends On{constructor(e){super(),this._key=e}static fromBytes(e){return new fo(ji.fromBytes(e))}static fromBytesED25519(e){return new fo(ji.fromBytesED25519(e))}static fromBytesECDSA(e){return new fo(ji.fromBytesECDSA(e))}static fromString(e){return new fo(ji.fromString(e))}verify(e,t){return this._key.verify(e,t)}verifyTransaction(e){e._requireFrozen(),e.isFrozen()||e.freeze();for(const t of e._signedTransactions.list)if(null!=t.sigMap&&null!=t.sigMap.sigPair){let o=!1;for(const s of t.sigMap.sigPair)if(NQ(s.pubKeyPrefix,this.toBytesRaw())){o=!0;const u=t.bodyBytes;let h=null;if(null!=s.ed25519?h=s.ed25519:null!=s.ECDSASecp256k1&&(h=s.ECDSASecp256k1),null==h)continue;if(!this.verify(u,h))return!1}if(!o)return!1}return!0}toBytes(){return this._key.toBytes()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toEthereumAddress(){return this._key.toEthereumAddress()}toString(){return this._key.toString()}toStringDer(){return this._key.toStringDer()}toStringRaw(){return this._key.toStringRaw()}equals(e){return this._key.equals(e._key)}_toProtobufKey(){switch(this._key._type){case"ED25519":return{ed25519:this._key.toBytesRaw()};case"secp256k1":return{ECDSASecp256k1:this._key.toBytesRaw()};default:throw new Error(`unrecognized key type ${this._key._type}`)}}_toProtobufSignature(e){switch(this._key._type){case"ED25519":return{pubKeyPrefix:this._key.toBytesRaw(),ed25519:e};case"secp256k1":return{pubKeyPrefix:this._key.toBytesRaw(),ECDSASecp256k1:e};default:throw new Error(`unrecognized key type ${this._key._type}`)}}toAccountId(e,t){return Fr.accountIdConstructor(e,t,this)}}Fr.setPublicKeyED25519(n=>fo.fromBytesED25519(n)),Fr.setPublicKeyECDSA(n=>fo.fromBytesECDSA(n));class io extends On{constructor(e){super(),this._key=e}static generateED25519(){return new io(ur.generateED25519())}static generateECDSA(){return new io(ur.generateECDSA())}static generate(){return io.generateED25519()}static generateAsync(){return Ge(function*(){return new io(yield ur.generateAsync())})()}static generateED25519Async(){return Ge(function*(){return new io(yield ur.generateED25519Async())})()}static generateECDSAAsync(){return Ge(function*(){return new io(yield ur.generateECDSAAsync())})()}static fromBytes(e){return new io(ur.fromBytes(e))}static fromBytesECDSA(e){return new io(ur.fromBytesECDSA(e))}static fromBytesED25519(e){return new io(ur.fromBytesED25519(e))}static fromString(e){return new io(ur.fromString(e))}static fromStringECDSA(e){return new io(ur.fromStringECDSA(e))}static fromStringED25519(e){return new io(ur.fromStringED25519(e))}static fromMnemonic(e,t=""){return Ge(function*(){return new io(e instanceof Zl?yield ur.fromMnemonic(e._mnemonic,t):yield ur.fromMnemonic(e,t))})()}static fromKeystore(e,t=""){return Ge(function*(){return new io(yield ur.fromKeystore(e,t))})()}static fromPem(e,t=""){return Ge(function*(){return new io(yield ur.fromPem(e,t))})()}derive(e){var t=this;return Ge(function*(){return new io(yield t._key.derive(e))})()}legacyDerive(e){var t=this;return Ge(function*(){return new io(yield t._key.legacyDerive(e))})()}get publicKey(){return new fo(this._key.publicKey)}sign(e){return this._key.sign(e)}signTransaction(e){const t=e._signedTransactions.get(0),o=null!=t.bodyBytes?this.sign(t.bodyBytes):new Uint8Array;return e.addSignature(this.publicKey,o),o}isDerivable(){return this._key.isDerivable()}toBytes(){return this._key.toBytes()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toString(){return this._key.toStringDer()}toStringDer(){return this._key.toStringDer()}toStringRaw(){return this._key.toStringRaw()}toKeystore(e=""){return this._key.toKeystore(e)}_toProtobufKey(){return this.publicKey._toProtobufKey()}toAccountId(e,t){return this.publicKey.toAccountId(e,t)}}Fr.setPrivateKeyConstructor(n=>new io(n));class Mo extends On{constructor(e,t){super(),this._keys=e??[],this._threshold=t??null}static of(...e){return new Mo(e,null)}static from(e,t,o){return new Mo(null==t?Array.from(e):Array.from(e,t,o))}get threshold(){return this._threshold}setThreshold(e){return this._threshold=e,this}push(...e){return this._keys.push(...e)}splice(e,t,...o){return new Mo(this._keys.splice(e,t,...o),this.threshold)}slice(e,t){return new Mo(this._keys.slice(e,t),this.threshold)}[Symbol.iterator](){return this._keys[Symbol.iterator]()}toArray(){return this._keys.slice()}toString(){return JSON.stringify({threshold:this._threshold,keys:this._keys.toString()})}_toProtobufKey(){const e=this._keys.map(t=>t._toProtobufKey());return null==this.threshold?{keyList:{keys:e}}:{thresholdKey:{threshold:this.threshold,keys:{keys:e}}}}static __fromProtobufKeyList(e){const t=(null!=e.keys?e.keys:[]).map(o=>On._fromProtobufKey(o));return new Mo(t)}static __fromProtobufThresoldKey(e){const t=Mo.__fromProtobufKeyList(null!=e.keys?e.keys:{});return t.setThreshold(null!=e.threshold?e.threshold:0),t}}Fr.setKeyList(n=>Mo.__fromProtobufKeyList(n)),Fr.setThresholdKey(n=>Mo.__fromProtobufThresoldKey(n));class zn{constructor(e,t,o){this._name=e,this._symbol=t,this._tinybar=o,Object.freeze(this)}static fromString(e){switch(e){case zn.Hbar._symbol:return zn.Hbar;case zn.Tinybar._symbol:return zn.Tinybar;case zn.Microbar._symbol:return zn.Microbar;case zn.Millibar._symbol:return zn.Millibar;case zn.Kilobar._symbol:return zn.Kilobar;case zn.Megabar._symbol:return zn.Megabar;case zn.Gigabar._symbol:return zn.Gigabar;default:throw new Error("Unknown unit.")}}}zn.Tinybar=new zn("tinybar","t\u210f",new Ot(1)),zn.Microbar=new zn("microbar","\u03bc\u210f",new Ot(100)),zn.Millibar=new zn("millibar","m\u210f",new Ot(1e5)),zn.Hbar=new zn("hbar","\u210f",new Ot("100000000")),zn.Kilobar=new zn("kilobar","k\u210f",new Ot(1e3).multipliedBy(new Ot("100000000"))),zn.Megabar=new zn("megabar","M\u210f",new Ot(1e6).multipliedBy(new Ot("100000000"))),zn.Gigabar=new zn("gigabar","G\u210f",new Ot("1000000000").multipliedBy(new Ot("100000000")));var We=G(7658);class Nt{constructor(e,t=zn.Hbar){if(t===zn.Tinybar)this._valueInTinybar=function PQ(n){return Ot.isBigNumber(n)?n:new Ot(n.toString())}(e);else{let o;o=We.isLong(e)?new Ot(e.toString(10)):Ot.isBigNumber(e)||"string"==typeof e||"number"==typeof e?new Ot(e):new Ot(0),this._valueInTinybar=o.multipliedBy(t._tinybar)}if(!this._valueInTinybar.isInteger())throw new Error("Hbar in tinybars contains decimals")}static from(e,t){return new Nt(e,t)}static fromTinybars(e){return"string"==typeof e?this.fromString(e,zn.Tinybar):new Nt(e,zn.Tinybar)}static fromString(e,t=zn.Hbar){if(/^((?:\+|-)?\d+(?:\.\d+)?)(?: (t\u210f|\u03bc\u210f|m\u210f|\u210f|k\u210f|M\u210f|G\u210f))?$/.test(e)){let[s,l]=e.split(" ");return null!=l&&(t=zn.fromString(l)),new Nt(new Ot(s),t)}throw new Error("invalid argument provided")}to(e){return this._valueInTinybar.dividedBy(e._tinybar)}toBigNumber(){return this.to(zn.Hbar)}toTinybars(){return We.fromValue(this._valueInTinybar.toFixed())}negated(){return Nt.fromTinybars(this._valueInTinybar.negated())}isNegative(){return this._valueInTinybar.isNegative()}toString(e){return null!=e?`${this._valueInTinybar.dividedBy(e._tinybar).toString()} ${e._symbol}`:this._valueInTinybar.isLessThan(1e4)&&this._valueInTinybar.isGreaterThan(-1e4)?`${this._valueInTinybar.toFixed()} ${zn.Tinybar._symbol}`:`${this.to(zn.Hbar).toString()} ${zn.Hbar._symbol}`}}class O0 extends Error{constructor(e,t){super(t),this.name="StatusError",this.status=e.status,this.transactionId=e.transactionId,this.message=t,typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,O0)}toJSON(){return{name:this.name,status:this.status.toString(),transactionId:this.transactionId.toString(),message:this.message}}toString(){return JSON.stringify(this.toJSON())}valueOf(){return this.toJSON()}}class S0 extends O0{constructor(e){super(e,`receipt for transaction ${e.transactionId.toString()} contained error status ${e.status.toString()}`),this.transactionReceipt=e.transactionReceipt}}class m{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case m.Ok:return"OK";case m.InvalidTransaction:return"INVALID_TRANSACTION";case m.PayerAccountNotFound:return"PAYER_ACCOUNT_NOT_FOUND";case m.InvalidNodeAccount:return"INVALID_NODE_ACCOUNT";case m.TransactionExpired:return"TRANSACTION_EXPIRED";case m.InvalidTransactionStart:return"INVALID_TRANSACTION_START";case m.InvalidTransactionDuration:return"INVALID_TRANSACTION_DURATION";case m.InvalidSignature:return"INVALID_SIGNATURE";case m.MemoTooLong:return"MEMO_TOO_LONG";case m.InsufficientTxFee:return"INSUFFICIENT_TX_FEE";case m.InsufficientPayerBalance:return"INSUFFICIENT_PAYER_BALANCE";case m.DuplicateTransaction:return"DUPLICATE_TRANSACTION";case m.Busy:return"BUSY";case m.NotSupported:return"NOT_SUPPORTED";case m.InvalidFileId:return"INVALID_FILE_ID";case m.InvalidAccountId:return"INVALID_ACCOUNT_ID";case m.InvalidContractId:return"INVALID_CONTRACT_ID";case m.InvalidTransactionId:return"INVALID_TRANSACTION_ID";case m.ReceiptNotFound:return"RECEIPT_NOT_FOUND";case m.RecordNotFound:return"RECORD_NOT_FOUND";case m.InvalidSolidityId:return"INVALID_SOLIDITY_ID";case m.Unknown:return"UNKNOWN";case m.Success:return"SUCCESS";case m.FailInvalid:return"FAIL_INVALID";case m.FailFee:return"FAIL_FEE";case m.FailBalance:return"FAIL_BALANCE";case m.KeyRequired:return"KEY_REQUIRED";case m.BadEncoding:return"BAD_ENCODING";case m.InsufficientAccountBalance:return"INSUFFICIENT_ACCOUNT_BALANCE";case m.InvalidSolidityAddress:return"INVALID_SOLIDITY_ADDRESS";case m.InsufficientGas:return"INSUFFICIENT_GAS";case m.ContractSizeLimitExceeded:return"CONTRACT_SIZE_LIMIT_EXCEEDED";case m.LocalCallModificationException:return"LOCAL_CALL_MODIFICATION_EXCEPTION";case m.ContractRevertExecuted:return"CONTRACT_REVERT_EXECUTED";case m.ContractExecutionException:return"CONTRACT_EXECUTION_EXCEPTION";case m.InvalidReceivingNodeAccount:return"INVALID_RECEIVING_NODE_ACCOUNT";case m.MissingQueryHeader:return"MISSING_QUERY_HEADER";case m.AccountUpdateFailed:return"ACCOUNT_UPDATE_FAILED";case m.InvalidKeyEncoding:return"INVALID_KEY_ENCODING";case m.NullSolidityAddress:return"NULL_SOLIDITY_ADDRESS";case m.ContractUpdateFailed:return"CONTRACT_UPDATE_FAILED";case m.InvalidQueryHeader:return"INVALID_QUERY_HEADER";case m.InvalidFeeSubmitted:return"INVALID_FEE_SUBMITTED";case m.InvalidPayerSignature:return"INVALID_PAYER_SIGNATURE";case m.KeyNotProvided:return"KEY_NOT_PROVIDED";case m.InvalidExpirationTime:return"INVALID_EXPIRATION_TIME";case m.NoWaclKey:return"NO_WACL_KEY";case m.FileContentEmpty:return"FILE_CONTENT_EMPTY";case m.InvalidAccountAmounts:return"INVALID_ACCOUNT_AMOUNTS";case m.EmptyTransactionBody:return"EMPTY_TRANSACTION_BODY";case m.InvalidTransactionBody:return"INVALID_TRANSACTION_BODY";case m.InvalidSignatureTypeMismatchingKey:return"INVALID_SIGNATURE_TYPE_MISMATCHING_KEY";case m.InvalidSignatureCountMismatchingKey:return"INVALID_SIGNATURE_COUNT_MISMATCHING_KEY";case m.EmptyLiveHashBody:return"EMPTY_LIVE_HASH_BODY";case m.EmptyLiveHash:return"EMPTY_LIVE_HASH";case m.EmptyLiveHashKeys:return"EMPTY_LIVE_HASH_KEYS";case m.InvalidLiveHashSize:return"INVALID_LIVE_HASH_SIZE";case m.EmptyQueryBody:return"EMPTY_QUERY_BODY";case m.EmptyLiveHashQuery:return"EMPTY_LIVE_HASH_QUERY";case m.LiveHashNotFound:return"LIVE_HASH_NOT_FOUND";case m.AccountIdDoesNotExist:return"ACCOUNT_ID_DOES_NOT_EXIST";case m.LiveHashAlreadyExists:return"LIVE_HASH_ALREADY_EXISTS";case m.InvalidFileWacl:return"INVALID_FILE_WACL";case m.SerializationFailed:return"SERIALIZATION_FAILED";case m.TransactionOversize:return"TRANSACTION_OVERSIZE";case m.TransactionTooManyLayers:return"TRANSACTION_TOO_MANY_LAYERS";case m.ContractDeleted:return"CONTRACT_DELETED";case m.PlatformNotActive:return"PLATFORM_NOT_ACTIVE";case m.KeyPrefixMismatch:return"KEY_PREFIX_MISMATCH";case m.PlatformTransactionNotCreated:return"PLATFORM_TRANSACTION_NOT_CREATED";case m.InvalidRenewalPeriod:return"INVALID_RENEWAL_PERIOD";case m.InvalidPayerAccountId:return"INVALID_PAYER_ACCOUNT_ID";case m.AccountDeleted:return"ACCOUNT_DELETED";case m.FileDeleted:return"FILE_DELETED";case m.AccountRepeatedInAccountAmounts:return"ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS";case m.SettingNegativeAccountBalance:return"SETTING_NEGATIVE_ACCOUNT_BALANCE";case m.ObtainerRequired:return"OBTAINER_REQUIRED";case m.ObtainerSameContractId:return"OBTAINER_SAME_CONTRACT_ID";case m.ObtainerDoesNotExist:return"OBTAINER_DOES_NOT_EXIST";case m.ModifyingImmutableContract:return"MODIFYING_IMMUTABLE_CONTRACT";case m.FileSystemException:return"FILE_SYSTEM_EXCEPTION";case m.AutorenewDurationNotInRange:return"AUTORENEW_DURATION_NOT_IN_RANGE";case m.ErrorDecodingBytestring:return"ERROR_DECODING_BYTESTRING";case m.ContractFileEmpty:return"CONTRACT_FILE_EMPTY";case m.ContractBytecodeEmpty:return"CONTRACT_BYTECODE_EMPTY";case m.InvalidInitialBalance:return"INVALID_INITIAL_BALANCE";case m.InvalidReceiveRecordThreshold:return"INVALID_RECEIVE_RECORD_THRESHOLD";case m.InvalidSendRecordThreshold:return"INVALID_SEND_RECORD_THRESHOLD";case m.AccountIsNotGenesisAccount:return"ACCOUNT_IS_NOT_GENESIS_ACCOUNT";case m.PayerAccountUnauthorized:return"PAYER_ACCOUNT_UNAUTHORIZED";case m.InvalidFreezeTransactionBody:return"INVALID_FREEZE_TRANSACTION_BODY";case m.FreezeTransactionBodyNotFound:return"FREEZE_TRANSACTION_BODY_NOT_FOUND";case m.TransferListSizeLimitExceeded:return"TRANSFER_LIST_SIZE_LIMIT_EXCEEDED";case m.ResultSizeLimitExceeded:return"RESULT_SIZE_LIMIT_EXCEEDED";case m.NotSpecialAccount:return"NOT_SPECIAL_ACCOUNT";case m.ContractNegativeGas:return"CONTRACT_NEGATIVE_GAS";case m.ContractNegativeValue:return"CONTRACT_NEGATIVE_VALUE";case m.InvalidFeeFile:return"INVALID_FEE_FILE";case m.InvalidExchangeRateFile:return"INVALID_EXCHANGE_RATE_FILE";case m.InsufficientLocalCallGas:return"INSUFFICIENT_LOCAL_CALL_GAS";case m.EntityNotAllowedToDelete:return"ENTITY_NOT_ALLOWED_TO_DELETE";case m.AuthorizationFailed:return"AUTHORIZATION_FAILED";case m.FileUploadedProtoInvalid:return"FILE_UPLOADED_PROTO_INVALID";case m.FileUploadedProtoNotSavedToDisk:return"FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK";case m.FeeScheduleFilePartUploaded:return"FEE_SCHEDULE_FILE_PART_UPLOADED";case m.ExchangeRateChangeLimitExceeded:return"EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED";case m.MaxContractStorageExceeded:return"MAX_CONTRACT_STORAGE_EXCEEDED";case m.TransferAccountSameAsDeleteAccount:return"TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT";case m.TotalLedgerBalanceInvalid:return"TOTAL_LEDGER_BALANCE_INVALID";case m.ExpirationReductionNotAllowed:return"EXPIRATION_REDUCTION_NOT_ALLOWED";case m.MaxGasLimitExceeded:return"MAX_GAS_LIMIT_EXCEEDED";case m.MaxFileSizeExceeded:return"MAX_FILE_SIZE_EXCEEDED";case m.ReceiverSigRequired:return"RECEIVER_SIG_REQUIRED";case m.InvalidTopicId:return"INVALID_TOPIC_ID";case m.InvalidAdminKey:return"INVALID_ADMIN_KEY";case m.InvalidSubmitKey:return"INVALID_SUBMIT_KEY";case m.Unauthorized:return"UNAUTHORIZED";case m.InvalidTopicMessage:return"INVALID_TOPIC_MESSAGE";case m.InvalidAutorenewAccount:return"INVALID_AUTORENEW_ACCOUNT";case m.AutorenewAccountNotAllowed:return"AUTORENEW_ACCOUNT_NOT_ALLOWED";case m.TopicExpired:return"TOPIC_EXPIRED";case m.InvalidChunkNumber:return"INVALID_CHUNK_NUMBER";case m.InvalidChunkTransactionId:return"INVALID_CHUNK_TRANSACTION_ID";case m.AccountFrozenForToken:return"ACCOUNT_FROZEN_FOR_TOKEN";case m.TokensPerAccountLimitExceeded:return"TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED";case m.InvalidTokenId:return"INVALID_TOKEN_ID";case m.InvalidTokenDecimals:return"INVALID_TOKEN_DECIMALS";case m.InvalidTokenInitialSupply:return"INVALID_TOKEN_INITIAL_SUPPLY";case m.InvalidTreasuryAccountForToken:return"INVALID_TREASURY_ACCOUNT_FOR_TOKEN";case m.InvalidTokenSymbol:return"INVALID_TOKEN_SYMBOL";case m.TokenHasNoFreezeKey:return"TOKEN_HAS_NO_FREEZE_KEY";case m.TransfersNotZeroSumForToken:return"TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN";case m.MissingTokenSymbol:return"MISSING_TOKEN_SYMBOL";case m.TokenSymbolTooLong:return"TOKEN_SYMBOL_TOO_LONG";case m.AccountKycNotGrantedForToken:return"ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN";case m.TokenHasNoKycKey:return"TOKEN_HAS_NO_KYC_KEY";case m.InsufficientTokenBalance:return"INSUFFICIENT_TOKEN_BALANCE";case m.TokenWasDeleted:return"TOKEN_WAS_DELETED";case m.TokenHasNoSupplyKey:return"TOKEN_HAS_NO_SUPPLY_KEY";case m.TokenHasNoWipeKey:return"TOKEN_HAS_NO_WIPE_KEY";case m.InvalidTokenMintAmount:return"INVALID_TOKEN_MINT_AMOUNT";case m.InvalidTokenBurnAmount:return"INVALID_TOKEN_BURN_AMOUNT";case m.TokenNotAssociatedToAccount:return"TOKEN_NOT_ASSOCIATED_TO_ACCOUNT";case m.CannotWipeTokenTreasuryAccount:return"CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT";case m.InvalidKycKey:return"INVALID_KYC_KEY";case m.InvalidWipeKey:return"INVALID_WIPE_KEY";case m.InvalidFreezeKey:return"INVALID_FREEZE_KEY";case m.InvalidSupplyKey:return"INVALID_SUPPLY_KEY";case m.MissingTokenName:return"MISSING_TOKEN_NAME";case m.TokenNameTooLong:return"TOKEN_NAME_TOO_LONG";case m.InvalidWipingAmount:return"INVALID_WIPING_AMOUNT";case m.TokenIsImmutable:return"TOKEN_IS_IMMUTABLE";case m.TokenAlreadyAssociatedToAccount:return"TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT";case m.TransactionRequiresZeroTokenBalances:return"TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES";case m.AccountIsTreasury:return"ACCOUNT_IS_TREASURY";case m.TokenIdRepeatedInTokenList:return"TOKEN_ID_REPEATED_IN_TOKEN_LIST";case m.TokenTransferListSizeLimitExceeded:return"TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED";case m.EmptyTokenTransferBody:return"EMPTY_TOKEN_TRANSFER_BODY";case m.EmptyTokenTransferAccountAmounts:return"EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS";case m.InvalidScheduleId:return"INVALID_SCHEDULE_ID";case m.ScheduleIsImmutable:return"SCHEDULE_IS_IMMUTABLE";case m.InvalidSchedulePayerId:return"INVALID_SCHEDULE_PAYER_ID";case m.InvalidScheduleAccountId:return"INVALID_SCHEDULE_ACCOUNT_ID";case m.NoNewValidSignatures:return"NO_NEW_VALID_SIGNATURES";case m.UnresolvableRequiredSigners:return"UNRESOLVABLE_REQUIRED_SIGNERS";case m.ScheduledTransactionNotInWhitelist:return"SCHEDULED_TRANSACTION_NOT_IN_WHITELIST";case m.SomeSignaturesWereInvalid:return"SOME_SIGNATURES_WERE_INVALID";case m.TransactionIdFieldNotAllowed:return"TRANSACTION_ID_FIELD_NOT_ALLOWED";case m.IdenticalScheduleAlreadyCreated:return"IDENTICAL_SCHEDULE_ALREADY_CREATED";case m.InvalidZeroByteInString:return"INVALID_ZERO_BYTE_IN_STRING";case m.ScheduleAlreadyDeleted:return"SCHEDULE_ALREADY_DELETED";case m.ScheduleAlreadyExecuted:return"SCHEDULE_ALREADY_EXECUTED";case m.MessageSizeTooLarge:return"MESSAGE_SIZE_TOO_LARGE";case m.OperationRepeatedInBucketGroups:return"OPERATION_REPEATED_IN_BUCKET_GROUPS";case m.BucketCapacityOverflow:return"BUCKET_CAPACITY_OVERFLOW";case m.NodeCapacityNotSufficientForOperation:return"NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION";case m.BucketHasNoThrottleGroups:return"BUCKET_HAS_NO_THROTTLE_GROUPS";case m.ThrottleGroupHasZeroOpsPerSec:return"THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC";case m.SuccessButMissingExpectedOperation:return"SUCCESS_BUT_MISSING_EXPECTED_OPERATION";case m.UnparseableThrottleDefinitions:return"UNPARSEABLE_THROTTLE_DEFINITIONS";case m.InvalidThrottleDefinitions:return"INVALID_THROTTLE_DEFINITIONS";case m.AccountExpiredAndPendingRemoval:return"ACCOUNT_EXPIRED_AND_PENDING_REMOVAL";case m.InvalidTokenMaxSupply:return"INVALID_TOKEN_MAX_SUPPLY";case m.InvalidTokenNftSerialNumber:return"INVALID_TOKEN_NFT_SERIAL_NUMBER";case m.InvalidNftId:return"INVALID_NFT_ID";case m.MetadataTooLong:return"METADATA_TOO_LONG";case m.BatchSizeLimitExceeded:return"BATCH_SIZE_LIMIT_EXCEEDED";case m.InvalidQueryRange:return"INVALID_QUERY_RANGE";case m.FractionDividesByZero:return"FRACTION_DIVIDES_BY_ZERO";case m.InsufficientPayerBalanceForCustomFee:return"INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE";case m.CustomFeesListTooLong:return"CUSTOM_FEES_LIST_TOO_LONG";case m.InvalidCustomFeeCollector:return"INVALID_CUSTOM_FEE_COLLECTOR";case m.InvalidTokenIdInCustomFees:return"INVALID_TOKEN_ID_IN_CUSTOM_FEES";case m.TokenNotAssociatedToFeeCollector:return"TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR";case m.TokenMaxSupplyReached:return"TOKEN_MAX_SUPPLY_REACHED";case m.SenderDoesNotOwnNftSerialNo:return"SENDER_DOES_NOT_OWN_NFT_SERIAL_NO";case m.CustomFeeNotFullySpecified:return"CUSTOM_FEE_NOT_FULLY_SPECIFIED";case m.CustomFeeMustBePositive:return"CUSTOM_FEE_MUST_BE_POSITIVE";case m.TokenHasNoFeeScheduleKey:return"TOKEN_HAS_NO_FEE_SCHEDULE_KEY";case m.CustomFeeOutsideNumericRange:return"CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE";case m.RoyaltyFractionCannotExceedOne:return"ROYALTY_FRACTION_CANNOT_EXCEED_ONE";case m.FractionalFeeMaxAmountLessThanMinAmount:return"FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT";case m.CustomScheduleAlreadyHasNoFees:return"CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES";case m.CustomFeeDenominationMustBeFungibleCommon:return"CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON";case m.CustomFractionalFeeOnlyAllowedForFungibleCommon:return"CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON";case m.InvalidCustomFeeScheduleKey:return"INVALID_CUSTOM_FEE_SCHEDULE_KEY";case m.InvalidTokenMintMetadata:return"INVALID_TOKEN_MINT_METADATA";case m.InvalidTokenBurnMetadata:return"INVALID_TOKEN_BURN_METADATA";case m.CurrentTreasuryStillOwnsNfts:return"CURRENT_TREASURY_STILL_OWNS_NFTS";case m.AccountStillOwnsNfts:return"ACCOUNT_STILL_OWNS_NFTS";case m.TreasuryMustOwnBurnedNft:return"TREASURY_MUST_OWN_BURNED_NFT";case m.AccountDoesNotOwnWipedNft:return"ACCOUNT_DOES_NOT_OWN_WIPED_NFT";case m.AccountAmountTransfersOnlyAllowedForFungibleCommon:return"ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON";case m.MaxNftsInPriceRegimeHaveBeenMinted:return"MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED";case m.PayerAccountDeleted:return"PAYER_ACCOUNT_DELETED";case m.CustomFeeChargingExceededMaxRecursionDepth:return"CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH";case m.CustomFeeChargingExceededMaxAccountAmounts:return"CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS";case m.InsufficientSenderAccountBalanceForCustomFee:return"INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE";case m.SerialNumberLimitReached:return"SERIAL_NUMBER_LIMIT_REACHED";case m.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique:return"CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE";case m.NoRemainingAutomaticAssociations:return"NO_REMAINING_AUTOMATIC_ASSOCIATIONS";case m.ExistingAutomaticAssociationsExceedGivenLimit:return"EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT";case m.RequestedNumAutomaticAssociationsExceedsAssociationLimit:return"REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT";case m.TokenIsPaused:return"TOKEN_IS_PAUSED";case m.TokenHasNoPauseKey:return"TOKEN_HAS_NO_PAUSE_KEY";case m.InvalidPauseKey:return"INVALID_PAUSE_KEY";case m.FreezeUpdateFileDoesNotExist:return"FREEZE_UPDATE_FILE_DOES_NOT_EXIST";case m.FreezeUpdateFileHashDoesNotMatch:return"FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH";case m.NoUpgradeHasBeenPrepared:return"NO_UPGRADE_HAS_BEEN_PREPARED";case m.NoFreezeIsScheduled:return"NO_FREEZE_IS_SCHEDULED";case m.UpdateFileHashChangedSincePrepareUpgrade:return"UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE";case m.FreezeStartTimeMustBeFuture:return"FREEZE_START_TIME_MUST_BE_FUTURE";case m.PreparedUpdateFileIsImmutable:return"PREPARED_UPDATE_FILE_IS_IMMUTABLE";case m.FreezeAlreadyScheduled:return"FREEZE_ALREADY_SCHEDULED";case m.FreezeUpgradeInProgress:return"FREEZE_UPGRADE_IN_PROGRESS";case m.UpdateFileIdDoesNotMatchPrepared:return"UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED";case m.UpdateFileHashDoesNotMatchPrepared:return"UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED";case m.ConsensusGasExhausted:return"CONSENSUS_GAS_EXHAUSTED";case m.RevertedSuccess:return"REVERTED_SUCCESS";case m.MaxStorageInPriceRegimeHasBeenUsed:return"MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED";case m.InvalidAliasKey:return"INVALID_ALIAS_KEY";case m.UnexpectedTokenDecimals:return"UNEXPECTED_TOKEN_DECIMALS";case m.InvalidProxyAccountId:return"INVALID_PROXY_ACCOUNT_ID";case m.InvalidTransferAccountId:return"INVALID_TRANSFER_ACCOUNT_ID";case m.InvalidFeeCollectorAccountId:return"INVALID_FEE_COLLECTOR_ACCOUNT_ID";case m.AliasIsImmutable:return"ALIAS_IS_IMMUTABLE";case m.SpenderAccountSameAsOwner:return"SPENDER_ACCOUNT_SAME_AS_OWNER";case m.AmountExceedsTokenMaxSupply:return"AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY";case m.NegativeAllowanceAmount:return"NEGATIVE_ALLOWANCE_AMOUNT";case m.CannotApproveForAllFungibleCommon:return"CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON";case m.SpenderDoesNotHaveAllowance:return"SPENDER_DOES_NOT_HAVE_ALLOWANCE";case m.AmountExceedsAllowance:return"AMOUNT_EXCEEDS_ALLOWANCE";case m.MaxAllowancesExceeded:return"MAX_ALLOWANCES_EXCEEDED";case m.EmptyAllowances:return"EMPTY_ALLOWANCES";case m.SpenderAccountRepeatedInAllowances:return"SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES";case m.RepeatedSerialNumsInNftAllowances:return"REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES";case m.FungibleTokenInNftAllowances:return"FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES";case m.NftInFungibleTokenAllowances:return"NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES";case m.InvalidAllowanceOwnerId:return"INVALID_ALLOWANCE_OWNER_ID";case m.InvalidAllowanceSpenderId:return"INVALID_ALLOWANCE_SPENDER_ID";case m.RepeatedAllowancesToDelete:return"REPEATED_ALLOWANCES_TO_DELETE";case m.InvalidDelegatingSpender:return"INVALID_DELEGATING_SPENDER";case m.DelegatingSpenderCannotGrantApproveForAll:return"DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL";case m.DelegatingSpenderDoesNotHaveApproveForAll:return"DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL";case m.ScheduleExpirationTimeTooFarInFuture:return"SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE";case m.ScheduleExpirationTimeMustBeHigherThanConsensusTime:return"SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME";case m.ScheduleFutureThrottleExceeded:return"SCHEDULE_FUTURE_THROTTLE_EXCEEDED";case m.ScheduleFutureGasLimitExceeded:return"SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED";case m.InvalidEthereumTransaction:return"INVALID_ETHEREUM_TRANSACTION";case m.WrongChainId:return"WRONG_CHAIN_ID";case m.WrongNonce:return"WRONG_NONCE";case m.AccessListUnsupported:return"ACCESS_LIST_UNSUPPORTED";case m.SchedulePendingExpiration:return"SCHEDULE_PENDING_EXPIRATION";case m.ContractIsTokenTreasury:return"CONTRACT_IS_TOKEN_TREASURY";case m.ContractHasNonZeroTokenBalances:return"CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES";case m.ContractExpiredAndPendingRemoval:return"CONTRACT_EXPIRED_AND_PENDING_REMOVAL";case m.ContractHasNoAutoRenewAccount:return"CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT";case m.PermanentRemovalRequiresSystemInitiation:return"PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION";case m.ProxyAccountIdFieldIsDeprecated:return"PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED";case m.SelfStakingIsNotAllowed:return"SELF_STAKING_IS_NOT_ALLOWED";case m.InvalidStakingId:return"INVALID_STAKING_ID";case m.StakingNotEnabled:return"STAKING_NOT_ENABLED";case m.InvalidPrngRange:return"INVALID_PRNG_RANGE";case m.MaxEntitiesInPriceRegimeHaveBeenCreated:return"MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED";case m.InvalidFullPrefixSignatureForPrecompile:return"INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE";case m.InsufficientBalancesForStorageRent:return"INSUFFICIENT_BALANCES_FOR_STORAGE_RENT";case m.MaxChildRecordsExceeded:return"MAX_CHILD_RECORDS_EXCEEDED";case m.InsufficientBalancesForRenewalFees:return"INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return m.Ok;case 1:return m.InvalidTransaction;case 2:return m.PayerAccountNotFound;case 3:return m.InvalidNodeAccount;case 4:return m.TransactionExpired;case 5:return m.InvalidTransactionStart;case 6:return m.InvalidTransactionDuration;case 7:return m.InvalidSignature;case 8:return m.MemoTooLong;case 9:return m.InsufficientTxFee;case 10:return m.InsufficientPayerBalance;case 11:return m.DuplicateTransaction;case 12:return m.Busy;case 13:return m.NotSupported;case 14:return m.InvalidFileId;case 15:return m.InvalidAccountId;case 16:return m.InvalidContractId;case 17:return m.InvalidTransactionId;case 18:return m.ReceiptNotFound;case 19:return m.RecordNotFound;case 20:return m.InvalidSolidityId;case 21:return m.Unknown;case 22:return m.Success;case 23:return m.FailInvalid;case 24:return m.FailFee;case 25:return m.FailBalance;case 26:return m.KeyRequired;case 27:return m.BadEncoding;case 28:return m.InsufficientAccountBalance;case 29:return m.InvalidSolidityAddress;case 30:return m.InsufficientGas;case 31:return m.ContractSizeLimitExceeded;case 32:return m.LocalCallModificationException;case 33:return m.ContractRevertExecuted;case 34:return m.ContractExecutionException;case 35:return m.InvalidReceivingNodeAccount;case 36:return m.MissingQueryHeader;case 37:return m.AccountUpdateFailed;case 38:return m.InvalidKeyEncoding;case 39:return m.NullSolidityAddress;case 40:return m.ContractUpdateFailed;case 41:return m.InvalidQueryHeader;case 42:return m.InvalidFeeSubmitted;case 43:return m.InvalidPayerSignature;case 44:return m.KeyNotProvided;case 45:return m.InvalidExpirationTime;case 46:return m.NoWaclKey;case 47:return m.FileContentEmpty;case 48:return m.InvalidAccountAmounts;case 49:return m.EmptyTransactionBody;case 50:return m.InvalidTransactionBody;case 51:return m.InvalidSignatureTypeMismatchingKey;case 52:return m.InvalidSignatureCountMismatchingKey;case 53:return m.EmptyLiveHashBody;case 54:return m.EmptyLiveHash;case 55:return m.EmptyLiveHashKeys;case 56:return m.InvalidLiveHashSize;case 57:return m.EmptyQueryBody;case 58:return m.EmptyLiveHashQuery;case 59:return m.LiveHashNotFound;case 60:return m.AccountIdDoesNotExist;case 61:return m.LiveHashAlreadyExists;case 62:return m.InvalidFileWacl;case 63:return m.SerializationFailed;case 64:return m.TransactionOversize;case 65:return m.TransactionTooManyLayers;case 66:return m.ContractDeleted;case 67:return m.PlatformNotActive;case 68:return m.KeyPrefixMismatch;case 69:return m.PlatformTransactionNotCreated;case 70:return m.InvalidRenewalPeriod;case 71:return m.InvalidPayerAccountId;case 72:return m.AccountDeleted;case 73:return m.FileDeleted;case 74:return m.AccountRepeatedInAccountAmounts;case 75:return m.SettingNegativeAccountBalance;case 76:return m.ObtainerRequired;case 77:return m.ObtainerSameContractId;case 78:return m.ObtainerDoesNotExist;case 79:return m.ModifyingImmutableContract;case 80:return m.FileSystemException;case 81:return m.AutorenewDurationNotInRange;case 82:return m.ErrorDecodingBytestring;case 83:return m.ContractFileEmpty;case 84:return m.ContractBytecodeEmpty;case 85:return m.InvalidInitialBalance;case 86:return m.InvalidReceiveRecordThreshold;case 87:return m.InvalidSendRecordThreshold;case 88:return m.AccountIsNotGenesisAccount;case 89:return m.PayerAccountUnauthorized;case 90:return m.InvalidFreezeTransactionBody;case 91:return m.FreezeTransactionBodyNotFound;case 92:return m.TransferListSizeLimitExceeded;case 93:return m.ResultSizeLimitExceeded;case 94:return m.NotSpecialAccount;case 95:return m.ContractNegativeGas;case 96:return m.ContractNegativeValue;case 97:return m.InvalidFeeFile;case 98:return m.InvalidExchangeRateFile;case 99:return m.InsufficientLocalCallGas;case 100:return m.EntityNotAllowedToDelete;case 101:return m.AuthorizationFailed;case 102:return m.FileUploadedProtoInvalid;case 103:return m.FileUploadedProtoNotSavedToDisk;case 104:return m.FeeScheduleFilePartUploaded;case 105:return m.ExchangeRateChangeLimitExceeded;case 106:return m.MaxContractStorageExceeded;case 107:return m.TransferAccountSameAsDeleteAccount;case 108:return m.TotalLedgerBalanceInvalid;case 110:return m.ExpirationReductionNotAllowed;case 111:return m.MaxGasLimitExceeded;case 112:return m.MaxFileSizeExceeded;case 113:return m.ReceiverSigRequired;case 150:return m.InvalidTopicId;case 155:return m.InvalidAdminKey;case 156:return m.InvalidSubmitKey;case 157:return m.Unauthorized;case 158:return m.InvalidTopicMessage;case 159:return m.InvalidAutorenewAccount;case 160:return m.AutorenewAccountNotAllowed;case 162:return m.TopicExpired;case 163:return m.InvalidChunkNumber;case 164:return m.InvalidChunkTransactionId;case 165:return m.AccountFrozenForToken;case 166:return m.TokensPerAccountLimitExceeded;case 167:return m.InvalidTokenId;case 168:return m.InvalidTokenDecimals;case 169:return m.InvalidTokenInitialSupply;case 170:return m.InvalidTreasuryAccountForToken;case 171:return m.InvalidTokenSymbol;case 172:return m.TokenHasNoFreezeKey;case 173:return m.TransfersNotZeroSumForToken;case 174:return m.MissingTokenSymbol;case 175:return m.TokenSymbolTooLong;case 176:return m.AccountKycNotGrantedForToken;case 177:return m.TokenHasNoKycKey;case 178:return m.InsufficientTokenBalance;case 179:return m.TokenWasDeleted;case 180:return m.TokenHasNoSupplyKey;case 181:return m.TokenHasNoWipeKey;case 182:return m.InvalidTokenMintAmount;case 183:return m.InvalidTokenBurnAmount;case 184:return m.TokenNotAssociatedToAccount;case 185:return m.CannotWipeTokenTreasuryAccount;case 186:return m.InvalidKycKey;case 187:return m.InvalidWipeKey;case 188:return m.InvalidFreezeKey;case 189:return m.InvalidSupplyKey;case 190:return m.MissingTokenName;case 191:return m.TokenNameTooLong;case 192:return m.InvalidWipingAmount;case 193:return m.TokenIsImmutable;case 194:return m.TokenAlreadyAssociatedToAccount;case 195:return m.TransactionRequiresZeroTokenBalances;case 196:return m.AccountIsTreasury;case 197:return m.TokenIdRepeatedInTokenList;case 198:return m.TokenTransferListSizeLimitExceeded;case 199:return m.EmptyTokenTransferBody;case 200:return m.EmptyTokenTransferAccountAmounts;case 201:return m.InvalidScheduleId;case 202:return m.ScheduleIsImmutable;case 203:return m.InvalidSchedulePayerId;case 204:return m.InvalidScheduleAccountId;case 205:return m.NoNewValidSignatures;case 206:return m.UnresolvableRequiredSigners;case 207:return m.ScheduledTransactionNotInWhitelist;case 208:return m.SomeSignaturesWereInvalid;case 209:return m.TransactionIdFieldNotAllowed;case 210:return m.IdenticalScheduleAlreadyCreated;case 211:return m.InvalidZeroByteInString;case 212:return m.ScheduleAlreadyDeleted;case 213:return m.ScheduleAlreadyExecuted;case 214:return m.MessageSizeTooLarge;case 215:return m.OperationRepeatedInBucketGroups;case 216:return m.BucketCapacityOverflow;case 217:return m.NodeCapacityNotSufficientForOperation;case 218:return m.BucketHasNoThrottleGroups;case 219:return m.ThrottleGroupHasZeroOpsPerSec;case 220:return m.SuccessButMissingExpectedOperation;case 221:return m.UnparseableThrottleDefinitions;case 222:return m.InvalidThrottleDefinitions;case 223:return m.AccountExpiredAndPendingRemoval;case 224:return m.InvalidTokenMaxSupply;case 225:return m.InvalidTokenNftSerialNumber;case 226:return m.InvalidNftId;case 227:return m.MetadataTooLong;case 228:return m.BatchSizeLimitExceeded;case 229:return m.InvalidQueryRange;case 230:return m.FractionDividesByZero;case 231:return m.InsufficientPayerBalanceForCustomFee;case 232:return m.CustomFeesListTooLong;case 233:return m.InvalidCustomFeeCollector;case 234:return m.InvalidTokenIdInCustomFees;case 235:return m.TokenNotAssociatedToFeeCollector;case 236:return m.TokenMaxSupplyReached;case 237:return m.SenderDoesNotOwnNftSerialNo;case 238:return m.CustomFeeNotFullySpecified;case 239:return m.CustomFeeMustBePositive;case 240:return m.TokenHasNoFeeScheduleKey;case 241:return m.CustomFeeOutsideNumericRange;case 242:return m.RoyaltyFractionCannotExceedOne;case 243:return m.FractionalFeeMaxAmountLessThanMinAmount;case 244:return m.CustomScheduleAlreadyHasNoFees;case 245:return m.CustomFeeDenominationMustBeFungibleCommon;case 246:return m.CustomFractionalFeeOnlyAllowedForFungibleCommon;case 247:return m.InvalidCustomFeeScheduleKey;case 248:return m.InvalidTokenMintMetadata;case 249:return m.InvalidTokenBurnMetadata;case 250:return m.CurrentTreasuryStillOwnsNfts;case 251:return m.AccountStillOwnsNfts;case 252:return m.TreasuryMustOwnBurnedNft;case 253:return m.AccountDoesNotOwnWipedNft;case 254:return m.AccountAmountTransfersOnlyAllowedForFungibleCommon;case 255:return m.MaxNftsInPriceRegimeHaveBeenMinted;case 256:return m.PayerAccountDeleted;case 257:return m.CustomFeeChargingExceededMaxRecursionDepth;case 258:return m.CustomFeeChargingExceededMaxAccountAmounts;case 259:return m.InsufficientSenderAccountBalanceForCustomFee;case 260:return m.SerialNumberLimitReached;case 261:return m.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique;case 262:return m.NoRemainingAutomaticAssociations;case 263:return m.ExistingAutomaticAssociationsExceedGivenLimit;case 264:return m.RequestedNumAutomaticAssociationsExceedsAssociationLimit;case 265:return m.TokenIsPaused;case 266:return m.TokenHasNoPauseKey;case 267:return m.InvalidPauseKey;case 268:return m.FreezeUpdateFileDoesNotExist;case 269:return m.FreezeUpdateFileHashDoesNotMatch;case 270:return m.NoUpgradeHasBeenPrepared;case 271:return m.NoFreezeIsScheduled;case 272:return m.UpdateFileHashChangedSincePrepareUpgrade;case 273:return m.FreezeStartTimeMustBeFuture;case 274:return m.PreparedUpdateFileIsImmutable;case 275:return m.FreezeAlreadyScheduled;case 276:return m.FreezeUpgradeInProgress;case 277:return m.UpdateFileIdDoesNotMatchPrepared;case 278:return m.UpdateFileHashDoesNotMatchPrepared;case 279:return m.ConsensusGasExhausted;case 280:return m.RevertedSuccess;case 281:return m.MaxStorageInPriceRegimeHasBeenUsed;case 282:return m.InvalidAliasKey;case 283:return m.UnexpectedTokenDecimals;case 284:return m.InvalidProxyAccountId;case 285:return m.InvalidTransferAccountId;case 286:return m.InvalidFeeCollectorAccountId;case 287:return m.AliasIsImmutable;case 288:return m.SpenderAccountSameAsOwner;case 289:return m.AmountExceedsTokenMaxSupply;case 290:return m.NegativeAllowanceAmount;case 291:return m.CannotApproveForAllFungibleCommon;case 292:return m.SpenderDoesNotHaveAllowance;case 293:return m.AmountExceedsAllowance;case 294:return m.MaxAllowancesExceeded;case 295:return m.EmptyAllowances;case 296:return m.SpenderAccountRepeatedInAllowances;case 297:return m.RepeatedSerialNumsInNftAllowances;case 298:return m.FungibleTokenInNftAllowances;case 299:return m.NftInFungibleTokenAllowances;case 300:return m.InvalidAllowanceOwnerId;case 301:return m.InvalidAllowanceSpenderId;case 302:return m.RepeatedAllowancesToDelete;case 303:return m.InvalidDelegatingSpender;case 304:return m.DelegatingSpenderCannotGrantApproveForAll;case 305:return m.DelegatingSpenderDoesNotHaveApproveForAll;case 306:return m.ScheduleExpirationTimeTooFarInFuture;case 307:return m.ScheduleExpirationTimeMustBeHigherThanConsensusTime;case 308:return m.ScheduleFutureThrottleExceeded;case 309:return m.ScheduleFutureGasLimitExceeded;case 310:return m.InvalidEthereumTransaction;case 311:return m.WrongChainId;case 312:return m.WrongNonce;case 313:return m.AccessListUnsupported;case 314:return m.SchedulePendingExpiration;case 315:return m.ContractIsTokenTreasury;case 316:return m.ContractHasNonZeroTokenBalances;case 317:return m.ContractExpiredAndPendingRemoval;case 318:return m.ContractHasNoAutoRenewAccount;case 319:return m.PermanentRemovalRequiresSystemInitiation;case 320:return m.ProxyAccountIdFieldIsDeprecated;case 321:return m.SelfStakingIsNotAllowed;case 322:return m.InvalidStakingId;case 323:return m.StakingNotEnabled;case 324:return m.InvalidPrngRange;case 325:return m.MaxEntitiesInPriceRegimeHaveBeenCreated;case 326:return m.InvalidFullPrefixSignatureForPrecompile;case 327:return m.InsufficientBalancesForStorageRent;case 328:return m.MaxChildRecordsExceeded;case 329:return m.InsufficientBalancesForRenewalFees;default:throw new Error(`(BUG) Status.fromCode() does not handle code: ${e}`)}}valueOf(){return this._code}}m.Ok=new m(0),m.InvalidTransaction=new m(1),m.PayerAccountNotFound=new m(2),m.InvalidNodeAccount=new m(3),m.TransactionExpired=new m(4),m.InvalidTransactionStart=new m(5),m.InvalidTransactionDuration=new m(6),m.InvalidSignature=new m(7),m.MemoTooLong=new m(8),m.InsufficientTxFee=new m(9),m.InsufficientPayerBalance=new m(10),m.DuplicateTransaction=new m(11),m.Busy=new m(12),m.NotSupported=new m(13),m.InvalidFileId=new m(14),m.InvalidAccountId=new m(15),m.InvalidContractId=new m(16),m.InvalidTransactionId=new m(17),m.ReceiptNotFound=new m(18),m.RecordNotFound=new m(19),m.InvalidSolidityId=new m(20),m.Unknown=new m(21),m.Success=new m(22),m.FailInvalid=new m(23),m.FailFee=new m(24),m.FailBalance=new m(25),m.KeyRequired=new m(26),m.BadEncoding=new m(27),m.InsufficientAccountBalance=new m(28),m.InvalidSolidityAddress=new m(29),m.InsufficientGas=new m(30),m.ContractSizeLimitExceeded=new m(31),m.LocalCallModificationException=new m(32),m.ContractRevertExecuted=new m(33),m.ContractExecutionException=new m(34),m.InvalidReceivingNodeAccount=new m(35),m.MissingQueryHeader=new m(36),m.AccountUpdateFailed=new m(37),m.InvalidKeyEncoding=new m(38),m.NullSolidityAddress=new m(39),m.ContractUpdateFailed=new m(40),m.InvalidQueryHeader=new m(41),m.InvalidFeeSubmitted=new m(42),m.InvalidPayerSignature=new m(43),m.KeyNotProvided=new m(44),m.InvalidExpirationTime=new m(45),m.NoWaclKey=new m(46),m.FileContentEmpty=new m(47),m.InvalidAccountAmounts=new m(48),m.EmptyTransactionBody=new m(49),m.InvalidTransactionBody=new m(50),m.InvalidSignatureTypeMismatchingKey=new m(51),m.InvalidSignatureCountMismatchingKey=new m(52),m.EmptyLiveHashBody=new m(53),m.EmptyLiveHash=new m(54),m.EmptyLiveHashKeys=new m(55),m.InvalidLiveHashSize=new m(56),m.EmptyQueryBody=new m(57),m.EmptyLiveHashQuery=new m(58),m.LiveHashNotFound=new m(59),m.AccountIdDoesNotExist=new m(60),m.LiveHashAlreadyExists=new m(61),m.InvalidFileWacl=new m(62),m.SerializationFailed=new m(63),m.TransactionOversize=new m(64),m.TransactionTooManyLayers=new m(65),m.ContractDeleted=new m(66),m.PlatformNotActive=new m(67),m.KeyPrefixMismatch=new m(68),m.PlatformTransactionNotCreated=new m(69),m.InvalidRenewalPeriod=new m(70),m.InvalidPayerAccountId=new m(71),m.AccountDeleted=new m(72),m.FileDeleted=new m(73),m.AccountRepeatedInAccountAmounts=new m(74),m.SettingNegativeAccountBalance=new m(75),m.ObtainerRequired=new m(76),m.ObtainerSameContractId=new m(77),m.ObtainerDoesNotExist=new m(78),m.ModifyingImmutableContract=new m(79),m.FileSystemException=new m(80),m.AutorenewDurationNotInRange=new m(81),m.ErrorDecodingBytestring=new m(82),m.ContractFileEmpty=new m(83),m.ContractBytecodeEmpty=new m(84),m.InvalidInitialBalance=new m(85),m.InvalidReceiveRecordThreshold=new m(86),m.InvalidSendRecordThreshold=new m(87),m.AccountIsNotGenesisAccount=new m(88),m.PayerAccountUnauthorized=new m(89),m.InvalidFreezeTransactionBody=new m(90),m.FreezeTransactionBodyNotFound=new m(91),m.TransferListSizeLimitExceeded=new m(92),m.ResultSizeLimitExceeded=new m(93),m.NotSpecialAccount=new m(94),m.ContractNegativeGas=new m(95),m.ContractNegativeValue=new m(96),m.InvalidFeeFile=new m(97),m.InvalidExchangeRateFile=new m(98),m.InsufficientLocalCallGas=new m(99),m.EntityNotAllowedToDelete=new m(100),m.AuthorizationFailed=new m(101),m.FileUploadedProtoInvalid=new m(102),m.FileUploadedProtoNotSavedToDisk=new m(103),m.FeeScheduleFilePartUploaded=new m(104),m.ExchangeRateChangeLimitExceeded=new m(105),m.MaxContractStorageExceeded=new m(106),m.TransferAccountSameAsDeleteAccount=new m(107),m.TotalLedgerBalanceInvalid=new m(108),m.ExpirationReductionNotAllowed=new m(110),m.MaxGasLimitExceeded=new m(111),m.MaxFileSizeExceeded=new m(112),m.ReceiverSigRequired=new m(113),m.InvalidTopicId=new m(150),m.InvalidAdminKey=new m(155),m.InvalidSubmitKey=new m(156),m.Unauthorized=new m(157),m.InvalidTopicMessage=new m(158),m.InvalidAutorenewAccount=new m(159),m.AutorenewAccountNotAllowed=new m(160),m.TopicExpired=new m(162),m.InvalidChunkNumber=new m(163),m.InvalidChunkTransactionId=new m(164),m.AccountFrozenForToken=new m(165),m.TokensPerAccountLimitExceeded=new m(166),m.InvalidTokenId=new m(167),m.InvalidTokenDecimals=new m(168),m.InvalidTokenInitialSupply=new m(169),m.InvalidTreasuryAccountForToken=new m(170),m.InvalidTokenSymbol=new m(171),m.TokenHasNoFreezeKey=new m(172),m.TransfersNotZeroSumForToken=new m(173),m.MissingTokenSymbol=new m(174),m.TokenSymbolTooLong=new m(175),m.AccountKycNotGrantedForToken=new m(176),m.TokenHasNoKycKey=new m(177),m.InsufficientTokenBalance=new m(178),m.TokenWasDeleted=new m(179),m.TokenHasNoSupplyKey=new m(180),m.TokenHasNoWipeKey=new m(181),m.InvalidTokenMintAmount=new m(182),m.InvalidTokenBurnAmount=new m(183),m.TokenNotAssociatedToAccount=new m(184),m.CannotWipeTokenTreasuryAccount=new m(185),m.InvalidKycKey=new m(186),m.InvalidWipeKey=new m(187),m.InvalidFreezeKey=new m(188),m.InvalidSupplyKey=new m(189),m.MissingTokenName=new m(190),m.TokenNameTooLong=new m(191),m.InvalidWipingAmount=new m(192),m.TokenIsImmutable=new m(193),m.TokenAlreadyAssociatedToAccount=new m(194),m.TransactionRequiresZeroTokenBalances=new m(195),m.AccountIsTreasury=new m(196),m.TokenIdRepeatedInTokenList=new m(197),m.TokenTransferListSizeLimitExceeded=new m(198),m.EmptyTokenTransferBody=new m(199),m.EmptyTokenTransferAccountAmounts=new m(200),m.InvalidScheduleId=new m(201),m.ScheduleIsImmutable=new m(202),m.InvalidSchedulePayerId=new m(203),m.InvalidScheduleAccountId=new m(204),m.NoNewValidSignatures=new m(205),m.UnresolvableRequiredSigners=new m(206),m.ScheduledTransactionNotInWhitelist=new m(207),m.SomeSignaturesWereInvalid=new m(208),m.TransactionIdFieldNotAllowed=new m(209),m.IdenticalScheduleAlreadyCreated=new m(210),m.InvalidZeroByteInString=new m(211),m.ScheduleAlreadyDeleted=new m(212),m.ScheduleAlreadyExecuted=new m(213),m.MessageSizeTooLarge=new m(214),m.OperationRepeatedInBucketGroups=new m(215),m.BucketCapacityOverflow=new m(216),m.NodeCapacityNotSufficientForOperation=new m(217),m.BucketHasNoThrottleGroups=new m(218),m.ThrottleGroupHasZeroOpsPerSec=new m(219),m.SuccessButMissingExpectedOperation=new m(220),m.UnparseableThrottleDefinitions=new m(221),m.InvalidThrottleDefinitions=new m(222),m.AccountExpiredAndPendingRemoval=new m(223),m.InvalidTokenMaxSupply=new m(224),m.InvalidTokenNftSerialNumber=new m(225),m.InvalidNftId=new m(226),m.MetadataTooLong=new m(227),m.BatchSizeLimitExceeded=new m(228),m.InvalidQueryRange=new m(229),m.FractionDividesByZero=new m(230),m.InsufficientPayerBalanceForCustomFee=new m(231),m.CustomFeesListTooLong=new m(232),m.InvalidCustomFeeCollector=new m(233),m.InvalidTokenIdInCustomFees=new m(234),m.TokenNotAssociatedToFeeCollector=new m(235),m.TokenMaxSupplyReached=new m(236),m.SenderDoesNotOwnNftSerialNo=new m(237),m.CustomFeeNotFullySpecified=new m(238),m.CustomFeeMustBePositive=new m(239),m.TokenHasNoFeeScheduleKey=new m(240),m.CustomFeeOutsideNumericRange=new m(241),m.RoyaltyFractionCannotExceedOne=new m(242),m.FractionalFeeMaxAmountLessThanMinAmount=new m(243),m.CustomScheduleAlreadyHasNoFees=new m(244),m.CustomFeeDenominationMustBeFungibleCommon=new m(245),m.CustomFractionalFeeOnlyAllowedForFungibleCommon=new m(246),m.InvalidCustomFeeScheduleKey=new m(247),m.InvalidTokenMintMetadata=new m(248),m.InvalidTokenBurnMetadata=new m(249),m.CurrentTreasuryStillOwnsNfts=new m(250),m.AccountStillOwnsNfts=new m(251),m.TreasuryMustOwnBurnedNft=new m(252),m.AccountDoesNotOwnWipedNft=new m(253),m.AccountAmountTransfersOnlyAllowedForFungibleCommon=new m(254),m.MaxNftsInPriceRegimeHaveBeenMinted=new m(255),m.PayerAccountDeleted=new m(256),m.CustomFeeChargingExceededMaxRecursionDepth=new m(257),m.CustomFeeChargingExceededMaxAccountAmounts=new m(258),m.InsufficientSenderAccountBalanceForCustomFee=new m(259),m.SerialNumberLimitReached=new m(260),m.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique=new m(261),m.NoRemainingAutomaticAssociations=new m(262),m.ExistingAutomaticAssociationsExceedGivenLimit=new m(263),m.RequestedNumAutomaticAssociationsExceedsAssociationLimit=new m(264),m.TokenIsPaused=new m(265),m.TokenHasNoPauseKey=new m(266),m.InvalidPauseKey=new m(267),m.FreezeUpdateFileDoesNotExist=new m(268),m.FreezeUpdateFileHashDoesNotMatch=new m(269),m.NoUpgradeHasBeenPrepared=new m(270),m.NoFreezeIsScheduled=new m(271),m.UpdateFileHashChangedSincePrepareUpgrade=new m(272),m.FreezeStartTimeMustBeFuture=new m(273),m.PreparedUpdateFileIsImmutable=new m(274),m.FreezeAlreadyScheduled=new m(275),m.FreezeUpgradeInProgress=new m(276),m.UpdateFileIdDoesNotMatchPrepared=new m(277),m.UpdateFileHashDoesNotMatchPrepared=new m(278),m.ConsensusGasExhausted=new m(279),m.RevertedSuccess=new m(280),m.MaxStorageInPriceRegimeHasBeenUsed=new m(281),m.InvalidAliasKey=new m(282),m.UnexpectedTokenDecimals=new m(283),m.InvalidProxyAccountId=new m(284),m.InvalidTransferAccountId=new m(285),m.InvalidFeeCollectorAccountId=new m(286),m.AliasIsImmutable=new m(287),m.SpenderAccountSameAsOwner=new m(288),m.AmountExceedsTokenMaxSupply=new m(289),m.NegativeAllowanceAmount=new m(290),m.CannotApproveForAllFungibleCommon=new m(291),m.SpenderDoesNotHaveAllowance=new m(292),m.AmountExceedsAllowance=new m(293),m.MaxAllowancesExceeded=new m(294),m.EmptyAllowances=new m(295),m.SpenderAccountRepeatedInAllowances=new m(296),m.RepeatedSerialNumsInNftAllowances=new m(297),m.FungibleTokenInNftAllowances=new m(298),m.NftInFungibleTokenAllowances=new m(299),m.InvalidAllowanceOwnerId=new m(300),m.InvalidAllowanceSpenderId=new m(301),m.RepeatedAllowancesToDelete=new m(302),m.InvalidDelegatingSpender=new m(303),m.DelegatingSpenderCannotGrantApproveForAll=new m(304),m.DelegatingSpenderDoesNotHaveApproveForAll=new m(305),m.ScheduleExpirationTimeTooFarInFuture=new m(306),m.ScheduleExpirationTimeMustBeHigherThanConsensusTime=new m(307),m.ScheduleFutureThrottleExceeded=new m(308),m.ScheduleFutureGasLimitExceeded=new m(309),m.InvalidEthereumTransaction=new m(310),m.WrongChainId=new m(311),m.WrongNonce=new m(312),m.AccessListUnsupported=new m(313),m.SchedulePendingExpiration=new m(314),m.ContractIsTokenTreasury=new m(315),m.ContractHasNonZeroTokenBalances=new m(316),m.ContractExpiredAndPendingRemoval=new m(317),m.ContractHasNoAutoRenewAccount=new m(318),m.PermanentRemovalRequiresSystemInitiation=new m(319),m.ProxyAccountIdFieldIsDeprecated=new m(320),m.SelfStakingIsNotAllowed=new m(321),m.InvalidStakingId=new m(322),m.StakingNotEnabled=new m(323),m.InvalidPrngRange=new m(324),m.MaxEntitiesInPriceRegimeHaveBeenCreated=new m(325),m.InvalidFullPrefixSignatureForPrecompile=new m(326),m.InsufficientBalancesForStorageRent=new m(327),m.MaxChildRecordsExceeded=new m(328),m.InsufficientBalancesForRenewalFees=new m(329);const ik=[];for(let n=0;n<=255;n+=1)ik.push(n.toString(16).padStart(2,"0"));function yt(n){let e="";for(const t of n)e+=ik[t];return e}function Ln(n){const t=(n.startsWith("0x")?n.substring(2):n).match(/.{1,2}/gu);return new Uint8Array((t??[]).map(o=>parseInt(o,16)))}class RQ extends Error{constructor(e,t,o,s,l){super(`Entity ID ${e.toString()}.${t.toString()}.${o.toString()}-${s} was incorrect.`),this.name="BadEntityIdException",this.shard=e,this.realm=t,this.num=o,this.presentChecksum=s,this.expectedChecksum=l}}function Lc(n){return null!=n}function B0(n){return Lc(n)&&("number"==typeof n||n instanceof Number)}function D1(n){return Lc(n)&&n instanceof Ot}function E1(n){return Lc(n)&&n instanceof We}function N0(n){return Lc(n)&&"string"==typeof n}function oc(n){if(Lc(n))return n;throw new Error("This value cannot be null | undefined.")}function qQ(n){if(function ZQ(n){return Lc(n)&&(N0(n)||function sk(n){return Lc(n)&&n instanceof Uint8Array}(n))}(oc(n)))return n;throw new Error("This value must be a string or Uint8Array.")}function Kt(n){if(oc(n),D1(n)||N0(n)||B0(n)||E1(n))return new Ot(n);throw new Error("This value must be a String, Number, or BigNumber to be converted.")}function Wt(n){if(n instanceof Array)return n.map(Kt);throw new Error("The provided variable must be an Array.")}function M1(n){if(oc(n),D1(n)||N0(n)||B0(n)||E1(n)){const e=parseInt(n);if(isNaN(e))throw new Error("Unable to parse given variable. Returns NaN.");return e}throw new Error("This value must be a String, Number, or BigNumber to be converted.")}function Aa(n,e=0,t=n.byteLength){if(!(Number.isInteger(e)&&e>=0))throw new Error("Invalid offset!");if(!(Number.isInteger(t)&&t>=0))throw new Error("Invalid length!");return new DataView(n.buffer,n.byteOffset+e,Math.min(t,n.byteLength-e))}function ak(n,e,t=new Set){if("object"==typeof n&&"object"==typeof e){const o=Object.keys(n),s=Object.keys(e);if(o.length!==s.length)return!1;for(let l=0;ls?1:onew Oe(n,e,We.ZERO,t));class Ft{constructor(e){this._code=e,Object.freeze(this)}static _fromValue(e){switch(e){case 0:return Ft.Ok;case 1:return Ft.Cancelled;case 2:return Ft.Unknown;case 3:return Ft.InvalidArgument;case 4:return Ft.DeadlineExceeded;case 5:return Ft.NotFound;case 6:return Ft.AlreadyExists;case 7:return Ft.PermissionDenied;case 16:return Ft.Unauthenticated;case 8:return Ft.ResourceExhausted;case 9:return Ft.FailedPrecondition;case 10:return Ft.Aborted;case 11:return Ft.OutOfRange;case 12:return Ft.Unimplemented;case 13:return Ft.Internal;case 14:return Ft.Unavailable;case 15:return Ft.DataLoss;default:throw new Error("(BUG) non-exhaustive GrpcStatus switch statement")}}toString(){switch(this){case Ft.Ok:return"OK";case Ft.Cancelled:return"CANCELLED";case Ft.Unknown:return"UNKNOWN";case Ft.InvalidArgument:return"INVALID_ARGUMENT";case Ft.DeadlineExceeded:return"DEADLINE_EXCEEDED";case Ft.NotFound:return"NOT_FOUND";case Ft.AlreadyExists:return"ALREADY_EXISTS";case Ft.PermissionDenied:return"PERMISSION_DENIED";case Ft.Unauthenticated:return"UNAUTHENTICATED";case Ft.ResourceExhausted:return"RESOURCE_EXHAUSTED";case Ft.FailedPrecondition:return"FAILED_PRECONDITION";case Ft.Aborted:return"ABORTED";case Ft.OutOfRange:return"OUT_OF_RANGE";case Ft.Unimplemented:return"UNIMPLEMENTED";case Ft.Internal:return"INTERNAL";case Ft.Unavailable:return"UNAVAILABLE";case Ft.DataLoss:return"DATA_LOSS";default:return`UNKNOWN (${this._code})`}}valueOf(){return this._code}}Ft.Ok=new Ft(0),Ft.Cancelled=new Ft(1),Ft.Unknown=new Ft(2),Ft.InvalidArgument=new Ft(3),Ft.DeadlineExceeded=new Ft(4),Ft.NotFound=new Ft(5),Ft.AlreadyExists=new Ft(6),Ft.PermissionDenied=new Ft(7),Ft.Unauthenticated=new Ft(16),Ft.ResourceExhausted=new Ft(8),Ft.FailedPrecondition=new Ft(9),Ft.Aborted=new Ft(10),Ft.OutOfRange=new Ft(11),Ft.Unimplemented=new Ft(12),Ft.Internal=new Ft(13),Ft.Unavailable=new Ft(14),Ft.DataLoss=new Ft(15);class nu extends Error{constructor(e){super(`gRPC service failed with status: ${e.toString()}`),this.status=e,this.name="GrpcServiceError",typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,nu)}static _fromResponse(e){if(null!=e.code&&null!=e.details){const t=Ft._fromValue(e.code),o=new nu(t);return o.message=e.details,o}return e}}class jc{constructor(){this.list=[],this.locked=!1,this.index=0}setList(e){if(this.locked)throw new Error("list is locked");return this.list=e,this.index=0,this}push(...e){if(this.locked)throw new Error("list is locked");return this.list.push(...e),this}setLocked(){return this.locked=!0,this}clear(){if(this.locked)throw new Error("list is locked");this.list=[],this.index=0}get(e){return this.list[e]}set(e,t){if(this.locked)throw new Error("list is locked");return e===this.length?this.list.push(t):this.list[e]=t,this}setIfAbsent(e,t){return(e==this.length||null==this.list[e])&&this.set(e,t()),this}get next(){return this.get(this.advance())}get current(){return this.get(this.index)}advance(){const e=this.index;return this.index=(this.index+1)%this.list.length,e}get isEmpty(){return 0===this.length}get length(){return this.list.length}clone(){const e=new jc;return e.list=this.list,e.locked=this.locked,e}}var Ei=G(6836);const ck=/\brst[^0-9a-zA-Z]stream\b/i;class S1{constructor(){this._maxAttempts=10,this._nodeAccountIds=new jc,this._signOnDemand=!1,this._minBackoff=null,this._maxBackoff=null,this._operator=null,this._requestTimeout=null,this._grpcDeadline=null}get nodeAccountIds(){return this._nodeAccountIds.isEmpty?null:(this._nodeAccountIds.setLocked(),this._nodeAccountIds.list)}setNodeAccountIds(e){return this._nodeAccountIds.setList(e).setLocked(),this}get maxRetries(){return console.warn("Deprecated: use maxAttempts instead"),this.maxAttempts}setMaxRetries(e){return console.warn("Deprecated: use setMaxAttempts() instead"),this.setMaxAttempts(e)}get maxAttempts(){return this._maxAttempts}setMaxAttempts(e){return this._maxAttempts=e,this}get grpcDeadline(){return this._grpcDeadline}setGrpcDeadline(e){return this._grpcDeadline=e,this}setMinBackoff(e){if(null==e)throw new Error("minBackoff cannot be null.");if(null!=this._maxBackoff&&e>this._maxBackoff)throw new Error("minBackoff cannot be larger than maxBackoff.");return this._minBackoff=e,this}get minBackoff(){return this._minBackoff}setMaxBackoff(e){if(null==e)throw new Error("maxBackoff cannot be null.");if(null!=this._minBackoff&&esetTimeout(()=>Pe(new Error("grpc deadline exceeded")),o._grpcDeadline))),Ei.trace(`[${o._getLogId()}] sending protobuf ${yt(o._requestToBytes(q))}`),ze.push(o._execute(U,q)),ce=yield Promise.race(ze)}catch(ze){const tt=nu._fromResponse(ze);if(u=tt,Ei.debug(`[${D}] received gRPC error ${JSON.stringify(tt)}`),tt instanceof nu&&o._shouldRetryExceptionally(tt)&&h<=s){e._network.increaseBackoff(y);continue}throw ze}Ei.trace(`[${o._getLogId()}] sending protobuf ${yt(o._responseToBytes(ce))}`),e._network.decreaseBackoff(y);const[ye,Be]=o._shouldRetry(q,ce);switch(null!=ye&&(u=ye),Be){case"Retry":yield tH(h,o._minBackoff,o._maxBackoff);continue;case"Finished":return o._mapResponse(ce,A,q);case"Error":throw o._mapStatusError(q,ce);default:throw new Error("(BUG) non-exhuastive switch statement for `ExecutionState`")}}throw new Error(`max attempts of ${s.toString()} was reached for request with last error being: ${null!=u?u.toString():""}`)})()}toBytes(){throw new Error("not implemented")}}function tH(n,e,t){const o=Math.min(Math.floor(e*Math.pow(2,n)),t);return new Promise(s=>setTimeout(s,o))}const lk=We.fromNumber(1e9);class Sn{constructor(e,t){this.seconds=e instanceof We?e:We.fromNumber(e),this.nanos=t instanceof We?t:We.fromNumber(t),Object.freeze(this)}static generate(){const e=Math.floor(5e3*Math.random())+8e3,t=Date.now()-e,o=Math.floor(t/1e3)+Fr.timeDrift,s=1e6*Math.floor(t%1e3)+Math.floor(1e6*Math.random());return new Sn(o,s)}static fromDate(e){let t;if("number"==typeof e)t=We.fromNumber(e);else if("string"==typeof e)t=We.fromNumber(Date.parse(e)).mul(1e6);else{if(!(e instanceof Date))throw new TypeError(`invalid type '${typeof e}' for 'data', expected 'Date'`);t=We.fromNumber(e.getTime()).mul(1e6)}return new Sn(0,0).plusNanos(t)}toDate(){return new Date(1e3*this.seconds.toInt()+Math.floor(this.nanos.toInt()/1e6))}plusNanos(e){const t=this.nanos.add(e);return new Sn(this.seconds.add(t.div(lk)),t.mod(lk))}_toProtobuf(){return{seconds:this.seconds,nanos:this.nanos.toInt()}}static _fromProtobuf(e){return new Sn(e.seconds instanceof We?e.seconds.toInt():null!=e.seconds?e.seconds:0,null!=e.nanos?e.nanos:0)}toString(){return`${this.seconds.toString()}.${this.nanos.toString()}`}compare(e){const t=this.seconds.compare(e.seconds);return 0!=t?t:this.nanos.compare(e.nanos)}}class zr{constructor(e,t,o=!1,s=null){this.accountId=e,this.validStart=t,this.scheduled=o,this.nonce=null,null!=s&&0!=s&&this.setNonce(s),Object.seal(this)}setNonce(e){return this.nonce="number"==typeof e?We.fromNumber(e):e,this}static withValidStart(e,t){return new zr(e,t)}static generate(e){return new zr("string"==typeof e?Oe.fromString(e):new Oe(e),Sn.generate())}static fromString(e){let t,o,s,l,u,h;return[t,h]=e.split("@"),[o,h]=h.split("."),h.includes("?")?([s,h]=h.split("?scheduled"),l=!0,u=h.includes("/")?h.replace("/",""):null):h.includes("/")?([s,u]=h.split("/"),l=!1):s=h,new zr(Oe.fromString(t),new Sn(We.fromValue(o),We.fromValue(s)),l,null!=u?We.fromString(u):null)}setScheduled(e){return this.scheduled=e,this}toString(){if(null!=this.accountId&&null!=this.validStart){const e=null!=this.nonce?"/".concat(this.nonce.toString()):"",t=this.scheduled?"?scheduled":"";return`${this.accountId.toString()}@${this.validStart.seconds.toString()}.${this.validStart.nanos.toString()}${t}${e}`}throw new Error("neither `accountId` nor `validStart` are set")}static _fromProtobuf(e){if(null!=e.accountID&&null!=e.transactionValidStart)return new zr(Oe._fromProtobuf(e.accountID),Sn._fromProtobuf(e.transactionValidStart),null!=e.scheduled?e.scheduled:void 0,null!=e.nonce?e.nonce:void 0);throw new Error("Neither `nonce` or `accountID` and `transactionValidStart` are set")}_toProtobuf(){return{accountID:null!=this.accountId?this.accountId._toProtobuf():null,transactionValidStart:null!=this.validStart?this.validStart._toProtobuf():null,scheduled:this.scheduled,nonce:null!=this.nonce?this.nonce.toInt():null}}static fromBytes(e){return zr._fromProtobuf(Mt.proto.TransactionID.decode(e))}toBytes(){return Mt.proto.TransactionID.encode(this._toProtobuf()).finish()}clone(){return new zr(this.accountId,this.validStart,this.scheduled,this.nonce)}compare(e){const t=this.accountId.compare(e.accountId);return 0!=t?t:this.validStart.compare(e.validStart)}getReceipt(e){return Fr.transactionReceiptQueryConstructor().setTransactionId(this).execute(e)}getRecord(e){var t=this;return Ge(function*(){return yield t.getReceipt(e),Fr.transactionRecordQueryConstructor().setTransactionId(t).execute(e)})()}}class ed extends O0{constructor(e){super(e,`transaction ${e.transactionId.toString()} failed precheck with status ${e.status.toString()}`),this.contractFunctionResult=e.contractFunctionResult}toJSON(){return{name:this.name,status:this.status.toString(),transactionId:this.transactionId.toString(),message:this.message,contractFunctionResult:this.contractFunctionResult}}}class nH extends Error{constructor(e,t){super(),this.message=`query cost of ${e.toString()} HBAR exceeds max set on client: ${t.toString()} HBAR`,this.name="MaxQueryPaymentExceededError",this.queryCost=e,this.maxQueryPayment=t}}const Ho=new Map;class Zo extends S1{constructor(){super(),this._paymentTransactionId=null,this._paymentTransactions=[],this._queryPayment=null,this._maxQueryPayment=null,this._timestamp=Date.now()}static fromBytes(e){const t=Mt.proto.Query.decode(e);if(null==t.query)throw new Error("(BUG) query.query was not set in the protobuf");const o=Ho.get(t.query);if(null==o)throw new Error(`(BUG) Query.fromBytes() not implemented for type ${t.query}`);return o(t)}toBytes(){return Mt.proto.Query.encode(this._makeRequest()).finish()}setQueryPayment(e){return this._queryPayment=e,this}setMaxQueryPayment(e){return this._maxQueryPayment=e,this}getCost(e){if(this._nodeAccountIds.isEmpty&&this._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute()),1!=P1.length)throw new Error("CostQuery has not been loaded yet");return this._timestamp=Date.now(),P1[0](this).execute(e)}setPaymentTransactionId(e){return this._paymentTransactionId=e,this}get paymentTransactionId(){return this._paymentTransactionId}_getTransactionId(){if(null==this._paymentTransactionId)throw new Error("Query.PaymentTransactionId was not set duration execution");return this._paymentTransactionId}_isPaymentRequired(){return!0}_validateChecksums(e){}_beforeExecute(e){var t=this;return Ge(function*(){if(t._paymentTransactions.length>0)return;if(e.isAutoValidateChecksumsEnabled()&&t._validateChecksums(e),t._nodeAccountIds.isEmpty&&t._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute()),t._operator=null!=t._operator?t._operator:e._operator,null==t._paymentTransactionId)if(t._isPaymentRequired()){if(null==t._operator)throw new Error("`client` must have an `operator` or an explicit payment transaction must be provided");t._paymentTransactionId=zr.generate(t._operator.accountId)}else t._paymentTransactionId=zr.generate(new Oe(0));let o=new Nt(0);const s=null!=t._maxQueryPayment?t._maxQueryPayment:e.maxQueryPayment;if(null!=t._queryPayment)o=t._queryPayment;else if(0===t._paymentTransactions.length&&t._isPaymentRequired()){const l=yield t.getCost(e);if(s.toTinybars().toInt()0&&(e={responseType:Mt.proto.ResponseType.ANSWER_ONLY,payment:this._paymentTransactions[this._nodeAccountIds.index]}),e}_onMakeRequest(e){throw new Error("not implemented")}_makeRequest(){let e={};return this._isPaymentRequired()&&null!=this._paymentTransactions&&(e={payment:this._paymentTransactions[this._nodeAccountIds.index],responseType:Mt.proto.ResponseType.ANSWER_ONLY}),this._onMakeRequest(e)}_makeRequestAsync(){var e=this;return Ge(function*(){let t={responseType:Mt.proto.ResponseType.ANSWER_ONLY};return e._isPaymentRequired()&&null!=e._paymentTransactions&&(t.payment=e._nodeAccountIds.locked?e._paymentTransactions[e._nodeAccountIds.index]:yield B1(e._getLogId(),e._paymentTransactionId,e._nodeAccountIds.current,e._isPaymentRequired()?e._operator:null,e._queryPayment)),e._onMakeRequest(t)})()}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=m._fromCode(o??Mt.proto.ResponseCodeEnum.OK);switch(Ei.debug(`[${this._getLogId()}] received status ${s.toString()}`),s){case m.Busy:case m.Unknown:case m.PlatformTransactionNotCreated:return[s,"Retry"];case m.Ok:return[s,"Finished"];default:return[s,"Error"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=m._fromCode(o??Mt.proto.ResponseCodeEnum.OK);return new ed({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null})}_requestToBytes(e){return Mt.proto.Query.encode(e).finish()}_responseToBytes(e){return Mt.proto.Response.encode(e).finish()}}function B1(n,e,t,o,s){return N1.apply(this,arguments)}function N1(){return N1=Ge(function*(n,e,t,o,s){Ei.debug(`[${n}] making a payment transaction for node ${t.toString()} and transaction ID ${e.toString()} with amount ${s.toString()}`);const l=[];null!=o?(l.push({accountID:o.accountId._toProtobuf(),amount:s.negated().toTinybars()}),l.push({accountID:t._toProtobuf(),amount:s.toTinybars()})):(l.push({accountID:new Oe(0)._toProtobuf(),amount:s.negated().toTinybars()}),l.push({accountID:t._toProtobuf(),amount:s.toTinybars()}));const u={transactionID:e._toProtobuf(),nodeAccountID:t._toProtobuf(),transactionFee:new Nt(1).toTinybars(),transactionValidDuration:{seconds:We.fromNumber(120)},cryptoTransfer:{transfers:{accountAmounts:l}}},h={bodyBytes:Mt.proto.TransactionBody.encode(u).finish()};if(null!=o){const A=yield o.transactionSigner(h.bodyBytes);h.sigMap={sigPair:[o.publicKey._toProtobufSignature(A)]}}return{signedTransactionBytes:Mt.proto.SignedTransaction.encode(h).finish()}}),N1.apply(this,arguments)}const P1=[];class Wn extends On{constructor(e,t,o,s){super();const l=ql(e,t,o);this.shard=l.shard,this.realm=l.realm,this.num=l.num,this.evmAddress=s??null,this._checksum=null}static fromEvmAddress(e,t,o){return new Wn(e,t,0,Ln(o))}static fromString(e){const t=x1(e);if(Number.isNaN(t.shard)||Number.isNaN(t.realm))throw new Error("invalid format for entity ID");const o=null!=t.shard?We.fromString(t.shard):We.ZERO,s=null!=t.realm?We.fromString(t.realm):We.ZERO,[l,u]=t.numOrHex.length<40?[We.fromString(t.numOrHex),void 0]:[We.ZERO,Ln(t.numOrHex)];return new Wn(o,s,l,u)}static _fromProtobuf(e){return new Wn(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.contractNum?e.contractNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){eu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return Wn._fromProtobuf(Mt.proto.ContractID.decode(e))}static fromSolidityAddress(e){const[t,o,s]=Jl(e);return new Wn(t,o,s)}toSolidityAddress(){return null!=this.evmAddress?yt(this.evmAddress):Xl([this.shard,this.realm,this.num])}_toProtobuf(){return{contractNum:this.num,shardNum:this.shard,realmNum:this.realm,evmAddress:this.evmAddress}}toString(){return null!=this.evmAddress?`${this.shard.toString()}.${this.realm.toString()}.${yt(this.evmAddress)}`:`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return tu(this.toString(),e)}toBytes(){return Mt.proto.ContractID.encode(this._toProtobuf()).finish()}clone(){const e=new Wn(this);return e._checksum=this._checksum,e.evmAddress=this.evmAddress,e}compare(e){return X3([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}_toProtobufKey(){return{contractID:this._toProtobuf()}}static __fromProtobufKey(e){return Wn._fromProtobuf(e)}}Fr.setContractId(n=>Wn.__fromProtobufKey(n));class nr{constructor(e,t,o){const s=ql(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=P0(e),o=new nr(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new nr(null!=e.shardNum?We.fromString(e.shardNum.toString()):0,null!=e.realmNum?We.fromString(e.realmNum.toString()):0,null!=e.fileNum?We.fromString(e.fileNum.toString()):0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){eu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return nr._fromProtobuf(Mt.proto.FileID.decode(e))}static fromSolidityAddress(e){const[t,o,s]=Jl(e);return new nr(t,o,s)}toSolidityAddress(){return Xl([this.shard,this.realm,this.num])}_toProtobuf(){return{fileNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return tu(this.toString(),e)}toBytes(){return Mt.proto.FileID.encode(this._toProtobuf()).finish()}clone(){const e=new nr(this);return e._checksum=this._checksum,e}compare(e){return X3([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}nr.ADDRESS_BOOK=new nr(102),nr.FEE_SCHEDULE=new nr(111),nr.EXCHANGE_RATES=new nr(112);class ai{constructor(e,t,o){const s=ql(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=P0(e),o=new ai(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new ai(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.topicNum?e.topicNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){eu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return ai._fromProtobuf(Mt.proto.TopicID.decode(e))}static fromSolidityAddress(e){const[t,o,s]=Jl(e);return new ai(t,o,s)}toSolidityAddress(){return Xl([this.shard,this.realm,this.num])}_toProtobuf(){return{topicNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return tu(this.toString(),e)}toBytes(){return Mt.proto.TopicID.encode(this._toProtobuf()).finish()}clone(){const e=new ai(this);return e._checksum=this._checksum,e}compare(e){return X3([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class It{constructor(e,t,o){const s=ql(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=P0(e),o=new It(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new It(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.tokenNum?e.tokenNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){eu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return It._fromProtobuf(Mt.proto.TokenID.decode(e))}static fromSolidityAddress(e){return new It(...Jl(e))}toSolidityAddress(){return Xl([this.shard,this.realm,this.num])}_toProtobuf(){return{tokenNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return tu(this.toString(),e)}toBytes(){return Mt.proto.TokenID.encode(this._toProtobuf()).finish()}clone(){const e=new It(this);return e._checksum=this._checksum,e}compare(e){return X3([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class yi{constructor(e,t,o){const s=ql(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=P0(e),o=new yi(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new yi(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.scheduleNum?e.scheduleNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){eu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return yi._fromProtobuf(Mt.proto.ScheduleID.decode(e))}static fromSolidityAddress(e){return new yi(...Jl(e))}toSolidityAddress(){return Xl([this.shard,this.realm,this.num])}_toProtobuf(){return{scheduleNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return tu(this.toString(),e)}toBytes(){return Mt.proto.ScheduleID.encode(this._toProtobuf()).finish()}clone(){const e=new yi(this);return e._checksum=this._checksum,e}compare(e){return X3([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class R1{constructor(e){this.hbars=e.hbars,this.cents=e.cents,this.expirationTime=e.expirationTime,this.exchangeRateInCents=e.cents/e.hbars,Object.freeze(this)}static _fromProtobuf(e){return new R1({hbars:e.hbarEquiv,cents:e.centEquiv,expirationTime:new Date(null!=e.expirationTime&&null!=e.expirationTime.seconds?We.isLong(e.expirationTime.seconds)?1e3*e.expirationTime.seconds.toInt():e.expirationTime.seconds:0)})}_toProtobuf(){return{hbarEquiv:this.hbars,centEquiv:this.cents,expirationTime:{seconds:We.fromNumber(Math.trunc(this.expirationTime.getTime()/1e3))}}}}class dr{constructor(e){this.status=e.status,this.accountId=e.accountId,this.fileId=e.fileId,this.contractId=e.contractId,this.topicId=e.topicId,this.tokenId=e.tokenId,this.scheduleId=e.scheduleId,this.exchangeRate=e.exchangeRate,this.topicSequenceNumber=e.topicSequenceNumber,this.topicRunningHash=e.topicRunningHash,this.totalSupply=e.totalSupply,this.scheduledTransactionId=e.scheduledTransactionId,this.serials=e.serials,this.duplicates=e.duplicates,this.children=e.children,Object.freeze(this)}_toProtobuf(){return{duplicateTransactionReceipts:this.duplicates.map(o=>o._toProtobuf().receipt),childTransactionReceipts:this.children.map(o=>o._toProtobuf().receipt),receipt:{status:this.status.valueOf(),accountID:null!=this.accountId?this.accountId._toProtobuf():null,fileID:null!=this.fileId?this.fileId._toProtobuf():null,contractID:null!=this.contractId?this.contractId._toProtobuf():null,topicID:null!=this.topicId?this.topicId._toProtobuf():null,tokenID:null!=this.tokenId?this.tokenId._toProtobuf():null,scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,topicRunningHash:null==this.topicRunningHash?null:this.topicRunningHash,topicSequenceNumber:this.topicSequenceNumber,exchangeRate:{nextRate:null,currentRate:null!=this.exchangeRate?this.exchangeRate._toProtobuf():null},scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,serialNumbers:this.serials,newTotalSupply:this.totalSupply}}}static _fromProtobuf(e){const t=e.receipt,o=t.exchangeRate,s=null!=e.childTransactionReceipts?e.childTransactionReceipts.map(u=>dr._fromProtobuf({receipt:u})):[],l=null!=e.duplicateTransactionReceipts?e.duplicateTransactionReceipts.map(u=>dr._fromProtobuf({receipt:u})):[];return new dr({status:m._fromCode(null!=t.status?t.status:0),accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):null,fileId:null!=t.fileID?nr._fromProtobuf(t.fileID):null,contractId:null!=t.contractID?Wn._fromProtobuf(t.contractID):null,topicId:null!=t.topicID?ai._fromProtobuf(t.topicID):null,tokenId:null!=t.tokenID?It._fromProtobuf(t.tokenID):null,scheduleId:null!=t.scheduleID?yi._fromProtobuf(t.scheduleID):null,exchangeRate:null!=t.exchangeRate?R1._fromProtobuf(o.currentRate):null,topicSequenceNumber:null==t.topicSequenceNumber?null:We.fromString(t.topicSequenceNumber.toString()),topicRunningHash:null!=t.topicRunningHash?new Uint8Array(t.topicRunningHash):null,totalSupply:null!=t.newTotalSupply?We.fromString(t.newTotalSupply.toString()):null,scheduledTransactionId:null!=t.scheduledTransactionID?zr._fromProtobuf(t.scheduledTransactionID):null,serials:null!=t.serialNumbers?t.serialNumbers.map(u=>We.fromValue(u)):[],children:s,duplicates:l})}static fromBytes(e){return dr._fromProtobuf(Mt.proto.TransactionGetReceiptResponse.decode(e))}toBytes(){return Mt.proto.TransactionGetReceiptResponse.encode(this._toProtobuf()).finish()}}const{proto:uk}=Uc;class ru extends Zo{constructor(e={}){super(),this._transactionId=null,this._includeChildren=null,this._includeDuplicates=null,this._validateStatus=!0,null!=e.transactionId&&this.setTransactionId(e.transactionId),null!=e.includeChildren&&this.setIncludeChildren(e.includeChildren),null!=e.includeDuplicates&&this.setIncludeDuplicates(e.includeDuplicates),null!=e.validateStatus&&this.setValidateStatus(e.validateStatus)}static _fromProtobuf(e){const t=e.transactionGetReceipt;return new ru({transactionId:t.transactionID?zr._fromProtobuf(t.transactionID):void 0,includeDuplicates:null!=t.includeDuplicates?t.includeDuplicates:void 0,includeChildren:null!=t.includeChildReceipts?t.includeChildReceipts:void 0})}get transactionId(){return this._transactionId}setTransactionId(e){return this._transactionId="string"==typeof e?zr.fromString(e):e.clone(),this}setIncludeDuplicates(e){return this._includeDuplicates=e,this}get includeDuplicates(){return null!=this._includeDuplicates&&this._includeDuplicates}setIncludeChildren(e){return this._includeChildren=e,this}get includeChildren(){return null!=this._includeChildren&&this._includeChildren}setValidateStatus(e){return this._validateStatus=e,this}get validateStatus(){return this._validateStatus}_isPaymentRequired(){return!1}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=m._fromCode(o??uk.ResponseCodeEnum.OK);switch(Ei.debug(`[${this._getLogId()}] received node precheck status ${s.toString()}`),s){case m.Busy:case m.Unknown:case m.ReceiptNotFound:return[s,"Retry"];case m.Ok:break;default:return[s,"Error"]}switch(s=m._fromCode(t.transactionGetReceipt.receipt.status),Ei.debug(`[${this._getLogId()}] received receipt status ${s.toString()}`),s){case m.Busy:case m.Unknown:case m.ReceiptNotFound:return[s,"Retry"];case m.Success:return[s,"Finished"];default:return[s,this._validateStatus?"Error":"Finished"]}}_getTransactionId(){return null!=this._transactionId?this._transactionId:super._getTransactionId()}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=m._fromCode(o??uk.ResponseCodeEnum.OK);if(s!==m.Ok)return new ed({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null});const l=t.transactionGetReceipt;if(s=m._fromCode(l.receipt.status),null==this._transactionId)throw new Error("Failed to construct `ReceiptStatusError` because `transactionId` is `null`");return new S0({status:s,transactionId:this._transactionId,transactionReceipt:dr._fromProtobuf(l)})}_validateChecksums(e){null!=this._transactionId&&null!=this._transactionId.accountId&&this._transactionId.accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getTransactionReceipts(t)}_mapResponseHeader(e){return e.transactionGetReceipt.header}_mapResponse(e,t,o){return Promise.resolve(dr._fromProtobuf(e.transactionGetReceipt))}_onMakeRequest(e){return{transactionGetReceipt:{header:e,transactionID:null!=this._transactionId?this._transactionId._toProtobuf():null,includeDuplicates:this._includeDuplicates,includeChildReceipts:this._includeChildren}}}_getLogId(){return`TransactionReceiptQuery:${this._timestamp.toString()}`}}Ho.set("transactionGetReceipt",ru._fromProtobuf);class ou{constructor(e){this.accountId=e.accountId instanceof Oe?e.accountId:Oe.fromString(e.accountId),this.amount=e.amount instanceof Nt?e.amount:new Nt(e.amount),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e)t.push(new ou({accountId:Oe._fromProtobuf(o.accountID),amount:Nt.fromTinybars(null!=o.amount?o.amount:0),isApproved:o.isApproval}));return t}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount.toTinybars(),isApproval:this.isApproved}}}class F1{constructor(e){this.contractId=e.contractId,this.bloom=e.bloom,this.topics=e.topics,this.data=e.data,Object.freeze(this)}static _fromProtobuf(e){return new F1({contractId:Wn._fromProtobuf(e.contractID),bloom:null!=e.bloom?e.bloom:new Uint8Array,topics:null!=e.topic?e.topic:[],data:null!=e.data?e.data:new Uint8Array})}_toProtobuf(){return{contractID:this.contractId._toProtobuf(),bloom:this.bloom,topic:this.topics,data:this.data}}}function L1(n){return(new TextDecoder).decode(n)}function iu(n){return(new TextEncoder).encode(n)}class su{constructor(e){this._createResult=e._createResult,this.contractId=e.contractId,this.bytes=e.bytes,this.errorMessage=e.errorMessage,this.bloom=e.bloom,this.gasUsed=e.gasUsed,this.logs=e.logs,this.createdContractIds=e.createdContractIds,this.evmAddress=e.evmAddress,this.stateChanges=e.stateChanges,this.gas=e.gas,this.amount=e.amount,this.functionParameters=e.functionParameters,this.senderAccountId=e.senderAccountId}static _fromProtobuf(e,t){const o=e.contractID,s=e.gasUsed,l=e.gas?e.gas:-1,u=e.amount?e.amount:-1;return new su({_createResult:t,bytes:e.contractCallResult,contractId:null!=o?Wn._fromProtobuf(o):null,errorMessage:null!=e.errorMessage?e.errorMessage:null,bloom:e.bloom,gasUsed:s instanceof We?s:We.fromValue(s),logs:(null!=e.logInfo?e.logInfo:[]).map(h=>F1._fromProtobuf(h)),createdContractIds:(null!=e.createdContractIDs?e.createdContractIDs:[]).map(h=>Wn._fromProtobuf(h)),evmAddress:null!=e.evmAddress&&null!=e.evmAddress.value?e.evmAddress.value:null,stateChanges:[],gas:l instanceof We?l:We.fromValue(l),amount:u instanceof We?u:We.fromValue(u),functionParameters:e.functionParameters,senderAccountId:null!=e.senderId?Oe._fromProtobuf(e.senderId):null})}asBytes(){return this.bytes}getString(e){return L1(this.getBytes(e))}getBytes(e){const t=this.getInt32(e),o=Aa(this.bytes).getInt32(t+28);return this.bytes.subarray(t+32,t+32+o)}getBytes32(e){return this.bytes.subarray(32*(e??0),32*(e??0)+32)}getBool(e){return 0!==this.bytes[32*(e??0)+31]}getInt8(e){return this.bytes[32*(e??0)+31]}getUint8(e){return this.bytes[32*(e??0)+31]}getInt32(e){const t=32*(e??0)+28;return Aa(this.bytes).getInt32(t)}getUint32(e){const t=32*(e??0)+28;return Aa(this.bytes).getUint32(t)}getInt40(e){return new Ot(yt(this._getBytes32(e??0).subarray(27,32)),16)}getUint40(e){return new Ot(yt(this._getBytes32(e).subarray(27,32)),16)}getInt48(e){return new Ot(yt(this._getBytes32(e??0).subarray(26,32)),16)}getUint48(e){return new Ot(yt(this._getBytes32(e).subarray(26,32)),16)}getInt56(e){return new Ot(yt(this._getBytes32(e??0).subarray(25,32)),16)}getUint56(e){return new Ot(yt(this._getBytes32(e).subarray(25,32)),16)}getInt64(e){return new Ot(yt(this._getBytes32(e??0).subarray(24,32)),16)}getUint64(e){return new Ot(yt(this._getBytes32(e).subarray(24,32)),16)}getInt72(e){return new Ot(yt(this._getBytes32(e??0).subarray(23,32)),16)}getUint72(e){return new Ot(yt(this._getBytes32(e).subarray(23,32)),16)}getInt80(e){return new Ot(yt(this._getBytes32(e??0).subarray(22,32)),16)}getUint80(e){return new Ot(yt(this._getBytes32(e).subarray(22,32)),16)}getInt88(e){return new Ot(yt(this._getBytes32(e??0).subarray(21,32)),16)}getUint88(e){return new Ot(yt(this._getBytes32(e).subarray(21,32)),16)}getInt96(e){return new Ot(yt(this._getBytes32(e??0).subarray(20,32)),16)}getUint96(e){return new Ot(yt(this._getBytes32(e).subarray(20,32)),16)}getInt104(e){return new Ot(yt(this._getBytes32(e??0).subarray(19,32)),16)}getUint104(e){return new Ot(yt(this._getBytes32(e).subarray(19,32)),16)}getInt112(e){return new Ot(yt(this._getBytes32(e??0).subarray(18,32)),16)}getUint112(e){return new Ot(yt(this._getBytes32(e).subarray(18,32)),16)}getInt120(e){return new Ot(yt(this._getBytes32(e??0).subarray(17,32)),16)}getUint120(e){return new Ot(yt(this._getBytes32(e).subarray(17,32)),16)}getInt128(e){return new Ot(yt(this._getBytes32(e??0).subarray(16,32)),16)}getUint128(e){return new Ot(yt(this._getBytes32(e).subarray(16,32)),16)}getInt136(e){return new Ot(yt(this._getBytes32(e??0).subarray(15,32)),16)}getUint136(e){return new Ot(yt(this._getBytes32(e).subarray(15,32)),16)}getInt144(e){return new Ot(yt(this._getBytes32(e??0).subarray(14,32)),16)}getUint144(e){return new Ot(yt(this._getBytes32(e).subarray(14,32)),16)}getInt152(e){return new Ot(yt(this._getBytes32(e??0).subarray(13,32)),16)}getUint152(e){return new Ot(yt(this._getBytes32(e).subarray(13,32)),16)}getInt160(e){return new Ot(yt(this._getBytes32(e??0).subarray(12,32)),16)}getUint160(e){return new Ot(yt(this._getBytes32(e).subarray(12,32)),16)}getInt168(e){return new Ot(yt(this._getBytes32(e??0).subarray(11,32)),16)}getUint168(e){return new Ot(yt(this._getBytes32(e).subarray(11,32)),16)}getInt176(e){return new Ot(yt(this._getBytes32(e??0).subarray(10,32)),16)}getUint176(e){return new Ot(yt(this._getBytes32(e).subarray(10,32)),16)}getInt184(e){return new Ot(yt(this._getBytes32(e??0).subarray(9,32)),16)}getUint184(e){return new Ot(yt(this._getBytes32(e).subarray(9,32)),16)}getInt192(e){return new Ot(yt(this._getBytes32(e??0).subarray(8,32)),16)}getUint192(e){return new Ot(yt(this._getBytes32(e).subarray(8,32)),16)}getInt200(e){return new Ot(yt(this._getBytes32(e??0).subarray(7,32)),16)}getUint200(e){return new Ot(yt(this._getBytes32(e).subarray(7,32)),16)}getInt208(e){return new Ot(yt(this._getBytes32(e??0).subarray(6,32)),16)}getUint208(e){return new Ot(yt(this._getBytes32(e).subarray(6,32)),16)}getInt216(e){return new Ot(yt(this._getBytes32(e??0).subarray(5,32)),16)}getUint216(e){return new Ot(yt(this._getBytes32(e).subarray(5,32)),16)}getInt224(e){return new Ot(yt(this._getBytes32(e??0).subarray(4,32)),16)}getUint224(e){return new Ot(yt(this._getBytes32(e).subarray(4,32)),16)}getInt232(e){return new Ot(yt(this._getBytes32(e??0).subarray(3,32)),16)}getUint232(e){return new Ot(yt(this._getBytes32(e).subarray(3,32)),16)}getInt240(e){return new Ot(yt(this._getBytes32(e??0).subarray(2,32)),16)}getUint240(e){return new Ot(yt(this._getBytes32(e).subarray(2,32)),16)}getInt248(e){return new Ot(yt(this._getBytes32(e??0).subarray(1,32)),16)}getUint248(e){return new Ot(yt(this._getBytes32(e).subarray(1,32)),16)}getInt256(e){return new Ot(yt(this._getBytes32(e??0)),16)}getUint256(e){return new Ot(yt(this._getBytes32(e)),16)}getAddress(e){return yt(this.bytes.subarray(32*(e??0)+12,32*(e??0)+32))}_getBytes32(e){return this.bytes.subarray(32*(e??0),32*(e??0)+32)}_toProtobuf(){return{contractID:null!=this.contractId?this.contractId._toProtobuf():null,contractCallResult:this.bytes,errorMessage:this.errorMessage,bloom:this.bloom,gasUsed:this.gasUsed,logInfo:this.logs.map(e=>e._toProtobuf()),createdContractIDs:this.createdContractIds.map(e=>e._toProtobuf()),evmAddress:null!=this.evmAddress?{value:this.evmAddress}:null,gas:this.gas,amount:this.amount,functionParameters:this.functionParameters,senderId:null!=this.senderAccountId?this.senderAccountId._toProtobuf():null}}}class Cs{constructor(e){this._map=new Map,this.__map=new Map,this._fromString=e}get(e){const t="string"==typeof e?e:e.toString();return this._map.get(t)??null}_set(e,t){const o="string"==typeof e?e:e.toString();this._map.set(o,t),this.__map.set(e,t)}values(){return this._map.values()}get size(){return this._map.size}keys(){return this.__map.keys()}[Symbol.iterator](){return this.__map[Symbol.iterator]()}toString(){const e={};for(const[t,o]of this._map)e[t]=o;return JSON.stringify(e)}}class dk extends Cs{constructor(){super(e=>Oe.fromString(e))}}class R0 extends Cs{constructor(){super(e=>It.fromString(e))}__set(e,t,o){const s=e.toString();let l=this._map.get(s);null==l&&(l=new dk,this._map.set(s,l),this.__map.set(e,l)),l._set(t,o)}static _fromProtobuf(e){const t=new R0;for(const o of e){const s=It._fromProtobuf(o.token);for(const l of null!=o.transfers?o.transfers:[]){const u=Oe._fromProtobuf(l.accountID);t.__set(s,u,l.amount)}}return t}_toProtobuf(){const e=[];for(const[t,o]of this){const s=[];for(const[l,u]of o)s.push({accountID:l._toProtobuf(),amount:u});e.push({token:t._toProtobuf(),transfers:s})}return e}}class F0 extends Cs{constructor(){super(e=>It.fromString(e))}__set(e,t){const o=e.toString();let s=this._map.get(o);null==s&&(s=[],this._map.set(o,s),this.__map.set(e,s)),s.push(t)}static _fromProtobuf(e){const t=new F0;for(const o of e){const s=It._fromProtobuf(o.token);for(const l of null!=o.nftTransfers?o.nftTransfers:[]){const u=Oe._fromProtobuf(l.senderAccountID),h=Oe._fromProtobuf(l.receiverAccountID);t.__set(s,{sender:u,recipient:h,serial:We.fromValue(l.serialNumber),isApproved:!1})}}return t}_toProtobuf(){const e=[];for(const[t,o]of this){const s=[];for(const l of o)s.push({senderAccountID:l.sender._toProtobuf(),receiverAccountID:l.recipient._toProtobuf(),serialNumber:l.serial});e.push({token:t._toProtobuf(),nftTransfers:s})}return e}}class U1{constructor(e={}){this._feeCollectorAccountId=null,null!=e.feeCollectorAccountId&&this.setFeeCollectorAccountId(e.feeCollectorAccountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._amount=null,null!=e.amount&&this.setAmount(e.amount),this._payerAccountIds=null,null!=e.payerAccountIds&&this.setPayerAccountIds(e.payerAccountIds)}get feeCollectorAccountId(){return this._feeCollectorAccountId}setFeeCollectorAccountId(e){return this._feeCollectorAccountId="string"==typeof e?Oe.fromString(e):e,this}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?It.fromString(e):e,this}get amount(){return this._amount}setAmount(e){return this._amount="number"==typeof e?We.fromNumber(e):e,this}get payerAccountIds(){return this._payerAccountIds}setPayerAccountIds(e){return this._payerAccountIds=e,this}static _fromProtobuf(e){return new U1({feeCollectorAccountId:null!=e.feeCollectorAccountId?Oe._fromProtobuf(e.feeCollectorAccountId):void 0,tokenId:null!=e.tokenId?It._fromProtobuf(e.tokenId):void 0,amount:null!=e.amount?e.amount:void 0,payerAccountIds:null!=e.effectivePayerAccountId?e.effectivePayerAccountId.map(t=>Oe._fromProtobuf(t)):void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,tokenId:null!=this._tokenId?this._tokenId._toProtobuf():null,amount:this._amount,effectivePayerAccountId:null!=this._payerAccountIds?this._payerAccountIds.map(e=>e._toProtobuf()):null}}}class j1{constructor(e={}){this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._defaultMaxTransactionFee=new Nt(5)}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e,this}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?It.fromString(e):e,this}static _fromProtobuf(e){return new j1({accountId:null!=e.accountId?Oe._fromProtobuf(e.accountId):void 0,tokenId:null!=e.tokenId?It._fromProtobuf(e.tokenId):void 0})}_toProtobuf(){return{accountId:null!=this._accountId?this._accountId._toProtobuf():void 0,tokenId:null!=this._tokenId?this._tokenId._toProtobuf():void 0}}}class au{constructor(e){this.tokenId=e.tokenId instanceof It?e.tokenId:It.fromString(e.tokenId),this.accountId=e.accountId instanceof Oe?e.accountId:Oe.fromString(e.accountId),this.expectedDecimals=e.expectedDecimals,this.amount=We.fromValue(e.amount),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e){const s=It._fromProtobuf(o.token),l=null!=o.expectedDecimals?o.expectedDecimals.value:null;for(const u of null!=o.transfers?o.transfers:[])t.push(new au({tokenId:s,accountId:Oe._fromProtobuf(u.accountID),expectedDecimals:l,amount:null!=u.amount?u.amount:We.ZERO,isApproved:1==u.isApproval}))}return t}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount,isApproval:this.isApproved}}}class Gc{constructor(e){this.receipt=e.receipt,this.transactionHash=e.transactionHash,this.consensusTimestamp=e.consensusTimestamp,this.transactionId=e.transactionId,this.transactionMemo=e.transactionMemo,this.transactionFee=e.transactionFee,this.transfers=e.transfers,this.contractFunctionResult=null!=e.contractFunctionResult?e.contractFunctionResult:null,this.tokenTransfers=e.tokenTransfers,this.tokenTransfersList=e.tokenTransfersList,this.scheduleRef=e.scheduleRef,this.assessedCustomFees=e.assessedCustomFees,this.nftTransfers=e.nftTransfers,this.automaticTokenAssociations=e.automaticTokenAssociations,this.parentConsensusTimestamp=e.parentConsensusTimestamp,this.aliasKey=e.aliasKey,this.duplicates=e.duplicates,this.children=e.children,this.hbarAllowanceAdjustments=e.hbarAllowanceAdjustments,this.tokenAllowanceAdjustments=e.tokenAllowanceAdjustments,this.nftAllowanceAdjustments=e.nftAllowanceAdjustments,this.ethereumHash=e.ethereumHash,this.paidStakingRewards=e.paidStakingRewards,this.prngBytes=e.prngBytes,this.prngNumber=e.prngNumber,Object.freeze(this)}_toProtobuf(){const e=this.tokenTransfers._toProtobuf(),t=this.nftTransfers._toProtobuf(),o=[];for(const u of e)for(const h of t)null!=u.token&&null!=h.token&&u.token.shardNum===h.token.shardNum&&u.token.realmNum===h.token.realmNum&&u.token.tokenNum===h.token.tokenNum?o.push({token:u.token,transfers:u.transfers,nftTransfers:u.nftTransfers}):(o.push(u),o.push(h));return{duplicateTransactionRecords:this.duplicates.map(u=>u._toProtobuf().transactionRecord),childTransactionRecords:this.children.map(u=>u._toProtobuf().transactionRecord),transactionRecord:{receipt:this.receipt._toProtobuf().receipt,transactionHash:null!=this.transactionHash?this.transactionHash:null,consensusTimestamp:null!=this.consensusTimestamp?this.consensusTimestamp._toProtobuf():null,transactionID:null!=this.transactionId?this.transactionId._toProtobuf():null,memo:null!=this.transactionMemo?this.transactionMemo:null,transactionFee:null!=this.transactionFee?this.transactionFee.toTinybars():null,contractCallResult:null==this.contractFunctionResult||this.contractFunctionResult._createResult?null:this.contractFunctionResult._toProtobuf(),contractCreateResult:null!=this.contractFunctionResult&&this.contractFunctionResult._createResult?this.contractFunctionResult._toProtobuf():null,transferList:null!=this.transfers?{accountAmounts:this.transfers.map(u=>u._toProtobuf())}:null,tokenTransferLists:o,scheduleRef:null!=this.scheduleRef?this.scheduleRef._toProtobuf():null,assessedCustomFees:this.assessedCustomFees.map(u=>u._toProtobuf()),automaticTokenAssociations:this.automaticTokenAssociations.map(u=>u._toProtobuf()),parentConsensusTimestamp:null!=this.parentConsensusTimestamp?this.parentConsensusTimestamp._toProtobuf():null,alias:null!=this.aliasKey?Mt.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null,ethereumHash:this.ethereumHash,paidStakingRewards:this.paidStakingRewards.map(u=>u._toProtobuf()),prngBytes:this.prngBytes,prngNumber:null!=this.prngNumber?this.prngNumber:null}}}static _fromProtobuf(e){const t=e.transactionRecord;let o=null!=t.alias&&t.alias.length>0?On._fromProtobufKey(Mt.proto.Key.decode(t.alias)):null;o instanceof fo||(o=null);const s=null!=e.childTransactionRecords?e.childTransactionRecords.map(h=>Gc._fromProtobuf({transactionRecord:h})):[],l=null!=e.duplicateTransactionRecords?e.duplicateTransactionRecords.map(h=>Gc._fromProtobuf({transactionRecord:h})):[],u=null!=t.contractCallResult?su._fromProtobuf(t.contractCallResult,!1):null!=t.contractCreateResult?su._fromProtobuf(t.contractCreateResult,!0):void 0;return new Gc({receipt:dr._fromProtobuf({receipt:t.receipt}),transactionHash:null!=t.transactionHash?t.transactionHash:new Uint8Array,consensusTimestamp:Sn._fromProtobuf(t.consensusTimestamp),transactionId:zr._fromProtobuf(t.transactionID),transactionMemo:null!=t.memo?t.memo:"",transactionFee:Nt.fromTinybars(null!=t.transactionFee?t.transactionFee:0),transfers:ou._fromProtobuf(null!=t.transferList&&null!=t.transferList.accountAmounts?t.transferList.accountAmounts:[]),contractFunctionResult:u,tokenTransfers:R0._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),tokenTransfersList:au._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),scheduleRef:null!=t.scheduleRef?yi._fromProtobuf(t.scheduleRef):null,assessedCustomFees:null!=t.assessedCustomFees?t.assessedCustomFees.map(h=>U1._fromProtobuf(h)):[],nftTransfers:F0._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),automaticTokenAssociations:null!=t.automaticTokenAssociations?t.automaticTokenAssociations.map(h=>j1._fromProtobuf(h)):[],parentConsensusTimestamp:null!=t.parentConsensusTimestamp?Sn._fromProtobuf(t.parentConsensusTimestamp):null,aliasKey:o,duplicates:l,children:s,hbarAllowanceAdjustments:[],tokenAllowanceAdjustments:[],nftAllowanceAdjustments:[],ethereumHash:null!=t.ethereumHash?t.ethereumHash:null,paidStakingRewards:null!=t.paidStakingRewards?ou._fromProtobuf(t.paidStakingRewards):[],prngBytes:null!=t.prngBytes?t.prngBytes:null,prngNumber:null!=t.prngNumber?t.prngNumber:null})}static fromBytes(e){return Gc._fromProtobuf(Mt.proto.TransactionGetRecordResponse.decode(e))}toBytes(){return Mt.proto.TransactionGetRecordResponse.encode(this._toProtobuf()).finish()}}const{proto:fk}=Uc;class L0 extends Zo{constructor(e={}){super(),this._transactionId=null,this._includeChildren=null,this._includeDuplicates=null,this._validateReceiptStatus=!0,null!=e.transactionId&&this.setTransactionId(e.transactionId),null!=e.includeChildren&&this.setIncludeChildren(e.includeChildren),null!=e.includeDuplicates&&this.setIncludeDuplicates(e.includeDuplicates),null!=e.validateReceiptStatus&&this.setValidateReceiptStatus(e.validateReceiptStatus)}get transactionId(){return this._transactionId}static _fromProtobuf(e){const t=e.transactionGetRecord;return new L0({transactionId:t.transactionID?zr._fromProtobuf(t.transactionID):void 0,includeChildren:null!=t.includeChildRecords?t.includeChildRecords:void 0,includeDuplicates:null!=t.includeDuplicates?t.includeDuplicates:void 0})}setTransactionId(e){return this._transactionId="string"==typeof e?zr.fromString(e):e.clone(),this}setIncludeChildren(e){return this._includeChildren=e,this}get includeChildren(){return null!=this._includeChildren&&this._includeChildren}setIncludeDuplicates(e){return this._duplicates=e,this}get includeDuplicates(){return null!=this._duplicates&&this._duplicates}setValidateReceiptStatus(e){return this._validateReceiptStatus=e,this}get validateReceiptStatus(){return this._validateReceiptStatus}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=m._fromCode(o??fk.ResponseCodeEnum.OK);switch(Ei.debug(`[${this._getLogId()}] received node precheck status ${s.toString()}`),s){case m.Busy:case m.Unknown:case m.ReceiptNotFound:case m.RecordNotFound:return[s,"Retry"];case m.Ok:break;default:return[s,"Error"]}const l=t.transactionGetRecord;if(l.header.responseType===Mt.proto.ResponseType.COST_ANSWER)return[s,"Finished"];switch(s=m._fromCode(l.transactionRecord.receipt.status),Ei.debug(`[${this._getLogId()}] received record's receipt ${s.toString()}`),s){case m.Ok:case m.Busy:case m.Unknown:case m.ReceiptNotFound:case m.RecordNotFound:return[s,"Retry"];case m.Success:return[s,"Finished"];default:return[s,this._validateReceiptStatus?"Error":"Finished"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=m._fromCode(o??fk.ResponseCodeEnum.OK);if(s!==m.Ok)return new ed({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null});const h=t.transactionGetRecord.transactionRecord.receipt;return s=m._fromCode(h.status),new S0({status:s,transactionId:this._getTransactionId(),transactionReceipt:dr._fromProtobuf({receipt:h})})}_validateChecksums(e){null!=this._transactionId&&null!=this._transactionId.accountId&&this._transactionId.accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getTxRecordByTxID(t)}_mapResponseHeader(e){return e.transactionGetRecord.header}_mapResponse(e,t,o){return Promise.resolve(Gc._fromProtobuf(e.transactionGetRecord))}_onMakeRequest(e){return{transactionGetRecord:{header:e,transactionID:null!=this._transactionId?this._transactionId._toProtobuf():null,includeChildRecords:this._includeChildren,includeDuplicates:this._includeDuplicates}}}_getLogId(){return`TransactionRecordQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("transactionGetRecord",L0._fromProtobuf);class G1{constructor(e){this.nodeId=e.nodeId,this.transactionHash=e.transactionHash,this.transactionId=e.transactionId,Object.freeze(this)}static fromJSON(e){return new G1({nodeId:Oe.fromString(e.nodeId),transactionHash:Ln(e.transactionHash),transactionId:zr.fromString(e.transactionId)})}getReceipt(e){var t=this;return Ge(function*(){const o=yield t.getReceiptQuery().execute(e);if(o.status!==m.Success)throw new S0({transactionReceipt:o,status:o.status,transactionId:t.transactionId});return o})()}getRecord(e){var t=this;return Ge(function*(){return yield t.getReceipt(e),t.getRecordQuery().execute(e)})()}getReceiptWithSigner(e){var t=this;return Ge(function*(){const o=yield t.getReceiptQuery().executeWithSigner(e);if(o.status!==m.Success)throw new S0({transactionReceipt:o,status:o.status,transactionId:t.transactionId});return o})()}getRecordWithSigner(e){var t=this;return Ge(function*(){return yield t.getReceiptWithSigner(e),t.getRecordQuery().executeWithSigner(e)})()}getReceiptQuery(){return(new ru).setTransactionId(this.transactionId).setNodeAccountIds([this.nodeId])}getRecordQuery(){return(new L0).setTransactionId(this.transactionId).setNodeAccountIds([this.nodeId])}toJSON(){return{nodeId:this.nodeId.toString(),transactionHash:yt(this.transactionHash),transactionId:this.transactionId.toString()}}toString(){return JSON.stringify(this.toJSON())}}function Q1(n){return H1.apply(this,arguments)}function H1(){return H1=Ge(function*(n){return new Uint8Array(yield window.crypto.subtle.digest("SHA-384",n))}),H1.apply(this,arguments)}class z1 extends Cs{constructor(){super(e=>Oe.fromString(e))}static _fromTransaction(e){return Ge(function*(){const t=new z1;for(let o=0;ofo.fromString(e))}static _fromTransactionSigMap(e){const t=new V1,o=null!=e.sigPair?e.sigPair:[];for(const s of o)null!=s.pubKeyPrefix&&(null!=s.ed25519?t._set(fo.fromBytesED25519(s.pubKeyPrefix),s.ed25519):null!=s.ECDSASecp256k1&&t._set(fo.fromBytesECDSA(s.pubKeyPrefix),s.ECDSASecp256k1));return t}}class U0 extends Cs{constructor(){super(e=>Oe.fromString(e))}static _fromTransaction(e){const t=new U0;for(let o=0;oPromise.resolve(e.sign(t)))}signWith(e,t){var o=this;return Ge(function*(){o._signOnDemand||o._requireFrozen();const l=yt(e.toBytesRaw());if(o._signerPublicKeys.has(l))return o;if(o._transactions.clear(),o._signerPublicKeys.add(l),o._signOnDemand)return o._publicKeys.push(e),o._transactionSigners.push(t),o;o._transactionIds.setLocked(),o._nodeAccountIds.setLocked();for(const u of o._signedTransactions.list){const h=u.bodyBytes,A=yield t(h);null==u.sigMap&&(u.sigMap={}),null==u.sigMap.sigPair&&(u.sigMap.sigPair=[]),u.sigMap.sigPair.push(e._toProtobufSignature(A))}return o})()}signWithOperator(e){const t=e._operator;if(null==t)throw new Error("`client` must have an operator to sign with the operator");return this._isFrozen()||this.freezeWith(e),this.signWith(t.publicKey,t.transactionSigner)}addSignature(e,t){this._requireOneNodeAccountId(),this.isFrozen()||this.freeze();const s=yt(e.toBytesRaw());if(this._signerPublicKeys.has(s))return this;this._transactions.clear(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),this._signedTransactions.setLocked();for(const l of this._signedTransactions.list)null==l.sigMap&&(l.sigMap={}),null==l.sigMap.sigPair&&(l.sigMap.sigPair=[]),l.sigMap.sigPair.push(e._toProtobufSignature(t));return this._signerPublicKeys.add(s),this._publicKeys.push(e),this._transactionSigners.push(null),this}getSignatures(){return this._requireFrozen(),this._requireNotSignOnDemand(),this._buildAllTransactions(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),U0._fromTransaction(this)}getSignaturesAsync(){var e=this;return Ge(function*(){return e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),U0._fromTransaction(e)})()}_setTransactionId(){if(null==this._operatorAccountId&&this._transactionIds.isEmpty)throw new Error("`transactionId` must be set or `client` must be provided with `freezeWith`")}_setNodeAccountIds(e){if(this._nodeAccountIds.isEmpty){if(null==e)throw new Error("`nodeAccountId` must be set or `client` must be provided with `freezeWith`");this._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute())}}_buildSignedTransactions(){this._signedTransactions.locked||this._signedTransactions.setList(this._nodeAccountIds.list.map(e=>this._makeSignedTransaction(e)))}freeze(){return this.freezeWith(null)}_freezeWithAccountId(e){null==this._operatorAccountId&&(this._operatorAccountId=e)}freezeWith(e){if(this._signOnDemand=null!=e&&e.signOnDemand,this._operator=null!=e?e._operator:null,this._freezeWithAccountId(null!=e?e.operatorAccountId:null),this._maxTransactionFee=null==this._maxTransactionFee?null!=e&&null!=e.defaultMaxTransactionFee?e.defaultMaxTransactionFee:this._defaultMaxTransactionFee:this._maxTransactionFee,this._regenerateTransactionId=null!=e&&null==this._regenerateTransactionId?e.defaultRegenerateTransactionId:this._regenerateTransactionId,this._setNodeAccountIds(e),this._setTransactionId(),null!=e)for(const t of this._transactionIds.list)null!=t.accountId&&t.accountId.validateChecksum(e);return this._buildNewTransactionIdList(),this._signOnDemand||this._buildSignedTransactions(),this}signWithSigner(e){var t=this;return Ge(function*(){return yield e.signTransaction(t),t})()}freezeWithSigner(e){var t=this;return Ge(function*(){return yield e.populateTransaction(t),t.freeze(),t})()}toBytes(){return this._requireFrozen(),this._requireNotSignOnDemand(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),this._buildAllTransactions(),Mt.proto.TransactionList.encode({transactionList:this._transactions.list}).finish()}toBytesAsync(){var e=this;return Ge(function*(){return e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),Mt.proto.TransactionList.encode({transactionList:e._transactions.list}).finish()})()}getTransactionHash(){var e=this;return Ge(function*(){return e._requireFrozen(),e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),Q1(e._transactions.get(0).signedTransactionBytes)})()}getTransactionHashPerNode(){var e=this;return Ge(function*(){return e._requireFrozen(),e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),yield z1._fromTransaction(e)})()}isFrozen(){return this._signedTransactions.length>0}_getTransactionId(){const e=this.transactionId;if(null==e)throw new Error("transaction must have been frozen before getting the transaction ID, try calling `freeze`");return e}_validateChecksums(e){}_beforeExecute(e){var t=this;return Ge(function*(){t._isFrozen()||t.freezeWith(e),e.isAutoValidateChecksumsEnabled()&&t._validateChecksums(e),t._operator=null!=e?e._operator:null,t._operatorAccountId=null!=e&&null!=e._operator?e._operator.accountId:null,null!=t._operator&&(yield t.signWith(t._operator.publicKey,t._operator.transactionSigner))})()}_makeRequestAsync(){var e=this;return Ge(function*(){const t=e._transactionIds.index*e._nodeAccountIds.length+e._nodeAccountIds.index;return e._signOnDemand?yield e._buildTransactionAsync():(e._buildTransaction(t),e._transactions.get(t))})()}_signTransaction(){var e=this;return Ge(function*(){const t=e._makeSignedTransaction(e._nodeAccountIds.next),o=t.bodyBytes;for(let s=0;s({signedTransactionBytes:Mt.proto.SignedTransaction.encode(this._signedTransactions.get(e)).finish()}))}_buildTransactionAsync(){var e=this;return Ge(function*(){return{signedTransactionBytes:Mt.proto.SignedTransaction.encode(yield e._signTransaction()).finish()}})()}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=t,s=m._fromCode(o??Mt.proto.ResponseCodeEnum.OK);switch(Ei.debug(`[${this._getLogId()}] received status ${s.toString()}`),s){case m.Busy:case m.Unknown:case m.PlatformTransactionNotCreated:case m.PlatformNotActive:return[s,"Retry"];case m.Ok:return[s,"Finished"];case m.TransactionExpired:return null==this._regenerateTransactionId||this._regenerateTransactionId?(this._buildNewTransactionIdList(),[s,"Retry"]):[s,"Error"];default:return[s,"Error"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=t,s=m._fromCode(o??Mt.proto.ResponseCodeEnum.OK);return new ed({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null})}_mapResponse(e,t,o){var s=this;return Ge(function*(){const l=yield Q1(o.signedTransactionBytes),u=s._getTransactionId();return s._transactionIds.advance(),new G1({nodeId:t,transactionHash:l,transactionId:u})})()}_makeSignedTransaction(e){const t=this._makeTransactionBody(e);return{bodyBytes:Mt.proto.TransactionBody.encode(t).finish(),sigMap:{sigPair:[]}}}_makeTransactionBody(e){return{[this._getTransactionDataCase()]:this._makeTransactionData(),transactionFee:null!=this._maxTransactionFee?this._maxTransactionFee.toTinybars():null,memo:this._transactionMemo,transactionID:this._transactionIds.current._toProtobuf(),nodeAccountID:null!=e?e._toProtobuf():null,transactionValidDuration:{seconds:We.fromNumber(this._transactionValidDuration)}}}_getTransactionDataCase(){throw new Error("not implemented")}_getScheduledTransactionBody(){return{memo:this.transactionMemo,transactionFee:null==this._maxTransactionFee?this._defaultMaxTransactionFee.toTinybars():this._maxTransactionFee.toTinybars(),[this._getTransactionDataCase()]:this._makeTransactionData()}}_makeTransactionData(){throw new Error("not implemented")}_isFrozen(){return this._signOnDemand||this._signedTransactions.length>0||this._transactions.length>0}_requireNotFrozen(){if(this._isFrozen())throw new Error("transaction is immutable; it has at least one signature or has been explicitly frozen")}_requireNotSignOnDemand(){if(this._signOnDemand)throw new Error("Please use `toBytesAsync()` if `signOnDemand` is enabled")}_requireFrozen(){if(!this._isFrozen())throw new Error("transaction must have been frozen before calculating the hash will be stable, try calling `freeze`")}_requireOneNodeAccountId(){if(1!=this._nodeAccountIds.length)throw"transaction did not have exactly one node ID set"}_requestToBytes(e){return Mt.proto.Transaction.encode(e).finish()}_responseToBytes(e){return Mt.proto.TransactionResponse.encode(e).finish()}}const K1=[];class qo{constructor(e,t){this.tokenId=e,this.serial="number"==typeof t?We.fromNumber(t):t,Object.freeze(this)}static fromString(e){const t=e.split("/").length>1?e.split("/"):e.split("@");for(const l of t)if(""===l)throw new Error("invalid format for NftId: use [token]/[serial] or [token]@[serial]");const o=It.fromString(t[0]),s=We.fromString(t[1]);return new qo(o,s)}static _fromProtobuf(e){return new qo(It._fromProtobuf(e.tokenID),null!=e.serialNumber?e.serialNumber:We.ZERO)}static fromBytes(e){return qo._fromProtobuf(Mt.proto.NftID.decode(e))}_toProtobuf(){return{tokenID:this.tokenId._toProtobuf(),serialNumber:We.fromValue(void 0!==this.serial?this.serial:0)}}toString(){return`${this.tokenId.toString()}/${this.serial.toString()}`}toBytes(){return Mt.proto.NftID.encode(this._toProtobuf()).finish()}}class cu{constructor(e){this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.amount=e.amount,Object.freeze(this)}static _fromProtobuf(e){return new cu({spenderAccountId:Oe._fromProtobuf(e.spender),ownerAccountId:null!=e.owner?Oe._fromProtobuf(e.owner):null,amount:Nt.fromTinybars(null!=e.amount?e.amount:0)})}static _fromGrantedProtobuf(e,t){return new cu({spenderAccountId:Oe._fromProtobuf(e.spender),ownerAccountId:t,amount:Nt.fromTinybars(null!=e.amount?e.amount:0)})}_toProtobuf(){return{owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,amount:null!=this.amount?this.amount.toTinybars():null}}_validateChecksums(e){null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}toJSON(){return{ownerAccountId:null!=this.ownerAccountId?this.ownerAccountId.toString():null,spenderAccountId:null!=this.spenderAccountId?this.spenderAccountId.toString():null,amount:null!=this.amount?this.amount.toString():null}}}class lu{constructor(e){this.tokenId=e.tokenId,this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.amount=e.amount,Object.freeze(this)}static _fromProtobuf(e){return new lu({tokenId:It._fromProtobuf(e.tokenId),spenderAccountId:Oe._fromProtobuf(e.spender),ownerAccountId:null!=e.owner?Oe._fromProtobuf(e.owner):null,amount:null!=e.amount?We.fromValue(e.amount):null})}static _fromGrantedProtobuf(e,t){return new lu({tokenId:It._fromProtobuf(e.tokenId),spenderAccountId:Oe._fromProtobuf(e.spender),ownerAccountId:t,amount:null!=e.amount?We.fromValue(e.amount):null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,amount:this.amount}}_validateChecksums(e){this.tokenId.validateChecksum(e),null!=this.ownerAccountId&&this.ownerAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}}class ma{constructor(e){this.tokenId=e.tokenId,this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.serialNumbers=e.serialNumbers,this.allSerials=e.allSerials,Object.freeze(this)}static _fromProtobuf(e){const t=null!=e.approvedForAll&&1==e.approvedForAll.value;return new ma({tokenId:It._fromProtobuf(e.tokenId),spenderAccountId:null!=e.spender?Oe._fromProtobuf(e.spender):null,ownerAccountId:null!=e.owner?Oe._fromProtobuf(e.owner):null,serialNumbers:t?null:null!=e.serialNumbers?e.serialNumbers.map(o=>We.fromValue(o)):[],allSerials:t})}static _fromGrantedProtobuf(e,t){return new ma({tokenId:It._fromProtobuf(e.tokenId),spenderAccountId:Oe._fromProtobuf(e.spender),ownerAccountId:t,serialNumbers:[],allSerials:null})}static _fromRemoveProtobuf(e){return new ma({tokenId:It._fromProtobuf(e.tokenId),spenderAccountId:null,ownerAccountId:null!=e.owner?Oe._fromProtobuf(e.owner):null,serialNumbers:null!=e.serialNumbers?e.serialNumbers.map(t=>We.fromValue(t)):[],allSerials:null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,approvedForAll:null==this.serialNumbers?{value:this.allSerials}:null,serialNumbers:this.serialNumbers}}_validateChecksums(e){this.tokenId.validateChecksum(e),null!=this.ownerAccountId&&this.ownerAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}}class j0 extends wt{constructor(e={}){super(),this._hbarApprovals=null!=e.hbarApprovals?e.hbarApprovals:[],this._tokenApprovals=null!=e.tokenApprovals?e.tokenApprovals:[],this._nftApprovals=null!=e.nftApprovals?e.nftApprovals:[]}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoApproveAllowance;return wt._fromProtobufTransactions(new j0({hbarApprovals:(null!=h.cryptoAllowances?h.cryptoAllowances:[]).map(A=>cu._fromProtobuf(A)),tokenApprovals:(null!=h.tokenAllowances?h.tokenAllowances:[]).map(A=>lu._fromProtobuf(A)),nftApprovals:(null!=h.nftAllowances?h.nftAllowances:[]).map(A=>ma._fromProtobuf(A))}),e,t,o,s,l)}get hbarApprovals(){return this._hbarApprovals}approveHbarAllowance(e,t,o){return this._requireNotFrozen(),this._hbarApprovals.push(new cu({spenderAccountId:"string"==typeof t?Oe.fromString(t):t,ownerAccountId:"string"==typeof e?Oe.fromString(e):e,amount:o instanceof Nt?o:new Nt(o)})),this}addHbarAllowance(e,t){return this._requireNotFrozen(),this._hbarApprovals.push(new cu({spenderAccountId:"string"==typeof e?Oe.fromString(e):e,amount:t instanceof Nt?t:new Nt(t),ownerAccountId:null})),this}get tokenApprovals(){return this._tokenApprovals}approveTokenAllowance(e,t,o,s){return this._requireNotFrozen(),this._tokenApprovals.push(new lu({tokenId:"string"==typeof e?It.fromString(e):e,spenderAccountId:"string"==typeof o?Oe.fromString(o):o,ownerAccountId:"string"==typeof t?Oe.fromString(t):t,amount:"number"==typeof s?We.fromNumber(s):s})),this}addTokenAllowance(e,t,o){return this._requireNotFrozen(),this._tokenApprovals.push(new lu({tokenId:"string"==typeof e?It.fromString(e):e,spenderAccountId:"string"==typeof t?Oe.fromString(t):t,amount:"number"==typeof o?We.fromNumber(o):o,ownerAccountId:null})),this}addTokenNftAllowance(e,t){return this._approveTokenNftAllowance(e,null,t)}get tokenNftApprovals(){return this._nftApprovals}_approveTokenNftAllowance(e,t,o){this._requireNotFrozen();const s="string"==typeof e?qo.fromString(e):e,l="string"==typeof o?Oe.fromString(o):o;let u=!1;for(const h of this._nftApprovals)if(0===h.tokenId.compare(s.tokenId)&&null!=h.spenderAccountId&&0===h.spenderAccountId.compare(l)){null!=h.serialNumbers&&h.serialNumbers.push(s.serial),u=!0;break}return u||this._nftApprovals.push(new ma({tokenId:s.tokenId,spenderAccountId:"string"==typeof o?Oe.fromString(o):o,ownerAccountId:"string"==typeof t?Oe.fromString(t):t,serialNumbers:[s.serial],allSerials:!1})),this}approveTokenNftAllowance(e,t,o){return this._approveTokenNftAllowance(e,t,o)}_approveAllTokenNftAllowance(e,t,o,s){return this._requireNotFrozen(),this._nftApprovals.push(new ma({tokenId:"string"==typeof e?It.fromString(e):e,spenderAccountId:"string"==typeof o?Oe.fromString(o):o,ownerAccountId:"string"==typeof t?Oe.fromString(t):t,serialNumbers:null,allSerials:s})),this}addAllTokenNftAllowance(e,t,o){return this._approveAllTokenNftAllowance(e,t,o,!0)}approveTokenNftAllowanceAllSerials(e,t,o){return this._approveAllTokenNftAllowance(e,t,o,!0)}_validateChecksums(e){this._hbarApprovals.map(t=>t._validateChecksums(e)),this._tokenApprovals.map(t=>t._validateChecksums(e)),this._nftApprovals.map(t=>t._validateChecksums(e))}_execute(e,t){return e.crypto.approveAllowances(t)}_getTransactionDataCase(){return"cryptoApproveAllowance"}_makeTransactionData(){return{cryptoAllowances:this._hbarApprovals.map(e=>e._toProtobuf()),tokenAllowances:this._tokenApprovals.map(e=>e._toProtobuf()),nftAllowances:this._nftApprovals.map(e=>e._toProtobuf())}}_getLogId(){return`AccountAllowanceApproveTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoApproveAllowance",j0._fromProtobuf);class G0 extends wt{constructor(e={}){super(),this._nftAllowances=null!=e.nftAllowances?e.nftAllowances:[]}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoDeleteAllowance;return wt._fromProtobufTransactions(new G0({nftAllowances:(null!=h.nftAllowances?h.nftAllowances:[]).map(A=>ma._fromProtobuf(A))}),e,t,o,s,l)}get tokenNftAllowanceDeletions(){return this._nftAllowances}deleteAllTokenNftAllowances(e,t){this._requireNotFrozen();const o="string"==typeof e?qo.fromString(e):e,s="string"==typeof t?Oe.fromString(t):t;let l=!1;for(const u of this._nftAllowances)if(0===u.tokenId.compare(o.tokenId)){null!=u.serialNumbers&&u.serialNumbers.push(o.serial),l=!0;break}return l||this._nftAllowances.push(new ma({tokenId:o.tokenId,spenderAccountId:null,serialNumbers:[o.serial],ownerAccountId:s,allSerials:!1})),this}_validateChecksums(e){this._nftAllowances.map(t=>t._validateChecksums(e))}_execute(e,t){return e.crypto.deleteAllowances(t)}_getTransactionDataCase(){return"cryptoDeleteAllowance"}_makeTransactionData(){return{nftAllowances:this._nftAllowances.map(e=>e._toProtobuf())}}_getLogId(){return`AccountAllowanceDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoDeleteAllowance",G0._fromProtobuf);class oH extends Cs{constructor(){super(e=>It.fromString(e))}}class iH extends Cs{constructor(){super(e=>It.fromString(e))}}class Q0{constructor(e){this.hbars=e.hbars,this.tokens=e.tokens,this.tokenDecimals=e.tokenDecimals,Object.freeze(this)}static fromBytes(e){return Q0._fromProtobuf(Mt.proto.CryptoGetAccountBalanceResponse.decode(e))}static _fromProtobuf(e){const t=new oH,o=new iH;if(null!=e.tokenBalances)for(const s of e.tokenBalances){const l=It._fromProtobuf(s.tokenId);o._set(l,null!=s.decimals?s.decimals:0),t._set(l,We.fromValue(s.balance))}return new Q0({hbars:Nt.fromTinybars(e.balance),tokens:t,tokenDecimals:o})}_toProtobuf(){const e=[];for(const[t,o]of null!=this.tokens?this.tokens:[])e.push({tokenId:t._toProtobuf(),balance:o,decimals:null!=this.tokenDecimals?this.tokenDecimals.get(t):null});return{balance:this.hbars.toTinybars(),tokenBalances:e}}toBytes(){return Mt.proto.CryptoGetAccountBalanceResponse.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){const e=[];for(const[t,o]of null!=this.tokens?this.tokens:[]){const s=null!=this.tokenDecimals?this.tokenDecimals.get(t):null;e.push({tokenId:t.toString(),balance:o.toString(),decimals:s??0})}return{hbars:this.hbars.toString(),tokens:e}}}class uu extends Zo{constructor(e={}){super(),this._accountId=null,this._contractId=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e){const t=e.cryptogetAccountBalance;return new uu({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0,contractId:null!=t.contractID?Wn._fromProtobuf(t.contractID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Wn.fromString(e):e.clone(),this}_isPaymentRequired(){return!1}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._contractId&&this._contractId.validateChecksum(e)}_execute(e,t){return e.crypto.cryptoGetBalance(t)}_mapResponseHeader(e){return e.cryptogetAccountBalance.header}_mapResponse(e,t,o){return Promise.resolve(Q0._fromProtobuf(e.cryptogetAccountBalance))}_onMakeRequest(e){return{cryptogetAccountBalance:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`AccountBalanceQuery:${this._timestamp.toString()}`}}Ho.set("cryptogetAccountBalance",uu._fromProtobuf);class xr{constructor(e){this.seconds=e instanceof We?e:We.fromNumber(e),Object.freeze(this)}_toProtobuf(){return{seconds:this.seconds}}static _fromProtobuf(e){return new xr(e.seconds)}}class Y1 extends wt{constructor(e={}){super(),this._key=null,this._initialBalance=null,this._sendRecordThreshold=hk,this._receiveRecordThreshold=hk,this._receiverSignatureRequired=!1,this._proxyAccountId=null,this._autoRenewPeriod=new xr(td),this._accountMemo=null,this._maxAutomaticTokenAssociations=null,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=!1,this._aliasKey=null,this._aliasEvmAddress=null,null!=e.key&&this.setKey(e.key),null!=e.receiverSignatureRequired&&this.setReceiverSignatureRequired(e.receiverSignatureRequired),null!=e.initialBalance&&this.setInitialBalance(e.initialBalance),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.accountMemo&&this.setAccountMemo(e.accountMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward),null!=e.aliasKey&&this.setAliasKey(e.aliasKey),null!=e.aliasEvmAddress&&this.setAliasEvmAddress(e.aliasEvmAddress)}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoCreateAccount;let A,y;return null!=h.alias&&h.alias.length>0&&(20===h.alias.length?y=ga.fromBytes(h.alias):A=On._fromProtobufKey(Mt.proto.Key.decode(h.alias))),A instanceof fo||(A=void 0),wt._fromProtobufTransactions(new Y1({key:null!=h.key?On._fromProtobufKey(h.key):void 0,initialBalance:null!=h.initialBalance?h.initialBalance:void 0,receiverSignatureRequired:null!=h.receiverSigRequired?h.receiverSigRequired:void 0,proxyAccountId:null!=h.proxyAccountID?Oe._fromProtobuf(h.proxyAccountID):void 0,autoRenewPeriod:null!=h.autoRenewPeriod&&null!=h.autoRenewPeriod.seconds?h.autoRenewPeriod.seconds:void 0,accountMemo:null!=h.memo?h.memo:void 0,maxAutomaticTokenAssociations:null!=h.maxAutomaticTokenAssociations?h.maxAutomaticTokenAssociations:void 0,stakedAccountId:null!=h.stakedAccountId?Oe._fromProtobuf(h.stakedAccountId):void 0,stakedNodeId:null!=h.stakedNodeId?h.stakedNodeId:void 0,declineStakingReward:1==h.declineReward,aliasKey:A,aliasEvmAddress:y}),e,t,o,s,l)}get key(){return this._key}setKey(e){return this._requireNotFrozen(),this._key=e,this}get initialBalance(){return this._initialBalance}setInitialBalance(e){return this._requireNotFrozen(),this._initialBalance=e instanceof Nt?e:new Nt(e),this}get receiverSignatureRequired(){return this._receiverSignatureRequired}setReceiverSignatureRequired(e){return this._requireNotFrozen(),this._receiverSignatureRequired=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId=e,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}get accountMemo(){return this._accountMemo}setAccountMemo(e){return this._requireNotFrozen(),this._accountMemo=e,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations="number"==typeof e?We.fromNumber(e):e,this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Oe.fromString(e):e,this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=We.fromValue(e),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}get aliasKey(){return this._aliasKey}setAliasKey(e){return this._aliasKey=e,this}get aliasEvmAddress(){return this._aliasEvmAddress}setAliasEvmAddress(e){return this._aliasEvmAddress="string"==typeof e?ga.fromString(e):e instanceof Uint8Array?ga.fromBytes(e):e,this}_validateChecksums(e){null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.createAccount(t)}_getTransactionDataCase(){return"cryptoCreateAccount"}_makeTransactionData(){let e=null;return null!=this._aliasKey?e=Mt.proto.Key.encode(this._aliasKey._toProtobufKey()).finish():null!=this._aliasEvmAddress&&(e=this._aliasEvmAddress.toBytes()),{key:null!=this._key?this._key._toProtobufKey():null,initialBalance:null!=this._initialBalance?this._initialBalance.toTinybars():null,autoRenewPeriod:this._autoRenewPeriod._toProtobuf(),proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,receiveRecordThreshold:this._receiveRecordThreshold.toTinybars(),sendRecordThreshold:this._sendRecordThreshold.toTinybars(),receiverSigRequired:this._receiverSignatureRequired,memo:this._accountMemo,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?this._maxAutomaticTokenAssociations.toInt():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:this.declineStakingRewards,alias:e}}_getLogId(){return`AccountCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoCreateAccount",Y1._fromProtobuf);class W1 extends wt{constructor(e={}){super(),this._accountId=null,this._transferAccountId=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.transferAccountId&&this.setTransferAccountId(e.transferAccountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoDelete;return wt._fromProtobufTransactions(new W1({accountId:null!=h.deleteAccountID?Oe._fromProtobuf(h.deleteAccountID):void 0,transferAccountId:null!=h.transferAccountID?Oe._fromProtobuf(h.transferAccountID):void 0}),e,t,o,s,l)}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get transferAccountId(){return this._transferAccountId}setTransferAccountId(e){return this._requireNotFrozen(),this._transferAccountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._transferAccountId&&this._transferAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.cryptoDelete(t)}_getTransactionDataCase(){return"cryptoDelete"}_makeTransactionData(){return{deleteAccountID:null!=this._accountId?this._accountId._toProtobuf():null,transferAccountID:null!=this._transferAccountId?this._transferAccountId._toProtobuf():null}}_getLogId(){return`AccountDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoDelete",W1._fromProtobuf);class nd{constructor(e){this.declineStakingReward=e.declineStakingReward,this.stakePeriodStart=e.stakePeriodStart,this.pendingReward=e.pendingReward,this.stakedToMe=e.stakedToMe,this.stakedAccountId=e.stakedAccountId,this.stakedNodeId=e.stakedNodeId,Object.freeze(this)}static _fromProtobuf(e){return new nd({declineStakingReward:1==e.declineReward,stakePeriodStart:null!=e.stakePeriodStart?Sn._fromProtobuf(e.stakePeriodStart):null,pendingReward:null!=e.pendingReward?Nt.fromTinybars(e.pendingReward):null,stakedToMe:null!=e.stakedToMe?Nt.fromTinybars(e.stakedToMe):null,stakedAccountId:null!=e.stakedAccountId?Oe._fromProtobuf(e.stakedAccountId):null,stakedNodeId:null!=e.stakedNodeId?e.stakedNodeId:null})}_toProtobuf(){return{declineReward:this.declineStakingReward,stakePeriodStart:null!=this.stakePeriodStart?this.stakePeriodStart._toProtobuf():null,pendingReward:null!=this.pendingReward?this.pendingReward.toTinybars():null,stakedToMe:null!=this.stakedToMe?this.stakedToMe.toTinybars():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId}}static fromBytes(e){return nd._fromProtobuf(Mt.proto.StakingInfo.decode(e))}toBytes(){return Mt.proto.StakingInfo.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{declineStakingReward:this.declineStakingReward,stakePeriodStart:null!=this.stakePeriodStart?this.stakePeriodStart.toString():null,pendingReward:null!=this.pendingReward?this.pendingReward.toString():null,stakedToMe:null!=this.stakedToMe?this.stakedToMe.toString():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId.toString():null,stakedNodeId:null!=this.stakedNodeId?this.stakedNodeId.toString():null}}}class H0{constructor(e){this.accountId=e.accountId,this.hash=e.hash,this.keys=e.keys,this.duration=e.duration,Object.freeze(this)}static _fromProtobuf(e){const t=e;return new H0({accountId:Oe._fromProtobuf(t.accountId),hash:null!=t.hash?t.hash:new Uint8Array,keys:null!=t.keys?Mo.__fromProtobufKeyList(t.keys):new Mo,duration:xr._fromProtobuf(t.duration)})}_toProtobuf(){return{accountId:this.accountId._toProtobuf(),hash:this.hash,keys:this.keys._toProtobufKey().keyList,duration:this.duration._toProtobuf()}}}class $1{constructor(e){this.tokenId=e.tokenId,this.symbol=e.symbol,this.balance=e.balance,this.isKycGranted=e.isKycGranted,this.isFrozen=e.isFrozen,this.automaticAssociation=e.automaticAssociation,Object.freeze(this)}static _fromProtobuf(e){const t=It._fromProtobuf(e.tokenId),o=null==e.kycStatus||0===e.kycStatus?null:1===e.kycStatus,s=null==e.freezeStatus||0===e.freezeStatus?null:1===e.freezeStatus;return new $1({tokenId:t,symbol:e.symbol,balance:null!=e.balance?e.balance instanceof We?e.balance:We.fromValue(e.balance):We.ZERO,isKycGranted:o,isFrozen:s,automaticAssociation:null!=e.automaticAssociation?e.automaticAssociation:null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),symbol:this.symbol,balance:this.balance,kycStatus:null==this.isKycGranted?0:this.isKycGranted?1:2,freezeStatus:null==this.isFrozen?0:this.isFrozen?1:2,automaticAssociation:this.automaticAssociation}}}class z0 extends Cs{constructor(){super(e=>It.fromString(e))}static _fromProtobuf(e){const t=new z0;for(const o of e){const s=It._fromProtobuf(o.tokenId);t._set(s,$1._fromProtobuf(o))}return t}_toProtobuf(){const e=[];for(const[t,o]of this)e.push(o._toProtobuf());return e}}class Ur{constructor(e){this._ledgerId=e,Object.freeze(this)}static fromString(e){switch(e){case rs[0]:case"0":return Ur.MAINNET;case rs[1]:case"1":return Ur.TESTNET;case rs[2]:case"2":return Ur.PREVIEWNET;case rs[3]:case"3":return Ur.LOCAL_NODE;default:{let t=Ln(e);if(0==t.length&&0!=e.length)throw new Error("Default reached for fromString");return new Ur(t)}}}toString(){if(1!=this._ledgerId.length)return yt(this._ledgerId);switch(this._ledgerId[0]){case 0:return rs[0];case 1:return rs[1];case 2:return rs[2];case 3:return rs[3];default:return yt(this._ledgerId)}}static fromBytes(e){return new Ur(e)}toBytes(){return this._ledgerId}isMainnet(){return this.toString()==rs[0]}isTestnet(){return this.toString()==rs[1]}isPreviewnet(){return this.toString()==rs[2]}isLocalNode(){return this.toString()==rs[3]}}const rs=["mainnet","testnet","previewnet","local-node"];Ur.MAINNET=new Ur(new Uint8Array([0])),Ur.TESTNET=new Ur(new Uint8Array([1])),Ur.PREVIEWNET=new Ur(new Uint8Array([2])),Ur.LOCAL_NODE=new Ur(new Uint8Array([3]));class V0{constructor(e){this.accountId=e.accountId,this.contractAccountId=e.contractAccountId,this.isDeleted=e.isDeleted,this.proxyAccountId=e.proxyAccountId,this.proxyReceived=e.proxyReceived,this.key=e.key,this.balance=e.balance,this.sendRecordThreshold=e.sendRecordThreshold,this.receiveRecordThreshold=e.receiveRecordThreshold,this.isReceiverSignatureRequired=e.isReceiverSignatureRequired,this.expirationTime=e.expirationTime,this.autoRenewPeriod=e.autoRenewPeriod,this.liveHashes=e.liveHashes,this.tokenRelationships=e.tokenRelationships,this.accountMemo=e.accountMemo,this.ownedNfts=e.ownedNfts,this.maxAutomaticTokenAssociations=e.maxAutomaticTokenAssociations,this.aliasKey=e.aliasKey,this.ledgerId=e.ledgerId,this.hbarAllowances=e.hbarAllowances,this.tokenAllowances=e.tokenAllowances,this.nftAllowances=e.nftAllowances,this.ethereumNonce=e.ethereumNonce,this.stakingInfo=e.stakingInfo,Object.freeze(this)}static _fromProtobuf(e){let t=null!=e.alias&&e.alias.length>0?On._fromProtobufKey(Mt.proto.Key.decode(e.alias)):null;t instanceof fo||(t=null);const o=Oe._fromProtobuf(e.accountID);return new V0({accountId:o,contractAccountId:null!=e.contractAccountID?e.contractAccountID:null,isDeleted:null!=e.deleted&&e.deleted,key:On._fromProtobufKey(e.key),balance:Nt.fromTinybars(null!=e.balance?e.balance:0),sendRecordThreshold:Nt.fromTinybars(null!=e.generateSendRecordThreshold?e.generateSendRecordThreshold:0),receiveRecordThreshold:Nt.fromTinybars(null!=e.generateReceiveRecordThreshold?e.generateReceiveRecordThreshold:0),isReceiverSignatureRequired:null!=e.receiverSigRequired&&e.receiverSigRequired,expirationTime:Sn._fromProtobuf(e.expirationTime),autoRenewPeriod:new xr(null!=e.autoRenewPeriod?e.autoRenewPeriod.seconds:0),proxyAccountId:null!=e.proxyAccountID&&0!==We.fromValue(e.proxyAccountID.shardNum).toInt()&&0!==We.fromValue(e.proxyAccountID.realmNum).toInt()&&0!==We.fromValue(e.proxyAccountID.accountNum).toInt()?Oe._fromProtobuf(e.proxyAccountID):null,proxyReceived:Nt.fromTinybars(null!=e.proxyReceived?e.proxyReceived:0),liveHashes:(null!=e.liveHashes?e.liveHashes:[]).map(s=>H0._fromProtobuf(s)),tokenRelationships:z0._fromProtobuf(null!=e.tokenRelationships?e.tokenRelationships:[]),accountMemo:null!=e.memo?e.memo:"",ownedNfts:e.ownedNfts?e.ownedNfts:We.ZERO,maxAutomaticTokenAssociations:e.maxAutomaticTokenAssociations?We.fromNumber(e.maxAutomaticTokenAssociations):We.ZERO,aliasKey:t,ledgerId:null!=e.ledgerId?Ur.fromBytes(e.ledgerId):null,hbarAllowances:[],tokenAllowances:[],nftAllowances:[],ethereumNonce:null!=e.ethereumNonce?e.ethereumNonce:null,stakingInfo:null!=e.stakingInfo?nd._fromProtobuf(e.stakingInfo):null})}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),contractAccountID:this.contractAccountId,deleted:this.isDeleted,proxyAccountID:null!=this.proxyAccountId?this.proxyAccountId._toProtobuf():null,proxyReceived:this.proxyReceived.toTinybars(),key:this.key._toProtobufKey(),balance:this.balance.toTinybars(),generateSendRecordThreshold:this.sendRecordThreshold.toTinybars(),generateReceiveRecordThreshold:this.receiveRecordThreshold.toTinybars(),receiverSigRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime._toProtobuf(),autoRenewPeriod:this.autoRenewPeriod._toProtobuf(),liveHashes:this.liveHashes.map(e=>e._toProtobuf()),tokenRelationships:null!=this.tokenRelationships?this.tokenRelationships._toProtobuf():null,memo:this.accountMemo,ownedNfts:this.ownedNfts,maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toInt(),alias:null!=this.aliasKey?Mt.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null,ethereumNonce:this.ethereumNonce,stakingInfo:null!=this.stakingInfo?this.stakingInfo._toProtobuf():null}}static fromBytes(e){return V0._fromProtobuf(Mt.proto.CryptoGetInfoResponse.AccountInfo.decode(e))}toBytes(){return Mt.proto.CryptoGetInfoResponse.AccountInfo.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{balance:this.balance.toString(),accountId:this.accountId.toString(),contractAccountId:this.contractAccountId,isDeleted:this.isDeleted,proxyAccountId:null!=this.proxyAccountId?this.proxyAccountId.toString():null,proxyReceived:this.proxyReceived.toString(),key:this.key.toString(),sendRecordThreshold:this.sendRecordThreshold.toString(),receiveRecordThreshold:this.receiveRecordThreshold.toString(),isReceiverSignatureRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime.toString(),autoRenewPeriod:this.autoRenewPeriod.toString(),accountMemo:this.accountMemo,ownedNfts:this.ownedNfts.toString(),maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toString(),aliasKey:null!=this.aliasKey?this.aliasKey.toString():null,ledgerId:null!=this.ledgerId?this.ledgerId.toString():null,ethereumNonce:null!=this.ethereumNonce?this.ethereumNonce.toString():null,stakingInfo:null!=this.stakingInfo?this.stakingInfo.toJSON():null}}}class rd extends Zo{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetInfo;return new rd({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getAccountInfo(t)}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_mapResponseHeader(e){return e.cryptoGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(V0._fromProtobuf(e.cryptoGetInfo.accountInfo))}_onMakeRequest(e){return{cryptoGetInfo:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("cryptoGetInfo",rd._fromProtobuf);class od extends Zo{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetAccountRecords;return new od({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getAccountRecords(t)}_mapResponseHeader(e){return e.cryptoGetAccountRecords.header}_mapResponse(e,t,o){return Promise.resolve(e.cryptoGetAccountRecords.records.map(u=>Gc._fromProtobuf({transactionRecord:u})))}_onMakeRequest(e){return{cryptoGetAccountRecords:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountRecordsQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("cryptoGetAccountRecords",od._fromProtobuf);class Z1{constructor(e){this.accountId=e.accountId,this.amount=e.amount instanceof Nt?e.amount:new Nt(e.amount),Object.freeze(this)}static _fromProtobuf(e){return new Z1({accountId:Oe._fromProtobuf(e.accountID),amount:Nt.fromTinybars(null!=e.amount?e.amount:0)})}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount.toTinybars()}}}class q1 extends Zo{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetProxyStakers;return new q1({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getStakersByAccountID(t)}_mapResponseHeader(e){return e.cryptoGetProxyStakers.header}_mapResponse(e){const o=e.cryptoGetProxyStakers.stakers;return Promise.resolve((null!=o.proxyStaker?o.proxyStaker:[]).map(s=>Z1._fromProtobuf(s)))}_onMakeRequest(e){return{cryptoGetProxyStakers:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountStakersQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("cryptoGetProxyStakers",q1._fromProtobuf);class K0 extends wt{constructor(e={}){super(),this._accountId=null,this._key=null,this._receiverSignatureRequired=!1,this._proxyAccountId=null,this._autoRenewPeriod=null,this._expirationTime=null,this._accountMemo=null,this._maxAutomaticTokenAssociations=null,this._aliasKey=null,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.key&&this.setKey(e.key),null!=e.receiverSignatureRequired&&this.setReceiverSignatureRequired(e.receiverSignatureRequired),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.accountMemo&&this.setAccountMemo(e.accountMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward)}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoUpdateAccount;return wt._fromProtobufTransactions(new K0({accountId:null!=h.accountIDToUpdate?Oe._fromProtobuf(h.accountIDToUpdate):void 0,key:null!=h.key?On._fromProtobufKey(h.key):void 0,receiverSignatureRequired:null!=h.receiverSigRequired?h.receiverSigRequired:void 0,proxyAccountId:null!=h.proxyAccountID?Oe._fromProtobuf(h.proxyAccountID):void 0,autoRenewPeriod:null!=h.autoRenewPeriod&&null!=h.autoRenewPeriod.seconds?h.autoRenewPeriod.seconds:void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0,accountMemo:null!=h.memo&&null!=h.memo.value?h.memo.value:void 0,maxAutomaticTokenAssociations:null!=h.maxAutomaticTokenAssociations&&null!=h.maxAutomaticTokenAssociations.value?We.fromNumber(h.maxAutomaticTokenAssociations.value):void 0,stakedAccountId:null!=h.stakedAccountId?Oe._fromProtobuf(h.stakedAccountId):void 0,stakedNodeId:null!=h.stakedNodeId?h.stakedNodeId:void 0,declineStakingReward:null!=h.declineReward&&1==h.declineReward}),e,t,o,s,l)}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get key(){return this._key}setKey(e){return this._requireNotFrozen(),this._key=e,this}get receiverSignatureRequired(){return this._receiverSignatureRequired}setReceiverSignatureRequired(e){return this._requireNotFrozen(),this._receiverSignatureRequired=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId=e,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Date?Sn.fromDate(e):e,this}get accountMemo(){return this._accountMemo}setAccountMemo(e){return this._requireNotFrozen(),this._accountMemo=e,this}clearAccountMemo(){return this._requireNotFrozen(),this._accountMemo=null,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations="number"==typeof e?We.fromNumber(e):e,this}get aliasKey(){return null}setAliasKey(e){return this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Oe.fromString(e):e,this}clearStakedAccountId(){return this._requireNotFrozen(),this._stakedAccountId=new Oe(0,0,0),this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=We.fromValue(e),this}clearStakedNodeId(){return this._requireNotFrozen(),this._stakedNodeId=We.fromNumber(-1),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.updateAccount(t)}_getTransactionDataCase(){return"cryptoUpdateAccount"}_makeTransactionData(){return{accountIDToUpdate:null!=this._accountId?this._accountId._toProtobuf():null,key:null!=this._key?this._key._toProtobufKey():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,receiverSigRequiredWrapper:null==this._receiverSignatureRequired?null:{value:this._receiverSignatureRequired},memo:null!=this._accountMemo?{value:this._accountMemo}:null,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?{value:this._maxAutomaticTokenAssociations.toInt()}:null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:null!=this.declineStakingRewards?{value:this.declineStakingRewards}:null}}_getLogId(){return`AccountUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoUpdateAccount",K0._fromProtobuf);class Ak{constructor(e={}){this._left=null,null!=e.left&&this.setLeft(e.left),this._right=null,null!=e.right&&this.setRight(e.right)}get left(){return this._left}setLeft(e){return this._left=e,this}get right(){return this._right}setRight(e){return this._right=e,this}toString(){return null!=this._left&&null!=this._right?`${this._left.toString()}.${this._right.toString()}`:""}}class J1{constructor(e={}){this._network=null,null!=e.network&&this.setNetwork(e.network),this._host=null,null!=e.host&&this.setHost(e.host)}get newtork(){return this._network}setNetwork(e){return this._network=e,this}get host(){return this._host}setHost(e){return this._host=e,this}static _fromProtobuf(e){return new J1({network:(new Ak).setLeft(e[0]).setRight(e[1]),host:(new Ak).setLeft(e[2]).setRight(e[3])})}_toProtobuf(){return Uint8Array.of(null!=this._network&&null!=this._network._left?this._network._left:0,null!=this._network&&null!=this._network.right?this._network.right:0,null!=this._host&&null!=this._host.left?this._host.left:0,null!=this._host&&null!=this._host.right?this._host.right:0)}toString(){return null!=this._network&&null!=this._host?`${this._network.toString()}.${this._host.toString()}`:""}}class X1{constructor(e={}){this._address=null,null!=e.address&&this.setAddress(e.address),this._port=null,null!=e.port&&this.setPort(e.port)}get address(){return this.address}setAddress(e){return this._address=e,this}get port(){return this._port}setPort(e){return this._port=e,this}static _fromProtobuf(e){return new X1({address:null!=e.ipAddressV4?J1._fromProtobuf(e.ipAddressV4):void 0,port:null!=e.port?e.port:void 0})}_toProtobuf(){return{ipAddressV4:null!=this._address?this._address._toProtobuf():null,port:this._port}}toString(){return`${null!=this._address?this._address.toString():""}:${null!=this._port?this._port.toString():""}`}toJSON(){return{address:null!=this._address?this._address.toString():null,port:null!=this._port?this._port.toString():null}}}class Y0{constructor(e={}){this._publicKey=null,null!=e.publicKey&&this.setPublicKey(e.publicKey),this._nodeId=null,null!=e.nodeId&&this.setNodeId(e.nodeId),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._certHash=null,null!=e.certHash&&this.setCertHash(e.certHash),this._addresses=[],null!=e.addresses&&this.setAddresses(e.addresses),this._description=null,null!=e.description&&this.setDescription(e.description),this._stake=null,null!=e.stake&&this.setStake(e.stake)}get publicKey(){return this._publicKey}setPublicKey(e){return this._publicKey=e,this}get nodeId(){return this._nodeId}setNodeId(e){return this._nodeId=e,this}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get certHash(){return this._certHash}setCertHash(e){return this._certHash=e,this}get addresses(){return this._addresses}setAddresses(e){return this._addresses=e,this}get description(){return this._description}setDescription(e){return this._description=e,this}get stake(){return this._stake}setStake(e){return this._stake=e,this}static _fromProtobuf(e){return new Y0({publicKey:null!=e.RSA_PubKey?e.RSA_PubKey:void 0,nodeId:null!=e.nodeId?e.nodeId:void 0,accountId:null!=e.nodeAccountId?Oe._fromProtobuf(e.nodeAccountId):void 0,certHash:null!=e.nodeCertHash?e.nodeCertHash:void 0,addresses:null!=e.serviceEndpoint?e.serviceEndpoint.map(t=>X1._fromProtobuf(t)):void 0,description:null!=e.description?e.description:void 0,stake:null!=e.stake?e.stake:void 0})}_toProtobuf(){return{RSA_PubKey:this._publicKey,nodeId:this._nodeId,nodeAccountId:null!=this._accountId?this._accountId._toProtobuf():null,nodeCertHash:this._certHash,serviceEndpoint:this._addresses.map(e=>e._toProtobuf()),description:this._description,stake:this._stake}}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{publicKey:this._publicKey,nodeId:null!=this._nodeId?this._nodeId.toString():null,accountId:null!=this._accountId?this._accountId.toString():null,certHash:null!=this._certHash?L1(this._certHash):null,addresses:this._addresses.map(e=>e.toJSON()),description:this._description,stake:null!=this._stake?this._stake.toString():null}}}class Qc{constructor(e={}){this._nodeAddresses=[],null!=e.nodeAddresses&&this.setNodeAddresses(e.nodeAddresses)}get nodeAddresses(){return this._nodeAddresses}setNodeAddresses(e){return this._nodeAddresses=e,this}static fromBytes(e){return Qc._fromProtobuf(Mt.proto.NodeAddressBook.decode(e))}static _fromProtobuf(e){return new Qc({nodeAddresses:null!=e.nodeAddress?e.nodeAddress.map(t=>Y0._fromProtobuf(t)):void 0})}_toProtobuf(){return{nodeAddress:this._nodeAddresses.map(e=>e._toProtobuf())}}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{nodeAddresses:this._nodeAddresses.map(e=>e.toJSON())}}toBytes(){return Mt.proto.NodeAddressBook.encode(this._toProtobuf()).finish()}}class sH{constructor(e={}){this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId),this._limit=null,null!=e.limit&&this.setLimit(e.limit),this._retryHandler=t=>{if(null!=t){if(t instanceof Error)return!0;switch(t.code){case 13:return ck.test(t.details.toString());case 5:case 8:case 14:return!0;default:return!1}}return!1},this._addresses=[],this._maxAttempts=10,this._maxBackoff=8e3,this._attempt=0}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?nr.fromString(e):e.clone(),this}get limit(){return this._limit}setLimit(e){return this._limit=e,this}setMaxAttempts(e){this._maxAttempts=e}setMaxBackoff(e){this._maxBackoff=e}execute(e,t){return new Promise((o,s)=>{this._makeServerStreamRequest(e,o,s,t)})}_makeServerStreamRequest(e,t,o,s){const l=Mt.com.hedera.mirror.api.proto.AddressBookQuery.encode({fileId:null!=this._fileId?this._fileId._toProtobuf():null,limit:this._limit}).finish();e._mirrorNetwork.getNextMirrorNode().getChannel().makeServerStreamRequest("NetworkService","getNodes",l,u=>{this._addresses.push(Y0._fromProtobuf(Mt.proto.NodeAddress.decode(u))),null!=this._limit&&this._limit>0&&(this._limit=this._limit-1)},u=>{const h=u instanceof Error?u.message:u.details;if(this._attempt{this._makeServerStreamRequest(e,t,o,s)},A)}else o(new Error("failed to query address book"))},()=>{t(new Qc({nodeAddresses:this._addresses}))})}}Fr.setAddressBookQueryConstructor(()=>new sH);class ey extends Zo{constructor(e={}){super(),this._contractId=null,null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e){const t=e.contractGetBytecode;return new ey({contractId:null!=t.contractID?Wn._fromProtobuf(t.contractID):void 0})}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Wn.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e)}_execute(e,t){return e.smartContract.contractGetBytecode(t)}_mapResponseHeader(e){return e.contractGetBytecodeResponse.header}_mapResponse(e){const t=e.contractGetBytecodeResponse;return Promise.resolve(null!=t.bytecode?t.bytecode:new Uint8Array)}_onMakeRequest(e){return{contractGetBytecode:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`ContractByteCodeQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("contractGetBytecode",ey._fromProtobuf);const ic="0123456789abcdef".split(""),aH=[1,256,65536,16777216],Ts=[0,8,16,24],gk=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],ty=n=>{var e,t,o,s,l,u,h,A,y,D,U,q,ce,ye,Be,ze,tt,Pe,qe,Et,En,cn,Ar,ue,ge,ve,Qe,Ne,Ue,Ke,Se,_e,De,Te,$e,Tt,Lt,on,qn,mn,Bn,er,Vn,po,Gr,zo,Jr,wi,Ao,Kr,Or,va,Ia,Ca,Ta,ka,Da,Ea,Ma,xa,Oa,Sa,Ba;for(o=0;o<48;o+=2)s=n[0]^n[10]^n[20]^n[30]^n[40],l=n[1]^n[11]^n[21]^n[31]^n[41],A=n[4]^n[14]^n[24]^n[34]^n[44],y=n[5]^n[15]^n[25]^n[35]^n[45],D=n[6]^n[16]^n[26]^n[36]^n[46],U=n[7]^n[17]^n[27]^n[37]^n[47],t=(ce=n[9]^n[19]^n[29]^n[39]^n[49])^((h=n[3]^n[13]^n[23]^n[33]^n[43])<<1|(u=n[2]^n[12]^n[22]^n[32]^n[42])>>>31),n[0]^=e=(q=n[8]^n[18]^n[28]^n[38]^n[48])^(u<<1|h>>>31),n[1]^=t,n[10]^=e,n[11]^=t,n[20]^=e,n[21]^=t,n[30]^=e,n[31]^=t,n[40]^=e,n[41]^=t,t=l^(y<<1|A>>>31),n[2]^=e=s^(A<<1|y>>>31),n[3]^=t,n[12]^=e,n[13]^=t,n[22]^=e,n[23]^=t,n[32]^=e,n[33]^=t,n[42]^=e,n[43]^=t,t=h^(U<<1|D>>>31),n[4]^=e=u^(D<<1|U>>>31),n[5]^=t,n[14]^=e,n[15]^=t,n[24]^=e,n[25]^=t,n[34]^=e,n[35]^=t,n[44]^=e,n[45]^=t,t=y^(ce<<1|q>>>31),n[6]^=e=A^(q<<1|ce>>>31),n[7]^=t,n[16]^=e,n[17]^=t,n[26]^=e,n[27]^=t,n[36]^=e,n[37]^=t,n[46]^=e,n[47]^=t,t=U^(l<<1|s>>>31),n[8]^=e=D^(s<<1|l>>>31),n[9]^=t,n[18]^=e,n[19]^=t,n[28]^=e,n[29]^=t,n[38]^=e,n[39]^=t,n[48]^=e,n[49]^=t,Be=n[1],zo=n[11]<<4|n[10]>>>28,Jr=n[10]<<4|n[11]>>>28,Ne=n[20]<<3|n[21]>>>29,Ue=n[21]<<3|n[20]>>>29,xa=n[31]<<9|n[30]>>>23,Oa=n[30]<<9|n[31]>>>23,er=n[40]<<18|n[41]>>>14,Vn=n[41]<<18|n[40]>>>14,Te=n[2]<<1|n[3]>>>31,$e=n[3]<<1|n[2]>>>31,tt=n[12]<<12|n[13]>>>20,wi=n[22]<<10|n[23]>>>22,Ao=n[23]<<10|n[22]>>>22,Ke=n[33]<<13|n[32]>>>19,Se=n[32]<<13|n[33]>>>19,Sa=n[42]<<2|n[43]>>>30,Ba=n[43]<<2|n[42]>>>30,Ca=n[5]<<30|n[4]>>>2,Ta=n[4]<<30|n[5]>>>2,Tt=n[14]<<6|n[15]>>>26,Lt=n[15]<<6|n[14]>>>26,qe=n[24]<<11|n[25]>>>21,Kr=n[34]<<15|n[35]>>>17,Or=n[35]<<15|n[34]>>>17,_e=n[45]<<29|n[44]>>>3,De=n[44]<<29|n[45]>>>3,ue=n[6]<<28|n[7]>>>4,ge=n[7]<<28|n[6]>>>4,ka=n[17]<<23|n[16]>>>9,Da=n[16]<<23|n[17]>>>9,on=n[26]<<25|n[27]>>>7,qn=n[27]<<25|n[26]>>>7,Et=n[36]<<21|n[37]>>>11,En=n[37]<<21|n[36]>>>11,va=n[47]<<24|n[46]>>>8,Ia=n[46]<<24|n[47]>>>8,po=n[8]<<27|n[9]>>>5,Gr=n[9]<<27|n[8]>>>5,ve=n[18]<<20|n[19]>>>12,Qe=n[19]<<20|n[18]>>>12,Ea=n[29]<<7|n[28]>>>25,Ma=n[28]<<7|n[29]>>>25,mn=n[38]<<8|n[39]>>>24,Bn=n[39]<<8|n[38]>>>24,cn=n[48]<<14|n[49]>>>18,Ar=n[49]<<14|n[48]>>>18,n[0]=(ye=n[0])^~(ze=n[13]<<12|n[12]>>>20)&(Pe=n[25]<<11|n[24]>>>21),n[1]=Be^~tt&qe,n[10]=ue^~ve&Ne,n[11]=ge^~Qe&Ue,n[20]=Te^~Tt&on,n[21]=$e^~Lt&qn,n[30]=po^~zo&wi,n[31]=Gr^~Jr&Ao,n[40]=Ca^~ka&Ea,n[41]=Ta^~Da&Ma,n[2]=ze^~Pe&Et,n[3]=tt^~qe&En,n[12]=ve^~Ne&Ke,n[13]=Qe^~Ue&Se,n[22]=Tt^~on&mn,n[23]=Lt^~qn&Bn,n[32]=zo^~wi&Kr,n[33]=Jr^~Ao&Or,n[42]=ka^~Ea&xa,n[43]=Da^~Ma&Oa,n[4]=Pe^~Et&cn,n[5]=qe^~En&Ar,n[14]=Ne^~Ke&_e,n[15]=Ue^~Se&De,n[24]=on^~mn&er,n[25]=qn^~Bn&Vn,n[34]=wi^~Kr&va,n[35]=Ao^~Or&Ia,n[44]=Ea^~xa&Sa,n[45]=Ma^~Oa&Ba,n[6]=Et^~cn&ye,n[7]=En^~Ar&Be,n[16]=Ke^~_e&ue,n[17]=Se^~De&ge,n[26]=mn^~er&Te,n[27]=Bn^~Vn&$e,n[36]=Kr^~va&po,n[37]=Or^~Ia&Gr,n[46]=xa^~Sa&Ca,n[47]=Oa^~Ba&Ta,n[8]=cn^~ye&ze,n[9]=Ar^~Be&tt,n[18]=_e^~ue&ve,n[19]=De^~ge&Qe,n[28]=er^~Te&Tt,n[29]=Vn^~$e&Lt,n[38]=va^~po&zo,n[39]=Ia^~Gr&Jr,n[48]=Sa^~Ca&ka,n[49]=Ba^~Ta&Da,n[0]^=gk[o],n[1]^=gk[o+1]};class dH{constructor(e){this.name=null,this._params="",this._paramTypes=[],null!=e&&(this._name=e)}addString(){return this._addParam({ty:64,array:!1})}addStringArray(){return this._addParam({ty:64,array:!0})}addBytes(){return this._addParam({ty:66,array:!1})}addBytes32(){return this._addParam({ty:67,array:!1})}addBytesArray(){return this._addParam({ty:66,array:!0})}addBytes32Array(){return this._addParam({ty:67,array:!0})}addInt8(){return this._addParam({ty:1,array:!1})}addUint8(){return this._addParam({ty:0,array:!1})}addInt16(){return this._addParam({ty:3,array:!1})}addUint16(){return this._addParam({ty:2,array:!1})}addInt24(){return this._addParam({ty:5,array:!1})}addUint24(){return this._addParam({ty:4,array:!1})}addInt32(){return this._addParam({ty:7,array:!1})}addUint32(){return this._addParam({ty:6,array:!1})}addInt40(){return this._addParam({ty:9,array:!1})}addUint40(){return this._addParam({ty:8,array:!1})}addInt48(){return this._addParam({ty:11,array:!1})}addUint48(){return this._addParam({ty:10,array:!1})}addInt56(){return this._addParam({ty:13,array:!1})}addUint56(){return this._addParam({ty:12,array:!1})}addInt64(){return this._addParam({ty:15,array:!1})}addUint64(){return this._addParam({ty:14,array:!1})}addInt72(){return this._addParam({ty:17,array:!1})}addUint72(){return this._addParam({ty:16,array:!1})}addInt80(){return this._addParam({ty:19,array:!1})}addUint80(){return this._addParam({ty:18,array:!1})}addInt88(){return this._addParam({ty:21,array:!1})}addUint88(){return this._addParam({ty:20,array:!1})}addInt96(){return this._addParam({ty:23,array:!1})}addUint96(){return this._addParam({ty:22,array:!1})}addInt104(){return this._addParam({ty:25,array:!1})}addUint104(){return this._addParam({ty:24,array:!1})}addInt112(){return this._addParam({ty:27,array:!1})}addUint112(){return this._addParam({ty:26,array:!1})}addInt120(){return this._addParam({ty:29,array:!1})}addUint120(){return this._addParam({ty:28,array:!1})}addInt128(){return this._addParam({ty:31,array:!1})}addUint128(){return this._addParam({ty:30,array:!1})}addInt136(){return this._addParam({ty:33,array:!1})}addUint136(){return this._addParam({ty:32,array:!1})}addInt144(){return this._addParam({ty:35,array:!1})}addUint144(){return this._addParam({ty:34,array:!1})}addInt152(){return this._addParam({ty:37,array:!1})}addUint152(){return this._addParam({ty:36,array:!1})}addInt160(){return this._addParam({ty:39,array:!1})}addUint160(){return this._addParam({ty:38,array:!1})}addInt168(){return this._addParam({ty:41,array:!1})}addUint168(){return this._addParam({ty:40,array:!1})}addInt176(){return this._addParam({ty:43,array:!1})}addUint176(){return this._addParam({ty:42,array:!1})}addInt184(){return this._addParam({ty:45,array:!1})}addUint184(){return this._addParam({ty:44,array:!1})}addInt192(){return this._addParam({ty:47,array:!1})}addUint192(){return this._addParam({ty:46,array:!1})}addInt200(){return this._addParam({ty:49,array:!1})}addUint200(){return this._addParam({ty:48,array:!1})}addInt208(){return this._addParam({ty:51,array:!1})}addUint208(){return this._addParam({ty:50,array:!1})}addInt216(){return this._addParam({ty:53,array:!1})}addUint216(){return this._addParam({ty:52,array:!1})}addInt224(){return this._addParam({ty:55,array:!1})}addUint224(){return this._addParam({ty:54,array:!1})}addInt232(){return this._addParam({ty:57,array:!1})}addUint232(){return this._addParam({ty:56,array:!1})}addInt240(){return this._addParam({ty:59,array:!1})}addUint240(){return this._addParam({ty:58,array:!1})}addInt248(){return this._addParam({ty:61,array:!1})}addUint248(){return this._addParam({ty:60,array:!1})}addInt256(){return this._addParam({ty:63,array:!1})}addUint256(){return this._addParam({ty:62,array:!1})}addInt8Array(){return this._addParam({ty:1,array:!0})}addUint8Array(){return this._addParam({ty:0,array:!0})}addInt16Array(){return this._addParam({ty:3,array:!0})}addUint16Array(){return this._addParam({ty:2,array:!0})}addInt24Array(){return this._addParam({ty:5,array:!0})}addUint24Array(){return this._addParam({ty:4,array:!0})}addInt32Array(){return this._addParam({ty:7,array:!0})}addUint32Array(){return this._addParam({ty:6,array:!0})}addInt40Array(){return this._addParam({ty:9,array:!0})}addUint40Array(){return this._addParam({ty:8,array:!0})}addInt48Array(){return this._addParam({ty:11,array:!0})}addUint48Array(){return this._addParam({ty:10,array:!0})}addInt56Array(){return this._addParam({ty:13,array:!0})}addUint56Array(){return this._addParam({ty:12,array:!0})}addInt64Array(){return this._addParam({ty:15,array:!0})}addUint64Array(){return this._addParam({ty:14,array:!0})}addInt72Array(){return this._addParam({ty:17,array:!0})}addUint72Array(){return this._addParam({ty:16,array:!0})}addInt80Array(){return this._addParam({ty:19,array:!0})}addUint80Array(){return this._addParam({ty:18,array:!0})}addInt88Array(){return this._addParam({ty:21,array:!0})}addUint88Array(){return this._addParam({ty:20,array:!0})}addInt96Array(){return this._addParam({ty:23,array:!0})}addUint96Array(){return this._addParam({ty:22,array:!0})}addInt104Array(){return this._addParam({ty:25,array:!0})}addUint104Array(){return this._addParam({ty:24,array:!0})}addInt112Array(){return this._addParam({ty:27,array:!0})}addUint112Array(){return this._addParam({ty:26,array:!0})}addInt120Array(){return this._addParam({ty:29,array:!0})}addUint120Array(){return this._addParam({ty:28,array:!0})}addInt128Array(){return this._addParam({ty:31,array:!0})}addUint128Array(){return this._addParam({ty:30,array:!0})}addInt136Array(){return this._addParam({ty:33,array:!0})}addUint136Array(){return this._addParam({ty:32,array:!0})}addInt144Array(){return this._addParam({ty:35,array:!0})}addUint144Array(){return this._addParam({ty:34,array:!0})}addInt152Array(){return this._addParam({ty:37,array:!0})}addUint152Array(){return this._addParam({ty:36,array:!0})}addInt160Array(){return this._addParam({ty:39,array:!0})}addUint160Array(){return this._addParam({ty:38,array:!0})}addInt168Array(){return this._addParam({ty:41,array:!0})}addUint168Array(){return this._addParam({ty:40,array:!0})}addInt176Array(){return this._addParam({ty:43,array:!0})}addUint176Array(){return this._addParam({ty:42,array:!0})}addInt184Array(){return this._addParam({ty:45,array:!0})}addUint184Array(){return this._addParam({ty:44,array:!0})}addInt192Array(){return this._addParam({ty:47,array:!0})}addUint192Array(){return this._addParam({ty:46,array:!0})}addInt200Array(){return this._addParam({ty:49,array:!0})}addUint200Array(){return this._addParam({ty:48,array:!0})}addInt208Array(){return this._addParam({ty:51,array:!0})}addUint208Array(){return this._addParam({ty:50,array:!0})}addInt216Array(){return this._addParam({ty:53,array:!0})}addUint216Array(){return this._addParam({ty:52,array:!0})}addInt224Array(){return this._addParam({ty:55,array:!0})}addUint224Array(){return this._addParam({ty:54,array:!0})}addInt232Array(){return this._addParam({ty:57,array:!0})}addUint232Array(){return this._addParam({ty:56,array:!0})}addInt240Array(){return this._addParam({ty:59,array:!0})}addUint240Array(){return this._addParam({ty:58,array:!0})}addInt248Array(){return this._addParam({ty:61,array:!0})}addUint248Array(){return this._addParam({ty:60,array:!0})}addInt256Array(){return this._addParam({ty:63,array:!0})}addUint256Array(){return this._addParam({ty:62,array:!0})}addBool(){return this._addParam({ty:65,array:!1})}addAddress(){return this._addParam({ty:68,array:!1})}addAddressArray(){return this._addParam({ty:68,array:!0})}addFunction(){return this._addParam({ty:69,array:!1})}_addParam(e){return this._paramTypes.length>0&&(this._params+=","),this._params+=function fH(n){let e="";switch(n.ty){case 0:e="uint8";break;case 1:e="int8";break;case 2:e="uint16";break;case 3:e="int16";break;case 4:e="uint24";break;case 5:e="int24";break;case 6:e="uint32";break;case 7:e="int32";break;case 8:e="uint40";break;case 9:e="int40";break;case 10:e="uint48";break;case 11:e="int48";break;case 12:e="uint56";break;case 13:e="int56";break;case 14:e="uint64";break;case 15:e="int64";break;case 16:e="uint72";break;case 17:e="int72";break;case 18:e="uint80";break;case 19:e="int80";break;case 20:e="uint88";break;case 21:e="int88";break;case 22:e="uint96";break;case 23:e="int96";break;case 24:e="uint104";break;case 25:e="int104";break;case 26:e="uint112";break;case 27:e="int112";break;case 28:e="uint120";break;case 29:e="int120";break;case 30:e="uint128";break;case 31:e="int128";break;case 32:e="uint136";break;case 33:e="int136";break;case 34:e="uint144";break;case 35:e="int144";break;case 36:e="uint152";break;case 37:e="int152";break;case 38:e="uint160";break;case 39:e="int160";break;case 40:e="uint168";break;case 41:e="int168";break;case 42:e="uint176";break;case 43:e="int176";break;case 44:e="uint184";break;case 45:e="int184";break;case 46:e="uint192";break;case 47:e="int192";break;case 48:e="uint200";break;case 49:e="int200";break;case 50:e="uint208";break;case 51:e="int208";break;case 52:e="uint216";break;case 53:e="int216";break;case 54:e="uint224";break;case 55:e="int224";break;case 56:e="uint232";break;case 57:e="int232";break;case 58:e="uint240";break;case 59:e="int240";break;case 60:e="uint248";break;case 61:e="int248";break;case 62:e="uint256";break;case 63:e="int256";break;case 64:e="string";break;case 65:e="bool";break;case 66:e="bytes";break;case 67:e="bytes32";break;case 68:e="address";break;case 69:e="function";break;default:e=""}return n.array&&(e+="[]"),e}(e),this._paramTypes.push(e),this}_build(e){if(null!=e)this._name=e;else if(null==this._name)throw new Error("`name` required for ContractFunctionSelector");return Ln((e=>{var t;if("0x"===e.slice(0,2)){t=[];for(var o=2,s=e.length;o{for(var y,D,t=e.length,o=n.blocks,s=n.blockCount<<2,l=n.blockCount,u=n.outputBlocks,h=n.s,A=0;A>2]|=e[A]<>2]|=D<>2]|=(192|D>>6)<>2]|=(128|63&D)<=57344?(o[y>>2]|=(224|D>>12)<>2]|=(128|D>>6&63)<>2]|=(128|63&D)<>2]|=(240|D>>18)<>2]|=(128|D>>12&63)<>2]|=(128|D>>6&63)<>2]|=(128|63&D)<=s){for(n.start=y-s,n.block=o[l],y=0;y>2]|=aH[3&y],n.lastByteIndex===s)for(o[0]=o[l],y=1;y>4&15]+ic[15&q]+ic[q>>12&15]+ic[q>>8&15]+ic[q>>20&15]+ic[q>>16&15]+ic[q>>28&15]+ic[q>>24&15];ce%l==0&&(ty(h),y=0)}return"0x"+U})((n=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:34,outputBlocks:8,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e})(),t)})(`0x${yt(iu(this.toString()))}`)).slice(0,4)}toString(){return`${null!=this._name?this._name.toString():""}(${this._params})`}}class du{constructor(){this._selector=new dH,this._arguments=[]}addString(e){return this._selector.addString(),this._addParam(e,!0)}addStringArray(e){return this._selector.addStringArray(),this._addParam(e,!0)}addBytes(e){return this._selector.addBytes(),this._addParam(e,!0)}addBytes32(e){if(32!==e.length)throw new Error(`addBytes32 expected array to be of length 32, but received ${e.length}`);return this._selector.addBytes32(),this._addParam(e,!1)}addBytesArray(e){return this._selector.addBytesArray(),this._addParam(e,!0)}addBytes32Array(e){for(const[t,o]of e.entries())if(32!==o.length)throw new Error(`addBytes32 expected array to be of length 32, but received ${o.length}`);return this._selector.addBytes32Array(),this._addParam(e,!0)}addBool(e){return this._selector.addBool(),this._addParam(e,!1)}addInt8(e){return this._selector.addInt8(),this._addParam(Kt(e),!1)}addUint8(e){return this._selector.addUint8(),this._addParam(Kt(e),!1)}addInt16(e){return this._selector.addInt16(),this._addParam(Kt(e),!1)}addUint16(e){return this._selector.addUint16(),this._addParam(Kt(e),!1)}addInt24(e){return this._selector.addInt24(),this._addParam(Kt(e),!1)}addUint24(e){return this._selector.addUint24(),this._addParam(Kt(e),!1)}addInt32(e){return this._selector.addInt32(),this._addParam(Kt(e),!1)}addUint32(e){return this._selector.addUint32(),this._addParam(Kt(e),!1)}addInt40(e){return this._selector.addInt40(),this._addParam(Kt(e),!1)}addUint40(e){return this._selector.addUint40(),this._addParam(Kt(e),!1)}addInt48(e){return this._selector.addInt48(),this._addParam(Kt(e),!1)}addUint48(e){return this._selector.addUint48(),this._addParam(Kt(e),!1)}addInt56(e){return this._selector.addInt56(),this._addParam(Kt(e),!1)}addUint56(e){return this._selector.addUint56(),this._addParam(Kt(e),!1)}addInt64(e){return this._selector.addInt64(),this._addParam(Kt(e),!1)}addUint64(e){return this._selector.addUint64(),this._addParam(Kt(e),!1)}addInt72(e){return this._selector.addInt72(),this._addParam(Kt(e),!1)}addUint72(e){return this._selector.addUint72(),this._addParam(Kt(e),!1)}addInt80(e){return this._selector.addInt80(),this._addParam(Kt(e),!1)}addUint80(e){return this._selector.addUint80(),this._addParam(Kt(e),!1)}addInt88(e){return this._selector.addInt88(),this._addParam(Kt(e),!1)}addUint88(e){return this._selector.addUint88(),this._addParam(Kt(e),!1)}addInt96(e){return this._selector.addInt96(),this._addParam(Kt(e),!1)}addUint96(e){return this._selector.addUint96(),this._addParam(Kt(e),!1)}addInt104(e){return this._selector.addInt104(),this._addParam(Kt(e),!1)}addUint104(e){return this._selector.addUint104(),this._addParam(Kt(e),!1)}addInt112(e){return this._selector.addInt112(),this._addParam(Kt(e),!1)}addUint112(e){return this._selector.addUint112(),this._addParam(Kt(e),!1)}addInt120(e){return this._selector.addInt120(),this._addParam(Kt(e),!1)}addUint120(e){return this._selector.addUint120(),this._addParam(Kt(e),!1)}addInt128(e){return this._selector.addInt128(),this._addParam(Kt(e),!1)}addUint128(e){return this._selector.addUint128(),this._addParam(Kt(e),!1)}addInt136(e){return this._selector.addInt136(),this._addParam(Kt(e),!1)}addUint136(e){return this._selector.addUint136(),this._addParam(Kt(e),!1)}addInt144(e){return this._selector.addInt144(),this._addParam(Kt(e),!1)}addUint144(e){return this._selector.addUint144(),this._addParam(Kt(e),!1)}addInt152(e){return this._selector.addInt152(),this._addParam(Kt(e),!1)}addUint152(e){return this._selector.addUint152(),this._addParam(Kt(e),!1)}addInt160(e){return this._selector.addInt160(),this._addParam(Kt(e),!1)}addUint160(e){return this._selector.addUint160(),this._addParam(Kt(e),!1)}addInt168(e){return this._selector.addInt168(),this._addParam(Kt(e),!1)}addUint168(e){return this._selector.addUint168(),this._addParam(Kt(e),!1)}addInt176(e){return this._selector.addInt176(),this._addParam(Kt(e),!1)}addUint176(e){return this._selector.addUint176(),this._addParam(Kt(e),!1)}addInt184(e){return this._selector.addInt184(),this._addParam(Kt(e),!1)}addUint184(e){return this._selector.addUint184(),this._addParam(Kt(e),!1)}addInt192(e){return this._selector.addInt192(),this._addParam(Kt(e),!1)}addUint192(e){return this._selector.addUint192(),this._addParam(Kt(e),!1)}addInt200(e){return this._selector.addInt200(),this._addParam(Kt(e),!1)}addUint200(e){return this._selector.addUint200(),this._addParam(Kt(e),!1)}addInt208(e){return this._selector.addInt208(),this._addParam(Kt(e),!1)}addUint208(e){return this._selector.addUint208(),this._addParam(Kt(e),!1)}addInt216(e){return this._selector.addInt216(),this._addParam(Kt(e),!1)}addUint216(e){return this._selector.addUint216(),this._addParam(Kt(e),!1)}addInt224(e){return this._selector.addInt224(),this._addParam(Kt(e),!1)}addUint224(e){return this._selector.addUint224(),this._addParam(Kt(e),!1)}addInt232(e){return this._selector.addInt232(),this._addParam(Kt(e),!1)}addUint232(e){return this._selector.addUint232(),this._addParam(Kt(e),!1)}addInt240(e){return this._selector.addInt240(),this._addParam(Kt(e),!1)}addUint240(e){return this._selector.addUint240(),this._addParam(Kt(e),!1)}addInt248(e){return this._selector.addInt248(),this._addParam(Kt(e),!1)}addUint248(e){return this._selector.addUint248(),this._addParam(Kt(e),!1)}addInt256(e){return this._selector.addInt256(),this._addParam(Kt(e),!1)}addUint256(e){return this._selector.addUint256(),this._addParam(Kt(e),!1)}addInt8Array(e){return this._selector.addInt8Array(),this._addParam(Wt(e),!0)}addUint8Array(e){return this._selector.addUint8Array(),this._addParam(Wt(e),!0)}addInt16Array(e){return this._selector.addInt16Array(),this._addParam(Wt(e),!0)}addUint16Array(e){return this._selector.addUint16Array(),this._addParam(Wt(e),!0)}addInt24Array(e){return this._selector.addInt24Array(),this._addParam(Wt(e),!0)}addUint24Array(e){return this._selector.addUint24Array(),this._addParam(Wt(e),!0)}addInt32Array(e){return this._selector.addInt32Array(),this._addParam(Wt(e),!0)}addUint32Array(e){return this._selector.addUint32Array(),this._addParam(Wt(e),!0)}addInt40Array(e){return this._selector.addInt40Array(),this._addParam(Wt(e),!0)}addUint40Array(e){return this._selector.addUint40Array(),this._addParam(Wt(e),!0)}addInt48Array(e){return this._selector.addInt48Array(),this._addParam(Wt(e),!0)}addUint48Array(e){return this._selector.addUint48Array(),this._addParam(Wt(e),!0)}addInt56Array(e){return this._selector.addInt56Array(),this._addParam(Wt(e),!0)}addUint56Array(e){return this._selector.addUint56Array(),this._addParam(Wt(e),!0)}addInt64Array(e){return this._selector.addInt64Array(),this._addParam(Wt(e),!0)}addUint64Array(e){return this._selector.addUint64Array(),this._addParam(Wt(e),!0)}addInt72Array(e){return this._selector.addInt72Array(),this._addParam(Wt(e),!0)}addUint72Array(e){return this._selector.addUint72Array(),this._addParam(Wt(e),!0)}addInt80Array(e){return this._selector.addInt80Array(),this._addParam(Wt(e),!0)}addUint80Array(e){return this._selector.addUint80Array(),this._addParam(Wt(e),!0)}addInt88Array(e){return this._selector.addInt88Array(),this._addParam(Wt(e),!0)}addUint88Array(e){return this._selector.addUint88Array(),this._addParam(Wt(e),!0)}addInt96Array(e){return this._selector.addInt96Array(),this._addParam(Wt(e),!0)}addUint96Array(e){return this._selector.addUint96Array(),this._addParam(Wt(e),!0)}addInt104Array(e){return this._selector.addInt104Array(),this._addParam(Wt(e),!0)}addUint104Array(e){return this._selector.addUint104Array(),this._addParam(Wt(e),!0)}addInt112Array(e){return this._selector.addInt112Array(),this._addParam(Wt(e),!0)}addUint112Array(e){return this._selector.addUint112Array(),this._addParam(Wt(e),!0)}addInt120Array(e){return this._selector.addInt120Array(),this._addParam(Wt(e),!0)}addUint120Array(e){return this._selector.addUint120Array(),this._addParam(Wt(e),!0)}addInt128Array(e){return this._selector.addInt128Array(),this._addParam(Wt(e),!0)}addUint128Array(e){return this._selector.addUint128Array(),this._addParam(Wt(e),!0)}addInt136Array(e){return this._selector.addInt136Array(),this._addParam(Wt(e),!0)}addUint136Array(e){return this._selector.addUint136Array(),this._addParam(Wt(e),!0)}addInt144Array(e){return this._selector.addInt144Array(),this._addParam(Wt(e),!0)}addUint144Array(e){return this._selector.addUint144Array(),this._addParam(Wt(e),!0)}addInt152Array(e){return this._selector.addInt152Array(),this._addParam(Wt(e),!0)}addUint152Array(e){return this._selector.addUint152Array(),this._addParam(Wt(e),!0)}addInt160Array(e){return this._selector.addInt160Array(),this._addParam(Wt(e),!0)}addUint160Array(e){return this._selector.addUint160Array(),this._addParam(Wt(e),!0)}addInt168Array(e){return this._selector.addInt168Array(),this._addParam(Wt(e),!0)}addUint168Array(e){return this._selector.addUint168Array(),this._addParam(Wt(e),!0)}addInt176Array(e){return this._selector.addInt176Array(),this._addParam(Wt(e),!0)}addUint176Array(e){return this._selector.addUint176Array(),this._addParam(Wt(e),!0)}addInt184Array(e){return this._selector.addInt184Array(),this._addParam(Wt(e),!0)}addUint184Array(e){return this._selector.addUint184Array(),this._addParam(Wt(e),!0)}addInt192Array(e){return this._selector.addInt192Array(),this._addParam(Wt(e),!0)}addUint192Array(e){return this._selector.addUint192Array(),this._addParam(Wt(e),!0)}addInt200Array(e){return this._selector.addInt200Array(),this._addParam(Wt(e),!0)}addUint200Array(e){return this._selector.addUint200Array(),this._addParam(Wt(e),!0)}addInt208Array(e){return this._selector.addInt208Array(),this._addParam(Wt(e),!0)}addUint208Array(e){return this._selector.addUint208Array(),this._addParam(Wt(e),!0)}addInt216Array(e){return this._selector.addInt216Array(),this._addParam(Wt(e),!0)}addUint216Array(e){return this._selector.addUint216Array(),this._addParam(Wt(e),!0)}addInt224Array(e){return this._selector.addInt224Array(),this._addParam(Wt(e),!0)}addUint224Array(e){return this._selector.addUint224Array(),this._addParam(Wt(e),!0)}addInt232Array(e){return this._selector.addInt232Array(),this._addParam(Wt(e),!0)}addUint232Array(e){return this._selector.addUint232Array(),this._addParam(Wt(e),!0)}addInt240Array(e){return this._selector.addInt240Array(),this._addParam(Wt(e),!0)}addUint240Array(e){return this._selector.addUint240Array(),this._addParam(Wt(e),!0)}addInt248Array(e){return this._selector.addInt248Array(),this._addParam(Wt(e),!0)}addUint248Array(e){return this._selector.addUint248Array(),this._addParam(Wt(e),!0)}addInt256Array(e){return this._selector.addInt256Array(),this._addParam(Wt(e),!0)}addUint256Array(e){return this._selector.addUint256Array(),this._addParam(Wt(e),!0)}addAddress(e){if(40!==e.length&&42!==e.length)throw new Error("`address` type requires parameter to be 40 or 42 characters");const t=Ln(40===e.length?e:e.substring(2));return this._selector.addAddress(),this._addParam(t,!1)}addAddressArray(e){const t=[];for(const[o,s]of e.entries()){if(40!==s.length&&42!==s.length)throw new Error("`address` type requires parameter to be 40 or 42 characters");const l=Ln(40===s.length?s:s.substring(2));t.push(l)}return this._selector.addAddressArray(),this._addParam(t,!0)}addFunction(e,t){const o=Ln(e),s=t._build();if(20!==o.length)throw new Error("`function` type requires parameter `address` to be exactly 20 bytes");this._selector.addFunction();const l=new Uint8Array(24);return l.set(o,0),l.set(s,20),this._addParam(l,!1)}_addParam(e,t){const s=mk(e,this._selector._paramTypes[this._selector._paramTypes.length-1]);return this._arguments.push({dynamic:t,value:s}),this}_build(e){const t=null!=e,o=t?4:0,s=0===this._arguments.length?o:32*this._arguments.length+this._arguments.map(h=>h.dynamic?h.value.length:0).reduce((h,A)=>h+A)+o,l=new Uint8Array(s);t&&l.set(this._selector._build(e),0);let u=32*this._arguments.length;for(const[h,{dynamic:A,value:y}]of this._arguments.entries())if(A){const D=Aa(l,o+32*h+28);D.setUint32(0,u),l.set(y,D.getUint32(0)+o),u+=y.length}else l.set(y,o+32*h);return l}}function mk(n,e){let s,t=new Uint8Array(32),o=Aa(t);if(e.array){if(!Array.isArray(n))throw new TypeError("SolidityType indicates type is array, but parameter is not an array");const l=[];for(const[A,y]of n.entries()){const D=mk(y,{ty:e.ty,array:!1});l.push(D)}const u=l.map(A=>A.length).reduce((A,y)=>A+y);switch(e.ty){case 0:case 1:case 2:case 3:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 65:case 67:case 68:case 69:t=new Uint8Array(u+32);break;case 66:case 64:t=new Uint8Array(32*l.length+u+32);break;default:throw new TypeError(`Expected param type to be ArgumentType, but received ${e.ty}`)}o=Aa(t,28),o.setUint32(0,l.length);let h=32*l.length;for(const[A,y]of l.entries())switch(e.ty){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 65:case 67:case 68:case 69:t.set(y,32*A+32);break;case 66:case 64:const D=Aa(t,32*(A+1)+28);D.setUint32(0,h),t.set(y,D.getUint32(0)+32),h+=y.length;break;default:throw new TypeError(`Expected param type to be ArgumentType, but received ${e.ty}`)}return t}switch(e.ty){case 0:return sc(n,31,o.setUint8.bind(o)),t;case 1:return sc(n,31,o.setInt8.bind(o)),t;case 2:return sc(n,30,o.setUint16.bind(o)),t;case 3:return sc(n,30,o.setInt16.bind(o)),t;case 4:return sc(n,29,o.setUint32.bind(o)),t;case 5:return sc(n,29,o.setInt32.bind(o)),t;case 6:return sc(n,28,o.setUint32.bind(o)),t;case 7:return sc(n,28,o.setInt32.bind(o)),t;case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 63:case 62:if(Ot.isBigNumber(n)){let l=n.toString(16);l.length%2==1&&(l=`0${l}`);const u=Ln(l);t.set(u,32-u.length)}return t;case 68:return t.set(n,12),t;case 65:return t[31]=n?1:0,t;case 69:return t.set(n,8),t;case 67:return t.set(n,0),t;case 66:case 64:return s=n instanceof Uint8Array?n:iu(n),t=Math.floor(s.length/32)>=0?0!==Math.floor(s.length%32)?new Uint8Array(32*(Math.floor(s.length/32)+1)+32):new Uint8Array(32*Math.floor(s.length/32)+32):new Uint8Array(64),t.set(s,32),o=Aa(t,28),o.setUint32(0,s.length),t;default:throw new Error(`Unsupported argument type: ${e.toString()}`)}}function sc(n,e,t){t(e,Ot.isBigNumber(n)?n.toNumber():n)}class W0 extends Zo{constructor(e={}){super(),this._contractId=null,null!=e.contractId&&this.setContractId(e.contractId),this._gas=null,null!=e.gas&&this.setGas(e.gas),this._functionParameters=null,null!=e.functionParameters&&(e.functionParameters instanceof Uint8Array?this.setFunctionParameters(e.functionParameters):this.setFunction(e.functionParameters.name,e.functionParameters.parameters)),this._maxResultSize=null,null!=e.maxResultSize&&this.setMaxResultSize(e.maxResultSize),this._senderAccountId=null,null!=e.senderAccountId&&this.setSenderAccountId(e.senderAccountId)}static _fromProtobuf(e){const t=e.contractCallLocal;return new W0({contractId:null!=t.contractID?Wn._fromProtobuf(t.contractID):void 0,gas:null!=t.gas?t.gas:void 0,functionParameters:null!=t.functionParameters?t.functionParameters:void 0,maxResultSize:null!=t.maxResultSize?t.maxResultSize:void 0})}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Wn.fromString(e):e.clone(),this}get gas(){return this._gas}setGas(e){return this._gas=e instanceof We?e:We.fromValue(e),this}get senderAccountId(){return this._senderAccountId}setSenderAccountId(e){return this._senderAccountId="string"==typeof e?Oe.fromString(e):e,this}get functionParameters(){return this._functionParameters}setFunctionParameters(e){return this._functionParameters=e,this}setFunction(e,t){return this._functionParameters=(t??new du)._build(e),this}setMaxResultSize(e){return this._maxResultSize=e instanceof We?e:We.fromValue(e),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e)}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=m._fromCode(o??Mt.proto.ResponseCodeEnum.OK),l=this._mapResponseSync(t);return new ed({status:s,transactionId:this._getTransactionId(),contractFunctionResult:l})}_execute(e,t){return e.smartContract.contractCallLocalMethod(t)}_mapResponseHeader(e){return e.contractCallLocal.header}_mapResponse(e){return Promise.resolve(su._fromProtobuf(e.contractCallLocal.functionResult,!1))}_mapResponseSync(e){return su._fromProtobuf(e.contractCallLocal.functionResult,!1)}_onMakeRequest(e){return{contractCallLocal:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null,gas:this._gas,maxResultSize:this._maxResultSize,functionParameters:this._functionParameters,senderId:null!=this._senderAccountId?this._senderAccountId._toProtobuf():null}}}_getLogId(){return`ContractCallQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("contractCallLocal",W0._fromProtobuf);class $0 extends wt{constructor(e={}){super(),this._keys=null,this._expirationTime=new Sn(0,0).plusNanos(We.fromNumber(Date.now()).mul(1e6).add(td.mul(1e9))),this._contents=null,this._fileMemo=null,this._defaultMaxTransactionFee=new Nt(5),null!=e.keys&&this.setKeys(e.keys),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.contents&&this.setContents(e.contents),null!=e.fileMemo&&this.setFileMemo(e.fileMemo)}static _fromProtobuf(e,t,o,s,l){const h=l[0].fileCreate;return wt._fromProtobufTransactions(new $0({keys:null!=h.keys&&null!=h.keys.keys?h.keys.keys.map(A=>On._fromProtobufKey(A)):void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0,contents:null!=h.contents?h.contents:void 0,fileMemo:null!=h.memo?h.memo:void 0}),e,t,o,s,l)}get keys(){return this._keys}setKeys(e){if(this._requireNotFrozen(),e instanceof Mo&&null!=e.threshold)throw new Error("Cannot set threshold key as file key");return this._keys=e instanceof Mo?e.toArray():e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Sn?e:Sn.fromDate(e),this}get contents(){return this._contents}setContents(e){return this._requireNotFrozen(),this._contents=e instanceof Uint8Array?e:iu(e),this}get fileMemo(){return this._fileMemo}setFileMemo(e){return this._requireNotFrozen(),this._fileMemo=e,this}_execute(e,t){return e.file.createFile(t)}_getTransactionDataCase(){return"fileCreate"}_makeTransactionData(){return{keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:null,expirationTime:this._expirationTime._toProtobuf(),contents:this._contents,memo:this._fileMemo}}_getLogId(){return`FileCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("fileCreate",$0._fromProtobuf);class Z0 extends wt{constructor(e={}){super(),this._fileId=null,this._contents=null,this._maxChunks=20,this._chunkSize=4096,this._defaultMaxTransactionFee=new Nt(5),null!=e.fileId&&this.setFileId(e.fileId),null!=e.contents&&this.setContents(e.contents),null!=e.maxChunks&&this.setMaxChunks(e.maxChunks),null!=e.chunkSize&&this.setChunkSize(e.chunkSize),this._transactionIds=new jc}static _fromProtobuf(e,t,o,s,l){const h=l[0].fileAppend;let A;for(let y=0;ythis._maxChunks)throw new Error(`Contents with size ${this._contents.length} too long for ${this._maxChunks} chunks`);let o=this._getTransactionId();this._transactionIds.locked=!1,this._transactions.clear(),this._transactionIds.clear(),this._signedTransactions.clear();for(let s=0;sthis._chunkSize)throw new Error(`cannot schedule \`FileAppendTransaction\` with message over ${this._chunkSize} bytes`);return super.schedule()}execute(e,t){var o=this;return Ge(function*(){return(yield o.executeAll(e,t))[0]})()}executeAll(e,t){var o=()=>super._isFrozen,s=()=>super.signWithOperator,l=()=>super.execute,u=this;return Ge(function*(){o().call(u)||u.freezeWith(e);const h=u._getTransactionId(),A=e.operatorAccountId;null!=A&&A.equals(h.accountId)&&(yield s().call(u,e));const y=[];let D=t;for(let U=0;Usuper.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_mapResponseHeader(e){return e.contractGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(ep._fromProtobuf(e.contractGetInfo.contractInfo))}_onMakeRequest(e){return{contractGetInfo:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`ContractInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("contractGetInfo",oy._fromProtobuf);class iy extends wt{constructor(e={}){super(),this._contractId=null,this._expirationTime=null,this._adminKey=null,this._proxyAccountId=null,this._autoRenewPeriod=null,this._bytecodeFileId=null,this._contractMemo=null,this._maxAutomaticTokenAssociations=0,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=null,this._autoRenewAccountId=null,null!=e.contractId&&this.setContractId(e.contractId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.bytecodeFileId&&this.setBytecodeFileId(e.bytecodeFileId),null!=e.contractMemo&&this.setContractMemo(e.contractMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].contractUpdateInstance;let A,y,D;return null!=h.autoRenewPeriod&&null!=h.autoRenewPeriod.seconds&&(A=h.autoRenewPeriod.seconds),null!=h.memoWrapper&&null!=h.memoWrapper.value&&(y=h.memoWrapper.value),null!=h.maxAutomaticTokenAssociations&&null!=h.maxAutomaticTokenAssociations.value&&(D=h.maxAutomaticTokenAssociations.value),wt._fromProtobufTransactions(new iy({contractId:null!=h.contractID?Wn._fromProtobuf(h.contractID):void 0,bytecodeFileId:null!=h.fileID?nr._fromProtobuf(h.fileID):void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0,adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,proxyAccountId:null!=h.proxyAccountID?Oe._fromProtobuf(h.proxyAccountID):void 0,autoRenewPeriod:A,contractMemo:y,maxAutomaticTokenAssociations:D,stakedAccountId:null!=h.stakedAccountId?Oe._fromProtobuf(h.stakedAccountId):void 0,stakedNodeId:null!=h.stakedNodeId?h.stakedNodeId:void 0,declineStakingReward:null!=h.declineReward&&1==h.declineReward,autoRenewAccountId:null!=h.autoRenewAccountId?Oe._fromProtobuf(h.autoRenewAccountId):void 0}),e,t,o,s,l)}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId="string"==typeof e?Wn.fromString(e):e.clone(),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Sn?e:Sn.fromDate(e),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}get bytecodeFileId(){return this._bytecodeFileId}setBytecodeFileId(e){return console.warn("Deprecated: there is no replacement"),this._requireNotFrozen(),this._bytecodeFileId="string"==typeof e?nr.fromString(e):e.clone(),this}get contractMemo(){return this._contractMemo}setContractMemo(e){return this._requireNotFrozen(),this._contractMemo=e,this}clearContractMemo(){return this._requireNotFrozen(),this._contractMemo=null,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations=e,this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Oe.fromString(e):e,this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=We.fromValue(e),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId="string"==typeof e?Oe.fromString(e):e,this}clearAutoRenewAccountId(){return this._autoRenewAccountId=new Oe(0),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e),null!=this._bytecodeFileId&&this._bytecodeFileId.validateChecksum(e),null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.smartContract.updateContract(t)}_getTransactionDataCase(){return"contractUpdateInstance"}_makeTransactionData(){return{contractID:null!=this._contractId?this._contractId._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,fileID:this._bytecodeFileId?this._bytecodeFileId._toProtobuf():null,memoWrapper:null!=this._contractMemo?{value:this._contractMemo}:null,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?{value:this._maxAutomaticTokenAssociations}:null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:null!=this.declineStakingRewards?{value:this.declineStakingRewards}:null,autoRenewAccountId:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null}}_getLogId(){return`ContractUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("contractUpdateInstance",iy._fromProtobuf);class sy{constructor(e={}){this._feeCollectorAccountId=null,null!=e.feeCollectorAccountId&&this.setFeeCollectorAccountId(e.feeCollectorAccountId)}get feeCollectorAccountId(){return this._feeCollectorAccountId}setFeeCollectorAccountId(e){return this._feeCollectorAccountId="string"==typeof e?Oe.fromString(e):e,this}static _fromProtobuf(e){throw new Error("not implemented")}_toProtobuf(){throw new Error("not implemented")}}class cc extends sy{constructor(e={}){super(e),this._denominatingTokenId=null,null!=e.denominatingTokenId&&this.setDenominatingTokenId(e.denominatingTokenId),this._amount=null,null!=e.amount&&this.setAmount(e.amount)}setHbarAmount(e){return this._amount=e.toTinybars(),this._denominatingTokenId=null,this}get hbarAmount(){return null!=this._denominatingTokenId?null:Nt.fromTinybars(null!=this._amount?this._amount:0)}setDenominatingTokenToSameToken(){return this._denominatingTokenId=new It(0,0,0),this}get denominatingTokenId(){return this._denominatingTokenId}setDenominatingTokenId(e){return this._denominatingTokenId="string"==typeof e?It.fromString(e):e,this}get amount(){return this._amount}setAmount(e){return this._amount="number"==typeof e?We.fromNumber(e):e,this}static _fromProtobuf(e){const t=e.fixedFee;return new cc({feeCollectorAccountId:null!=e.feeCollectorAccountId?Oe._fromProtobuf(e.feeCollectorAccountId):void 0,denominatingTokenId:null!=t.denominatingTokenId?It._fromProtobuf(t.denominatingTokenId):void 0,amount:null!=t.amount?t.amount:void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,fixedFee:{denominatingTokenId:null!=this._denominatingTokenId?this._denominatingTokenId._toProtobuf():null,amount:this._amount}}}}class fu extends sy{constructor(e={}){super(e),this._numerator=null,null!=e.numerator&&this.setNumerator(e.numerator),this._denominator=null,null!=e.denominator&&this.setDenominator(e.denominator),this._min=null,null!=e.min&&this.setMin(e.min),null!=e.max&&this.setMax(e.max),null!=e.assessmentMethod&&this.setAssessmentMethod(e.assessmentMethod)}get numerator(){return this._numerator}setNumerator(e){return this._numerator="number"==typeof e?We.fromNumber(e):e,this}get denominator(){return this._denominator}setDenominator(e){return this._denominator="number"==typeof e?We.fromNumber(e):e,this}get min(){return this._min}setMin(e){return this._min="number"==typeof e?We.fromNumber(e):e,this}get max(){return this._max}setMax(e){return this._max="number"==typeof e?We.fromNumber(e):e,this}get assessmentMethod(){return this._assessmentMethod}setAssessmentMethod(e){return this._assessmentMethod=e,this}static _fromProtobuf(e){const t=e.fractionalFee,o=t.fractionalAmount;return new fu({feeCollectorAccountId:null!=e.feeCollectorAccountId?Oe._fromProtobuf(e.feeCollectorAccountId):void 0,numerator:null!=o.numerator?o.numerator:void 0,denominator:null!=o.denominator?o.denominator:void 0,min:null!=t.minimumAmount?t.minimumAmount:void 0,max:null!=t.maximumAmount?t.maximumAmount:void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,fractionalFee:{fractionalAmount:{numerator:this._numerator,denominator:this._denominator},minimumAmount:this._min,maximumAmount:this._max}}}}class hu extends sy{constructor(e={}){super(e),this._fallbackFee=null,null!=e.fallbackFee&&this.setFallbackFee(e.fallbackFee),this._numerator=null,null!=e.numerator&&this.setNumerator(e.numerator),this._denominator=null,null!=e.denominator&&this.setDenominator(e.denominator)}get fallbackFee(){return this._fallbackFee}setFallbackFee(e){return this._fallbackFee=e,this}get numerator(){return this._numerator}setNumerator(e){return this._numerator="number"==typeof e?We.fromNumber(e):e,this}get denominator(){return this._denominator}setDenominator(e){return this._denominator="number"==typeof e?We.fromNumber(e):e,this}static _fromProtobuf(e){const t=e.royaltyFee,o=t.exchangeValueFraction;return new hu({feeCollectorAccountId:null!=e.feeCollectorAccountId?Oe._fromProtobuf(e.feeCollectorAccountId):void 0,fallbackFee:null!=t.fallbackFee?cc._fromProtobuf({fixedFee:t.fallbackFee}):void 0,numerator:null!=o.numerator?o.numerator:void 0,denominator:null!=o.denominator?o.denominator:void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,royaltyFee:{exchangeValueFraction:{numerator:this._numerator,denominator:this._denominator},fallbackFee:null!=this._fallbackFee?this._fallbackFee._toProtobuf().fixedFee:null}}}}class ya extends Wn{constructor(e,t,o,s){super(e,t,o,s)}static fromEvmAddress(e,t,o){return new ya(e,t,0,Ln(o))}static fromString(e){return new ya(Wn.fromString(e))}static _fromProtobuf(e){return new ya(Wn._fromProtobuf(e))}static fromBytes(e){return new ya(Wn.fromBytes(e))}static fromSolidityAddress(e){return new ya(Wn.fromSolidityAddress(e))}clone(){const e=new ya(this);return e._checksum=this._checksum,e}_toProtobufKey(){return{delegatableContractId:this._toProtobuf()}}static __fromProtobufKey(e){return ya._fromProtobuf(e)}}Fr.setDelegateContractId(n=>ya.__fromProtobufKey(n));class ay extends wt{constructor(e={}){super(),this._ethereumData=null,this._callDataFileId=null,this._maxGasAllowance=null,null!=e.ethereumData&&this.setEthereumData(e.ethereumData),null!=e.callData&&this.setCallDataFileId(e.callData),null!=e.callDataFileId&&this.setCallDataFileId(e.callDataFileId),null!=e.maxGasAllowance&&this.setMaxGasAllowanceHbar(e.maxGasAllowance)}static _fromProtobuf(e,t,o,s,l){const h=l[0].ethereumTransaction;return wt._fromProtobufTransactions(new ay({ethereumData:null!=h.ethereumData?h.ethereumData:void 0,callData:null!=h.callData?nr._fromProtobuf(h.callData):void 0,maxGasAllowance:null!=h.maxGasAllowance?Nt.fromTinybars(h.maxGasAllowance):void 0}),e,t,o,s,l)}get ethereumData(){return this._ethereumData}setEthereumData(e){return this._requireNotFrozen(),this._ethereumData=e,this}get callData(){return this.callDataFileId}setCallData(e){return this.setCallDataFileId(e)}get callDataFileId(){return this._callDataFileId}setCallDataFileId(e){return this._requireNotFrozen(),this._callDataFileId=e,this}get maxGasAllowance(){return this._maxGasAllowance}setMaxGasAllowance(e){return this.setMaxGasAllowanceHbar(e)}setMaxGasAllowanceHbar(e){return this._requireNotFrozen(),this._maxGasAllowance=e instanceof Nt?e:new Nt(e),this}_validateChecksums(e){null!=this._ethereumData&&this._ethereumData instanceof nr&&this._ethereumData.validateChecksum(e)}_execute(e,t){return e.smartContract.callEthereum(t)}_getTransactionDataCase(){return"ethereumTransaction"}_makeTransactionData(){return{ethereumData:this._ethereumData,callData:null!=this._callDataFileId?this._callDataFileId._toProtobuf():null,maxGasAllowance:null!=this._maxGasAllowance?this._maxGasAllowance.toTinybars():null}}_getLogId(){return`EthereumTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("ethereumTransaction",ay._fromProtobuf);let bk=!1,_k=!1;const tp={debug:1,default:2,info:2,warning:3,error:4,off:5};let wk=tp.default,cy=null;const vk=function pH(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{n.push(e)}}),n.length)throw new Error("missing "+n.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(n){return n.message}return null}();var np=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(np||(np={})),np))(),os=(()=>(function(n){n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED"}(os||(os={})),os))();const Ik="0123456789abcdef";let Hs=(()=>{class n{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,o){const s=t.toLowerCase();null==tp[s]&&this.throwArgumentError("invalid log level name","logLevel",t),!(wk>tp[s])&&console.log.apply(console,o)}debug(...t){this._log(n.levels.DEBUG,t)}info(...t){this._log(n.levels.INFO,t)}warn(...t){this._log(n.levels.WARNING,t)}makeError(t,o,s){if(_k)return this.makeError("censored error",o,{});o||(o=n.errors.UNKNOWN_ERROR),s||(s={});const l=[];Object.keys(s).forEach(y=>{const D=s[y];try{if(D instanceof Uint8Array){let U="";for(let q=0;q>4],U+=Ik[15&D[q]];l.push(y+"=Uint8Array(0x"+U+")")}else l.push(y+"="+JSON.stringify(D))}catch{l.push(y+"="+JSON.stringify(s[y].toString()))}}),l.push(`code=${o}`),l.push(`version=${this.version}`);const u=t;let h="";switch(o){case os.NUMERIC_FAULT:{h="NUMERIC_FAULT";const y=t;switch(y){case"overflow":case"underflow":case"division-by-zero":h+="-"+y;break;case"negative-power":case"negative-width":h+="-unsupported";break;case"unbound-bitwise-result":h+="-unbound-result"}break}case os.CALL_EXCEPTION:case os.INSUFFICIENT_FUNDS:case os.MISSING_NEW:case os.NONCE_EXPIRED:case os.REPLACEMENT_UNDERPRICED:case os.TRANSACTION_REPLACED:case os.UNPREDICTABLE_GAS_LIMIT:h=o}h&&(t+=" [ See: https://links.ethers.org/v5-errors-"+h+" ]"),l.length&&(t+=" ("+l.join(", ")+")");const A=new Error(t);return A.reason=u,A.code=o,Object.keys(s).forEach(function(y){A[y]=s[y]}),A}throwError(t,o,s){throw this.makeError(t,o,s)}throwArgumentError(t,o,s){return this.throwError(t,n.errors.INVALID_ARGUMENT,{argument:o,value:s})}assert(t,o,s,l){t||this.throwError(o,s,l)}assertArgument(t,o,s,l){t||this.throwArgumentError(o,s,l)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),vk&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:vk})}checkSafeUint53(t,o){"number"==typeof t&&(null==o&&(o="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,o,s){s=s?": "+s:"",to&&this.throwError("too many arguments"+s,n.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:o})}checkNew(t,o){(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}checkAbstract(t,o){t===o?this.throwError("cannot instantiate abstract class "+JSON.stringify(o.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}static globalLogger(){return cy||(cy=new n("logger/5.7.0")),cy}static setCensorship(t,o){if(!t&&o&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),bk){if(!t)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}_k=!!t,bk=!!o}static setLogLevel(t){const o=tp[t.toLowerCase()];null!=o?wk=o:n.globalLogger().warn("invalid log level - "+t)}static from(t){return new n(t)}}return n.errors=os,n.levels=np,n})();const ho=new Hs("bytes/5.7.0");function Ck(n){return!!n.toHexString}function pu(n){return n.slice||(n.slice=function(){const e=Array.prototype.slice.call(arguments);return pu(new Uint8Array(Array.prototype.slice.apply(n,e)))}),n}function kk(n){return"number"==typeof n&&n==n&&n%1==0}function ly(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!kk(n.length)||n.length<0)return!1;for(let e=0;e=256)return!1}return!0}function lc(n,e){if(e||(e={}),"number"==typeof n){ho.checkSafeUint53(n,"invalid arrayify value");const t=[];for(;n;)t.unshift(255&n),n=parseInt(String(n/256));return 0===t.length&&t.push(0),pu(new Uint8Array(t))}if(e.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),Ck(n)&&(n=n.toHexString()),zs(n)){let t=n.substring(2);t.length%2&&("left"===e.hexPad?t="0"+t:"right"===e.hexPad?t+="0":ho.throwArgumentError("hex data is odd-length","value",n));const o=[];for(let s=0;s>4]+uy[15&s]}return t}return ho.throwArgumentError("invalid hexlify value","value",n)}const Vs=new Hs("rlp/5.7.0");function Dk(n){const e=[];for(;n;)e.unshift(255&n),n>>=8;return e}function Ek(n,e,t){let o=0;for(let s=0;se+1+o&&Vs.throwError("child data too short",Hs.errors.BUFFER_OVERRUN,{})}return{consumed:1+o,result:s}}function Sk(n,e){if(0===n.length&&Vs.throwError("data too short",Hs.errors.BUFFER_OVERRUN,{}),n[e]>=248){const t=n[e]-247;e+1+t>n.length&&Vs.throwError("data short segment too short",Hs.errors.BUFFER_OVERRUN,{});const o=Ek(n,e+1,t);return e+1+t+o>n.length&&Vs.throwError("data long segment too short",Hs.errors.BUFFER_OVERRUN,{}),Ok(n,e,e+1+t,t+o)}if(n[e]>=192){const t=n[e]-192;return e+1+t>n.length&&Vs.throwError("data array too short",Hs.errors.BUFFER_OVERRUN,{}),Ok(n,e,e+1,t)}if(n[e]>=184){const t=n[e]-183;e+1+t>n.length&&Vs.throwError("data array too short",Hs.errors.BUFFER_OVERRUN,{});const o=Ek(n,e+1,t);return e+1+t+o>n.length&&Vs.throwError("data array too short",Hs.errors.BUFFER_OVERRUN,{}),{consumed:1+t+o,result:Ro(n.slice(e+1+t,e+1+t+o))}}if(n[e]>=128){const t=n[e]-128;return e+1+t>n.length&&Vs.throwError("data too short",Hs.errors.BUFFER_OVERRUN,{}),{consumed:1+t,result:Ro(n.slice(e+1,e+1+t))}}return{consumed:1,result:Ro(n[e])}}function Bk(n){const e=lc(n),t=Sk(e,0);return t.consumed!==e.length&&Vs.throwArgumentError("invalid rlp data","data",n),t.result}class Nk{constructor(e){this.callData=e.callData}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");return 2!=e[0]?Fr.ethereumTransactionDataLegacyFromBytes(e):Fr.ethereumTransactionDataEip1559FromBytes(e)}toBytes(){throw new Error("not implemented")}toString(){throw new Error("not implemented")}toJSON(){throw new Error("not implemented")}}class fy extends Nk{constructor(e){super(e),this.nonce=e.nonce,this.gasPrice=e.gasPrice,this.gasLimit=e.gasLimit,this.to=e.to,this.value=e.value,this.v=e.v,this.r=e.r,this.s=e.s}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");const t=Bk(e);if(9!=t.length)throw new Error("invalid ethereum transaction data");return new fy({nonce:Ln(t[0]),gasPrice:Ln(t[1]),gasLimit:Ln(t[2]),to:Ln(t[3]),value:Ln(t[4]),callData:Ln(t[5]),v:Ln(t[6]),r:Ln(t[7]),s:Ln(t[8])})}toBytes(){return Ln(xk([this.nonce,this.gasPrice,this.gasLimit,this.to,this.value,this.callData,this.v,this.r,this.s]))}toString(){return JSON.stringify(this.toJSON(),null,2)}toJSON(){return{nonce:yt(this.nonce),gasPrice:yt(this.gasPrice),gasLimit:yt(this.gasLimit),to:yt(this.to),value:yt(this.value),callData:yt(this.callData),v:yt(this.v),r:yt(this.r),s:yt(this.s)}}}Fr.setEthereumTransactionDataLegacyFromBytes(n=>fy.fromBytes(n));class hy extends Nk{constructor(e){super(e),this.chainId=e.chainId,this.nonce=e.nonce,this.maxPriorityGas=e.maxPriorityGas,this.maxGas=e.maxGas,this.gasLimit=e.gasLimit,this.to=e.to,this.value=e.value,this.accessList=e.accessList,this.recId=e.recId,this.r=e.r,this.s=e.s}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");const t=Bk(e.subarray(1));if(!Array.isArray(t))throw new Error("ethereum data is not a list");if(12!=t.length)throw new Error("invalid ethereum transaction data");return new hy({chainId:Ln(t[0]),nonce:Ln(t[1]),maxPriorityGas:Ln(t[2]),maxGas:Ln(t[3]),gasLimit:Ln(t[4]),to:Ln(t[5]),value:Ln(t[6]),callData:Ln(t[7]),accessList:t[8].map(o=>Ln(o)),recId:Ln(t[9]),r:Ln(t[10]),s:Ln(t[11])})}toBytes(){return Ln("02"+xk([this.chainId,this.nonce,this.maxPriorityGas,this.maxGas,this.gasLimit,this.to,this.value,this.callData,this.accessList,this.recId,this.r,this.s]).substring(2))}toString(){return JSON.stringify(this.toJSON(),null,2)}toJSON(){return{chainId:yt(this.chainId),nonce:yt(this.nonce),maxPriorityGas:yt(this.maxPriorityGas),maxGas:yt(this.maxGas),gasLimit:yt(this.gasLimit),to:yt(this.to),value:yt(this.value),callData:yt(this.callData),accessList:this.accessList.map(e=>yt(e)),recId:yt(this.recId),r:yt(this.r),s:yt(this.s)}}}Fr.setEthereumTransactionDataEip1559FromBytes(n=>hy.fromBytes(n));class Vr{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case Vr.Default:return"DEFAULT";case Vr.TokenFungibleCommon:return"TOKEN_FUNGIBLE_COMMON";case Vr.TokenNonFungibleUnique:return"TOKEN_NON_FUNGIBLE_UNIQUE";case Vr.TokenFungibleCommonWithCustomFees:return"TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES";case Vr.TokenNonFungibleUniqueWithCustomFees:return"TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES";case Vr.ScheduleCreateContractCall:return"SCHEDULE_CREATE_CONTRACT_CALL";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return Vr.Default;case 1:return Vr.TokenFungibleCommon;case 2:return Vr.TokenNonFungibleUnique;case 3:return Vr.TokenFungibleCommonWithCustomFees;case 4:return Vr.TokenNonFungibleUniqueWithCustomFees;case 5:return Vr.ScheduleCreateContractCall}throw new Error(`(BUG) SubType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}Vr.Default=new Vr(0),Vr.TokenFungibleCommon=new Vr(1),Vr.TokenNonFungibleUnique=new Vr(2),Vr.TokenFungibleCommonWithCustomFees=new Vr(3),Vr.TokenNonFungibleUniqueWithCustomFees=new Vr(4),Vr.ScheduleCreateContractCall=new Vr(5);class pe{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case pe.None:return"NONE";case pe.CryptoTransfer:return"CryptoTransfer";case pe.CryptoUpdate:return"CryptoUpdate";case pe.CryptoDelete:return"CryptoDelete";case pe.CryptoAddLiveHash:return"CryptoAddLiveHash";case pe.CryptoDeleteLiveHash:return"CryptoDeleteLiveHash";case pe.ContractCall:return"ContractCall";case pe.ContractCreate:return"ContractCreate";case pe.ContractUpdate:return"ContractUpdate";case pe.FileCreate:return"FileCreate";case pe.FileAppend:return"FileAppend";case pe.FileUpdate:return"FileUpdate";case pe.FileDelete:return"FileDelete";case pe.CryptoGetAccountBalance:return"CryptoGetAccountBalance";case pe.CryptoGetAccountRecords:return"CryptoGetAccountRecords";case pe.CryptoGetInfo:return"CryptoGetInfo";case pe.ContractCallLocal:return"ContractCallLocal";case pe.ContractGetInfo:return"ContractGetInfo";case pe.ContractGetBytecode:return"ContractGetBytecode";case pe.GetBySolidityID:return"GetBySolidityID";case pe.GetByKey:return"GetByKey";case pe.CryptoGetLiveHash:return"CryptoGetLiveHash";case pe.CryptoGetStakers:return"CryptoGetStakers";case pe.FileGetContents:return"FileGetContents";case pe.FileGetInfo:return"FileGetInfo";case pe.TransactionGetRecord:return"TransactionGetRecord";case pe.ContractGetRecords:return"ContractGetRecords";case pe.CryptoCreate:return"CryptoCreate";case pe.SystemDelete:return"SystemDelete";case pe.SystemUndelete:return"SystemUndelete";case pe.ContractDelete:return"ContractDelete";case pe.Freeze:return"Freeze";case pe.CreateTransactionRecord:return"CreateTransactionRecord";case pe.CryptoAccountAutoRenew:return"CryptoAccountAutoRenew";case pe.ContractAutoRenew:return"ContractAutoRenew";case pe.GetVersionInfo:return"GetVersionInfo";case pe.TransactionGetReceipt:return"TransactionGetReceipt";case pe.ConsensusCreateTopic:return"ConsensusCreateTopic";case pe.ConsensusUpdateTopic:return"ConsensusUpdateTopic";case pe.ConsensusDeleteTopic:return"ConsensusDeleteTopic";case pe.ConsensusGetTopicInfo:return"ConsensusGetTopicInfo";case pe.ConsensusSubmitMessage:return"ConsensusSubmitMessage";case pe.UncheckedSubmit:return"UncheckedSubmit";case pe.TokenCreate:return"TokenCreate";case pe.TokenGetInfo:return"TokenGetInfo";case pe.TokenFreezeAccount:return"TokenFreezeAccount";case pe.TokenUnfreezeAccount:return"TokenUnfreezeAccount";case pe.TokenGrantKycToAccount:return"TokenGrantKycToAccount";case pe.TokenRevokeKycFromAccount:return"TokenRevokeKycFromAccount";case pe.TokenDelete:return"TokenDelete";case pe.TokenUpdate:return"TokenUpdate";case pe.TokenMint:return"TokenMint";case pe.TokenBurn:return"TokenBurn";case pe.TokenAccountWipe:return"TokenAccountWipe";case pe.TokenAssociateToAccount:return"TokenAssociateToAccount";case pe.TokenDissociateFromAccount:return"TokenDissociateFromAccount";case pe.ScheduleCreate:return"ScheduleCreate";case pe.ScheduleDelete:return"ScheduleDelete";case pe.ScheduleSign:return"ScheduleSign";case pe.ScheduleGetInfo:return"ScheduleGetInfo";case pe.TokenGetAccountNftInfos:return"TokenGetAccountNftInfos";case pe.TokenGetNftInfo:return"TokenGetNftInfo";case pe.TokenGetNftInfos:return"TokenGetNftInfos";case pe.TokenFeeScheduleUpdate:return"TokenFeeScheduleUpdate";case pe.NetworkGetExecutionTime:return"NetworkGetExecutionTime";case pe.TokenPause:return"TokenPause";case pe.TokenUnpause:return"TokenUnpause";case pe.CryptoApproveAllowance:return"CryptoApproveAllowance";case pe.CryptoDeleteAllowance:return"CryptoDeleteAllowance";case pe.GetAccountDetails:return"GetAccountDetails";case pe.EthereumTransaction:return"EthereumTransaction";case pe.NodeStakeUpdate:return"NodeStakeUpdate";case pe.Prng:return"UtilPrng";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return pe.None;case 1:return pe.CryptoTransfer;case 2:return pe.CryptoUpdate;case 3:return pe.CryptoDelete;case 4:return pe.CryptoAddLiveHash;case 5:return pe.CryptoDeleteLiveHash;case 6:return pe.ContractCall;case 7:return pe.ContractCreate;case 8:return pe.ContractUpdate;case 9:return pe.FileCreate;case 10:return pe.FileAppend;case 11:return pe.FileUpdate;case 12:return pe.FileDelete;case 13:return pe.CryptoGetAccountBalance;case 14:return pe.CryptoGetAccountRecords;case 15:return pe.CryptoGetInfo;case 16:return pe.ContractCallLocal;case 17:return pe.ContractGetInfo;case 18:return pe.ContractGetBytecode;case 19:return pe.GetBySolidityID;case 20:return pe.GetByKey;case 21:return pe.CryptoGetLiveHash;case 22:return pe.CryptoGetStakers;case 23:return pe.FileGetContents;case 24:return pe.FileGetInfo;case 25:return pe.TransactionGetRecord;case 26:return pe.ContractGetRecords;case 27:return pe.CryptoCreate;case 28:return pe.SystemDelete;case 29:return pe.SystemUndelete;case 30:return pe.ContractDelete;case 31:return pe.Freeze;case 32:return pe.CreateTransactionRecord;case 33:return pe.CryptoAccountAutoRenew;case 34:return pe.ContractAutoRenew;case 35:return pe.GetVersionInfo;case 36:return pe.TransactionGetReceipt;case 50:return pe.ConsensusCreateTopic;case 51:return pe.ConsensusUpdateTopic;case 52:return pe.ConsensusDeleteTopic;case 53:return pe.ConsensusGetTopicInfo;case 54:return pe.ConsensusSubmitMessage;case 55:return pe.UncheckedSubmit;case 56:return pe.TokenCreate;case 58:return pe.TokenGetInfo;case 59:return pe.TokenFreezeAccount;case 60:return pe.TokenUnfreezeAccount;case 61:return pe.TokenGrantKycToAccount;case 62:return pe.TokenRevokeKycFromAccount;case 63:return pe.TokenDelete;case 64:return pe.TokenUpdate;case 65:return pe.TokenMint;case 66:return pe.TokenBurn;case 67:return pe.TokenAccountWipe;case 68:return pe.TokenAssociateToAccount;case 69:return pe.TokenDissociateFromAccount;case 70:return pe.ScheduleCreate;case 71:return pe.ScheduleDelete;case 72:return pe.ScheduleSign;case 73:return pe.ScheduleGetInfo;case 74:return pe.TokenGetAccountNftInfos;case 75:return pe.TokenGetNftInfo;case 76:return pe.TokenGetNftInfos;case 77:return pe.TokenFeeScheduleUpdate;case 78:return pe.NetworkGetExecutionTime;case 79:return pe.TokenPause;case 80:return pe.TokenUnpause;case 81:return pe.CryptoApproveAllowance;case 82:return pe.CryptoDeleteAllowance;case 83:return pe.GetAccountDetails;case 84:return pe.EthereumTransaction;case 85:return pe.NodeStakeUpdate;case 86:return pe.Prng}throw new Error(`(BUG) RequestType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}pe.None=new pe(0),pe.CryptoTransfer=new pe(1),pe.CryptoUpdate=new pe(2),pe.CryptoDelete=new pe(3),pe.CryptoAddLiveHash=new pe(4),pe.CryptoDeleteLiveHash=new pe(5),pe.ContractCall=new pe(6),pe.ContractCreate=new pe(7),pe.ContractUpdate=new pe(8),pe.FileCreate=new pe(9),pe.FileAppend=new pe(10),pe.FileUpdate=new pe(11),pe.FileDelete=new pe(12),pe.CryptoGetAccountBalance=new pe(13),pe.CryptoGetAccountRecords=new pe(14),pe.CryptoGetInfo=new pe(15),pe.ContractCallLocal=new pe(16),pe.ContractGetInfo=new pe(17),pe.ContractGetBytecode=new pe(18),pe.GetBySolidityID=new pe(19),pe.GetByKey=new pe(20),pe.CryptoGetLiveHash=new pe(21),pe.CryptoGetStakers=new pe(22),pe.FileGetContents=new pe(23),pe.FileGetInfo=new pe(24),pe.TransactionGetRecord=new pe(25),pe.ContractGetRecords=new pe(26),pe.CryptoCreate=new pe(27),pe.SystemDelete=new pe(28),pe.SystemUndelete=new pe(29),pe.ContractDelete=new pe(30),pe.Freeze=new pe(31),pe.CreateTransactionRecord=new pe(32),pe.CryptoAccountAutoRenew=new pe(33),pe.ContractAutoRenew=new pe(34),pe.GetVersionInfo=new pe(35),pe.TransactionGetReceipt=new pe(36),pe.ConsensusCreateTopic=new pe(50),pe.ConsensusUpdateTopic=new pe(51),pe.ConsensusDeleteTopic=new pe(52),pe.ConsensusGetTopicInfo=new pe(53),pe.ConsensusSubmitMessage=new pe(54),pe.UncheckedSubmit=new pe(55),pe.TokenCreate=new pe(56),pe.TokenGetInfo=new pe(58),pe.TokenFreezeAccount=new pe(59),pe.TokenUnfreezeAccount=new pe(60),pe.TokenGrantKycToAccount=new pe(61),pe.TokenRevokeKycFromAccount=new pe(62),pe.TokenDelete=new pe(63),pe.TokenUpdate=new pe(64),pe.TokenMint=new pe(65),pe.TokenBurn=new pe(66),pe.TokenAccountWipe=new pe(67),pe.TokenAssociateToAccount=new pe(68),pe.TokenDissociateFromAccount=new pe(69),pe.ScheduleCreate=new pe(70),pe.ScheduleDelete=new pe(71),pe.ScheduleSign=new pe(72),pe.ScheduleGetInfo=new pe(73),pe.TokenGetAccountNftInfos=new pe(74),pe.TokenGetNftInfo=new pe(75),pe.TokenGetNftInfos=new pe(76),pe.TokenFeeScheduleUpdate=new pe(77),pe.NetworkGetExecutionTime=new pe(78),pe.TokenPause=new pe(79),pe.TokenUnpause=new pe(80),pe.CryptoApproveAllowance=new pe(81),pe.CryptoDeleteAllowance=new pe(82),pe.GetAccountDetails=new pe(83),pe.EthereumTransaction=new pe(84),pe.NodeStakeUpdate=new pe(85),pe.Prng=new pe(86);class wy extends Zo{constructor(e={}){super(),this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId)}static _fromProtobuf(e){const t=e.fileGetContents;return new wy({fileId:null!=t.fileID?nr._fromProtobuf(t.fileID):void 0})}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.getFileContent(t)}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?nr.fromString(e):e.clone(),this}_mapResponseHeader(e){return e.fileGetContents.header}_mapResponse(e){return Promise.resolve(e.fileGetContents.fileContents.contents)}_onMakeRequest(e){return{fileGetContents:{header:e,fileID:null!=this._fileId?this._fileId._toProtobuf():null}}}_getLogId(){return`FileContentsQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("fileGetContents",wy._fromProtobuf);const{proto:IH}=Uc;class rp{constructor(e){this.fileId=e.fileId,this.size=e.size,this.expirationTime=e.expirationTime,this.isDeleted=e.isDeleted,this.keys=e.keys,this.fileMemo=e.fileMemo,this.ledgerId=e.ledgerId,Object.freeze(this)}static _fromProtobuf(e){const t=e.size;return new rp({fileId:nr._fromProtobuf(e.fileID),size:t instanceof We?t:We.fromValue(t),expirationTime:Sn._fromProtobuf(e.expirationTime),isDeleted:e.deleted,keys:null!=e.keys?Mo.__fromProtobufKeyList(e.keys):new Mo,fileMemo:null!=e.memo?e.memo:"",ledgerId:null!=e.ledgerId?Ur.fromBytes(e.ledgerId):null})}_toProtobuf(){return{fileID:this.fileId._toProtobuf(),size:this.size,expirationTime:this.expirationTime._toProtobuf(),deleted:this.isDeleted,keys:this.keys._toProtobufKey().keyList,memo:this.fileMemo,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null}}static fromBytes(e){return rp._fromProtobuf(Mt.proto.FileGetInfoResponse.FileInfo.decode(e))}toBytes(){return IH.FileGetInfoResponse.FileInfo.encode(this._toProtobuf()).finish()}}class vy extends Zo{constructor(e={}){super(),this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId)}static _fromProtobuf(e){const t=e.fileGetInfo;return new vy({fileId:null!=t.fileID?nr._fromProtobuf(t.fileID):void 0})}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?nr.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.getFileInfo(t)}_mapResponseHeader(e){return e.fileGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(rp._fromProtobuf(e.fileGetInfo.fileInfo))}_onMakeRequest(e){return{fileGetInfo:{header:e,fileID:null!=this._fileId?this._fileId._toProtobuf():null}}}_getLogId(){return`FileInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("fileGetInfo",vy._fromProtobuf);class Iy extends wt{constructor(e={}){super(),this._fileId=null,this._keys=null,this._expirationTime=null,this._contents=null,this._fileMemo=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.keys&&this.setKeys(e.keys),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.contents&&this.setContents(e.contents),null!=e.fileMemo&&this.setFileMemo(e.fileMemo)}static _fromProtobuf(e,t,o,s,l){const h=l[0].fileUpdate;return wt._fromProtobufTransactions(new Iy({fileId:null!=h.fileID?nr._fromProtobuf(h.fileID):void 0,keys:null!=h.keys&&null!=h.keys.keys?h.keys.keys.map(A=>On._fromProtobufKey(A)):void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0,contents:null!=h.contents?h.contents:void 0,fileMemo:null!=h.memo&&null!=h.memo.value?h.memo.value:void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId="string"==typeof e?nr.fromString(e):e.clone(),this}get keys(){return this._keys}setKeys(e){if(this._requireNotFrozen(),e instanceof Mo&&null!=e.threshold)throw new Error("Cannot set threshold key as file key");return this._keys=e instanceof Mo?e.toArray():e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Sn?e:Sn.fromDate(e),this}get contents(){return this._contents}setContents(e){return this._requireNotFrozen(),this._contents=e instanceof Uint8Array?e:iu(e),this}get fileMemo(){return this._fileMemo}setFileMemo(e){return this._requireNotFrozen(),this._fileMemo=e,this}clearFileMemo(){return this._requireNotFrozen(),this._fileMemo=null,this}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.updateFile(t)}_getTransactionDataCase(){return"fileUpdate"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,contents:this._contents,memo:null!=this._fileMemo?{value:this._fileMemo}:null}}_getLogId(){return`FileUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("fileUpdate",Iy._fromProtobuf);class jr{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case jr.UnknownFreezeType:return"UNKNOWN_FREEZE_TYPE";case jr.FreezeOnly:return"FREEZE_ONLY";case jr.PrepareUpgrade:return"PREPARE_UPGRADE";case jr.FreezeUpgrade:return"FREEZE_UPGRADE";case jr.FreezeAbort:return"FREEZE_ABORT";case jr.TelemetryUpgrade:return"TELEMETRY_UPGRADE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return jr.UnknownFreezeType;case 1:return jr.FreezeOnly;case 2:return jr.PrepareUpgrade;case 3:return jr.FreezeUpgrade;case 4:return jr.FreezeAbort;case 5:return jr.TelemetryUpgrade;default:throw new Error(`(BUG) Status.fromCode() does not handle code: ${e}`)}}valueOf(){return this._code}}jr.UnknownFreezeType=new jr(0),jr.FreezeOnly=new jr(1),jr.PrepareUpgrade=new jr(2),jr.FreezeUpgrade=new jr(3),jr.FreezeAbort=new jr(4),jr.TelemetryUpgrade=new jr(5);class Cy extends wt{constructor(e={}){super(),this._startTime=null,this._startTimestamp=null,this._endTime=null,this._fileId=null,this._fileHash=null,this._freezeType=null,null!=e.startTime&&this.setStartTime(e.startTime.hour,e.startTime.minute),null!=e.endTime&&this.setEndTime(e.endTime.hour,e.endTime.minute),null!=e.startTimestamp&&this.setStartTimestamp(e.startTimestamp),null!=e.updateFileId&&this.setUpdateFileId(e.updateFileId),null!=e.fileId&&this.setFileId(e.fileId),null!=e.fileHash&&this.setFileHash(e.fileHash),null!=e.freezeType&&this.setFreezeType(e.freezeType)}static _fromProtobuf(e,t,o,s,l){const h=l[0].freeze;return wt._fromProtobufTransactions(new Cy({startTime:null!=h.startHour&&null!=h.startMin?{hour:h.startHour,minute:h.startMin}:void 0,endTime:null!=h.endHour&&null!=h.endMin?{hour:h.endHour,minute:h.endMin}:void 0,startTimestamp:null!=h.startTime?Sn._fromProtobuf(h.startTime):void 0,updateFileId:null!=h.updateFile?nr._fromProtobuf(h.updateFile):void 0,fileHash:null!=h.fileHash?h.fileHash:void 0,freezeType:null!=h.freezeType?jr._fromCode(h.freezeType):void 0}),e,t,o,s,l)}get startTime(){return null}setStartTime(e,t){if(this._requireNotFrozen(),"string"==typeof e){const o=e.split(":");this._startTime={hour:Number(o[0]),minute:Number(o[1])}}else this._startTime={hour:e,minute:t};return this}get startTimestamp(){return this._startTimestamp}setStartTimestamp(e){return this._requireNotFrozen(),this._startTimestamp=e,this}get endTime(){return console.warn("`FreezeTransaction.endTime` is deprecated"),this._endTime}setEndTime(e,t){if(console.warn("`FreezeTransaction.endTime` is deprecated"),this._requireNotFrozen(),"string"==typeof e){const o=e.split(":");this._endTime={hour:Number(o[0]),minute:Number(o[1])}}else this._endTime={hour:e,minute:t};return this}get updateFileId(){return this.fileId}setUpdateFileId(e){return this.setFileId(e)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e,this}get fileHash(){return this._fileHash}setFileHash(e){return this._requireNotFrozen(),this._fileHash="string"==typeof e?Ln(e):e,this}get freezeType(){return this._freezeType}setFreezeType(e){return this._requireNotFrozen(),this._freezeType=e,this}_getTransactionDataCase(){return"freeze"}_makeTransactionData(){return{startTime:null!=this._startTimestamp?this._startTimestamp._toProtobuf():null,updateFile:null!=this._fileId?this._fileId._toProtobuf():null,fileHash:this._fileHash,freezeType:null!=this._freezeType?this._freezeType.valueOf():null}}_getLogId(){return`FreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("freeze",Cy._fromProtobuf);class Ty extends wt{constructor(e={}){super(),this._hash=null,this._keys=null,this._duration=null,this._accountId=null,null!=e.hash&&this.setHash(e.hash),null!=e.keys&&this.setKeys(e.keys),null!=e.duration&&this.setDuration(e.duration),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const A=l[0].cryptoAddLiveHash.liveHash;return wt._fromProtobufTransactions(new Ty({hash:null!=A.hash?A.hash:void 0,keys:null!=A.keys&&null!=A.keys.keys?A.keys.keys.map(y=>On._fromProtobufKey(y)):void 0,duration:null!=A.duration&&null!=A.duration.seconds?A.duration.seconds:void 0,accountId:null!=A.accountId?Oe._fromProtobuf(A.accountId):void 0}),e,t,o,s,l)}get hash(){return this._hash}setHash(e){return this._requireNotFrozen(),this._hash=e,this}get keys(){return this._keys}setKeys(e){return this._requireNotFrozen(),this._keys=e instanceof Mo?e.toArray():e,this}get duration(){return this._duration}setDuration(e){return this._requireNotFrozen(),this._duration=e instanceof xr?e:new xr(e),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.addLiveHash(t)}_getTransactionDataCase(){return"cryptoAddLiveHash"}_makeTransactionData(){return{liveHash:{hash:this._hash,keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:void 0,duration:null!=this._duration?this._duration._toProtobuf():null,accountId:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`LiveHashAddTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoAddLiveHash",Ty._fromProtobuf);class ky extends wt{constructor(e={}){super(),this._hash=null,this._accountId=null,null!=e.hash&&this.setHash(e.hash),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoDeleteLiveHash;return wt._fromProtobufTransactions(new ky({hash:null!=h.liveHashToDelete?h.liveHashToDelete:void 0,accountId:null!=h.accountOfLiveHash?Oe._fromProtobuf(h.accountOfLiveHash):void 0}),e,t,o,s,l)}get hash(){return this._hash}setHash(e){return this._requireNotFrozen(),this._hash=e,this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.deleteLiveHash(t)}_getTransactionDataCase(){return"cryptoDeleteLiveHash"}_makeTransactionData(){return{liveHashToDelete:this._hash,accountOfLiveHash:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`LiveHashDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoDeleteLiveHash",ky._fromProtobuf);class Dy extends Zo{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._hash=null,null!=e.hash&&this.setHash(e.hash)}static _fromProtobuf(e){const t=e.cryptoGetLiveHash;return new Dy({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0,hash:null!=t.hash?t.hash:void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId=e instanceof Oe?e:Oe.fromString(e),this}get liveHash(){return this._hash}setHash(e){return this._hash=e,this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getLiveHash(t)}_mapResponseHeader(e){return e.cryptoGetLiveHash.header}_mapResponse(e){return Promise.resolve(H0._fromProtobuf(e.cryptoGetLiveHash.liveHash))}_onMakeRequest(e){return{cryptoGetLiveHash:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null,hash:this._hash}}}_getLogId(){return`LiveHashQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("cryptoGetLiveHash",Dy._fromProtobuf);class id{constructor(e){this.major=e.major,this.minor=e.minor,this.patch=e.patch,Object.freeze(this)}static _fromProtobuf(e){return new id({major:e.major,minor:e.minor,patch:e.patch})}_toProtobuf(){return{major:this.major,minor:this.minor,patch:this.patch}}static fromBytes(e){return id._fromProtobuf(Mt.proto.SemanticVersion.decode(e))}toBytes(){return Mt.proto.SemanticVersion.encode(this._toProtobuf()).finish()}}class op{constructor(e){this.protobufVersion=e.protobufVersion,this.servicesVesion=e.servicesVesion,Object.freeze(this)}static _fromProtobuf(e){return new op({protobufVersion:id._fromProtobuf(e.hapiProtoVersion),servicesVesion:id._fromProtobuf(e.hederaServicesVersion)})}_toProtobuf(){return{hapiProtoVersion:this.protobufVersion._toProtobuf(),hederaServicesVersion:this.servicesVesion._toProtobuf()}}static fromBytes(e){return op._fromProtobuf(Mt.proto.NetworkGetVersionInfoResponse.decode(e))}toBytes(){return Mt.proto.NetworkGetVersionInfoResponse.encode(this._toProtobuf()).finish()}}class Ey extends Zo{constructor(){super()}static _fromProtobuf(e){return new Ey}_execute(e,t){return e.network.getVersionInfo(t)}_mapResponseHeader(e){return e.networkGetVersionInfo.header}_mapResponse(e){return Promise.resolve(op._fromProtobuf(e.networkGetVersionInfo))}_onMakeRequest(e){return{networkGetVersionInfo:{header:e}}}_getLogId(){return`NetworkVersionInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("networkGetVersionInfo",Ey._fromProtobuf);class ip extends wt{constructor(e={}){super(),this._range=null,null!=e.range&&this.setRange(e.range)}setRange(e){return this._range=e,this}get range(){return this._range}_validateChecksums(e){null!=this._range&&B0(this._range)&&this._validateChecksums(e)}_execute(e,t){return e.util.prng(t)}static _fromProtobuf(e,t,o,s,l){return wt._fromProtobufTransactions(new ip({range:l[0].range}),e,t,o,s,l)}_getTransactionDataCase(){return"utilPrng"}_makeTransactionData(){return{range:this.range}}_getLogId(){return`RandomGenerate:${this._transactionIds.current.validStart.toString()}`}}Un.set("utilPrng",ip._fromProtobuf);class sp extends wt{constructor(e={}){super(),this._adminKey=null,this._scheduledTransaction=null,this._payerAccountId=null,this._scheduleMemo=null,this._scheduledSignerPublicKeys=new Set,this._expirationTime=null,this._waitForExpiry=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.payerAccountID&&this.setPayerAccountId(e.payerAccountID),null!=e.scheduleMemo&&this.setScheduleMemo(e.scheduleMemo),this._defaultMaxTransactionFee=new Nt(5)}static _fromProtobuf(e,t,o,s,l){const h=l[0].scheduleCreate;return wt._fromProtobufTransactions(new sp({adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,payerAccountID:null!=h.payerAccountID?Oe._fromProtobuf(h.payerAccountID):void 0,scheduleMemo:null!=h.memo?h.memo:void 0,waitForExpiry:null!=h.waitForExpiry?h.waitForExpiry:void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0}),e,t,o,s,l)}_setScheduledTransaction(e){return this._scheduledTransaction=e,this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get payerAccountId(){return this._payerAccountId}setPayerAccountId(e){return this._requireNotFrozen(),this._payerAccountId=e,this}setScheduleMemo(e){return this._requireNotFrozen(),this._scheduleMemo=e,this}get getScheduleMemo(){return this._requireNotFrozen(),this._scheduleMemo}setScheduledTransaction(e){return this._requireNotFrozen(),e._requireNotFrozen(),this._scheduledTransaction=e.schedule()._scheduledTransaction,this}_validateChecksums(e){null!=this._payerAccountId&&this._payerAccountId.validateChecksum(e)}_execute(e,t){return e.schedule.createSchedule(t)}_getTransactionDataCase(){return"scheduleCreate"}_makeTransactionData(){return{adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,payerAccountID:null!=this._payerAccountId?this._payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this._scheduledTransaction?this._scheduledTransaction._getScheduledTransactionBody():null,memo:this._scheduleMemo,waitForExpiry:this._waitForExpiry,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`ScheduleCreateTransaction:${this._transactionIds.current.validStart.toString()}`}setExpirationTime(e){return this._expirationTime=e,this}get expirationTime(){return this._requireNotFrozen(),this._expirationTime}setWaitForExpiry(e){return this._waitForExpiry=e,this}get waitForExpiry(){return this._requireNotFrozen(),this._waitForExpiry}}Un.set("scheduleCreate",sp._fromProtobuf),K1.push(()=>new sp);class My extends wt{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId),this._defaultMaxTransactionFee=new Nt(5)}static _fromProtobuf(e,t,o,s,l){const h=l[0].scheduleDelete;return wt._fromProtobufTransactions(new My({scheduleId:null!=h.scheduleID?yi._fromProtobuf(h.scheduleID):void 0}),e,t,o,s,l)}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._requireNotFrozen(),this._scheduleId="string"==typeof e?yi.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.deleteSchedule(t)}_getTransactionDataCase(){return"scheduleDelete"}_makeTransactionData(){return{scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}_getLogId(){return`ScheduleDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("scheduleDelete",My._fromProtobuf);const{proto:ap}=Uc;class xy{constructor(e){this.scheduleId=e.scheduleId,this.creatorAccountId=e.creatorAccountID,this.payerAccountId=e.payerAccountID,this.schedulableTransactionBody=e.schedulableTransactionBody,this.signers=e.signers,this.scheduleMemo=e.scheduleMemo,this.adminKey=null!=e.adminKey?e.adminKey:null,this.expirationTime=e.expirationTime,this.executed=e.executed,this.deleted=e.deleted,this.scheduledTransactionId=e.scheduledTransactionId,this.waitForExpiry=e.waitForExpiry,Object.freeze(this)}static _fromProtobuf(e){return new xy({scheduleId:yi._fromProtobuf(e.scheduleID),creatorAccountID:null!=e.creatorAccountID?Oe._fromProtobuf(e.creatorAccountID):null,payerAccountID:null!=e.payerAccountID?Oe._fromProtobuf(e.payerAccountID):null,schedulableTransactionBody:null!=e.scheduledTransactionBody?e.scheduledTransactionBody:null,adminKey:null!=e.adminKey?On._fromProtobufKey(e.adminKey):null,signers:null!=e.signers?Mo.__fromProtobufKeyList(e.signers):null,scheduleMemo:null!=e.memo?e.memo:null,expirationTime:null!=e.expirationTime?Sn._fromProtobuf(e.expirationTime):null,executed:null!=e.executionTime?Sn._fromProtobuf(e.executionTime):null,deleted:null!=e.deletionTime?Sn._fromProtobuf(e.deletionTime):null,scheduledTransactionId:null!=e.scheduledTransactionID?zr._fromProtobuf(e.scheduledTransactionID):null,waitForExpiry:null!=e.waitForExpiry&&e.waitForExpiry})}_toProtobuf(){return{scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,creatorAccountID:null!=this.creatorAccountId?this.creatorAccountId._toProtobuf():null,payerAccountID:null!=this.payerAccountId?this.payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this.schedulableTransactionBody?this.schedulableTransactionBody:null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,signers:null!=this.signers?this.signers._toProtobufKey().keyList:null,memo:null!=this.scheduleMemo?this.scheduleMemo:"",expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,waitForExpiry:this.waitForExpiry}}get scheduledTransaction(){if(null==this.schedulableTransactionBody)throw new Error("Scheduled transaction body is empty");const e=new ap.SchedulableTransactionBody(this.schedulableTransactionBody),t=e.data;return wt.fromBytes(ap.TransactionList.encode({transactionList:[{signedTransactionBytes:ap.SignedTransaction.encode({bodyBytes:ap.TransactionBody.encode({transactionFee:this.schedulableTransactionBody.transactionFee,memo:this.schedulableTransactionBody.memo,[t]:e[t]}).finish()}).finish()}]}).finish())}}class Oy extends Zo{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId)}static _fromProtobuf(e){const t=e.scheduleGetInfo;return new Oy({scheduleId:null!=t.scheduleID?yi._fromProtobuf(t.scheduleID):void 0})}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._scheduleId="string"==typeof e?yi.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.getScheduleInfo(t)}_mapResponseHeader(e){return e.scheduleGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(xy._fromProtobuf(e.scheduleGetInfo.scheduleInfo))}_onMakeRequest(e){return{scheduleGetInfo:{header:e,scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}}_getLogId(){return`ScheduleInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("scheduleGetInfo",Oy._fromProtobuf);class Sy extends wt{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId),this._defaultMaxTransactionFee=new Nt(5)}static _fromProtobuf(e,t,o,s,l){const h=l[0].scheduleSign;return wt._fromProtobufTransactions(new Sy({scheduleId:null!=h.scheduleID?yi._fromProtobuf(h.scheduleID):void 0}),e,t,o,s,l)}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._requireNotFrozen(),this._scheduleId="string"==typeof e?yi.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.signSchedule(t)}_getTransactionDataCase(){return"scheduleSign"}_makeTransactionData(){return{scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}_getLogId(){return`ScheduleSignTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("scheduleSign",Sy._fromProtobuf);class By extends wt{constructor(e={}){super(),this._fileId=null,this._contractId=null,this._expirationTime=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.contractId&&this.setContractId(e.contractId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime)}static _fromProtobuf(e,t,o,s,l){const h=l[0].systemDelete;return wt._fromProtobufTransactions(new By({fileId:null!=h.fileID?nr._fromProtobuf(h.fileID):void 0,contractId:null!=h.contractID?Wn._fromProtobuf(h.contractID):void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e instanceof nr?e:nr.fromString(e),this}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId=e instanceof Wn?e:Wn.fromString(e),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e,this}_execute(e,t){return null!=this._fileId?e.file.systemDelete(t):e.smartContract.systemDelete(t)}_getTransactionDataCase(){return"systemDelete"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`SystemDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("systemDelete",By._fromProtobuf);class Ny extends wt{constructor(e={}){super(),this._fileId=null,this._contractId=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].systemUndelete;return wt._fromProtobufTransactions(new Ny({fileId:null!=h.fileID?nr._fromProtobuf(h.fileID):void 0,contractId:null!=h.contractID?Wn._fromProtobuf(h.contractID):void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e instanceof nr?e:nr.fromString(e),this}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId=e instanceof Wn?e:Wn.fromString(e),this}_execute(e,t){return null!=this._fileId?e.file.systemUndelete(t):e.smartContract.systemUndelete(t)}_getTransactionDataCase(){return"systemUndelete"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}_getLogId(){return`SystemUndeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("systemUndelete",Ny._fromProtobuf);class cp extends wt{constructor(e={}){super(),this._tokenIds=null,this._accountId=null,this._defaultMaxTransactionFee=new Nt(5),null!=e.tokenIds&&this.setTokenIds(e.tokenIds),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenAssociate;return wt._fromProtobufTransactions(new cp({tokenIds:null!=h.tokens?h.tokens.map(A=>It._fromProtobuf(A)):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenIds(){return this._tokenIds}setTokenIds(e){return this._requireNotFrozen(),this._tokenIds=e.map(t=>"string"==typeof t?It.fromString(t):t.clone()),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e);for(const t of null!=this._tokenIds?this._tokenIds:[])t?.validateChecksum(e)}_execute(e,t){return e.token.associateTokens(t)}_getTransactionDataCase(){return"tokenAssociate"}_makeTransactionData(){return{tokens:null!=this._tokenIds?this._tokenIds.map(e=>e._toProtobuf()):null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenAssociateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenAssociate",cp._fromProtobuf);class lp extends wt{constructor(e={}){super(),this._tokenId=null,this._amount=null,this._serials=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.amount&&this.setAmount(e.amount),null!=e.serials&&this.setSerials(e.serials)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenBurn;return wt._fromProtobufTransactions(new lp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,amount:null!=h.amount?h.amount:void 0,serials:null!=h.serialNumbers?h.serialNumbers:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof We?e:We.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}get serials(){return this._serials}setSerials(e){return this._requireNotFrozen(),this._serials=e.map(t=>t instanceof We?t:We.fromValue(t)),this}_execute(e,t){return e.token.burnToken(t)}_getTransactionDataCase(){return"tokenBurn"}_makeTransactionData(){return{amount:this._amount,serialNumbers:this._serials,token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenBurnTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenBurn",lp._fromProtobuf);class bi{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case bi.FungibleCommon:return"FUNGIBLE_COMMON";case bi.NonFungibleUnique:return"NON_FUNGIBLE_UNIQUE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return bi.FungibleCommon;case 1:return bi.NonFungibleUnique}throw new Error(`(BUG) TokenType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}bi.FungibleCommon=new bi(0),bi.NonFungibleUnique=new bi(1);class _i{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case _i.Infinite:return"INFINITE";case _i.Finite:return"FINITE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return _i.Infinite;case 1:return _i.Finite}throw new Error(`(BUG) TokenSupplyType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}_i.Infinite=new _i(0),_i.Finite=new _i(1);class up extends wt{constructor(e={}){super(),this._tokenName=null,this._tokenSymbol=null,this._decimals=null,this._initialSupply=null,this._treasuryAccountId=null,this._adminKey=null,this._kycKey=null,this._freezeKey=null,this._pauseKey=null,this._wipeKey=null,this._supplyKey=null,this._feeScheduleKey=null,this._freezeDefault=null,this._autoRenewAccountId=null,this._expirationTime=null,this._autoRenewPeriod=new xr(td),this._tokenMemo=null,this._customFees=[],this._tokenType=null,this._supplyType=null,this._maxSupply=null,this._defaultMaxTransactionFee=new Nt(30),null!=e.tokenName&&this.setTokenName(e.tokenName),null!=e.tokenSymbol&&this.setTokenSymbol(e.tokenSymbol),null!=e.decimals&&this.setDecimals(e.decimals),null!=e.initialSupply&&this.setInitialSupply(e.initialSupply),null!=e.treasuryAccountId&&this.setTreasuryAccountId(e.treasuryAccountId),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.kycKey&&this.setKycKey(e.kycKey),null!=e.freezeKey&&this.setFreezeKey(e.freezeKey),null!=e.pauseKey&&this.setPauseKey(e.pauseKey),null!=e.wipeKey&&this.setWipeKey(e.wipeKey),null!=e.supplyKey&&this.setSupplyKey(e.supplyKey),null!=e.feeScheduleKey&&this.setFeeScheduleKey(e.feeScheduleKey),null!=e.freezeDefault&&this.setFreezeDefault(e.freezeDefault),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.tokenMemo&&this.setTokenMemo(e.tokenMemo),null!=e.customFees&&this.setCustomFees(e.customFees),null!=e.tokenType&&this.setTokenType(e.tokenType),null!=e.supplyType&&this.setSupplyType(e.supplyType),null!=e.maxSupply&&this.setMaxSupply(e.maxSupply)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenCreation;return wt._fromProtobufTransactions(new up({tokenName:null!=h.name?h.name:void 0,tokenSymbol:null!=h.symbol?h.symbol:void 0,decimals:null!=h.decimals?h.decimals:void 0,initialSupply:null!=h.initialSupply?h.initialSupply:void 0,treasuryAccountId:null!=h.treasury?Oe._fromProtobuf(h.treasury):void 0,adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,kycKey:null!=h.kycKey?On._fromProtobufKey(h.kycKey):void 0,freezeKey:null!=h.freezeKey?On._fromProtobufKey(h.freezeKey):void 0,pauseKey:null!=h.pauseKey?On._fromProtobufKey(h.pauseKey):void 0,wipeKey:null!=h.wipeKey?On._fromProtobufKey(h.wipeKey):void 0,supplyKey:null!=h.supplyKey?On._fromProtobufKey(h.supplyKey):void 0,feeScheduleKey:null!=h.feeScheduleKey?On._fromProtobufKey(h.feeScheduleKey):void 0,freezeDefault:null!=h.freezeDefault?h.freezeDefault:void 0,autoRenewAccountId:null!=h.autoRenewAccount?Oe._fromProtobuf(h.autoRenewAccount):void 0,expirationTime:null!=h.expiry?Sn._fromProtobuf(h.expiry):void 0,autoRenewPeriod:null!=h.autoRenewPeriod?xr._fromProtobuf(h.autoRenewPeriod):void 0,tokenMemo:null!=h.memo?h.memo:void 0,customFees:null!=h.customFees?h.customFees.map(A=>null!=A.fixedFee?cc._fromProtobuf(A):null!=A.fractionalFee?fu._fromProtobuf(A):hu._fromProtobuf(A)):void 0,tokenType:null!=h.tokenType?bi._fromCode(h.tokenType):void 0,supplyType:null!=h.supplyType?_i._fromCode(h.supplyType):void 0,maxSupply:null!=h.maxSupply?h.maxSupply:void 0}),e,t,o,s,l)}get tokenName(){return this._tokenName}setTokenName(e){return this._requireNotFrozen(),this._tokenName=e,this}get tokenSymbol(){return this._tokenSymbol}setTokenSymbol(e){return this._requireNotFrozen(),this._tokenSymbol=e,this}get decimals(){return this._decimals}setDecimals(e){return this._requireNotFrozen(),this._decimals=e instanceof We?e:We.fromValue(e),this}get initialSupply(){return this._initialSupply}setInitialSupply(e){return this._requireNotFrozen(),this._initialSupply=We.fromValue(e),this}get treasuryAccountId(){return this._treasuryAccountId}setTreasuryAccountId(e){return this._requireNotFrozen(),this._treasuryAccountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get kycKey(){return this._kycKey}setKycKey(e){return this._requireNotFrozen(),this._kycKey=e,this}get freezeKey(){return this._freezeKey}setFreezeKey(e){return this._requireNotFrozen(),this._freezeKey=e,this}get pauseKey(){return this._pauseKey}setPauseKey(e){return this._requireNotFrozen(),this._pauseKey=e,this}get wipeKey(){return this._wipeKey}setWipeKey(e){return this._requireNotFrozen(),this._wipeKey=e,this}get supplyKey(){return this._supplyKey}setSupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}get feeScheduleKey(){return this._feeScheduleKey}setFeeScheduleKey(e){return this._requireNotFrozen(),this._feeScheduleKey=e,this}get freezeDefault(){return this._freezeDefault}setFreezeDefault(e){return this._requireNotFrozen(),this._freezeDefault=e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._autoRenewPeriod=null,this._expirationTime=e instanceof Sn?e:Sn.fromDate(e),this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Oe?e:Oe.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}get tokenMemo(){return this._tokenMemo}setTokenMemo(e){return this._requireNotFrozen(),this._tokenMemo=e,this}get customFees(){return this._customFees}setCustomFees(e){return this._customFees=e,this}get tokenType(){return this._tokenType}setTokenType(e){return this._tokenType=e,this}get supplyType(){return this._supplyType}setSupplyType(e){return this._supplyType=e,this}get maxSupply(){return this._maxSupply}setMaxSupply(e){return this._maxSupply="number"==typeof e?We.fromNumber(e):e,this}_freezeWithAccountId(e){super._freezeWithAccountId(e),null!=this._autoRenewPeriod&&null!=e&&(this._autoRenewAccountId=e)}freezeWith(e){return null!=e&&null!=e.operatorAccountId&&this._freezeWithAccountId(e.operatorAccountId),super.freezeWith(e)}_validateChecksums(e){null!=this._treasuryAccountId&&this._treasuryAccountId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.token.createToken(t)}_getTransactionDataCase(){return"tokenCreation"}_makeTransactionData(){return{name:this._tokenName,symbol:this._tokenSymbol,decimals:null!=this._decimals?this._decimals.toInt():null,initialSupply:this._initialSupply,treasury:null!=this._treasuryAccountId?this._treasuryAccountId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,kycKey:null!=this._kycKey?this._kycKey._toProtobufKey():null,freezeKey:null!=this._freezeKey?this._freezeKey._toProtobufKey():null,pauseKey:null!=this._pauseKey?this._pauseKey._toProtobufKey():null,wipeKey:null!=this._wipeKey?this._wipeKey._toProtobufKey():null,supplyKey:null!=this._supplyKey?this._supplyKey._toProtobufKey():null,feeScheduleKey:null!=this._feeScheduleKey?this._feeScheduleKey._toProtobufKey():null,freezeDefault:this._freezeDefault,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,expiry:null!=this._expirationTime?this._expirationTime._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,memo:this._tokenMemo,customFees:this.customFees.map(e=>e._toProtobuf()),tokenType:null!=this._tokenType?this._tokenType._code:null,supplyType:null!=this._supplyType?this._supplyType._code:null,maxSupply:this.maxSupply}}_getLogId(){return`TokenCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenCreation",up._fromProtobuf);class dp extends wt{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenDeletion;return wt._fromProtobufTransactions(new dp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.deleteToken(t)}_getTransactionDataCase(){return"tokenDeletion"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenDeletion",dp._fromProtobuf);class fp extends wt{constructor(e={}){super(),this._tokenIds=null,this._accountId=null,this._defaultMaxTransactionFee=new Nt(5),null!=e.tokenIds&&this.setTokenIds(e.tokenIds),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenDissociate;return wt._fromProtobufTransactions(new fp({tokenIds:null!=h.tokens?h.tokens.map(A=>It._fromProtobuf(A)):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenIds(){return this._tokenIds}setTokenIds(e){return this._requireNotFrozen(),this._tokenIds=e.map(t=>"string"==typeof t?It.fromString(t):t.clone()),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e);for(const t of null!=this._tokenIds?this._tokenIds:[])t?.validateChecksum(e)}_execute(e,t){return e.token.dissociateTokens(t)}_getTransactionDataCase(){return"tokenDissociate"}_makeTransactionData(){return{tokens:null!=this._tokenIds?this._tokenIds.map(e=>e._toProtobuf()):null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenDissociateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenDissociate",fp._fromProtobuf);class hp extends wt{constructor(e={}){super(),this._tokenId=null,this._customFees=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.customFees&&this.setCustomFees(e.customFees)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenFeeScheduleUpdate;return wt._fromProtobufTransactions(new hp({tokenId:null!=h.tokenId?It._fromProtobuf(h.tokenId):void 0,customFees:null!=h.customFees?h.customFees.map(A=>null!=A.fixedFee?cc._fromProtobuf(A):null!=A.fractionalFee?fu._fromProtobuf(A):hu._fromProtobuf(A)):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):It._fromProtobuf(e._toProtobuf()),this}get customFees(){return this._customFees}setCustomFees(e){return this._requireNotFrozen(),this._customFees=e,this}_execute(e,t){return e.token.updateTokenFeeSchedule(t)}_getTransactionDataCase(){return"tokenFeeScheduleUpdate"}_makeTransactionData(){return{tokenId:null!=this._tokenId?this._tokenId._toProtobuf():null,customFees:this._customFees.map(e=>e._toProtobuf())}}_getLogId(){return`TokenFeeScheduleUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenFeeScheduleUpdate",hp._fromProtobuf);class pp extends wt{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenFreeze;return wt._fromProtobufTransactions(new pp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.freezeTokenAccount(t)}_getTransactionDataCase(){return"tokenFreeze"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenFreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenFreeze",pp._fromProtobuf);class Ap extends wt{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenGrantKyc;return wt._fromProtobufTransactions(new Ap({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.grantKycToTokenAccount(t)}_getTransactionDataCase(){return"tokenGrantKyc"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenGrantKycTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenGrantKyc",Ap._fromProtobuf);class gp{constructor(e){this.tokenId=e.tokenId,this.name=e.name,this.symbol=e.symbol,this.decimals=e.decimals,this.totalSupply=e.totalSupply,this.treasuryAccountId=e.treasuryAccountId,this.adminKey=e.adminKey,this.kycKey=e.kycKey,this.freezeKey=e.freezeKey,this.pauseKey=e.pauseKey,this.wipeKey=e.wipeKey,this.supplyKey=e.supplyKey,this.feeScheduleKey=e.feeScheduleKey,this.defaultFreezeStatus=e.defaultFreezeStatus,this.defaultKycStatus=e.defaultKycStatus,this.pauseStatus=e.pauseStatus,this.isDeleted=e.isDeleted,this.autoRenewAccountId=e.autoRenewAccountId,this.autoRenewPeriod=e.autoRenewPeriod,this.expirationTime=e.expirationTime,this.tokenMemo=e.tokenMemo,this.customFees=e.customFees,this.tokenType=e.tokenType,this.supplyType=e.supplyType,this.maxSupply=e.maxSupply,this.ledgerId=e.ledgerId}static _fromProtobuf(e){const t=e.defaultFreezeStatus,o=e.defaultKycStatus,s=e.pauseStatus,l=null!=e.autoRenewAccount?Oe._fromProtobuf(e.autoRenewAccount):new Oe(0);return new gp({tokenId:It._fromProtobuf(e.tokenId),name:e.name,symbol:e.symbol,decimals:e.decimals,totalSupply:We.fromValue(e.totalSupply),treasuryAccountId:null!=e.treasury?Oe._fromProtobuf(e.treasury):null,adminKey:null!=e.adminKey?On._fromProtobufKey(e.adminKey):null,kycKey:null!=e.kycKey?On._fromProtobufKey(e.kycKey):null,freezeKey:null!=e.freezeKey?On._fromProtobufKey(e.freezeKey):null,pauseKey:null!=e.pauseKey?On._fromProtobufKey(e.pauseKey):null,wipeKey:null!=e.wipeKey?On._fromProtobufKey(e.wipeKey):null,supplyKey:null!=e.supplyKey?On._fromProtobufKey(e.supplyKey):null,feeScheduleKey:null!=e.feeScheduleKey?On._fromProtobufKey(e.feeScheduleKey):null,defaultFreezeStatus:0===t?null:1==t,defaultKycStatus:0===o?null:1==o,pauseStatus:0===s?null:1==s,isDeleted:e.deleted,autoRenewAccountId:0==l.shard.toInt()&&0==l.realm.toInt()&&0==l.num.toInt()?null:l,autoRenewPeriod:null!=e.autoRenewPeriod?xr._fromProtobuf(e.autoRenewPeriod):null,expirationTime:null!=e.expiry?Sn._fromProtobuf(e.expiry):null,tokenMemo:null!=e.memo?e.memo:"",customFees:null!=e.customFees?e.customFees.map(u=>null!=u.fixedFee?cc._fromProtobuf(u):null!=u.fractionalFee?fu._fromProtobuf(u):hu._fromProtobuf(u)):[],tokenType:null!=e.tokenType?bi._fromCode(e.tokenType):null,supplyType:null!=e.supplyType?_i._fromCode(e.supplyType):null,maxSupply:null!=e.maxSupply?e.maxSupply:null,ledgerId:null!=e.ledgerId?Ur.fromBytes(e.ledgerId):null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),name:this.name,symbol:this.symbol,decimals:this.decimals,totalSupply:this.totalSupply,treasury:null!=this.treasuryAccountId?this.treasuryAccountId._toProtobuf():null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,kycKey:null!=this.kycKey?this.kycKey._toProtobufKey():null,freezeKey:null!=this.freezeKey?this.freezeKey._toProtobufKey():null,pauseKey:null!=this.pauseKey?this.pauseKey._toProtobufKey():null,wipeKey:null!=this.wipeKey?this.wipeKey._toProtobufKey():null,supplyKey:null!=this.supplyKey?this.supplyKey._toProtobufKey():null,feeScheduleKey:null!=this.feeScheduleKey?this.feeScheduleKey._toProtobufKey():null,defaultFreezeStatus:null==this.defaultFreezeStatus?0:this.defaultFreezeStatus?1:2,defaultKycStatus:null==this.defaultKycStatus?0:this.defaultKycStatus?1:2,pauseStatus:null==this.pauseStatus?0:this.pauseStatus?1:2,deleted:this.isDeleted,autoRenewAccount:null!=this.autoRenewAccountId?this.autoRenewAccountId._toProtobuf():void 0,autoRenewPeriod:null!=this.autoRenewPeriod?this.autoRenewPeriod._toProtobuf():null,expiry:null!=this.expirationTime?this.expirationTime._toProtobuf():null,memo:this.tokenMemo,customFees:this.customFees.map(e=>e._toProtobuf()),tokenType:null!=this.tokenType?this.tokenType._code:null,supplyType:null!=this.supplyType?this.supplyType._code:null,maxSupply:this.maxSupply,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null}}static fromBytes(e){return gp._fromProtobuf(Mt.proto.TokenInfo.decode(e))}toBytes(){return Mt.proto.TokenInfo.encode(this._toProtobuf()).finish()}}class Py extends Zo{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e){const t=e.tokenGetInfo;return new Py({tokenId:null!=t.token?It._fromProtobuf(t.token):void 0})}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.getTokenInfo(t)}_mapResponseHeader(e){return e.tokenGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(gp._fromProtobuf(e.tokenGetInfo.tokenInfo))}_onMakeRequest(e){return{tokenGetInfo:{header:e,token:null!=this._tokenId?this._tokenId._toProtobuf():null}}}_getLogId(){return`TokenInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("tokenGetInfo",Py._fromProtobuf);class mp extends wt{constructor(e={}){super(),this._tokenId=null,this._amount=null,this._metadata=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.amount&&this.setAmount(e.amount),null!=e.metadata&&this.setMetadata(e.metadata)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenMint;return wt._fromProtobufTransactions(new mp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,amount:null!=h.amount?h.amount:void 0,metadata:null!=h.metadata?h.metadata:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof We?e:We.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}get metadata(){return this._metadata}addMetadata(e){return this._requireNotFrozen(),"string"==typeof e&&console.warn("Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead."),this._metadata.push("string"==typeof e?Ln(e):e),this}setMetadata(e){this._requireNotFrozen();for(const t of e)if("string"==typeof t){console.warn("Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead.");break}return this._metadata=e.map(t=>"string"==typeof t?Ln(t):t),this}_execute(e,t){return e.token.mintToken(t)}_getTransactionDataCase(){return"tokenMint"}_makeTransactionData(){return{amount:this._amount,token:null!=this._tokenId?this._tokenId._toProtobuf():null,metadata:this._metadata}}_getLogId(){return`TokenMintTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenMint",mp._fromProtobuf);class Ry{constructor(e){this.nftId=e.nftId,this.accountId=e.accountId,this.creationTime=e.creationTime,this.metadata=e.metadata,this.ledgerId=e.ledgerId,this.allowanceSpenderAccountId=e.allowanceSpenderAccountId,Object.freeze(this)}static _fromProtobuf(e){return new Ry({nftId:qo._fromProtobuf(e.nftID),accountId:Oe._fromProtobuf(e.accountID),creationTime:Sn._fromProtobuf(e.creationTime),metadata:void 0!==e.metadata?e.metadata:null,ledgerId:null!=e.ledgerId?Ur.fromBytes(e.ledgerId):null,allowanceSpenderAccountId:null!=e.spenderId?Oe._fromProtobuf(e.spenderId):null})}_toProtobuf(){return{nftID:this.nftId._toProtobuf(),accountID:this.accountId._toProtobuf(),creationTime:this.creationTime._toProtobuf(),metadata:this.metadata,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null,spenderId:null!=this.allowanceSpenderAccountId?this.allowanceSpenderAccountId._toProtobuf():null}}toJson(){return{nftId:this.nftId.toString(),accountId:this.accountId.toString(),creationTime:this.creationTime.toString(),metadata:null!=this.metadata?yt(this.metadata):null,ledgerId:null!=this.ledgerId?this.ledgerId.toString():null,allowanceSpenderAccountId:null!=this.allowanceSpenderAccountId?this.allowanceSpenderAccountId.toString():null}}toString(){return JSON.stringify(this.toJson())}}class sd extends Zo{constructor(e={}){super(),this._nftId=null,null!=e.nftId&&this.setNftId(e.nftId),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._start=null,null!=e.start&&this.setStart(e.start),this._end=null,null!=e.end&&this.setEnd(e.end)}static _fromProtobuf(e){if(null!=e.tokenGetNftInfo){const t=e.tokenGetNftInfo;return new sd({nftId:null!=t.nftID?qo._fromProtobuf(t.nftID):void 0})}if(null!=e.tokenGetAccountNftInfos){const t=e.tokenGetAccountNftInfos;return new sd({accountId:null!=t.accountID?Oe._fromProtobuf(t.accountID):void 0,start:null!=t.start?t.start:void 0,end:null!=t.end?t.end:void 0})}{const t=e.tokenGetNftInfos;return new sd({tokenId:null!=t.tokenID?It._fromProtobuf(t.tokenID):void 0,start:null!=t.start?t.start:void 0,end:null!=t.end?t.end:void 0})}}get nftId(){return this._nftId}setNftId(e){return this._nftId="string"==typeof e?qo.fromString(e):qo._fromProtobuf(e._toProtobuf()),this}get accountId(){return console.warn("`TokenNftInfoQuery.accountId` is deprecated with no replacement"),this._accountId}setAccountId(e){return console.warn("`TokenNftInfoQuery.setAccountId()` is deprecated with no replacement"),this._accountId="string"==typeof e?Oe.fromString(e):Oe._fromProtobuf(e._toProtobuf()),this}get tokenId(){return console.warn("`TokenNftInfoQuery.tokenId` is deprecated with no replacement"),this._tokenId}setTokenId(e){return console.warn("`TokenNftInfoQuery.setTokenId()` is deprecated with no replacement"),this._tokenId="string"==typeof e?It.fromString(e):It._fromProtobuf(e._toProtobuf()),this}get start(){return console.warn("`TokenNftInfoQuery.start` is deprecated with no replacement"),this._start}setStart(e){return console.warn("`TokenNftInfoQuery.setStart()` is deprecated with no replacement"),this._start="number"==typeof e?We.fromNumber(e):e,this}get end(){return console.warn("`TokenNftInfoQuery.end` is deprecated with no replacement"),this._end}setEnd(e){return console.warn("`TokenNftInfoQuery.setEnd()` is deprecated with no replacement"),this._end="number"==typeof e?We.fromNumber(e):e,this}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_execute(e,t){return e.token.getTokenNftInfo(t)}_mapResponseHeader(e){return e.tokenGetNftInfo.header}_mapResponse(e,t,o){return Promise.resolve([e.tokenGetNftInfo.nft].map(l=>Ry._fromProtobuf(l)))}_onMakeRequest(e){return{tokenGetNftInfo:{header:e,nftID:null!=this._nftId?this._nftId._toProtobuf():null}}}_getLogId(){return`TokenNftInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("tokenGetNftInfo",sd._fromProtobuf);class yp extends wt{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenPause;return wt._fromProtobufTransactions(new yp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.pauseToken(t)}_getTransactionDataCase(){return"tokenPause"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenPauseTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenPause",yp._fromProtobuf);class bp extends wt{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenRevokeKyc;return wt._fromProtobufTransactions(new bp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.revokeKycFromTokenAccount(t)}_getTransactionDataCase(){return"tokenRevokeKyc"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenRevokeKycTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenRevokeKyc",bp._fromProtobuf);class _p extends wt{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenUnfreeze;return wt._fromProtobufTransactions(new _p({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.unfreezeTokenAccount(t)}_getTransactionDataCase(){return"tokenUnfreeze"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenUnfreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenUnfreeze",_p._fromProtobuf);class wp extends wt{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenUnpause;return wt._fromProtobufTransactions(new wp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.unpauseToken(t)}_getTransactionDataCase(){return"tokenUnpause"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenUnpauseTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenUnpause",wp._fromProtobuf);class Fy extends wt{constructor(e={}){super(),this._tokenId=null,this._tokenName=null,this._tokenSymbol=null,this._treasuryAccountId=null,this._adminKey=null,this._kycKey=null,this._freezeKey=null,this._wipeKey=null,this._supplyKey=null,this._autoRenewAccountId=null,this._expirationTime=null,this._autoRenewPeriod=null,this._tokenMemo=null,this._feeScheduleKey=null,this._pauseKey=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.tokenName&&this.setTokenName(e.tokenName),null!=e.tokenSymbol&&this.setTokenSymbol(e.tokenSymbol),null!=e.treasuryAccountId&&this.setTreasuryAccountId(e.treasuryAccountId),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.kycKey&&this.setKycKey(e.kycKey),null!=e.freezeKey&&this.setFreezeKey(e.freezeKey),null!=e.wipeKey&&this.setWipeKey(e.wipeKey),null!=e.supplyKey&&this.setSupplyKey(e.supplyKey),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.tokenMemo&&this.setTokenMemo(e.tokenMemo),null!=e.feeScheduleKey&&this.setFeeScheduleKey(e.feeScheduleKey),null!=e.pauseKey&&this.setPauseKey(e.pauseKey)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenUpdate;return wt._fromProtobufTransactions(new Fy({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,tokenName:null!=h.name?h.name:void 0,tokenSymbol:null!=h.symbol?h.symbol:void 0,treasuryAccountId:null!=h.treasury?Oe._fromProtobuf(h.treasury):void 0,adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,kycKey:null!=h.kycKey?On._fromProtobufKey(h.kycKey):void 0,freezeKey:null!=h.freezeKey?On._fromProtobufKey(h.freezeKey):void 0,wipeKey:null!=h.wipeKey?On._fromProtobufKey(h.wipeKey):void 0,supplyKey:null!=h.supplyKey?On._fromProtobufKey(h.supplyKey):void 0,autoRenewAccountId:null!=h.autoRenewAccount?Oe._fromProtobuf(h.autoRenewAccount):void 0,expirationTime:null!=h.expiry?Sn._fromProtobuf(h.expiry):void 0,autoRenewPeriod:null!=h.autoRenewPeriod?xr._fromProtobuf(h.autoRenewPeriod):void 0,tokenMemo:null!=h.memo&&null!=h.memo.value?h.memo.value:void 0,feeScheduleKey:null!=h.feeScheduleKey?On._fromProtobufKey(h.feeScheduleKey):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get tokenName(){return this._tokenName}setTokenName(e){return this._requireNotFrozen(),this._tokenName=e,this}get tokenSymbol(){return this._tokenSymbol}setTokenSymbol(e){return this._requireNotFrozen(),this._tokenSymbol=e,this}get treasuryAccountId(){return this._treasuryAccountId}setTreasuryAccountId(e){return this._requireNotFrozen(),this._treasuryAccountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get kycKey(){return this._kycKey}setKycKey(e){return this._requireNotFrozen(),this._kycKey=e,this}get freezeKey(){return this._freezeKey}setFreezeKey(e){return this._requireNotFrozen(),this._freezeKey=e,this}get wipeKey(){return this._wipeKey}setWipeKey(e){return this._requireNotFrozen(),this._wipeKey=e,this}get supplyKey(){return this._supplyKey}setSupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}setsupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Sn?e:Sn.fromDate(e),this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Oe?e:Oe.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}get tokenMemo(){return this._tokenMemo}setTokenMemo(e){return this._requireNotFrozen(),this._tokenMemo=e,this}get feeScheduleKey(){return this._feeScheduleKey}setFeeScheduleKey(e){return this._requireNotFrozen(),this._feeScheduleKey=e,this}get pauseKey(){return this._pauseKey}setPauseKey(e){return this._requireNotFrozen(),this._pauseKey=e,this}clearTokenMemo(){return this._requireNotFrozen(),this._tokenMemo=null,this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._treasuryAccountId&&this._treasuryAccountId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.token.updateToken(t)}_getTransactionDataCase(){return"tokenUpdate"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,name:this.tokenName,symbol:this.tokenSymbol,treasury:null!=this._treasuryAccountId?this._treasuryAccountId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,kycKey:null!=this._kycKey?this._kycKey._toProtobufKey():null,freezeKey:null!=this._freezeKey?this._freezeKey._toProtobufKey():null,pauseKey:null!=this._pauseKey?this._pauseKey._toProtobufKey():null,wipeKey:null!=this._wipeKey?this._wipeKey._toProtobufKey():null,supplyKey:null!=this._supplyKey?this._supplyKey._toProtobufKey():null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,expiry:null!=this._expirationTime?this._expirationTime._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,memo:null!=this._tokenMemo?{value:this._tokenMemo}:null,feeScheduleKey:null!=this._feeScheduleKey?this._feeScheduleKey._toProtobufKey():null}}_getLogId(){return`TokenUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenUpdate",Fy._fromProtobuf);class vp extends wt{constructor(e={}){super(),this._tokenId=null,this._accountId=null,this._serials=[],this._amount=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId),null!=e.amount&&this.setAmount(e.amount),null!=e.serials&&this.setSerials(e.serials)}static _fromProtobuf(e,t,o,s,l){const h=l[0].tokenWipe;return wt._fromProtobufTransactions(new vp({tokenId:null!=h.token?It._fromProtobuf(h.token):void 0,accountId:null!=h.account?Oe._fromProtobuf(h.account):void 0,amount:null!=h.amount?h.amount:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?It.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Oe.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof We?e:We.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}get serials(){return this._serials}setSerials(e){return this._requireNotFrozen(),this._serials=e.map(t=>"number"==typeof t?We.fromNumber(t):t),this}_execute(e,t){return e.token.wipeTokenAccount(t)}_getTransactionDataCase(){return"tokenWipe"}_makeTransactionData(){return{amount:this._amount,token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null,serialNumbers:this.serials}}_getLogId(){return`TokenWipeTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("tokenWipe",vp._fromProtobuf);class Ip extends wt{constructor(e={}){super(),this._adminKey=null,this._submitKey=null,this._autoRenewAccountId=null,this._autoRenewPeriod=new xr(td),this._topicMemo=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.submitKey&&this.setSubmitKey(e.submitKey),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.topicMemo&&this.setTopicMemo(e.topicMemo)}static _fromProtobuf(e,t,o,s,l){const h=l[0].consensusCreateTopic;return wt._fromProtobufTransactions(new Ip({adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,submitKey:null!=h.submitKey?On._fromProtobufKey(h.submitKey):void 0,autoRenewAccountId:null!=h.autoRenewAccount?Oe._fromProtobuf(h.autoRenewAccount):void 0,autoRenewPeriod:null!=h.autoRenewPeriod&&null!=h.autoRenewPeriod.seconds?h.autoRenewPeriod.seconds:void 0,topicMemo:null!=h.memo?h.memo:void 0}),e,t,o,s,l)}get topicMemo(){return this._topicMemo}setTopicMemo(e){return this._requireNotFrozen(),this._topicMemo=e,this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get submitKey(){return this._submitKey}setSubmitKey(e){return this._requireNotFrozen(),this._submitKey=e,this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Oe?e:Oe.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}_validateChecksums(e){null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.consensus.createTopic(t)}_getTransactionDataCase(){return"consensusCreateTopic"}_makeTransactionData(){return{adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,submitKey:null!=this._submitKey?this._submitKey._toProtobufKey():null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,autoRenewPeriod:this._autoRenewPeriod._toProtobuf(),memo:this._topicMemo}}_getLogId(){return`TopicCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("consensusCreateTopic",Ip._fromProtobuf);class Cp extends wt{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId)}static _fromProtobuf(e,t,o,s,l){const h=l[0].consensusDeleteTopic;return wt._fromProtobufTransactions(new Cp({topicId:null!=h.topicID?ai._fromProtobuf(h.topicID):void 0}),e,t,o,s,l)}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?ai.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e)}_execute(e,t){return e.consensus.deleteTopic(t)}_getTransactionDataCase(){return"consensusDeleteTopic"}_makeTransactionData(){return{topicID:null!=this._topicId?this._topicId._toProtobuf():null}}_getLogId(){return`TopicDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("consensusDeleteTopic",Cp._fromProtobuf);class Tp{constructor(e){this.topicId=e.topicId,this.topicMemo=e.topicMemo,this.runningHash=e.runningHash,this.sequenceNumber=e.sequenceNumber,this.expirationTime=e.expirationTime,this.adminKey=e.adminKey,this.submitKey=e.submitKey,this.autoRenewPeriod=e.autoRenewPeriod,this.autoRenewAccountId=e.autoRenewAccountId,this.ledgerId=e.ledgerId,Object.freeze(this)}static _fromProtobuf(e){const t=e.topicInfo;return new Tp({topicId:ai._fromProtobuf(e.topicID),topicMemo:null!=t.memo?t.memo:"",runningHash:null!=t.runningHash?t.runningHash:new Uint8Array,sequenceNumber:null!=t.sequenceNumber?t.sequenceNumber instanceof We?t.sequenceNumber:We.fromValue(t.sequenceNumber):We.ZERO,expirationTime:null!=t.expirationTime?Sn._fromProtobuf(t.expirationTime):null,adminKey:null!=t.adminKey?On._fromProtobufKey(t.adminKey):null,submitKey:null!=t.submitKey?On._fromProtobufKey(t.submitKey):null,autoRenewPeriod:null!=t.autoRenewPeriod?new xr(t.autoRenewPeriod.seconds):null,autoRenewAccountId:null!=t.autoRenewAccount?Oe._fromProtobuf(t.autoRenewAccount):null,ledgerId:null!=t.ledgerId?Ur.fromBytes(t.ledgerId):null})}_toProtobuf(){return{topicID:this.topicId._toProtobuf(),topicInfo:{memo:this.topicMemo,runningHash:this.runningHash,sequenceNumber:this.sequenceNumber,expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,submitKey:null!=this.submitKey?this.submitKey._toProtobufKey():null,autoRenewPeriod:null!=this.autoRenewPeriod?this.autoRenewPeriod._toProtobuf():null,autoRenewAccount:null!=this.autoRenewAccountId?this.autoRenewAccountId._toProtobuf():null}}}static fromBytes(e){return Tp._fromProtobuf({topicInfo:Mt.proto.ConsensusTopicInfo.decode(e)})}toBytes(){return Mt.proto.ConsensusTopicInfo.encode(this._toProtobuf().topicInfo).finish()}}class Ly extends Zo{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId)}static _fromProtobuf(e){const t=e.consensusGetTopicInfo;return new Ly({topicId:null!=t.topicID?ai._fromProtobuf(t.topicID):void 0})}get topicId(){return this._topicId}setTopicId(e){return this._topicId="string"==typeof e?ai.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return Ge(function*(){let s=yield t().call(o,e);return s.toTinybars().greaterThan(25)?s:Nt.fromTinybars(25)})()}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e)}_execute(e,t){return e.consensus.getTopicInfo(t)}_mapResponseHeader(e){return e.consensusGetTopicInfo.header}_mapResponse(e,t,o){return Promise.resolve(Tp._fromProtobuf(e.consensusGetTopicInfo))}_onMakeRequest(e){return{consensusGetTopicInfo:{header:e,topicID:null!=this._topicId?this._topicId._toProtobuf():null}}}_getLogId(){return`TopicInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Ho.set("consensusGetTopicInfo",Ly._fromProtobuf);class kp extends wt{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId),this._message=null,null!=e.message&&this.setMessage(e.message),this._maxChunks=20,this._chunkSize=1024,null!=e.maxChunks&&this.setMaxChunks(e.maxChunks),null!=e.chunkSize&&this.setChunkSize(e.chunkSize),this._chunkInfo=null}static _fromProtobuf(e,t,o,s,l){const h=l[0].consensusSubmitMessage;return wt._fromProtobufTransactions(new kp({topicId:null!=h.topicID?ai._fromProtobuf(h.topicID):void 0,message:null!=h.message?h.message:void 0}),e,t,o,s,l)}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?ai.fromString(e):e.clone(),this}get message(){return this._message}setMessage(e){return this._requireNotFrozen(),e=qQ(e),this._message=e instanceof Uint8Array?e:iu(e),this}get maxChunks(){return this._maxChunks}setMaxChunks(e){return this._requireNotFrozen(),this._maxChunks=e,this}get chunkSize(){return this._chunkSize}setChunkSize(e){return this._chunkSize=e,this}freezeWith(e){if(super.freezeWith(e),null==this._message)return this;const t=Math.floor((this._message.length+(this._chunkSize-1))/this._chunkSize);if(t>this._maxChunks)throw new Error(`Message with size ${this._message.length} too long for ${this._maxChunks} chunks`);const o=this._getTransactionId()._toProtobuf();let s=this._getTransactionId();this._transactionIds.locked=!1,this._transactions.clear(),this._transactionIds.clear(),this._signedTransactions.clear();for(let l=0;lthis._chunkSize)throw new Error(`cannot schedule \`TopicMessageSubmitTransaction\` with message over ${this._chunkSize} bytes`);return super.schedule()}execute(e,t){var o=this;return Ge(function*(){return(yield o.executeAll(e,t))[0]})()}executeAll(e,t){var o=()=>super._isFrozen,s=()=>super.signWithOperator,l=()=>super.execute,u=this;return Ge(function*(){o().call(u)||u.freezeWith(e);const h=u._getTransactionId(),A=e.operatorAccountId;null!=A&&A.equals(h.accountId)&&(yield s().call(u,e));const y=[];let D=t;for(let U=0;Uthis._message.length&&(o=this._message.length),{topicID:null!=this._topicId?this._topicId._toProtobuf():null,message:this._message.slice(t,o),chunkInfo:this._chunkInfo}}return{topicID:null!=this._topicId?this._topicId._toProtobuf():null,message:this._message}}_getLogId(){return`TopicMessageSubmitTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("consensusSubmitMessage",kp._fromProtobuf);class Dp extends wt{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId),this._topicMemo=null,null!=e.topicMemo&&this.setTopicMemo(e.topicMemo),this._submitKey=null,null!=e.submitKey&&this.setSubmitKey(e.submitKey),this._adminKey=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),this._autoRenewAccountId=null,null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),this._autoRenewPeriod=null,null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),this._expirationTime=null,null!=e.expirationTime&&this.setExpirationTime(e.expirationTime)}static _fromProtobuf(e,t,o,s,l){const h=l[0].consensusUpdateTopic;return wt._fromProtobufTransactions(new Dp({topicId:null!=h.topicID?ai._fromProtobuf(h.topicID):void 0,adminKey:null!=h.adminKey?On._fromProtobufKey(h.adminKey):void 0,submitKey:null!=h.submitKey?On._fromProtobufKey(h.submitKey):void 0,autoRenewAccountId:null!=h.autoRenewAccount?Oe._fromProtobuf(h.autoRenewAccount):void 0,autoRenewPeriod:null!=h.autoRenewPeriod&&null!=h.autoRenewPeriod.seconds?h.autoRenewPeriod.seconds:void 0,topicMemo:null!=h.memo&&null!=h.memo.value?h.memo.value:void 0,expirationTime:null!=h.expirationTime?Sn._fromProtobuf(h.expirationTime):void 0}),e,t,o,s,l)}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Date?Sn.fromDate(e):e,this}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?ai.fromString(e):e.clone(),this}clearTopicId(){return this._requireNotFrozen(),this._topicId=null,this}get topicMemo(){return this._topicMemo}setTopicMemo(e){return this._requireNotFrozen(),this._topicMemo=e,this}clearTopicMemo(){return this._requireNotFrozen(),this._topicMemo=null,this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}clearAdminKey(){return this._requireNotFrozen(),this._adminKey=null,this}get submitKey(){return this._submitKey}setSubmitKey(e){return this._requireNotFrozen(),this._submitKey=e,this}clearSubmitKey(){return this._requireNotFrozen(),this._submitKey=null,this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Oe?e:Oe.fromString(e),this}clearAutoRenewAccountId(){return this._requireNotFrozen(),this._autoRenewAccountId=null,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof xr?e:new xr(e),this}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.consensus.updateTopic(t)}_getTransactionDataCase(){return"consensusUpdateTopic"}_makeTransactionData(){return{topicID:null!=this._topicId?this._topicId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,submitKey:null!=this._submitKey?this._submitKey._toProtobufKey():null,memo:null!=this._topicMemo?{value:this._topicMemo}:null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`TopicUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("consensusUpdateTopic",Dp._fromProtobuf);class CH extends Cs{constructor(){super(e=>It.fromString(e))}}class jy extends Cs{constructor(){super(e=>Oe.fromString(e))}static _fromProtobuf(e){const t=new jy;for(const o of null!=e.accountAmounts?e.accountAmounts:[]){const s=Oe._fromProtobuf(o.accountID);t._set(s,Nt.fromTinybars(o.amount))}return t}}class Ep{constructor(e){this.tokenId=e.tokenId instanceof It?e.tokenId:It.fromString(e.tokenId),this.senderAccountId=e.senderAccountId instanceof Oe?e.senderAccountId:Oe.fromString(e.senderAccountId),this.receiverAccountId=e.receiverAccountId instanceof Oe?e.receiverAccountId:Oe.fromString(e.receiverAccountId),this.serialNumber=We.fromValue(e.serialNumber),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e){const s=It._fromProtobuf(o.token);for(const l of null!=o.nftTransfers?o.nftTransfers:[])t.push(new Ep({tokenId:s,senderAccountId:Oe._fromProtobuf(l.senderAccountID),receiverAccountId:Oe._fromProtobuf(l.receiverAccountID),serialNumber:null!=l.serialNumber?l.serialNumber:We.ZERO,isApproved:1==l.isApproval}))}return t}_toProtobuf(){return{senderAccountID:this.senderAccountId._toProtobuf(),receiverAccountID:this.receiverAccountId._toProtobuf(),serialNumber:this.serialNumber,isApproval:this.isApproved}}}class Mp extends wt{constructor(e={}){super(),this._tokenTransfers=[],this._hbarTransfers=[],this._nftTransfers=[],this._defaultMaxTransactionFee=new Nt(1);for(const t of null!=e.tokenTransfers?e.tokenTransfers:[])this.addTokenTransfer(t.tokenId,t.accountId,t.amount);for(const t of null!=e.hbarTransfers?e.hbarTransfers:[])this.addHbarTransfer(t.accountId,t.amount);for(const t of null!=e.nftTransfers?e.nftTransfers:[])this.addNftTransfer(t.tokenId,t.serial,t.sender,t.recipient)}static _fromProtobuf(e,t,o,s,l){const h=l[0].cryptoTransfer,A=new Mp;return A._tokenTransfers=au._fromProtobuf(null!=h.tokenTransfers?h.tokenTransfers:[]),A._hbarTransfers=ou._fromProtobuf(null!=h.transfers&&null!=h.transfers.accountAmounts?h.transfers.accountAmounts:[]),A._nftTransfers=Ep._fromProtobuf(null!=h.tokenTransfers?h.tokenTransfers:[]),wt._fromProtobufTransactions(A,e,t,o,s,l)}get tokenTransfers(){const e=new R0;for(const t of this._tokenTransfers){let o=e.get(t.tokenId);null!=o?o._set(t.accountId,t.amount):(o=new dk,o._set(t.accountId,t.amount),e._set(t.tokenId,o))}return e}_addTokenTransfer(e,t,o,s){this._requireNotFrozen();const l=e instanceof It?e:It.fromString(e),u=t instanceof Oe?t:Oe.fromString(t),h=o instanceof We?o:We.fromNumber(o);for(const A of this._tokenTransfers)if(0===A.tokenId.compare(l)&&0===A.accountId.compare(u))return A.amount=A.amount.add(h),A.expectedDecimals=null,this;return this._tokenTransfers.push(new au({tokenId:e,accountId:t,expectedDecimals:null,amount:o,isApproved:s})),this}addTokenTransfer(e,t,o){return this._addTokenTransfer(e,t,o,!1)}addApprovedTokenTransfer(e,t,o){return this._addTokenTransfer(e,t,o,!0)}addTokenTransferWithDecimals(e,t,o,s){this._requireNotFrozen();const l=e instanceof It?e:It.fromString(e),u=t instanceof Oe?t:Oe.fromString(t),h=o instanceof We?o:We.fromNumber(o);let A=!1;for(const y of this._tokenTransfers)if(0===y.tokenId.compare(l)){if(null!=y.expectedDecimals&&y.expectedDecimals!==s)throw new Error("expected decimals mis-match");y.expectedDecimals=s,0===y.accountId.compare(u)&&(y.amount=y.amount.add(h),y.expectedDecimals=s,A=!0)}return A||this._tokenTransfers.push(new au({tokenId:e,accountId:t,expectedDecimals:s,amount:o,isApproved:!1})),this}get tokenIdDecimals(){const e=new CH;for(const t of this._tokenTransfers)e._set(t.tokenId,t.expectedDecimals);return e}get hbarTransfers(){const e=new jy;for(const t of this._hbarTransfers)e._set(t.accountId,t.amount);return e}_addHbarTransfer(e,t,o){this._requireNotFrozen();const s=e instanceof Oe?e.clone():Oe.fromString(e),l=t instanceof Nt?t:new Nt(t);for(const u of this._hbarTransfers)if(0===u.accountId.compare(s))return u.amount=Nt.fromTinybars(u.amount.toTinybars().add(l.toTinybars())),this;return this._hbarTransfers.push(new ou({accountId:s,amount:l,isApproved:o})),this}addHbarTransfer(e,t){return this._addHbarTransfer(e,t,!1)}addApprovedHbarTransfer(e,t){return this._addHbarTransfer(e,t,!0)}_validateChecksums(e){for(const t of this._hbarTransfers)t.accountId.validateChecksum(e);for(const t of this._tokenTransfers)t.tokenId.validateChecksum(e),t.accountId.validateChecksum(e);for(const t of this._nftTransfers)t.tokenId.validateChecksum(e),t.senderAccountId.validateChecksum(e),t.receiverAccountId.validateChecksum(e)}get nftTransfers(){const e=new F0;for(const t of this._nftTransfers){const o=e.get(t.tokenId),s={sender:t.senderAccountId,recipient:t.receiverAccountId,serial:t.serialNumber,isApproved:t.isApproved};null!=o?o.push(s):e._set(t.tokenId,[s])}return e}_addNftTransfer(e,t,o,s,l){let u,h,A;if(this._requireNotFrozen(),t instanceof qo)u=t,h="string"==typeof o?Oe.fromString(o):o,A="string"==typeof s?Oe.fromString(s):s;else if(t instanceof It)u=new qo(t,o),h="string"==typeof s?Oe.fromString(s):s,A="string"==typeof l?Oe.fromString(l):l;else try{u=qo.fromString(t),h="string"==typeof o?Oe.fromString(o):o,A="string"==typeof s?Oe.fromString(s):s}catch{const D=It.fromString(t);u=new qo(D,o),h="string"==typeof s?Oe.fromString(s):s,A="string"==typeof l?Oe.fromString(l):l}for(const y of this._nftTransfers)if(0===y.tokenId.compare(u.tokenId)&&0===y.serialNumber.compare(u.serial))return y.senderAccountId=h,y.receiverAccountId=A,this;return this._nftTransfers.push(new Ep({tokenId:u.tokenId,serialNumber:u.serial,senderAccountId:h,receiverAccountId:A,isApproved:e})),this}addNftTransfer(e,t,o,s){return this._addNftTransfer(!1,e,t,o,s)}addApprovedNftTransfer(e,t,o,s){return this._addNftTransfer(!0,e,t,o,s)}setHbarTransferApproval(e,t){const o="string"==typeof e?Oe.fromString(e):e;for(const s of this._hbarTransfers)0===s.accountId.compare(o)&&(s.isApproved=t);return this}setTokenTransferApproval(e,t,o){const s="string"==typeof e?It.fromString(e):e,l="string"==typeof t?Oe.fromString(t):t;for(const u of this._tokenTransfers)0===u.tokenId.compare(s)&&0===u.accountId.compare(l)&&(u.isApproved=o);return this}setNftTransferApproval(e,t){const o="string"==typeof e?qo.fromString(e):e;for(const s of this._nftTransfers)0===s.tokenId.compare(o.tokenId)&&0===s.serialNumber.compare(o.serial)&&(s.isApproved=t);return this}_execute(e,t){return e.crypto.cryptoTransfer(t)}_getTransactionDataCase(){return"cryptoTransfer"}_makeTransactionData(){const e=[];this._tokenTransfers.sort((s,l)=>{const u=s.tokenId.compare(l.tokenId);return 0!==u?u:s.accountId.compare(l.accountId)}),this._nftTransfers.sort((s,l)=>{const u=s.senderAccountId.compare(l.senderAccountId);if(0!=u)return u;const h=s.receiverAccountId.compare(l.receiverAccountId);return 0!=h?h:s.serialNumber.compare(l.serialNumber)});let t=0,o=0;for(;t0?e[e.length-1]:null,h=null!=u?u.tokenId:null;if(null!=u&&null!=h&&0===h.compare(s)){u.transfers.push(this._tokenTransfers[t++]);continue}if(null!=u&&null!=h&&0===h.compare(l)){u.nftTransfers.push(this._nftTransfers[o++]);continue}const A=s.compare(l);e.push(0===A?{tokenId:s,expectedDecimals:this._tokenTransfers[t].expectedDecimals,transfers:[this._tokenTransfers[t++]],nftTransfers:[this._nftTransfers[o++]]}:A<0?{tokenId:s,expectedDecimals:this._tokenTransfers[t].expectedDecimals,transfers:[this._tokenTransfers[t++]],nftTransfers:[]}:{tokenId:l,expectedDecimals:null,transfers:[],nftTransfers:[this._nftTransfers[o++]]})}else if(ts.accountId.compare(l.accountId)),{transfers:{accountAmounts:this._hbarTransfers.map(s=>({accountID:s.accountId._toProtobuf(),amount:s.amount.toTinybars(),isApproval:s.isApproved}))},tokenTransfers:e.map(s=>({token:s.tokenId._toProtobuf(),expectedDecimals:null!=s.expectedDecimals?{value:s.expectedDecimals}:null,transfers:s.transfers.map(l=>l._toProtobuf()),nftTransfers:s.nftTransfers.map(l=>l._toProtobuf())}))}}_getLogId(){return`TransferTransaction:${this._transactionIds.current.validStart.toString()}`}}Un.set("cryptoTransfer",Mp._fromProtobuf);class TH extends S1{constructor(e){super(),this._query=e,this._grpcDeadline=e._grpcDeadline,this._requestTimeout=e._requestTimeout,this._nodeAccountIds=e._nodeAccountIds.clone(),this._operator=e._operator,this._header=null}_getTransactionId(){return this._query._getTransactionId()}_getLogId(){return`CostQuery:${this._query._getLogId()}`}_beforeExecute(e){var t=this;return Ge(function*(){if(null==e)throw new Error("Cannot do CostQuery without Client");const o=null!=t._operator?t._operator:e._operator;if(null==o)throw new Error("`client` must have an `operator` or an explicit payment transaction must be provided");t._query._nodeAccountIds.isEmpty&&t._query._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute()),t._header={payment:yield B1(t._getLogId(),zr.generate(new Oe(0)),new Oe(0),o,new Nt(0)),responseType:Mt.proto.ResponseType.COST_ANSWER}})()}_makeRequestAsync(){return Promise.resolve(this._query._onMakeRequest(this._header))}_shouldRetry(e,t){return this._query._shouldRetry(e,t)}_mapStatusError(e,t){return this._query._mapStatusError(e,t)}_mapResponse(e,t,o){const s=this._query._mapResponseHeader(e).cost;return Promise.resolve(Nt.fromTinybars(s))}_execute(e,t){return this._query._execute(e,t)}_requestToBytes(e){return this._query._requestToBytes(e)}_responseToBytes(e){return this._query._responseToBytes(e)}}P1.push(n=>new TH(n));const kH=/^(\S+):(\d+)$/;class ad{constructor(e={}){if(null!=e.address){const t=kH.exec(e.address);if(null==t)throw new Error(`failed to parse address: ${e.address}`);this._address=t[1],this._port=null!=t[2]?parseInt(t[2]):null}else{if(null==e.host||null==e.port)throw new Error(`failed to create a managed node address: ${JSON.stringify(e)}`);this._address=e.host,this._port=e.port}Object.freeze(this)}static fromString(e){return new ad({address:e})}toInsecure(){let e=this.port;switch(this.port){case 50212:e=50211;break;case 443:e=5600}return new ad({host:this.address,port:e})}toSecure(){let e=this.port;switch(this.port){case 50211:e=50212;break;case 5600:e=443}return new ad({host:this.address,port:e})}get address(){return this._address}get port(){return this._port}isTransportSecurity(){return 50212==this._port||443==this._port}toString(){return null==this.port?this.address:`${this.address}:${this.port}`}}class Rk{constructor(e={}){if(null!=e.newNode)this._address="string"==typeof e.newNode.address?ad.fromString(e.newNode.address):e.newNode.address,this._cert=void 0,this._channel=null,this._channelInitFunction=e.newNode.channelInitFunction,this._lastUsed=Date.now(),this._readmitTime=Date.now(),this._useCount=0,this._badGrpcStatusCount=0,this._minBackoff=8e3,this._maxBackoff=36e5,this._currentBackoff=this._minBackoff;else{if(null==e.cloneNode)throw new Error(`failed to create ManagedNode: ${JSON.stringify(e)}`);this._address=e.cloneNode.address,this._cert=e.cloneNode.node._cert,this._channel=e.cloneNode.node._channel,this._channelInitFunction=e.cloneNode.node._channelInitFunction,this._currentBackoff=e.cloneNode.node._currentBackoff,this._lastUsed=e.cloneNode.node._lastUsed,this._readmitTime=e.cloneNode.node._readmitTime,this._useCount=e.cloneNode.node._useCount,this._badGrpcStatusCount=e.cloneNode.node._badGrpcStatusCount,this._minBackoff=e.cloneNode.node._minBackoff,this._maxBackoff=e.cloneNode.node._minBackoff}}getKey(){throw new Error("not implemented")}toInsecure(){throw new Error("not implemented")}toSecure(){throw new Error("not implemented")}setCert(e){return this}get address(){return this._address}get attempts(){return this._badGrpcStatusCount}get minBackoff(){return this._minBackoff}setMinBackoff(e){return this._currentBackoff<=e&&(this._currentBackoff=e),this._minBackoff=e,this}get maxBackoff(){return this._maxBackoff}setMaxBackoff(e){return this._currentBackoff<=e&&(this._currentBackoff=e),this._maxBackoff=e,this}getChannel(){return this._useCount++,this.__lastUsed=Date.now(),null!=this._channel||(this._channel=this._channelInitFunction(this.address.toString(),this._cert)),this._channel}isHealthy(){return this._readmitTime<=Date.now()}increaseBackoff(){this._currentBackoff=Math.min(2*this._currentBackoff,this._maxBackoff),this._readmitTime=Date.now()+this._currentBackoff}decreaseBackoff(){this._currentBackoff=Math.max(this._currentBackoff/2,this._minBackoff)}getRemainingTime(){return this._readmitTime-this._lastUsed}backoff(){return new Promise(e=>setTimeout(e,this.getRemainingTime()))}compare(e){let t=this.getRemainingTime()-e.getRemainingTime();return 0!=t||(t=this._currentBackoff-e._currentBackoff,0!=t)||(t=this._badGrpcStatusCount-e._badGrpcStatusCount,0!=t)||(t=this._useCount-e._useCount,0!=t)?t:this._lastUsed-e._lastUsed}close(){null!=this._channel&&this._channel.close(),this._channel=null}}const DH={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUenyqJ4UaFBbwokatcUqAwW3o3rswCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU4WhgPMjI5NTA2MDcyMjIxNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm5b1+oG9R0qt\nzM7UZnS5l/xxUNHIHq5+NAvtlviCpJL19jrW9+/UOy00Qqc6vS6tS1hS+dNJmpiZ\nFN0EHew4VDR7ACnL4LDJKmIHWjQ0iwvZo5kCpO0r9BtPN5FvaSxyo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUeciBviJtjeuue0GPf1xllNw7qvYwCgYIKoZIzj0EAwMDaAAwZQIw\nJeG0H2HdsI1VhOYmJmYlNeKCNgAk+LMorzPmsIInVBO2HK2IrKfpReWDS/m5j51V\nAjEAxKBxDezJDqAZHTkTXCg+X9Q9V6J6M5yDy5IS90aCWEo+W8C1Hc6hkn2/NrvT\nPhwK\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUUfjO8LyXBdzrzbAe1Yl+d34IDsIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAERwfj4ZtD/wRb\nf8h9NEMu2sQoLFK9Gc4SQ8o6j4ccLYGdgOoVoq4zzy4Jr7ZtCTuACfCfhp7wy8ra\n+6cugccaSd6AzOKRSVZvQvkUTFKIoAOKwp6IhlU48rmi80MT07eyo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUCGhfVMP72Y0G5XUksE3dPgFHrzkwCgYIKoZIzj0EAwMDZwAwZAIw\ncpX7irZWyuujWRYUs9kLNgB2YLQK+n8r1fH+tJg3+zkcZ2pzhGWmpUUZWOzsDqGC\nAjBUbhlmrTc4LrEBN0EMiRYzfPD2kBZxusLBDIg/aDYERCMcsFvF1T9SsuasF/B+\ncI8=\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUIo4L+7xe/mUmpKy4qOAQEIxz8UMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEoFgCjb1/7BUJ\nEXKIPJLlsOSp/39G8l92wOSr7h+Py7iwVwu68H2ykftMOq3tRwDRXZHz7ViqcIZ9\nlfMcS8sbRtVm9tBbNciVUqTLWX9nHr/c4PhKEi+LdgtSUr2+hHiWo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUMR89BHC3yKC4YwUgyBVQUGBCprQwCgYIKoZIzj0EAwMDZwAwZAIw\nUs2BdslcScIwcmxoB60K7/1BPfQI8ccDZIMosas6U2zhinTnRKik1T0i+uHhLl8e\nAjA5apAwSPTnP7j3Bo/FOCkfjTqOjwp2lUqzDJYKolKsHX2sy8hX9MkYiY46SaJ1\nP+0=\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUWpji03mJsR/16MP8BrOfpNz7aQMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE+KDMC99Q1rWi\n+FwlytGMS5qzTDytCvk+PzdONnDZ/weNSv4j3BXSo588IwhIxLtfcBlyo/+PmE1c\n5qGFXuMoZjGr22VpvogkRgPejD+Gawb4A2XHkMCD8NmO66uPw97po1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUN1qEI4eQ+WHavb9ypGV417NvhGowCgYIKoZIzj0EAwMDaAAwZQIw\nL0khkiDOiFRa3wx9l5JNjaSRePPc3ZaTaJQkPYeauMaLWEvmC/0e2/e9gPm5qJ8E\nAjEAgXQMko3vNB8VRN4XjyFJa8p/muZ/tLA15wPnb/boUmiZ+njDDSaiu8tIQrTB\ngHW6\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUEJ7AJvrqDUBNKbssGoJtww3v+WowCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjAwWhgPMjI5NTA2MDcyMjIyMDBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEfgJ8w9GUWM3y\nyusedZOFQrgXFVsdtRsMSHbqyVCN6+Wow6SIjy29GRMSP5R2aswupFgh6lXJRqnr\ntY+hpRumFKsmSo+5+l8DBcql4rzs4utESTehM+Cq9LYc4A1z0UIRo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUMCm3UqSbT01Zr23hLzCGnXbDa+MwCgYIKoZIzj0EAwMDZwAwZAIw\nFNcN7mKJo/bwpRT+y/KbYkCJsvljdbXzJOXXQ3e6J6R+0vLqcT25J/ry6pBZMUwR\nAjAswu29z8KJCSxnWwnPpHDmkRT15zG/xS+pAmx3oeQSqp6ZD7qpdJE8zzhbfe5x\nwAc=\n-----END CERTIFICATE-----\n"},EH={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUMkNeM6Sbk9ZFYmRWZmSgTQHHWyUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETLLoIMZjEhDP\nKLHS7bJT4OTYGgR/8mB65yfx3KqMLYFF+q2SpWkIrYgUQLVEUEibVSnLlxRUzH7R\nszcKynpTwh0W0yfWanZKQg+RWoKkEYlu2GvkUtJb8cRVM9NLmJUeo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUSrIepwFx8gZ8/G+WGaxs6GgkMtQwCgYIKoZIzj0EAwMDaQAwZgIx\nAJxC0fjB1OrF9vkCKsfnPS3Z+1hscrZhEDG38NxdLEAfPQ5VmyrSBgJy11FBp8yB\n0QIxAKzbge3Lf7iBMwYwm+2M/GiVgmHNMLdtrYuerWpdbYOHgRNAkyt57JoThn0u\nTzkd5Q==\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUGLriiLPacglp6U+BtJcF9TI7xEUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEXhR9cb6mH9AE\nGNSGk3OkxN1C/JW49ddYZ/XWD4InjS8D1kXmB1Y39v1mF0L1loG6lDT8Zp46zrj7\n5zMONXZeD2b0mx5hHhtllPTpJ10Tlt9FDoyFbKwPRQ/SAPNADfuzo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUCaKtx8RZ1XJO9rmZMbIcFJZkcv4wCgYIKoZIzj0EAwMDaAAwZQIx\nAPhDW0VrNSmq8hODdhIVV4GyvpYhp3Fksg+sZr3DmUatwn+ptj+X+9IzgPl9QYE3\nkAIwcy2ixgNkjC/DYVmgT4MpUnLneLK0gA23Vj2QwACaTH99H/ybqUH7srj0POB9\n5wvV\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUEMduome38hvAuIKoGjg/tHatQZMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEl1olzP1L4WgX\nd7aujOXmTQZt3tEOGzkMa3S6qJwISLBI7Tb9KaW8zYIe9xWBVAwphCbD0wn9xpPV\nwMr4uTn+JocugYBbe2YoUGzWTkxWnOEKXbh/nQJCe3XE/C0FY8fAo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQULfw7LVtTiUDVIvZwhhWW0soQtSQwCgYIKoZIzj0EAwMDaQAwZgIx\nAID5v3Lo2zlnpFzTdJFqBpw6fV+vmpI+JBj61f264J/uHMbELiu2dwxhwWaMElX7\nwQIxAJxccFr7Bf1KjaMyT2dq75zQzFuKDMj9x92yAqM2Gas/Yay+Ccpm8FBn7BFl\nke1Qwg==\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUcCg/gZGxk/UjYkhW1jg4Zki+jfwwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU5WhgPMjI5NTA2MDcyMjIyNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEOSsXBZicyrxy\ntHJHKh04Mvu6SKM49IC7rAXw5CjlOod5OTeHg0fa5vVoBME4mlWP+LsMMqf8welC\n20b4wMwUC1Hnd66v8crX8L1wvZ9EmKLTvhTd65bS5zloMiSbpdF2o1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUgMMwqaGuUT6JCH0gsbqullaW6/QwCgYIKoZIzj0EAwMDaAAwZQIx\nAMggJ1eMmT7C14z7wHCsOdDOgmzg733+a5dsuAcxknoz/sQLN8wqy1JxShWgEIA/\nxwIweTDAX/4JZnr3mlSC57lYXbHk/c319VfN9Ybxg0FaDXa8tOqg7Ml6Uu3IGujQ\na3eY\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUXADwhiD5acpA66GPoXuAevBfZBIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU5WhgPMjI5NTA2MDcyMjIyNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEBgLhLiGz8qWu\n50vzxSyQkrmhpxuHBJhpGzA0WaUJdAUlaUOL1753ZxxA08wUmcozILNEnMaQ+ROn\n+fuGctv90ZcrSekODjxjbKH2ntVLP8xwkBRCTJ0WRBNenxxBD438o1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUhYOOD/z3ty9O5GuSTXnyujIqBRgwCgYIKoZIzj0EAwMDaQAwZgIx\nAMxbZ4gvkXaORauQFUPRYwOJrihWIA+3ttGDua//YfEbshytQ8b4L65W/1Xs8eOd\nDwIxAImwTzRam8tScdOzmuGgPcML2lkETMpMA2rZYVyEL/VNktIxvB2oE+4M0v5l\nr8IbTA==\n-----END CERTIFICATE-----\n"},MH={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUZWoT9TlgbZy+syLbqZhO5++1cVgwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8NhDGK/dgWvD\nRHEJ8af7CBDdhvujH5XIrLen33GTLY8DbJwJW2jdsLGx3+DRVVmeNQZxCbcGj0e2\nIyypkG6s0mtnmeymD8mI3JU8m1aZiuIptZSH3Bw1BNn2hKU4x42co1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUbYGliiNtMkGaroQxXWCl+kYHDBwwCgYIKoZIzj0EAwMDZwAwZAIw\nImTOEYu0y73Ggt4NAjFFsN2sV7CsEL3NoJqJ7MZ6U+b3Ax1hnc1eE0oei6xH4VNF\nAjBB4iZNvAn6Esiu4k+JPlYuMesplgMv33fU5GsfvLIovN8pOJDe0c+CUmsnfGbP\nOsQ=\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUEGWU0F4aKffY+le55ahQaScDYDwwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEqW6TqxMmjL3h\n9AVBgfVaFRZlXUcyWa+QYhzxr8sksgJqfDbmGtdaHIdiL1qCPuC4v4G3qrAbXZRm\nTYNo5Lz0X2ic5pES6DbacdjOgHH7TAY4BVKkuVrydln2jjhh7SmBo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUcBlY5a1rV0H1iQuJMwWxrTEWQ6MwCgYIKoZIzj0EAwMDZwAwZAIw\nR+mY9B2U26yD44s03hjz4TlpkyXbVfmgL3Elqo3lrWDJtvT4zpjGjxg3Q1P3SpZQ\nAjAy9DRVrZPzq8iq5Ir7B8XgLQH5QL7SQ3tUL1HzXJYOukvn9Ofr+QADhpb0oJLB\nKug=\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUbxzfD3ihIK5snumqqKtqtcBPSSQwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWoAjWmW7vpUr\nU69wRbK9Firons4kRoin6N8lMjCD+xzsrsT6/wycpzC0F8fxfIvOYSMWRtinhOKl\nZAxp60OWYP87iH7RqWBAnHIJZj/znKTGd+8Sqp/RVQmButFHg/+Go1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUTMtwuDzI4Hun7SPp2Nb3scjUUXkwCgYIKoZIzj0EAwMDZwAwZAIw\nHKAgaX39Lgc+4/xHXzZR9mi2p3pf6CDO85Xm56UR/t48HnBkRorR3TFCBXACeIIs\nAjBtXglpDnRf6M+nVBlxLdwCQXiwr6vQJ9+dUo+suNkZ1JBmtHypyIqkG2yT4z9C\nLcs=\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUPwXdJvpCJYO9lm6uQN3S1aBi3PswCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ4WhgPMjI5NTA2MDcyMjQyNDhaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8PwBQ0ywu+0t\neIYbaiKwzGEScQMOYFYAMw49++6bGRiH/XZjsypqlJWy3F/mB3+HNVZsqgB61Jpj\n2p98Afkl57MYWhWM29t/x5qAQ8LhKGu2k+BOnCcvHDU2pR+fmFSOo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUgI4r3/iwzFN2wh76y/4XDBk7wgkwCgYIKoZIzj0EAwMDaQAwZgIx\nANAjwHdTWYMCCjrtb2NWzDpsKjf3m6ZcaxbEcM1ta/Zji/4x0+VRZa917CkfaEsr\nLAIxAK/erPvIXRU9eNaK/TAQqppSRaF35G6iNnYjQZzfjTU2DczhT4oCjKzGoCHT\nkI1zOg==\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUXUGzJj13Ck2Cp0BKauLOdzgCPwIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ4WhgPMjI5NTA2MDcyMjQyNDhaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8Ee64Tbu53i/\nKsuLOJG3GQ4e9gQ+9BtEy7U8kfFzRHh6Ejn7LOW38ZdKX1HP4zXuUusjNvytqDvr\n7eclitqnegcEOkIeFK3wQwBoNILuq+r4LRVi19V+AIcl5w3qkJvIo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQU2tbfu7hd7USgbS2WsG/6BduKEAMwCgYIKoZIzj0EAwMDaAAwZQIw\nRw/BOLoScmU7P/1JnNPsGarmnvcuJrokAv1wk6j8s5LGuQHReX+d+O3RPLggwcAY\nAjEAjoZnt9simul4cVcVy4G/0f39atanUva17gyzlYXEYx7B6UloxLeEcZhlbBf8\nGjRf\n-----END CERTIFICATE-----\n","0.0.8":"","0.0.9":"","0.0.10":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUNauEDBCmP9igXLWtRpzkQqIGo/wwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDcxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ5WhgPMjI5NTA2MDcyMjQyNDlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA3MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEjbkoJBshQXUy\nqm5K8ldpTDR94Wk8iEM7QwHfceIxK5pPgaVGRkoJyVLSK5LMH4jyaIHUrtA0lIBQ\no0MsYkq7TOOm7+vo1Yrd8EMbu5StMb3gsXUrj7E/SBKIxULak6hCo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUyKHMzIBPRV/mrgG7tIjzOiw2xbUwCgYIKoZIzj0EAwMDaAAwZQIx\nANsigVtLgTdKWBPVJPstWA0H8yihf0/dmM3GO4qp5keGTWz/O3tnom4iDB6eSrcA\njwIwU82Dh+Wxl3kAD3YJH5VhlfHTm1rPlJETBHZgvPBOYqippao6+WZFEpn2/IDC\nNTjn\n-----END CERTIFICATE-----\n","0.0.11":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUWtnJm2kswnXYu7/S5BnnTQiDRcUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDgxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjUwWhgPMjI5NTA2MDcyMjQyNTBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA4MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEjY9Rl+s00xFV\ntdTpAixLR4kJIGLfSLOdm+ofU/KuKMRSz5x1ORhIicppKZK24U5WLGXQU1fKLvxX\nOmqwqL+6oAONmiHszqVdhWne4QPUba0yw7rf1/OI+IFF1HRK3shQo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUb/htoTodbq5hjP5RNlQ0rkKwWB0wCgYIKoZIzj0EAwMDZwAwZAIw\nbO+9yArr21XKXjYHPadEAYINDxgXEC3W8e3X6MJsHCIZITddWWOyXRNFhz504vN0\nAjB8aBuhrKcg1b4CrQDZQcosyVPUGIZKkXdQFfbVdivKrGZvqLS+GdPLd3v2MmHY\norA=\n-----END CERTIFICATE-----\n","0.0.12":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUHBsegV0bKtwpHRoOnnhbK7CTHxMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDkxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjUwWhgPMjI5NTA2MDcyMjQyNTBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA5MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEK+ZAs/00RXaj\nbuQJJy4zwr/YTj9h5V+vbY7sq9Z1RByEwTRRQOI3OuzzMq1EWKkVJKF/QF5b4yda\nx6W9O/NT4EjBXH5XR5X1V6h7aT01YBqsxgMxuUP7kw9K+fW4k6Zao1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUKbecoYirLjf2O2oPkoggEE2P7FcwCgYIKoZIzj0EAwMDaQAwZgIx\nAP67wsVOkeFo/9QRo+PnZhzEvjOZ/+IUoUhimdljcVwn79tzNP+obf7VW3Oq1wH7\n4wIxAL65+WmMTMoI2cN7TCiL7G/W2ChDsASeHfaP/4e4ZViNONWotlY9i9aS3Kwt\nLTea1Q==\n-----END CERTIFICATE-----\n","0.0.13":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUBNxMZRKru9jzFA8zsOAI4xkMFCMwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEwMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MFoYDzIyOTUwNjA3MjI0MjUwWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTAxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAShUi9sglwb\n0U8QUrGOXJuHRXA9HP8RypkgNBwNRs1YcmPLcuwK70unWlkB81M44IQ7z/dG/0cW\nhfFdRI5x4jAeiUFivmWmMLT6lJMPxJ0BkWTGVFVwI3SKcgSvHP9pNS2jVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSqIMCDzCKKwJJLCXhu9YJYPw6lsDAKBggqhkjOPQQDAwNnADBk\nAjBl0bJG2A3443ybvrkKjWu8do6nDSR08/M49+19QfA1aDw0nb2sdCOE+xNitpQ9\n7ngCMGuQHmnKA2EyOIVpNl2EtRoG+vdmLJQaoukhmCWjkGrQHkai473tGa9cRZ/8\n+RZFzw==\n-----END CERTIFICATE-----\n","0.0.14":"-----BEGIN CERTIFICATE-----\nMIICoTCCAiegAwIBAgIUJcQrEmPlIh0KWwiC2X6lZ/OdNs8wCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDExMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTExHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASxRizKJSbB\nHmG2amvTHLCyExJngCh42agaFkv5Ab9mZYbqZPe0nUn/8RlVAvEiRNggCMYXC6MU\ne4J6D1aeLhYaa0UY8Fmxd20NUjAOWhJgUXds4ILMMVG+pevofeC8AsujVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBS2Ic+LU/6Wssns4Yyf3N6E666xDzAKBggqhkjOPQQDAwNoADBl\nAjAH0JMX48GD6vThA6FUsVnJmBID376PRZgxhuZvn9C0HawvNjZVQTkpzpYCwmia\ndO4CMQCotakNxyiOxu/BbnPx6ld5+dqVCugsfqClhUhy8ROpNHfKxp3rW7HopowT\nWiMlIyI=\n-----END CERTIFICATE-----\n","0.0.15":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUSFFNFv1iquxd5txlWA3PlkNju2EwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEyMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTIxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQus3nAPZkb\nja4Efo7iD4s8NLsFwEwQXQBgBGIJwtA2JRgLyXeWpuu125ib6qJzT8CHvQZhel3b\ncwYWi4f2JpabMDepHELLxwZ9fILnAQ8GiHlzhrVq2NI15DI84dXVe4OjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSEO/JFC5/fDcT2gtipDMYMMTd96DAKBggqhkjOPQQDAwNnADBk\nAjBalAU47XQL4ziHD8lj21pcp3+R5FKzn96HclMT/vraknCT1Sl+vCf6EYsqmi6Z\n+RwCMDpxL6P6OMqyE+HzAeYQ4Fa7MYEQfZGMjka4zxetBLvIpwUCT4EAO8gv9GoU\nwCBUzQ==\n-----END CERTIFICATE-----\n","0.0.16":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUdnkil4P+VthVMnqygVwGKLt7VfAwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEzMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTMxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARUdz9ig/iA\nhEAth2YinHKY6WM63BAxUVItzgk65l1T4wTzwoK4XEwclY5vIeFmZy2e0s95lWgq\nSI68VS9gmJ3xp8Q9wOel/bvuF2tvNZmF393TeoNQQVHrQM1yJAx+nPyjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBTBFdNwHKSRDo6CxfA1aglY0N8joTAKBggqhkjOPQQDAwNnADBk\nAjAqPIel58Rcl2kDxZxJPD9mK9xW4TU+d2NuP3n140TQ6nPlw1OwCPI7a4i3wfEe\n08ICMBbrpNRdFZcvy76KoLPfTPvqbtWWaR/0tLZg4Rjj3x7SYgUg3vrVDmodHGkb\n4T2Raw==\n-----END CERTIFICATE-----\n","0.0.17":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUDg+G4Ep+KEmIo+nCOY8DjFX60swwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE0MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MloYDzIyOTUwNjA3MjI0MjUyWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTQxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASCQRL5xUUh\n1bsTXRPAf/qVFWEOxsJTiMlF3+UJ4MajWE5zmc2QNIzqj7NE24z3fNxgjViNK/8+\noBNQeqXfyJ/4etNMzTyG4JTsvWRAQ3aR1J4WDbfwpcgw6AIOKq9OLP6jVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQB9V2fygf48zyyVL3bnAxCLDUV9zAKBggqhkjOPQQDAwNnADBk\nAjBonlThjjvi3fg7ODQcatPHBkp8Yon/p1ukm3YzYA3kitqroXU7BkmwRae2fbqD\nTTICMHI+fAy+xWGwXAFNcvNTop11IIoszcgJJY+1Mc2Q/USk3pP6iezta+rvnaWu\n7JySHg==\n-----END CERTIFICATE-----\n","0.0.18":"-----BEGIN CERTIFICATE-----\nMIICojCCAiegAwIBAgIUBvI2Vq6O8yXNzbQlj6uQOdpd1lIwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE1MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MloYDzIyOTUwNjA3MjI0MjUyWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTUxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAR+jFDSzCdn\nmMQpgz/vrmD/xioMioumUmyLAkB+voTNsMAOtiaDVbvJty3b4SJETv5tuZyaF5Gb\nQAYuKsP7X8siCCVLZC9i9nCg46NHtuQkEmw1pzUUDmYFDfSV2tWedNqjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSqvCmoaVEp2d9WPctby+ooPMGmvTAKBggqhkjOPQQDAwNpADBm\nAjEA9fQ2OFZa7fAQGGYydfVaUF0ObxKj3T+hyl0jiCKLe+hyxJSrXCFS2BM71UiG\nZMVxAjEAmCzESBzTVvl4Uv3TyActGTijTCqTNpN3gJmQbZYjKVtqf8Wxj9WeH0pM\nE8BlA/qE\n-----END CERTIFICATE-----\n","0.0.19":"-----BEGIN CERTIFICATE-----\nMIICojCCAiegAwIBAgIUZBwp7UPLJkDgngbUIx5xjbAn+7YwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE2MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1M1oYDzIyOTUwNjA3MjI0MjUzWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTYxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASCVYu2uF3T\nkCkyRP0FfXVyyTA1z8DFqCKGrcODgGJuVAk59H6u8FIRsNipkb3BXFI0xGccok5X\nT+t5bMaGDHYJ4fjU78UtPNmankQ5HoiMRJpy7Vn8mzizUzUqGpnhu6GjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQzE6RGn4YlIbdrl0niKWTtJzfXoTAKBggqhkjOPQQDAwNpADBm\nAjEAobnXnwlNGNWoHscbl/ytUBSyjC7V11sLYJqtORSRX3k2+bFGsg4ltmOVjTdd\nlXatAjEA/Ja3jufmdruqfLa6qigXuYI00YaI96sOwNhdHlnksYfqF41nDe4BsSW6\neQ6N5M9d\n-----END CERTIFICATE-----\n","0.0.20":"-----BEGIN CERTIFICATE-----\nMIICoTCCAiegAwIBAgIUE1ZRB5n+Yby+Mwgb2xAcVfTZ53kwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE3MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1M1oYDzIyOTUwNjA3MjI0MjUzWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTcxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAR0OfTmHjxT\nkBiU3GMa/bTvlTswCDAuFQGIIpMWHaf6V4ighzmn20jCg0AVFStb2q7YLRr4HUx8\nToMzsd7/yjl74BwJgfZnL75T/JInwyMgOBiCTXEf6qVDvhNzL4QJuVujVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQFKRUUmdFcDFQzBN9XqMvLgPd7NzAKBggqhkjOPQQDAwNoADBl\nAjEA5MUUXSehY3KVIv/2LMgrqo1kPiV39fwYuLSnsMJ67wK8yN1NAkkycg6q2K6g\nrBIvAjB3J3a40TINOZTYG+eQs+MSWyfANJLRuJTEOorXzMWM6+05+JYhPnLA8hke\nCRfzmSw=\n-----END CERTIFICATE-----\n"};class xp extends Rk{constructor(e={}){if(super(e),null!=e.newNode)this._accountId=e.newNode.accountId,this._nodeAddress=null;else{if(null==e.cloneNode)throw new Error(`failed to create node: ${JSON.stringify(e)}`);this._accountId=e.cloneNode.node._accountId,this._nodeAddress=e.cloneNode.node._nodeAddress}}getKey(){return this._accountId.toString()}toInsecure(){return new xp({cloneNode:{node:this,address:this._address.toInsecure()}})}toSecure(){return new xp({cloneNode:{node:this,address:this._address.toSecure()}})}setCert(e){switch(e.toString()){case"previewnet":this._cert=DH[this._accountId.toString()];break;case"testnet":this._cert=EH[this._accountId.toString()];break;case"mainnet":this._cert=MH[this._accountId.toString()]}return this}get accountId(){return this._accountId}get nodeAddress(){return this._nodeAddress}setNodeAddress(e){return this._nodeAddress=e,this}}const xH=Qc._fromProtobuf(Mt.proto.NodeAddressBook.decode(Ln("0ad0070a0e33352e3233312e3230382e31343810a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340acf070a0d332e3231312e3234382e31373210a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340ace070a0c34302e3132312e36342e343810a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340ad1070a0d33352e3139392e31352e31373710a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad1070a0d332e3133332e3231332e31343610a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad0070a0c34302e37302e31312e32303210a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad2070a0e33352e3232352e3230312e31393510a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad1070a0d35322e31352e3130352e31333010a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad1070a0d3130342e34332e3234382e363310a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad2070a0e33352e3234372e3130392e31333510a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330acf070a0b35342e3234312e33382e3110a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330acf070a0b31332e38382e32322e343710a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330ad0070a0c33352e3233352e36352e353110a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad1070a0d35342e3137372e35312e31323710a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad0070a0c31332e36342e3137302e343010a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad1070a0d33342e3130362e3234372e363510a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad0070a0c33352e38332e38392e31373110a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad1070a0d31332e37382e3233322e31393210a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad0070a0c33342e3132352e32332e343910a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a603634653039383631356266343035663765643561343031333434366238396334383863666364366262323561346136373664633737656561313164333364373032363832663061363961383033306538633537373764306534323230333739390acf070a0b35302e31382e31372e393310a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a603634653039383631356266343035663765643561343031333434366238396334383863666364366262323561346136373664633737656561313164333364373032363832663061363961383033306538633537373764306534323230333739390ad1070a0d32302e3135302e3133362e383910a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a60363465303938363135626634303566376564356134303133343436623839633438386366636436626232356134613637366463373765656131316433336437303236383266306136396138303330653863353737376430653432323033373939"))),OH=Qc._fromProtobuf(Mt.proto.NodeAddressBook.decode(Ln("0a7f0a0c33342e39342e3130362e363110a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a80010a0d35302e31382e3133322e32313110a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a81010a0e3133382e39312e3134322e32313910a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a82010a0d33352e3233372e3131392e353510a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a7f0a0a332e3231322e362e313310a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a82010a0d35322e3136382e37362e32343110a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a82010a0d33352e3234352e32372e31393310a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a80010a0b35322e32302e31382e383610a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a81010a0c34302e37392e38332e31323410a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a82010a0d33342e38332e3131322e31313610a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a81010a0c35342e37302e3139322e333310a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a81010a0c35322e3138332e34352e363510a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a80010a0b33342e39342e3136302e3410a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a83010a0e35342e3137362e3139392e31303910a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a82010a0d31332e36342e3138312e31333610a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a83010a0e33342e3130362e3130322e32313810a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a82010a0d33352e3135352e34392e31343710a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a81010a0c31332e37382e3233382e333210a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a83010a0e33342e3133332e3139372e32333010a388031a05302e302e392806320218093a603639383332613733613336303265386431666265356164353864316332363337613162363732643731656538376166313064623634386562393161666232323832353362316634376535376433643461343466663534376233333934616132320a82010a0d35322e31342e3235322e32303710a388031a05302e302e392806320218093a603639383332613733613336303265386431666265356164353864316332363337613162363732643731656538376166313064623634386562393161666232323832353362316634376535376433643461343466663534376233333934616132320a82010a0d35322e3136352e31372e32333110a388031a05302e302e392806320218093a60363938333261373361333630326538643166626535616435386431633236333761316236373264373165653837616631306462363438656239316166623232383235336231663437653537643364346134346666353437623333393461613232"))),SH=Qc._fromProtobuf(Mt.proto.NodeAddressBook.decode(Ln("0ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633435363165336332373863643635306538306334313363613434343233633163336331336366313437356636663639373664353937616534333262343961623432303836623739623834313332363035346238623364636635376438666364373962666330353831383363613234636434633163626335373465643131313765326635623762336336336365376230366439623465666366373337353633376234316665366635336338313162396465363134336633613532393537636466393536373735313230623333373033666635373632313430376162393537356263326433356330643434663039383366633165663633613466663532303966303730633932616631303632393536303163393662636564303634656331393031393730313963363831316334633864643830636234663461633731663961643736653761633839343536666266346630313166393061626432643930353336653832333436353166366265663932376533643564386237626634353930353039383362656361336162656632613964393761663334353737326137373430653936393932373562303138656130646632383661646436636539323365663930386662653736326137356632313131363836326462343464336463613164343462346432653864633130363663353030366262356137643935346164323535643462363033323733343735653531316165623438356430363961303637633061623563323435333863393333633036623561366165666139343030356332393135323133653463636461653663393432663632373266396464353238326436623839306631663230656664323339396364363734393234666135373034366163366461333265373339353161373331313365393166633262376666323965343835316238336666333966383362613965633666303863656664626236636262626666616266646661613931643933306637323030646134383133376333393463626431336537303165636463323631366664323162616436383161613466303031303230333031303030312804320218073a603665396138616263646364653665313134396133656265313766643538643839303538333961383664623732623036613365613230616131373666383638623235343838353261653432336437613963366237636666396537313436323961320ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613163343037373135343330336363373263346662373639326333663934323531626465633132333961316637613839373261626539316133353332336662656361363235613766666165363430366338353564633261663231313039303062306466306536653664623736333634646661316666653835656461353637393336653239383562383536333461333261613532613635393964643663333062653166376136633562386635656563616632363231643861343539363832666364326462616164313536316431316633336663636237663535303061633536386431363564626561616365333238366432383934663634313239643738316436633732666437643539396339653164336166346161343333633233623931306661653463343834313634316636313532366164373837656265613533393837343136376539643361373363633066623135363432396431356563373633613664306630363131356137396239616637383364373762393864383330393661613437343366393734303864396531346263663464646666653435393137363838343762343063623864613763613337353235366432623933356430393566653235326661653831666636653337663834643761393064376535373061346638656633633764373636656564613437326630393230313939303135613839303832353961383733633534353466636262646361643265353238646538353435356234303833633764633461646335613938386530636464666463313539643564373132616264353434616137336563303239303839383134633938613434663236666330363434363539633138336533313834616132373266386431646330626661336530613536303438346362303535626134646262356363333339656338306264313164363432646333613730326538633730336162323139333038346439626436336630646665313261343333633235373665616637383163666164383637656637306264613631373638623262656631346635306336633362386230393666303230333031303030312805320218083a606464336233653763643361323537643832373665343635333533363162303138623730303931663438363635653832303031306538316563303539326236396264346265316662643765636435303964303730313364643034313238343266640ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030623263636163363561643066633736343561383137626661626334383761643765343133313165376133313938623337666238343264383463333935623366363764366264383438663130633666303363323930653866376461613864303031613834343164633335326131393136306133313933653638623832656466313961653637363933613961333364346362383765373839613130373037313535313565613737326361613862383661353639623931633534353038333564396333353466306461636563393766653737303931623435623134373639386237663836303134323264636432323631653932386465346461633963343264636261666466393663303732333362613330323730373666333763393639653865643330623662356438663530333462653764393263353936663862653836316535316663633361323432626639643862653965326139653865306631353565626366663233656666613763643537633130353432383131643830373736633935383535323666646230656161333465653139353564353131313933393066653837336534633034646564643239313635383834623938623436333038373838616537666334643461613461386663396263323637346261333231343933623632343435356164343130633164653731626339356431643931666130663230313431386137393565333039656166323937623639396266323763396661323736336364353963656230323165313662383230306331303630663238313766643833636663373637313833343839343631653335393932393162333830643665393339626161346231393233326136613237326464653635316638303436666463333464623237366137373764366662326265633332353562326363323434623461663536366231303566333063363530366464616530656233646564646366393437626362396336306530303039383466336234613863366334656434626639306263313933326237663934646333616536623336303030386562393032303430663962303230333031303030312802320218053a603561383634313561303861306138323566336232656237353031303135353230326533313234336665343161303333333834653738633138633131653565386632303964343933623062326664343565303662333734663262363964663564370ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613365333762373663366364356636363232643639323434343464313263363737633339356632623539303266336262393862386138623530353561373037373036636130323863643735303630613264383730326432643862303439343762646366653061386331343161613238343462316530366536363139303031326538623633323661623066613331373937336263376362346432393439663231303861613034633462306339316261613537323866356235363232656337356162663537386131663762343165646532613637656264363963313865353831666466396336303230616330646539636132633331663063363436393030333331316662623563653764623439633738376531613764323761613432356565376238346461376536363933396639633830643065383266636535356530326466633862356337383431386132366161343336353036393837313962616663656366306264343930303061646463666134303537303862646265666262313937343964323264616230303765343464343565613233623130366638383334633135326532353036326434636632346666323533353663376562333732393130353339336662343962616239303461303266306630626234313763643931396433353238393031323865366262666634666163396639306465313138613937346632613664643031653033326137396231373866363066613166636262643032623537303466623436323935633135313930383136333733656464363633356338353639373866316239353033663166373362346230626538616261326564316665656164353939353362663832656664653933613334373161626435356364613362613861363733666262333739393734396662303036643030336630653633663636356333343631643261376232396463386232303462613539613635363638613436616532383738663030643166393439306466396532383066656266343331356561303465616135363861336139666434386336326336336236656364613639303230333031303030312803320218063a606434363430333938303337393230373965636364356134343331316361306463323262353065633839356235366535336431326232396637326463366462613363616665326535623831303466626461303338616635623434376430666231320ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393361323135636334613761373232636165396331336162643633366466393963636565633661663964623436623639666135313637313665663530636532343930613938316530396162303139636132636234363831316235623631396431626431643565653666343661343263373737636264656536343261313438346563646635646464333732393634326333386336643433613838353838373434373566353832343434333636346330346466656439623839303435666230383565323563336566636234383431373333656666376335323963313339653639333530633263643739623263386431393637396137313265346538636166643332363735343162383332623365313061303132353564656636396466316539643362386438656166303331316465363764356531326232366464303164626264396433653432643335643964653237313330326530663166363964383763626337616361396538383637653964343238643363616230363636656234393064356662616233306266663366373835643033663230373261343362623962356535343635366135393263623631656166643561356566323834633763616563363666376634373332356363306434633164323766363631643861373438636135303731633036656631333464666639366634303836363838333636643436386132343738303031376530623536616261376661623433623362376330623737393036666165353438326633323831316332393265366231343435346531346238393438303161383661303363633437373934646430643734353237613732653432346564336166613034383939656362396136336632613961653732626537666139383961646630643635613332633835316439383031666334313034386466333335363466633762333137303765633866623830313430666537623761316661313230626131636236363033323463656666623462636332643962623764653063663534633831396632646433626365616465633963323566356531396463396231303230333031303030312806320218093a603365303261363732306334343636353965383633303564353562666565383230623335653635306665636163633535333039373435356532633465303332636339646564313662316262343464336235393262626163623663326266663165360ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130303930323539663465336439663066333934323536353438653963373330386231306237333430336363393039346439376164313531623737303631373062393737326365623634643636326563656639303161386437643135643331396135396338623731303731616363643839356237633933363130646336393736663637633465313732396261383337336162376535326133663363386632363534393164646536396436653039393934373065373434353938313133316264393663333665363836353230336662326562643564353065616461666237323633393664656331643931373438393862346539626530346337346433303466656164643963626433323334633362376633333036633939636230633333396663323539363962343164353861326237636663313833326532323664383163313936333939336532323535613038376431363938633033643432313062643634353830363434643039356361373661613137393465646434306331633837623566383261386533396636303365393731313662613034353738653765383033343634393564373835643465663763663737313462396562366635663965306239613934663462373338383436313962393237346434613935656631353735346138396439376566356331613838623664363933653061383065626435333766633963663063613931643163363264393135646537656438313862393532653634633230303239336565386532383461343136613732613365313266633764343233623135386639623439363630636263323436366662656430666564326532346531303266646539343265623463666439346265633436643364393066633038633339666563626130336530636132343634616536363462393739353135626132396531663730326333666537303262653739333739366438656462313761613438633039323930623032343534396630363131663561653233656437653136343432646637643164616432323836633262623039643535323264643365643639386332663032303330313030303128093202180c3a606339373462623938326338313931336237333236643561336639646363343836313261313566376161643032663230376230663130636432303137613666626666353830336537636139626662343730396162323862366230396435623133660ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130303962646438653834666164616133353332666334636530316138613137643463336232333266353061393739306532363236383465646334383233653831356131626435623230656365613762663536653239663662623762383331666233626636656663643134373566306238656435666662306231333835623936643136366236323966303339366138666566356630366534626361323565653461313334306565323633613464396262303230643866343732333036663364383836313338646537613031396530353962643061666339303263636261316132313361653264616136306338613031333735356665306134386530333466356234303233613264616465616138386335343836383335336163376137613364663132623266623634313837373465396231346265366561623863633237623838303132616436313632646137346530656562313631333539303566343337333734646162383538366437353061323662626433616332346165643837386334643533653635313037326338373165393464376163633537356339363733383137333461353366656166346437626136626364643234316363363435386336303837643836333032616132353163303466366435366239633332643764393636323437353065643035353738356430373733663433646330393962323863393232383131343865366338316632393766663964313636653030306163303462333132343138363737356663656637356635656261306331303332626631333064663663643761343632313164306466336530353834643932656136373334396438343930353038656234656638386635346338633364343836646538373139663130666139366665623835636337393630373663613738313331386565326439656439303363613133333630343063353961643931613464326636393865393130386165306564623962316362393561643333623139376666623138626431626138623536636265653261616539353835656365323038613165313462343835363436333032303330313030303128083202180b3a603937303834333033333130373866353638326337663332343464383263336233653238316139313837393537386465656163646363326132656265353431616631383831313561643265383338363565356635643234376234613138633165650ab50722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039303938383635646566326632616233373663376630663733386331643837613237616330316166643030383632306333356362366562666362623063333330303331393361333838633334366433303233313732373031323139336262373666643330303462383634333132633638396566353231336362623930313130313530396465616239346632366137333265363337393239646134633463623332353137653361646262333831316435306163346337376331666365386236353136303632313566333437303766336537323635353435653538633839343630396532383337366264623737373566653330343339653065313539326664636230633365653163333035373733643037326136623839353765616663653161313162653936356564616666333834333336366362366134346563323561383930313036653632343735363766373662353530666461343832626165633633303764363938656338383834316664363666323366323130653437623861396463626136626134653166613731366462333363383065333038313934393664636235653536303966623665376336313533373962646465643432376539323331623932353463326261663934333630386138366436393861653961336338363339646638383764366636623561373133383564323433333864393131613231326266373166316532616363386231383662393665633865363963383662366430353832313737373661303963396336383935336564623539313635373862356132363362326634363965336230633037656164613731613434376565613766386663316262383037343235353536376237663062643165366166623033353837313863393862343239653234623232393835393666633736636636616633393663613934333464373932366563376433376434623932616635366434356665666638313936303935323234613931366331666665366236363765323535666333616338636363656639323064633034346232353030333133326238373830363734326630323033303130303031320218033a603333373339306438666561313434616663313265383132353461323864616336656138323839333833366163303732656666643835653061373734383538306566323830393636343863356137663864626234636538313437363831353133370ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130306335376564623966663237366530323362323830323163623164383763646631393636623639386366343865346561616137633639323037376365656538636362323339613463393231353937653865383966376363303564336633313331353738393736633465333134343035643461346530336137323431306335633039636135323761643561383562393938363337653732613332653166626330643535343662323436356539653830366332646435303965623035306162356662323730363366643932383135623164643236383965323131316361656236663534396539346139663030663038323164346361366336613631313766356135333363393236336266303734613330643563626566353064316338633233383762636139373265646564613039383362356430613662353764636230303230303036383238623430653430373662343837306232346261643834303536656535326235663432326538383430303238633235303036333832643865396336363132323566346637366561373265333430363037653966633666336332303433333037366131636138636231356564303361633839363664303530376263646536383165346530323331656539663837643131316537623438616338663934643264383432623532646637336635373363633534313439363437393763363236393638666661653734313866336236313039623561306630396533323233663461346435653335303964643235303133386636626331376266366365636531373539343433306466313830613338653930616466326166666266616430633662386331623837663137386130363164636662666638623932633931363664383734633166663561663466626364626665386539643039393337306464663630626537343736333364333665653465623563643531663665336333333965313531653431626462356135636532633863393761306134336233636434636330383138383463383739663964326633373438343238633835373366313763393066336362643032303330313030303128073202180a3a603734306166366266373339653838336338386633333434633961306638623330316533396463393831633531363365306465326133666634326239396534323665643765353662363766343231383530333834356466363266343963396662300ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393133316161333638663933343532323966393762363235396363636166666561323365303063643565616430326533663639366331653731346565333933396461643836306533386266393561323937346639656234386539333433663861616334303565613935356430353332336531313762336231633934383133613361663432666538303832633364343362616631626434643833363765393364623030616436393665363237613130333661653533346630313165616435653536663337613666666534346236623965303939343031313932616435363061303334366234316138313030393566356632643766643332643665656236353562613735386336623532366331323933383661663731393763376135336165363033643632323833323235343936316631366430656661383037396137363835363138383862653733333439323231373935366262636166616562623631333563356662623234383464356234613566646630333336616330326532366331363532633162643865616633306461653164366433656230306637623466616238643634373866653864393565623931316466393636613064656134653532326462373662383936363537306563633561663039353136343234663061663566386565363665333836643536353037313339393731363961633337353733626635326664303538646539356162326666363865363831313161623233343035656139363462326262383864303263306631636165643731656364643465346534303835393438373666646238353030626335356337626130323036366530356162393864396637653034363664393730326562353765653337323266386663633835613735353035666633323632313730323838623738383732336164623937653464653536323063633930656164313338326663643735373138383966656662313165363737316263336636663366656231396337616335343238373864303361393032373035323663336565643234393465666635346531353363613966363839303230333031303030312801320218043a603765616236393661623935343336363538626331346666366234626534643932356364353162323230646632613164356336656531363061646166323961353165363934646533656531383463653232656164386437646239333231383266330ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303038326465373330363566333466666332393334306435393439643232323062316534333636656435636637633665626436313663663934313661353365613030313766366262313136626664336633646566636331356237613464646630653434643032666536393536383830353365373961373730653230316263663731393333393030333965653866303836643466613734366337653035363931383330316639623565383465333932363238323830383561373962333232626361306235643835666539373232316132366262646532353863363230663064636561303261623165646431366363343961336632616239323838653364643166333764633462366136663731333366663932653534316337316237306432613266363664353537323561623138626638366430303965633364323466356431326530623565363830326431313531333732643462373634656265636234616638326636343934383565633537623561303164633637393538663561303363636161623763626139333534613137333732633133313662613437633935336161663934393031623366386332346536613361666436373538653766336231343363653264643363623037316232613734633932316365653934396134623561366265383739663163373930613662386436336231393264376565323961393439316664643638396139386330613763336436303332306631623461633264363232396466643934653432663361363034386137366265316562393538633861313837336265386433333861656339666335396162376633373632363738393430326331666435393566313930383735373565306265383237666334633061346662336433393361643734613934396363393836626662363463616264646165353339333566366463353630373464623933643737656133623831366264643662653533343439373237323238393835396666333463653531383630616666623632316431303438376463333834336631663836643534303334613633653438613161306430323033303130303031280a3202180d3a606132656363316232616539386264323862633161303864386633373161306434663734356337363864306337373339363235363265333433623235643833343235656565613765663865613134323935333432623865623738643332656333660ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039383735356134303862353332316532363330353230303064366437643461326333613535346435653133383461396362356562663437346165383832633633623438366264303864313434646466316139346365396137643632353139363330303661666461616334353838343666313736343031393566653235333961363536393330656661383534663231343865363865633161303863316334396432303063336633303435666537313437663036643533346334626432363231303063623164643339373339643736306438316130626432306638336632353564323530376434636362313130366235333631386336613934343039633838376361653236326434636565396338363233323134376365633134303465306335376262613733313731333065653339363433383838616633643539386564643832623863363165363561653831613465316135366263303664333937313433613938643431636138376433656634333365663061656162363830313139316233653338343830393638663636623665383836363261663435613965323132393934663638623238386562393637626562393834373863323433653231333663316131353931663036316635626330346232316666326261343862323966313834333130383838373362646665393966386135326539343038393731383536653830346465613630326133313137383663393835363532393633633361333737303332396234303966373466646663373436623232613566383431383931323037316334636538343663396234623332306665646636653962363465326362653338346639613832623661616164346232303930373433316466316133336636393230376135363536303062653831303730643038333239303039393538353961343439386435623539333135626365626566656538303765623061336139343266316364663333363764643434343466646232393838366566636464306265346162653961313838383033393533383735656461333364623732393839663736336230323033303130303031280b3202180e3a603139366237623132303739376364623361396430303362393833643537646131303331303662313733306531376636376532633762616161646234333738396166313639366461313031316232353362636263383630333333383566303332380ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061396462376638626161313236383938666162373839313135613362356438393734346631393765323830343161653039386633653838366336393837313732316531316262306164313166336365393132346161393631643661306463383435663439373635633366616231393935383430323637366635363434363262663238316462613535383837383066303365393035373938653138343236396161613630663761313437323333316532666231646561646438373763383463626362363431636139653563386164366534356263313539636230373966636230643434396364636438643932333963316130343765376234343864613063646361323636313061323566323936643936653734363962363736643461343434353136653761353965383532393361383038366638343063303532383534653032613863623230303264616433353832356265346438336235326661393165386337336666303439373436313438383632373837633131313866393234643331636261633162343466656666323264343336623339373965616466396234336134626661373265313562343735356663616232363065303661323739633362623733626337663136613036306434643532326664343930353830333838616135393564383034343733366535323266363432343931356637383033623735383365303935636466373863333235313936393764653831623839666235303035343735336231613137663961616662303634643834633939326639616231316363626338636231303831346463616635323634616134356632316264656661633832636361636161663335386533313337336565316261346537343032666438613730656130633238636135636337346463343235313063393639636432633435396231656333363838613031656133396139393237313063643232393763393861383462363334386135373738303466646332333464336665313930336532633231653137326461323862353961653665346337653865646438623731633439643730323033303130303031280c3202180f3a603538343661353366343437353239666439636462373830346364333136383865643665656265336236336461326635663231316666626337333731393763663366316366626664613631626537643135313066306539323339383131376637340ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061386365616333363765623166316465356630643965663365616630646639623938343438666532303830383437363536326130363063353163323839373730623463616366653932636236353536393832336539363263326132633966656435336264333663613361313232646531633532356135383266323561346437643632386331613364356264623839333661656365373531306537353534656537303333303235633039326338323865656235373338626530326564393633646138316135393230353633346365393435343537376162383266343066313366316565353565306165373237653233633330323834623166343462393961636534646463356639616337616438386439666132323535393335623234646362613834303036343265313663663235333263306230643638393239303436303837313563343037366634366438346130653066656433366537366363646339363335356537613236313630393435633262353461653236636330306664303832333236333436656565656137646437356639313931316539396462636239396561346163366261303536633333323238643838316438353833316439636338373935393364613137343664643065653935646332623936666539336261666366663263643764393239353864373864663333663230356437313135656439666163346462366634636336306535366135343431646135623562353566613539393939303265393538613662366334346438313064646335363138313234316238376632326630353961363838306538303231373336643031383937646236353434396365383137613233373564303335353163623064653530376336303961306338303330656366346266646562323133633033646161373634613138323162373234333334663731663736386437616563623237373035326137303333373635663037323138303536633738663261383761663138333836643866363161356366636233663262613464643539393135663133643338363334643136393537353730323033303130303031280d320218103a603030306162636435396133306135333838633530306265363832663663613239343034363239356339323735383831633230643334626230643639306564613762333862366262643037613364643166646662366137303434626230396366660ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061663062393134323537626637613436353563346135306430636164356530613165343538316564363632336630653837333066373936623866323963353831373862636363363933326331666333316633396566343462383264336334336233393837333733373366656362313239353232386130346664353061313466333634366438346665316634363763616562393864343633653239373565393935623864326531653339663362663661646463323561653335643635643032363038653033343535333739363665326162636534396238313462656164336331623735373137346165333063303062306334336539396238303439366237326433633133316631633665346663646130356632383131376566396532386334333033626534643863376530343264353862383363633132313934356132633635653739363263616139313835393338663337353764663763636139356366303262356533313934346133613631396130616333663165333462396230313364346332323463346631653730666439666433363938336566383661646535313833363263633833323263306637623631613961633735666238326537623836643638626330663039396130396131346361633561316438643338663961386137306363333766663563633362626432373432666664313436323535633137316536613137383038333237316463653066646536383165643439326362353962303739366432373031373538333864633539303831303765336136656133663961343036623364313133306363656333623437393165343962626332333136303362343661623264306639336434336265373561623961346437313065613934306532383561376231353362306361376364646565366439646365306164383335306334316439306332313562393538383531356166613061633333363561653037653831663362626233366264626561633462333162636231616134653832353635623937376639646164383564363236656566396161613965663864376533666230323033303130303031280e320218113a603933653238313031303462326231376230303935326235613431303264333365646230343363623136646533616433643364363832363066353562623065353837333765613539343463333338663763386362383863373833336663383630630ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303038633037626533303561643630623930626132646162333962306565373736306531613232663835373532323534306437306230336233663965343837356133613239616230383038386631343466353765623235326534366261353933383564306536643432373031313764613061626331623362383036393463396135303538623836643631646661303665373136373039633838653866656163376333613065316432356663306165626636613866373666636239396638343566653138313436316361623638353862393763336134303237666233373132623134653663303738396465313764343137363435373765353131343137656231363236393265623037616531653733353532333565396262343339303437623663303136313337383265376464366636303464616134363734363631643533393631663436633366616136623765373637363264333733623562353432623739656139363365666266333361633638313938626232623636316366663637363931366566333732616434633236633231366334626334373837633834656333326431383464373763373531383663303963663364396639313433336361393835333131396261623331666136616432366634353365353936643962646563613638613537363962633866656537613533356438306338633666336566623164666232383861623661393739383534623763653833313234656330643130326166663934633362373466396333373839353863323565623933336464353363316538303561313836353464366439313836393930663635373034323966393630663334653862346637666439393732646362666539323430653037346461326433353561356637656639633161663632656635393832613831373435373862396331356334396563353636626461636233306363666365663039636466653730386164343837343234653963316265363533663965653736363065376439343263316566613564613238366531616464616230366139613333663964653934363739356230323033303130303031280f320218123a603934383235313739643163333934303137306233356432363665346366613830643737386335653966356261653764653833666638636334373431663362653336616336336431653761653439373261656466366263316533636632303638390ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030626531376339393634376365633635613434343037623533353835366233633362616566356235346635363561663538623834353662613863376365353335643561633732633631633434633736623363353763386538363438343136333762653130613833636665333963303932343736643064626534643663646364636437323061333062356266656235316130316131386635383263343566366338363939336663663764663138323933356465316438363930363034346463663335313836393335643962643765656137393532333532626562623465663961653066373636316537306134323337616661393839393636383763613438666366633562303064333830376630353462653066613863336266613432353033386265366566323935313634663232663733623765383863393465613962653861613466336132343563383962396431666435313932663761353062393538623265663831303462333666316266386664326366623238633134323138303063316334376534656639386166313530303730636336643639643137653865623932663138613661613161363532363661343935323338643130336638663639356235376563663337333635306130353230303837343537323162656138313536323739363763383037363336356466386334633761376434646438663263333835306331386662613731656236306536653864666264313936653035333766643730623334346563626363353330646663383364613666656466343964353161393034313935303262613964373063643335663163663363303639346532333534663930363466646266353335656232336332376330613433643062373863316638363763363164393836393564386465663762633261313062623636373463323266363661616230613931383133646466323763646238353263353965663739653162396531613037356661366565323761376533373734646266346232363436353432376536643561623931666537663066336137313738346563613138326235303230333031303030312810320218133a603038393039376465663031623037633764393734613537353532353161366161613061666236623332613534353334336432393138653732626164303433323163313131633234643432373538306633626131653236616139643735653632360ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613561643262373634336130346330353564326638636432353131623135313339666334353537353632313338386534396331313962326633393861636131313066363133393662306338363664653530363335323262623835343032373365313366366439346365316536303433386636616662303061616136343631326637313435653962636538626331613533623934313931336161373663396633613238333366616437636632383563376163326433376639396633633263646234396465346431353165363136373835363466323831663534313432346234316661376335316232613936303232383363376433326565303065623833386461313563333861666339366530363164393763656465323231363566663161613935396631633432373562326430393863343035383661353537396662623363623930303732373034313230613861363661353237306634666366643130383663393233363930613335653766643434356533336163303366313339633638363835353635373063646334616166323231303761366331613434323435366137633663373965653034303930653765356434663636626361363063613166343762366466623534336461633363626631396137373139613866353562366638336234613362386136366436303235366430613436353531666137303234626430353633316238613535383038373732353463326632663236386364633333643264626263666237333365396662653233336262396362353961623331613031343862323365386334323638306666313061663463373961346430383334366662373961393364393632393534386561663162623132343639386661656661346364643732343432633033613034623733333433326637343839303361333235633238336434353661623961653932316165376564333339316535643137383765666463323335343061376238356336393161653837306130376639306231316331336233326365343365616564313562333639363835636534393137376363393835303230333031303030312811320218143a603939666162633461646534653636326336653238323366346139366562323134343034383465356136643064333132623730633036386432326236323936333830376332333361343964626239383361376562623330653737303637373261340ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030386434356332316330633935656636356130323964353263393537666430663835663230313233646130333465363136373164646565353437356630373338326136366336366362346463353035303464646664333735383130383364663864313735373733306564386436663336346466346333366132363531353931393535646132303161323430376661386162396232333133383131323235613064613233306662653338306530393061613536656661346632303265633962343832336636353031643936616336393865626632366161636633656532643166333261373231633934376531303736636633356233373364613164383761333661313532653030653731303131373932323832653832356666313731633538333362383835373062666336646138343439653666393566386231323635616235353531393430333135353364316435373666393363343263306361363061616261633463386464313632643831313466326232313531313538336337323533396665353663343939613932396465336134306130643435633137633538396332643739383863653236656166633932613364333762376561303034326434336530336166613632373162323632353561366363636661653533373138323164383165306230356332353062353966306139303734316130653065383861303965643536633562393738306430393566303930366630623831643531323633393832616165303131333663303732643834346131316436646134623261363163363434653161623137663136666634386565323366656465383435326631653432653264333061303739306332356434323036306531643434613637316132656232336431313466363863373165333366313736646235386136386234333030353462633164323938336132336133326561366666393566613763346438653338306562323936653938623739363865636638343534643831376337333765656135646439323165623836633136633762323933303461346137656362653561336131303230333031303030312812320218153a606537396165396337313933643164326263393433383436346338616135663632323461653835323936366134336239383235383833663766373432633533393562643330393935383761393638363662393233396431656666336165353037610ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030623035616265326162303066646430366339353565383637313062306530366631613932363234613438616431636263386466633666323231323936326230633330666462643238346133376335613337363538623633633336656138313632353631613865346639343663626535373232633032383830316630663238316337306638643838633763303061326632653239663539376237393938363965643833353664663537633437626539393434613261616666363530663962346262613064626335336463383830666462623639656134353139303564323830323230326638653239633034613736643237616632656237633534383438356266336634363934633930633431383130383838383433373932383438383335663738313637303764336538643736663465363766353738306263663038383133633535656336333961396264363234313738663565623134376435303061663335316539656631623165333432343834636132363064623763636261653438366631336366323635623562316162363838303636303038303533623230633364656463653737316339613038613033323061613963653435316562396439383361376234396361613130393666386164633039383331386463333865306537636566306438653564353537613036373536383561316339653235366132626339646261333232623362623331373263663731343037376263333830663861306134333361386266613766626663353966366230393365633862663665393339376330396231386531383034306331623536363836343733376338666137653239373935663361343538386464613763326261623439353636356363346139623833366532656239306336326133666361663539316662356638313830346337363138306536323666613236343461376465333435313164366334363637643938393337653237373333663464316539313338383333353465353466643733353137323165373666376235366333343833333838663461366238376232386165626562303230333031303030312813320218163a603962343038383566313362366163316337353336393262613366313739303061333838333165363934613061663937343934623834333838323039636235656662646339386136646162623265316337313833393166633133356264616163330ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396463643863306135336539306333353539353734663636323034313137643362353033653530613336643330393766616338343239653663656364333762623534303731383038663265653938323033356638353161306339626532313736333833613232653338633161626131363866333266393035373063623332333363666536323539383736363661663637623531346361656632316662386466366430666364333363663236303662393264646561353533366236303638643836373832653339626435633338343435393931643431396237643165633038353939343132633039343964316332343062333563313464633535323734646261373166666165393336313235613566383139663534313332653234333964346163353539373939366563653835653133646666333336316639313331663536636561633562396635353262343963663666396139616336653564636532646233363934363266393361663830653562353662366538626566613136326130363162346137363839326264633834363437333036633630303835386664643237303332373663326337303434303139386566643766653335343563663261623538306337346366643634343561616637626437663734356363323532656162643236356561626565383632343137313034653639343861353537353666646332323264663061313031353234646531633363303863636630343330313165633766653936346564643834353161313330313437633037333633613335663131666465656638663261326237363137353762343335386666383962373561343864363762646336303930363933653062623836373965636262393366666462336633656439366265633933656634363536653337313661623837636534366361386531323539633866656464653866326631656130663365623263343865393635353164653132333330333435373235663435656436396338353735623531363833616661343732363231383236646232326262326431633466316533363436346139303230333031303030312814320218173a60346630613033333466393737363738313632663830643936376637323139313431333630633062376637663033316233376336396536323137333933336564616434366263626139373636376565373262666435613933346261313532326330")));class Fk{constructor(e){this._network=new Map,this._nodes=[],this._healthyNodes=[],this._createNetworkChannel=e,this._ledgerId=null,this._minBackoff=8e3,this._maxBackoff=36e5,this._maxNodeAttempts=-1,this._transportSecurity=!1,this._nodeMinReadmitPeriod=this._minBackoff,this._nodeMaxReadmitPeriod=this._maxBackoff,this._earliestReadmitTime=Date.now()+this._nodeMinReadmitPeriod}isTransportSecurity(){return this._transportSecurity}setTransportSecurity(e){if(this._transportSecurity==e)return this;this._network.clear();for(let t=0;t0)for(let e=this._nodes.length-1;e>=0;e--)this._nodes[e]._badGrpcStatusCounte&&(t=Math.min(this._nodes[s]._readmitTime,t)),this._nodes[s]==this._healthyNodes[l])continue e;o=!1,this._nodes[s]._readmitTime<=e&&this._healthyNodes.push(this._nodes[s])}this._earliestReadmitTime=Math.min(Math.max(t,this._nodeMinReadmitPeriod),this._nodeMaxReadmitPeriod)}}_getNumberOfMostHealthyNodes(e){this._removeDeadNodes();const t=[],o=new Set;for(let s=0;s[t,"string"==typeof o?Oe.fromString(o):o])))}setNetworkFromAddressBook(e){const t={},o=this.isTransportSecurity()?50212:50211;for(const s of e.nodeAddresses)for(const l of s.addresses)l.port===o&&null!=s.accountId&&(t[l.toString()]=s.accountId);return this.setNetwork(t),this}get network(){var e={};for(const t of this._nodes)e[t.address.toString()]=t.accountId;return e}setNetworkName(e){switch(super.setLedgerId(e),e){case"mainnet":this._addressBook=SH;break;case"testnet":this._addressBook=OH;break;case"previewnet":this._addressBook=xH}if(null!=this._addressBook)for(const t of this._nodes)for(const o of this._addressBook.nodeAddresses)null!=o.accountId&&o.accountId.toString()===t.accountId.toString()&&t.setNodeAddress(o);return this}get networkName(){return null!=this._ledgerId?this._ledgerId.toString():null}_createNodeFromNetworkEntry(e){const t="string"==typeof e[1]?Oe.fromString(e[1]):e[1];return new xp({newNode:{address:e[0],accountId:t,channelInitFunction:this._createNetworkChannel}}).setMinBackoff(this._minBackoff)}_getNodesToRemove(e){const t=[];for(let o=this._nodes.length-1;o>=0;o--){const s=this._nodes[o],l=e.get(s.address.toString());(null==l||l.toString()!==s.accountId.toString())&&t.push(o)}return t}_checkNetworkContainsEntry(e){for(const t of this._nodes)if(t.address.toString()===e[0])return!0;return!1}get maxNodesPerTransaction(){return this._maxNodesPerTransaction}setMaxNodesPerTransaction(e){return this._maxNodesPerTransaction=e,this}get maxNodeAttempts(){return this._maxNodeAttempts}setMaxNodeAttempts(e){return this._maxNodeAttempts=e,this}getNumberOfNodesForTransaction(){return this._maxNodesPerTransaction>0?this._maxNodesPerTransaction:(this._nodes.length+3-1)/3}getNodeAccountIdsForExecute(){return this._getNumberOfMostHealthyNodes(this.getNumberOfNodesForTransaction()).map(e=>e.accountId)}}class Op extends Rk{constructor(e={}){super(e)}getKey(){return this._address.toString()}toInsecure(){return new Op({cloneNode:{node:this,address:this._address.toInsecure()}})}toSecure(){return new Op({cloneNode:{node:this,address:this._address.toSecure()}})}}class NH extends Fk{constructor(e){super(e)}setNetwork(e){this._setNetwork(new Map(e.map(t=>[t,t])))}get network(){var e=[];for(const t of this._nodes)e.push(t.address.toString());return e}_createNodeFromNetworkEntry(e){return new Op({newNode:{address:e[1],channelInitFunction:this._createNetworkChannel}}).setMinBackoff(this._minBackoff)}_getNodesToRemove(e){const t=[],o=Object.values(e);for(let s=this._nodes.length-1;s>=0;s--)o.includes(this._nodes[s].address.toString())||t.push(s);return t}getNextMirrorNode(){if(null==this._createNetworkChannel)throw new Error("mirror network not supported on browser");return this._getNumberOfMostHealthyNodes(1)[0]}}class PH{constructor(e){this._mirrorNetwork=new NH(this._createMirrorNetworkChannel()),this._network=new BH(this._createNetworkChannel()),this._operator=null,this._defaultMaxTransactionFee=null,this._maxQueryPayment=new Nt(1),null!=e&&null!=e.operator&&this.setOperator(e.operator.accountId,e.operator.privateKey),this._maxAttempts=null,this._signOnDemand=!1,this._autoValidateChecksums=!1,this._minBackoff=250,this._maxBackoff=8e3,this._defaultRegenerateTransactionId=!0,this._requestTimeout=null,this._networkUpdatePeriod=1e4,this._isShutdown=!1,null!=e&&!1!==e.scheduleNetworkUpdate&&this._scheduleNetworkUpdate()}setNetworkName(e){return console.warn("Deprecated: Use `setLedgerId` instead"),this.setLedgerId(e)}get networkName(){return console.warn("Deprecated: Use `ledgerId` instead"),null!=this.ledgerId?this.ledgerId.toString():null}setLedgerId(e){return this._network.setLedgerId("string"==typeof e?Ur.fromString(e):e),this}get ledgerId(){return null!=this._network._ledgerId?this._network.ledgerId:null}setNetwork(e){throw new Error("not implemented")}setNetworkFromAddressBook(e){return this._network.setNetworkFromAddressBook(e),this}get network(){return this._network.network}setMirrorNetwork(e){throw new Error("not implemented")}get mirrorNetwork(){return this._mirrorNetwork.network}get signOnDemand(){return this._signOnDemand}setSignOnDemand(e){this._signOnDemand=e}isTransportSecurity(){return this._network.isTransportSecurity()}setTransportSecurity(e){return this._network.setTransportSecurity(e),this._mirrorNetwork.setTransportSecurity(e),this}setOperator(e,t){const o="string"==typeof t?io.fromString(t):t;return this.setOperatorWith(e,o.publicKey,s=>Promise.resolve(o.sign(s)))}setOperatorWith(e,t,o){const s=e instanceof Oe?e:Oe.fromString(e);return null!=this._network._ledgerId&&s.validateChecksum(this),this._operator={transactionSigner:o,accountId:s,publicKey:t instanceof fo?t:fo.fromString(t)},this}setAutoValidateChecksums(e){return this._autoValidateChecksums=e,this}isAutoValidateChecksumsEnabled(){return this._autoValidateChecksums}get operatorAccountId(){return null!=this._operator?this._operator.accountId:null}get operatorPublicKey(){return null!=this._operator?this._operator.publicKey:null}get maxTransactionFee(){return this._defaultMaxTransactionFee}setMaxTransactionFee(e){return this._defaultMaxTransactionFee=e,this}get defaultMaxTransactionFee(){return this._defaultMaxTransactionFee}setDefaultMaxTransactionFee(e){return this._defaultMaxTransactionFee=e,this}get defaultRegenerateTransactionId(){return this._defaultRegenerateTransactionId}setDefaultRegenerateTransactionId(e){return this._defaultRegenerateTransactionId=e,this}get maxQueryPayment(){return this._maxQueryPayment}setMaxQueryPayment(e){return this._maxQueryPayment=e,this}get maxAttempts(){return null!=this._maxAttempts?this._maxAttempts:10}setMaxAttempts(e){return this._maxAttempts=e,this}get maxNodeAttempts(){return this._network.maxNodeAttempts}setMaxNodeAttempts(e){return this._network.setMaxNodeAttempts(e),this}get nodeWaitTime(){return this._network.minBackoff}setNodeWaitTime(e){return this._network.setMinBackoff(e),this}get maxNodesPerTransaction(){return this._network.maxNodesPerTransaction}setMaxNodesPerTransaction(e){return this._network.setMaxNodesPerTransaction(e),this}setMinBackoff(e){if(null==e)throw new Error("minBackoff cannot be null.");if(e>this._maxBackoff)throw new Error("minBackoff cannot be larger than maxBackoff.");return this._minBackoff=e,this}get minBackoff(){return this._minBackoff}setMaxBackoff(e){if(null==e)throw new Error("maxBackoff cannot be null.");if(e>7,y=o.getUint32(s+1),D=s+5;if(D+y>o.byteLength)throw new Error("(BUG) unexpected frame length past the boundary");const U=new Uint8Array(n,o.byteOffset+D,y);if(0===A){if(null!=l)throw new Error("(BUG) unexpectedly received more than one data frame");l=U}else{if(1!==A)throw new Error(`(BUG) unexpected frame type: ${A}`);{const q=L1(U),[ce,ye]=q.split(":");if("grpc-status"!==ce)throw new Error(`(BUG) unhandled trailer, ${q}`);u=parseInt(ye)}}s+=y+5}if(0!==u)throw new Error(`(BUG) unhandled grpc-status: ${u}`);if(null==l)throw new Error("(BUG) unexpectedly received no response");return l}(yield h.arrayBuffer());u(null,U)}catch(h){u(h,null)}});return function(s,l,u){return o.apply(this,arguments)}}()}}const _a={fromName(n){switch(n){case"mainnet":return _a.MAINNET;case"testnet":return _a.TESTNET;case"previewnet":return _a.PREVIEWNET;default:throw new Error(`unknown network name: ${n}`)}},MAINNET:{"https://grpc-web.myhbarwallet.com:443":new Oe(3)},TESTNET:{"https://grpc-web.testnet.myhbarwallet.com:443":new Oe(3)},PREVIEWNET:{"https://grpc-web.previewnet.myhbarwallet.com:443":new Oe(3)}};class wa extends PH{constructor(e){if(super(e),null!=e)if("string"==typeof e.network)switch(e.network){case"mainnet":this.setNetwork(_a.MAINNET),this.setLedgerId(Ur.MAINNET);break;case"testnet":this.setNetwork(_a.TESTNET),this.setLedgerId(Ur.TESTNET);break;case"previewnet":this.setNetwork(_a.PREVIEWNET),this.setLedgerId(Ur.PREVIEWNET);break;default:throw new Error(`unknown network: ${e.network}`)}else null!=e.network&&this.setNetwork(e.network)}static fromConfig(e){return new wa("string"==typeof e?JSON.parse(e):e)}static forNetwork(e){return new wa({network:e,scheduleNetworkUpdate:!1})}static forName(e){return new wa({network:e,scheduleNetworkUpdate:!1})}static forMainnet(){return new wa({network:"mainnet",scheduleNetworkUpdate:!1})}static forTestnet(){return new wa({network:"testnet",scheduleNetworkUpdate:!1})}static forPreviewnet(){return new wa({network:"previewnet",scheduleNetworkUpdate:!1})}setNetwork(e){if("string"==typeof e)switch(e){case"previewnet":this._network.setNetwork(_a.PREVIEWNET);break;case"testnet":this._network.setNetwork(_a.TESTNET);break;case"mainnet":this._network.setNetwork(_a.MAINNET)}else this._network.setNetwork(e)}setMirrorNetwork(e){return this._mirrorNetwork.setNetwork("string"==typeof e?[]:e),this}_createNetworkChannel(){return e=>new UH(e)}_createMirrorNetworkChannel(){return()=>{throw new Error("mirror support is not supported in browsers")}}}var ks=G(3718),vo=(()=>(function(n){n.Connecting="Connecting",n.Connected="Connected",n.Disconnected="Disconnected",n.Paired="Paired"}(vo||(vo={})),vo))(),Au=null;typeof WebSocket<"u"?Au=WebSocket:typeof MozWebSocket<"u"?Au=MozWebSocket:typeof global<"u"?Au=global.WebSocket||global.MozWebSocket:typeof window<"u"?Au=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(Au=self.WebSocket||self.MozWebSocket);const jH=Au;class GH{constructor(e){this.subscribedTopics=[],this.connected=new ks.Event,this.payload=new ks.Event,this.hc=e}processMessage(e){this.hc.debug&&console.log("hashconnect - emitting payload");let t="";t="string"==typeof e.data?e.data:e.data.toString(),this.payload.emit(JSON.parse(t))}init(){var e=this;return Ge(function*(){return new Promise(t=>{e.connectToSocket(()=>{t()})})})()}connectToSocket(e){this.socket=new jH("wss://hashconnect.hashpack.app"),this.socket.onopen=()=>{this.hc.debug&&console.log("hashconnect - connected"),this.hc.connectionStatusChangeEvent.emit(vo.Connected),e()},this.socket.onclose=()=>{this.hc.status=vo.Disconnected,this.hc.debug&&console.log("hashconnect - disconnected"),this.hc.connectionStatusChangeEvent.emit(vo.Disconnected),setTimeout(()=>{this.reconnect()},300)}}reconnect(){var e=this;this.hc.debug&&console.log("hashconnect - reconnecting..."),this.connectToSocket(Ge(function*(){for(let t of e.subscribedTopics)yield e.subscribe(t);e.hc.status=vo.Connected,e.hc.debug&&console.log("hashconnect - reconnected")}))}subscribe(e){var t=this;return Ge(function*(){t.hc.debug&&console.log("hashconnect - Subscribing to topic id "+e),-1==t.subscribedTopics.indexOf(e)&&t.subscribedTopics.push(e),t.socket.send(JSON.stringify({action:"sub",topic:e})),t.socket.onmessage=o=>{console.log("process",o),t.processMessage(o)}})()}addDecryptionKey(e,t){console.log("hashconnect - Adding decryption key \n PrivKey: "+e),this.hc.debug&&console.log("hashconnect - Adding decryption key \n PrivKey: "+e),this.hc.encryptionKeys[t]=e}unsubscribe(e){var t=this;return Ge(function*(){t.hc.debug&&console.log("hashconnect - Unsubscribing to "+e),t.socket.send(JSON.stringify({action:"unsub",topic:e}))})()}publish(e,t,o){var s=this;return Ge(function*(){const l={action:"pub",payload:JSON.stringify(t),topic:e};s.hc.debug&&console.log("hashconnect - Sending payload to "+e,"\n encrypted with "+o),yield s.socket.send(JSON.stringify(l))})()}}var Sp,QH=new Uint8Array(16);function HH(){if(!Sp&&!(Sp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sp(QH)}const zH=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,KH=function VH(n){return"string"==typeof n&&zH.test(n)};for(var Jo=[],Qy=0;Qy<256;++Qy)Jo.push((Qy+256).toString(16).substr(1));const Lk=function $H(n,e,t){var o=(n=n||{}).random||(n.rng||HH)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){t=t||0;for(var s=0;s<16;++s)e[t+s]=o[s];return e}return function YH(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(Jo[n[e+0]]+Jo[n[e+1]]+Jo[n[e+2]]+Jo[n[e+3]]+"-"+Jo[n[e+4]]+Jo[n[e+5]]+"-"+Jo[n[e+6]]+Jo[n[e+7]]+"-"+Jo[n[e+8]]+Jo[n[e+9]]+"-"+Jo[n[e+10]]+Jo[n[e+11]]+Jo[n[e+12]]+Jo[n[e+13]]+Jo[n[e+14]]+Jo[n[e+15]]).toLowerCase();if(!KH(t))throw TypeError("Stringified UUID is invalid");return t}(o)};var ZH=G(1868),Uk=G.n(ZH);class qH{prepareSimpleMessage(e,t,o,s){var l=this;return Ge(function*(){t.id=Lk(),s.debug&&console.log("hashconnect - Sending message - id: "+t.id);let u=yield l.encrypt(JSON.stringify(t),s.encryptionKeys[t.topic],s),h=new JH(Date.now(),e,u,o);return JSON.stringify(h)})()}decode(e,t){var o=this;return Ge(function*(){t.debug&&console.log("hashconnect - decoding message payload");let s=e;"string"==typeof e&&(s=JSON.parse(e));let l=s;return l.data=yield o.decrypt(l.data,t.encryptionKeys[l.topic],t),l})()}createRandomTopicId(){return Lk()}encrypt(e,t,o){return Ge(function*(){return o.debug&&console.log("hashconnect - encrypting with key: "+t),o.debug&&console.log("Topic key mapping",o.encryptionKeys),new(Uk())(t).encrypt(e)})()}decrypt(e,t,o){return Ge(function*(){return o.debug&&console.log("hashconnect - decryption with key: "+t),new(Uk())(t).decrypt(e)})()}}class JH{constructor(e,t,o,s){this.timestamp=e,this.type=t,this.data=o,this.topic=s}}var qr=(()=>(function(n){n.Transaction="Transaction",n.TransactionResponse="TransactionResponse",n.ApprovePairing="ApprovePairing",n.RejectPairing="RejectPairing",n.Acknowledge="Acknowledge",n.AdditionalAccountRequest="AdditionalAccountRequest",n.AdditionalAccountResponse="AdditionalAccountResponse",n.AuthenticationRequest="AuthenticationRequest",n.AuthenticationResponse="AuthenticationResponse",n.SigningRequest="SigningRequest",n.SigningResponse="SigningResponse"}(qr||(qr={})),qr))();class XH{onPayload(e,t){return Ge(function*(){const o=e.data;switch(e.origin&&(o.origin=e.origin),t.debug&&console.log(`hashconnect - Message Received of type ${e.type}, sent at ${e.timestamp.toString()}`,o),o.topic||console.error("hashconnect - no topic in message"),e.type){case qr.ApprovePairing:t.debug&&console.log("hashconnect - approved",e.data);let s=e.data,l={accountIds:s.accountIds,metadata:s.metadata,network:s.network,topic:s.topic,origin:s.origin,encryptionKey:t.hcData.encryptionKey,lastUsed:(new Date).getTime()};s.pairingData=l,t.pairingEvent.emit(s),t.connectionStatusChangeEvent.emit(vo.Paired),yield t.acknowledge(o.topic,t.encryptionKeys[s.topic],s.id);break;case qr.Acknowledge:let u=e.data;t.debug&&console.log("hashconnect - acknowledged - id: "+u.msg_id),t.acknowledgeMessageEvent.emit(u);break;case qr.Transaction:t.debug&&console.log("hashconnect - Got transaction",e);let h=e.data;h.byteArray=new Uint8Array(Buffer.from(h.byteArray,"base64")),t.transactionEvent.emit(h),yield t.acknowledge(o.topic,t.encryptionKeys[h.topic],h.id);break;case qr.TransactionResponse:t.debug&&console.log("hashconnect - Got transaction response",e);let A=e.data;A.signedTransaction&&(A.signedTransaction=new Uint8Array(Buffer.from(A.signedTransaction,"base64"))),A.receipt&&(A.receipt=new Uint8Array(Buffer.from(A.receipt,"base64"))),A.response&&(A.response=JSON.parse(A.response)),t.transactionResolver(A),yield t.acknowledge(o.topic,t.encryptionKeys[A.topic],A.id);break;case qr.AdditionalAccountRequest:t.debug&&console.log("hashconnect - Got account info request",e);let y=e.data;t.additionalAccountRequestEvent.emit(y),yield t.acknowledge(o.topic,t.encryptionKeys[y.topic],y.id);break;case qr.AdditionalAccountResponse:t.debug&&console.log("hashconnect - Got account info response",e);let D=e.data;t.additionalAccountResolver(D),yield t.acknowledge(o.topic,t.encryptionKeys[D.topic],D.id);break;case qr.AuthenticationRequest:t.debug&&console.log("hashconnect - Got auth request",e);let U=e.data;U.serverSignature=new Uint8Array(Buffer.from(U.serverSignature,"base64")),t.authRequestEvent.emit(U),yield t.acknowledge(o.topic,t.encryptionKeys[U.topic],U.id);break;case qr.AuthenticationResponse:t.debug&&console.log("hashconnect - Got auth response",e);let q=e.data;q.userSignature&&(q.userSignature=new Uint8Array(Buffer.from(q.userSignature,"base64"))),q.signedPayload&&q.signedPayload.serverSignature&&(q.signedPayload.serverSignature=new Uint8Array(Buffer.from(q.signedPayload.serverSignature,"base64"))),t.authResolver(q),yield t.acknowledge(o.topic,t.encryptionKeys[q.topic],q.id);break;case qr.SigningRequest:t.debug&&console.log("hashconnect - Got sign request",e);let ce=e.data;t.signRequestEvent.emit(ce),yield t.acknowledge(o.topic,t.encryptionKeys[ce.topic],ce.id);break;case qr.SigningResponse:t.debug&&console.log("hashconnect - Got sign response",e);let ye=e.data;ye.userSignature&&(ye.userSignature=new Uint8Array(Buffer.from(ye.userSignature,"base64"))),t.signResolver(ye),yield t.acknowledge(o.topic,t.encryptionKeys[ye.topic],ye.id)}})()}}class ez{constructor(e,t,o,s){this.hashconnect=t,this.network=e,this.client=wa.forName(e),this.topicId=o,this.accountToSign=s}getLedgerId(){return this.client.ledgerId}getNetwork(){return this.client.network}getMirrorNetwork(){throw new Error("Get Mirror Network not implemented in HashConnect provider")}getAccountBalance(e){return(new uu).setAccountId(e).execute(this.client)}getAccountInfo(e){return(new rd).setAccountId(e).execute(this.client)}getAccountRecords(e){return(new od).setAccountId(e).execute(this.client)}getTransactionReceipt(e){return(new ru).setTransactionId(e).execute(this.client)}waitForReceipt(e){return(new ru).setNodeAccountIds([e.nodeId]).setTransactionId(e.transactionId).execute(this.client)}call(e){var t=this;return Ge(function*(){const o={byteArray:t.getBytesOf(e),metadata:{accountToSign:t.accountToSign.toString(),returnTransaction:!1},topic:t.topicId};return(yield t.hashconnect.sendTransaction(t.topicId,o)).response})()}getBytesOf(e){let o;if(e||(o=e),!e&&!o)throw new Error("Only Transactions and Queries can be serialized to be sent for signing by the HashPack wallet.");return e.toBytes()}}class tz{constructor(e,t,o,s){this.hashconnect=e,this.provider=t,this.accountToSign=o,this.topicId=s}getLedgerId(){return this.provider.client.ledgerId}getAccountId(){return Oe.fromString(this.accountToSign)}getNetwork(){let e={};return e[this.accountToSign.toString()]=this.provider.network,e}getMirrorNetwork(){throw new Error("Get Mirror Network not implemented in HashConnect")}sign(e){throw new Error("Sign messages not implemented in HashConnect")}getAccountBalance(){return(new uu).setAccountId(this.accountToSign).execute(this.provider.client)}getAccountInfo(){return(new rd).setAccountId(this.accountToSign).execute(this.provider.client)}getAccountRecords(){return(new od).setAccountId(this.accountToSign).execute(this.provider.client)}signTransaction(e){var t=this;return Ge(function*(){return e.freezeWith(t.provider.client)})()}checkTransaction(e){throw new Error("Check transaction not implemented in HashConnect")}populateTransaction(e){var t=this;return Ge(function*(){return e.setTransactionId(zr.generate(t.accountToSign)),e.freezeWith(t.provider.client),e})()}call(e){var t=this;return Ge(function*(){const o={byteArray:t.getBytesOf(e),metadata:{accountToSign:t.accountToSign.toString(),returnTransaction:!1},topic:t.topicId};return(yield t.hashconnect.sendTransaction(t.topicId,o)).response})()}getBytesOf(e){let o;if(e||(o=e),!e&&!o)throw new Error("Only Transactions and Queries can be serialized to be sent for signing by the HashPack wallet.");return e.toBytes()}}global.Buffer=global.Buffer||G(3172).lW;class nz{constructor(e){this.encryptionKeys={},this.debug=!1,this.status=vo.Disconnected,this.hcData={topic:"",pairingString:"",encryptionKey:"",pairingData:[]},this.relay=new GH(this),this.foundExtensionEvent=new ks.Event,this.foundIframeEvent=new ks.Event,this.pairingEvent=new ks.Event,this.transactionEvent=new ks.Event,this.acknowledgeMessageEvent=new ks.Event,this.additionalAccountRequestEvent=new ks.Event,this.connectionStatusChangeEvent=new ks.Event,this.authRequestEvent=new ks.Event,this.signRequestEvent=new ks.Event,this.messages=new qH,this.messageParser=new XH,e&&(this.debug=e),this.setupEvents()}init(e,t,o=!0){var s=this;return Ge(function*(){return new Promise(function(){var l=Ge(function*(u){let h={topic:"",pairingString:"",encryptionKey:"",savedPairings:[]};if(s.metadata=e,s.debug&&console.log("hashconnect - Initializing"),typeof window<"u")s.metadata.url=window.location.origin;else if(!e.url)throw new Error("metadata.url must be defined if not running hashconnect within a browser");if(yield s.relay.init(),s.debug&&console.log("hashconnect - Initialized"),s.loadLocalData()){s.debug&&console.log("hashconnect - Found saved local data",s.hcData),s.metadata.encryptionKey=s.hcData.encryptionKey,s.status=vo.Connecting,s.connectionStatusChangeEvent.emit(vo.Connecting),h.pairingString=s.hcData.pairingString,h.topic=s.hcData.topic,h.encryptionKey=s.hcData.encryptionKey,h.savedPairings=s.hcData.pairingData,s.connect(h.topic,s.metadata,h.encryptionKey),s.status=vo.Connected,s.connectionStatusChangeEvent.emit(vo.Connected);for(let A of s.hcData.pairingData)yield s.connect(A.topic,A.metadata,A.encryptionKey);s.hcData.pairingData.length>0&&(s.status=vo.Paired,s.connectionStatusChangeEvent.emit(vo.Paired))}else{s.debug&&console.log("hashconnect - No local data found, initializing"),s.hcData.encryptionKey=yield s.generateEncryptionKeys(),s.metadata.encryptionKey=s.hcData.encryptionKey,h.encryptionKey=s.hcData.encryptionKey;const A=yield s.connect();s.debug&&console.log("hashconnect - Received state",A),s.hcData.topic=A,h.topic=A,s.hcData.pairingString=s.generatePairingString(A,t,!o),h.pairingString=s.hcData.pairingString,s.saveDataInLocalstorage(),s.status=vo.Connected,s.connectionStatusChangeEvent.emit(vo.Connected)}s.debug&&console.log("hashconnect - init data",h),s.findLocalWallets(),u(h)});return function(u){return l.apply(this,arguments)}}())})()}connect(e,t,o){var s=this;return Ge(function*(){return e||(e=s.messages.createRandomTopicId(),s.encryptionKeys[e]=s.hcData.encryptionKey,s.debug&&console.log("hashconnect - Created new topic id - "+e)),t&&(s.encryptionKeys[e]=o),yield s.relay.subscribe(e),e})()}disconnect(e){var t=this;return Ge(function*(){e!=t.hcData.topic&&(yield t.relay.unsubscribe(e));let o=t.hcData.pairingData.findIndex(s=>s.topic==e);t.hcData.pairingData.splice(o,1),0==t.hcData.pairingData.length&&(t.status=vo.Connected,t.connectionStatusChangeEvent.emit(vo.Connected)),t.saveDataInLocalstorage()})()}setupEvents(){var e=this;this.debug&&console.log("hashconnect - Setting up events"),this.relay.payload.on(function(){var t=Ge(function*(o){if(!o)return;const s=yield e.messages.decode(o,e);yield e.messageParser.onPayload(s,e)});return function(o){return t.apply(this,arguments)}}()),this.pairingEvent.on(t=>{this.hcData.pairingData.push(t.pairingData),this.saveDataInLocalstorage()}),this.foundIframeEvent.on(t=>{this.debug&&console.log("hashconnect - Found iframe wallet",t),this.connectToIframeParent()})}saveDataInLocalstorage(){if(typeof window>"u"||typeof localStorage>"u")return;let e=JSON.stringify(this.hcData);this.debug&&console.log("hashconnect - saving local data",this.hcData),localStorage.setItem("hashconnectData",e)}loadLocalData(){if(typeof window>"u"||typeof localStorage>"u")return!1;let e=localStorage.getItem("hashconnectData");if(e){let t=JSON.parse(e);return t.pairingData&&t.encryptionKey?(this.hcData=t,!0):(this.debug&&console.log("hashconnect - legacy save data found, creating new data"),!1)}return!1}clearConnectionsAndData(){var e=this;return Ge(function*(){e.debug&&console.log("hashconnect - clearing local data - you will need to run init() again");for(let t of e.hcData.pairingData)yield e.relay.unsubscribe(t.topic);e.hcData={topic:"",pairingString:"",encryptionKey:"",pairingData:[]},typeof localStorage<"u"&&localStorage.removeItem("hashconnectData"),e.status=vo.Disconnected,e.connectionStatusChangeEvent.emit(vo.Disconnected)})()}sendTransaction(e,t){var o=this;return Ge(function*(){t.byteArray=Buffer.from(t.byteArray).toString("base64");const s=yield o.messages.prepareSimpleMessage(qr.Transaction,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),o.sendEncryptedLocalTransaction(s),yield new Promise(l=>o.transactionResolver=l)})()}requestAdditionalAccounts(e,t){var o=this;return Ge(function*(){const s=yield o.messages.prepareSimpleMessage(qr.AdditionalAccountRequest,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),yield new Promise(l=>o.additionalAccountResolver=l)})()}sendAdditionalAccounts(e,t){var o=this;return Ge(function*(){t.accountIds=t.accountIds.map(l=>l);const s=yield o.messages.prepareSimpleMessage(qr.AdditionalAccountResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}sendTransactionResponse(e,t){var o=this;return Ge(function*(){t.receipt&&(t.receipt=Buffer.from(t.receipt).toString("base64")),t.signedTransaction&&(t.signedTransaction=Buffer.from(t.signedTransaction).toString("base64"));const s=yield o.messages.prepareSimpleMessage(qr.TransactionResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}pair(e,t,o){var s=this;return Ge(function*(){s.debug&&console.log("hashconnect - Pairing to "+e.metadata.name),yield s.connect(e.topic);let u={metadata:s.metadata,topic:e.topic,accountIds:t,network:o},h={accountIds:u.accountIds,metadata:e.metadata,network:u.network,topic:u.topic,origin:u.origin,lastUsed:(new Date).getTime(),encryptionKey:e.metadata.encryptionKey||e.metadata.publicKey};s.hcData.pairingData.push(h),s.saveDataInLocalstorage(),h.metadata.publicKey&&(u.metadata.publicKey=h.metadata.publicKey),u.metadata.description=s.sanitizeString(u.metadata.description),u.metadata.name=s.sanitizeString(u.metadata.name),u.network=s.sanitizeString(u.network),u.metadata.url=s.sanitizeString(u.metadata.url),u.accountIds=u.accountIds.map(y=>y),e.metadata.encryptionKey&&(u.metadata.encryptionKey=e.metadata.encryptionKey),s.encryptionKeys[e.topic]=e.metadata.encryptionKey,e.metadata.publicKey&&(s.encryptionKeys[e.topic]=e.metadata.publicKey);const A=yield s.messages.prepareSimpleMessage(qr.ApprovePairing,u,u.topic,s);return s.relay.publish(e.topic,A,s.encryptionKeys[e.topic]),h})()}reject(e,t,o){var s=this;return Ge(function*(){let l={reason:t,topic:e,msg_id:o};l.reason=s.sanitizeString(l.reason);const u=yield s.messages.prepareSimpleMessage(qr.RejectPairing,l,e,s);yield s.relay.publish(e,u,s.encryptionKeys[e])})()}acknowledge(e,t,o){var s=this;return Ge(function*(){const l={result:!0,topic:e,msg_id:o},u=yield s.messages.prepareSimpleMessage(qr.Acknowledge,l,e,s);yield s.relay.publish(e,u,t)})()}authenticate(e,t,o,s,l){var u=this;return Ge(function*(){let h={topic:e,accountToSign:t,serverSigningAccount:o,serverSignature:s,payload:l};h.serverSignature=Buffer.from(h.serverSignature).toString("base64"),console.log(h.serverSignature);const A=yield u.messages.prepareSimpleMessage(qr.AuthenticationRequest,h,e,u);return yield u.relay.publish(e,A,u.encryptionKeys[e]),u.sendEncryptedLocalTransaction(A),yield new Promise(y=>u.authResolver=y)})()}sendAuthenticationResponse(e,t){var o=this;return Ge(function*(){t.userSignature&&(t.userSignature=Buffer.from(t.userSignature).toString("base64")),t.signedPayload&&(t.signedPayload.serverSignature=Buffer.from(t.signedPayload.serverSignature).toString("base64"));const s=yield o.messages.prepareSimpleMessage(qr.AuthenticationResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}sign(e,t,o){var s=this;return Ge(function*(){let l={topic:e,accountToSign:t,payload:o};const u=yield s.messages.prepareSimpleMessage(qr.SigningRequest,l,e,s);return yield s.relay.publish(e,u,s.encryptionKeys[e]),s.sendEncryptedLocalTransaction(u),yield new Promise(h=>s.signResolver=h)})()}sendSigningResponse(e,t){var o=this;return Ge(function*(){t.userSignature&&(t.userSignature=Buffer.from(t.userSignature).toString("base64"));const s=yield o.messages.prepareSimpleMessage(qr.SigningResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}generatePairingString(e,t,o){this.debug&&console.log("hashconnect - Generating pairing string");let s={metadata:this.metadata,topic:e,network:t,multiAccount:o};s.metadata.description=this.sanitizeString(s.metadata.description),s.metadata.name=this.sanitizeString(s.metadata.name),s.network=this.sanitizeString(s.network),s.metadata.url=this.sanitizeString(s.metadata.url);let l=Buffer.from(JSON.stringify(s)).toString("base64");return this.hcData.pairingString=l,l}decodePairingString(e){let t=Buffer.from(e,"base64").toString();return JSON.parse(t)}generateEncryptionKeys(){var e=this;return Ge(function*(){let t=e.messages.createRandomTopicId();return e.debug&&console.log("hashconnect - Generated new encryption key - "+t),t})()}sanitizeString(e){return e?e.replace(/[^\w. ]/gi,function(t){return"."==t?".":"&#"+t.charCodeAt(0)+";"}):""}findLocalWallets(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel findLocalWallets - no window object"):(this.debug&&console.log("hashconnect - Finding local wallets"),window.addEventListener("message",e=>{e.data.type&&"hashconnect-query-extension-response"==e.data.type&&(this.debug&&console.log("hashconnect - Local wallet metadata recieved",e.data),e.data.metadata&&this.foundExtensionEvent.emit(e.data.metadata)),e.data.type&&"hashconnect-iframe-response"==e.data.type&&(this.debug&&console.log("hashconnect - iFrame wallet metadata recieved",e.data),e.data.metadata&&this.foundIframeEvent.emit(e.data.metadata))},!1),setTimeout(()=>{window.postMessage({type:"hashconnect-query-extension"},"*"),window.parent&&window.parent.postMessage({type:"hashconnect-iframe-query"},"*")},50))}connectToIframeParent(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel iframe connection - no window object"):(this.debug&&console.log("hashconnect - Connecting to iframe parent wallet"),window.parent.postMessage({type:"hashconnect-iframe-pairing",pairingString:this.hcData.pairingString},"*"))}connectToLocalWallet(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel connect to local wallet - no window object"):(this.debug&&console.log("hashconnect - Connecting to local wallet"),window.postMessage({type:"hashconnect-connect-extension",pairingString:this.hcData.pairingString},"*"))}sendEncryptedLocalTransaction(e){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel send local transaction - no window object"):(this.debug&&console.log("hashconnect - sending local transaction",e),window.postMessage({type:"hashconnect-send-local-transaction",message:e},"*"))}decodeLocalTransaction(e){var t=this;return Ge(function*(){return yield t.messages.decode(e,t)})()}getProvider(e,t,o){return new ez(e,this,t,o)}getSigner(e){return new tz(this,e,e.accountToSign,e.topicId)}getPairingByTopic(e){return this.hcData.pairingData.find(o=>o.topic==e)||null}}var Bp=(()=>(function(n){n.Connecting="Connecting",n.Connected="Connected",n.Disconnected="Disconnected",n.Paired="Paired"}(Bp||(Bp={})),Bp))();class cd{constructor(e){this.dialogBelonging=e,this.subscriptions=new I}ngOnInit(){this.data=this.dialogBelonging.CustomData.data,this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"send"===e.ID&&this.dialogBelonging.EventsController.close()}))}}cd.\u0275fac=function(e){return new(e||cd)(ke("dialogBelonging"))},cd.\u0275cmp=Yn({type:cd,selectors:[["app-result-modal"]],decls:5,vars:3,template:function(e,t){1&e&&(K(0,"h2"),me(1,"Result"),te(),K(2,"pre"),me(3),jf(4,"json"),te()),2&e&&(se(3),gn(" ",Gf(4,1,t.data),"\n"))},dependencies:[Ag]});class fr{constructor(){this.pk="302e020100300506032b65700422042093e3a32a53b0878429043643be0c992cec4f3e2aba8ccbde9905192e9326e0d2",this.publicKey="ce1311702fa06b70c76fa36e9bfb52d1ce6f250634f35f8c822259a1ef9a4a38",this.acc="0.0.572001"}init(){var e=this;return Ge(function*(){e.client=wa.forTestnet(),e.client.setOperator(e.acc,e.pk)})()}signAndMakeBytes(e,t){var o=this;return Ge(function*(){const s=io.fromString(o.pk),l=s.publicKey;let u=[new Oe(3)],h=zr.generate(t);e.setNodeAccountIds(u),e.setTransactionId(h);let A=(e=yield e.freeze()).toBytes();const y=yield s.signTransaction(wt.fromBytes(A)),U=e.addSignature(l,y).toBytes();return console.log("Transaction bytes",U),U})()}makeBytes(e,t){return Ge(function*(){let o=zr.generate(t);return e.setTransactionId(o),e.setNodeAccountIds([new Oe(3)]),yield e.freeze(),e.toBytes()})()}signData(e){const t=io.fromString(this.pk),o=t.publicKey;let s=new Uint8Array(Buffer.from(JSON.stringify(e))),l=t.sign(s);return o.verify(s,l),{signature:l,serverSigningAccount:this.acc}}verifyData(e,t,o){const s=fo.fromString(t);let l=new Uint8Array(Buffer.from(JSON.stringify(e)));return s.verify(l,o)}}fr.\u0275fac=function(e){return new(e||fr)},fr.\u0275prov=et({token:fr,factory:fr.\u0275fac,providedIn:"root"});class sr{constructor(e){this.SigningService=e,this.appMetadata={name:"dApp Example",description:"An example hedera dApp",icon:"https://www.hashpack.app/img/logo.svg"},this.state=Bp.Disconnected,this.pairingData=null}initHashconnect(){var e=this;return Ge(function*(){e.hashconnect=new nz(!0),e.setUpHashConnectEvents();let t=yield e.hashconnect.init(e.appMetadata,"testnet",!1);e.topic=t.topic,e.pairingString=t.pairingString,e.pairingData=t.savedPairings[0]})()}setUpHashConnectEvents(){this.hashconnect.foundExtensionEvent.on(e=>{console.log("Found extension",e),this.availableExtension=e}),this.hashconnect.pairingEvent.on(e=>{console.log("Paired with wallet",e),this.pairingData=e.pairingData}),this.hashconnect.connectionStatusChangeEvent.on(e=>{console.log("hashconnect state change event",e),this.state=e})}connectToExtension(){var e=this;return Ge(function*(){e.hashconnect.connectToLocalWallet()})()}sendTransaction(e,t,o=!1,s=!1,l=!1){var u=this;return Ge(function*(){const h={topic:u.topic,byteArray:e,metadata:{accountToSign:t,returnTransaction:o,hideNft:s,getRecord:l}};return yield u.hashconnect.sendTransaction(u.topic,h)})()}requestAccountInfo(){var e=this;return Ge(function*(){let t={topic:e.topic,network:"mainnet",multiAccount:!0};yield e.hashconnect.requestAdditionalAccounts(e.topic,t)})()}disconnect(){this.hashconnect.disconnect(this.pairingData.topic),this.pairingData=null}clearPairings(){this.hashconnect.clearConnectionsAndData(),this.pairingData=null}showResultOverlay(e){const t=new Cr(cd);t.setCustomData({data:e}),t.setConfig({Width:"500px",LayoutType:fa.NONE}),t.setButtons([new p0("Done","send",Xa.SUCCESS)]),t.openDialog$().subscribe(o=>{})}}function rz(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}sr.\u0275fac=function(e){return new(e||sr)(mt(fr))},sr.\u0275prov=et({token:sr,factory:sr.\u0275fac,providedIn:"root"});class ld{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={maxAutomaticTokenAssociations:0,key:"",accountMemo:"",transMemo:"",newPublicKey:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield new K0;t.setAccountId(e.signingAcct),t.setMaxAutomaticTokenAssociations(e.data.maxAutomaticTokenAssociations),t.setAccountMemo(e.data.accountMemo),t.setTransactionMemo(e.data.transMemo),""!=e.data.newPublicKey&&t.setKey(fo.fromString(e.data.newPublicKey));let o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function oz(n,e){if(1&n&&(K(0,"option",9),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function iz(n,e){if(1&n){const t=or();K(0,"div",12)(1,"span")(2,"label"),me(3,"Amount"),te(),K(4,"input",13),xe("ngModelChange",function(s){return In(vn(t).$implicit.amount=s)}),te()()()}if(2&n){const t=e.$implicit;se(4),ae("ngModel",t.amount)}}function sz(n,e){if(1&n){const t=or();K(0,"div"),pt(1,iz,5,1,"div",10),K(2,"button",11),xe("click",function(){return vn(t),In(st().addHbarAllowance())}),me(3,"Add HBAR Allowance"),te()()}if(2&n){const t=st();se(1),ae("ngForOf",t.data.hbarAllowances)}}function az(n,e){if(1&n){const t=or();K(0,"div",12)(1,"span")(2,"label"),me(3,"Token ID"),te(),K(4,"input",13),xe("ngModelChange",function(s){return In(vn(t).$implicit.tokenId=s)}),te()(),K(5,"span")(6,"label"),me(7,"Serial"),te(),K(8,"input",13),xe("ngModelChange",function(s){return In(vn(t).$implicit.serial=s)}),te()()()}if(2&n){const t=e.$implicit;se(4),ae("ngModel",t.tokenId),se(4),ae("ngModel",t.serial)}}function cz(n,e){if(1&n){const t=or();K(0,"div"),pt(1,az,9,2,"div",10),K(2,"button",11),xe("click",function(){return vn(t),In(st().addNFTAllowance())}),me(3,"Add NFT Allowance"),te()()}if(2&n){const t=st();se(1),ae("ngForOf",t.data.nftAllowances)}}function lz(n,e){if(1&n){const t=or();K(0,"div"),Co(1,"div",12),K(2,"button",11),xe("click",function(){return vn(t),In(st().addTokenAllowance())}),me(3,"Add token Allowance"),te()()}}ld.\u0275fac=function(e){return new(e||ld)(ke("dialogBelonging"),ke(sr),ke(fr))},ld.\u0275cmp=Yn({type:ld,selectors:[["app-account-update"]],decls:18,vars:6,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","number","min","0","max","1000",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Account Update"),te(),K(2,"p"),me(3,"Account to update"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,rz,2,3,"option",1),te(),K(6,"h3"),me(7,"New Public Key - WARNING BE CAREFUL WITH THIS ONE"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.newPublicKey=s}),te(),K(9,"h3"),me(10,"Automatic Token Associations"),te(),K(11,"input",3),xe("ngModelChange",function(s){return t.data.maxAutomaticTokenAssociations=s}),te(),K(12,"h3"),me(13,"Account Memo"),te(),K(14,"input",2),xe("ngModelChange",function(s){return t.data.accountMemo=s}),te(),K(15,"h3"),me(16,"Transaction Memo"),te(),K(17,"input",2),xe("ngModelChange",function(s){return t.data.transMemo=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.newPublicKey),se(3),ae("ngModel",t.data.maxAutomaticTokenAssociations),se(3),ae("ngModel",t.data.accountMemo),se(3),ae("ngModel",t.data.transMemo))},dependencies:[pr,Dr,Er,kr,za,Ir,vr,Va,w3,yr]});class ud{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.spenderId="0.0.3183101",this.data={hbarAllowance:!1,hbarAllowances:[],nftAllowance:!1,nftAllowances:[],tokenAllowance:!1,tokenAllowances:[]}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}addHbarAllowance(){this.data.hbarAllowances.push({spenderAccountId:this.spenderId,ownerAccountId:this.signingAcct,amount:0})}addNFTAllowance(){this.data.nftAllowances.push({tokenId:"",serial:0,ownerAccountId:this.signingAcct,spenderAccountId:this.spenderId})}addTokenAllowance(){this.data.tokenAllowances.push({tokenId:"",spenderAccountId:this.spenderId,ownerAccountId:this.signingAcct,amount:0})}send(){var e=this;return Ge(function*(){let t=new j0;e.data.hbarAllowance&&e.data.hbarAllowances.forEach(u=>{t.approveHbarAllowance(u.ownerAccountId,u.spenderAccountId,u.amount)}),e.data.nftAllowance&&e.data.nftAllowances.forEach(u=>{let h=u.tokenId.split("."),A=new It(parseInt(h[0]),parseInt(h[1]),parseInt(h[2])),y=new qo(A,u.serial);t.approveTokenNftAllowance(y,u.ownerAccountId,u.spenderAccountId)}),e.data.tokenAllowance&&e.data.tokenAllowances.forEach(u=>{t.approveTokenAllowance(u.tokenId,u.ownerAccountId,u.spenderAccountId,u.amount)});let o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function uz(n,e){if(1&n&&(K(0,"option",2),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}ud.\u0275fac=function(e){return new(e||ud)(ke("dialogBelonging"),ke(sr),ke(fr))},ud.\u0275cmp=Yn({type:ud,selectors:[["app-allowance-approve"]],decls:22,vars:8,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","checkbox","name","hbarAllowance","id","hbarAllowance",3,"ngModel","ngModelChange"],["for","hbarAllowance"],[4,"ngIf"],["type","checkbox","name","nftAllowance","id","nftAllowance",3,"ngModel","ngModelChange"],["for","nftAllowance"],["type","checkbox","name","tokenAllowance","id","tokenAllowance",3,"ngModel","ngModelChange"],["for","tokenAllowance"],[3,"value","selected"],["class","allowance",4,"ngFor","ngForOf"],[3,"click"],[1,"allowance"],["type","text",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Allowance Approve"),te(),K(2,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(3,oz,2,3,"option",1),te(),K(4,"section")(5,"span")(6,"input",2),xe("ngModelChange",function(s){return t.data.hbarAllowance=s}),te(),K(7,"label",3),me(8,"HBAR Allowance"),te()(),pt(9,sz,4,1,"div",4),te(),K(10,"section")(11,"span")(12,"input",5),xe("ngModelChange",function(s){return t.data.nftAllowance=s}),te(),K(13,"label",6),me(14,"NFT Allowance"),te()(),pt(15,cz,4,1,"div",4),te(),K(16,"section")(17,"span")(18,"input",7),xe("ngModelChange",function(s){return t.data.tokenAllowance=s}),te(),K(19,"label",8),me(20,"Token Allowance"),te()(),pt(21,lz,4,0,"div",4),te()),2&e&&(se(2),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.hbarAllowance),se(3),ae("ngIf",t.data.hbarAllowance),se(3),ae("ngModel",t.data.nftAllowance),se(3),ae("ngIf",t.data.nftAllowance),se(3),ae("ngModel",t.data.tokenAllowance),se(3),ae("ngIf",t.data.tokenAllowance))},dependencies:[pr,Wi,Dr,Er,kr,Fs,Ir,vr,yr],styles:["[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] section[_ngcontent-%COMP%] .allowance[_ngcontent-%COMP%]{border-bottom:solid 1px white;margin-bottom:4px;padding-bottom:4px}"]});class dd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={maxAutomaticTokenAssociations:0,key:"",accountMemo:"",transMemo:"",newPublicKey:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=(new G0).deleteAllTokenNftAllowances(new qo(It.fromString("0.0.29631020"),1),e.signingAcct),o=yield e.SigningService.makeBytes(t,e.signingAcct),l=(wt.fromBytes(o),yield e.HashconnectService.sendTransaction(o,e.signingAcct)),u={response:l,receipt:null};l.success&&(u.receipt=dr.fromBytes(l.receipt)),e.HashconnectService.showResultOverlay(u)})()}}function dz(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function fz(n,e){if(1&n){const t=or();K(0,"p")(1,"input",5),xe("ngModelChange",function(s){return In(vn(t).$implicit.id=s)}),te()()}if(2&n){const t=e.$implicit;se(1),ae("ngModel",t.id)}}dd.\u0275fac=function(e){return new(e||dd)(ke("dialogBelonging"),ke(sr),ke(fr))},dd.\u0275cmp=Yn({type:dd,selectors:[["app-allowance-delete"]],decls:4,vars:2,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Allowance Delete"),te(),K(2,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(3,uz,2,3,"option",1),te()),2&e&&(se(2),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds))},dependencies:[pr,Dr,Er,Ir,vr,yr]});class fd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.tokenIds=[{id:"0.0.3084461"}]}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}addTokenId(){this.tokenIds.push({id:""})}send(){var e=this;return Ge(function*(){let t=yield new cp,o=[];e.tokenIds.forEach(h=>{o.push(h.id)}),t.setTokenIds(o),t.setAccountId(e.signingAcct);let s=yield e.SigningService.makeBytes(t,e.signingAcct),l=yield e.HashconnectService.sendTransaction(s,e.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=dr.fromBytes(l.receipt)),e.HashconnectService.showResultOverlay(u)})()}}function hz(n,e){if(1&n&&(K(0,"option",2),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}fd.\u0275fac=function(e){return new(e||fd)(ke("dialogBelonging"),ke(sr),ke(fr))},fd.\u0275cmp=Yn({type:fd,selectors:[["app-associate-token"]],decls:11,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"primary",3,"click"],[3,"value","selected"],["type","text",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Associate Token"),te(),K(2,"p"),me(3,"Account to associate token to"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,dz,2,3,"option",1),te(),K(6,"p"),me(7,"Token ID"),te(),pt(8,fz,2,1,"p",2),K(9,"button",3),xe("click",function(){return t.addTokenId()}),me(10,"Add Token ID"),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngForOf",t.tokenIds))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class hd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t={url:"test.com",data:{token:"fufhr9e84hf9w8fehw9e8fhwo9e8fw938fw3o98fhjw3of"}},o=e.SigningService.signData(t),s=yield e.HashconnectService.hashconnect.authenticate(e.HashconnectService.topic,e.signingAcct,o.serverSigningAccount,o.signature,t);s.success?fetch("https://testnet.mirrornode.hedera.com/api/v1/accounts/"+e.signingAcct,{method:"GET"}).then(function(){var u=Ge(function*(h){if(h.ok){let A=yield h.json();if(console.log("Got account info",A),!s.signedPayload)return;let y=e.SigningService.verifyData(s.signedPayload.originalPayload,e.SigningService.publicKey,s.signedPayload.serverSignature),D=e.SigningService.verifyData(s.signedPayload,A.key.key,s.userSignature);e.HashconnectService.showResultOverlay(y&&D?"Authenticated: true":"Authenticated: false")}else alert("Error getting public key")});return function(h){return u.apply(this,arguments)}}()):e.HashconnectService.showResultOverlay(s)})()}}function pz(n,e){if(1&n&&(K(0,"option",5),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function Az(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Amount"),te(),K(3,"input",6),xe("ngModelChange",function(s){return vn(t),In(st().data.amount=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.data.amount)}}function gz(n,e){if(1&n){const t=or();K(0,"div")(1,"input",2),xe("ngModelChange",function(s){return In(vn(t).$implicit.number=s)}),te()()}if(2&n){const t=e.$implicit;se(1),ae("ngModel",t.number)}}function mz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Serials"),te(),pt(3,gz,2,1,"div",7),K(4,"button",8),xe("click",function(){return vn(t),In(st().addSerial())}),me(5,"Add Serial"),te()()}if(2&n){const t=st();se(3),ae("ngForOf",t.data.serials)}}hd.\u0275fac=function(e){return new(e||hd)(ke("dialogBelonging"),ke(sr),ke(fr))},hd.\u0275cmp=Yn({type:hd,selectors:[["app-authenticate"]],decls:6,vars:2,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Authenticate User"),te(),K(2,"p"),me(3,"Account to authenticate"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,hz,2,3,"option",1),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds))},dependencies:[pr,Dr,Er,Ir,vr,yr]});class pd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",amount:1,isNft:!1,serials:[{number:0}]}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}addSerial(){this.data.serials.push({number:0})}send(){var e=this;return Ge(function*(){let t=(new lp).setTokenId(e.data.tokenId);if(e.data.isNft){if(e.data.isNft){let u=e.data.serials.map(h=>h.number);t.setSerials(u)}}else t.setAmount(e.data.amount);let o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function yz(n,e){if(1&n&&(K(0,"option",10),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function bz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Max Supply"),te(),K(3,"input",7),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.maxSupply=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.tokenData.maxSupply)}}function _z(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Decimals"),te(),K(3,"input",7),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.decimals=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.tokenData.decimals)}}function wz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Royalty Percentage"),te(),K(3,"input",11),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.royaltyPercent=s)}),te(),K(4,"h3"),me(5,"Royalty Fallback (receiver pays if fungible exchanged is 0)"),te(),K(6,"input",11),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fallbackFee=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.tokenData.royaltyPercent),se(3),ae("ngModel",t.tokenData.fallbackFee)}}function vz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Fixed Fee"),te(),K(3,"input",11),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fixedFee=s)}),te(),K(4,"h3"),me(5,"Fixed Fee Token ID"),te(),K(6,"input",2),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fixedTokenId=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.tokenData.fixedFee),se(3),ae("ngModel",t.tokenData.fixedTokenId)}}function Iz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Fractional Fee Percent"),te(),K(3,"input",11),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fractionalFee.percent=s)}),te(),K(4,"h3"),me(5,"Fractional Fee Max"),te(),K(6,"input",12),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fractionalFee.max=s)}),te(),K(7,"h3"),me(8,"Fractional Fee Min"),te(),K(9,"input",12),xe("ngModelChange",function(s){return vn(t),In(st().tokenData.fractionalFee.min=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.tokenData.fractionalFee.percent),se(3),ae("ngModel",t.tokenData.fractionalFee.max),se(3),ae("ngModel",t.tokenData.fractionalFee.min)}}pd.\u0275fac=function(e){return new(e||pd)(ke("dialogBelonging"),ke(sr),ke(fr))},pd.\u0275cmp=Yn({type:pd,selectors:[["app-burn-token"]],decls:14,vars:6,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngIf"],[3,"value","selected"],["type","number","min","1",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"outline",3,"click"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Burn Tokens"),te(),K(2,"p"),me(3,"Account to sign (token supply account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,pz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3")(10,"input",3),xe("ngModelChange",function(s){return t.data.isNft=s}),te(),me(11," Is NFT\n"),te(),pt(12,Az,4,1,"div",4),pt(13,mz,6,1,"div",4)),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(2),ae("ngModel",t.data.isNft),se(2),ae("ngIf",!t.data.isNft),se(1),ae("ngIf",t.data.isNft))},dependencies:[pr,Wi,Dr,Er,kr,za,Fs,Ir,vr,Va,yr]});class Ad{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.type="Fungible",this.supplyType="Infinite",this.tokenData={name:"TokenTest"+Math.random(),symbol:"",type:bi.FungibleCommon,supplyType:_i.Infinite,initialSupply:0,maxSupply:0,includeRoyalty:!1,includeFixedFee:!1,includeFractionalFee:!1,royaltyPercent:1,fixedFee:0,fixedTokenId:"",fractionalFee:{percent:0,max:0,min:0},fallbackFee:0,decimals:0}}ngOnInit(){let e=Math.floor(500*Math.random());this.tokenData.name="HC-TokenTest"+e,this.tokenData.symbol="HC-"+e,this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}changeType(e){this.tokenData.type="Fungible"==e?bi.FungibleCommon:bi.NonFungibleUnique}changeSupplyType(e){this.tokenData.supplyType="Infinite"==e?_i.Infinite:_i.Finite}send(){var e=this;return Ge(function*(){let t=yield window.fetch("https://testnet.mirrornode.hedera.com/api/v1/accounts/"+e.signingAcct,{method:"GET"});t=yield t.json();let o=[],s=yield fo.fromString(t.key.key),l=yield(new up).setTokenName(e.tokenData.name).setTokenSymbol(e.tokenData.symbol).setTokenType(e.tokenData.type).setDecimals(0).setSupplyType(e.tokenData.supplyType).setInitialSupply(e.tokenData.initialSupply).setTreasuryAccountId(e.signingAcct).setAdminKey(s).setSupplyKey(s).setWipeKey(s).setAutoRenewAccountId(e.signingAcct);if(e.tokenData.supplyType!=_i.Infinite&&l.setMaxSupply(e.tokenData.maxSupply),e.tokenData.type==bi.FungibleCommon&&l.setDecimals(e.tokenData.decimals),e.tokenData.includeRoyalty){let ce=yield(new cc).setFeeCollectorAccountId(e.signingAcct).setHbarAmount(Nt.from(e.tokenData.fallbackFee,zn.Hbar)),ye=yield(new hu).setNumerator(e.tokenData.royaltyPercent).setDenominator(100).setFeeCollectorAccountId(e.signingAcct).setFallbackFee(ce);o.push(ye)}if(e.tokenData.includeFractionalFee){let ce=yield(new fu).setFeeCollectorAccountId(e.signingAcct).setNumerator(e.tokenData.fractionalFee.percent).setDenominator(100).setMax(e.tokenData.fractionalFee.max).setMin(e.tokenData.fractionalFee.min);o.push(ce)}if(e.tokenData.includeFixedFee){let ce=yield(new cc).setFeeCollectorAccountId(e.signingAcct);e.tokenData.fixedTokenId&&""!=e.tokenData.fixedTokenId?(ce.setDenominatingTokenId(e.tokenData.fixedTokenId),ce.setAmount(e.tokenData.fixedFee)):ce.setHbarAmount(Nt.from(e.tokenData.fixedFee,zn.Hbar)),o.push(ce)}l.setCustomFees(o);const u=7776e3,A=Math.round(Date.now()/1e3)+u,y=new Sn(A,0);console.log({timestamp:A}),console.log({timestampObj:y}),l.setExpirationTime(y),l.setAutoRenewPeriod(u);let D=yield e.SigningService.makeBytes(l,e.signingAcct),U=yield e.HashconnectService.sendTransaction(D,e.signingAcct),q={response:U,receipt:null};U.success&&(q.receipt=dr.fromBytes(U.receipt)),e.HashconnectService.showResultOverlay(q)})()}}function Cz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Ad.\u0275fac=function(e){return new(e||Ad)(ke("dialogBelonging"),ke(sr),ke(fr))},Ad.\u0275cmp=Yn({type:Ad,selectors:[["app-create-token"]],decls:43,vars:15,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["value","Fungible"],["value","NFT"],["value","Infinite"],["value","Finite"],["type","number","min","0",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"value","selected"],["type","number","min","1","max","100",3,"ngModel","ngModelChange"],["type","number","min","0","max","100",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Create a token"),te(),K(2,"h3"),me(3,"Owner"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,yz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token Name"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.tokenData.name=s}),te(),K(9,"h3"),me(10,"Token Symbol"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.tokenData.symbol=s}),te(),K(12,"h3"),me(13,"Token Type"),te(),K(14,"select",0),xe("ngModelChange",function(s){return t.type=s})("ngModelChange",function(s){return t.changeType(s)}),K(15,"option",3),me(16,"Fungible"),te(),K(17,"option",4),me(18,"Non-Fungible"),te()(),K(19,"h3"),me(20,"Token Supply Type"),te(),K(21,"select",0),xe("ngModelChange",function(s){return t.supplyType=s})("ngModelChange",function(s){return t.changeSupplyType(s)}),K(22,"option",5),me(23,"Infinite"),te(),K(24,"option",6),me(25,"Finite"),te()(),K(26,"h3"),me(27,"Initial Supply"),te(),K(28,"input",7),xe("ngModelChange",function(s){return t.tokenData.initialSupply=s}),te(),pt(29,bz,4,1,"div",8),pt(30,_z,4,1,"div",8),K(31,"h3")(32,"input",9),xe("ngModelChange",function(s){return t.tokenData.includeRoyalty=s}),te(),me(33," Include Royalty\n"),te(),pt(34,wz,7,2,"div",8),K(35,"h3")(36,"input",9),xe("ngModelChange",function(s){return t.tokenData.includeFixedFee=s}),te(),me(37," Include Fixed Fee\n"),te(),pt(38,vz,7,2,"div",8),K(39,"h3")(40,"input",9),xe("ngModelChange",function(s){return t.tokenData.includeFractionalFee=s}),te(),me(41," Include Fractional Fee\n"),te(),pt(42,Iz,10,3,"div",8)),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.tokenData.name),se(3),ae("ngModel",t.tokenData.symbol),se(3),ae("ngModel",t.type),se(7),ae("ngModel",t.supplyType),se(7),ae("ngModel",t.tokenData.initialSupply),se(1),ae("ngIf","Infinite"!=t.supplyType),se(1),ae("ngIf","Fungible"==t.type),se(2),ae("ngModel",t.tokenData.includeRoyalty),se(2),ae("ngIf",t.tokenData.includeRoyalty),se(2),ae("ngModel",t.tokenData.includeFixedFee),se(2),ae("ngIf",t.tokenData.includeFixedFee),se(2),ae("ngModel",t.tokenData.includeFractionalFee),se(2),ae("ngIf",t.tokenData.includeFractionalFee))},dependencies:[pr,Wi,Dr,Er,kr,za,Fs,Ir,vr,Va,w3,yr],styles:["[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-top:8px}"]});class gd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new dp).setTokenId(e.data.tokenId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Tz(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function kz(n,e){if(1&n){const t=or();K(0,"p")(1,"input",5),xe("ngModelChange",function(s){return In(vn(t).$implicit.id=s)}),te()()}if(2&n){const t=e.$implicit;se(1),ae("ngModel",t.id)}}gd.\u0275fac=function(e){return new(e||gd)(ke("dialogBelonging"),ke(sr),ke(fr))},gd.\u0275cmp=Yn({type:gd,selectors:[["app-delete-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Delete Token"),te(),K(2,"h3"),me(3,"Delete From"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Cz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class md{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.tokenIds=[{id:"0.0.3084461"}]}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}addTokenId(){this.tokenIds.push({id:""})}send(){var e=this;return Ge(function*(){let t=yield new fp,o=[];e.tokenIds.forEach(h=>{o.push(h.id)}),t.setTokenIds(o),t.setAccountId(e.signingAcct);let s=yield e.SigningService.makeBytes(t,e.signingAcct),l=yield e.HashconnectService.sendTransaction(s,e.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=dr.fromBytes(l.receipt)),e.HashconnectService.showResultOverlay(u)})()}}function Dz(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}md.\u0275fac=function(e){return new(e||md)(ke("dialogBelonging"),ke(sr),ke(fr))},md.\u0275cmp=Yn({type:md,selectors:[["app-disassociate-token"]],decls:11,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"primary",3,"click"],[3,"value","selected"],["type","text",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Disassociate Token"),te(),K(2,"p"),me(3,"Account to disassociate token to"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Tz,2,3,"option",1),te(),K(6,"p"),me(7,"Token ID"),te(),pt(8,kz,2,1,"p",2),K(9,"button",3),xe("click",function(){return t.addTokenId()}),me(10,"Add Token ID"),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngForOf",t.tokenIds))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class yd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.fileContent="608060405234801561001057600080fd5b50604051620007403803806200074083398181016040528101906100349190610212565b8060008360405161004591906102b5565b90815260200160405180910390208190555050506102cc565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6100c58261007c565b810181811067ffffffffffffffff821117156100e4576100e361008d565b5b80604052505050565b60006100f761005e565b905061010382826100bc565b919050565b600067ffffffffffffffff8211156101235761012261008d565b5b61012c8261007c565b9050602081019050919050565b60005b8381101561015757808201518184015260208101905061013c565b83811115610166576000848401525b50505050565b600061017f61017a84610108565b6100ed565b90508281526020810184848401111561019b5761019a610077565b5b6101a6848285610139565b509392505050565b600082601f8301126101c3576101c2610072565b5b81516101d384826020860161016c565b91505092915050565b6000819050919050565b6101ef816101dc565b81146101fa57600080fd5b50565b60008151905061020c816101e6565b92915050565b6000806040838503121561022957610228610068565b5b600083015167ffffffffffffffff8111156102475761024661006d565b5b610253858286016101ae565b9250506020610264858286016101fd565b9150509250929050565b600081519050919050565b600081905092915050565b600061028f8261026e565b6102998185610279565b93506102a9818560208601610139565b80840191505092915050565b60006102c18284610284565b915081905092915050565b61046480620002dc6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806314b3ee68146100465780639f11592114610076578063fd8111e914610092575b600080fd5b610060600480360381019061005b9190610298565b6100c2565b60405161006d91906102fa565b60405180910390f35b610090600480360381019061008b9190610341565b6100e9565b005b6100ac60048036038101906100a79190610298565b610110565b6040516100b991906102fa565b60405180910390f35b600080826040516100d39190610417565b9081526020016040518091039020549050919050565b806000836040516100fa9190610417565b9081526020016040518091039020819055505050565b6000818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101a58261015c565b810181811067ffffffffffffffff821117156101c4576101c361016d565b5b80604052505050565b60006101d761013e565b90506101e3828261019c565b919050565b600067ffffffffffffffff8211156102035761020261016d565b5b61020c8261015c565b9050602081019050919050565b82818337600083830152505050565b600061023b610236846101e8565b6101cd565b90508281526020810184848401111561025757610256610157565b5b610262848285610219565b509392505050565b600082601f83011261027f5761027e610152565b5b813561028f848260208601610228565b91505092915050565b6000602082840312156102ae576102ad610148565b5b600082013567ffffffffffffffff8111156102cc576102cb61014d565b5b6102d88482850161026a565b91505092915050565b6000819050919050565b6102f4816102e1565b82525050565b600060208201905061030f60008301846102eb565b92915050565b61031e816102e1565b811461032957600080fd5b50565b60008135905061033b81610315565b92915050565b6000806040838503121561035857610357610148565b5b600083013567ffffffffffffffff8111156103765761037561014d565b5b6103828582860161026a565b92505060206103938582860161032c565b9150509250929050565b600081519050919050565b600081905092915050565b60005b838110156103d15780820151818401526020810190506103b6565b838111156103e0576000848401525b50505050565b60006103f18261039d565b6103fb81856103a8565b935061040b8185602086016103b3565b80840191505092915050565b600061042382846103e6565b91508190509291505056fea264697066735822122049e6ca88d0242a5a423ce392b61870ac108ba49ce39c259ea7620a60ac3c6b3664736f6c634300080b0033",this.fileId=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new Z0).setFileId(e.fileId).setContents(e.fileContent),o=yield e.SigningService.signAndMakeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Ez(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}yd.\u0275fac=function(e){return new(e||yd)(ke("dialogBelonging"),ke(sr),ke(fr))},yd.\u0275cmp=Yn({type:yd,selectors:[["app-file-append"]],decls:16,vars:4,consts:[["href","https://hedera.com/blog/how-to-deploy-smart-contracts-on-hedera-part-1-a-simple-getter-and-setter-contract","target","_blank"],[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"File Append"),te(),K(2,"p"),me(3,"The default file content is the contract code from the "),K(4,"a",0),me(5,"Hedera smart contract tutorial"),te()(),K(6,"p"),me(7,"From: "),K(8,"select",1),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(9,Dz,2,3,"option",2),te()(),K(10,"p"),me(11," File ID: "),K(12,"input",3),xe("ngModelChange",function(s){return t.fileId=s}),te()(),K(13,"p"),me(14," Content: "),K(15,"input",3),xe("ngModelChange",function(s){return t.fileContent=s}),te()()),2&e&&(se(8),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.fileId),se(3),ae("ngModel",t.fileContent))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class bd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.fileContent="608060405234801561001057600080fd5b50604051620007403803806200074083398181016040528101906100349190610212565b8060008360405161004591906102b5565b90815260200160405180910390208190555050506102cc565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6100c58261007c565b810181811067ffffffffffffffff821117156100e4576100e361008d565b5b80604052505050565b60006100f761005e565b905061010382826100bc565b919050565b600067ffffffffffffffff8211156101235761012261008d565b5b61012c8261007c565b9050602081019050919050565b60005b8381101561015757808201518184015260208101905061013c565b83811115610166576000848401525b50505050565b600061017f61017a84610108565b6100ed565b90508281526020810184848401111561019b5761019a610077565b5b6101a6848285610139565b509392505050565b600082601f8301126101c3576101c2610072565b5b81516101d384826020860161016c565b91505092915050565b6000819050919050565b6101ef816101dc565b81146101fa57600080fd5b50565b60008151905061020c816101e6565b92915050565b6000806040838503121561022957610228610068565b5b600083015167ffffffffffffffff8111156102475761024661006d565b5b610253858286016101ae565b9250506020610264858286016101fd565b9150509250929050565b600081519050919050565b600081905092915050565b600061028f8261026e565b6102998185610279565b93506102a9818560208601610139565b80840191505092915050565b60006102c18284610284565b915081905092915050565b61046480620002dc6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806314b3ee68146100465780639f11592114610076578063fd8111e914610092575b600080fd5b610060600480360381019061005b9190610298565b6100c2565b60405161006d91906102fa565b60405180910390f35b610090600480360381019061008b9190610341565b6100e9565b005b6100ac60048036038101906100a79190610298565b610110565b6040516100b991906102fa565b60405180910390f35b600080826040516100d39190610417565b9081526020016040518091039020549050919050565b806000836040516100fa9190610417565b9081526020016040518091039020819055505050565b6000818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101a58261015c565b810181811067ffffffffffffffff821117156101c4576101c361016d565b5b80604052505050565b60006101d761013e565b90506101e3828261019c565b919050565b600067ffffffffffffffff8211156102035761020261016d565b5b61020c8261015c565b9050602081019050919050565b82818337600083830152505050565b600061023b610236846101e8565b6101cd565b90508281526020810184848401111561025757610256610157565b5b610262848285610219565b509392505050565b600082601f83011261027f5761027e610152565b5b813561028f848260208601610228565b91505092915050565b6000602082840312156102ae576102ad610148565b5b600082013567ffffffffffffffff8111156102cc576102cb61014d565b5b6102d88482850161026a565b91505092915050565b6000819050919050565b6102f4816102e1565b82525050565b600060208201905061030f60008301846102eb565b92915050565b61031e816102e1565b811461032957600080fd5b50565b60008135905061033b81610315565b92915050565b6000806040838503121561035857610357610148565b5b600083013567ffffffffffffffff8111156103765761037561014d565b5b6103828582860161026a565b92505060206103938582860161032c565b9150509250929050565b600081519050919050565b600081905092915050565b60005b838110156103d15780820151818401526020810190506103b6565b838111156103e0576000848401525b50505050565b60006103f18261039d565b6103fb81856103a8565b935061040b8185602086016103b3565b80840191505092915050565b600061042382846103e6565b91508190509291505056fea264697066735822122049e6ca88d0242a5a423ce392b61870ac108ba49ce39c259ea7620a60ac3c6b3664736f6c634300080b0033"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new $0).setContents(e.fileContent),o=yield e.SigningService.signAndMakeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Mz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}bd.\u0275fac=function(e){return new(e||bd)(ke("dialogBelonging"),ke(sr),ke(fr))},bd.\u0275cmp=Yn({type:bd,selectors:[["app-file-create"]],decls:13,vars:3,consts:[["href","https://hedera.com/blog/how-to-deploy-smart-contracts-on-hedera-part-1-a-simple-getter-and-setter-contract","target","_blank"],[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"File Create"),te(),K(2,"p"),me(3,"The default file content is the contract code from the "),K(4,"a",0),me(5,"Hedera smart contract tutorial"),te()(),K(6,"p"),me(7,"From: "),K(8,"select",1),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(9,Ez,2,3,"option",2),te()(),K(10,"p"),me(11," Content: "),K(12,"input",3),xe("ngModelChange",function(s){return t.fileContent=s}),te()()),2&e&&(se(8),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.fileContent))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class _d{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.topicMemo="Test topic",this.memo="test memo",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new Ip).setTopicMemo(e.topicMemo).setTransactionMemo(e.memo),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function xz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}_d.\u0275fac=function(e){return new(e||_d)(ke("dialogBelonging"),ke(sr),ke(fr))},_d.\u0275cmp=Yn({type:_d,selectors:[["app-hcs-create-topic"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Create Topic"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Mz,2,3,"option",1),te()(),K(6,"p"),me(7," Topic Name: "),K(8,"input",2),xe("ngModelChange",function(s){return t.topicMemo=s}),te()(),K(9,"p"),me(10," Transaction Memo: "),K(11,"input",2),xe("ngModelChange",function(s){return t.memo=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.topicMemo),se(3),ae("ngModel",t.memo))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class wd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="test memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new Cp).setTopicId(e.topicId).setTransactionMemo(e.memo),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Oz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}wd.\u0275fac=function(e){return new(e||wd)(ke("dialogBelonging"),ke(sr),ke(fr))},wd.\u0275cmp=Yn({type:wd,selectors:[["app-hcs-delete-topic"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Delete Topic"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,xz,2,3,"option",1),te()(),K(6,"p"),me(7," Topic ID: "),K(8,"input",2),xe("ngModelChange",function(s){return t.topicId=s}),te()(),K(9,"p"),me(10," Transaction Memo: "),K(11,"input",2),xe("ngModelChange",function(s){return t.memo=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.topicId),se(3),ae("ngModel",t.memo))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class vd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.message="Topic message",this.memo="test memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new kp).setMessage(e.message).setTopicId(e.topicId).setTransactionMemo(e.memo),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Sz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}vd.\u0275fac=function(e){return new(e||vd)(ke("dialogBelonging"),ke(sr),ke(fr))},vd.\u0275cmp=Yn({type:vd,selectors:[["app-hcs-submit-message"]],decls:15,vars:5,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Submit Message"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Oz,2,3,"option",1),te()(),K(6,"p"),me(7," Topic Id: "),K(8,"input",2),xe("ngModelChange",function(s){return t.topicId=s}),te()(),K(9,"p"),me(10," Message: "),K(11,"input",2),xe("ngModelChange",function(s){return t.message=s}),te()(),K(12,"p"),me(13," Transaction Memo: "),K(14,"input",2),xe("ngModelChange",function(s){return t.memo=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.topicId),se(3),ae("ngModel",t.message),se(3),ae("ngModel",t.memo))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Id{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="test memo",this.transMemo="Updated topic memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new Dp).setTopicId(e.topicId).setTopicMemo(e.transMemo).setTransactionMemo(e.memo),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Bz(n,e){if(1&n&&(K(0,"option",6),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function Nz(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Metadata"),te(),K(3,"input",7),xe("ngModelChange",function(s){return vn(t),In(st().data.metadata=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.data.metadata)}}Id.\u0275fac=function(e){return new(e||Id)(ke("dialogBelonging"),ke(sr),ke(fr))},Id.\u0275cmp=Yn({type:Id,selectors:[["app-hcs-update-topic"]],decls:15,vars:5,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Update Topic"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Sz,2,3,"option",1),te()(),K(6,"p"),me(7," Topic ID: "),K(8,"input",2),xe("ngModelChange",function(s){return t.topicId=s}),te()(),K(9,"p"),me(10," New Topic Memo: "),K(11,"input",2),xe("ngModelChange",function(s){return t.transMemo=s}),te()(),K(12,"p"),me(13," Transaction Memo: "),K(14,"input",2),xe("ngModelChange",function(s){return t.memo=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.topicId),se(3),ae("ngModel",t.transMemo),se(3),ae("ngModel",t.memo))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Cd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",amount:1,isNft:!1,metadata:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new mp).setTokenId(e.data.tokenId);if(e.data.isNft){if(e.data.isNft){let u=0;for(;u{"cancel"===e.ID&&this.dialogBelonging.EventsController.close()})),this.HashconnectService.hashconnect.pairingEvent.on(e=>{console.log("Pairing event callback "),console.log(e),this.dialogBelonging.EventsController.close()}),new Pz.AwesomeQR({text:this.HashconnectService.pairingString,size:400,margin:16,maskPattern:110,colorLight:"#fff"}).draw().then(e=>{e&&(this.qr_url=e.toString())})}pairWithExtension(){this.HashconnectService.connectToExtension()}}function Rz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Td.\u0275fac=function(e){return new(e||Td)(ke("dialogBelonging"),ke(sr))},Td.\u0275cmp=Yn({type:Td,selectors:[["app-pairing"]],decls:10,vars:2,consts:[["type","text",3,"ngModel","ngModelChange"],[1,"primary",3,"click"],[3,"src"]],template:function(e,t){1&e&&(K(0,"p"),me(1,"Pair with code: "),te(),K(2,"input",0),xe("ngModelChange",function(s){return t.HashconnectService.pairingString=s}),te(),K(3,"p"),me(4,"Pair with installed extension: "),te(),K(5,"button",1),xe("click",function(){return t.pairWithExtension()}),me(6,"Pair with Hashpack"),te(),K(7,"p"),me(8,"Pair with QR:"),te(),Co(9,"img",2)),2&e&&(se(2),ae("ngModel",t.HashconnectService.pairingString),se(7),ae("src",t.qr_url,B6))},dependencies:[kr,vr,yr]});class kd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new yp).setTokenId(e.data.tokenId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Fz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}kd.\u0275fac=function(e){return new(e||kd)(ke("dialogBelonging"),ke(sr),ke(fr))},kd.\u0275cmp=Yn({type:kd,selectors:[["app-pause-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Pause Token"),te(),K(2,"p"),me(3,"Account to sign (token pause key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Rz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Dd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={range:100}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new ip).setRange(e.data.range),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Lz(n,e){if(1&n&&(K(0,"option",5),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function Uz(n,e){if(1&n){const t=or();K(0,"div")(1,"p"),me(2,"To HBAR Amount: "),K(3,"input",6),xe("ngModelChange",function(s){return vn(t),In(st().data.transfer.to_hbar_amount=s)}),te()(),K(4,"p"),me(5,"From HBAR Amount: "),K(6,"input",6),xe("ngModelChange",function(s){return vn(t),In(st().data.transfer.from_hbar_amount=s)}),te()()()}if(2&n){const t=st();se(3),ae("ngModel",t.data.transfer.to_hbar_amount),se(3),ae("ngModel",t.data.transfer.from_hbar_amount)}}function jz(n,e){if(1&n){const t=or();K(0,"div")(1,"p"),me(2,"Token ID: "),K(3,"input",9),xe("ngModelChange",function(s){return In(vn(t).$implicit.tokenId=s)}),te()(),K(4,"p"),me(5,"Token Amount: "),K(6,"input",6),xe("ngModelChange",function(s){return In(vn(t).$implicit.amount=s)}),te()(),K(7,"p"),me(8,"Sender ID: "),K(9,"input",9),xe("ngModelChange",function(s){return In(vn(t).$implicit.accountId=s)}),te()()()}if(2&n){const t=e.$implicit;se(3),ae("ngModel",t.tokenId),se(3),ae("ngModel",t.amount),se(3),ae("ngModel",t.accountId)}}function Gz(n,e){if(1&n){const t=or();K(0,"div"),pt(1,jz,10,3,"div",7),K(2,"button",8),xe("click",function(){return vn(t),In(st().addTokenTransfer())}),me(3,"Add Token Transaction"),te()()}if(2&n){const t=st();se(1),ae("ngForOf",t.data.transfer.tokenTransfers)}}function Qz(n,e){if(1&n){const t=or();K(0,"div")(1,"p"),me(2,"Token ID: "),K(3,"input",9),xe("ngModelChange",function(s){return In(vn(t).$implicit.tokenId=s)}),te()(),K(4,"p"),me(5,"Serial Number: "),K(6,"input",10),xe("ngModelChange",function(s){return In(vn(t).$implicit.serialNumber=s)}),te()(),K(7,"p"),me(8,"Sender ID: "),K(9,"input",9),xe("ngModelChange",function(s){return In(vn(t).$implicit.sender=s)}),te()(),K(10,"p"),me(11,"Receiver ID: "),K(12,"input",9),xe("ngModelChange",function(s){return In(vn(t).$implicit.receiver=s)}),te()()()}if(2&n){const t=e.$implicit;se(3),ae("ngModel",t.tokenId),se(3),ae("ngModel",t.serialNumber),se(3),ae("ngModel",t.sender),se(3),ae("ngModel",t.receiver)}}function Hz(n,e){if(1&n){const t=or();K(0,"div"),pt(1,Qz,13,4,"div",7),K(2,"button",8),xe("click",function(){return vn(t),In(st().addNFTTransfer())}),me(3,"Add NFT Transfer"),te(),K(4,"div")(5,"input",2),xe("ngModelChange",function(s){return vn(t),In(st().data.transfer.hideNfts=s)}),te(),me(6," Hide NFT Info "),te()()}if(2&n){const t=st();se(1),ae("ngForOf",t.data.transfer.nftTransfers),se(4),ae("ngModel",t.data.transfer.hideNfts)}}Dd.\u0275fac=function(e){return new(e||Dd)(ke("dialogBelonging"),ke(sr),ke(fr))},Dd.\u0275cmp=Yn({type:Dd,selectors:[["app-prng-transaction"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"pRNG Transaction"),te(),K(2,"p"),me(3,"Account to sign (token pause key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Fz,2,3,"option",1),te(),K(6,"h3"),me(7,"Range (highest number)"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.range=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.range))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Ed{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.data={transfer:{include_hbar:!0,to_hbar_amount:1,from_hbar_amount:-1,toAcc:"0.0.3183101",include_token:!1,return_transaction:!1,tokenTransfers:[{tokenId:"0.0.3084461",accountId:"",amount:1}],include_nft:!1,hideNfts:!1,nftTransfers:[{tokenId:"0.0.14658561",serialNumber:0,sender:"",receiver:""}]},tokenAssociate:{}}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new Mp).setTransactionMemo(e.memo);e.data.transfer.include_hbar&&t.addHbarTransfer(e.data.transfer.toAcc,Nt.from(e.data.transfer.to_hbar_amount,zn.Hbar)).addHbarTransfer(e.signingAcct,Nt.from(e.data.transfer.from_hbar_amount,zn.Hbar)),e.data.transfer.include_token&&e.data.transfer.tokenTransfers.forEach(u=>{t.addTokenTransfer(u.tokenId,u.accountId,u.amount)}),e.data.transfer.include_nft&&e.data.transfer.nftTransfers.forEach(u=>{t.addNftTransfer(u.tokenId,u.serialNumber,u.sender,u.receiver)});let o=yield e.SigningService.signAndMakeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,e.data.transfer.return_transaction,e.data.transfer.hideNfts),l={response:s,receipt:null};s.success&&!e.data.transfer.return_transaction&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}addTokenTransfer(){this.data.transfer.tokenTransfers.push({tokenId:"0.0.3084461",accountId:"",amount:1})}addNFTTransfer(){this.data.transfer.nftTransfers.push({tokenId:"0.0.14658561",serialNumber:0,sender:"",receiver:""})}}function zz(n,e){if(1&n&&(K(0,"option",2),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Ed.\u0275fac=function(e){return new(e||Ed)(ke("dialogBelonging"),ke(sr),ke(fr))},Ed.\u0275cmp=Yn({type:Ed,selectors:[["app-send-transaction"]],decls:32,vars:11,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","checkbox","name","","id","",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"],["type","number","name","","id","","max","5","min","-5",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"outline",3,"click"],["type","text","name","","id","",3,"ngModel","ngModelChange"],["type","number","name","","id","","max","9999999","min","0",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Send transaction"),te(),K(2,"div")(3,"p"),me(4),te(),K(5,"p"),me(6,"From: "),K(7,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(8,Lz,2,3,"option",1),te()(),Co(9,"hr"),K(10,"p")(11,"input",2),xe("ngModelChange",function(s){return t.data.transfer.include_hbar=s}),te(),me(12," HBAR Transfer "),te(),pt(13,Uz,7,2,"div",3),Co(14,"hr"),K(15,"p")(16,"input",2),xe("ngModelChange",function(s){return t.data.transfer.include_token=s}),te(),me(17," Token Transfer "),te(),pt(18,Gz,4,1,"div",3),Co(19,"hr"),K(20,"p")(21,"input",2),xe("ngModelChange",function(s){return t.data.transfer.include_nft=s}),te(),me(22," NFT Transfer "),te(),pt(23,Hz,7,2,"div",3),Co(24,"hr"),K(25,"p"),me(26,"Memo: "),K(27,"input",4),xe("ngModelChange",function(s){return t.memo=s}),te()(),Co(28,"hr"),K(29,"p")(30,"input",2),xe("ngModelChange",function(s){return t.data.transfer.return_transaction=s}),te(),me(31," Return transaction instead of execute "),te()()),2&e&&(se(4),gn("To: ",t.data.transfer.toAcc,""),se(3),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.transfer.include_hbar),se(2),ae("ngIf",t.data.transfer.include_hbar),se(3),ae("ngModel",t.data.transfer.include_token),se(2),ae("ngIf",t.data.transfer.include_token),se(3),ae("ngModel",t.data.transfer.include_nft),se(2),ae("ngIf",t.data.transfer.include_nft),se(4),ae("ngModel",t.memo),se(3),ae("ngModel",t.data.transfer.return_transaction))},dependencies:[pr,Wi,Dr,Er,kr,za,Fs,Ir,vr,Va,w3,yr]});class Md{constructor(e,t){this.dialogBelonging=e,this.HashconnectService=t,this.subscriptions=new I,this.data={}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield e.HashconnectService.hashconnect.sign(e.HashconnectService.topic,e.signingAcct,{test:"ABC"});e.HashconnectService.showResultOverlay(t)})()}}function Vz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Md.\u0275fac=function(e){return new(e||Md)(ke("dialogBelonging"),ke(sr))},Md.\u0275cmp=Yn({type:Md,selectors:[["app-sign"]],decls:6,vars:2,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Sign"),te(),K(2,"p"),me(3,"Account to sign"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,zz,2,3,"option",1),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds))},dependencies:[pr,Dr,Er,Ir,vr,yr]});class xd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.contractId="0.0.30863001"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let o=yield(new W0).setContractId(e.contractId).setGas(1e5).setFunction("getMobileNumber",(new du).addString("Alice")).setMaxQueryPayment(new Nt(1e-8)).toBytes(),l={response:yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1,!1,!0),receipt:null};e.HashconnectService.showResultOverlay(l)})()}}function Kz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}xd.\u0275fac=function(e){return new(e||xd)(ke("dialogBelonging"),ke(sr),ke(fr))},xd.\u0275cmp=Yn({type:xd,selectors:[["app-smartcontract-call"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Smart Contract Call"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Vz,2,3,"option",1),te()(),K(6,"p"),me(7," Contract ID "),K(8,"input",2),xe("ngModelChange",function(s){return t.contractId=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.contractId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Od{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.bytecodeFileId="0.0.30861882"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new q0).setBytecodeFileId(e.bytecodeFileId).setGas(1e5).setConstructorParameters((new du).addString("Alice").addUint256(111111)),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Yz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Od.\u0275fac=function(e){return new(e||Od)(ke("dialogBelonging"),ke(sr),ke(fr))},Od.\u0275cmp=Yn({type:Od,selectors:[["app-smartcontract-create"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Smart Contract Create"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Kz,2,3,"option",1),te()(),K(6,"p"),me(7," Bytecode File Id "),K(8,"input",2),xe("ngModelChange",function(s){return t.bytecodeFileId=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.bytecodeFileId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Sd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.contractId="0.0.30863001"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new J0).setContractId(e.contractId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Wz(n,e){if(1&n&&(K(0,"option",4),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Sd.\u0275fac=function(e){return new(e||Sd)(ke("dialogBelonging"),ke(sr),ke(fr))},Sd.\u0275cmp=Yn({type:Sd,selectors:[["app-smartcontract-delete"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Smart Contract Delete"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Yz,2,3,"option",1),te()(),K(6,"p"),me(7," Contract ID "),K(8,"input",2),xe("ngModelChange",function(s){return t.contractId=s}),te()()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.contractId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Bd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.memo="",this.signingAcct="",this.contractId="0.0.30863001",this.getRecord=!0}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var e=this;return Ge(function*(){let t=(new X0).setContractId(e.contractId).setGas(1e5).setPayableAmount(new Nt(10)).setFunction("setMobileNumber",(new du).addString("Bob").addUint256(222222)).setMaxTransactionFee(new Nt(.75)),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct,!1,!1,e.getRecord),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function $z(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Bd.\u0275fac=function(e){return new(e||Bd)(ke("dialogBelonging"),ke(sr),ke(fr))},Bd.\u0275cmp=Yn({type:Bd,selectors:[["app-smartcontract-execute"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Smart Contract Execute"),te(),K(2,"p"),me(3,"From: "),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Wz,2,3,"option",1),te()(),K(6,"p"),me(7," Contract ID "),K(8,"input",2),xe("ngModelChange",function(s){return t.contractId=s}),te()(),K(9,"h3")(10,"input",3),xe("ngModelChange",function(s){return t.getRecord=s}),te(),me(11," Get Record\n"),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.contractId),se(2),ae("ngModel",t.getRecord))},dependencies:[pr,Dr,Er,kr,Fs,Ir,vr,yr]});class Nd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new hp).setTokenId(e.data.tokenId).setCustomFees([]),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Zz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Nd.\u0275fac=function(e){return new(e||Nd)(ke("dialogBelonging"),ke(sr),ke(fr))},Nd.\u0275cmp=Yn({type:Nd,selectors:[["app-token-fee-update"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Token Fee Update"),te(),K(2,"p"),me(3,"Account to sign (token feeScheduleKey account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,$z,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Pd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new pp).setTokenId(e.data.tokenId).setAccountId(e.data.accountId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function qz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Pd.\u0275fac=function(e){return new(e||Pd)(ke("dialogBelonging"),ke(sr),ke(fr))},Pd.\u0275cmp=Yn({type:Pd,selectors:[["app-token-freeze-account"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Freeze Token"),te(),K(2,"p"),me(3,"Account to sign (token freeze key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Zz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3"),me(10,"Account ID to freeze"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.data.accountId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(3),ae("ngModel",t.data.accountId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Rd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new Ap).setTokenId(e.data.tokenId).setAccountId(e.data.accountId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Jz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Rd.\u0275fac=function(e){return new(e||Rd)(ke("dialogBelonging"),ke(sr),ke(fr))},Rd.\u0275cmp=Yn({type:Rd,selectors:[["app-token-kyc-grant"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Grant Token KYC"),te(),K(2,"p"),me(3,"Account to sign (token KYC key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,qz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3"),me(10,"Account ID"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.data.accountId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(3),ae("ngModel",t.data.accountId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Fd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new bp).setTokenId(e.data.tokenId).setAccountId(e.data.accountId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function Xz(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Fd.\u0275fac=function(e){return new(e||Fd)(ke("dialogBelonging"),ke(sr),ke(fr))},Fd.\u0275cmp=Yn({type:Fd,selectors:[["app-token-kyc-revoke"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Revoke Token KYC"),te(),K(2,"p"),me(3,"Account to sign (token KYC key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Jz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3"),me(10,"Account ID"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.data.accountId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(3),ae("ngModel",t.data.accountId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Ld{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new _p).setTokenId(e.data.tokenId).setAccountId(e.data.accountId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function eV(n,e){if(1&n&&(K(0,"option",3),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}Ld.\u0275fac=function(e){return new(e||Ld)(ke("dialogBelonging"),ke(sr),ke(fr))},Ld.\u0275cmp=Yn({type:Ld,selectors:[["app-token-unfreeze-account"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Unfreeze Token"),te(),K(2,"p"),me(3,"Account to sign (token freeze key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,Xz,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3"),me(10,"Account ID to unfreeze"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.data.accountId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(3),ae("ngModel",t.data.accountId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class Ud{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new wp).setTokenId(e.data.tokenId),o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function tV(n,e){if(1&n&&(K(0,"option",5),me(1),te()),2&n){const t=e.$implicit,o=st();ae("value",t)("selected",o.signingAcct==t),se(1),gn(" ",t,"")}}function nV(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Amount"),te(),K(3,"input",6),xe("ngModelChange",function(s){return vn(t),In(st().data.amount=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.data.amount)}}function rV(n,e){if(1&n){const t=or();K(0,"div")(1,"h3"),me(2,"Serial #"),te(),K(3,"input",7),xe("ngModelChange",function(s){return vn(t),In(st().data.serial=s)}),te()()}if(2&n){const t=st();se(3),ae("ngModel",t.data.serial)}}Ud.\u0275fac=function(e){return new(e||Ud)(ke("dialogBelonging"),ke(sr),ke(fr))},Ud.\u0275cmp=Yn({type:Ud,selectors:[["app-unpause-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Unpause Token"),te(),K(2,"p"),me(3,"Account to sign (token pause key account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,eV,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te()),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId))},dependencies:[pr,Dr,Er,kr,Ir,vr,yr]});class jd{constructor(e,t,o){this.dialogBelonging=e,this.HashconnectService=t,this.SigningService=o,this.subscriptions=new I,this.data={tokenId:"",amount:1,isNft:!1,serial:0,accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(e=>{"cancel"===e.ID&&this.dialogBelonging.EventsController.close(),"send"===e.ID&&this.send()}))}send(){var e=this;return Ge(function*(){let t=yield(new vp).setTokenId(e.data.tokenId).setAccountId(e.data.accountId);e.data.isNft?e.data.isNft&&t.setSerials([e.data.serial]):t.setAmount(e.data.amount);let o=yield e.SigningService.makeBytes(t,e.signingAcct),s=yield e.HashconnectService.sendTransaction(o,e.signingAcct),l={response:s,receipt:null};s.success&&(l.receipt=dr.fromBytes(s.receipt)),e.HashconnectService.showResultOverlay(l)})()}}function oV(n,e){if(1&n&&(K(0,"pre",6),me(1),jf(2,"json"),te()),2&n){const t=st();se(1),gn(" ",Gf(2,1,t.HashConnectService.hashconnect.hcData),"\n ")}}jd.\u0275fac=function(e){return new(e||jd)(ke("dialogBelonging"),ke(sr),ke(fr))},jd.\u0275cmp=Yn({type:jd,selectors:[["app-wipe-token"]],decls:17,vars:7,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngIf"],[3,"value","selected"],["type","number","min","1",3,"ngModel","ngModelChange"],["type","number","maxlength","100",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(K(0,"h2"),me(1,"Wipe Token"),te(),K(2,"p"),me(3,"Account to sign (token wipe account)"),te(),K(4,"select",0),xe("ngModelChange",function(s){return t.signingAcct=s}),pt(5,tV,2,3,"option",1),te(),K(6,"h3"),me(7,"Token ID"),te(),K(8,"input",2),xe("ngModelChange",function(s){return t.data.tokenId=s}),te(),K(9,"h3"),me(10,"Account ID to wipe"),te(),K(11,"input",2),xe("ngModelChange",function(s){return t.data.accountId=s}),te(),K(12,"h3")(13,"input",3),xe("ngModelChange",function(s){return t.data.isNft=s}),te(),me(14," Is NFT\n"),te(),pt(15,nV,4,1,"div",4),pt(16,rV,4,1,"div",4)),2&e&&(se(4),ae("ngModel",t.signingAcct),se(1),ae("ngForOf",null==t.HashconnectService.pairingData?null:t.HashconnectService.pairingData.accountIds),se(3),ae("ngModel",t.data.tokenId),se(3),ae("ngModel",t.data.accountId),se(2),ae("ngModel",t.data.isNft),se(2),ae("ngIf",!t.data.isNft),se(1),ae("ngIf",t.data.isNft))},dependencies:[pr,Wi,Dr,Er,kr,za,Fs,Ir,vr,vh,Va,yr]});class Gd{constructor(e,t){this.HashConnectService=e,this.SigningService=t,this.title="dapp | proposer",this.viewData=!1}ngOnInit(){this.SigningService.init(),this.HashConnectService.initHashconnect()}pair(){const e=new Cr(Td);e.setConfig({Width:"500px",LayoutType:fa.NONE}),e.setButtons([new p0("Cancel","cancel",Xa.DANGER)]),e.openDialog$().subscribe(t=>{})}auth(){const e=new Cr(hd);this.doPopupStuff(e)}sign(){const e=new Cr(Md);this.doPopupStuff(e)}sendTransaction(){const e=new Cr(Ed);this.doPopupStuff(e)}createToken(){const e=new Cr(Ad);this.doPopupStuff(e)}deleteToken(){const e=new Cr(gd);this.doPopupStuff(e)}mintToken(){const e=new Cr(Cd);this.doPopupStuff(e)}pauseToken(){const e=new Cr(kd);this.doPopupStuff(e)}unpauseToken(){const e=new Cr(Ud);this.doPopupStuff(e)}wipeToken(){const e=new Cr(jd);this.doPopupStuff(e)}kycGrant(){const e=new Cr(Rd);this.doPopupStuff(e)}kycRevoke(){const e=new Cr(Fd);this.doPopupStuff(e)}freezeToken(){const e=new Cr(Pd);this.doPopupStuff(e)}unfreezeToken(){const e=new Cr(Ld);this.doPopupStuff(e)}burnToken(){const e=new Cr(pd);this.doPopupStuff(e)}associateToken(){const e=new Cr(fd);this.doPopupStuff(e)}disassociateToken(){const e=new Cr(md);this.doPopupStuff(e)}smartcontractCreate(){const e=new Cr(Od);this.doPopupStuff(e)}smartcontractCall(){const e=new Cr(xd);this.doPopupStuff(e)}smartcontractExecute(){const e=new Cr(Bd);this.doPopupStuff(e)}smartcontractDelete(){const e=new Cr(Sd);this.doPopupStuff(e)}fileCreate(){const e=new Cr(bd);this.doPopupStuff(e)}fileAppend(){const e=new Cr(yd);this.doPopupStuff(e)}hcsCreateTopic(){const e=new Cr(_d);this.doPopupStuff(e)}hcsDeleteTopic(){const e=new Cr(wd);this.doPopupStuff(e)}hcsUpdateTopic(){const e=new Cr(Id);this.doPopupStuff(e)}hcsSubmitMessage(){const e=new Cr(vd);this.doPopupStuff(e)}accountUpdate(){const e=new Cr(ld);this.doPopupStuff(e)}allowanceApprove(){const e=new Cr(ud);this.doPopupStuff(e)}allowanceDelete(){const e=new Cr(dd);this.doPopupStuff(e)}prngTrans(){const e=new Cr(Dd);this.doPopupStuff(e)}tokenFeeUpdate(){const e=new Cr(Nd);this.doPopupStuff(e)}doPopupStuff(e){e.setConfig({Width:"500px",LayoutType:fa.NONE}),e.setButtons([new p0("Send","send",Xa.SUCCESS),new p0("Cancel","cancel",Xa.DANGER)]),e.openDialog$().subscribe(t=>{})}}Gd.\u0275fac=function(e){return new(e||Gd)(ke(sr),ke(fr))},Gd.\u0275cmp=Yn({type:Gd,selectors:[["app-root"]],decls:92,vars:40,consts:[[1,"top"],[1,"buttons"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"primary",3,"disabled","click"],[1,"primary",3,"click"],["class","data",4,"ngIf"],[1,"data"]],template:function(e,t){1&e&&(K(0,"div",0)(1,"h1"),me(2),te(),K(3,"h2"),me(4),te(),K(5,"h3"),me(6),jf(7,"json"),te()(),K(8,"div",1)(9,"div")(10,"input",2),xe("ngModelChange",function(s){return t.viewData=s}),te(),me(11," View HashConnect Data "),te(),K(12,"button",3),xe("click",function(){return t.pair()}),me(13,"Pair"),te(),K(14,"button",4),xe("click",function(){return t.HashConnectService.clearPairings()}),me(15,"Clear HashConnect Data - will need to refresh"),te(),K(16,"button",3),xe("click",function(){return t.HashConnectService.disconnect()}),me(17,"Disconnect"),te(),K(18,"button",3),xe("click",function(){return t.auth()}),me(19,"Authenticate"),te(),K(20,"button",3),xe("click",function(){return t.sign()}),me(21,"Sign"),te(),K(22,"button",3),xe("click",function(){return t.sendTransaction()}),me(23,"Create basic transaction"),te(),K(24,"button",3),xe("click",function(){return t.prngTrans()}),me(25,"prng"),te(),K(26,"h3"),me(27,"Account"),te(),K(28,"button",3),xe("click",function(){return t.accountUpdate()}),me(29,"Account Update"),te(),K(30,"button",3),xe("click",function(){return t.associateToken()}),me(31,"Associate Token"),te(),K(32,"button",3),xe("click",function(){return t.disassociateToken()}),me(33,"Disassociate Token"),te(),K(34,"button",3),xe("click",function(){return t.allowanceApprove()}),me(35,"Allowance Approve"),te(),K(36,"button",3),xe("click",function(){return t.allowanceDelete()}),me(37,"Allowance Delete"),te(),K(38,"h3"),me(39,"Tokens"),te(),K(40,"button",3),xe("click",function(){return t.createToken()}),me(41,"Create Token"),te(),K(42,"button",3),xe("click",function(){return t.deleteToken()}),me(43,"Delete Token"),te(),K(44,"button",3),xe("click",function(){return t.mintToken()}),me(45,"Mint Token"),te(),K(46,"button",3),xe("click",function(){return t.burnToken()}),me(47,"Burn Token"),te(),K(48,"button",3),xe("click",function(){return t.pauseToken()}),me(49,"Pause Token"),te(),K(50,"button",3),xe("click",function(){return t.unpauseToken()}),me(51,"Unpause Token"),te(),K(52,"button",3),xe("click",function(){return t.wipeToken()}),me(53,"Wipe Token"),te(),K(54,"button",3),xe("click",function(){return t.kycGrant()}),me(55,"Grant Token KYC"),te(),K(56,"button",3),xe("click",function(){return t.kycRevoke()}),me(57,"Revoke Token KYC"),te(),K(58,"button",3),xe("click",function(){return t.freezeToken()}),me(59,"Freeze Token"),te(),K(60,"button",3),xe("click",function(){return t.unfreezeToken()}),me(61,"UnFreeze Token"),te(),K(62,"button",3),xe("click",function(){return t.tokenFeeUpdate()}),me(63,"Token Fee Update"),te(),K(64,"h3"),me(65,"File Service"),te(),K(66,"button",3),xe("click",function(){return t.fileCreate()}),me(67,"File Create"),te(),K(68,"button",3),xe("click",function(){return t.fileAppend()}),me(69,"File Append"),te(),K(70,"h3"),me(71,"Smart Contracts"),te(),K(72,"button",3),xe("click",function(){return t.smartcontractCreate()}),me(73,"Smart Contract Create"),te(),K(74,"button",3),xe("click",function(){return t.smartcontractDelete()}),me(75,"Smart Contract Delete"),te(),K(76,"button",3),xe("click",function(){return t.smartcontractCall()}),me(77,"Smart Contract Call"),te(),K(78,"button",3),xe("click",function(){return t.smartcontractExecute()}),me(79,"Smart Contract Execute"),te(),K(80,"h3"),me(81,"Consensus Service"),te(),K(82,"button",3),xe("click",function(){return t.hcsCreateTopic()}),me(83,"Create Topic"),te(),K(84,"button",3),xe("click",function(){return t.hcsDeleteTopic()}),me(85,"Delete Topic"),te(),K(86,"button",3),xe("click",function(){return t.hcsUpdateTopic()}),me(87,"Update Topic"),te(),K(88,"button",3),xe("click",function(){return t.hcsSubmitMessage()}),me(89,"Submit Message"),te()(),pt(90,oV,3,3,"pre",5),Co(91,"router-outlet")),2&e&&(se(2),$u(t.title),se(2),gn("Status: ",t.HashConnectService.state,""),se(2),gn("Connected accounts: ",Gf(7,38,null==t.HashConnectService.pairingData?null:t.HashConnectService.pairingData.accountIds),""),se(4),ae("ngModel",t.viewData),se(2),ae("disabled","Paired"==t.HashConnectService.state||"Disconnected"==t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(4),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("disabled","Paired"!=t.HashConnectService.state),se(2),ae("ngIf",t.viewData))},dependencies:[Wi,um,Fs,vr,yr,Ag],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;padding-top:50px;padding-bottom:30px;align-items:flex-start;width:100%;height:100%;overflow:auto;text-align:center}[_nghost-%COMP%] .top[_ngcontent-%COMP%]{flex:0 0 100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-direction:column;margin-top:20px}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:5px}[_nghost-%COMP%] .data[_ngcontent-%COMP%]{text-align:left;overflow:auto;width:500px;margin-left:16px;margin-top:20px}"]});class gu{}gu.\u0275fac=function(e){return new(e||gu)},gu.\u0275mod=li({type:gu,bootstrap:[Gd]}),gu.\u0275inj=je({imports:[kg,Gl,i9,qG.forRoot(),JG.forRoot()]}),$P().bootstrapModule(gu).catch(n=>console.error(n))},1280:Me=>{"use strict";Me.exports=function re(G,x){for(var S=new Array(arguments.length-1),j=0,_=2,b=!0;_{"use strict";var G=re;G.length=function(g){var d=g.length;if(!d)return 0;for(var w=0;--d%4>1&&"="===g.charAt(d);)++w;return Math.ceil(3*g.length)/4-w};for(var x=new Array(64),S=new Array(123),j=0;j<64;)S[x[j]=j<26?j+65:j<52?j+71:j<62?j-4:j-59|43]=j++;G.encode=function(g,d,w){for(var r,k=null,I=[],T=0,a=0;d>2],r=(3&i)<<4,a=1;break;case 1:I[T++]=x[r|i>>4],r=(15&i)<<2,a=2;break;case 2:I[T++]=x[r|i>>6],I[T++]=x[63&i],a=0}T>8191&&((k||(k=[])).push(String.fromCharCode.apply(String,I)),T=0)}return a&&(I[T++]=x[r],I[T++]=61,1===a&&(I[T++]=61)),k?(T&&k.push(String.fromCharCode.apply(String,I.slice(0,T))),k.join("")):String.fromCharCode.apply(String,I.slice(0,T))};var _="invalid encoding";G.decode=function(g,d,w){for(var T,k=w,I=0,a=0;a1)break;if(void 0===(r=S[r]))throw Error(_);switch(I){case 0:T=r,I=1;break;case 1:d[w++]=T<<2|(48&r)>>4,T=r,I=2;break;case 2:d[w++]=(15&T)<<4|(60&r)>>2,T=r,I=3;break;case 3:d[w++]=(3&T)<<6|r,I=0}}if(1===I)throw Error(_);return w-k},G.test=function(g){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(g)}},9889:Me=>{"use strict";function re(){this._listeners={}}Me.exports=re,re.prototype.on=function(x,S,j){return(this._listeners[x]||(this._listeners[x]=[])).push({fn:S,ctx:j||this}),this},re.prototype.off=function(x,S){if(void 0===x)this._listeners={};else if(void 0===S)this._listeners[x]=[];else for(var j=this._listeners[x],_=0;_{"use strict";function re(_){return typeof Float32Array<"u"?function(){var b=new Float32Array([-0]),g=new Uint8Array(b.buffer),d=128===g[3];function w(a,r,i){b[0]=a,r[i]=g[0],r[i+1]=g[1],r[i+2]=g[2],r[i+3]=g[3]}function k(a,r,i){b[0]=a,r[i]=g[3],r[i+1]=g[2],r[i+2]=g[1],r[i+3]=g[0]}function I(a,r){return g[0]=a[r],g[1]=a[r+1],g[2]=a[r+2],g[3]=a[r+3],b[0]}function T(a,r){return g[3]=a[r],g[2]=a[r+1],g[1]=a[r+2],g[0]=a[r+3],b[0]}_.writeFloatLE=d?w:k,_.writeFloatBE=d?k:w,_.readFloatLE=d?I:T,_.readFloatBE=d?T:I}():function(){function b(d,w,k,I){var T=w<0?1:0;if(T&&(w=-w),0===w)d(1/w>0?0:2147483648,k,I);else if(isNaN(w))d(2143289344,k,I);else if(w>34028234663852886e22)d((T<<31|2139095040)>>>0,k,I);else if(w<11754943508222875e-54)d((T<<31|Math.round(w/1401298464324817e-60))>>>0,k,I);else{var a=Math.floor(Math.log(w)/Math.LN2);d((T<<31|a+127<<23|8388607&Math.round(w*Math.pow(2,-a)*8388608))>>>0,k,I)}}function g(d,w,k){var I=d(w,k),T=2*(I>>31)+1,a=I>>>23&255,r=8388607&I;return 255===a?r?NaN:T*(1/0):0===a?1401298464324817e-60*T*r:T*Math.pow(2,a-150)*(r+8388608)}_.writeFloatLE=b.bind(null,G),_.writeFloatBE=b.bind(null,x),_.readFloatLE=g.bind(null,S),_.readFloatBE=g.bind(null,j)}(),typeof Float64Array<"u"?function(){var b=new Float64Array([-0]),g=new Uint8Array(b.buffer),d=128===g[7];function w(a,r,i){b[0]=a,r[i]=g[0],r[i+1]=g[1],r[i+2]=g[2],r[i+3]=g[3],r[i+4]=g[4],r[i+5]=g[5],r[i+6]=g[6],r[i+7]=g[7]}function k(a,r,i){b[0]=a,r[i]=g[7],r[i+1]=g[6],r[i+2]=g[5],r[i+3]=g[4],r[i+4]=g[3],r[i+5]=g[2],r[i+6]=g[1],r[i+7]=g[0]}function I(a,r){return g[0]=a[r],g[1]=a[r+1],g[2]=a[r+2],g[3]=a[r+3],g[4]=a[r+4],g[5]=a[r+5],g[6]=a[r+6],g[7]=a[r+7],b[0]}function T(a,r){return g[7]=a[r],g[6]=a[r+1],g[5]=a[r+2],g[4]=a[r+3],g[3]=a[r+4],g[2]=a[r+5],g[1]=a[r+6],g[0]=a[r+7],b[0]}_.writeDoubleLE=d?w:k,_.writeDoubleBE=d?k:w,_.readDoubleLE=d?I:T,_.readDoubleBE=d?T:I}():function(){function b(d,w,k,I,T,a){var r=I<0?1:0;if(r&&(I=-I),0===I)d(0,T,a+w),d(1/I>0?0:2147483648,T,a+k);else if(isNaN(I))d(0,T,a+w),d(2146959360,T,a+k);else if(I>17976931348623157e292)d(0,T,a+w),d((r<<31|2146435072)>>>0,T,a+k);else{var i;if(I<22250738585072014e-324)d((i=I/5e-324)>>>0,T,a+w),d((r<<31|i/4294967296)>>>0,T,a+k);else{var c=Math.floor(Math.log(I)/Math.LN2);1024===c&&(c=1023),d(4503599627370496*(i=I*Math.pow(2,-c))>>>0,T,a+w),d((r<<31|c+1023<<20|1048576*i&1048575)>>>0,T,a+k)}}}function g(d,w,k,I,T){var a=d(I,T+w),r=d(I,T+k),i=2*(r>>31)+1,c=r>>>20&2047,f=4294967296*(1048575&r)+a;return 2047===c?f?NaN:i*(1/0):0===c?5e-324*i*f:i*Math.pow(2,c-1075)*(f+4503599627370496)}_.writeDoubleLE=b.bind(null,G,0,4),_.writeDoubleBE=b.bind(null,x,4,0),_.readDoubleLE=g.bind(null,S,0,4),_.readDoubleBE=g.bind(null,j,4,0)}(),_}function G(_,b,g){b[g]=255&_,b[g+1]=_>>>8&255,b[g+2]=_>>>16&255,b[g+3]=_>>>24}function x(_,b,g){b[g]=_>>>24,b[g+1]=_>>>16&255,b[g+2]=_>>>8&255,b[g+3]=255&_}function S(_,b){return(_[b]|_[b+1]<<8|_[b+2]<<16|_[b+3]<<24)>>>0}function j(_,b){return(_[b]<<24|_[b+1]<<16|_[b+2]<<8|_[b+3])>>>0}Me.exports=re(re)},716:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Me){}return null}module.exports=inquire},4479:Me=>{"use strict";Me.exports=function re(G,x,S){var j=S||8192,_=j>>>1,b=null,g=j;return function(w){if(w<1||w>_)return G(w);g+w>j&&(b=G(j),g=0);var k=x.call(b,g,g+=w);return 7&g&&(g=1+(7|g)),k}}},7768:(Me,re)=>{"use strict";var G=re;G.length=function(S){for(var j=0,_=0,b=0;b191&&k<224?d[w++]=(31&k)<<6|63&S[j++]:k>239&&k<365?(k=((7&k)<<18|(63&S[j++])<<12|(63&S[j++])<<6|63&S[j++])-65536,d[w++]=55296+(k>>10),d[w++]=56320+(1023&k)):d[w++]=(15&k)<<12|(63&S[j++])<<6|63&S[j++],w>8191&&((g||(g=[])).push(String.fromCharCode.apply(String,d)),w=0);return g?(w&&g.push(String.fromCharCode.apply(String,d.slice(0,w))),g.join("")):String.fromCharCode.apply(String,d.slice(0,w))},G.write=function(S,j,_){for(var g,d,b=_,w=0;w>6|192,j[_++]=63&g|128):55296==(64512&g)&&56320==(64512&(d=S.charCodeAt(w+1)))?(++w,j[_++]=(g=65536+((1023&g)<<10)+(1023&d))>>18|240,j[_++]=g>>12&63|128,j[_++]=g>>6&63|128,j[_++]=63&g|128):(j[_++]=g>>12|224,j[_++]=g>>6&63|128,j[_++]=63&g|128);return _-b}},3143:function(Me,re,G){"use strict";var x=this&&this.__assign||function(){return x=Object.assign||function(a){for(var r,i=1,c=arguments.length;i0&&p[p.length-1])&&(6===oe[0]||2===oe[0])){i=0;continue}if(3===oe[0]&&(!p||oe[1]>p[0]&&oe[1]1)throw new Error("dotScale should be in range (0, 1].");i.components.data.scale=i.dotScale,i.components.timing.scale=i.dotScale,i.components.alignment.scale=i.dotScale}this.options=i,this.canvas=b.createCanvas(r.size,r.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new d.QRCodeModel(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return a.prototype.draw=function(){var r=this;return new Promise(function(i){return r._draw().then(i)})},a.prototype._clear=function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)},a._prepareRoundedCornerClip=function(r,i,c,f,p,v){r.beginPath(),r.moveTo(i,c),r.arcTo(i+f,c,i+f,c+p,v),r.arcTo(i+f,c+p,i,c+p,v),r.arcTo(i,c+p,i,c,v),r.arcTo(i,c,i+f,c,v),r.closePath()},a._getAverageRGB=function(r){var f,p,he,c={r:0,g:0,b:0},v=-4,L={r:0,g:0,b:0},ee=0,de=b.createCanvas(f=r.naturalWidth||r.width,p=r.naturalHeight||r.height).getContext("2d");if(!de)return c;de.drawImage(r,0,0);try{he=de.getImageData(0,0,f,p)}catch{return c}for(;(v+=20)200||he.data[v+1]>200||he.data[v+2]>200||(++ee,L.r+=he.data[v],L.g+=he.data[v+1],L.b+=he.data[v+2]);return L.r=~~(L.r/ee),L.g=~~(L.g/ee),L.b=~~(L.b/ee),L},a._drawDot=function(r,i,c,f,p,v){void 0===p&&(p=0),void 0===v&&(v=1),r.fillRect((i+p)*f,(c+p)*f,v*f,v*f)},a._drawAlignProtector=function(r,i,c,f){r.clearRect((i-2)*f,(c-2)*f,5*f,5*f),r.fillRect((i-2)*f,(c-2)*f,5*f,5*f)},a._drawAlign=function(r,i,c,f,p,v,L,ee){void 0===p&&(p=0),void 0===v&&(v=1);var oe=r.fillStyle;r.fillStyle=L,new Array(4).fill(0).map(function(de,he){a._drawDot(r,i-2+he,c-2,f,p,v),a._drawDot(r,i+2,c-2+he,f,p,v),a._drawDot(r,i+2-he,c+2,f,p,v),a._drawDot(r,i-2,c+2-he,f,p,v)}),a._drawDot(r,i,c,f,p,v),ee||(r.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(function(de,he){a._drawDot(r,i-1+he,c-1,f,p,v),a._drawDot(r,i+1,c-1+he,f,p,v),a._drawDot(r,i+1-he,c+1,f,p,v),a._drawDot(r,i-1,c+1-he,f,p,v)})),r.fillStyle=oe},a.prototype._draw=function(){var r,i,c,f,p,v,L,ee,oe,de,he,be,Ae,J,$,C,E,N,P;return S(this,void 0,void 0,function(){var Q,Y,ne,H,z,Ie,fe,Xe,He,kt,Ze,br,nt,at,nn,ft,Ct,St,At,vt,ln,zt,Gt,$t,Pt,un,jn,bn,Cn,hr,Z,B,R,le,Ce,Ve,rn,en,tr,qt,Dt,so,Vt,Kn,xo,Yt,_t,Fo,Jn,Tr,ci,Le,Mn,F,W,X,O,ie,Ee,Re,Je;return j(this,function(Ut){switch(Ut.label){case 0:if(Q=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,Y=this.options.size,((ne=this.options.margin)<0||2*ne>=Y)&&(ne=0),H=Math.ceil(ne),z=this.options.whiteMargin,Ie=this.options.backgroundDimming,fe=Math.ceil((Y-2*ne)/Q),kt=b.createCanvas(He=(Xe=fe*Q)+2*H,He),Ze=kt.getContext("2d"),this._clear(),Ze.save(),Ze.translate(H,H),br=b.createCanvas(He,He),nt=br.getContext("2d"),at=null,nn=[],!this.options.gifBackground)return[3,1];if(ft=g.parseGIF(this.options.gifBackground),at=ft,nn=g.decompressFrames(ft,!0),this.options.autoColor){for(Ct=0,St=0,At=0,vt=0,Dt=0;Dt200||ln[1]>200||ln[2]>200)&&(0===ln[0]&&0===ln[1]&&0===ln[2]||(vt++,Ct+=ln[0],St+=ln[1],At+=ln[2]));this.options.colorDark="rgb("+(Ct=~~(Ct/vt))+","+(St=~~(St/vt))+","+(At=~~(At/vt))+")"}return[3,4];case 1:return this.options.backgroundImage?[4,b.loadImage(this.options.backgroundImage)]:[3,3];case 2:return zt=Ut.sent(),this.options.autoColor&&(Gt=a._getAverageRGB(zt),this.options.colorDark="rgb("+Gt.r+","+Gt.g+","+Gt.b+")"),nt.drawImage(zt,0,0,zt.width,zt.height,0,0,He,He),nt.rect(0,0,He,He),nt.fillStyle=Ie,nt.fill(),[3,4];case 3:nt.rect(0,0,He,He),nt.fillStyle=this.options.colorLight,nt.fill(),Ut.label=4;case 4:for($t=d.QRUtil.getPatternPosition(this.qrCode.typeNumber),Pt=(null===(c=null===(i=this.options.components)||void 0===i?void 0:i.data)||void 0===c?void 0:c.scale)||k,un=.5*(1-Pt),jn=0;jn=8&&bn<=Q-8||6==bn&&jn>=8&&jn<=Q-8,Z=bn<8&&(jn<8||jn>=Q-8)||bn>=Q-8&&jn<8||hr,Dt=1;Dt<$t.length-1;Dt++)Z=Z||jn>=$t[Dt]-2&&jn<=$t[Dt]+2&&bn>=$t[Dt]-2&&bn<=$t[Dt]+2;B=bn*fe+(Z?0:un*fe),R=jn*fe+(Z?0:un*fe),Ze.strokeStyle=Cn?this.options.colorDark:this.options.colorLight,Ze.lineWidth=.5,Ze.fillStyle=Cn?this.options.colorDark:"rgba(255, 255, 255, 0.6)",0===$t.length?Z||Ze.fillRect(B,R,(Z?1:Pt)*fe,(Z?1:Pt)*fe):(le=bn=Q-4-5&&jn=Q-4-5,!Z&&!le&&Ze.fillRect(B,R,(Z?1:Pt)*fe,(Z?1:Pt)*fe))}if(Ce=$t[$t.length-1],Ze.fillStyle="rgba(255, 255, 255, 0.6)",Ze.fillRect(0,0,8*fe,8*fe),Ze.fillRect(0,(Q-8)*fe,8*fe,8*fe),Ze.fillRect((Q-8)*fe,0,8*fe,8*fe),!(null===(p=null===(f=this.options.components)||void 0===f?void 0:f.timing)||void 0===p)&&p.protectors&&(Ze.fillRect(8*fe,6*fe,(Q-8-8)*fe,fe),Ze.fillRect(6*fe,8*fe,fe,(Q-8-8)*fe)),!(null===(L=null===(v=this.options.components)||void 0===v?void 0:v.cornerAlignment)||void 0===L)&&L.protectors&&a._drawAlignProtector(Ze,Ce,Ce,fe),null!==(oe=null===(ee=this.options.components)||void 0===ee?void 0:ee.alignment)&&void 0!==oe&&oe.protectors)for(Dt=0;Dt<$t.length;Dt++)for(so=0;so<$t.length;so++)if(Kn=$t[Dt],6!==(Vt=$t[so])||6!==Kn&&Kn!==Ce){if(6===Kn&&(6===Vt||Vt===Ce))continue;if(Vt===Ce&&Kn===Ce)continue;a._drawAlignProtector(Ze,Vt,Kn,fe)}for(Ze.fillStyle=this.options.colorDark,Ze.fillRect(0,0,7*fe,fe),Ze.fillRect((Q-7)*fe,0,7*fe,fe),Ze.fillRect(0,6*fe,7*fe,fe),Ze.fillRect((Q-7)*fe,6*fe,7*fe,fe),Ze.fillRect(0,(Q-7)*fe,7*fe,fe),Ze.fillRect(0,(Q-7+6)*fe,7*fe,fe),Ze.fillRect(0,0,fe,7*fe),Ze.fillRect(6*fe,0,fe,7*fe),Ze.fillRect((Q-7)*fe,0,fe,7*fe),Ze.fillRect((Q-7+6)*fe,0,fe,7*fe),Ze.fillRect(0,(Q-7)*fe,fe,7*fe),Ze.fillRect(6*fe,(Q-7)*fe,fe,7*fe),Ze.fillRect(2*fe,2*fe,3*fe,3*fe),Ze.fillRect((Q-7+2)*fe,2*fe,3*fe,3*fe),Ze.fillRect(2*fe,(Q-7+2)*fe,3*fe,3*fe),Ve=(null===(he=null===(de=this.options.components)||void 0===de?void 0:de.timing)||void 0===he?void 0:he.scale)||k,rn=.5*(1-Ve),Dt=0;Dt=1)&&(Yt=.2),(_t=this.options.logoMargin)<0&&(_t=0),(Fo=this.options.logoCornerRadius)<0&&(Fo=0),ci=Tr=.5*(He-(Jn=Xe*Yt)),Ze.restore(),Ze.fillStyle="#FFFFFF",Ze.save(),a._prepareRoundedCornerClip(Ze,Tr-_t,ci-_t,Jn+2*_t,Jn+2*_t,Fo+_t),Ze.clip(),Le=Ze.globalCompositeOperation,Ze.globalCompositeOperation="destination-out",Ze.fill(),Ze.globalCompositeOperation=Le,Ze.restore(),Ze.save(),a._prepareRoundedCornerClip(Ze,Tr,ci,Jn,Jn,Fo),Ze.clip(),Ze.drawImage(xo,Tr,ci,Jn,Jn),Ze.restore(),Ze.save(),Ze.translate(H,H),Ut.label=6;case 6:if(at){if(nn.forEach(function(gt){Mn||((Mn=new w.default(Y,Y)).setDelay(gt.delay),Mn.setRepeat(0));var Gn=gt.dims,Bt=Gn.width,tn=Gn.height;F||(F=b.createCanvas(Bt,tn),(W=F.getContext("2d")).rect(0,0,F.width,F.height),W.fillStyle="#ffffff",W.fill()),(!X||!ie||Bt!==X.width||tn!==X.height)&&(X=b.createCanvas(Bt,tn),O=X.getContext("2d"),ie=O.createImageData(Bt,tn)),ie.data.set(gt.patch),O.putImageData(ie,0,0),W.drawImage(X,gt.dims.left,gt.dims.top);var dn=b.createCanvas(He,He),fn=dn.getContext("2d");fn.drawImage(F,0,0,He,He),fn.rect(0,0,He,He),fn.fillStyle=Ie,fn.fill(),fn.drawImage(kt,0,0,He,He);var yn=b.createCanvas(Y,Y),sn=yn.getContext("2d");sn.drawImage(dn,0,0,Y,Y),Mn.addFrame(sn.getImageData(0,0,yn.width,yn.height).data)}),!Mn)throw new Error("No frames.");return Mn.finish(),T(this.canvas)?(Ee=Mn.stream().toFlattenUint8Array(),Re=Ee.reduce(function(gt,Gn){return gt+String.fromCharCode(Gn)},""),[2,Promise.resolve("data:image/gif;base64,"+window.btoa(Re))]):[2,Promise.resolve(Buffer.from(Mn.stream().toFlattenUint8Array()))]}return nt.drawImage(kt,0,0,He,He),Ze.drawImage(br,-H,-H,He,He),(Je=b.createCanvas(Y,Y)).getContext("2d").drawImage(kt,0,0,Y,Y),this.canvas=Je,T(this.canvas)?[2,Promise.resolve(this.canvas.toDataURL())]:[2,Promise.resolve(this.canvas.toBuffer())]}})})},a.CorrectLevel=d.QRErrorCorrectLevel,a.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"#ffffff",correctLevel:d.QRErrorCorrectLevel.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:a.defaultComponentOptions={data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}},autoColor:!0},a}();function T(a){try{return a instanceof HTMLElement}catch{return"object"==typeof a&&1===a.nodeType&&"object"==typeof a.style&&"object"==typeof a.ownerDocument}}re.AwesomeQR=I},6809:(Me,re,G)=>{"use strict";var x=G(1513),S=G(3229);function j(){this.page=-1,this.pages=[],this.newPage()}j.pageSize=4096,j.charMap={};for(var _=0;_<256;_++)j.charMap[_]=String.fromCharCode(_);function b(g,d){this.width=~~g,this.height=~~d,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new j}j.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(j.pageSize),this.cursor=0},j.prototype.getData=function(){for(var g="",d=0;d=j.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=g},j.prototype.writeUTFBytes=function(g){for(var d=g.length,w=0;w=0&&(this.dispose=g)},b.prototype.setRepeat=function(g){this.repeat=g},b.prototype.setTransparent=function(g){this.transparent=g},b.prototype.addFrame=function(g){this.image=g,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1},b.prototype.finish=function(){this.out.writeByte(59)},b.prototype.setQuality=function(g){g<1&&(g=1),this.sample=g},b.prototype.setDither=function(g){!0===g&&(g="FloydSteinberg"),this.dither=g},b.prototype.setGlobalPalette=function(g){this.globalPalette=g},b.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},b.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},b.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new x(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},b.prototype.indexPixels=function(g){var d=this.pixels.length/3;this.indexedPixels=new Uint8Array(d);for(var w=0,k=0;k=0&&N+f=0&&P+c>16,(65280&g)>>8,255&g,d)},b.prototype.findClosestRGB=function(g,d,w,k){if(null===this.colorTab)return-1;if(this.neuQuant&&!k)return this.neuQuant.lookupRGB(g,d,w);for(var T=0,a=16777216,r=this.colorTab.length,i=0,c=0;i=0&&(d=7&this.dispose),this.out.writeByte(0|(d<<=2)|g),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},b.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(this.firstFrame||this.globalPalette?0:128|this.palSize)},b.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},b.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},b.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var g=768-this.colorTab.length,d=0;d>8&255)},b.prototype.writePixels=function(){new S(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},b.prototype.stream=function(){return this.out},Me.exports=b},3229:Me=>{"use strict";var x=5003,S=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];Me.exports=function j(_,b,g,d){var a,i,f,v,L,ee,oe,de,he,w=Math.max(2,d),k=new Uint8Array(256),I=new Int32Array(x),T=new Int32Array(x),r=0,c=0,p=!1;function be(Y,ne){k[i++]=Y,i>=254&&E(ne)}function Ae(Y){J(x),c=L+2,p=!0,Q(L,Y)}function J(Y){for(var ne=0;ne0&&(Y.writeByte(i),Y.writeBytes(k,0,i),i=0)}function N(Y){return(1<0?a|=Y<=8;)be(255&a,ne),a>>=8,r-=8;if((c>f||p)&&(p?(f=N(he=v),p=!1):(++he,f=12==he?4096:N(he))),Y==ee){for(;r>0;)be(255&a,ne),a>>=8,r-=8;E(ne)}}this.encode=function C(Y){Y.writeByte(w),oe=_*b,de=0,function $(Y,ne){var H,M,z,Ie,fe,He;for(p=!1,f=N(he=v=Y),ee=1+(L=1<=0){fe=5003-z,0===z&&(fe=1);do{if((z-=fe)<0&&(z+=5003),I[z]===H){Ie=T[z];continue e}}while(I[z]>=0)}Q(Ie,ne),Ie=M,c<4096?(T[z]=c++,I[z]=H):Ae(ne)}else Ie=T[z];Q(Ie,ne),Q(ee,ne)}(w+1,Y),Y.writeByte(0)}}},1513:Me=>{"use strict";var G=256,f=1024,oe=1<<18;Me.exports=function $(C,E){var N,P,Q,Y,ne;function z(nt,at,nn,ft,Ct){N[at][0]-=nt*(N[at][0]-nn)/f,N[at][1]-=nt*(N[at][1]-ft)/f,N[at][2]-=nt*(N[at][2]-Ct)/f}function Ie(nt,at,nn,ft,Ct){for(var Gt,$t,St=Math.abs(at-nt),At=Math.min(at+nt,G),vt=at+1,ln=at-1,zt=1;vtSt;)$t=ne[zt++],vtSt&&((Gt=N[ln--])[0]-=$t*(Gt[0]-nn)/oe,Gt[1]-=$t*(Gt[1]-ft)/oe,Gt[2]-=$t*(Gt[2]-Ct)/oe)}function fe(nt,at,nn){var vt,ln,zt,Gt,$t,ft=2147483647,Ct=ft,St=-1,At=St;for(vt=0;vt>12))>10,Q[vt]+=$t<<10;return Y[St]+=64,Q[St]-=65536,At}this.buildColormap=function Ze(){(function H(){var nt,at;for(N=[],P=new Int32Array(256),Q=new Int32Array(G),Y=new Int32Array(G),ne=new Int32Array(32),nt=0;nt>6;for(vt<=1&&(vt=0),nt=0;nt=at&&(un-=at),0===Ct&&(Ct=1),++nt%Ct==0)for(St-=St/nn,(vt=(At-=At/30)>>6)<=1&&(vt=0),Pt=0;Pt>=4,N[nt][1]>>=4,N[nt][2]>>=4,N[nt][3]=nt}(),function Xe(){var nt,at,nn,ft,Ct,St,At=0,vt=0;for(nt=0;nt>1,at=At+1;at>1,at=At+1;at<256;at++)P[at]=255}()},this.getColormap=function br(){for(var nt=[],at=[],nn=0;nn=0;)ln=At?ln=G:(ln++,St<0&&(St=-St),(ft=Ct[0]-nt)<0&&(ft=-ft),(St+=ft)=0&&((St=at-(Ct=N[zt])[1])>=At?zt=-1:(zt--,St<0&&(St=-St),(ft=Ct[0]-nt)<0&&(ft=-ft),(St+=ft){"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.deinterlace=void 0,re.deinterlace=function(G,x){for(var S=new Array(G.length),j=G.length/x,b=[0,4,2,1],g=[8,8,4,2],d=0,w=0;w<4;w++)for(var k=b[w];k{"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.lzw=void 0,re.lzw=function(G,x,S){var g,d,w,k,I,T,a,r,i,c,ee,oe,he,be,Ae,J,j=4096,b=S,f=new Array(S),p=new Array(j),v=new Array(j),L=new Array(j+1);for(I=1+(d=1<<(c=G)),g=d+2,a=-1,w=(1<<(k=c+1))-1,r=0;r>=k,oe-=k,r>g||r==I)break;if(r==d){w=(1<<(k=c+1))-1,g=d+2,a=-1;continue}if(-1==a){L[be++]=v[r],a=r,he=r;continue}for(T=r,r==g&&(L[be++]=he,r=a);r>d;)L[be++]=v[r],r=p[r];L[be++]=he=255&v[r],g{"use strict";function S(a){var r=encodeURI(a).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return r.length+(r.length!=Number(a)?3:0)}Object.defineProperty(re,"__esModule",{value:!0}),re.QRMath=re.QRUtil=re.QRMaskPattern=re.QRErrorCorrectLevel=re.QRCodeModel=void 0;var j=function(){function a(r){this.mode=b.MODE_8BIT_BYTE,this.parsedData=[],this.data=r;for(var i=[],c=0,f=this.data.length;c65536?(p[0]=240|(1835008&v)>>>18,p[1]=128|(258048&v)>>>12,p[2]=128|(4032&v)>>>6,p[3]=128|63&v):v>2048?(p[0]=224|(61440&v)>>>12,p[1]=128|(4032&v)>>>6,p[2]=128|63&v):v>128?(p[0]=192|(1984&v)>>>6,p[1]=128|63&v):p[0]=v,i.push(p)}this.parsedData=Array.prototype.concat.apply([],i),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a.prototype.getLength=function(){return this.parsedData.length},a.prototype.write=function(r){for(var i=0,c=this.parsedData.length;iT.length)throw new Error("Too long data");return i}(r,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: "+this.typeNumber);if(!function G(a,r,i){var c=S(r),f=a-1,p=0;switch(i){case re.QRErrorCorrectLevel.L:p=T[f][0];break;case re.QRErrorCorrectLevel.M:p=T[f][1];break;case re.QRErrorCorrectLevel.Q:p=T[f][2];break;case re.QRErrorCorrectLevel.H:p=T[f][3]}return c<=p}(this.typeNumber,r,this.errorCorrectLevel))throw new Error("Data is too long for QR version: "+this.typeNumber)}var i=new j(r);this.dataList.push(i),this.dataCache=void 0},a.prototype.isDark=function(r,i){if(r<0||this.moduleCount<=r||i<0||this.moduleCount<=i)throw new Error(r+","+i);return this.modules[r][i]},a.prototype.getModuleCount=function(){return this.moduleCount},a.prototype.make=function(){this.makeImpl(!1,this.getBestMaskPattern())},a.prototype.makeImpl=function(r,i){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var c=0;c=7&&this.setupTypeNumber(r),null==this.dataCache&&(this.dataCache=a.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},a.prototype.setupPositionProbePattern=function(r,i){for(var c=-1;c<=7;c++)if(!(r+c<=-1||this.moduleCount<=r+c))for(var f=-1;f<=7;f++)i+f<=-1||this.moduleCount<=i+f||(this.modules[r+c][i+f]=0<=c&&c<=6&&(0==f||6==f)||0<=f&&f<=6&&(0==c||6==c)||2<=c&&c<=4&&2<=f&&f<=4)},a.prototype.getBestMaskPattern=function(){if(Number.isInteger(this.maskPattern)&&Object.values(re.QRMaskPattern).includes(this.maskPattern))return this.maskPattern;for(var r=0,i=0,c=0;c<8;c++){this.makeImpl(!0,c);var f=g.getLostPoint(this);(0==c||r>f)&&(r=f,i=c)}return i},a.prototype.setupTimingPattern=function(){for(var r=8;r>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=f}for(c=0;c<18;c++)f=!r&&1==(i>>c&1),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=f},a.prototype.setupTypeInfo=function(r,i){for(var f=g.getBCHTypeInfo(this.errorCorrectLevel<<3|i),p=0;p<15;p++){var v=!r&&1==(f>>p&1);p<6?this.modules[p][8]=v:p<8?this.modules[p+1][8]=v:this.modules[this.moduleCount-15+p][8]=v}for(p=0;p<15;p++)v=!r&&1==(f>>p&1),p<8?this.modules[8][this.moduleCount-p-1]=v:p<9?this.modules[8][15-p-1+1]=v:this.modules[8][15-p-1]=v;this.modules[this.moduleCount-8][8]=!r},a.prototype.mapData=function(r,i){for(var c=-1,f=this.moduleCount-1,p=7,v=0,L=this.moduleCount-1;L>0;L-=2)for(6==L&&L--;;){for(var ee=0;ee<2;ee++)if(null==this.modules[f][L-ee]){var oe=!1;v>>p&1)),g.getMask(i,f,L-ee)&&(oe=!oe),this.modules[f][L-ee]=oe,-1==--p&&(v++,p=7)}if((f+=c)<0||this.moduleCount<=f){f-=c,c=-c;break}}},a.createData=function(r,i,c){for(var f=k.getRSBlocks(r,i),p=new I,v=0;v8*ee)throw new Error("code length overflow. ("+p.getLengthInBits()+">"+8*ee+")");for(p.getLengthInBits()+4<=8*ee&&p.put(0,4);p.getLengthInBits()%8!=0;)p.putBit(!1);for(;!(p.getLengthInBits()>=8*ee||(p.put(a.PAD0,8),p.getLengthInBits()>=8*ee));)p.put(a.PAD1,8);return a.createBytes(p,f)},a.createBytes=function(r,i){for(var c=0,f=0,p=0,v=new Array(i.length),L=new Array(i.length),ee=0;ee=0?J.get($):0}}var C=0;for(he=0;he=0;)i^=a.G15<=0;)i^=a.G18<>>=1;return i},a.getPatternPosition=function(r){return a.PATTERN_POSITION_TABLE[r-1]},a.getMask=function(r,i,c){switch(r){case re.QRMaskPattern.PATTERN000:return(i+c)%2==0;case re.QRMaskPattern.PATTERN001:return i%2==0;case re.QRMaskPattern.PATTERN010:return c%3==0;case re.QRMaskPattern.PATTERN011:return(i+c)%3==0;case re.QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(c/3))%2==0;case re.QRMaskPattern.PATTERN101:return i*c%2+i*c%3==0;case re.QRMaskPattern.PATTERN110:return(i*c%2+i*c%3)%2==0;case re.QRMaskPattern.PATTERN111:return(i*c%3+(i+c)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},a.getErrorCorrectPolynomial=function(r){for(var i=new w([1],0),c=0;c5&&(c+=3+v-5)}for(f=0;f=256;)r-=255;return a.EXP_TABLE[r]},a.EXP_TABLE=new Array(256),a.LOG_TABLE=new Array(256),a._constructor=function(){for(var r=0;r<8;r++)a.EXP_TABLE[r]=1<>>7-r%8&1)},a.prototype.put=function(r,i){for(var c=0;c>>i-c-1&1))},a.prototype.getLengthInBits=function(){return this.length},a.prototype.putBit=function(r){var i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),r&&(this.buffer[i]|=128>>>this.length%8),this.length++},a}(),T=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},5343:(Me,re)=>{"use strict";re.byteLength=function d(r){var i=g(r),f=i[1];return 3*(i[0]+f)/4-f},re.toByteArray=function k(r){var i,oe,c=g(r),f=c[0],p=c[1],v=new S(function w(r,i,c){return 3*(i+c)/4-c}(0,f,p)),L=0,ee=p>0?f-4:f;for(oe=0;oe>16&255,v[L++]=i>>8&255,v[L++]=255&i;return 2===p&&(i=x[r.charCodeAt(oe)]<<2|x[r.charCodeAt(oe+1)]>>4,v[L++]=255&i),1===p&&(i=x[r.charCodeAt(oe)]<<10|x[r.charCodeAt(oe+1)]<<4|x[r.charCodeAt(oe+2)]>>2,v[L++]=i>>8&255,v[L++]=255&i),v},re.fromByteArray=function a(r){for(var i,c=r.length,f=c%3,p=[],v=16383,L=0,ee=c-f;Lee?ee:L+v));return 1===f?p.push(G[(i=r[c-1])>>2]+G[i<<4&63]+"=="):2===f&&p.push(G[(i=(r[c-2]<<8)+r[c-1])>>10]+G[i>>4&63]+G[i<<2&63]+"="),p.join("")};for(var G=[],x=[],S=typeof Uint8Array<"u"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,b=j.length;_0)throw new Error("Invalid string. Length must be a multiple of 4");var c=r.indexOf("=");return-1===c&&(c=i),[c,c===i?0:4-c%4]}function I(r){return G[r>>18&63]+G[r>>12&63]+G[r>>6&63]+G[63&r]}function T(r,i,c){for(var p=[],v=i;v=65&&E<=70?E-55:E>=97&&E<=102?E-87:E-48&15}function w($,C,E){var N=d($,E);return E-1>=C&&(N|=d($,E-1)<<4),N}function k($,C,E,N){for(var P=0,Q=Math.min($.length,E),Y=C;Y=49?ne-49+10:ne>=17?ne-17+10:ne}return P}b.isBN=function(C){return C instanceof b||null!==C&&"object"==typeof C&&C.constructor.wordSize===b.wordSize&&Array.isArray(C.words)},b.max=function(C,E){return C.cmp(E)>0?C:E},b.min=function(C,E){return C.cmp(E)<0?C:E},b.prototype._init=function(C,E,N){if("number"==typeof C)return this._initNumber(C,E,N);if("object"==typeof C)return this._initArray(C,E,N);"hex"===E&&(E=16),j(E===(0|E)&&E>=2&&E<=36);var P=0;"-"===(C=C.toString().replace(/\s+/g,""))[0]&&(P++,this.negative=1),P=0;P-=3)this.words[Q]|=(Y=C[P]|C[P-1]<<8|C[P-2]<<16)<>>26-ne&67108863,(ne+=24)>=26&&(ne-=26,Q++);else if("le"===N)for(P=0,Q=0;P>>26-ne&67108863,(ne+=24)>=26&&(ne-=26,Q++);return this.strip()},b.prototype._parseHex=function(C,E,N){this.length=Math.ceil((C.length-E)/6),this.words=new Array(this.length);for(var P=0;P=E;P-=2)ne=w(C,E,P)<=18?(Q-=18,this.words[Y+=1]|=ne>>>26):Q+=8;else for(P=(C.length-E)%2==0?E+1:E;P=18?(Q-=18,this.words[Y+=1]|=ne>>>26):Q+=8;this.strip()},b.prototype._parseBase=function(C,E,N){this.words=[0],this.length=1;for(var P=0,Q=1;Q<=67108863;Q*=E)P++;P--,Q=Q/E|0;for(var Y=C.length-N,ne=Y%P,H=Math.min(Y,Y-ne)+N,M=0,z=N;z1&&0===this.words[this.length-1];)this.length--;return this._normSign()},b.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},b.prototype.inspect=function(){return(this.red?""};var I=["","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"],T=[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],a=[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];function i($,C,E){E.negative=C.negative^$.negative;var N=$.length+C.length|0;E.length=N,N=N-1|0;var P=0|$.words[0],Q=0|C.words[0],Y=P*Q,H=Y/67108864|0;E.words[0]=67108863&Y;for(var M=1;M>>26,Ie=67108863&H,fe=Math.min(M,C.length-1),Xe=Math.max(0,M-$.length+1);Xe<=fe;Xe++)z+=(Y=(P=0|$.words[M-Xe|0])*(Q=0|C.words[Xe])+Ie)/67108864|0,Ie=67108863&Y;E.words[M]=0|Ie,H=0|z}return 0!==H?E.words[M]=0|H:E.length--,E.strip()}b.prototype.toString=function(C,E){var N;if(E=0|E||1,16===(C=C||10)||"hex"===C){N="";for(var P=0,Q=0,Y=0;Y>>24-P&16777215)||Y!==this.length-1?I[6-H.length]+H+N:H+N,(P+=2)>=26&&(P-=26,Y--)}for(0!==Q&&(N=Q.toString(16)+N);N.length%E!=0;)N="0"+N;return 0!==this.negative&&(N="-"+N),N}if(C===(0|C)&&C>=2&&C<=36){var M=T[C],z=a[C];N="";var Ie=this.clone();for(Ie.negative=0;!Ie.isZero();){var fe=Ie.modn(z).toString(C);N=(Ie=Ie.idivn(z)).isZero()?fe+N:I[M-fe.length]+fe+N}for(this.isZero()&&(N="0"+N);N.length%E!=0;)N="0"+N;return 0!==this.negative&&(N="-"+N),N}j(!1,"Base should be between 2 and 36")},b.prototype.toNumber=function(){var C=this.words[0];return 2===this.length?C+=67108864*this.words[1]:3===this.length&&1===this.words[2]?C+=4503599627370496+67108864*this.words[1]:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-C:C},b.prototype.toJSON=function(){return this.toString(16)},b.prototype.toBuffer=function(C,E){return j(typeof g<"u"),this.toArrayLike(g,C,E)},b.prototype.toArray=function(C,E){return this.toArrayLike(Array,C,E)},b.prototype.toArrayLike=function(C,E,N){var P=this.byteLength(),Q=N||Math.max(1,P);j(P<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var H,M,Y="le"===E,ne=new C(Q),z=this.clone();if(Y){for(M=0;!z.isZero();M++)H=z.andln(255),z.iushrn(8),ne[M]=H;for(;M=4096&&(N+=13,E>>>=13),E>=64&&(N+=7,E>>>=7),E>=8&&(N+=4,E>>>=4),E>=2&&(N+=2,E>>>=2),N+E},b.prototype._zeroBits=function(C){if(0===C)return 26;var E=C,N=0;return 8191&E||(N+=13,E>>>=13),127&E||(N+=7,E>>>=7),15&E||(N+=4,E>>>=4),3&E||(N+=2,E>>>=2),1&E||N++,N},b.prototype.bitLength=function(){var E=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+E},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var C=0,E=0;EC.length?this.clone().ior(C):C.clone().ior(this)},b.prototype.uor=function(C){return this.length>C.length?this.clone().iuor(C):C.clone().iuor(this)},b.prototype.iuand=function(C){var E;E=this.length>C.length?C:this;for(var N=0;NC.length?this.clone().iand(C):C.clone().iand(this)},b.prototype.uand=function(C){return this.length>C.length?this.clone().iuand(C):C.clone().iuand(this)},b.prototype.iuxor=function(C){var E,N;this.length>C.length?(E=this,N=C):(E=C,N=this);for(var P=0;PC.length?this.clone().ixor(C):C.clone().ixor(this)},b.prototype.uxor=function(C){return this.length>C.length?this.clone().iuxor(C):C.clone().iuxor(this)},b.prototype.inotn=function(C){j("number"==typeof C&&C>=0);var E=0|Math.ceil(C/26),N=C%26;this._expand(E),N>0&&E--;for(var P=0;P0&&(this.words[P]=~this.words[P]&67108863>>26-N),this.strip()},b.prototype.notn=function(C){return this.clone().inotn(C)},b.prototype.setn=function(C,E){j("number"==typeof C&&C>=0);var N=C/26|0,P=C%26;return this._expand(N+1),this.words[N]=E?this.words[N]|1<C.length?(N=this,P=C):(N=C,P=this);for(var Q=0,Y=0;Y>>26;for(;0!==Q&&Y>>26;if(this.length=N.length,0!==Q)this.words[this.length]=Q,this.length++;else if(N!==this)for(;YC.length?this.clone().iadd(C):C.clone().iadd(this)},b.prototype.isub=function(C){if(0!==C.negative){C.negative=0;var E=this.iadd(C);return C.negative=1,E._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(C),this.negative=1,this._normSign();var P,Q,N=this.cmp(C);if(0===N)return this.negative=0,this.length=1,this.words[0]=0,this;N>0?(P=this,Q=C):(P=C,Q=this);for(var Y=0,ne=0;ne>26,this.words[ne]=67108863&E;for(;0!==Y&&ne>26,this.words[ne]=67108863&E;if(0===Y&&ne>>13,He=0|P[1],kt=8191&He,Ze=He>>>13,br=0|P[2],nt=8191&br,at=br>>>13,nn=0|P[3],ft=8191&nn,Ct=nn>>>13,St=0|P[4],At=8191&St,vt=St>>>13,ln=0|P[5],zt=8191&ln,Gt=ln>>>13,$t=0|P[6],Pt=8191&$t,un=$t>>>13,jn=0|P[7],bn=8191&jn,Cn=jn>>>13,rr=0|P[8],hr=8191&rr,Z=rr>>>13,B=0|P[9],R=8191&B,le=B>>>13,Ce=0|Q[0],Fe=8191&Ce,Ve=Ce>>>13,rn=0|Q[1],en=8191&rn,Xt=rn>>>13,tr=0|Q[2],qt=8191&tr,Dt=tr>>>13,so=0|Q[3],Vt=8191&so,Kn=so>>>13,xo=0|Q[4],Yt=8191&xo,_t=xo>>>13,Fo=0|Q[5],Jn=8191&Fo,Tr=Fo>>>13,ci=0|Q[6],Le=8191&ci,Mn=ci>>>13,F=0|Q[7],W=8191&F,X=F>>>13,O=0|Q[8],ie=8191&O,Ee=O>>>13,Re=0|Q[9],Je=8191&Re,rt=Re>>>13;N.negative=C.negative^E.negative,N.length=19;var Ut=(ne+(H=Math.imul(fe,Fe))|0)+((8191&(M=(M=Math.imul(fe,Ve))+Math.imul(Xe,Fe)|0))<<13)|0;ne=((z=Math.imul(Xe,Ve))+(M>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,H=Math.imul(kt,Fe),M=(M=Math.imul(kt,Ve))+Math.imul(Ze,Fe)|0,z=Math.imul(Ze,Ve);var gt=(ne+(H=H+Math.imul(fe,en)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Xt)|0)+Math.imul(Xe,en)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Xt)|0)+(M>>>13)|0)+(gt>>>26)|0,gt&=67108863,H=Math.imul(nt,Fe),M=(M=Math.imul(nt,Ve))+Math.imul(at,Fe)|0,z=Math.imul(at,Ve),H=H+Math.imul(kt,en)|0,M=(M=M+Math.imul(kt,Xt)|0)+Math.imul(Ze,en)|0,z=z+Math.imul(Ze,Xt)|0;var Gn=(ne+(H=H+Math.imul(fe,qt)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Dt)|0)+Math.imul(Xe,qt)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Dt)|0)+(M>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,H=Math.imul(ft,Fe),M=(M=Math.imul(ft,Ve))+Math.imul(Ct,Fe)|0,z=Math.imul(Ct,Ve),H=H+Math.imul(nt,en)|0,M=(M=M+Math.imul(nt,Xt)|0)+Math.imul(at,en)|0,z=z+Math.imul(at,Xt)|0,H=H+Math.imul(kt,qt)|0,M=(M=M+Math.imul(kt,Dt)|0)+Math.imul(Ze,qt)|0,z=z+Math.imul(Ze,Dt)|0;var Bt=(ne+(H=H+Math.imul(fe,Vt)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Kn)|0)+Math.imul(Xe,Vt)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Kn)|0)+(M>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,H=Math.imul(At,Fe),M=(M=Math.imul(At,Ve))+Math.imul(vt,Fe)|0,z=Math.imul(vt,Ve),H=H+Math.imul(ft,en)|0,M=(M=M+Math.imul(ft,Xt)|0)+Math.imul(Ct,en)|0,z=z+Math.imul(Ct,Xt)|0,H=H+Math.imul(nt,qt)|0,M=(M=M+Math.imul(nt,Dt)|0)+Math.imul(at,qt)|0,z=z+Math.imul(at,Dt)|0,H=H+Math.imul(kt,Vt)|0,M=(M=M+Math.imul(kt,Kn)|0)+Math.imul(Ze,Vt)|0,z=z+Math.imul(Ze,Kn)|0;var tn=(ne+(H=H+Math.imul(fe,Yt)|0)|0)+((8191&(M=(M=M+Math.imul(fe,_t)|0)+Math.imul(Xe,Yt)|0))<<13)|0;ne=((z=z+Math.imul(Xe,_t)|0)+(M>>>13)|0)+(tn>>>26)|0,tn&=67108863,H=Math.imul(zt,Fe),M=(M=Math.imul(zt,Ve))+Math.imul(Gt,Fe)|0,z=Math.imul(Gt,Ve),H=H+Math.imul(At,en)|0,M=(M=M+Math.imul(At,Xt)|0)+Math.imul(vt,en)|0,z=z+Math.imul(vt,Xt)|0,H=H+Math.imul(ft,qt)|0,M=(M=M+Math.imul(ft,Dt)|0)+Math.imul(Ct,qt)|0,z=z+Math.imul(Ct,Dt)|0,H=H+Math.imul(nt,Vt)|0,M=(M=M+Math.imul(nt,Kn)|0)+Math.imul(at,Vt)|0,z=z+Math.imul(at,Kn)|0,H=H+Math.imul(kt,Yt)|0,M=(M=M+Math.imul(kt,_t)|0)+Math.imul(Ze,Yt)|0,z=z+Math.imul(Ze,_t)|0;var dn=(ne+(H=H+Math.imul(fe,Jn)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Tr)|0)+Math.imul(Xe,Jn)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Tr)|0)+(M>>>13)|0)+(dn>>>26)|0,dn&=67108863,H=Math.imul(Pt,Fe),M=(M=Math.imul(Pt,Ve))+Math.imul(un,Fe)|0,z=Math.imul(un,Ve),H=H+Math.imul(zt,en)|0,M=(M=M+Math.imul(zt,Xt)|0)+Math.imul(Gt,en)|0,z=z+Math.imul(Gt,Xt)|0,H=H+Math.imul(At,qt)|0,M=(M=M+Math.imul(At,Dt)|0)+Math.imul(vt,qt)|0,z=z+Math.imul(vt,Dt)|0,H=H+Math.imul(ft,Vt)|0,M=(M=M+Math.imul(ft,Kn)|0)+Math.imul(Ct,Vt)|0,z=z+Math.imul(Ct,Kn)|0,H=H+Math.imul(nt,Yt)|0,M=(M=M+Math.imul(nt,_t)|0)+Math.imul(at,Yt)|0,z=z+Math.imul(at,_t)|0,H=H+Math.imul(kt,Jn)|0,M=(M=M+Math.imul(kt,Tr)|0)+Math.imul(Ze,Jn)|0,z=z+Math.imul(Ze,Tr)|0;var fn=(ne+(H=H+Math.imul(fe,Le)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Mn)|0)+Math.imul(Xe,Le)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Mn)|0)+(M>>>13)|0)+(fn>>>26)|0,fn&=67108863,H=Math.imul(bn,Fe),M=(M=Math.imul(bn,Ve))+Math.imul(Cn,Fe)|0,z=Math.imul(Cn,Ve),H=H+Math.imul(Pt,en)|0,M=(M=M+Math.imul(Pt,Xt)|0)+Math.imul(un,en)|0,z=z+Math.imul(un,Xt)|0,H=H+Math.imul(zt,qt)|0,M=(M=M+Math.imul(zt,Dt)|0)+Math.imul(Gt,qt)|0,z=z+Math.imul(Gt,Dt)|0,H=H+Math.imul(At,Vt)|0,M=(M=M+Math.imul(At,Kn)|0)+Math.imul(vt,Vt)|0,z=z+Math.imul(vt,Kn)|0,H=H+Math.imul(ft,Yt)|0,M=(M=M+Math.imul(ft,_t)|0)+Math.imul(Ct,Yt)|0,z=z+Math.imul(Ct,_t)|0,H=H+Math.imul(nt,Jn)|0,M=(M=M+Math.imul(nt,Tr)|0)+Math.imul(at,Jn)|0,z=z+Math.imul(at,Tr)|0,H=H+Math.imul(kt,Le)|0,M=(M=M+Math.imul(kt,Mn)|0)+Math.imul(Ze,Le)|0,z=z+Math.imul(Ze,Mn)|0;var yn=(ne+(H=H+Math.imul(fe,W)|0)|0)+((8191&(M=(M=M+Math.imul(fe,X)|0)+Math.imul(Xe,W)|0))<<13)|0;ne=((z=z+Math.imul(Xe,X)|0)+(M>>>13)|0)+(yn>>>26)|0,yn&=67108863,H=Math.imul(hr,Fe),M=(M=Math.imul(hr,Ve))+Math.imul(Z,Fe)|0,z=Math.imul(Z,Ve),H=H+Math.imul(bn,en)|0,M=(M=M+Math.imul(bn,Xt)|0)+Math.imul(Cn,en)|0,z=z+Math.imul(Cn,Xt)|0,H=H+Math.imul(Pt,qt)|0,M=(M=M+Math.imul(Pt,Dt)|0)+Math.imul(un,qt)|0,z=z+Math.imul(un,Dt)|0,H=H+Math.imul(zt,Vt)|0,M=(M=M+Math.imul(zt,Kn)|0)+Math.imul(Gt,Vt)|0,z=z+Math.imul(Gt,Kn)|0,H=H+Math.imul(At,Yt)|0,M=(M=M+Math.imul(At,_t)|0)+Math.imul(vt,Yt)|0,z=z+Math.imul(vt,_t)|0,H=H+Math.imul(ft,Jn)|0,M=(M=M+Math.imul(ft,Tr)|0)+Math.imul(Ct,Jn)|0,z=z+Math.imul(Ct,Tr)|0,H=H+Math.imul(nt,Le)|0,M=(M=M+Math.imul(nt,Mn)|0)+Math.imul(at,Le)|0,z=z+Math.imul(at,Mn)|0,H=H+Math.imul(kt,W)|0,M=(M=M+Math.imul(kt,X)|0)+Math.imul(Ze,W)|0,z=z+Math.imul(Ze,X)|0;var sn=(ne+(H=H+Math.imul(fe,ie)|0)|0)+((8191&(M=(M=M+Math.imul(fe,Ee)|0)+Math.imul(Xe,ie)|0))<<13)|0;ne=((z=z+Math.imul(Xe,Ee)|0)+(M>>>13)|0)+(sn>>>26)|0,sn&=67108863,H=Math.imul(R,Fe),M=(M=Math.imul(R,Ve))+Math.imul(le,Fe)|0,z=Math.imul(le,Ve),H=H+Math.imul(hr,en)|0,M=(M=M+Math.imul(hr,Xt)|0)+Math.imul(Z,en)|0,z=z+Math.imul(Z,Xt)|0,H=H+Math.imul(bn,qt)|0,M=(M=M+Math.imul(bn,Dt)|0)+Math.imul(Cn,qt)|0,z=z+Math.imul(Cn,Dt)|0,H=H+Math.imul(Pt,Vt)|0,M=(M=M+Math.imul(Pt,Kn)|0)+Math.imul(un,Vt)|0,z=z+Math.imul(un,Kn)|0,H=H+Math.imul(zt,Yt)|0,M=(M=M+Math.imul(zt,_t)|0)+Math.imul(Gt,Yt)|0,z=z+Math.imul(Gt,_t)|0,H=H+Math.imul(At,Jn)|0,M=(M=M+Math.imul(At,Tr)|0)+Math.imul(vt,Jn)|0,z=z+Math.imul(vt,Tr)|0,H=H+Math.imul(ft,Le)|0,M=(M=M+Math.imul(ft,Mn)|0)+Math.imul(Ct,Le)|0,z=z+Math.imul(Ct,Mn)|0,H=H+Math.imul(nt,W)|0,M=(M=M+Math.imul(nt,X)|0)+Math.imul(at,W)|0,z=z+Math.imul(at,X)|0,H=H+Math.imul(kt,ie)|0,M=(M=M+Math.imul(kt,Ee)|0)+Math.imul(Ze,ie)|0,z=z+Math.imul(Ze,Ee)|0;var wn=(ne+(H=H+Math.imul(fe,Je)|0)|0)+((8191&(M=(M=M+Math.imul(fe,rt)|0)+Math.imul(Xe,Je)|0))<<13)|0;ne=((z=z+Math.imul(Xe,rt)|0)+(M>>>13)|0)+(wn>>>26)|0,wn&=67108863,H=Math.imul(R,en),M=(M=Math.imul(R,Xt))+Math.imul(le,en)|0,z=Math.imul(le,Xt),H=H+Math.imul(hr,qt)|0,M=(M=M+Math.imul(hr,Dt)|0)+Math.imul(Z,qt)|0,z=z+Math.imul(Z,Dt)|0,H=H+Math.imul(bn,Vt)|0,M=(M=M+Math.imul(bn,Kn)|0)+Math.imul(Cn,Vt)|0,z=z+Math.imul(Cn,Kn)|0,H=H+Math.imul(Pt,Yt)|0,M=(M=M+Math.imul(Pt,_t)|0)+Math.imul(un,Yt)|0,z=z+Math.imul(un,_t)|0,H=H+Math.imul(zt,Jn)|0,M=(M=M+Math.imul(zt,Tr)|0)+Math.imul(Gt,Jn)|0,z=z+Math.imul(Gt,Tr)|0,H=H+Math.imul(At,Le)|0,M=(M=M+Math.imul(At,Mn)|0)+Math.imul(vt,Le)|0,z=z+Math.imul(vt,Mn)|0,H=H+Math.imul(ft,W)|0,M=(M=M+Math.imul(ft,X)|0)+Math.imul(Ct,W)|0,z=z+Math.imul(Ct,X)|0,H=H+Math.imul(nt,ie)|0,M=(M=M+Math.imul(nt,Ee)|0)+Math.imul(at,ie)|0,z=z+Math.imul(at,Ee)|0;var Zt=(ne+(H=H+Math.imul(kt,Je)|0)|0)+((8191&(M=(M=M+Math.imul(kt,rt)|0)+Math.imul(Ze,Je)|0))<<13)|0;ne=((z=z+Math.imul(Ze,rt)|0)+(M>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,H=Math.imul(R,qt),M=(M=Math.imul(R,Dt))+Math.imul(le,qt)|0,z=Math.imul(le,Dt),H=H+Math.imul(hr,Vt)|0,M=(M=M+Math.imul(hr,Kn)|0)+Math.imul(Z,Vt)|0,z=z+Math.imul(Z,Kn)|0,H=H+Math.imul(bn,Yt)|0,M=(M=M+Math.imul(bn,_t)|0)+Math.imul(Cn,Yt)|0,z=z+Math.imul(Cn,_t)|0,H=H+Math.imul(Pt,Jn)|0,M=(M=M+Math.imul(Pt,Tr)|0)+Math.imul(un,Jn)|0,z=z+Math.imul(un,Tr)|0,H=H+Math.imul(zt,Le)|0,M=(M=M+Math.imul(zt,Mn)|0)+Math.imul(Gt,Le)|0,z=z+Math.imul(Gt,Mn)|0,H=H+Math.imul(At,W)|0,M=(M=M+Math.imul(At,X)|0)+Math.imul(vt,W)|0,z=z+Math.imul(vt,X)|0,H=H+Math.imul(ft,ie)|0,M=(M=M+Math.imul(ft,Ee)|0)+Math.imul(Ct,ie)|0,z=z+Math.imul(Ct,Ee)|0;var ut=(ne+(H=H+Math.imul(nt,Je)|0)|0)+((8191&(M=(M=M+Math.imul(nt,rt)|0)+Math.imul(at,Je)|0))<<13)|0;ne=((z=z+Math.imul(at,rt)|0)+(M>>>13)|0)+(ut>>>26)|0,ut&=67108863,H=Math.imul(R,Vt),M=(M=Math.imul(R,Kn))+Math.imul(le,Vt)|0,z=Math.imul(le,Kn),H=H+Math.imul(hr,Yt)|0,M=(M=M+Math.imul(hr,_t)|0)+Math.imul(Z,Yt)|0,z=z+Math.imul(Z,_t)|0,H=H+Math.imul(bn,Jn)|0,M=(M=M+Math.imul(bn,Tr)|0)+Math.imul(Cn,Jn)|0,z=z+Math.imul(Cn,Tr)|0,H=H+Math.imul(Pt,Le)|0,M=(M=M+Math.imul(Pt,Mn)|0)+Math.imul(un,Le)|0,z=z+Math.imul(un,Mn)|0,H=H+Math.imul(zt,W)|0,M=(M=M+Math.imul(zt,X)|0)+Math.imul(Gt,W)|0,z=z+Math.imul(Gt,X)|0,H=H+Math.imul(At,ie)|0,M=(M=M+Math.imul(At,Ee)|0)+Math.imul(vt,ie)|0,z=z+Math.imul(vt,Ee)|0;var Jt=(ne+(H=H+Math.imul(ft,Je)|0)|0)+((8191&(M=(M=M+Math.imul(ft,rt)|0)+Math.imul(Ct,Je)|0))<<13)|0;ne=((z=z+Math.imul(Ct,rt)|0)+(M>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,H=Math.imul(R,Yt),M=(M=Math.imul(R,_t))+Math.imul(le,Yt)|0,z=Math.imul(le,_t),H=H+Math.imul(hr,Jn)|0,M=(M=M+Math.imul(hr,Tr)|0)+Math.imul(Z,Jn)|0,z=z+Math.imul(Z,Tr)|0,H=H+Math.imul(bn,Le)|0,M=(M=M+Math.imul(bn,Mn)|0)+Math.imul(Cn,Le)|0,z=z+Math.imul(Cn,Mn)|0,H=H+Math.imul(Pt,W)|0,M=(M=M+Math.imul(Pt,X)|0)+Math.imul(un,W)|0,z=z+Math.imul(un,X)|0,H=H+Math.imul(zt,ie)|0,M=(M=M+Math.imul(zt,Ee)|0)+Math.imul(Gt,ie)|0,z=z+Math.imul(Gt,Ee)|0;var Rt=(ne+(H=H+Math.imul(At,Je)|0)|0)+((8191&(M=(M=M+Math.imul(At,rt)|0)+Math.imul(vt,Je)|0))<<13)|0;ne=((z=z+Math.imul(vt,rt)|0)+(M>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,H=Math.imul(R,Jn),M=(M=Math.imul(R,Tr))+Math.imul(le,Jn)|0,z=Math.imul(le,Tr),H=H+Math.imul(hr,Le)|0,M=(M=M+Math.imul(hr,Mn)|0)+Math.imul(Z,Le)|0,z=z+Math.imul(Z,Mn)|0,H=H+Math.imul(bn,W)|0,M=(M=M+Math.imul(bn,X)|0)+Math.imul(Cn,W)|0,z=z+Math.imul(Cn,X)|0,H=H+Math.imul(Pt,ie)|0,M=(M=M+Math.imul(Pt,Ee)|0)+Math.imul(un,ie)|0,z=z+Math.imul(un,Ee)|0;var Qt=(ne+(H=H+Math.imul(zt,Je)|0)|0)+((8191&(M=(M=M+Math.imul(zt,rt)|0)+Math.imul(Gt,Je)|0))<<13)|0;ne=((z=z+Math.imul(Gt,rt)|0)+(M>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,H=Math.imul(R,Le),M=(M=Math.imul(R,Mn))+Math.imul(le,Le)|0,z=Math.imul(le,Mn),H=H+Math.imul(hr,W)|0,M=(M=M+Math.imul(hr,X)|0)+Math.imul(Z,W)|0,z=z+Math.imul(Z,X)|0,H=H+Math.imul(bn,ie)|0,M=(M=M+Math.imul(bn,Ee)|0)+Math.imul(Cn,ie)|0,z=z+Math.imul(Cn,Ee)|0;var et=(ne+(H=H+Math.imul(Pt,Je)|0)|0)+((8191&(M=(M=M+Math.imul(Pt,rt)|0)+Math.imul(un,Je)|0))<<13)|0;ne=((z=z+Math.imul(un,rt)|0)+(M>>>13)|0)+(et>>>26)|0,et&=67108863,H=Math.imul(R,W),M=(M=Math.imul(R,X))+Math.imul(le,W)|0,z=Math.imul(le,X),H=H+Math.imul(hr,ie)|0,M=(M=M+Math.imul(hr,Ee)|0)+Math.imul(Z,ie)|0,z=z+Math.imul(Z,Ee)|0;var xt=(ne+(H=H+Math.imul(bn,Je)|0)|0)+((8191&(M=(M=M+Math.imul(bn,rt)|0)+Math.imul(Cn,Je)|0))<<13)|0;ne=((z=z+Math.imul(Cn,rt)|0)+(M>>>13)|0)+(xt>>>26)|0,xt&=67108863,H=Math.imul(R,ie),M=(M=Math.imul(R,Ee))+Math.imul(le,ie)|0,z=Math.imul(le,Ee);var je=(ne+(H=H+Math.imul(hr,Je)|0)|0)+((8191&(M=(M=M+Math.imul(hr,rt)|0)+Math.imul(Z,Je)|0))<<13)|0;ne=((z=z+Math.imul(Z,rt)|0)+(M>>>13)|0)+(je>>>26)|0,je&=67108863;var Ye=(ne+(H=Math.imul(R,Je))|0)+((8191&(M=(M=Math.imul(R,rt))+Math.imul(le,Je)|0))<<13)|0;return ne=((z=Math.imul(le,rt))+(M>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,Y[0]=Ut,Y[1]=gt,Y[2]=Gn,Y[3]=Bt,Y[4]=tn,Y[5]=dn,Y[6]=fn,Y[7]=yn,Y[8]=sn,Y[9]=wn,Y[10]=Zt,Y[11]=ut,Y[12]=Jt,Y[13]=Rt,Y[14]=Qt,Y[15]=et,Y[16]=xt,Y[17]=je,Y[18]=Ye,0!==ne&&(Y[19]=ne,N.length++),N};function p($,C,E){return(new v).mulp($,C,E)}function v($,C){this.x=$,this.y=C}Math.imul||(c=i),b.prototype.mulTo=function(C,E){var N,P=this.length+C.length;return N=10===this.length&&10===C.length?c(this,C,E):P<63?i(this,C,E):P<1024?function f($,C,E){E.negative=C.negative^$.negative,E.length=$.length+C.length;for(var N=0,P=0,Q=0;Q>>26)|0)>>>26,Y&=67108863}E.words[Q]=ne,N=Y,Y=P}return 0!==N?E.words[Q]=N:E.length--,E.strip()}(this,C,E):p(this,C,E),N},v.prototype.makeRBT=function(C){for(var E=new Array(C),N=b.prototype._countBits(C)-1,P=0;P>=1;return P},v.prototype.permute=function(C,E,N,P,Q,Y){for(var ne=0;ne>>=1)Q++;return 1<>>=13),Q>>>=13;for(Y=2*E;Y>=26,E+=P/67108864|0,E+=Q>>>26,this.words[N]=67108863&Q}return 0!==E&&(this.words[N]=E,this.length++),this},b.prototype.muln=function(C){return this.clone().imuln(C)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(C){var E=function r($){for(var C=new Array($.bitLength()),E=0;E>>P}return C}(C);if(0===E.length)return new b(1);for(var N=this,P=0;P=0);var Q,E=C%26,N=(C-E)/26,P=67108863>>>26-E<<26-E;if(0!==E){var Y=0;for(Q=0;Q>>26-E}Y&&(this.words[Q]=Y,this.length++)}if(0!==N){for(Q=this.length-1;Q>=0;Q--)this.words[Q+N]=this.words[Q];for(Q=0;Q=0),P=E?(E-E%26)/26:0;var Q=C%26,Y=Math.min((C-Q)/26,this.length),ne=67108863^67108863>>>Q<Y)for(this.length-=Y,M=0;M=0&&(0!==z||M>=P);M--){var Ie=0|this.words[M];this.words[M]=z<<26-Q|Ie>>>Q,z=Ie&ne}return H&&0!==z&&(H.words[H.length++]=z),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(C,E,N){return j(0===this.negative),this.iushrn(C,E,N)},b.prototype.shln=function(C){return this.clone().ishln(C)},b.prototype.ushln=function(C){return this.clone().iushln(C)},b.prototype.shrn=function(C){return this.clone().ishrn(C)},b.prototype.ushrn=function(C){return this.clone().iushrn(C)},b.prototype.testn=function(C){j("number"==typeof C&&C>=0);var E=C%26,N=(C-E)/26;return!(this.length<=N||!(this.words[N]&1<=0);var E=C%26,N=(C-E)/26;return j(0===this.negative,"imaskn works only with positive numbers"),this.length<=N?this:(0!==E&&N++,this.length=Math.min(N,this.length),0!==E&&(this.words[this.length-1]&=67108863^67108863>>>E<=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},b.prototype.isubn=function(C){if(j("number"==typeof C),j(C<67108864),C<0)return this.iaddn(-C);if(0!==this.negative)return this.negative=0,this.iaddn(C),this.negative=1,this;if(this.words[0]-=C,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E>26)-(H/67108864|0),this.words[Q+N]=67108863&Y}for(;Q>26,this.words[Q+N]=67108863&Y;if(0===ne)return this.strip();for(j(-1===ne),ne=0,Q=0;Q>26,this.words[Q]=67108863&Y;return this.negative=1,this.strip()},b.prototype._wordDiv=function(C,E){var N,P=this.clone(),Q=C,Y=0|Q.words[Q.length-1];0!=(N=26-this._countBits(Y))&&(Q=Q.ushln(N),P.iushln(N),Y=0|Q.words[Q.length-1]);var M,H=P.length-Q.length;if("mod"!==E){(M=new b(null)).length=H+1,M.words=new Array(M.length);for(var z=0;z=0;fe--){var Xe=67108864*(0|P.words[Q.length+fe])+(0|P.words[Q.length+fe-1]);for(Xe=Math.min(Xe/Y|0,67108863),P._ishlnsubmul(Q,Xe,fe);0!==P.negative;)Xe--,P.negative=0,P._ishlnsubmul(Q,1,fe),P.isZero()||(P.negative^=1);M&&(M.words[fe]=Xe)}return M&&M.strip(),P.strip(),"div"!==E&&0!==N&&P.iushrn(N),{div:M||null,mod:P}},b.prototype.divmod=function(C,E,N){return j(!C.isZero()),this.isZero()?{div:new b(0),mod:new b(0)}:0!==this.negative&&0===C.negative?(Y=this.neg().divmod(C,E),"mod"!==E&&(P=Y.div.neg()),"div"!==E&&(Q=Y.mod.neg(),N&&0!==Q.negative&&Q.iadd(C)),{div:P,mod:Q}):0===this.negative&&0!==C.negative?(Y=this.divmod(C.neg(),E),"mod"!==E&&(P=Y.div.neg()),{div:P,mod:Y.mod}):this.negative&C.negative?(Y=this.neg().divmod(C.neg(),E),"div"!==E&&(Q=Y.mod.neg(),N&&0!==Q.negative&&Q.isub(C)),{div:Y.div,mod:Q}):C.length>this.length||this.cmp(C)<0?{div:new b(0),mod:this}:1===C.length?"div"===E?{div:this.divn(C.words[0]),mod:null}:"mod"===E?{div:null,mod:new b(this.modn(C.words[0]))}:{div:this.divn(C.words[0]),mod:new b(this.modn(C.words[0]))}:this._wordDiv(C,E);var P,Q,Y},b.prototype.div=function(C){return this.divmod(C,"div",!1).div},b.prototype.mod=function(C){return this.divmod(C,"mod",!1).mod},b.prototype.umod=function(C){return this.divmod(C,"mod",!0).mod},b.prototype.divRound=function(C){var E=this.divmod(C);if(E.mod.isZero())return E.div;var N=0!==E.div.negative?E.mod.isub(C):E.mod,P=C.ushrn(1),Q=C.andln(1),Y=N.cmp(P);return Y<0||1===Q&&0===Y?E.div:0!==E.div.negative?E.div.isubn(1):E.div.iaddn(1)},b.prototype.modn=function(C){j(C<=67108863);for(var E=(1<<26)%C,N=0,P=this.length-1;P>=0;P--)N=(E*N+(0|this.words[P]))%C;return N},b.prototype.idivn=function(C){j(C<=67108863);for(var E=0,N=this.length-1;N>=0;N--){var P=(0|this.words[N])+67108864*E;this.words[N]=P/C|0,E=P%C}return this.strip()},b.prototype.divn=function(C){return this.clone().idivn(C)},b.prototype.egcd=function(C){j(0===C.negative),j(!C.isZero());var E=this,N=C.clone();E=0!==E.negative?E.umod(C):E.clone();for(var P=new b(1),Q=new b(0),Y=new b(0),ne=new b(1),H=0;E.isEven()&&N.isEven();)E.iushrn(1),N.iushrn(1),++H;for(var M=N.clone(),z=E.clone();!E.isZero();){for(var Ie=0,fe=1;!(E.words[0]&fe)&&Ie<26;++Ie,fe<<=1);if(Ie>0)for(E.iushrn(Ie);Ie-- >0;)(P.isOdd()||Q.isOdd())&&(P.iadd(M),Q.isub(z)),P.iushrn(1),Q.iushrn(1);for(var Xe=0,He=1;!(N.words[0]&He)&&Xe<26;++Xe,He<<=1);if(Xe>0)for(N.iushrn(Xe);Xe-- >0;)(Y.isOdd()||ne.isOdd())&&(Y.iadd(M),ne.isub(z)),Y.iushrn(1),ne.iushrn(1);E.cmp(N)>=0?(E.isub(N),P.isub(Y),Q.isub(ne)):(N.isub(E),Y.isub(P),ne.isub(Q))}return{a:Y,b:ne,gcd:N.iushln(H)}},b.prototype._invmp=function(C){j(0===C.negative),j(!C.isZero());var Ie,E=this,N=C.clone();E=0!==E.negative?E.umod(C):E.clone();for(var P=new b(1),Q=new b(0),Y=N.clone();E.cmpn(1)>0&&N.cmpn(1)>0;){for(var ne=0,H=1;!(E.words[0]&H)&&ne<26;++ne,H<<=1);if(ne>0)for(E.iushrn(ne);ne-- >0;)P.isOdd()&&P.iadd(Y),P.iushrn(1);for(var M=0,z=1;!(N.words[0]&z)&&M<26;++M,z<<=1);if(M>0)for(N.iushrn(M);M-- >0;)Q.isOdd()&&Q.iadd(Y),Q.iushrn(1);E.cmp(N)>=0?(E.isub(N),P.isub(Q)):(N.isub(E),Q.isub(P))}return(Ie=0===E.cmpn(1)?P:Q).cmpn(0)<0&&Ie.iadd(C),Ie},b.prototype.gcd=function(C){if(this.isZero())return C.abs();if(C.isZero())return this.abs();var E=this.clone(),N=C.clone();E.negative=0,N.negative=0;for(var P=0;E.isEven()&&N.isEven();P++)E.iushrn(1),N.iushrn(1);for(;;){for(;E.isEven();)E.iushrn(1);for(;N.isEven();)N.iushrn(1);var Q=E.cmp(N);if(Q<0){var Y=E;E=N,N=Y}else if(0===Q||0===N.cmpn(1))break;E.isub(N)}return N.iushln(P)},b.prototype.invm=function(C){return this.egcd(C).a.umod(C)},b.prototype.isEven=function(){return 0==(1&this.words[0])},b.prototype.isOdd=function(){return 1==(1&this.words[0])},b.prototype.andln=function(C){return this.words[0]&C},b.prototype.bincn=function(C){j("number"==typeof C);var E=C%26,N=(C-E)/26,P=1<>>26,this.words[Y]=ne&=67108863}return 0!==Q&&(this.words[Y]=Q,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(C){var N,E=C<0;if(0!==this.negative&&!E)return-1;if(0===this.negative&&E)return 1;if(this.strip(),this.length>1)N=1;else{E&&(C=-C),j(C<=67108863,"Number is too big");var P=0|this.words[0];N=P===C?0:PC.length)return 1;if(this.length=0;N--){var P=0|this.words[N],Q=0|C.words[N];if(P!==Q){PQ&&(E=1);break}}return E},b.prototype.gtn=function(C){return 1===this.cmpn(C)},b.prototype.gt=function(C){return 1===this.cmp(C)},b.prototype.gten=function(C){return this.cmpn(C)>=0},b.prototype.gte=function(C){return this.cmp(C)>=0},b.prototype.ltn=function(C){return-1===this.cmpn(C)},b.prototype.lt=function(C){return-1===this.cmp(C)},b.prototype.lten=function(C){return this.cmpn(C)<=0},b.prototype.lte=function(C){return this.cmp(C)<=0},b.prototype.eqn=function(C){return 0===this.cmpn(C)},b.prototype.eq=function(C){return 0===this.cmp(C)},b.red=function(C){return new Ae(C)},b.prototype.toRed=function(C){return j(!this.red,"Already a number in reduction context"),j(0===this.negative,"red works only with positives"),C.convertTo(this)._forceRed(C)},b.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},b.prototype._forceRed=function(C){return this.red=C,this},b.prototype.forceRed=function(C){return j(!this.red,"Already a number in reduction context"),this._forceRed(C)},b.prototype.redAdd=function(C){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,C)},b.prototype.redIAdd=function(C){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,C)},b.prototype.redSub=function(C){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,C)},b.prototype.redISub=function(C){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,C)},b.prototype.redShl=function(C){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,C)},b.prototype.redMul=function(C){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.mul(this,C)},b.prototype.redIMul=function(C){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.imul(this,C)},b.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},b.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},b.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},b.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},b.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},b.prototype.redPow=function(C){return j(this.red&&!C.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,C)};var L={k256:null,p224:null,p192:null,p25519:null};function ee($,C){this.name=$,this.p=new b(C,16),this.n=this.p.bitLength(),this.k=new b(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function oe(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function de(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function he(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function be(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Ae($){if("string"==typeof $){var C=b._prime($);this.m=C.p,this.prime=C}else j($.gtn(1),"modulus must be greater than 1"),this.m=$,this.prime=null}function J($){Ae.call(this,$),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new b(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)}ee.prototype._tmp=function(){var C=new b(null);return C.words=new Array(Math.ceil(this.n/13)),C},ee.prototype.ireduce=function(C){var N,E=C;do{this.split(E,this.tmp),N=(E=(E=this.imulK(E)).iadd(this.tmp)).bitLength()}while(N>this.n);var P=N0?E.isub(this.p):void 0!==E.strip?E.strip():E._strip(),E},ee.prototype.split=function(C,E){C.iushrn(this.n,0,E)},ee.prototype.imulK=function(C){return C.imul(this.k)},_(oe,ee),oe.prototype.split=function(C,E){for(var N=4194303,P=Math.min(C.length,9),Q=0;Q>>22,Y=ne}C.words[Q-10]=Y>>>=22,C.length-=0===Y&&C.length>10?10:9},oe.prototype.imulK=function(C){C.words[C.length]=0,C.words[C.length+1]=0,C.length+=2;for(var E=0,N=0;N>>=26,C.words[N]=Q,E=P}return 0!==E&&(C.words[C.length++]=E),C},b._prime=function(C){if(L[C])return L[C];var E;if("k256"===C)E=new oe;else if("p224"===C)E=new de;else if("p192"===C)E=new he;else{if("p25519"!==C)throw new Error("Unknown prime "+C);E=new be}return L[C]=E,E},Ae.prototype._verify1=function(C){j(0===C.negative,"red works only with positives"),j(C.red,"red works only with red numbers")},Ae.prototype._verify2=function(C,E){j(0==(C.negative|E.negative),"red works only with positives"),j(C.red&&C.red===E.red,"red works only with red numbers")},Ae.prototype.imod=function(C){return this.prime?this.prime.ireduce(C)._forceRed(this):C.umod(this.m)._forceRed(this)},Ae.prototype.neg=function(C){return C.isZero()?C.clone():this.m.sub(C)._forceRed(this)},Ae.prototype.add=function(C,E){this._verify2(C,E);var N=C.add(E);return N.cmp(this.m)>=0&&N.isub(this.m),N._forceRed(this)},Ae.prototype.iadd=function(C,E){this._verify2(C,E);var N=C.iadd(E);return N.cmp(this.m)>=0&&N.isub(this.m),N},Ae.prototype.sub=function(C,E){this._verify2(C,E);var N=C.sub(E);return N.cmpn(0)<0&&N.iadd(this.m),N._forceRed(this)},Ae.prototype.isub=function(C,E){this._verify2(C,E);var N=C.isub(E);return N.cmpn(0)<0&&N.iadd(this.m),N},Ae.prototype.shl=function(C,E){return this._verify1(C),this.imod(C.ushln(E))},Ae.prototype.imul=function(C,E){return this._verify2(C,E),this.imod(C.imul(E))},Ae.prototype.mul=function(C,E){return this._verify2(C,E),this.imod(C.mul(E))},Ae.prototype.isqr=function(C){return this.imul(C,C.clone())},Ae.prototype.sqr=function(C){return this.mul(C,C)},Ae.prototype.sqrt=function(C){if(C.isZero())return C.clone();var E=this.m.andln(3);if(j(E%2==1),3===E){var N=this.m.add(new b(1)).iushrn(2);return this.pow(C,N)}for(var P=this.m.subn(1),Q=0;!P.isZero()&&0===P.andln(1);)Q++,P.iushrn(1);j(!P.isZero());var Y=new b(1).toRed(this),ne=Y.redNeg(),H=this.m.subn(1).iushrn(1),M=this.m.bitLength();for(M=new b(2*M*M).toRed(this);0!==this.pow(M,H).cmp(ne);)M.redIAdd(ne);for(var z=this.pow(M,P),Ie=this.pow(C,P.addn(1).iushrn(1)),fe=this.pow(C,P),Xe=Q;0!==fe.cmp(Y);){for(var He=fe,kt=0;0!==He.cmp(Y);kt++)He=He.redSqr();j(kt=0;Q--){for(var z=E.words[Q],Ie=M-1;Ie>=0;Ie--){var fe=z>>Ie&1;Y!==P[0]&&(Y=this.sqr(Y)),0!==fe||0!==ne?(ne<<=1,ne|=fe,(4==++H||0===Q&&0===Ie)&&(Y=this.mul(Y,P[ne]),H=0,ne=0)):H=0}M=26}return Y},Ae.prototype.convertTo=function(C){var E=C.umod(this.m);return E===C?E.clone():E},Ae.prototype.convertFrom=function(C){var E=C.clone();return E.red=null,E},b.mont=function(C){return new J(C)},_(J,Ae),J.prototype.convertTo=function(C){return this.imod(C.ushln(this.shift))},J.prototype.convertFrom=function(C){var E=this.imod(C.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(C,E){if(C.isZero()||E.isZero())return C.words[0]=0,C.length=1,C;var N=C.imul(E),P=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=N.isub(P).iushrn(this.shift),Y=Q;return Q.cmp(this.m)>=0?Y=Q.isub(this.m):Q.cmpn(0)<0&&(Y=Q.iadd(this.m)),Y._forceRed(this)},J.prototype.mul=function(C,E){if(C.isZero()||E.isZero())return new b(0)._forceRed(this);var N=C.mul(E),P=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=N.isub(P).iushrn(this.shift),Y=Q;return Q.cmp(this.m)>=0?Y=Q.isub(this.m):Q.cmpn(0)<0&&(Y=Q.iadd(this.m)),Y._forceRed(this)},J.prototype.invm=function(C){return this.imod(C._invmp(this.m).mul(this.r2))._forceRed(this)}}(Me=G.nmd(Me),this)},7950:(Me,re,G)=>{var x;function S(_){this.rand=_}if(Me.exports=function(b){return x||(x=new S(null)),x.generate(b)},Me.exports.Rand=S,S.prototype.generate=function(b){return this._rand(b)},S.prototype._rand=function(b){if(this.rand.getBytes)return this.rand.getBytes(b);for(var g=new Uint8Array(b),d=0;d{"use strict";const S=G(5343),j=G(8461),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;re.lW=w,re.h2=50;const b=2147483647;function d(Z){if(Z>b)throw new RangeError('The value "'+Z+'" is invalid for option "size"');const B=new Uint8Array(Z);return Object.setPrototypeOf(B,w.prototype),B}function w(Z,B,R){if("number"==typeof Z){if("string"==typeof B)throw new TypeError('The "string" argument must be of type string. Received type number');return a(Z)}return k(Z,B,R)}function k(Z,B,R){if("string"==typeof Z)return function r(Z,B){if(("string"!=typeof B||""===B)&&(B="utf8"),!w.isEncoding(B))throw new TypeError("Unknown encoding: "+B);const R=0|ee(Z,B);let le=d(R);const Ce=le.write(Z,B);return Ce!==R&&(le=le.slice(0,Ce)),le}(Z,B);if(ArrayBuffer.isView(Z))return function c(Z){if(jn(Z,Uint8Array)){const B=new Uint8Array(Z);return f(B.buffer,B.byteOffset,B.byteLength)}return i(Z)}(Z);if(null==Z)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z);if(jn(Z,ArrayBuffer)||Z&&jn(Z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jn(Z,SharedArrayBuffer)||Z&&jn(Z.buffer,SharedArrayBuffer)))return f(Z,B,R);if("number"==typeof Z)throw new TypeError('The "value" argument must not be of type number. Received type number');const le=Z.valueOf&&Z.valueOf();if(null!=le&&le!==Z)return w.from(le,B,R);const Ce=function p(Z){if(w.isBuffer(Z)){const B=0|v(Z.length),R=d(B);return 0===R.length||Z.copy(R,0,0,B),R}return void 0!==Z.length?"number"!=typeof Z.length||bn(Z.length)?d(0):i(Z):"Buffer"===Z.type&&Array.isArray(Z.data)?i(Z.data):void 0}(Z);if(Ce)return Ce;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Z[Symbol.toPrimitive])return w.from(Z[Symbol.toPrimitive]("string"),B,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z)}function I(Z){if("number"!=typeof Z)throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function a(Z){return I(Z),d(Z<0?0:0|v(Z))}function i(Z){const B=Z.length<0?0:0|v(Z.length),R=d(B);for(let le=0;le=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Z}function ee(Z,B){if(w.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||jn(Z,ArrayBuffer))return Z.byteLength;if("string"!=typeof Z)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Z);const R=Z.length,le=arguments.length>2&&!0===arguments[2];if(!le&&0===R)return 0;let Ce=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return zt(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return Pt(Z).length;default:if(Ce)return le?-1:zt(Z).length;B=(""+B).toLowerCase(),Ce=!0}}function oe(Z,B,R){let le=!1;if((void 0===B||B<0)&&(B=0),B>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(B>>>=0))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return M(this,B,R);case"utf8":case"utf-8":return P(this,B,R);case"ascii":return ne(this,B,R);case"latin1":case"binary":return H(this,B,R);case"base64":return N(this,B,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,B,R);default:if(le)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),le=!0}}function de(Z,B,R){const le=Z[B];Z[B]=Z[R],Z[R]=le}function he(Z,B,R,le,Ce){if(0===Z.length)return-1;if("string"==typeof R?(le=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),bn(R=+R)&&(R=Ce?0:Z.length-1),R<0&&(R=Z.length+R),R>=Z.length){if(Ce)return-1;R=Z.length-1}else if(R<0){if(!Ce)return-1;R=0}if("string"==typeof B&&(B=w.from(B,le)),w.isBuffer(B))return 0===B.length?-1:be(Z,B,R,le,Ce);if("number"==typeof B)return B&=255,"function"==typeof Uint8Array.prototype.indexOf?Ce?Uint8Array.prototype.indexOf.call(Z,B,R):Uint8Array.prototype.lastIndexOf.call(Z,B,R):be(Z,[B],R,le,Ce);throw new TypeError("val must be string, number or Buffer")}function be(Z,B,R,le,Ce){let Xt,Fe=1,Ve=Z.length,rn=B.length;if(void 0!==le&&("ucs2"===(le=String(le).toLowerCase())||"ucs-2"===le||"utf16le"===le||"utf-16le"===le)){if(Z.length<2||B.length<2)return-1;Fe=2,Ve/=2,rn/=2,R/=2}function en(tr,qt){return 1===Fe?tr[qt]:tr.readUInt16BE(qt*Fe)}if(Ce){let tr=-1;for(Xt=R;XtVe&&(R=Ve-rn),Xt=R;Xt>=0;Xt--){let tr=!0;for(let qt=0;qtCe&&(le=Ce):le=Ce;const Fe=B.length;let Ve;for(le>Fe/2&&(le=Fe/2),Ve=0;Ve>8,Ce=R%256,Fe.push(Ce),Fe.push(le);return Fe}(B,Z.length-R),Z,R,le)}function N(Z,B,R){return S.fromByteArray(0===B&&R===Z.length?Z:Z.slice(B,R))}function P(Z,B,R){R=Math.min(Z.length,R);const le=[];let Ce=B;for(;Ce239?4:Fe>223?3:Fe>191?2:1;if(Ce+rn<=R){let en,Xt,tr,qt;switch(rn){case 1:Fe<128&&(Ve=Fe);break;case 2:en=Z[Ce+1],128==(192&en)&&(qt=(31&Fe)<<6|63&en,qt>127&&(Ve=qt));break;case 3:en=Z[Ce+1],Xt=Z[Ce+2],128==(192&en)&&128==(192&Xt)&&(qt=(15&Fe)<<12|(63&en)<<6|63&Xt,qt>2047&&(qt<55296||qt>57343)&&(Ve=qt));break;case 4:en=Z[Ce+1],Xt=Z[Ce+2],tr=Z[Ce+3],128==(192&en)&&128==(192&Xt)&&128==(192&tr)&&(qt=(15&Fe)<<18|(63&en)<<12|(63&Xt)<<6|63&tr,qt>65535&&qt<1114112&&(Ve=qt))}}null===Ve?(Ve=65533,rn=1):Ve>65535&&(Ve-=65536,le.push(Ve>>>10&1023|55296),Ve=56320|1023&Ve),le.push(Ve),Ce+=rn}return function Y(Z){const B=Z.length;if(B<=Q)return String.fromCharCode.apply(String,Z);let R="",le=0;for(;leCe.length?(w.isBuffer(Ve)||(Ve=w.from(Ve)),Ve.copy(Ce,Fe)):Uint8Array.prototype.set.call(Ce,Ve,Fe);else{if(!w.isBuffer(Ve))throw new TypeError('"list" argument must be an Array of Buffers');Ve.copy(Ce,Fe)}Fe+=Ve.length}return Ce},w.byteLength=ee,w.prototype._isBuffer=!0,w.prototype.swap16=function(){const B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;RR&&(B+=" ... "),""},_&&(w.prototype[_]=w.prototype.inspect),w.prototype.compare=function(B,R,le,Ce,Fe){if(jn(B,Uint8Array)&&(B=w.from(B,B.offset,B.byteLength)),!w.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(void 0===R&&(R=0),void 0===le&&(le=B?B.length:0),void 0===Ce&&(Ce=0),void 0===Fe&&(Fe=this.length),R<0||le>B.length||Ce<0||Fe>this.length)throw new RangeError("out of range index");if(Ce>=Fe&&R>=le)return 0;if(Ce>=Fe)return-1;if(R>=le)return 1;if(this===B)return 0;let Ve=(Fe>>>=0)-(Ce>>>=0),rn=(le>>>=0)-(R>>>=0);const en=Math.min(Ve,rn),Xt=this.slice(Ce,Fe),tr=B.slice(R,le);for(let qt=0;qt>>=0,isFinite(le)?(le>>>=0,void 0===Ce&&(Ce="utf8")):(Ce=le,le=void 0)}const Fe=this.length-R;if((void 0===le||le>Fe)&&(le=Fe),B.length>0&&(le<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ce||(Ce="utf8");let Ve=!1;for(;;)switch(Ce){case"hex":return Ae(this,B,R,le);case"utf8":case"utf-8":return J(this,B,R,le);case"ascii":case"latin1":case"binary":return $(this,B,R,le);case"base64":return C(this,B,R,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,B,R,le);default:if(Ve)throw new TypeError("Unknown encoding: "+Ce);Ce=(""+Ce).toLowerCase(),Ve=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Q=4096;function ne(Z,B,R){let le="";R=Math.min(Z.length,R);for(let Ce=B;Cele)&&(R=le);let Ce="";for(let Fe=B;FeR)throw new RangeError("Trying to access beyond buffer length")}function fe(Z,B,R,le,Ce,Fe){if(!w.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>Ce||BZ.length)throw new RangeError("Index out of range")}function Xe(Z,B,R,le,Ce){Ct(B,le,Ce,Z,R,7);let Fe=Number(B&BigInt(4294967295));Z[R++]=Fe,Fe>>=8,Z[R++]=Fe,Fe>>=8,Z[R++]=Fe,Fe>>=8,Z[R++]=Fe;let Ve=Number(B>>BigInt(32)&BigInt(4294967295));return Z[R++]=Ve,Ve>>=8,Z[R++]=Ve,Ve>>=8,Z[R++]=Ve,Ve>>=8,Z[R++]=Ve,R}function He(Z,B,R,le,Ce){Ct(B,le,Ce,Z,R,7);let Fe=Number(B&BigInt(4294967295));Z[R+7]=Fe,Fe>>=8,Z[R+6]=Fe,Fe>>=8,Z[R+5]=Fe,Fe>>=8,Z[R+4]=Fe;let Ve=Number(B>>BigInt(32)&BigInt(4294967295));return Z[R+3]=Ve,Ve>>=8,Z[R+2]=Ve,Ve>>=8,Z[R+1]=Ve,Ve>>=8,Z[R]=Ve,R+8}function kt(Z,B,R,le,Ce,Fe){if(R+le>Z.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Ze(Z,B,R,le,Ce){return B=+B,R>>>=0,Ce||kt(Z,0,R,4),j.write(Z,B,R,le,23,4),R+4}function br(Z,B,R,le,Ce){return B=+B,R>>>=0,Ce||kt(Z,0,R,8),j.write(Z,B,R,le,52,8),R+8}w.prototype.slice=function(B,R){const le=this.length;(B=~~B)<0?(B+=le)<0&&(B=0):B>le&&(B=le),(R=void 0===R?le:~~R)<0?(R+=le)<0&&(R=0):R>le&&(R=le),R>>=0,R>>>=0,le||Ie(B,R,this.length);let Ce=this[B],Fe=1,Ve=0;for(;++Ve>>=0,R>>>=0,le||Ie(B,R,this.length);let Ce=this[B+--R],Fe=1;for(;R>0&&(Fe*=256);)Ce+=this[B+--R]*Fe;return Ce},w.prototype.readUint8=w.prototype.readUInt8=function(B,R){return B>>>=0,R||Ie(B,1,this.length),this[B]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(B,R){return B>>>=0,R||Ie(B,2,this.length),this[B]|this[B+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(B,R){return B>>>=0,R||Ie(B,2,this.length),this[B]<<8|this[B+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(B,R){return B>>>=0,R||Ie(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(B,R){return B>>>=0,R||Ie(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},w.prototype.readBigUInt64LE=rr(function(B){St(B>>>=0,"offset");const R=this[B],le=this[B+7];(void 0===R||void 0===le)&&At(B,this.length-8);const Ce=R+256*this[++B]+65536*this[++B]+this[++B]*2**24,Fe=this[++B]+256*this[++B]+65536*this[++B]+le*2**24;return BigInt(Ce)+(BigInt(Fe)<>>=0,"offset");const R=this[B],le=this[B+7];(void 0===R||void 0===le)&&At(B,this.length-8);const Ce=R*2**24+65536*this[++B]+256*this[++B]+this[++B],Fe=this[++B]*2**24+65536*this[++B]+256*this[++B]+le;return(BigInt(Ce)<>>=0,R>>>=0,le||Ie(B,R,this.length);let Ce=this[B],Fe=1,Ve=0;for(;++Ve=Fe&&(Ce-=Math.pow(2,8*R)),Ce},w.prototype.readIntBE=function(B,R,le){B>>>=0,R>>>=0,le||Ie(B,R,this.length);let Ce=R,Fe=1,Ve=this[B+--Ce];for(;Ce>0&&(Fe*=256);)Ve+=this[B+--Ce]*Fe;return Fe*=128,Ve>=Fe&&(Ve-=Math.pow(2,8*R)),Ve},w.prototype.readInt8=function(B,R){return B>>>=0,R||Ie(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},w.prototype.readInt16LE=function(B,R){B>>>=0,R||Ie(B,2,this.length);const le=this[B]|this[B+1]<<8;return 32768&le?4294901760|le:le},w.prototype.readInt16BE=function(B,R){B>>>=0,R||Ie(B,2,this.length);const le=this[B+1]|this[B]<<8;return 32768&le?4294901760|le:le},w.prototype.readInt32LE=function(B,R){return B>>>=0,R||Ie(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},w.prototype.readInt32BE=function(B,R){return B>>>=0,R||Ie(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},w.prototype.readBigInt64LE=rr(function(B){St(B>>>=0,"offset");const R=this[B],le=this[B+7];return(void 0===R||void 0===le)&&At(B,this.length-8),(BigInt(this[B+4]+256*this[B+5]+65536*this[B+6]+(le<<24))<>>=0,"offset");const R=this[B],le=this[B+7];(void 0===R||void 0===le)&&At(B,this.length-8);const Ce=(R<<24)+65536*this[++B]+256*this[++B]+this[++B];return(BigInt(Ce)<>>=0,R||Ie(B,4,this.length),j.read(this,B,!0,23,4)},w.prototype.readFloatBE=function(B,R){return B>>>=0,R||Ie(B,4,this.length),j.read(this,B,!1,23,4)},w.prototype.readDoubleLE=function(B,R){return B>>>=0,R||Ie(B,8,this.length),j.read(this,B,!0,52,8)},w.prototype.readDoubleBE=function(B,R){return B>>>=0,R||Ie(B,8,this.length),j.read(this,B,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(B,R,le,Ce){B=+B,R>>>=0,le>>>=0,Ce||fe(this,B,R,le,Math.pow(2,8*le)-1,0);let Fe=1,Ve=0;for(this[R]=255&B;++Ve>>=0,le>>>=0,Ce||fe(this,B,R,le,Math.pow(2,8*le)-1,0);let Fe=le-1,Ve=1;for(this[R+Fe]=255&B;--Fe>=0&&(Ve*=256);)this[R+Fe]=B/Ve&255;return R+le},w.prototype.writeUint8=w.prototype.writeUInt8=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,1,255,0),this[R]=255&B,R+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,2,65535,0),this[R]=255&B,this[R+1]=B>>>8,R+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,2,65535,0),this[R]=B>>>8,this[R+1]=255&B,R+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,4,4294967295,0),this[R+3]=B>>>24,this[R+2]=B>>>16,this[R+1]=B>>>8,this[R]=255&B,R+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,4,4294967295,0),this[R]=B>>>24,this[R+1]=B>>>16,this[R+2]=B>>>8,this[R+3]=255&B,R+4},w.prototype.writeBigUInt64LE=rr(function(B,R=0){return Xe(this,B,R,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=rr(function(B,R=0){return He(this,B,R,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(B,R,le,Ce){if(B=+B,R>>>=0,!Ce){const en=Math.pow(2,8*le-1);fe(this,B,R,le,en-1,-en)}let Fe=0,Ve=1,rn=0;for(this[R]=255&B;++Fe>0)-rn&255;return R+le},w.prototype.writeIntBE=function(B,R,le,Ce){if(B=+B,R>>>=0,!Ce){const en=Math.pow(2,8*le-1);fe(this,B,R,le,en-1,-en)}let Fe=le-1,Ve=1,rn=0;for(this[R+Fe]=255&B;--Fe>=0&&(Ve*=256);)B<0&&0===rn&&0!==this[R+Fe+1]&&(rn=1),this[R+Fe]=(B/Ve>>0)-rn&255;return R+le},w.prototype.writeInt8=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,1,127,-128),B<0&&(B=255+B+1),this[R]=255&B,R+1},w.prototype.writeInt16LE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,2,32767,-32768),this[R]=255&B,this[R+1]=B>>>8,R+2},w.prototype.writeInt16BE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,2,32767,-32768),this[R]=B>>>8,this[R+1]=255&B,R+2},w.prototype.writeInt32LE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,4,2147483647,-2147483648),this[R]=255&B,this[R+1]=B>>>8,this[R+2]=B>>>16,this[R+3]=B>>>24,R+4},w.prototype.writeInt32BE=function(B,R,le){return B=+B,R>>>=0,le||fe(this,B,R,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[R]=B>>>24,this[R+1]=B>>>16,this[R+2]=B>>>8,this[R+3]=255&B,R+4},w.prototype.writeBigInt64LE=rr(function(B,R=0){return Xe(this,B,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=rr(function(B,R=0){return He(this,B,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(B,R,le){return Ze(this,B,R,!0,le)},w.prototype.writeFloatBE=function(B,R,le){return Ze(this,B,R,!1,le)},w.prototype.writeDoubleLE=function(B,R,le){return br(this,B,R,!0,le)},w.prototype.writeDoubleBE=function(B,R,le){return br(this,B,R,!1,le)},w.prototype.copy=function(B,R,le,Ce){if(!w.isBuffer(B))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Ce&&0!==Ce&&(Ce=this.length),R>=B.length&&(R=B.length),R||(R=0),Ce>0&&Ce=this.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("sourceEnd out of bounds");Ce>this.length&&(Ce=this.length),B.length-R>>=0,le=void 0===le?this.length:le>>>0,B||(B=0),"number"==typeof B)for(Fe=R;Fe=le+4;R-=3)B=`_${Z.slice(R-3,R)}${B}`;return`${Z.slice(0,R)}${B}`}function Ct(Z,B,R,le,Ce,Fe){if(Z>R||Z3?0===B||B===BigInt(0)?`>= 0${Ve} and < 2${Ve} ** ${8*(Fe+1)}${Ve}`:`>= -(2${Ve} ** ${8*(Fe+1)-1}${Ve}) and < 2 ** ${8*(Fe+1)-1}${Ve}`:`>= ${B}${Ve} and <= ${R}${Ve}`,new nt.ERR_OUT_OF_RANGE("value",rn,Z)}!function ft(Z,B,R){St(B,"offset"),(void 0===Z[B]||void 0===Z[B+R])&&At(B,Z.length-(R+1))}(le,Ce,Fe)}function St(Z,B){if("number"!=typeof Z)throw new nt.ERR_INVALID_ARG_TYPE(B,"number",Z)}function At(Z,B,R){throw Math.floor(Z)!==Z?(St(Z,R),new nt.ERR_OUT_OF_RANGE(R||"offset","an integer",Z)):B<0?new nt.ERR_BUFFER_OUT_OF_BOUNDS:new nt.ERR_OUT_OF_RANGE(R||"offset",`>= ${R?1:0} and <= ${B}`,Z)}at("ERR_BUFFER_OUT_OF_BOUNDS",function(Z){return Z?`${Z} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(Z,B){return`The "${Z}" argument must be of type number. Received type ${typeof B}`},TypeError),at("ERR_OUT_OF_RANGE",function(Z,B,R){let le=`The value of "${Z}" is out of range.`,Ce=R;return Number.isInteger(R)&&Math.abs(R)>2**32?Ce=nn(String(R)):"bigint"==typeof R&&(Ce=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(Ce=nn(Ce)),Ce+="n"),le+=` It must be ${B}. Received ${Ce}`,le},RangeError);const vt=/[^+/0-9A-Za-z-_]/g;function zt(Z,B){let R;B=B||1/0;const le=Z.length;let Ce=null;const Fe=[];for(let Ve=0;Ve55295&&R<57344){if(!Ce){if(R>56319){(B-=3)>-1&&Fe.push(239,191,189);continue}if(Ve+1===le){(B-=3)>-1&&Fe.push(239,191,189);continue}Ce=R;continue}if(R<56320){(B-=3)>-1&&Fe.push(239,191,189),Ce=R;continue}R=65536+(Ce-55296<<10|R-56320)}else Ce&&(B-=3)>-1&&Fe.push(239,191,189);if(Ce=null,R<128){if((B-=1)<0)break;Fe.push(R)}else if(R<2048){if((B-=2)<0)break;Fe.push(R>>6|192,63&R|128)}else if(R<65536){if((B-=3)<0)break;Fe.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;Fe.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return Fe}function Pt(Z){return S.toByteArray(function ln(Z){if((Z=(Z=Z.split("=")[0]).trim().replace(vt,"")).length<2)return"";for(;Z.length%4!=0;)Z+="=";return Z}(Z))}function un(Z,B,R,le){let Ce;for(Ce=0;Ce=B.length||Ce>=Z.length);++Ce)B[Ce+R]=Z[Ce];return Ce}function jn(Z,B){return Z instanceof B||null!=Z&&null!=Z.constructor&&null!=Z.constructor.name&&Z.constructor.name===B.name}function bn(Z){return Z!=Z}const Cn=function(){const Z="0123456789abcdef",B=new Array(256);for(let R=0;R<16;++R){const le=16*R;for(let Ce=0;Ce<16;++Ce)B[le+Ce]=Z[R]+Z[Ce]}return B}();function rr(Z){return typeof BigInt>"u"?hr:Z}function hr(){throw new Error("BigInt not supported")}},808:(Me,re,G)=>{const x=G(975);re.parseFont=x,re.createCanvas=function(S,j){return Object.assign(document.createElement("canvas"),{width:S,height:j})},re.createImageData=function(S,j,_){switch(arguments.length){case 0:return new ImageData;case 1:return new ImageData(S);case 2:return new ImageData(S,j);default:return new ImageData(S,j,_)}},re.loadImage=function(S,j){return new Promise(function(_,b){const g=Object.assign(document.createElement("img"),j);function d(){g.onload=null,g.onerror=null}g.onload=function(){d(),_(g)},g.onerror=function(){d(),b(new Error('Failed to load the image "'+S+'"'))},g.src=S})}},975:Me=>{"use strict";const _="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",b=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),g=new RegExp("(italic|oblique) +","i"),d=new RegExp("(small-caps) +","i"),w=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),k=new RegExp(`([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:${_})( *, *(?:${_}))*)`),I={};Me.exports=a=>{if(I[a])return I[a];const r=k.exec(a);if(!r)return;const i={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(r[1]),unit:r[2],family:r[3].replace(/["']/g,"").replace(/ *, */g,",")};let c,f,p,v;const L=a.substring(0,r.index);switch((c=b.exec(L))&&(i.weight=c[1]),(f=g.exec(L))&&(i.style=f[1]),(p=d.exec(L))&&(i.variant=p[1]),(v=w.exec(L))&&(i.stretch=v[1]),i.unit){case"pt":i.size/=.75;break;case"pc":i.size*=16;break;case"in":i.size*=96;break;case"cm":i.size*=96/2.54;break;case"mm":i.size*=96/25.4;break;case"%":break;case"em":case"rem":i.size*=16/.75;break;case"q":i.size*=96/25.4/4}return I[a]=i}},7466:function(Me,re,G){var x;Me.exports=(x=G(7585),G(8319),G(9493),G(7865),G(3057),function(){var S=x,_=S.lib.BlockCipher,b=S.algo,g=[],d=[],w=[],k=[],I=[],T=[],a=[],r=[],i=[],c=[];!function(){for(var v=[],L=0;L<256;L++)v[L]=L<128?L<<1:L<<1^283;var ee=0,oe=0;for(L=0;L<256;L++){var de=oe^oe<<1^oe<<2^oe<<3^oe<<4;g[ee]=de=de>>>8^255&de^99,d[de]=ee;var J,he=v[ee],be=v[he],Ae=v[be];w[ee]=(J=257*v[de]^16843008*de)<<24|J>>>8,k[ee]=J<<16|J>>>16,I[ee]=J<<8|J>>>24,T[ee]=J,a[de]=(J=16843009*Ae^65537*be^257*he^16843008*ee)<<24|J>>>8,r[de]=J<<16|J>>>16,i[de]=J<<8|J>>>24,c[de]=J,ee?(ee=he^v[v[v[Ae^he]]],oe^=v[v[oe]]):ee=oe=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],p=b.AES=_.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var L=this._keyPriorReset=this._key,ee=L.words,oe=L.sigBytes/4,he=4*((this._nRounds=oe+6)+1),be=this._keySchedule=[],Ae=0;Ae6&&Ae%oe==4&&(v=g[v>>>24]<<24|g[v>>>16&255]<<16|g[v>>>8&255]<<8|g[255&v]):(v=g[(v=v<<8|v>>>24)>>>24]<<24|g[v>>>16&255]<<16|g[v>>>8&255]<<8|g[255&v],v^=f[Ae/oe|0]<<24),be[Ae]=be[Ae-oe]^v);for(var J=this._invKeySchedule=[],$=0;$>>24]]^r[g[v>>>16&255]]^i[g[v>>>8&255]]^c[g[255&v]]}}},encryptBlock:function(v,L){this._doCryptBlock(v,L,this._keySchedule,w,k,I,T,g)},decryptBlock:function(v,L){var ee=v[L+1];v[L+1]=v[L+3],v[L+3]=ee,this._doCryptBlock(v,L,this._invKeySchedule,a,r,i,c,d),ee=v[L+1],v[L+1]=v[L+3],v[L+3]=ee},_doCryptBlock:function(v,L,ee,oe,de,he,be,Ae){for(var J=this._nRounds,$=v[L]^ee[0],C=v[L+1]^ee[1],E=v[L+2]^ee[2],N=v[L+3]^ee[3],P=4,Q=1;Q>>24]^de[C>>>16&255]^he[E>>>8&255]^be[255&N]^ee[P++],ne=oe[C>>>24]^de[E>>>16&255]^he[N>>>8&255]^be[255&$]^ee[P++],H=oe[E>>>24]^de[N>>>16&255]^he[$>>>8&255]^be[255&C]^ee[P++],M=oe[N>>>24]^de[$>>>16&255]^he[C>>>8&255]^be[255&E]^ee[P++];$=Y,C=ne,E=H,N=M}Y=(Ae[$>>>24]<<24|Ae[C>>>16&255]<<16|Ae[E>>>8&255]<<8|Ae[255&N])^ee[P++],ne=(Ae[C>>>24]<<24|Ae[E>>>16&255]<<16|Ae[N>>>8&255]<<8|Ae[255&$])^ee[P++],H=(Ae[E>>>24]<<24|Ae[N>>>16&255]<<16|Ae[$>>>8&255]<<8|Ae[255&C])^ee[P++],M=(Ae[N>>>24]<<24|Ae[$>>>16&255]<<16|Ae[C>>>8&255]<<8|Ae[255&E])^ee[P++],v[L]=Y,v[L+1]=ne,v[L+2]=H,v[L+3]=M},keySize:8});S.AES=_._createHelper(p)}(),x.AES)},3057:function(Me,re,G){var j,_,b,g,d,w,I,a,r,c,f,p,L,oe,he,be,J,$,x;Me.exports=(x=G(7585),G(7865),void(x.lib.Cipher||(j=x,_=j.lib,b=_.Base,g=_.WordArray,d=_.BufferedBlockAlgorithm,w=j.enc,I=w.Base64,a=j.algo.EvpKDF,r=_.Cipher=d.extend({cfg:b.extend(),createEncryptor:function(C,E){return this.create(this._ENC_XFORM_MODE,C,E)},createDecryptor:function(C,E){return this.create(this._DEC_XFORM_MODE,C,E)},init:function(C,E,N){this.cfg=this.cfg.extend(N),this._xformMode=C,this._key=E,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){return C&&this._append(C),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(E){return"string"==typeof E?$:be}return function(E){return{encrypt:function(N,P,Q){return C(P).encrypt(E,N,P,Q)},decrypt:function(N,P,Q){return C(P).decrypt(E,N,P,Q)}}}}()}),_.StreamCipher=r.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=j.mode={},f=_.BlockCipherMode=b.extend({createEncryptor:function(C,E){return this.Encryptor.create(C,E)},createDecryptor:function(C,E){return this.Decryptor.create(C,E)},init:function(C,E){this._cipher=C,this._iv=E}}),p=c.CBC=function(){var C=f.extend();function E(N,P,Q){var Y,ne=this._iv;ne?(Y=ne,this._iv=undefined):Y=this._prevBlock;for(var H=0;H>>2]}},_.BlockCipher=r.extend({cfg:r.cfg.extend({mode:p,padding:L}),reset:function(){var C;r.reset.call(this);var E=this.cfg,N=E.iv,P=E.mode;this._xformMode==this._ENC_XFORM_MODE?C=P.createEncryptor:(C=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,N&&N.words):(this._mode=C.call(P,this,N&&N.words),this._mode.__creator=C)},_doProcessBlock:function(C,E){this._mode.processBlock(C,E)},_doFinalize:function(){var C,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),E.unpad(C)),C},blockSize:4}),oe=_.CipherParams=b.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),he=(j.format={}).OpenSSL={stringify:function(C){var N=C.ciphertext,P=C.salt;return(P?g.create([1398893684,1701076831]).concat(P).concat(N):N).toString(I)},parse:function(C){var E,N=I.parse(C),P=N.words;return 1398893684==P[0]&&1701076831==P[1]&&(E=g.create(P.slice(2,4)),P.splice(0,4),N.sigBytes-=16),oe.create({ciphertext:N,salt:E})}},be=_.SerializableCipher=b.extend({cfg:b.extend({format:he}),encrypt:function(C,E,N,P){P=this.cfg.extend(P);var Q=C.createEncryptor(N,P),Y=Q.finalize(E),ne=Q.cfg;return oe.create({ciphertext:Y,key:N,iv:ne.iv,algorithm:C,mode:ne.mode,padding:ne.padding,blockSize:C.blockSize,formatter:P.format})},decrypt:function(C,E,N,P){return P=this.cfg.extend(P),E=this._parse(E,P.format),C.createDecryptor(N,P).finalize(E.ciphertext)},_parse:function(C,E){return"string"==typeof C?E.parse(C,this):C}}),J=(j.kdf={}).OpenSSL={execute:function(C,E,N,P){P||(P=g.random(8));var Q=a.create({keySize:E+N}).compute(C,P),Y=g.create(Q.words.slice(E),4*N);return Q.sigBytes=4*E,oe.create({key:Q,iv:Y,salt:P})}},$=_.PasswordBasedCipher=be.extend({cfg:be.cfg.extend({kdf:J}),encrypt:function(C,E,N,P){var Q=(P=this.cfg.extend(P)).kdf.execute(N,C.keySize,C.ivSize);P.iv=Q.iv;var Y=be.encrypt.call(this,C,E,Q.key,P);return Y.mixIn(Q),Y},decrypt:function(C,E,N,P){P=this.cfg.extend(P),E=this._parse(E,P.format);var Q=P.kdf.execute(N,C.keySize,C.ivSize,E.salt);return P.iv=Q.iv,be.decrypt.call(this,C,E,Q.key,P)}}))))},7585:function(Me,re,G){var x;Me.exports=(x=x||function(S,j){var _;if(typeof window<"u"&&window.crypto&&(_=window.crypto),typeof self<"u"&&self.crypto&&(_=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(_=globalThis.crypto),!_&&typeof window<"u"&&window.msCrypto&&(_=window.msCrypto),!_&&typeof global<"u"&&global.crypto&&(_=global.crypto),!_)try{_=G(2480)}catch{}var b=function(){if(_){if("function"==typeof _.getRandomValues)try{return _.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof _.randomBytes)try{return _.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function v(){}return function(L){var ee;return v.prototype=L,ee=new v,v.prototype=null,ee}}(),d={},w=d.lib={},k=w.Base={extend:function(v){var L=g(this);return v&&L.mixIn(v),(!L.hasOwnProperty("init")||this.init===L.init)&&(L.init=function(){L.$super.init.apply(this,arguments)}),L.init.prototype=L,L.$super=this,L},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var L in v)v.hasOwnProperty(L)&&(this[L]=v[L]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}},I=w.WordArray=k.extend({init:function(v,L){v=this.words=v||[],this.sigBytes=null!=L?L:4*v.length},toString:function(v){return(v||a).stringify(this)},concat:function(v){var L=this.words,ee=v.words,oe=this.sigBytes,de=v.sigBytes;if(this.clamp(),oe%4)for(var he=0;he>>2]|=(ee[he>>>2]>>>24-he%4*8&255)<<24-(oe+he)%4*8;else for(var Ae=0;Ae>>2]=ee[Ae>>>2];return this.sigBytes+=de,this},clamp:function(){var v=this.words,L=this.sigBytes;v[L>>>2]&=4294967295<<32-L%4*8,v.length=S.ceil(L/4)},clone:function(){var v=k.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var L=[],ee=0;ee>>2]>>>24-de%4*8&255;oe.push((he>>>4).toString(16)),oe.push((15&he).toString(16))}return oe.join("")},parse:function(v){for(var L=v.length,ee=[],oe=0;oe>>3]|=parseInt(v.substr(oe,2),16)<<24-oe%8*4;return new I.init(ee,L/2)}},r=T.Latin1={stringify:function(v){for(var L=v.words,ee=v.sigBytes,oe=[],de=0;de>>2]>>>24-de%4*8&255));return oe.join("")},parse:function(v){for(var L=v.length,ee=[],oe=0;oe>>2]|=(255&v.charCodeAt(oe))<<24-oe%4*8;return new I.init(ee,L)}},i=T.Utf8={stringify:function(v){try{return decodeURIComponent(escape(r.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return r.parse(unescape(encodeURIComponent(v)))}},c=w.BufferedBlockAlgorithm=k.extend({reset:function(){this._data=new I.init,this._nDataBytes=0},_append:function(v){"string"==typeof v&&(v=i.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var L,ee=this._data,oe=ee.words,de=ee.sigBytes,he=this.blockSize,Ae=de/(4*he),J=(Ae=v?S.ceil(Ae):S.max((0|Ae)-this._minBufferSize,0))*he,$=S.min(4*J,de);if(J){for(var C=0;C>>2]>>>24-r%4*8&255)<<16|(k[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|k[r+2>>>2]>>>24-(r+2)%4*8&255,v=0;v<4&&r+.75*v>>6*(3-v)&63));var L=T.charAt(64);if(L)for(;a.length%4;)a.push(L);return a.join("")},parse:function(w){var k=w.length,I=this._map,T=this._reverseMap;if(!T){T=this._reverseMap=[];for(var a=0;a>>6-r%4*2;T[a>>>2]|=(i|c)<<24-a%4*8,a++}return _.create(T,a)}(w,k,T)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},x.enc.Base64)},4410:function(Me,re,G){var x,_;Me.exports=(x=G(7585),_=x.lib.WordArray,x.enc.Base64url={stringify:function(w,k=!0){var I=w.words,T=w.sigBytes,a=k?this._safe_map:this._map;w.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(I[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|I[i+2>>>2]>>>24-(i+2)%4*8&255,L=0;L<4&&i+.75*L>>6*(3-L)&63));var ee=a.charAt(64);if(ee)for(;r.length%4;)r.push(ee);return r.join("")},parse:function(w,k=!0){var I=w.length,T=k?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var r=0;r>>6-r%4*2;T[a>>>2]|=(i|c)<<24-a%4*8,a++}return _.create(T,a)}(w,I,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},x.enc.Base64url)},9012:function(Me,re,G){var x;Me.exports=(x=G(7585),function(){var _=x.lib.WordArray,b=x.enc;function d(w){return w<<8&4278255360|w>>>8&16711935}b.Utf16=b.Utf16BE={stringify:function(w){for(var k=w.words,I=w.sigBytes,T=[],a=0;a>>2]>>>16-a%4*8&65535));return T.join("")},parse:function(w){for(var k=w.length,I=[],T=0;T>>1]|=w.charCodeAt(T)<<16-T%2*16;return _.create(I,2*k)}},b.Utf16LE={stringify:function(w){for(var k=w.words,I=w.sigBytes,T=[],a=0;a>>2]>>>16-a%4*8&65535);T.push(String.fromCharCode(r))}return T.join("")},parse:function(w){for(var k=w.length,I=[],T=0;T>>1]|=d(w.charCodeAt(T)<<16-T%2*16);return _.create(I,2*k)}}}(),x.enc.Utf16)},7865:function(Me,re,G){var S,j,_,b,g,w,x;Me.exports=(x=G(7585),G(5162),G(3764),b=(j=(S=x).lib).WordArray,w=(g=S.algo).EvpKDF=(_=j.Base).extend({cfg:_.extend({keySize:4,hasher:g.MD5,iterations:1}),init:function(k){this.cfg=this.cfg.extend(k)},compute:function(k,I){for(var T,a=this.cfg,r=a.hasher.create(),i=b.create(),c=i.words,f=a.keySize,p=a.iterations;c.lengtha&&(I=k.finalize(I)),I.clamp();for(var r=this._oKey=I.clone(),i=this._iKey=I.clone(),c=r.words,f=i.words,p=0;p>>2]|=d[I]<<24-I%4*8;b.call(this,k,w)}else b.apply(this,arguments)};g.prototype=_}}(),x.lib.WordArray)},9493:function(Me,re,G){var x;Me.exports=(x=G(7585),function(S){var j=x,_=j.lib,b=_.WordArray,g=_.Hasher,d=j.algo,w=[];!function(){for(var i=0;i<64;i++)w[i]=4294967296*S.abs(S.sin(i+1))|0}();var k=d.MD5=g.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,c){for(var f=0;f<16;f++){var p=c+f,v=i[p];i[p]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var L=this._hash.words,ee=i[c+0],oe=i[c+1],de=i[c+2],he=i[c+3],be=i[c+4],Ae=i[c+5],J=i[c+6],$=i[c+7],C=i[c+8],E=i[c+9],N=i[c+10],P=i[c+11],Q=i[c+12],Y=i[c+13],ne=i[c+14],H=i[c+15],M=L[0],z=L[1],Ie=L[2],fe=L[3];M=I(M,z,Ie,fe,ee,7,w[0]),fe=I(fe,M,z,Ie,oe,12,w[1]),Ie=I(Ie,fe,M,z,de,17,w[2]),z=I(z,Ie,fe,M,he,22,w[3]),M=I(M,z,Ie,fe,be,7,w[4]),fe=I(fe,M,z,Ie,Ae,12,w[5]),Ie=I(Ie,fe,M,z,J,17,w[6]),z=I(z,Ie,fe,M,$,22,w[7]),M=I(M,z,Ie,fe,C,7,w[8]),fe=I(fe,M,z,Ie,E,12,w[9]),Ie=I(Ie,fe,M,z,N,17,w[10]),z=I(z,Ie,fe,M,P,22,w[11]),M=I(M,z,Ie,fe,Q,7,w[12]),fe=I(fe,M,z,Ie,Y,12,w[13]),Ie=I(Ie,fe,M,z,ne,17,w[14]),M=T(M,z=I(z,Ie,fe,M,H,22,w[15]),Ie,fe,oe,5,w[16]),fe=T(fe,M,z,Ie,J,9,w[17]),Ie=T(Ie,fe,M,z,P,14,w[18]),z=T(z,Ie,fe,M,ee,20,w[19]),M=T(M,z,Ie,fe,Ae,5,w[20]),fe=T(fe,M,z,Ie,N,9,w[21]),Ie=T(Ie,fe,M,z,H,14,w[22]),z=T(z,Ie,fe,M,be,20,w[23]),M=T(M,z,Ie,fe,E,5,w[24]),fe=T(fe,M,z,Ie,ne,9,w[25]),Ie=T(Ie,fe,M,z,he,14,w[26]),z=T(z,Ie,fe,M,C,20,w[27]),M=T(M,z,Ie,fe,Y,5,w[28]),fe=T(fe,M,z,Ie,de,9,w[29]),Ie=T(Ie,fe,M,z,$,14,w[30]),M=a(M,z=T(z,Ie,fe,M,Q,20,w[31]),Ie,fe,Ae,4,w[32]),fe=a(fe,M,z,Ie,C,11,w[33]),Ie=a(Ie,fe,M,z,P,16,w[34]),z=a(z,Ie,fe,M,ne,23,w[35]),M=a(M,z,Ie,fe,oe,4,w[36]),fe=a(fe,M,z,Ie,be,11,w[37]),Ie=a(Ie,fe,M,z,$,16,w[38]),z=a(z,Ie,fe,M,N,23,w[39]),M=a(M,z,Ie,fe,Y,4,w[40]),fe=a(fe,M,z,Ie,ee,11,w[41]),Ie=a(Ie,fe,M,z,he,16,w[42]),z=a(z,Ie,fe,M,J,23,w[43]),M=a(M,z,Ie,fe,E,4,w[44]),fe=a(fe,M,z,Ie,Q,11,w[45]),Ie=a(Ie,fe,M,z,H,16,w[46]),M=r(M,z=a(z,Ie,fe,M,de,23,w[47]),Ie,fe,ee,6,w[48]),fe=r(fe,M,z,Ie,$,10,w[49]),Ie=r(Ie,fe,M,z,ne,15,w[50]),z=r(z,Ie,fe,M,Ae,21,w[51]),M=r(M,z,Ie,fe,Q,6,w[52]),fe=r(fe,M,z,Ie,he,10,w[53]),Ie=r(Ie,fe,M,z,N,15,w[54]),z=r(z,Ie,fe,M,oe,21,w[55]),M=r(M,z,Ie,fe,C,6,w[56]),fe=r(fe,M,z,Ie,H,10,w[57]),Ie=r(Ie,fe,M,z,J,15,w[58]),z=r(z,Ie,fe,M,Y,21,w[59]),M=r(M,z,Ie,fe,be,6,w[60]),fe=r(fe,M,z,Ie,P,10,w[61]),Ie=r(Ie,fe,M,z,de,15,w[62]),z=r(z,Ie,fe,M,E,21,w[63]),L[0]=L[0]+M|0,L[1]=L[1]+z|0,L[2]=L[2]+Ie|0,L[3]=L[3]+fe|0},_doFinalize:function(){var i=this._data,c=i.words,f=8*this._nDataBytes,p=8*i.sigBytes;c[p>>>5]|=128<<24-p%32;var v=S.floor(f/4294967296),L=f;c[15+(p+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),c[14+(p+64>>>9<<4)]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),i.sigBytes=4*(c.length+1),this._process();for(var ee=this._hash,oe=ee.words,de=0;de<4;de++){var he=oe[de];oe[de]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8)}return ee},clone:function(){var i=g.clone.call(this);return i._hash=this._hash.clone(),i}});function I(i,c,f,p,v,L,ee){var oe=i+(c&f|~c&p)+v+ee;return(oe<>>32-L)+c}function T(i,c,f,p,v,L,ee){var oe=i+(c&p|f&~p)+v+ee;return(oe<>>32-L)+c}function a(i,c,f,p,v,L,ee){var oe=i+(c^f^p)+v+ee;return(oe<>>32-L)+c}function r(i,c,f,p,v,L,ee){var oe=i+(f^(c|~p))+v+ee;return(oe<>>32-L)+c}j.MD5=g._createHelper(k),j.HmacMD5=g._createHmacHelper(k)}(Math),x.MD5)},4424:function(Me,re,G){var x;Me.exports=(x=G(7585),G(3057),x.mode.CFB=function(){var S=x.lib.BlockCipherMode.extend();function j(_,b,g,d){var w,k=this._iv;k?(w=k.slice(0),this._iv=void 0):w=this._prevBlock,d.encryptBlock(w,0);for(var I=0;I>24&255)){var d=g>>16&255,w=g>>8&255,k=255&g;255===d?(d=0,255===w?(w=0,255===k?k=0:++k):++w):++d,g=0,g+=d<<16,g+=w<<8,g+=k}else g+=1<<24;return g}var b=S.Encryptor=S.extend({processBlock:function(g,d){var w=this._cipher,k=w.blockSize,I=this._iv,T=this._counter;I&&(T=this._counter=I.slice(0),this._iv=void 0),function _(g){return 0===(g[0]=j(g[0]))&&(g[1]=j(g[1])),g}(T);var a=T.slice(0);w.encryptBlock(a,0);for(var r=0;r>>2]|=g<<24-d%4*8,S.sigBytes+=g},unpad:function(S){S.sigBytes-=255&S.words[S.sigBytes-1>>>2]}},x.pad.Ansix923)},4630:function(Me,re,G){var x;Me.exports=(x=G(7585),G(3057),x.pad.Iso10126={pad:function(S,j){var _=4*j,b=_-S.sigBytes%_;S.concat(x.lib.WordArray.random(b-1)).concat(x.lib.WordArray.create([b<<24],1))},unpad:function(S){S.sigBytes-=255&S.words[S.sigBytes-1>>>2]}},x.pad.Iso10126)},187:function(Me,re,G){var x;Me.exports=(x=G(7585),G(3057),x.pad.Iso97971={pad:function(S,j){S.concat(x.lib.WordArray.create([2147483648],1)),x.pad.ZeroPadding.pad(S,j)},unpad:function(S){x.pad.ZeroPadding.unpad(S),S.sigBytes--}},x.pad.Iso97971)},3237:function(Me,re,G){var x;Me.exports=(x=G(7585),G(3057),x.pad.NoPadding={pad:function(){},unpad:function(){}},x.pad.NoPadding)},1691:function(Me,re,G){var x;Me.exports=(x=G(7585),G(3057),x.pad.ZeroPadding={pad:function(S,j){var _=4*j;S.clamp(),S.sigBytes+=_-(S.sigBytes%_||_)},unpad:function(S){var j=S.words,_=S.sigBytes-1;for(_=S.sigBytes-1;_>=0;_--)if(j[_>>>2]>>>24-_%4*8&255){S.sigBytes=_+1;break}}},x.pad.ZeroPadding)},8812:function(Me,re,G){var S,j,_,b,g,w,k,x;Me.exports=(x=G(7585),G(5162),G(3764),b=(j=(S=x).lib).WordArray,w=(g=S.algo).HMAC,k=g.PBKDF2=(_=j.Base).extend({cfg:_.extend({keySize:4,hasher:g.SHA1,iterations:1}),init:function(I){this.cfg=this.cfg.extend(I)},compute:function(I,T){for(var a=this.cfg,r=w.create(a.hasher,I),i=b.create(),c=b.create([1]),f=i.words,p=c.words,v=a.keySize,L=a.iterations;f.length>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],i=this._C=[T[2]<<16|T[2]>>>16,4294901760&T[0]|65535&T[1],T[3]<<16|T[3]>>>16,4294901760&T[1]|65535&T[2],T[0]<<16|T[0]>>>16,4294901760&T[2]|65535&T[3],T[1]<<16|T[1]>>>16,4294901760&T[3]|65535&T[0]];this._b=0;for(var c=0;c<4;c++)I.call(this);for(c=0;c<8;c++)i[c]^=r[c+4&7];if(a){var f=a.words,p=f[0],v=f[1],L=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),ee=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),oe=L>>>16|4294901760&ee,de=ee<<16|65535&L;for(i[0]^=L,i[1]^=oe,i[2]^=ee,i[3]^=de,i[4]^=L,i[5]^=oe,i[6]^=ee,i[7]^=de,c=0;c<4;c++)I.call(this)}},_doProcessBlock:function(T,a){var r=this._X;I.call(this),g[0]=r[0]^r[5]>>>16^r[3]<<16,g[1]=r[2]^r[7]>>>16^r[5]<<16,g[2]=r[4]^r[1]>>>16^r[7]<<16,g[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)g[i]=16711935&(g[i]<<8|g[i]>>>24)|4278255360&(g[i]<<24|g[i]>>>8),T[a+i]^=g[i]},blockSize:4,ivSize:2});function I(){for(var T=this._X,a=this._C,r=0;r<8;r++)d[r]=a[r];for(a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0>>0?1:0)|0,this._b=a[7]>>>0>>0?1:0,r=0;r<8;r++){var i=T[r]+a[r],c=65535&i,f=i>>>16;w[r]=((c*c>>>17)+c*f>>>15)+f*f^((4294901760&i)*i|0)+((65535&i)*i|0)}T[0]=w[0]+(w[7]<<16|w[7]>>>16)+(w[6]<<16|w[6]>>>16)|0,T[1]=w[1]+(w[0]<<8|w[0]>>>24)+w[7]|0,T[2]=w[2]+(w[1]<<16|w[1]>>>16)+(w[0]<<16|w[0]>>>16)|0,T[3]=w[3]+(w[2]<<8|w[2]>>>24)+w[1]|0,T[4]=w[4]+(w[3]<<16|w[3]>>>16)+(w[2]<<16|w[2]>>>16)|0,T[5]=w[5]+(w[4]<<8|w[4]>>>24)+w[3]|0,T[6]=w[6]+(w[5]<<16|w[5]>>>16)+(w[4]<<16|w[4]>>>16)|0,T[7]=w[7]+(w[6]<<8|w[6]>>>24)+w[5]|0}S.RabbitLegacy=_._createHelper(k)}(),x.RabbitLegacy)},8182:function(Me,re,G){var x;Me.exports=(x=G(7585),G(8319),G(9493),G(7865),G(3057),function(){var S=x,_=S.lib.StreamCipher,g=[],d=[],w=[],k=S.algo.Rabbit=_.extend({_doReset:function(){for(var T=this._key.words,a=this.cfg.iv,r=0;r<4;r++)T[r]=16711935&(T[r]<<8|T[r]>>>24)|4278255360&(T[r]<<24|T[r]>>>8);var i=this._X=[T[0],T[3]<<16|T[2]>>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],c=this._C=[T[2]<<16|T[2]>>>16,4294901760&T[0]|65535&T[1],T[3]<<16|T[3]>>>16,4294901760&T[1]|65535&T[2],T[0]<<16|T[0]>>>16,4294901760&T[2]|65535&T[3],T[1]<<16|T[1]>>>16,4294901760&T[3]|65535&T[0]];for(this._b=0,r=0;r<4;r++)I.call(this);for(r=0;r<8;r++)c[r]^=i[r+4&7];if(a){var f=a.words,p=f[0],v=f[1],L=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),ee=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),oe=L>>>16|4294901760&ee,de=ee<<16|65535&L;for(c[0]^=L,c[1]^=oe,c[2]^=ee,c[3]^=de,c[4]^=L,c[5]^=oe,c[6]^=ee,c[7]^=de,r=0;r<4;r++)I.call(this)}},_doProcessBlock:function(T,a){var r=this._X;I.call(this),g[0]=r[0]^r[5]>>>16^r[3]<<16,g[1]=r[2]^r[7]>>>16^r[5]<<16,g[2]=r[4]^r[1]>>>16^r[7]<<16,g[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)g[i]=16711935&(g[i]<<8|g[i]>>>24)|4278255360&(g[i]<<24|g[i]>>>8),T[a+i]^=g[i]},blockSize:4,ivSize:2});function I(){for(var T=this._X,a=this._C,r=0;r<8;r++)d[r]=a[r];for(a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0>>0?1:0)|0,this._b=a[7]>>>0>>0?1:0,r=0;r<8;r++){var i=T[r]+a[r],c=65535&i,f=i>>>16;w[r]=((c*c>>>17)+c*f>>>15)+f*f^((4294901760&i)*i|0)+((65535&i)*i|0)}T[0]=w[0]+(w[7]<<16|w[7]>>>16)+(w[6]<<16|w[6]>>>16)|0,T[1]=w[1]+(w[0]<<8|w[0]>>>24)+w[7]|0,T[2]=w[2]+(w[1]<<16|w[1]>>>16)+(w[0]<<16|w[0]>>>16)|0,T[3]=w[3]+(w[2]<<8|w[2]>>>24)+w[1]|0,T[4]=w[4]+(w[3]<<16|w[3]>>>16)+(w[2]<<16|w[2]>>>16)|0,T[5]=w[5]+(w[4]<<8|w[4]>>>24)+w[3]|0,T[6]=w[6]+(w[5]<<16|w[5]>>>16)+(w[4]<<16|w[4]>>>16)|0,T[7]=w[7]+(w[6]<<8|w[6]>>>24)+w[5]|0}S.Rabbit=_._createHelper(k)}(),x.Rabbit)},486:function(Me,re,G){var x;Me.exports=(x=G(7585),G(8319),G(9493),G(7865),G(3057),function(){var S=x,_=S.lib.StreamCipher,b=S.algo,g=b.RC4=_.extend({_doReset:function(){for(var k=this._key,I=k.words,T=k.sigBytes,a=this._S=[],r=0;r<256;r++)a[r]=r;r=0;for(var i=0;r<256;r++){var c=r%T,p=a[r];a[r]=a[i=(i+a[r]+(I[c>>>2]>>>24-c%4*8&255))%256],a[i]=p}this._i=this._j=0},_doProcessBlock:function(k,I){k[I]^=d.call(this)},keySize:8,ivSize:0});function d(){for(var k=this._S,I=this._i,T=this._j,a=0,r=0;r<4;r++){var i=k[I=(I+1)%256];k[I]=k[T=(T+k[I])%256],k[T]=i,a|=k[(k[I]+k[T])%256]<<24-8*r}return this._i=I,this._j=T,a}S.RC4=_._createHelper(g);var w=b.RC4Drop=g.extend({cfg:g.cfg.extend({drop:192}),_doReset:function(){g._doReset.call(this);for(var k=this.cfg.drop;k>0;k--)d.call(this)}});S.RC4Drop=_._createHelper(w)}(),x.RC4)},4973:function(Me,re,G){var x;Me.exports=(x=G(7585),function(S){var j=x,_=j.lib,b=_.WordArray,g=_.Hasher,d=j.algo,w=b.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),k=b.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),I=b.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),T=b.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),a=b.create([0,1518500249,1859775393,2400959708,2840853838]),r=b.create([1352829926,1548603684,1836072691,2053994217,0]),i=d.RIPEMD160=g.extend({_doReset:function(){this._hash=b.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(oe,de){for(var he=0;he<16;he++){var be=de+he,Ae=oe[be];oe[be]=16711935&(Ae<<8|Ae>>>24)|4278255360&(Ae<<24|Ae>>>8)}var Y,ne,H,M,z,Ie,fe,Xe,He,kt,Ze,J=this._hash.words,$=a.words,C=r.words,E=w.words,N=k.words,P=I.words,Q=T.words;for(Ie=Y=J[0],fe=ne=J[1],Xe=H=J[2],He=M=J[3],kt=z=J[4],he=0;he<80;he+=1)Ze=Y+oe[de+E[he]]|0,Ze+=he<16?c(ne,H,M)+$[0]:he<32?f(ne,H,M)+$[1]:he<48?p(ne,H,M)+$[2]:he<64?v(ne,H,M)+$[3]:L(ne,H,M)+$[4],Ze=(Ze=ee(Ze|=0,P[he]))+z|0,Y=z,z=M,M=ee(H,10),H=ne,ne=Ze,Ze=Ie+oe[de+N[he]]|0,Ze+=he<16?L(fe,Xe,He)+C[0]:he<32?v(fe,Xe,He)+C[1]:he<48?p(fe,Xe,He)+C[2]:he<64?f(fe,Xe,He)+C[3]:c(fe,Xe,He)+C[4],Ze=(Ze=ee(Ze|=0,Q[he]))+kt|0,Ie=kt,kt=He,He=ee(Xe,10),Xe=fe,fe=Ze;Ze=J[1]+H+He|0,J[1]=J[2]+M+kt|0,J[2]=J[3]+z+Ie|0,J[3]=J[4]+Y+fe|0,J[4]=J[0]+ne+Xe|0,J[0]=Ze},_doFinalize:function(){var oe=this._data,de=oe.words,he=8*this._nDataBytes,be=8*oe.sigBytes;de[be>>>5]|=128<<24-be%32,de[14+(be+64>>>9<<4)]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8),oe.sigBytes=4*(de.length+1),this._process();for(var Ae=this._hash,J=Ae.words,$=0;$<5;$++){var C=J[$];J[$]=16711935&(C<<8|C>>>24)|4278255360&(C<<24|C>>>8)}return Ae},clone:function(){var oe=g.clone.call(this);return oe._hash=this._hash.clone(),oe}});function c(oe,de,he){return oe^de^he}function f(oe,de,he){return oe&de|~oe&he}function p(oe,de,he){return(oe|~de)^he}function v(oe,de,he){return oe&he|de&~he}function L(oe,de,he){return oe^(de|~he)}function ee(oe,de){return oe<>>32-de}j.RIPEMD160=g._createHelper(i),j.HmacRIPEMD160=g._createHmacHelper(i)}(Math),x.RIPEMD160)},5162:function(Me,re,G){var S,j,_,b,d,w,x;Me.exports=(x=G(7585),_=(j=(S=x).lib).WordArray,d=[],w=S.algo.SHA1=(b=j.Hasher).extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,I){for(var T=this._hash.words,a=T[0],r=T[1],i=T[2],c=T[3],f=T[4],p=0;p<80;p++){if(p<16)d[p]=0|k[I+p];else{var v=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=v<<1|v>>>31}var L=(a<<5|a>>>27)+f+d[p];L+=p<20?1518500249+(r&i|~r&c):p<40?1859775393+(r^i^c):p<60?(r&i|r&c|i&c)-1894007588:(r^i^c)-899497514,f=c,c=i,i=r<<30|r>>>2,r=a,a=L}T[0]=T[0]+a|0,T[1]=T[1]+r|0,T[2]=T[2]+i|0,T[3]=T[3]+c|0,T[4]=T[4]+f|0},_doFinalize:function(){var k=this._data,I=k.words,T=8*this._nDataBytes,a=8*k.sigBytes;return I[a>>>5]|=128<<24-a%32,I[14+(a+64>>>9<<4)]=Math.floor(T/4294967296),I[15+(a+64>>>9<<4)]=T,k.sigBytes=4*I.length,this._process(),this._hash},clone:function(){var k=b.clone.call(this);return k._hash=this._hash.clone(),k}}),S.SHA1=b._createHelper(w),S.HmacSHA1=b._createHmacHelper(w),x.SHA1)},8769:function(Me,re,G){var S,_,b,g,d,x;Me.exports=(x=G(7585),G(1817),_=(S=x).lib.WordArray,d=(b=S.algo).SHA224=(g=b.SHA256).extend({_doReset:function(){this._hash=new _.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var w=g._doFinalize.call(this);return w.sigBytes-=4,w}}),S.SHA224=g._createHelper(d),S.HmacSHA224=g._createHmacHelper(d),x.SHA224)},1817:function(Me,re,G){var x;Me.exports=(x=G(7585),function(S){var j=x,_=j.lib,b=_.WordArray,g=_.Hasher,d=j.algo,w=[],k=[];!function(){function a(f){for(var p=S.sqrt(f),v=2;v<=p;v++)if(!(f%v))return!1;return!0}function r(f){return 4294967296*(f-(0|f))|0}for(var i=2,c=0;c<64;)a(i)&&(c<8&&(w[c]=r(S.pow(i,.5))),k[c]=r(S.pow(i,1/3)),c++),i++}();var I=[],T=d.SHA256=g.extend({_doReset:function(){this._hash=new b.init(w.slice(0))},_doProcessBlock:function(a,r){for(var i=this._hash.words,c=i[0],f=i[1],p=i[2],v=i[3],L=i[4],ee=i[5],oe=i[6],de=i[7],he=0;he<64;he++){if(he<16)I[he]=0|a[r+he];else{var be=I[he-15],J=I[he-2];I[he]=((be<<25|be>>>7)^(be<<14|be>>>18)^be>>>3)+I[he-7]+((J<<15|J>>>17)^(J<<13|J>>>19)^J>>>10)+I[he-16]}var E=c&f^c&p^f&p,Q=de+((L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25))+(L&ee^~L&oe)+k[he]+I[he];de=oe,oe=ee,ee=L,L=v+Q|0,v=p,p=f,f=c,c=Q+(((c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22))+E)|0}i[0]=i[0]+c|0,i[1]=i[1]+f|0,i[2]=i[2]+p|0,i[3]=i[3]+v|0,i[4]=i[4]+L|0,i[5]=i[5]+ee|0,i[6]=i[6]+oe|0,i[7]=i[7]+de|0},_doFinalize:function(){var a=this._data,r=a.words,i=8*this._nDataBytes,c=8*a.sigBytes;return r[c>>>5]|=128<<24-c%32,r[14+(c+64>>>9<<4)]=S.floor(i/4294967296),r[15+(c+64>>>9<<4)]=i,a.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var a=g.clone.call(this);return a._hash=this._hash.clone(),a}});j.SHA256=g._createHelper(T),j.HmacSHA256=g._createHmacHelper(T)}(Math),x.SHA256)},1971:function(Me,re,G){var x;Me.exports=(x=G(7585),G(401),function(S){var j=x,_=j.lib,b=_.WordArray,g=_.Hasher,w=j.x64.Word,k=j.algo,I=[],T=[],a=[];!function(){for(var c=1,f=0,p=0;p<24;p++){I[c+5*f]=(p+1)*(p+2)/2%64;var L=(2*c+3*f)%5;c=f%5,f=L}for(c=0;c<5;c++)for(f=0;f<5;f++)T[c+5*f]=f+(2*c+3*f)%5*5;for(var ee=1,oe=0;oe<24;oe++){for(var de=0,he=0,be=0;be<7;be++){if(1&ee){var Ae=(1<>>24)|4278255360&(ee<<24|ee>>>8),(de=p[L]).high^=oe=16711935&(oe<<8|oe>>>24)|4278255360&(oe<<24|oe>>>8),de.low^=ee}for(var he=0;he<24;he++){for(var be=0;be<5;be++){for(var Ae=0,J=0,$=0;$<5;$++)Ae^=(de=p[be+5*$]).high,J^=de.low;var C=r[be];C.high=Ae,C.low=J}for(be=0;be<5;be++){var E=r[(be+4)%5],N=r[(be+1)%5],P=N.high,Q=N.low;for(Ae=E.high^(P<<1|Q>>>31),J=E.low^(Q<<1|P>>>31),$=0;$<5;$++)(de=p[be+5*$]).high^=Ae,de.low^=J}for(var Y=1;Y<25;Y++){var ne=(de=p[Y]).high,H=de.low,M=I[Y];M<32?(Ae=ne<>>32-M,J=H<>>32-M):(Ae=H<>>64-M,J=ne<>>64-M);var z=r[T[Y]];z.high=Ae,z.low=J}var Ie=r[0],fe=p[0];for(Ie.high=fe.high,Ie.low=fe.low,be=0;be<5;be++)for($=0;$<5;$++){var Xe=r[Y=be+5*$],He=r[(be+1)%5+5*$],kt=r[(be+2)%5+5*$];(de=p[Y]).high=Xe.high^~He.high&kt.high,de.low=Xe.low^~He.low&kt.low}var de,Ze=a[he];(de=p[0]).high^=Ze.high,de.low^=Ze.low}},_doFinalize:function(){var c=this._data,f=c.words,v=8*c.sigBytes,L=32*this.blockSize;f[v>>>5]|=1<<24-v%32,f[(S.ceil((v+1)/L)*L>>>5)-1]|=128,c.sigBytes=4*f.length,this._process();for(var ee=this._state,oe=this.cfg.outputLength/8,de=oe/8,he=[],be=0;be>>24)|4278255360&(J<<24|J>>>8),he.push($=16711935&($<<8|$>>>24)|4278255360&($<<24|$>>>8)),he.push(J)}return new b.init(he,oe)},clone:function(){for(var c=g.clone.call(this),f=c._state=this._state.slice(0),p=0;p<25;p++)f[p]=f[p].clone();return c}});j.SHA3=g._createHelper(i),j.HmacSHA3=g._createHmacHelper(i)}(Math),x.SHA3)},6787:function(Me,re,G){var S,j,_,b,g,d,w,x;Me.exports=(x=G(7585),G(401),G(3351),_=(j=(S=x).x64).Word,b=j.WordArray,w=(g=S.algo).SHA384=(d=g.SHA512).extend({_doReset:function(){this._hash=new b.init([new _.init(3418070365,3238371032),new _.init(1654270250,914150663),new _.init(2438529370,812702999),new _.init(355462360,4144912697),new _.init(1731405415,4290775857),new _.init(2394180231,1750603025),new _.init(3675008525,1694076839),new _.init(1203062813,3204075428)])},_doFinalize:function(){var k=d._doFinalize.call(this);return k.sigBytes-=16,k}}),S.SHA384=d._createHelper(w),S.HmacSHA384=d._createHmacHelper(w),x.SHA384)},3351:function(Me,re,G){var x;Me.exports=(x=G(7585),G(401),function(){var S=x,_=S.lib.Hasher,b=S.x64,g=b.Word,d=b.WordArray,w=S.algo;function k(){return g.create.apply(g,arguments)}var I=[k(1116352408,3609767458),k(1899447441,602891725),k(3049323471,3964484399),k(3921009573,2173295548),k(961987163,4081628472),k(1508970993,3053834265),k(2453635748,2937671579),k(2870763221,3664609560),k(3624381080,2734883394),k(310598401,1164996542),k(607225278,1323610764),k(1426881987,3590304994),k(1925078388,4068182383),k(2162078206,991336113),k(2614888103,633803317),k(3248222580,3479774868),k(3835390401,2666613458),k(4022224774,944711139),k(264347078,2341262773),k(604807628,2007800933),k(770255983,1495990901),k(1249150122,1856431235),k(1555081692,3175218132),k(1996064986,2198950837),k(2554220882,3999719339),k(2821834349,766784016),k(2952996808,2566594879),k(3210313671,3203337956),k(3336571891,1034457026),k(3584528711,2466948901),k(113926993,3758326383),k(338241895,168717936),k(666307205,1188179964),k(773529912,1546045734),k(1294757372,1522805485),k(1396182291,2643833823),k(1695183700,2343527390),k(1986661051,1014477480),k(2177026350,1206759142),k(2456956037,344077627),k(2730485921,1290863460),k(2820302411,3158454273),k(3259730800,3505952657),k(3345764771,106217008),k(3516065817,3606008344),k(3600352804,1432725776),k(4094571909,1467031594),k(275423344,851169720),k(430227734,3100823752),k(506948616,1363258195),k(659060556,3750685593),k(883997877,3785050280),k(958139571,3318307427),k(1322822218,3812723403),k(1537002063,2003034995),k(1747873779,3602036899),k(1955562222,1575990012),k(2024104815,1125592928),k(2227730452,2716904306),k(2361852424,442776044),k(2428436474,593698344),k(2756734187,3733110249),k(3204031479,2999351573),k(3329325298,3815920427),k(3391569614,3928383900),k(3515267271,566280711),k(3940187606,3454069534),k(4118630271,4000239992),k(116418474,1914138554),k(174292421,2731055270),k(289380356,3203993006),k(460393269,320620315),k(685471733,587496836),k(852142971,1086792851),k(1017036298,365543100),k(1126000580,2618297676),k(1288033470,3409855158),k(1501505948,4234509866),k(1607167915,987167468),k(1816402316,1246189591)],T=[];!function(){for(var r=0;r<80;r++)T[r]=k()}();var a=w.SHA512=_.extend({_doReset:function(){this._hash=new d.init([new g.init(1779033703,4089235720),new g.init(3144134277,2227873595),new g.init(1013904242,4271175723),new g.init(2773480762,1595750129),new g.init(1359893119,2917565137),new g.init(2600822924,725511199),new g.init(528734635,4215389547),new g.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var c=this._hash.words,f=c[0],p=c[1],v=c[2],L=c[3],ee=c[4],oe=c[5],de=c[6],he=c[7],be=f.high,Ae=f.low,J=p.high,$=p.low,C=v.high,E=v.low,N=L.high,P=L.low,Q=ee.high,Y=ee.low,ne=oe.high,H=oe.low,M=de.high,z=de.low,Ie=he.high,fe=he.low,Xe=be,He=Ae,kt=J,Ze=$,br=C,nt=E,at=N,nn=P,ft=Q,Ct=Y,St=ne,At=H,vt=M,ln=z,zt=Ie,Gt=fe,$t=0;$t<80;$t++){var Pt,un,jn=T[$t];if($t<16)un=jn.high=0|r[i+2*$t],Pt=jn.low=0|r[i+2*$t+1];else{var bn=T[$t-15],Cn=bn.high,rr=bn.low,Z=(rr>>>1|Cn<<31)^(rr>>>8|Cn<<24)^(rr>>>7|Cn<<25),B=T[$t-2],R=B.high,le=B.low,Fe=(le>>>19|R<<13)^(le<<3|R>>>29)^(le>>>6|R<<26),Ve=T[$t-7],Xt=T[$t-16],qt=Xt.low;jn.high=un=(un=(un=((Cn>>>1|rr<<31)^(Cn>>>8|rr<<24)^Cn>>>7)+Ve.high+((Pt=Z+Ve.low)>>>0>>0?1:0))+((R>>>19|le<<13)^(R<<3|le>>>29)^R>>>6)+((Pt+=Fe)>>>0>>0?1:0))+Xt.high+((Pt+=qt)>>>0>>0?1:0),jn.low=Pt}var Le,Dt=ft&St^~ft&vt,so=Ct&At^~Ct&ln,Vt=Xe&kt^Xe&br^kt&br,Yt=(He>>>28|Xe<<4)^(He<<30|Xe>>>2)^(He<<25|Xe>>>7),Jn=I[$t],ci=Jn.low,Mn=zt+((ft>>>14|Ct<<18)^(ft>>>18|Ct<<14)^(ft<<23|Ct>>>9))+((Le=Gt+((Ct>>>14|ft<<18)^(Ct>>>18|ft<<14)^(Ct<<23|ft>>>9)))>>>0>>0?1:0),F=Yt+(He&Ze^He&nt^Ze&nt);zt=vt,Gt=ln,vt=St,ln=At,St=ft,At=Ct,ft=at+(Mn=(Mn=(Mn=Mn+Dt+((Le+=so)>>>0>>0?1:0))+Jn.high+((Le+=ci)>>>0>>0?1:0))+un+((Le+=Pt)>>>0>>0?1:0))+((Ct=nn+Le|0)>>>0>>0?1:0)|0,at=br,nn=nt,br=kt,nt=Ze,kt=Xe,Ze=He,Xe=Mn+(((Xe>>>28|He<<4)^(Xe<<30|He>>>2)^(Xe<<25|He>>>7))+Vt+(F>>>0>>0?1:0))+((He=Le+F|0)>>>0>>0?1:0)|0}Ae=f.low=Ae+He,f.high=be+Xe+(Ae>>>0>>0?1:0),$=p.low=$+Ze,p.high=J+kt+($>>>0>>0?1:0),E=v.low=E+nt,v.high=C+br+(E>>>0>>0?1:0),P=L.low=P+nn,L.high=N+at+(P>>>0>>0?1:0),Y=ee.low=Y+Ct,ee.high=Q+ft+(Y>>>0>>0?1:0),H=oe.low=H+At,oe.high=ne+St+(H>>>0>>0?1:0),z=de.low=z+ln,de.high=M+vt+(z>>>0>>0?1:0),fe=he.low=fe+Gt,he.high=Ie+zt+(fe>>>0>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,c=8*this._nDataBytes,f=8*r.sigBytes;return i[f>>>5]|=128<<24-f%32,i[30+(f+128>>>10<<5)]=Math.floor(c/4294967296),i[31+(f+128>>>10<<5)]=c,r.sigBytes=4*i.length,this._process(),this._hash.toX32()},clone:function(){var r=_.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:32});S.SHA512=_._createHelper(a),S.HmacSHA512=_._createHmacHelper(a)}(),x.SHA512)},7243:function(Me,re,G){var x;Me.exports=(x=G(7585),G(8319),G(9493),G(7865),G(3057),function(){var S=x,j=S.lib,_=j.WordArray,b=j.BlockCipher,g=S.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],w=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],k=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],I=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],T=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],a=g.DES=b.extend({_doReset:function(){for(var p=this._key.words,v=[],L=0;L<56;L++){var ee=d[L]-1;v[L]=p[ee>>>5]>>>31-ee%32&1}for(var oe=this._subKeys=[],de=0;de<16;de++){var he=oe[de]=[],be=k[de];for(L=0;L<24;L++)he[L/6|0]|=v[(w[L]-1+be)%28]<<31-L%6,he[4+(L/6|0)]|=v[28+(w[L+24]-1+be)%28]<<31-L%6;for(he[0]=he[0]<<1|he[0]>>>31,L=1;L<7;L++)he[L]=he[L]>>>4*(L-1)+3;he[7]=he[7]<<5|he[7]>>>27}var Ae=this._invSubKeys=[];for(L=0;L<16;L++)Ae[L]=oe[15-L]},encryptBlock:function(f,p){this._doCryptBlock(f,p,this._subKeys)},decryptBlock:function(f,p){this._doCryptBlock(f,p,this._invSubKeys)},_doCryptBlock:function(f,p,v){this._lBlock=f[p],this._rBlock=f[p+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var L=0;L<16;L++){for(var ee=v[L],oe=this._lBlock,de=this._rBlock,he=0,be=0;be<8;be++)he|=I[be][((de^ee[be])&T[be])>>>0];this._lBlock=de,this._rBlock=oe^he}var Ae=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Ae,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),f[p]=this._lBlock,f[p+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function r(f,p){var v=(this._lBlock>>>f^this._rBlock)&p;this._rBlock^=v,this._lBlock^=v<>>f^this._lBlock)&p;this._lBlock^=v,this._rBlock^=v<192.");var v=p.slice(0,2),L=p.length<4?p.slice(0,2):p.slice(2,4),ee=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=a.createEncryptor(_.create(v)),this._des2=a.createEncryptor(_.create(L)),this._des3=a.createEncryptor(_.create(ee))},encryptBlock:function(f,p){this._des1.encryptBlock(f,p),this._des2.decryptBlock(f,p),this._des3.encryptBlock(f,p)},decryptBlock:function(f,p){this._des3.decryptBlock(f,p),this._des2.encryptBlock(f,p),this._des1.decryptBlock(f,p)},keySize:6,ivSize:2,blockSize:2});S.TripleDES=b._createHelper(c)}(),x.TripleDES)},401:function(Me,re,G){var _,b,g,d,x;Me.exports=(x=G(7585),b=(_=x.lib).Base,g=_.WordArray,(d=x.x64={}).Word=b.extend({init:function(I,T){this.high=I,this.low=T}}),d.WordArray=b.extend({init:function(I,T){I=this.words=I||[],this.sigBytes=null!=T?T:8*I.length},toX32:function(){for(var I=this.words,T=I.length,a=[],r=0;r{"use strict";var x=re;x.version=G(8597).i8,x.utils=G(1970),x.rand=G(7950),x.curve=G(6270),x.curves=G(2916),x.ec=G(7626),x.eddsa=G(1885)},7902:(Me,re,G)=>{"use strict";var x=G(8538),S=G(1970),j=S.getNAF,_=S.getJSF,b=S.assert;function g(w,k){this.type=w,this.p=new x(k.p,16),this.red=k.prime?x.red(k.prime):x.mont(this.p),this.zero=new x(0).toRed(this.red),this.one=new x(1).toRed(this.red),this.two=new x(2).toRed(this.red),this.n=k.n&&new x(k.n,16),this.g=k.g&&this.pointFromJSON(k.g,k.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var I=this.n&&this.p.div(this.n);!I||I.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(w,k){this.curve=w,this.type=k,this.precomputed=null}Me.exports=g,g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(k,I){b(k.precomputed);var T=k._getDoubles(),a=j(I,1,this._bitLength),r=(1<=c;p--)f=(f<<1)+a[p];i.push(f)}for(var v=this.jpoint(null,null,null),L=this.jpoint(null,null,null),ee=r;ee>0;ee--){for(c=0;c=0;f--){for(var p=0;f>=0&&0===i[f];f--)p++;if(f>=0&&p++,c=c.dblp(p),f<0)break;var v=i[f];b(0!==v),c="affine"===k.type?c.mixedAdd(v>0?r[v-1>>1]:r[-v-1>>1].neg()):c.add(v>0?r[v-1>>1]:r[-v-1>>1].neg())}return"affine"===k.type?c.toP():c},g.prototype._wnafMulAdd=function(k,I,T,a,r){var v,L,ee,i=this._wnafT1,c=this._wnafT2,f=this._wnafT3,p=0;for(v=0;v=1;v-=2){var de=v-1,he=v;if(1===i[de]&&1===i[he]){var be=[I[de],null,null,I[he]];0===I[de].y.cmp(I[he].y)?(be[1]=I[de].add(I[he]),be[2]=I[de].toJ().mixedAdd(I[he].neg())):0===I[de].y.cmp(I[he].y.redNeg())?(be[1]=I[de].toJ().mixedAdd(I[he]),be[2]=I[de].add(I[he].neg())):(be[1]=I[de].toJ().mixedAdd(I[he]),be[2]=I[de].toJ().mixedAdd(I[he].neg()));var Ae=[-3,-1,-5,-7,0,7,5,1,3],J=_(T[de],T[he]);for(p=Math.max(J[0].length,p),f[de]=new Array(p),f[he]=new Array(p),L=0;L=0;v--){for(var P=0;v>=0;){var Q=!0;for(L=0;L=0&&P++,E=E.dblp(P),v<0)break;for(L=0;L0?ee=c[L][Y-1>>1]:Y<0&&(ee=c[L][-Y-1>>1].neg()),E="affine"===ee.type?E.mixedAdd(ee):E.add(ee))}}for(v=0;v=Math.ceil((k.bitLength()+1)/I.step)},d.prototype._getDoubles=function(k,I){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var T=[this],a=this,r=0;r{"use strict";var x=G(1970),S=G(8538),j=G(3894),_=G(7902),b=x.assert;function g(w){this.twisted=1!=(0|w.a),this.mOneA=this.twisted&&-1==(0|w.a),this.extended=this.mOneA,_.call(this,"edwards",w),this.a=new S(w.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new S(w.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new S(w.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),b(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|w.c)}function d(w,k,I,T,a){_.BasePoint.call(this,w,"projective"),null===k&&null===I&&null===T?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new S(k,16),this.y=new S(I,16),this.z=T?new S(T,16):this.curve.one,this.t=a&&new S(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}j(g,_),Me.exports=g,g.prototype._mulA=function(k){return this.mOneA?k.redNeg():this.a.redMul(k)},g.prototype._mulC=function(k){return this.oneC?k:this.c.redMul(k)},g.prototype.jpoint=function(k,I,T,a){return this.point(k,I,T,a)},g.prototype.pointFromX=function(k,I){(k=new S(k,16)).red||(k=k.toRed(this.red));var T=k.redSqr(),a=this.c2.redSub(this.a.redMul(T)),r=this.one.redSub(this.c2.redMul(this.d).redMul(T)),i=a.redMul(r.redInvm()),c=i.redSqrt();if(0!==c.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var f=c.fromRed().isOdd();return(I&&!f||!I&&f)&&(c=c.redNeg()),this.point(k,c)},g.prototype.pointFromY=function(k,I){(k=new S(k,16)).red||(k=k.toRed(this.red));var T=k.redSqr(),a=T.redSub(this.c2),r=T.redMul(this.d).redMul(this.c2).redSub(this.a),i=a.redMul(r.redInvm());if(0===i.cmp(this.zero)){if(I)throw new Error("invalid point");return this.point(this.zero,k)}var c=i.redSqrt();if(0!==c.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return c.fromRed().isOdd()!==I&&(c=c.redNeg()),this.point(c,k)},g.prototype.validate=function(k){if(k.isInfinity())return!0;k.normalize();var I=k.x.redSqr(),T=k.y.redSqr(),a=I.redMul(this.a).redAdd(T),r=this.c2.redMul(this.one.redAdd(this.d.redMul(I).redMul(T)));return 0===a.cmp(r)},j(d,_.BasePoint),g.prototype.pointFromJSON=function(k){return d.fromJSON(this,k)},g.prototype.point=function(k,I,T,a){return new d(this,k,I,T,a)},d.fromJSON=function(k,I){return new d(k,I[0],I[1],I[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var k=this.x.redSqr(),I=this.y.redSqr(),T=this.z.redSqr();T=T.redIAdd(T);var a=this.curve._mulA(k),r=this.x.redAdd(this.y).redSqr().redISub(k).redISub(I),i=a.redAdd(I),c=i.redSub(T),f=a.redSub(I),p=r.redMul(c),v=i.redMul(f),L=r.redMul(f),ee=c.redMul(i);return this.curve.point(p,v,ee,L)},d.prototype._projDbl=function(){var a,r,i,c,f,p,k=this.x.redAdd(this.y).redSqr(),I=this.x.redSqr(),T=this.y.redSqr();if(this.curve.twisted){var v=(c=this.curve._mulA(I)).redAdd(T);this.zOne?(a=k.redSub(I).redSub(T).redMul(v.redSub(this.curve.two)),r=v.redMul(c.redSub(T)),i=v.redSqr().redSub(v).redSub(v)):(f=this.z.redSqr(),p=v.redSub(f).redISub(f),a=k.redSub(I).redISub(T).redMul(p),r=v.redMul(c.redSub(T)),i=v.redMul(p))}else c=I.redAdd(T),f=this.curve._mulC(this.z).redSqr(),p=c.redSub(f).redSub(f),a=this.curve._mulC(k.redISub(c)).redMul(p),r=this.curve._mulC(c).redMul(I.redISub(T)),i=c.redMul(p);return this.curve.point(a,r,i)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(k){var I=this.y.redSub(this.x).redMul(k.y.redSub(k.x)),T=this.y.redAdd(this.x).redMul(k.y.redAdd(k.x)),a=this.t.redMul(this.curve.dd).redMul(k.t),r=this.z.redMul(k.z.redAdd(k.z)),i=T.redSub(I),c=r.redSub(a),f=r.redAdd(a),p=T.redAdd(I),v=i.redMul(c),L=f.redMul(p),ee=i.redMul(p),oe=c.redMul(f);return this.curve.point(v,L,oe,ee)},d.prototype._projAdd=function(k){var L,ee,I=this.z.redMul(k.z),T=I.redSqr(),a=this.x.redMul(k.x),r=this.y.redMul(k.y),i=this.curve.d.redMul(a).redMul(r),c=T.redSub(i),f=T.redAdd(i),p=this.x.redAdd(this.y).redMul(k.x.redAdd(k.y)).redISub(a).redISub(r),v=I.redMul(c).redMul(p);return this.curve.twisted?(L=I.redMul(f).redMul(r.redSub(this.curve._mulA(a))),ee=c.redMul(f)):(L=I.redMul(f).redMul(r.redSub(a)),ee=this.curve._mulC(c).redMul(f)),this.curve.point(v,L,ee)},d.prototype.add=function(k){return this.isInfinity()?k:k.isInfinity()?this:this.curve.extended?this._extAdd(k):this._projAdd(k)},d.prototype.mul=function(k){return this._hasDoubles(k)?this.curve._fixedNafMul(this,k):this.curve._wnafMul(this,k)},d.prototype.mulAdd=function(k,I,T){return this.curve._wnafMulAdd(1,[this,I],[k,T],2,!1)},d.prototype.jmulAdd=function(k,I,T){return this.curve._wnafMulAdd(1,[this,I],[k,T],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var k=this.z.redInvm();return this.x=this.x.redMul(k),this.y=this.y.redMul(k),this.t&&(this.t=this.t.redMul(k)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(k){return this===k||0===this.getX().cmp(k.getX())&&0===this.getY().cmp(k.getY())},d.prototype.eqXToP=function(k){var I=k.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(I))return!0;for(var T=k.clone(),a=this.curve.redN.redMul(this.z);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(a),0===this.x.cmp(I))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(Me,re,G)=>{"use strict";var x=re;x.base=G(7902),x.short=G(1781),x.mont=G(7064),x.edwards=G(3835)},7064:(Me,re,G)=>{"use strict";var x=G(8538),S=G(3894),j=G(7902),_=G(1970);function b(d){j.call(this,"mont",d),this.a=new x(d.a,16).toRed(this.red),this.b=new x(d.b,16).toRed(this.red),this.i4=new x(4).toRed(this.red).redInvm(),this.two=new x(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function g(d,w,k){j.BasePoint.call(this,d,"projective"),null===w&&null===k?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new x(w,16),this.z=new x(k,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}S(b,j),Me.exports=b,b.prototype.validate=function(w){var k=w.normalize().x,I=k.redSqr(),T=I.redMul(k).redAdd(I.redMul(this.a)).redAdd(k);return 0===T.redSqrt().redSqr().cmp(T)},S(g,j.BasePoint),b.prototype.decodePoint=function(w,k){return this.point(_.toArray(w,k),1)},b.prototype.point=function(w,k){return new g(this,w,k)},b.prototype.pointFromJSON=function(w){return g.fromJSON(this,w)},g.prototype.precompute=function(){},g.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},g.fromJSON=function(w,k){return new g(w,k[0],k[1]||w.one)},g.prototype.inspect=function(){return this.isInfinity()?"":""},g.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},g.prototype.dbl=function(){var k=this.x.redAdd(this.z).redSqr(),T=this.x.redSub(this.z).redSqr(),a=k.redSub(T),r=k.redMul(T),i=a.redMul(T.redAdd(this.curve.a24.redMul(a)));return this.curve.point(r,i)},g.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},g.prototype.diffAdd=function(w,k){var I=this.x.redAdd(this.z),T=this.x.redSub(this.z),a=w.x.redAdd(w.z),i=w.x.redSub(w.z).redMul(I),c=a.redMul(T),f=k.z.redMul(i.redAdd(c).redSqr()),p=k.x.redMul(i.redISub(c).redSqr());return this.curve.point(f,p)},g.prototype.mul=function(w){for(var k=w.clone(),I=this,T=this.curve.point(null,null),r=[];0!==k.cmpn(0);k.iushrn(1))r.push(k.andln(1));for(var i=r.length-1;i>=0;i--)0===r[i]?(I=I.diffAdd(T,this),T=T.dbl()):(T=I.diffAdd(T,this),I=I.dbl());return T},g.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},g.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},g.prototype.eq=function(w){return 0===this.getX().cmp(w.getX())},g.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},g.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Me,re,G)=>{"use strict";var x=G(1970),S=G(8538),j=G(3894),_=G(7902),b=x.assert;function g(k){_.call(this,"short",k),this.a=new S(k.a,16).toRed(this.red),this.b=new S(k.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(k),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(k,I,T,a){_.BasePoint.call(this,k,"affine"),null===I&&null===T?(this.x=null,this.y=null,this.inf=!0):(this.x=new S(I,16),this.y=new S(T,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function w(k,I,T,a){_.BasePoint.call(this,k,"jacobian"),null===I&&null===T&&null===a?(this.x=this.curve.one,this.y=this.curve.one,this.z=new S(0)):(this.x=new S(I,16),this.y=new S(T,16),this.z=new S(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}j(g,_),Me.exports=g,g.prototype._getEndomorphism=function(I){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var T,a;if(I.beta)T=new S(I.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);T=(T=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(I.lambda)a=new S(I.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(T))?a=i[0]:b(0===this.g.mul(a=i[1]).x.cmp(this.g.x.redMul(T)))}return{beta:T,lambda:a,basis:I.basis?I.basis.map(function(f){return{a:new S(f.a,16),b:new S(f.b,16)}}):this._getEndoBasis(a)}}},g.prototype._getEndoRoots=function(I){var T=I===this.p?this.red:S.mont(I),a=new S(2).toRed(T).redInvm(),r=a.redNeg(),i=new S(3).toRed(T).redNeg().redSqrt().redMul(a);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},g.prototype._getEndoBasis=function(I){for(var v,L,ee,oe,de,he,be,J,$,T=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=I,r=this.n.clone(),i=new S(1),c=new S(0),f=new S(0),p=new S(1),Ae=0;0!==a.cmpn(0);){var C=r.div(a);J=r.sub(C.mul(a)),$=f.sub(C.mul(i));var E=p.sub(C.mul(c));if(!ee&&J.cmp(T)<0)v=be.neg(),L=i,ee=J.neg(),oe=$;else if(ee&&2==++Ae)break;be=J,r=a,a=J,f=i,i=$,p=c,c=E}de=J.neg(),he=$;var N=ee.sqr().add(oe.sqr());return de.sqr().add(he.sqr()).cmp(N)>=0&&(de=v,he=L),ee.negative&&(ee=ee.neg(),oe=oe.neg()),de.negative&&(de=de.neg(),he=he.neg()),[{a:ee,b:oe},{a:de,b:he}]},g.prototype._endoSplit=function(I){var T=this.endo.basis,a=T[0],r=T[1],i=r.b.mul(I).divRound(this.n),c=a.b.neg().mul(I).divRound(this.n),f=i.mul(a.a),p=c.mul(r.a),v=i.mul(a.b),L=c.mul(r.b);return{k1:I.sub(f).sub(p),k2:v.add(L).neg()}},g.prototype.pointFromX=function(I,T){(I=new S(I,16)).red||(I=I.toRed(this.red));var a=I.redSqr().redMul(I).redIAdd(I.redMul(this.a)).redIAdd(this.b),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(T&&!i||!T&&i)&&(r=r.redNeg()),this.point(I,r)},g.prototype.validate=function(I){if(I.inf)return!0;var T=I.x,a=I.y,r=this.a.redMul(T),i=T.redSqr().redMul(T).redIAdd(r).redIAdd(this.b);return 0===a.redSqr().redISub(i).cmpn(0)},g.prototype._endoWnafMulAdd=function(I,T,a){for(var r=this._endoWnafT1,i=this._endoWnafT2,c=0;c":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(I){if(this.inf)return I;if(I.inf)return this;if(this.eq(I))return this.dbl();if(this.neg().eq(I))return this.curve.point(null,null);if(0===this.x.cmp(I.x))return this.curve.point(null,null);var T=this.y.redSub(I.y);0!==T.cmpn(0)&&(T=T.redMul(this.x.redSub(I.x).redInvm()));var a=T.redSqr().redISub(this.x).redISub(I.x),r=T.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},d.prototype.dbl=function(){if(this.inf)return this;var I=this.y.redAdd(this.y);if(0===I.cmpn(0))return this.curve.point(null,null);var T=this.curve.a,a=this.x.redSqr(),r=I.redInvm(),i=a.redAdd(a).redIAdd(a).redIAdd(T).redMul(r),c=i.redSqr().redISub(this.x.redAdd(this.x)),f=i.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,f)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(I){return I=new S(I,16),this.isInfinity()?this:this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve.endo?this.curve._endoWnafMulAdd([this],[I]):this.curve._wnafMul(this,I)},d.prototype.mulAdd=function(I,T,a){var r=[this,T],i=[I,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},d.prototype.jmulAdd=function(I,T,a){var r=[this,T],i=[I,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},d.prototype.eq=function(I){return this===I||this.inf===I.inf&&(this.inf||0===this.x.cmp(I.x)&&0===this.y.cmp(I.y))},d.prototype.neg=function(I){if(this.inf)return this;var T=this.curve.point(this.x,this.y.redNeg());if(I&&this.precomputed){var a=this.precomputed,r=function(i){return i.neg()};T.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(r)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(r)}}}return T},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},j(w,_.BasePoint),g.prototype.jpoint=function(I,T,a){return new w(this,I,T,a)},w.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var I=this.z.redInvm(),T=I.redSqr(),a=this.x.redMul(T),r=this.y.redMul(T).redMul(I);return this.curve.point(a,r)},w.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},w.prototype.add=function(I){if(this.isInfinity())return I;if(I.isInfinity())return this;var T=I.z.redSqr(),a=this.z.redSqr(),r=this.x.redMul(T),i=I.x.redMul(a),c=this.y.redMul(T.redMul(I.z)),f=I.y.redMul(a.redMul(this.z)),p=r.redSub(i),v=c.redSub(f);if(0===p.cmpn(0))return 0!==v.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var L=p.redSqr(),ee=L.redMul(p),oe=r.redMul(L),de=v.redSqr().redIAdd(ee).redISub(oe).redISub(oe),he=v.redMul(oe.redISub(de)).redISub(c.redMul(ee)),be=this.z.redMul(I.z).redMul(p);return this.curve.jpoint(de,he,be)},w.prototype.mixedAdd=function(I){if(this.isInfinity())return I.toJ();if(I.isInfinity())return this;var T=this.z.redSqr(),a=this.x,r=I.x.redMul(T),i=this.y,c=I.y.redMul(T).redMul(this.z),f=a.redSub(r),p=i.redSub(c);if(0===f.cmpn(0))return 0!==p.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var v=f.redSqr(),L=v.redMul(f),ee=a.redMul(v),oe=p.redSqr().redIAdd(L).redISub(ee).redISub(ee),de=p.redMul(ee.redISub(oe)).redISub(i.redMul(L)),he=this.z.redMul(f);return this.curve.jpoint(oe,de,he)},w.prototype.dblp=function(I){if(0===I)return this;if(this.isInfinity())return this;if(!I)return this.dbl();var T;if(this.curve.zeroA||this.curve.threeA){var a=this;for(T=0;T=0)return!1;if(a.redIAdd(i),0===this.x.cmp(a))return!0}},w.prototype.inspect=function(){return this.isInfinity()?"":""},w.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Me,re,G)=>{"use strict";var w,x=re,S=G(7084),j=G(6270),b=G(1970).assert;function g(k){this.curve="short"===k.type?new j.short(k):"edwards"===k.type?new j.edwards(k):new j.mont(k),this.g=this.curve.g,this.n=this.curve.n,this.hash=k.hash,b(this.g.validate(),"Invalid curve"),b(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(k,I){Object.defineProperty(x,k,{configurable:!0,enumerable:!0,get:function(){var T=new g(I);return Object.defineProperty(x,k,{configurable:!0,enumerable:!0,value:T}),T}})}x.PresetCurve=g,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:S.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:S.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{w=G(5207)}catch{w=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",w]})},7626:(Me,re,G)=>{"use strict";var x=G(8538),S=G(2438),j=G(1970),_=G(2916),b=G(7950),g=j.assert,d=G(1259),w=G(5957);function k(I){if(!(this instanceof k))return new k(I);"string"==typeof I&&(g(Object.prototype.hasOwnProperty.call(_,I),"Unknown curve "+I),I=_[I]),I instanceof _.PresetCurve&&(I={curve:I}),this.curve=I.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=I.curve.g,this.g.precompute(I.curve.n.bitLength()+1),this.hash=I.hash||I.curve.hash}Me.exports=k,k.prototype.keyPair=function(T){return new d(this,T)},k.prototype.keyFromPrivate=function(T,a){return d.fromPrivate(this,T,a)},k.prototype.keyFromPublic=function(T,a){return d.fromPublic(this,T,a)},k.prototype.genKeyPair=function(T){T||(T={});for(var a=new S({hash:this.hash,pers:T.pers,persEnc:T.persEnc||"utf8",entropy:T.entropy||b(this.hash.hmacStrength),entropyEnc:T.entropy&&T.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new x(2));;){var c=new x(a.generate(r));if(!(c.cmp(i)>0))return c.iaddn(1),this.keyFromPrivate(c)}},k.prototype._truncateToN=function(T,a){var r=8*T.byteLength()-this.n.bitLength();return r>0&&(T=T.ushrn(r)),!a&&T.cmp(this.n)>=0?T.sub(this.n):T},k.prototype.sign=function(T,a,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),a=this.keyFromPrivate(a,r),T=this._truncateToN(new x(T,16));for(var c=this.n.byteLength(),f=a.getPrivate().toArray("be",c),p=T.toArray("be",c),v=new S({hash:this.hash,entropy:f,nonce:p,pers:i.pers,persEnc:i.persEnc||"utf8"}),L=this.n.sub(new x(1)),ee=0;;ee++){var oe=i.k?i.k(ee):new x(v.generate(this.n.byteLength()));if(!((oe=this._truncateToN(oe,!0)).cmpn(1)<=0||oe.cmp(L)>=0)){var de=this.g.mul(oe);if(!de.isInfinity()){var he=de.getX(),be=he.umod(this.n);if(0!==be.cmpn(0)){var Ae=oe.invm(this.n).mul(be.mul(a.getPrivate()).iadd(T));if(0!==(Ae=Ae.umod(this.n)).cmpn(0)){var J=(de.getY().isOdd()?1:0)|(0!==he.cmp(be)?2:0);return i.canonical&&Ae.cmp(this.nh)>0&&(Ae=this.n.sub(Ae),J^=1),new w({r:be,s:Ae,recoveryParam:J})}}}}}},k.prototype.verify=function(T,a,r,i){T=this._truncateToN(new x(T,16)),r=this.keyFromPublic(r,i);var c=(a=new w(a,"hex")).r,f=a.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0||f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;var ee,p=f.invm(this.n),v=p.mul(T).umod(this.n),L=p.mul(c).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(v,r.getPublic(),L)).isInfinity()&&ee.eqXToP(c):!(ee=this.g.mulAdd(v,r.getPublic(),L)).isInfinity()&&0===ee.getX().umod(this.n).cmp(c)},k.prototype.recoverPubKey=function(I,T,a,r){g((3&a)===a,"The recovery param is more than two bits"),T=new w(T,r);var i=this.n,c=new x(I),f=T.r,p=T.s,v=1&a,L=a>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&L)throw new Error("Unable to find sencond key candinate");f=this.curve.pointFromX(L?f.add(this.curve.n):f,v);var ee=T.r.invm(i),oe=i.sub(c).mul(ee).umod(i),de=p.mul(ee).umod(i);return this.g.mulAdd(oe,f,de)},k.prototype.getKeyRecoveryParam=function(I,T,a,r){if(null!==(T=new w(T,r)).recoveryParam)return T.recoveryParam;for(var i=0;i<4;i++){var c;try{c=this.recoverPubKey(I,T,i)}catch{continue}if(c.eq(a))return i}throw new Error("Unable to find valid recovery factor")}},1259:(Me,re,G)=>{"use strict";var x=G(8538),j=G(1970).assert;function _(b,g){this.ec=b,this.priv=null,this.pub=null,g.priv&&this._importPrivate(g.priv,g.privEnc),g.pub&&this._importPublic(g.pub,g.pubEnc)}Me.exports=_,_.fromPublic=function(g,d,w){return d instanceof _?d:new _(g,{pub:d,pubEnc:w})},_.fromPrivate=function(g,d,w){return d instanceof _?d:new _(g,{priv:d,privEnc:w})},_.prototype.validate=function(){var g=this.getPublic();return g.isInfinity()?{result:!1,reason:"Invalid public key"}:g.validate()?g.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},_.prototype.getPublic=function(g,d){return"string"==typeof g&&(d=g,g=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,g):this.pub},_.prototype.getPrivate=function(g){return"hex"===g?this.priv.toString(16,2):this.priv},_.prototype._importPrivate=function(g,d){this.priv=new x(g,d||16),this.priv=this.priv.umod(this.ec.curve.n)},_.prototype._importPublic=function(g,d){if(g.x||g.y)return"mont"===this.ec.curve.type?j(g.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&j(g.x&&g.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(g.x,g.y));this.pub=this.ec.curve.decodePoint(g,d)},_.prototype.derive=function(g){return g.validate()||j(g.validate(),"public point not validated"),g.mul(this.priv).getX()},_.prototype.sign=function(g,d,w){return this.ec.sign(g,this,d,w)},_.prototype.verify=function(g,d){return this.ec.verify(g,d,this)},_.prototype.inspect=function(){return""}},5957:(Me,re,G)=>{"use strict";var x=G(8538),S=G(1970),j=S.assert;function _(k,I){if(k instanceof _)return k;this._importDER(k,I)||(j(k.r&&k.s,"Signature without r or s"),this.r=new x(k.r,16),this.s=new x(k.s,16),this.recoveryParam=void 0===k.recoveryParam?null:k.recoveryParam)}function b(){this.place=0}function g(k,I){var T=k[I.place++];if(!(128&T))return T;var a=15&T;if(0===a||a>4)return!1;for(var r=0,i=0,c=I.place;i>>=0;return!(r<=127)&&(I.place=c,r)}function d(k){for(var I=0,T=k.length-1;!k[I]&&!(128&k[I+1])&&I>>3);for(k.push(128|T);--T;)k.push(I>>>(T<<3)&255);k.push(I)}}Me.exports=_,_.prototype._importDER=function(I,T){I=S.toArray(I,T);var a=new b;if(48!==I[a.place++])return!1;var r=g(I,a);if(!1===r||r+a.place!==I.length||2!==I[a.place++])return!1;var i=g(I,a);if(!1===i)return!1;var c=I.slice(a.place,i+a.place);if(a.place+=i,2!==I[a.place++])return!1;var f=g(I,a);if(!1===f||I.length!==f+a.place)return!1;var p=I.slice(a.place,f+a.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===p[0]){if(!(128&p[1]))return!1;p=p.slice(1)}return this.r=new x(c),this.s=new x(p),this.recoveryParam=null,!0},_.prototype.toDER=function(I){var T=this.r.toArray(),a=this.s.toArray();for(128&T[0]&&(T=[0].concat(T)),128&a[0]&&(a=[0].concat(a)),T=d(T),a=d(a);!(a[0]||128&a[1]);)a=a.slice(1);var r=[2];w(r,T.length),(r=r.concat(T)).push(2),w(r,a.length);var i=r.concat(a),c=[48];return w(c,i.length),c=c.concat(i),S.encode(c,I)}},1885:(Me,re,G)=>{"use strict";var x=G(7084),S=G(2916),j=G(1970),_=j.assert,b=j.parseBytes,g=G(7535),d=G(8241);function w(k){if(_("ed25519"===k,"only tested with ed25519 so far"),!(this instanceof w))return new w(k);this.curve=k=S[k].curve,this.g=k.g,this.g.precompute(k.n.bitLength()+1),this.pointClass=k.point().constructor,this.encodingLength=Math.ceil(k.n.bitLength()/8),this.hash=x.sha512}Me.exports=w,w.prototype.sign=function(I,T){I=b(I);var a=this.keyFromSecret(T),r=this.hashInt(a.messagePrefix(),I),i=this.g.mul(r),c=this.encodePoint(i),f=this.hashInt(c,a.pubBytes(),I).mul(a.priv()),p=r.add(f).umod(this.curve.n);return this.makeSignature({R:i,S:p,Rencoded:c})},w.prototype.verify=function(I,T,a){I=b(I),T=this.makeSignature(T);var r=this.keyFromPublic(a),i=this.hashInt(T.Rencoded(),r.pubBytes(),I),c=this.g.mul(T.S());return T.R().add(r.pub().mul(i)).eq(c)},w.prototype.hashInt=function(){for(var I=this.hash(),T=0;T{"use strict";var x=G(1970),S=x.assert,j=x.parseBytes,_=x.cachedProperty;function b(g,d){this.eddsa=g,this._secret=j(d.secret),g.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=j(d.pub)}b.fromPublic=function(d,w){return w instanceof b?w:new b(d,{pub:w})},b.fromSecret=function(d,w){return w instanceof b?w:new b(d,{secret:w})},b.prototype.secret=function(){return this._secret},_(b,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),_(b,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),_(b,"privBytes",function(){var d=this.eddsa,w=this.hash(),k=d.encodingLength-1,I=w.slice(0,d.encodingLength);return I[0]&=248,I[k]&=127,I[k]|=64,I}),_(b,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),_(b,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),_(b,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),b.prototype.sign=function(d){return S(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},b.prototype.verify=function(d,w){return this.eddsa.verify(d,w,this)},b.prototype.getSecret=function(d){return S(this._secret,"KeyPair is public only"),x.encode(this.secret(),d)},b.prototype.getPublic=function(d){return x.encode(this.pubBytes(),d)},Me.exports=b},8241:(Me,re,G)=>{"use strict";var x=G(8538),S=G(1970),j=S.assert,_=S.cachedProperty,b=S.parseBytes;function g(d,w){this.eddsa=d,"object"!=typeof w&&(w=b(w)),Array.isArray(w)&&(w={R:w.slice(0,d.encodingLength),S:w.slice(d.encodingLength)}),j(w.R&&w.S,"Signature without R or S"),d.isPoint(w.R)&&(this._R=w.R),w.S instanceof x&&(this._S=w.S),this._Rencoded=Array.isArray(w.R)?w.R:w.Rencoded,this._Sencoded=Array.isArray(w.S)?w.S:w.Sencoded}_(g,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),_(g,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),_(g,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),_(g,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),g.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},g.prototype.toHex=function(){return S.encode(this.toBytes(),"hex").toUpperCase()},Me.exports=g},5207:Me=>{Me.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(Me,re,G)=>{"use strict";var x=re,S=G(8538),j=G(2391),_=G(8195);x.assert=j,x.toArray=_.toArray,x.zero2=_.zero2,x.toHex=_.toHex,x.encode=_.encode,x.getNAF=function b(I,T,a){var r=new Array(Math.max(I.bitLength(),a)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-v:v):p=0,r[f]=p,c.iushrn(1)}return r},x.getJSF=function g(I,T){var a=[[],[]];I=I.clone(),T=T.clone();for(var c,r=0,i=0;I.cmpn(-r)>0||T.cmpn(-i)>0;){var v,L,f=I.andln(3)+r&3,p=T.andln(3)+i&3;3===f&&(f=-1),3===p&&(p=-1),v=1&f?3!=(c=I.andln(7)+r&7)&&5!==c||2!==p?f:-f:0,a[0].push(v),L=1&p?3!=(c=T.andln(7)+i&7)&&5!==c||2!==f?p:-p:0,a[1].push(L),2*r===v+1&&(r=1-r),2*i===L+1&&(i=1-i),I.iushrn(1),T.iushrn(1)}return a},x.cachedProperty=function d(I,T,a){var r="_"+T;I.prototype[T]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}},x.parseBytes=function w(I){return"string"==typeof I?x.toArray(I,"hex"):I},x.intFromLE=function k(I){return new S(I,"hex","le")}},7084:(Me,re,G)=>{var x=re;x.utils=G(9299),x.common=G(3800),x.sha=G(4962),x.ripemd=G(9458),x.hmac=G(2194),x.sha1=x.sha.sha1,x.sha256=x.sha.sha256,x.sha224=x.sha.sha224,x.sha384=x.sha.sha384,x.sha512=x.sha.sha512,x.ripemd160=x.ripemd.ripemd160},3800:(Me,re,G)=>{"use strict";var x=G(9299),S=G(2391);function j(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}re.BlockHash=j,j.prototype.update=function(b,g){if(b=x.toArray(b,g),this.pending=this.pending?this.pending.concat(b):b,this.pendingTotal+=b.length,this.pending.length>=this._delta8){var d=(b=this.pending).length%this._delta8;this.pending=b.slice(b.length-d,b.length),0===this.pending.length&&(this.pending=null),b=x.join32(b,0,b.length-d,this.endian);for(var w=0;w>>24&255,w[k++]=b>>>16&255,w[k++]=b>>>8&255,w[k++]=255&b}else for(w[k++]=255&b,w[k++]=b>>>8&255,w[k++]=b>>>16&255,w[k++]=b>>>24&255,w[k++]=0,w[k++]=0,w[k++]=0,w[k++]=0,I=8;I{"use strict";var x=G(9299),S=G(2391);function j(_,b,g){if(!(this instanceof j))return new j(_,b,g);this.Hash=_,this.blockSize=_.blockSize/8,this.outSize=_.outSize/8,this.inner=null,this.outer=null,this._init(x.toArray(b,g))}Me.exports=j,j.prototype._init=function(b){b.length>this.blockSize&&(b=(new this.Hash).update(b).digest()),S(b.length<=this.blockSize);for(var g=b.length;g{"use strict";var x=G(9299),S=G(3800),j=x.rotl32,_=x.sum32,b=x.sum32_3,g=x.sum32_4,d=S.BlockHash;function w(){if(!(this instanceof w))return new w;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function k(f,p,v,L){return f<=15?p^v^L:f<=31?p&v|~p&L:f<=47?(p|~v)^L:f<=63?p&L|v&~L:p^(v|~L)}function T(f){return f<=15?1352829926:f<=31?1548603684:f<=47?1836072691:f<=63?2053994217:0}x.inherits(w,d),re.ripemd160=w,w.blockSize=512,w.outSize=160,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(p,v){for(var L=this.h[0],ee=this.h[1],oe=this.h[2],de=this.h[3],he=this.h[4],be=L,Ae=ee,J=oe,$=de,C=he,E=0;E<80;E++){var N=_(j(g(L,k(E,ee,oe,de),p[a[E]+v],(f=E)<=15?0:f<=31?1518500249:f<=47?1859775393:f<=63?2400959708:2840853838),i[E]),he);L=he,he=de,de=j(oe,10),oe=ee,ee=N,N=_(j(g(be,k(79-E,Ae,J,$),p[r[E]+v],T(E)),c[E]),C),be=C,C=$,$=j(J,10),J=Ae,Ae=N}var f;N=b(this.h[1],oe,$),this.h[1]=b(this.h[2],de,C),this.h[2]=b(this.h[3],he,be),this.h[3]=b(this.h[4],L,Ae),this.h[4]=b(this.h[0],ee,J),this.h[0]=N},w.prototype._digest=function(p){return"hex"===p?x.toHex32(this.h,"little"):x.split32(this.h,"little")};var a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],r=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],i=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(Me,re,G)=>{"use strict";re.sha1=G(9007),re.sha224=G(55),re.sha256=G(9342),re.sha384=G(8634),re.sha512=G(39)},9007:(Me,re,G)=>{"use strict";var x=G(9299),S=G(3800),j=G(3113),_=x.rotl32,b=x.sum32,g=x.sum32_5,d=j.ft_1,w=S.BlockHash,k=[1518500249,1859775393,2400959708,3395469782];function I(){if(!(this instanceof I))return new I;w.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}x.inherits(I,w),Me.exports=I,I.blockSize=512,I.outSize=160,I.hmacStrength=80,I.padLength=64,I.prototype._update=function(a,r){for(var i=this.W,c=0;c<16;c++)i[c]=a[r+c];for(;c{"use strict";var x=G(9299),S=G(9342);function j(){if(!(this instanceof j))return new j;S.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}x.inherits(j,S),Me.exports=j,j.blockSize=512,j.outSize=224,j.hmacStrength=192,j.padLength=64,j.prototype._digest=function(b){return"hex"===b?x.toHex32(this.h.slice(0,7),"big"):x.split32(this.h.slice(0,7),"big")}},9342:(Me,re,G)=>{"use strict";var x=G(9299),S=G(3800),j=G(3113),_=G(2391),b=x.sum32,g=x.sum32_4,d=x.sum32_5,w=j.ch32,k=j.maj32,I=j.s0_256,T=j.s1_256,a=j.g0_256,r=j.g1_256,i=S.BlockHash,c=[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];function f(){if(!(this instanceof f))return new f;i.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=c,this.W=new Array(64)}x.inherits(f,i),Me.exports=f,f.blockSize=512,f.outSize=256,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(v,L){for(var ee=this.W,oe=0;oe<16;oe++)ee[oe]=v[L+oe];for(;oe{"use strict";var x=G(9299),S=G(39);function j(){if(!(this instanceof j))return new j;S.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}x.inherits(j,S),Me.exports=j,j.blockSize=1024,j.outSize=384,j.hmacStrength=192,j.padLength=128,j.prototype._digest=function(b){return"hex"===b?x.toHex32(this.h.slice(0,12),"big"):x.split32(this.h.slice(0,12),"big")}},39:(Me,re,G)=>{"use strict";var x=G(9299),S=G(3800),j=G(2391),_=x.rotr64_hi,b=x.rotr64_lo,g=x.shr64_hi,d=x.shr64_lo,w=x.sum64,k=x.sum64_hi,I=x.sum64_lo,T=x.sum64_4_hi,a=x.sum64_4_lo,r=x.sum64_5_hi,i=x.sum64_5_lo,c=S.BlockHash,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function p(){if(!(this instanceof p))return new p;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=f,this.W=new Array(160)}function v(N,P,Q,Y,ne){var H=N&Q^~N≠return H<0&&(H+=4294967296),H}function L(N,P,Q,Y,ne,H){var M=P&Y^~P&H;return M<0&&(M+=4294967296),M}function ee(N,P,Q,Y,ne){var H=N&Q^N&ne^Q≠return H<0&&(H+=4294967296),H}function oe(N,P,Q,Y,ne,H){var M=P&Y^P&H^Y&H;return M<0&&(M+=4294967296),M}function de(N,P){var H=_(N,P,28)^_(P,N,2)^_(P,N,7);return H<0&&(H+=4294967296),H}function he(N,P){var H=b(N,P,28)^b(P,N,2)^b(P,N,7);return H<0&&(H+=4294967296),H}function be(N,P){var H=_(N,P,14)^_(N,P,18)^_(P,N,9);return H<0&&(H+=4294967296),H}function Ae(N,P){var H=b(N,P,14)^b(N,P,18)^b(P,N,9);return H<0&&(H+=4294967296),H}function J(N,P){var H=_(N,P,1)^_(N,P,8)^g(N,P,7);return H<0&&(H+=4294967296),H}function $(N,P){var H=b(N,P,1)^b(N,P,8)^d(N,P,7);return H<0&&(H+=4294967296),H}function C(N,P){var H=_(N,P,19)^_(P,N,29)^g(N,P,6);return H<0&&(H+=4294967296),H}function E(N,P){var H=b(N,P,19)^b(P,N,29)^d(N,P,6);return H<0&&(H+=4294967296),H}x.inherits(p,c),Me.exports=p,p.blockSize=1024,p.outSize=512,p.hmacStrength=192,p.padLength=128,p.prototype._prepareBlock=function(P,Q){for(var Y=this.W,ne=0;ne<32;ne++)Y[ne]=P[Q+ne];for(;ne{"use strict";var S=G(9299).rotr32;function _(T,a,r){return T&a^~T&r}function b(T,a,r){return T&a^T&r^a&r}function g(T,a,r){return T^a^r}re.ft_1=function j(T,a,r,i){return 0===T?_(a,r,i):1===T||3===T?g(a,r,i):2===T?b(a,r,i):void 0},re.ch32=_,re.maj32=b,re.p32=g,re.s0_256=function d(T){return S(T,2)^S(T,13)^S(T,22)},re.s1_256=function w(T){return S(T,6)^S(T,11)^S(T,25)},re.g0_256=function k(T){return S(T,7)^S(T,18)^T>>>3},re.g1_256=function I(T){return S(T,17)^S(T,19)^T>>>10}},9299:(Me,re,G)=>{"use strict";var x=G(2391),S=G(3894);function j(E,N){return!(55296!=(64512&E.charCodeAt(N))||N<0||N+1>=E.length)&&56320==(64512&E.charCodeAt(N+1))}function g(E){return(E>>>24|E>>>8&65280|E<<8&16711680|(255&E)<<24)>>>0}function w(E){return 1===E.length?"0"+E:E}function k(E){return 7===E.length?"0"+E:6===E.length?"00"+E:5===E.length?"000"+E:4===E.length?"0000"+E:3===E.length?"00000"+E:2===E.length?"000000"+E:1===E.length?"0000000"+E:E}re.inherits=S,re.toArray=function _(E,N){if(Array.isArray(E))return E.slice();if(!E)return[];var P=[];if("string"==typeof E)if(N){if("hex"===N)for((E=E.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(E="0"+E),Y=0;Y>6|192,P[Q++]=63&ne|128):j(E,Y)?(ne=65536+((1023&ne)<<10)+(1023&E.charCodeAt(++Y)),P[Q++]=ne>>18|240,P[Q++]=ne>>12&63|128,P[Q++]=ne>>6&63|128,P[Q++]=63&ne|128):(P[Q++]=ne>>12|224,P[Q++]=ne>>6&63|128,P[Q++]=63&ne|128)}else for(Y=0;Y>>0;return ne},re.split32=function T(E,N){for(var P=new Array(4*E.length),Q=0,Y=0;Q>>24,P[Y+1]=ne>>>16&255,P[Y+2]=ne>>>8&255,P[Y+3]=255&ne):(P[Y+3]=ne>>>24,P[Y+2]=ne>>>16&255,P[Y+1]=ne>>>8&255,P[Y]=255&ne)}return P},re.rotr32=function a(E,N){return E>>>N|E<<32-N},re.rotl32=function r(E,N){return E<>>32-N},re.sum32=function i(E,N){return E+N>>>0},re.sum32_3=function c(E,N,P){return E+N+P>>>0},re.sum32_4=function f(E,N,P,Q){return E+N+P+Q>>>0},re.sum32_5=function p(E,N,P,Q,Y){return E+N+P+Q+Y>>>0},re.sum64=function v(E,N,P,Q){var H=Q+E[N+1]>>>0;E[N]=(H>>0,E[N+1]=H},re.sum64_hi=function L(E,N,P,Q){return(N+Q>>>0>>0},re.sum64_lo=function ee(E,N,P,Q){return N+Q>>>0},re.sum64_4_hi=function oe(E,N,P,Q,Y,ne,H,M){var z=0,Ie=N;return z+=(Ie=Ie+Q>>>0)>>0)>>0)>>0},re.sum64_4_lo=function de(E,N,P,Q,Y,ne,H,M){return N+Q+ne+M>>>0},re.sum64_5_hi=function he(E,N,P,Q,Y,ne,H,M,z,Ie){var fe=0,Xe=N;return fe+=(Xe=Xe+Q>>>0)>>0)>>0)>>0)>>0},re.sum64_5_lo=function be(E,N,P,Q,Y,ne,H,M,z,Ie){return N+Q+ne+M+Ie>>>0},re.rotr64_hi=function Ae(E,N,P){return(N<<32-P|E>>>P)>>>0},re.rotr64_lo=function J(E,N,P){return(E<<32-P|N>>>P)>>>0},re.shr64_hi=function $(E,N,P){return E>>>P},re.shr64_lo=function C(E,N,P){return(E<<32-P|N>>>P)>>>0}},2438:(Me,re,G)=>{"use strict";var x=G(7084),S=G(8195),j=G(2391);function _(b){if(!(this instanceof _))return new _(b);this.hash=b.hash,this.predResist=!!b.predResist,this.outLen=this.hash.outSize,this.minEntropy=b.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var g=S.toArray(b.entropy,b.entropyEnc||"hex"),d=S.toArray(b.nonce,b.nonceEnc||"hex"),w=S.toArray(b.pers,b.persEnc||"hex");j(g.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(g,d,w)}Me.exports=_,_.prototype._init=function(g,d,w){var k=g.concat(d).concat(w);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var I=0;I=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(g.concat(w||[])),this._reseed=1},_.prototype.generate=function(g,d,w,k){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(k=w,w=d,d=null),w&&(w=S.toArray(w,k||"hex"),this._update(w));for(var I=[];I.length{re.read=function(G,x,S,j,_){var b,g,d=8*_-j-1,w=(1<>1,I=-7,T=S?_-1:0,a=S?-1:1,r=G[x+T];for(T+=a,b=r&(1<<-I)-1,r>>=-I,I+=d;I>0;b=256*b+G[x+T],T+=a,I-=8);for(g=b&(1<<-I)-1,b>>=-I,I+=j;I>0;g=256*g+G[x+T],T+=a,I-=8);if(0===b)b=1-k;else{if(b===w)return g?NaN:1/0*(r?-1:1);g+=Math.pow(2,j),b-=k}return(r?-1:1)*g*Math.pow(2,b-j)},re.write=function(G,x,S,j,_,b){var g,d,w,k=8*b-_-1,I=(1<>1,a=23===_?Math.pow(2,-24)-Math.pow(2,-77):0,r=j?0:b-1,i=j?1:-1,c=x<0||0===x&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(d=isNaN(x)?1:0,g=I):(g=Math.floor(Math.log(x)/Math.LN2),x*(w=Math.pow(2,-g))<1&&(g--,w*=2),(x+=g+T>=1?a/w:a*Math.pow(2,1-T))*w>=2&&(g++,w/=2),g+T>=I?(d=0,g=I):g+T>=1?(d=(x*w-1)*Math.pow(2,_),g+=T):(d=x*Math.pow(2,T-1)*Math.pow(2,_),g=0));_>=8;G[S+r]=255&d,r+=i,d/=256,_-=8);for(g=g<<_|d,k+=_;k>0;G[S+r]=255&g,r+=i,g/=256,k-=8);G[S+r-i]|=128*c}},3894:Me=>{Me.exports="function"==typeof Object.create?function(G,x){x&&(G.super_=x,G.prototype=Object.create(x.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}))}:function(G,x){if(x){G.super_=x;var S=function(){};S.prototype=x.prototype,G.prototype=new S,G.prototype.constructor=G}}},2346:(Me,re)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.loop=re.conditional=re.parse=void 0,re.parse=function j(_,b){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g;if(Array.isArray(b))b.forEach(function(k){return j(_,k,g,d)});else if("function"==typeof b)b(_,g,d,j);else{var w=Object.keys(b)[0];Array.isArray(b[w])?(d[w]={},j(_,b[w],g,d[w])):d[w]=b[w](_,g,d,j)}return g},re.conditional=function(_,b){return function(g,d,w,k){b(g,d,w)&&k(g,_,d,w)}},re.loop=function(_,b){return function(g,d,w,k){for(var I=[],T=g.pos;b(g,d,w);){var a={};if(k(g,_,d,a),g.pos===T)break;T=g.pos,I.push(a)}return I}}},2626:(Me,re)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.readBits=re.readArray=re.readUnsigned=re.readString=re.peekBytes=re.readBytes=re.peekByte=re.readByte=re.buildStream=void 0,re.buildStream=function(T){return{data:T,pos:0}};re.readByte=function(){return function(T){return T.data[T.pos++]}},re.peekByte=function(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(a){return a.data[a.pos+T]}};var j=function(T){return function(a){return a.data.subarray(a.pos,a.pos+=T)}};re.readBytes=j,re.peekBytes=function(T){return function(a){return a.data.subarray(a.pos,a.pos+T)}},re.readString=function(T){return function(a){return Array.from(j(T)(a)).map(function(r){return String.fromCharCode(r)}).join("")}},re.readUnsigned=function(T){return function(a){var r=j(2)(a);return T?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}},re.readArray=function(T,a){return function(r,i,c){for(var f="function"==typeof a?a(r,i,c):a,p=j(T),v=new Array(f),L=0;L{"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.default=void 0;var x=G(2346),S=G(2626),j={blocks:function(a){for(var i=[],c=a.data.length,f=0,p=(0,S.readByte)()(a);0!==p&&p;p=(0,S.readByte)()(a)){if(a.pos+p>=c){var v=c-a.pos;i.push((0,S.readBytes)(v)(a)),f+=v;break}i.push((0,S.readBytes)(p)(a)),f+=p}for(var L=new Uint8Array(f),ee=0,oe=0;oe=this.context.filterLevel.value},trace:function(){this.invoke(_.TRACE,arguments)},debug:function(){this.invoke(_.DEBUG,arguments)},info:function(){this.invoke(_.INFO,arguments)},warn:function(){this.invoke(_.WARN,arguments)},error:function(){this.invoke(_.ERROR,arguments)},time:function(a){"string"==typeof a&&a.length>0&&this.invoke(_.TIME,[a,"start"])},timeEnd:function(a){"string"==typeof a&&a.length>0&&this.invoke(_.TIME,[a,"end"])},invoke:function(a,r){b&&this.enabledFor(a)&&b(r,w({level:a},this.context))}};var a,T=new I({filterLevel:_.OFF});(a=_).enabledFor=d(T,T.enabledFor),a.trace=d(T,T.trace),a.debug=d(T,T.debug),a.time=d(T,T.time),a.timeEnd=d(T,T.timeEnd),a.info=d(T,T.info),a.warn=d(T,T.warn),a.error=d(T,T.error),a.log=a.info,_.setHandler=function(a){b=a},_.setLevel=function(a){for(var r in T.setLevel(a),g)g.hasOwnProperty(r)&&g[r].setLevel(a)},_.getLevel=function(){return T.getLevel()},_.get=function(a){return g[a]||(g[a]=new I(w({name:a},T.context)))},_.createDefaultHandler=function(a){(a=a||{}).formatter=a.formatter||function(f,p){p.name&&f.unshift("["+p.name+"]")};var r={},i=function(c,f){Function.prototype.apply.call(c,console,f)};return typeof console>"u"?function(){}:function(c,f){c=Array.prototype.slice.call(c);var v,p=console.log;f.level===_.TIME?(v=(f.name?"["+f.name+"] ":"")+c[0],"start"===c[1]?console.time?console.time(v):r[v]=(new Date).getTime():console.timeEnd?console.timeEnd(v):i(p,[v+": "+((new Date).getTime()-r[v])+"ms"])):(f.level===_.WARN&&console.warn?p=console.warn:f.level===_.ERROR&&console.error?p=console.error:f.level===_.INFO&&console.info?p=console.info:f.level===_.DEBUG&&console.debug?p=console.debug:f.level===_.TRACE&&console.trace&&(p=console.trace),a.formatter(c,f),i(p,c))}},_.useDefaults=function(a){_.setLevel(a&&a.defaultLevel||_.DEBUG),_.setHandler(_.createDefaultHandler(a))},_.setDefaults=_.useDefaults,void 0!==(S="function"==typeof(x=_)?x.call(re,G,re,Me):x)&&(Me.exports=S)}()},7658:Me=>{Me.exports=G;var re=null;try{re=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function G(Ae,J,$){this.low=0|Ae,this.high=0|J,this.unsigned=!!$}function x(Ae){return!0===(Ae&&Ae.__isLong__)}Object.defineProperty(G.prototype,"__isLong__",{value:!0}),G.isLong=x;var S={},j={};function _(Ae,J){var $,C,E;return J?(E=0<=(Ae>>>=0)&&Ae<256)&&(C=j[Ae])?C:($=g(Ae,(0|Ae)<0?-1:0,!0),E&&(j[Ae]=$),$):(E=-128<=(Ae|=0)&&Ae<128)&&(C=S[Ae])?C:($=g(Ae,Ae<0?-1:0,!1),E&&(S[Ae]=$),$)}function b(Ae,J){if(isNaN(Ae))return J?p:f;if(J){if(Ae<0)return p;if(Ae>=r)return de}else{if(Ae<=-i)return he;if(Ae+1>=i)return oe}return Ae<0?b(-Ae,J).neg():g(Ae%a|0,Ae/a|0,J)}function g(Ae,J,$){return new G(Ae,J,$)}G.fromInt=_,G.fromNumber=b,G.fromBits=g;var d=Math.pow;function w(Ae,J,$){if(0===Ae.length)throw Error("empty string");if("NaN"===Ae||"Infinity"===Ae||"+Infinity"===Ae||"-Infinity"===Ae)return f;if("number"==typeof J?($=J,J=!1):J=!!J,($=$||10)<2||36<$)throw RangeError("radix");var C;if((C=Ae.indexOf("-"))>0)throw Error("interior hyphen");if(0===C)return w(Ae.substring(1),J,$).neg();for(var E=b(d($,8)),N=f,P=0;P>>0:this.low},be.toNumber=function(){return this.unsigned?(this.high>>>0)*a+(this.low>>>0):this.high*a+(this.low>>>0)},be.toString=function(J){if((J=J||10)<2||36>>0).toString(J);if((P=Y).isZero())return H+Q;for(;H.length<6;)H="0"+H;Q=""+H+Q}},be.getHighBits=function(){return this.high},be.getHighBitsUnsigned=function(){return this.high>>>0},be.getLowBits=function(){return this.low},be.getLowBitsUnsigned=function(){return this.low>>>0},be.getNumBitsAbs=function(){if(this.isNegative())return this.eq(he)?64:this.neg().getNumBitsAbs();for(var J=0!=this.high?this.high:this.low,$=31;$>0&&!(J&1<<$);$--);return 0!=this.high?$+33:$+1},be.isZero=function(){return 0===this.high&&0===this.low},be.eqz=be.isZero,be.isNegative=function(){return!this.unsigned&&this.high<0},be.isPositive=function(){return this.unsigned||this.high>=0},be.isOdd=function(){return 1==(1&this.low)},be.isEven=function(){return 0==(1&this.low)},be.equals=function(J){return x(J)||(J=k(J)),(this.unsigned===J.unsigned||this.high>>>31!=1||J.high>>>31!=1)&&this.high===J.high&&this.low===J.low},be.eq=be.equals,be.notEquals=function(J){return!this.eq(J)},be.neq=be.notEquals,be.ne=be.notEquals,be.lessThan=function(J){return this.comp(J)<0},be.lt=be.lessThan,be.lessThanOrEqual=function(J){return this.comp(J)<=0},be.lte=be.lessThanOrEqual,be.le=be.lessThanOrEqual,be.greaterThan=function(J){return this.comp(J)>0},be.gt=be.greaterThan,be.greaterThanOrEqual=function(J){return this.comp(J)>=0},be.gte=be.greaterThanOrEqual,be.ge=be.greaterThanOrEqual,be.compare=function(J){if(x(J)||(J=k(J)),this.eq(J))return 0;var $=this.isNegative(),C=J.isNegative();return $&&!C?-1:!$&&C?1:this.unsigned?J.high>>>0>this.high>>>0||J.high===this.high&&J.low>>>0>this.low>>>0?-1:1:this.sub(J).isNegative()?-1:1},be.comp=be.compare,be.negate=function(){return!this.unsigned&&this.eq(he)?he:this.not().add(v)},be.neg=be.negate,be.add=function(J){x(J)||(J=k(J));var H=0,M=0,z=0,Ie=0;return z+=(Ie+=(65535&this.low)+(65535&J.low))>>>16,M+=(z+=(this.low>>>16)+(J.low>>>16))>>>16,H+=(M+=(65535&this.high)+(65535&J.high))>>>16,H+=(this.high>>>16)+(J.high>>>16),g((z&=65535)<<16|(Ie&=65535),(H&=65535)<<16|(M&=65535),this.unsigned)},be.subtract=function(J){return x(J)||(J=k(J)),this.add(J.neg())},be.sub=be.subtract,be.multiply=function(J){if(this.isZero())return f;if(x(J)||(J=k(J)),re)return g(re.mul(this.low,this.high,J.low,J.high),re.get_high(),this.unsigned);if(J.isZero())return f;if(this.eq(he))return J.isOdd()?he:f;if(J.eq(he))return this.isOdd()?he:f;if(this.isNegative())return J.isNegative()?this.neg().mul(J.neg()):this.neg().mul(J).neg();if(J.isNegative())return this.mul(J.neg()).neg();if(this.lt(c)&&J.lt(c))return b(this.toNumber()*J.toNumber(),this.unsigned);var E=65535&this.high,N=this.low>>>16,P=65535&this.low,Y=65535&J.high,ne=J.low>>>16,H=65535&J.low,M=0,z=0,Ie=0,fe=0;return Ie+=(fe+=P*H)>>>16,z+=(Ie+=N*H)>>>16,Ie&=65535,z+=(Ie+=P*ne)>>>16,M+=(z+=E*H)>>>16,z&=65535,M+=(z+=N*ne)>>>16,z&=65535,M+=(z+=P*Y)>>>16,M+=(this.high>>>16)*H+E*ne+N*Y+P*(J.high>>>16),g((Ie&=65535)<<16|(fe&=65535),(M&=65535)<<16|(z&=65535),this.unsigned)},be.mul=be.multiply,be.divide=function(J){if(x(J)||(J=k(J)),J.isZero())throw Error("division by zero");var C,E,N;if(re)return this.unsigned||-2147483648!==this.high||-1!==J.low||-1!==J.high?g((this.unsigned?re.div_u:re.div_s)(this.low,this.high,J.low,J.high),re.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?p:f;if(this.unsigned){if(J.unsigned||(J=J.toUnsigned()),J.gt(this))return p;if(J.gt(this.shru(1)))return L;N=p}else{if(this.eq(he))return J.eq(v)||J.eq(ee)?he:J.eq(he)?v:(C=this.shr(1).div(J).shl(1)).eq(f)?J.isNegative()?v:ee:(E=this.sub(J.mul(C)),N=C.add(E.div(J)));if(J.eq(he))return this.unsigned?p:f;if(this.isNegative())return J.isNegative()?this.neg().div(J.neg()):this.neg().div(J).neg();if(J.isNegative())return this.div(J.neg()).neg();N=f}for(E=this;E.gte(J);){C=Math.max(1,Math.floor(E.toNumber()/J.toNumber()));for(var Q=Math.ceil(Math.log(C)/Math.LN2),Y=Q<=48?1:d(2,Q-48),ne=b(C),H=ne.mul(J);H.isNegative()||H.gt(E);)H=(ne=b(C-=Y,this.unsigned)).mul(J);ne.isZero()&&(ne=v),N=N.add(ne),E=E.sub(H)}return N},be.div=be.divide,be.modulo=function(J){return x(J)||(J=k(J)),re?g((this.unsigned?re.rem_u:re.rem_s)(this.low,this.high,J.low,J.high),re.get_high(),this.unsigned):this.sub(this.div(J).mul(J))},be.mod=be.modulo,be.rem=be.modulo,be.not=function(){return g(~this.low,~this.high,this.unsigned)},be.and=function(J){return x(J)||(J=k(J)),g(this.low&J.low,this.high&J.high,this.unsigned)},be.or=function(J){return x(J)||(J=k(J)),g(this.low|J.low,this.high|J.high,this.unsigned)},be.xor=function(J){return x(J)||(J=k(J)),g(this.low^J.low,this.high^J.high,this.unsigned)},be.shiftLeft=function(J){return x(J)&&(J=J.toInt()),0==(J&=63)?this:J<32?g(this.low<>>32-J,this.unsigned):g(0,this.low<>>J|this.high<<32-J,this.high>>J,this.unsigned):g(this.high>>J-32,this.high>=0?0:-1,this.unsigned)},be.shr=be.shiftRight,be.shiftRightUnsigned=function(J){if(x(J)&&(J=J.toInt()),0==(J&=63))return this;var $=this.high;return J<32?g(this.low>>>J|$<<32-J,$>>>J,this.unsigned):g(32===J?$:$>>>J-32,0,this.unsigned)},be.shru=be.shiftRightUnsigned,be.shr_u=be.shiftRightUnsigned,be.toSigned=function(){return this.unsigned?g(this.low,this.high,!1):this},be.toUnsigned=function(){return this.unsigned?this:g(this.low,this.high,!0)},be.toBytes=function(J){return J?this.toBytesLE():this.toBytesBE()},be.toBytesLE=function(){var J=this.high,$=this.low;return[255&$,$>>>8&255,$>>>16&255,$>>>24,255&J,J>>>8&255,J>>>16&255,J>>>24]},be.toBytesBE=function(){var J=this.high,$=this.low;return[J>>>24,J>>>16&255,J>>>8&255,255&J,$>>>24,$>>>16&255,$>>>8&255,255&$]},G.fromBytes=function(J,$,C){return C?G.fromBytesLE(J,$):G.fromBytesBE(J,$)},G.fromBytesLE=function(J,$){return new G(J[0]|J[1]<<8|J[2]<<16|J[3]<<24,J[4]|J[5]<<8|J[6]<<16|J[7]<<24,$)},G.fromBytesBE=function(J,$){return new G(J[4]<<24|J[5]<<16|J[6]<<8|J[7],J[0]<<24|J[1]<<16|J[2]<<8|J[3],$)}},2391:Me=>{function re(G,x){if(!G)throw new Error(x||"Assertion failed")}Me.exports=re,re.equal=function(x,S,j){if(x!=S)throw new Error(j||"Assertion failed: "+x+" != "+S)}},8195:(Me,re)=>{"use strict";var G=re;function S(_){return 1===_.length?"0"+_:_}function j(_){for(var b="",g=0;g<_.length;g++)b+=S(_[g].toString(16));return b}G.toArray=function x(_,b){if(Array.isArray(_))return _.slice();if(!_)return[];var g=[];if("string"!=typeof _){for(var d=0;d<_.length;d++)g[d]=0|_[d];return g}if("hex"===b)for((_=_.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(_="0"+_),d=0;d<_.length;d+=2)g.push(parseInt(_[d]+_[d+1],16));else for(d=0;d<_.length;d++){var w=_.charCodeAt(d),k=w>>8,I=255&w;k?g.push(k,I):g.push(I)}return g},G.zero2=S,G.toHex=j,G.encode=function(b,g){return"hex"===g?j(b):b}},5884:(Me,re,G)=>{"use strict";Me.exports=G(95)},95:(Me,re,G)=>{"use strict";var x=re;function S(){x.util._configure(),x.Writer._configure(x.BufferWriter),x.Reader._configure(x.BufferReader)}x.build="minimal",x.Writer=G(1650),x.BufferWriter=G(813),x.Reader=G(7270),x.BufferReader=G(4354),x.util=G(7211),x.rpc=G(7830),x.roots=G(6671),x.configure=S,S()},7270:(Me,re,G)=>{"use strict";Me.exports=g;var S,x=G(7211),j=x.LongBits,_=x.utf8;function b(a,r){return RangeError("index out of range: "+a.pos+" + "+(r||1)+" > "+a.len)}function g(a){this.buf=a,this.pos=0,this.len=a.length}var r,d=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new g(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new g(r);throw Error("illegal buffer")},w=function(){return x.Buffer?function(i){return(g.create=function(f){return x.Buffer.isBuffer(f)?new S(f):d(f)})(i)}:d};function k(){var a=new j(0,0),r=0;if(!(this.len-this.pos>4)){for(;r<3;++r){if(this.pos>=this.len)throw b(this);if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return a}return a.lo=(a.lo|(127&this.buf[this.pos++])<<7*r)>>>0,a}for(;r<4;++r)if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return a;if(a.lo=(a.lo|(127&this.buf[this.pos])<<28)>>>0,a.hi=(a.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return a;if(r=0,this.len-this.pos>4){for(;r<5;++r)if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return a}else for(;r<5;++r){if(this.pos>=this.len)throw b(this);if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return a}throw Error("invalid varint encoding")}function I(a,r){return(a[r-4]|a[r-3]<<8|a[r-2]<<16|a[r-1]<<24)>>>0}function T(){if(this.pos+8>this.len)throw b(this,8);return new j(I(this.buf,this.pos+=4),I(this.buf,this.pos+=4))}g.create=w(),g.prototype._slice=x.Array.prototype.subarray||x.Array.prototype.slice,g.prototype.uint32=(r=4294967295,function(){if(r=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(r=(r|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,b(this,10);return r}),g.prototype.int32=function(){return 0|this.uint32()},g.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(1&r)|0},g.prototype.bool=function(){return 0!==this.uint32()},g.prototype.fixed32=function(){if(this.pos+4>this.len)throw b(this,4);return I(this.buf,this.pos+=4)},g.prototype.sfixed32=function(){if(this.pos+4>this.len)throw b(this,4);return 0|I(this.buf,this.pos+=4)},g.prototype.float=function(){if(this.pos+4>this.len)throw b(this,4);var r=x.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r},g.prototype.double=function(){if(this.pos+8>this.len)throw b(this,4);var r=x.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r},g.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw b(this,r);return this.pos+=r,Array.isArray(this.buf)?this.buf.slice(i,c):i===c?new this.buf.constructor(0):this._slice.call(this.buf,i,c)},g.prototype.string=function(){var r=this.bytes();return _.read(r,0,r.length)},g.prototype.skip=function(r){if("number"==typeof r){if(this.pos+r>this.len)throw b(this,r);this.pos+=r}else do{if(this.pos>=this.len)throw b(this)}while(128&this.buf[this.pos++]);return this},g.prototype.skipType=function(a){switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(a=7&this.uint32());)this.skipType(a);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos)}return this},g._configure=function(a){S=a,g.create=w(),S._configure();var r=x.Long?"toLong":"toNumber";x.merge(g.prototype,{int64:function(){return k.call(this)[r](!1)},uint64:function(){return k.call(this)[r](!0)},sint64:function(){return k.call(this).zzDecode()[r](!1)},fixed64:function(){return T.call(this)[r](!0)},sfixed64:function(){return T.call(this)[r](!1)}})}},4354:(Me,re,G)=>{"use strict";Me.exports=j;var x=G(7270);(j.prototype=Object.create(x.prototype)).constructor=j;var S=G(7211);function j(_){x.call(this,_)}j._configure=function(){S.Buffer&&(j.prototype._slice=S.Buffer.prototype.slice)},j.prototype.string=function(){var b=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+b,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+b,this.len))},j._configure()},6671:Me=>{"use strict";Me.exports={}},7830:(Me,re,G)=>{"use strict";re.Service=G(6346)},6346:(Me,re,G)=>{"use strict";Me.exports=S;var x=G(7211);function S(j,_,b){if("function"!=typeof j)throw TypeError("rpcImpl must be a function");x.EventEmitter.call(this),this.rpcImpl=j,this.requestDelimited=Boolean(_),this.responseDelimited=Boolean(b)}(S.prototype=Object.create(x.EventEmitter.prototype)).constructor=S,S.prototype.rpcCall=function j(_,b,g,d,w){if(!d)throw TypeError("request must be specified");var k=this;if(!w)return x.asPromise(j,k,_,b,g,d);if(k.rpcImpl)try{return k.rpcImpl(_,b[k.requestDelimited?"encodeDelimited":"encode"](d).finish(),function(T,a){if(T)return k.emit("error",T,_),w(T);if(null!==a){if(!(a instanceof g))try{a=g[k.responseDelimited?"decodeDelimited":"decode"](a)}catch(r){return k.emit("error",r,_),w(r)}return k.emit("data",a,_),w(null,a)}k.end(!0)})}catch(I){return k.emit("error",I,_),void setTimeout(function(){w(I)},0)}else setTimeout(function(){w(Error("already ended"))},0)},S.prototype.end=function(_){return this.rpcImpl&&(_||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},942:(Me,re,G)=>{"use strict";Me.exports=S;var x=G(7211);function S(g,d){this.lo=g>>>0,this.hi=d>>>0}var j=S.zero=new S(0,0);j.toNumber=function(){return 0},j.zzEncode=j.zzDecode=function(){return this},j.length=function(){return 1};var _=S.zeroHash="\0\0\0\0\0\0\0\0";S.fromNumber=function(d){if(0===d)return j;var w=d<0;w&&(d=-d);var k=d>>>0,I=(d-k)/4294967296>>>0;return w&&(I=~I>>>0,k=~k>>>0,++k>4294967295&&(k=0,++I>4294967295&&(I=0))),new S(k,I)},S.from=function(d){if("number"==typeof d)return S.fromNumber(d);if(x.isString(d)){if(!x.Long)return S.fromNumber(parseInt(d,10));d=x.Long.fromString(d)}return d.low||d.high?new S(d.low>>>0,d.high>>>0):j},S.prototype.toNumber=function(d){if(!d&&this.hi>>>31){var w=1+~this.lo>>>0,k=~this.hi>>>0;return w||(k=k+1>>>0),-(w+4294967296*k)}return this.lo+4294967296*this.hi},S.prototype.toLong=function(d){return x.Long?new x.Long(0|this.lo,0|this.hi,Boolean(d)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(d)}};var b=String.prototype.charCodeAt;S.fromHash=function(d){return d===_?j:new S((b.call(d,0)|b.call(d,1)<<8|b.call(d,2)<<16|b.call(d,3)<<24)>>>0,(b.call(d,4)|b.call(d,5)<<8|b.call(d,6)<<16|b.call(d,7)<<24)>>>0)},S.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},S.prototype.zzEncode=function(){var d=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^d)>>>0,this.lo=(this.lo<<1^d)>>>0,this},S.prototype.zzDecode=function(){var d=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^d)>>>0,this.hi=(this.hi>>>1^d)>>>0,this},S.prototype.length=function(){var d=this.lo,w=(this.lo>>>28|this.hi<<4)>>>0,k=this.hi>>>24;return 0===k?0===w?d<16384?d<128?1:2:d<2097152?3:4:w<16384?w<128?5:6:w<2097152?7:8:k<128?9:10}},7211:function(Me,re,G){"use strict";var x=re;function S(_,b,g){for(var d=Object.keys(b),w=0;w0)},x.Buffer=function(){try{var _=x.inquire("buffer").Buffer;return _.prototype.utf8Write?_:null}catch{return null}}(),x._Buffer_from=null,x._Buffer_allocUnsafe=null,x.newBuffer=function(b){return"number"==typeof b?x.Buffer?x._Buffer_allocUnsafe(b):new x.Array(b):x.Buffer?x._Buffer_from(b):typeof Uint8Array>"u"?b:new Uint8Array(b)},x.Array=typeof Uint8Array<"u"?Uint8Array:Array,x.Long=x.global.dcodeIO&&x.global.dcodeIO.Long||x.global.Long||x.inquire("long"),x.key2Re=/^true|false|0|1$/,x.key32Re=/^-?(?:0|[1-9][0-9]*)$/,x.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,x.longToHash=function(b){return b?x.LongBits.from(b).toHash():x.LongBits.zeroHash},x.longFromHash=function(b,g){var d=x.LongBits.fromHash(b);return x.Long?x.Long.fromBits(d.lo,d.hi,g):d.toNumber(Boolean(g))},x.merge=S,x.lcFirst=function(b){return b.charAt(0).toLowerCase()+b.substring(1)},x.newError=j,x.ProtocolError=j("ProtocolError"),x.oneOfGetter=function(b){for(var g={},d=0;d-1;--k)if(1===g[w[k]]&&null!=this[w[k]])return w[k]}},x.oneOfSetter=function(b){return function(g){for(var d=0;d{"use strict";Me.exports=k;var S,x=G(7211),j=x.LongBits,_=x.base64,b=x.utf8;function g(p,v,L){this.fn=p,this.len=v,this.next=void 0,this.val=L}function d(){}function w(p){this.head=p.head,this.tail=p.tail,this.len=p.len,this.next=p.states}function k(){this.len=0,this.head=new g(d,0,0),this.tail=this.head,this.states=null}var I=function(){return x.Buffer?function(){return(k.create=function(){return new S})()}:function(){return new k}};function T(p,v,L){v[L]=255&p}function r(p,v){this.len=p,this.next=void 0,this.val=v}function i(p,v,L){for(;p.hi;)v[L++]=127&p.lo|128,p.lo=(p.lo>>>7|p.hi<<25)>>>0,p.hi>>>=7;for(;p.lo>127;)v[L++]=127&p.lo|128,p.lo=p.lo>>>7;v[L++]=p.lo}function c(p,v,L){v[L]=255&p,v[L+1]=p>>>8&255,v[L+2]=p>>>16&255,v[L+3]=p>>>24}k.create=I(),k.alloc=function(v){return new x.Array(v)},x.Array!==Array&&(k.alloc=x.pool(k.alloc,x.Array.prototype.subarray)),k.prototype._push=function(v,L,ee){return this.tail=this.tail.next=new g(v,L,ee),this.len+=L,this},(r.prototype=Object.create(g.prototype)).fn=function a(p,v,L){for(;p>127;)v[L++]=127&p|128,p>>>=7;v[L]=p},k.prototype.uint32=function(v){return this.len+=(this.tail=this.tail.next=new r((v>>>=0)<128?1:v<16384?2:v<2097152?3:v<268435456?4:5,v)).len,this},k.prototype.int32=function(v){return v<0?this._push(i,10,j.fromNumber(v)):this.uint32(v)},k.prototype.sint32=function(v){return this.uint32((v<<1^v>>31)>>>0)},k.prototype.int64=k.prototype.uint64=function(v){var L=j.from(v);return this._push(i,L.length(),L)},k.prototype.sint64=function(v){var L=j.from(v).zzEncode();return this._push(i,L.length(),L)},k.prototype.bool=function(v){return this._push(T,1,v?1:0)},k.prototype.sfixed32=k.prototype.fixed32=function(v){return this._push(c,4,v>>>0)},k.prototype.sfixed64=k.prototype.fixed64=function(v){var L=j.from(v);return this._push(c,4,L.lo)._push(c,4,L.hi)},k.prototype.float=function(v){return this._push(x.float.writeFloatLE,4,v)},k.prototype.double=function(v){return this._push(x.float.writeDoubleLE,8,v)};var f=x.Array.prototype.set?function(v,L,ee){L.set(v,ee)}:function(v,L,ee){for(var oe=0;oe>>0;if(!L)return this._push(T,1,0);if(x.isString(v)){var ee=k.alloc(L=_.length(v));_.decode(v,ee,0),v=ee}return this.uint32(L)._push(f,L,v)},k.prototype.string=function(v){var L=b.length(v);return L?this.uint32(L)._push(b.write,L,v):this._push(T,1,0)},k.prototype.fork=function(){return this.states=new w(this),this.head=this.tail=new g(d,0,0),this.len=0,this},k.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new g(d,0,0),this.len=0),this},k.prototype.ldelim=function(){var v=this.head,L=this.tail,ee=this.len;return this.reset().uint32(ee),ee&&(this.tail.next=v.next,this.tail=L,this.len+=ee),this},k.prototype.finish=function(){for(var v=this.head.next,L=this.constructor.alloc(this.len),ee=0;v;)v.fn(v.val,L,ee),ee+=v.len,v=v.next;return L},k._configure=function(p){S=p,k.create=I(),S._configure()}},813:(Me,re,G)=>{"use strict";Me.exports=j;var x=G(1650);(j.prototype=Object.create(x.prototype)).constructor=j;var S=G(7211);function j(){x.call(this)}function _(b,g,d){b.length<40?S.utf8.write(b,g,d):g.utf8Write?g.utf8Write(b,d):g.write(b,d)}j._configure=function(){j.alloc=S._Buffer_allocUnsafe,j.writeBytesBuffer=S.Buffer&&S.Buffer.prototype instanceof Uint8Array&&"set"===S.Buffer.prototype.set.name?function(g,d,w){d.set(g,w)}:function(g,d,w){if(g.copy)g.copy(d,w,0,g.length);else for(var k=0;k>>0;return this.uint32(d),d&&this._push(j.writeBytesBuffer,d,g),this},j.prototype.string=function(g){var d=S.Buffer.byteLength(g);return this.uint32(d),d&&this._push(_,d,g),this},j._configure()},1868:function(Me,re,G){"use strict";var x=this&&this.__assign||function(){return x=Object.assign||function(_){for(var b,g=1,d=arguments.length;g0,c=0,f=r;c{!function(x){"use strict";var S=function(F){var W,X=new Float64Array(16);if(F)for(W=0;W>24&255,F[W+1]=X>>16&255,F[W+2]=X>>8&255,F[W+3]=255&X,F[W+4]=O>>24&255,F[W+5]=O>>16&255,F[W+6]=O>>8&255,F[W+7]=255&O}function c(F,W,X,O,ie){var Ee,Re=0;for(Ee=0;Ee>>8)-1}function f(F,W,X,O){return c(F,W,X,O,16)}function p(F,W,X,O){return c(F,W,X,O,32)}function ee(F,W,X,O){!function v(F,W,X,O){for(var we,ie=255&O[0]|(255&O[1])<<8|(255&O[2])<<16|(255&O[3])<<24,Ee=255&X[0]|(255&X[1])<<8|(255&X[2])<<16|(255&X[3])<<24,Re=255&X[4]|(255&X[5])<<8|(255&X[6])<<16|(255&X[7])<<24,Je=255&X[8]|(255&X[9])<<8|(255&X[10])<<16|(255&X[11])<<24,rt=255&X[12]|(255&X[13])<<8|(255&X[14])<<16|(255&X[15])<<24,Ut=255&O[4]|(255&O[5])<<8|(255&O[6])<<16|(255&O[7])<<24,gt=255&W[0]|(255&W[1])<<8|(255&W[2])<<16|(255&W[3])<<24,Gn=255&W[4]|(255&W[5])<<8|(255&W[6])<<16|(255&W[7])<<24,Bt=255&W[8]|(255&W[9])<<8|(255&W[10])<<16|(255&W[11])<<24,tn=255&W[12]|(255&W[13])<<8|(255&W[14])<<16|(255&W[15])<<24,dn=255&O[8]|(255&O[9])<<8|(255&O[10])<<16|(255&O[11])<<24,fn=255&X[16]|(255&X[17])<<8|(255&X[18])<<16|(255&X[19])<<24,yn=255&X[20]|(255&X[21])<<8|(255&X[22])<<16|(255&X[23])<<24,sn=255&X[24]|(255&X[25])<<8|(255&X[26])<<16|(255&X[27])<<24,wn=255&X[28]|(255&X[29])<<8|(255&X[30])<<16|(255&X[31])<<24,Zt=255&O[12]|(255&O[13])<<8|(255&O[14])<<16|(255&O[15])<<24,ut=ie,Jt=Ee,Rt=Re,Qt=Je,et=rt,xt=Ut,je=gt,Ye=Gn,lt=Bt,ot=tn,it=dn,ht=fn,an=yn,xn=sn,Nn=wn,Pn=Zt,bt=0;bt<20;bt+=2)ut^=(we=(an^=(we=(lt^=(we=(et^=(we=ut+an|0)<<7|we>>>25)+ut|0)<<9|we>>>23)+et|0)<<13|we>>>19)+lt|0)<<18|we>>>14,xt^=(we=(Jt^=(we=(xn^=(we=(ot^=(we=xt+Jt|0)<<7|we>>>25)+xt|0)<<9|we>>>23)+ot|0)<<13|we>>>19)+xn|0)<<18|we>>>14,it^=(we=(je^=(we=(Rt^=(we=(Nn^=(we=it+je|0)<<7|we>>>25)+it|0)<<9|we>>>23)+Nn|0)<<13|we>>>19)+Rt|0)<<18|we>>>14,Pn^=(we=(ht^=(we=(Ye^=(we=(Qt^=(we=Pn+ht|0)<<7|we>>>25)+Pn|0)<<9|we>>>23)+Qt|0)<<13|we>>>19)+Ye|0)<<18|we>>>14,ut^=(we=(Qt^=(we=(Rt^=(we=(Jt^=(we=ut+Qt|0)<<7|we>>>25)+ut|0)<<9|we>>>23)+Jt|0)<<13|we>>>19)+Rt|0)<<18|we>>>14,xt^=(we=(et^=(we=(Ye^=(we=(je^=(we=xt+et|0)<<7|we>>>25)+xt|0)<<9|we>>>23)+je|0)<<13|we>>>19)+Ye|0)<<18|we>>>14,it^=(we=(ot^=(we=(lt^=(we=(ht^=(we=it+ot|0)<<7|we>>>25)+it|0)<<9|we>>>23)+ht|0)<<13|we>>>19)+lt|0)<<18|we>>>14,Pn^=(we=(Nn^=(we=(xn^=(we=(an^=(we=Pn+Nn|0)<<7|we>>>25)+Pn|0)<<9|we>>>23)+an|0)<<13|we>>>19)+xn|0)<<18|we>>>14;Jt=Jt+Ee|0,Rt=Rt+Re|0,Qt=Qt+Je|0,et=et+rt|0,xt=xt+Ut|0,je=je+gt|0,Ye=Ye+Gn|0,lt=lt+Bt|0,ot=ot+tn|0,it=it+dn|0,ht=ht+fn|0,an=an+yn|0,xn=xn+sn|0,Nn=Nn+wn|0,Pn=Pn+Zt|0,F[0]=(ut=ut+ie|0)>>>0&255,F[1]=ut>>>8&255,F[2]=ut>>>16&255,F[3]=ut>>>24&255,F[4]=Jt>>>0&255,F[5]=Jt>>>8&255,F[6]=Jt>>>16&255,F[7]=Jt>>>24&255,F[8]=Rt>>>0&255,F[9]=Rt>>>8&255,F[10]=Rt>>>16&255,F[11]=Rt>>>24&255,F[12]=Qt>>>0&255,F[13]=Qt>>>8&255,F[14]=Qt>>>16&255,F[15]=Qt>>>24&255,F[16]=et>>>0&255,F[17]=et>>>8&255,F[18]=et>>>16&255,F[19]=et>>>24&255,F[20]=xt>>>0&255,F[21]=xt>>>8&255,F[22]=xt>>>16&255,F[23]=xt>>>24&255,F[24]=je>>>0&255,F[25]=je>>>8&255,F[26]=je>>>16&255,F[27]=je>>>24&255,F[28]=Ye>>>0&255,F[29]=Ye>>>8&255,F[30]=Ye>>>16&255,F[31]=Ye>>>24&255,F[32]=lt>>>0&255,F[33]=lt>>>8&255,F[34]=lt>>>16&255,F[35]=lt>>>24&255,F[36]=ot>>>0&255,F[37]=ot>>>8&255,F[38]=ot>>>16&255,F[39]=ot>>>24&255,F[40]=it>>>0&255,F[41]=it>>>8&255,F[42]=it>>>16&255,F[43]=it>>>24&255,F[44]=ht>>>0&255,F[45]=ht>>>8&255,F[46]=ht>>>16&255,F[47]=ht>>>24&255,F[48]=an>>>0&255,F[49]=an>>>8&255,F[50]=an>>>16&255,F[51]=an>>>24&255,F[52]=xn>>>0&255,F[53]=xn>>>8&255,F[54]=xn>>>16&255,F[55]=xn>>>24&255,F[56]=Nn>>>0&255,F[57]=Nn>>>8&255,F[58]=Nn>>>16&255,F[59]=Nn>>>24&255,F[60]=Pn>>>0&255,F[61]=Pn>>>8&255,F[62]=Pn>>>16&255,F[63]=Pn>>>24&255}(F,W,X,O)}function oe(F,W,X,O){!function L(F,W,X,O){for(var we,ut=255&O[0]|(255&O[1])<<8|(255&O[2])<<16|(255&O[3])<<24,Jt=255&X[0]|(255&X[1])<<8|(255&X[2])<<16|(255&X[3])<<24,Rt=255&X[4]|(255&X[5])<<8|(255&X[6])<<16|(255&X[7])<<24,Qt=255&X[8]|(255&X[9])<<8|(255&X[10])<<16|(255&X[11])<<24,et=255&X[12]|(255&X[13])<<8|(255&X[14])<<16|(255&X[15])<<24,xt=255&O[4]|(255&O[5])<<8|(255&O[6])<<16|(255&O[7])<<24,je=255&W[0]|(255&W[1])<<8|(255&W[2])<<16|(255&W[3])<<24,Ye=255&W[4]|(255&W[5])<<8|(255&W[6])<<16|(255&W[7])<<24,lt=255&W[8]|(255&W[9])<<8|(255&W[10])<<16|(255&W[11])<<24,ot=255&W[12]|(255&W[13])<<8|(255&W[14])<<16|(255&W[15])<<24,it=255&O[8]|(255&O[9])<<8|(255&O[10])<<16|(255&O[11])<<24,ht=255&X[16]|(255&X[17])<<8|(255&X[18])<<16|(255&X[19])<<24,an=255&X[20]|(255&X[21])<<8|(255&X[22])<<16|(255&X[23])<<24,xn=255&X[24]|(255&X[25])<<8|(255&X[26])<<16|(255&X[27])<<24,Nn=255&X[28]|(255&X[29])<<8|(255&X[30])<<16|(255&X[31])<<24,Pn=255&O[12]|(255&O[13])<<8|(255&O[14])<<16|(255&O[15])<<24,bt=0;bt<20;bt+=2)ut^=(we=(an^=(we=(lt^=(we=(et^=(we=ut+an|0)<<7|we>>>25)+ut|0)<<9|we>>>23)+et|0)<<13|we>>>19)+lt|0)<<18|we>>>14,xt^=(we=(Jt^=(we=(xn^=(we=(ot^=(we=xt+Jt|0)<<7|we>>>25)+xt|0)<<9|we>>>23)+ot|0)<<13|we>>>19)+xn|0)<<18|we>>>14,it^=(we=(je^=(we=(Rt^=(we=(Nn^=(we=it+je|0)<<7|we>>>25)+it|0)<<9|we>>>23)+Nn|0)<<13|we>>>19)+Rt|0)<<18|we>>>14,Pn^=(we=(ht^=(we=(Ye^=(we=(Qt^=(we=Pn+ht|0)<<7|we>>>25)+Pn|0)<<9|we>>>23)+Qt|0)<<13|we>>>19)+Ye|0)<<18|we>>>14,ut^=(we=(Qt^=(we=(Rt^=(we=(Jt^=(we=ut+Qt|0)<<7|we>>>25)+ut|0)<<9|we>>>23)+Jt|0)<<13|we>>>19)+Rt|0)<<18|we>>>14,xt^=(we=(et^=(we=(Ye^=(we=(je^=(we=xt+et|0)<<7|we>>>25)+xt|0)<<9|we>>>23)+je|0)<<13|we>>>19)+Ye|0)<<18|we>>>14,it^=(we=(ot^=(we=(lt^=(we=(ht^=(we=it+ot|0)<<7|we>>>25)+it|0)<<9|we>>>23)+ht|0)<<13|we>>>19)+lt|0)<<18|we>>>14,Pn^=(we=(Nn^=(we=(xn^=(we=(an^=(we=Pn+Nn|0)<<7|we>>>25)+Pn|0)<<9|we>>>23)+an|0)<<13|we>>>19)+xn|0)<<18|we>>>14;F[0]=ut>>>0&255,F[1]=ut>>>8&255,F[2]=ut>>>16&255,F[3]=ut>>>24&255,F[4]=xt>>>0&255,F[5]=xt>>>8&255,F[6]=xt>>>16&255,F[7]=xt>>>24&255,F[8]=it>>>0&255,F[9]=it>>>8&255,F[10]=it>>>16&255,F[11]=it>>>24&255,F[12]=Pn>>>0&255,F[13]=Pn>>>8&255,F[14]=Pn>>>16&255,F[15]=Pn>>>24&255,F[16]=je>>>0&255,F[17]=je>>>8&255,F[18]=je>>>16&255,F[19]=je>>>24&255,F[20]=Ye>>>0&255,F[21]=Ye>>>8&255,F[22]=Ye>>>16&255,F[23]=Ye>>>24&255,F[24]=lt>>>0&255,F[25]=lt>>>8&255,F[26]=lt>>>16&255,F[27]=lt>>>24&255,F[28]=ot>>>0&255,F[29]=ot>>>8&255,F[30]=ot>>>16&255,F[31]=ot>>>24&255}(F,W,X,O)}var de=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function he(F,W,X,O,ie,Ee,Re){var Ut,gt,Je=new Uint8Array(16),rt=new Uint8Array(64);for(gt=0;gt<16;gt++)Je[gt]=0;for(gt=0;gt<8;gt++)Je[gt]=Ee[gt];for(;ie>=64;){for(ee(rt,Je,Re,de),gt=0;gt<64;gt++)F[W+gt]=X[O+gt]^rt[gt];for(Ut=1,gt=8;gt<16;gt++)Je[gt]=255&(Ut=Ut+(255&Je[gt])|0),Ut>>>=8;ie-=64,W+=64,O+=64}if(ie>0)for(ee(rt,Je,Re,de),gt=0;gt=64;){for(ee(Re,Ee,ie,de),rt=0;rt<64;rt++)F[W+rt]=Re[rt];for(Je=1,rt=8;rt<16;rt++)Ee[rt]=255&(Je=Je+(255&Ee[rt])|0),Je>>>=8;X-=64,W+=64}if(X>0)for(ee(Re,Ee,ie,de),rt=0;rt>>13|(X=255&F[2]|(255&F[3])<<8)<<3),this.r[2]=7939&(X>>>10|(O=255&F[4]|(255&F[5])<<8)<<6),this.r[3]=8191&(O>>>7|(ie=255&F[6]|(255&F[7])<<8)<<9),this.r[4]=255&(ie>>>4|(Ee=255&F[8]|(255&F[9])<<8)<<12),this.r[5]=Ee>>>1&8190,this.r[6]=8191&(Ee>>>14|(Re=255&F[10]|(255&F[11])<<8)<<2),this.r[7]=8065&(Re>>>11|(Je=255&F[12]|(255&F[13])<<8)<<5),this.r[8]=8191&(Je>>>8|(rt=255&F[14]|(255&F[15])<<8)<<8),this.r[9]=rt>>>5&127,this.pad[0]=255&F[16]|(255&F[17])<<8,this.pad[1]=255&F[18]|(255&F[19])<<8,this.pad[2]=255&F[20]|(255&F[21])<<8,this.pad[3]=255&F[22]|(255&F[23])<<8,this.pad[4]=255&F[24]|(255&F[25])<<8,this.pad[5]=255&F[26]|(255&F[27])<<8,this.pad[6]=255&F[28]|(255&F[29])<<8,this.pad[7]=255&F[30]|(255&F[31])<<8};function C(F,W,X,O,ie,Ee){var Re=new $(Ee);return Re.update(X,O,ie),Re.finish(F,W),0}function E(F,W,X,O,ie,Ee){var Re=new Uint8Array(16);return C(Re,0,X,O,ie,Ee),f(F,W,Re,0)}function N(F,W,X,O,ie){var Ee;if(X<32)return-1;for(J(F,0,W,0,X,O,ie),C(F,16,F,32,X-32,F),Ee=0;Ee<16;Ee++)F[Ee]=0;return 0}function P(F,W,X,O,ie){var Ee,Re=new Uint8Array(32);if(X<32||(Ae(Re,0,32,O,ie),0!==E(W,16,W,32,X-32,Re)))return-1;for(J(F,0,W,0,X,O,ie),Ee=0;Ee<32;Ee++)F[Ee]=0;return 0}function Q(F,W){var X;for(X=0;X<16;X++)F[X]=0|W[X]}function Y(F){var W,X,O=1;for(W=0;W<16;W++)X=F[W]+O+65535,O=Math.floor(X/65536),F[W]=X-65536*O;F[0]+=O-1+37*(O-1)}function ne(F,W,X){for(var O,ie=~(X-1),Ee=0;Ee<16;Ee++)F[Ee]^=O=ie&(F[Ee]^W[Ee]),W[Ee]^=O}function H(F,W){var X,O,ie,Ee=S(),Re=S();for(X=0;X<16;X++)Re[X]=W[X];for(Y(Re),Y(Re),Y(Re),O=0;O<2;O++){for(Ee[0]=Re[0]-65517,X=1;X<15;X++)Ee[X]=Re[X]-65535-(Ee[X-1]>>16&1),Ee[X-1]&=65535;Ee[15]=Re[15]-32767-(Ee[14]>>16&1),ie=Ee[15]>>16&1,Ee[14]&=65535,ne(Re,Ee,1-ie)}for(X=0;X<16;X++)F[2*X]=255&Re[X],F[2*X+1]=Re[X]>>8}function M(F,W){var X=new Uint8Array(32),O=new Uint8Array(32);return H(X,F),H(O,W),p(X,0,O,0)}function z(F){var W=new Uint8Array(32);return H(W,F),1&W[0]}function Ie(F,W){var X;for(X=0;X<16;X++)F[X]=W[2*X]+(W[2*X+1]<<8);F[15]&=32767}function fe(F,W,X){for(var O=0;O<16;O++)F[O]=W[O]+X[O]}function Xe(F,W,X){for(var O=0;O<16;O++)F[O]=W[O]-X[O]}function He(F,W,X){var O,ie,Ee=0,Re=0,Je=0,rt=0,Ut=0,gt=0,Gn=0,Bt=0,tn=0,dn=0,fn=0,yn=0,sn=0,wn=0,Zt=0,ut=0,Jt=0,Rt=0,Qt=0,et=0,xt=0,je=0,Ye=0,lt=0,ot=0,it=0,ht=0,an=0,xn=0,Nn=0,Pn=0,we=X[0],bt=X[1],ar=X[2],gr=X[3],An=X[4],cr=X[5],mr=X[6],Dn=X[7],Nr=X[8],Xr=X[9],eo=X[10],Rr=X[11],to=X[12],go=X[13],Lo=X[14],Uo=X[15];Ee+=(O=W[0])*we,Re+=O*bt,Je+=O*ar,rt+=O*gr,Ut+=O*An,gt+=O*cr,Gn+=O*mr,Bt+=O*Dn,tn+=O*Nr,dn+=O*Xr,fn+=O*eo,yn+=O*Rr,sn+=O*to,wn+=O*go,Zt+=O*Lo,ut+=O*Uo,Re+=(O=W[1])*we,Je+=O*bt,rt+=O*ar,Ut+=O*gr,gt+=O*An,Gn+=O*cr,Bt+=O*mr,tn+=O*Dn,dn+=O*Nr,fn+=O*Xr,yn+=O*eo,sn+=O*Rr,wn+=O*to,Zt+=O*go,ut+=O*Lo,Jt+=O*Uo,Je+=(O=W[2])*we,rt+=O*bt,Ut+=O*ar,gt+=O*gr,Gn+=O*An,Bt+=O*cr,tn+=O*mr,dn+=O*Dn,fn+=O*Nr,yn+=O*Xr,sn+=O*eo,wn+=O*Rr,Zt+=O*to,ut+=O*go,Jt+=O*Lo,Rt+=O*Uo,rt+=(O=W[3])*we,Ut+=O*bt,gt+=O*ar,Gn+=O*gr,Bt+=O*An,tn+=O*cr,dn+=O*mr,fn+=O*Dn,yn+=O*Nr,sn+=O*Xr,wn+=O*eo,Zt+=O*Rr,ut+=O*to,Jt+=O*go,Rt+=O*Lo,Qt+=O*Uo,Ut+=(O=W[4])*we,gt+=O*bt,Gn+=O*ar,Bt+=O*gr,tn+=O*An,dn+=O*cr,fn+=O*mr,yn+=O*Dn,sn+=O*Nr,wn+=O*Xr,Zt+=O*eo,ut+=O*Rr,Jt+=O*to,Rt+=O*go,Qt+=O*Lo,et+=O*Uo,gt+=(O=W[5])*we,Gn+=O*bt,Bt+=O*ar,tn+=O*gr,dn+=O*An,fn+=O*cr,yn+=O*mr,sn+=O*Dn,wn+=O*Nr,Zt+=O*Xr,ut+=O*eo,Jt+=O*Rr,Rt+=O*to,Qt+=O*go,et+=O*Lo,xt+=O*Uo,Gn+=(O=W[6])*we,Bt+=O*bt,tn+=O*ar,dn+=O*gr,fn+=O*An,yn+=O*cr,sn+=O*mr,wn+=O*Dn,Zt+=O*Nr,ut+=O*Xr,Jt+=O*eo,Rt+=O*Rr,Qt+=O*to,et+=O*go,xt+=O*Lo,je+=O*Uo,Bt+=(O=W[7])*we,tn+=O*bt,dn+=O*ar,fn+=O*gr,yn+=O*An,sn+=O*cr,wn+=O*mr,Zt+=O*Dn,ut+=O*Nr,Jt+=O*Xr,Rt+=O*eo,Qt+=O*Rr,et+=O*to,xt+=O*go,je+=O*Lo,Ye+=O*Uo,tn+=(O=W[8])*we,dn+=O*bt,fn+=O*ar,yn+=O*gr,sn+=O*An,wn+=O*cr,Zt+=O*mr,ut+=O*Dn,Jt+=O*Nr,Rt+=O*Xr,Qt+=O*eo,et+=O*Rr,xt+=O*to,je+=O*go,Ye+=O*Lo,lt+=O*Uo,dn+=(O=W[9])*we,fn+=O*bt,yn+=O*ar,sn+=O*gr,wn+=O*An,Zt+=O*cr,ut+=O*mr,Jt+=O*Dn,Rt+=O*Nr,Qt+=O*Xr,et+=O*eo,xt+=O*Rr,je+=O*to,Ye+=O*go,lt+=O*Lo,ot+=O*Uo,fn+=(O=W[10])*we,yn+=O*bt,sn+=O*ar,wn+=O*gr,Zt+=O*An,ut+=O*cr,Jt+=O*mr,Rt+=O*Dn,Qt+=O*Nr,et+=O*Xr,xt+=O*eo,je+=O*Rr,Ye+=O*to,lt+=O*go,ot+=O*Lo,it+=O*Uo,yn+=(O=W[11])*we,sn+=O*bt,wn+=O*ar,Zt+=O*gr,ut+=O*An,Jt+=O*cr,Rt+=O*mr,Qt+=O*Dn,et+=O*Nr,xt+=O*Xr,je+=O*eo,Ye+=O*Rr,lt+=O*to,ot+=O*go,it+=O*Lo,ht+=O*Uo,sn+=(O=W[12])*we,wn+=O*bt,Zt+=O*ar,ut+=O*gr,Jt+=O*An,Rt+=O*cr,Qt+=O*mr,et+=O*Dn,xt+=O*Nr,je+=O*Xr,Ye+=O*eo,lt+=O*Rr,ot+=O*to,it+=O*go,ht+=O*Lo,an+=O*Uo,wn+=(O=W[13])*we,Zt+=O*bt,ut+=O*ar,Jt+=O*gr,Rt+=O*An,Qt+=O*cr,et+=O*mr,xt+=O*Dn,je+=O*Nr,Ye+=O*Xr,lt+=O*eo,ot+=O*Rr,it+=O*to,ht+=O*go,an+=O*Lo,xn+=O*Uo,Zt+=(O=W[14])*we,ut+=O*bt,Jt+=O*ar,Rt+=O*gr,Qt+=O*An,et+=O*cr,xt+=O*mr,je+=O*Dn,Ye+=O*Nr,lt+=O*Xr,ot+=O*eo,it+=O*Rr,ht+=O*to,an+=O*go,xn+=O*Lo,Nn+=O*Uo,ut+=(O=W[15])*we,Re+=38*(Rt+=O*ar),Je+=38*(Qt+=O*gr),rt+=38*(et+=O*An),Ut+=38*(xt+=O*cr),gt+=38*(je+=O*mr),Gn+=38*(Ye+=O*Dn),Bt+=38*(lt+=O*Nr),tn+=38*(ot+=O*Xr),dn+=38*(it+=O*eo),fn+=38*(ht+=O*Rr),yn+=38*(an+=O*to),sn+=38*(xn+=O*go),wn+=38*(Nn+=O*Lo),Zt+=38*(Pn+=O*Uo),Ee=(O=(Ee+=38*(Jt+=O*bt))+(ie=1)+65535)-65536*(ie=Math.floor(O/65536)),Re=(O=Re+ie+65535)-65536*(ie=Math.floor(O/65536)),Je=(O=Je+ie+65535)-65536*(ie=Math.floor(O/65536)),rt=(O=rt+ie+65535)-65536*(ie=Math.floor(O/65536)),Ut=(O=Ut+ie+65535)-65536*(ie=Math.floor(O/65536)),gt=(O=gt+ie+65535)-65536*(ie=Math.floor(O/65536)),Gn=(O=Gn+ie+65535)-65536*(ie=Math.floor(O/65536)),Bt=(O=Bt+ie+65535)-65536*(ie=Math.floor(O/65536)),tn=(O=tn+ie+65535)-65536*(ie=Math.floor(O/65536)),dn=(O=dn+ie+65535)-65536*(ie=Math.floor(O/65536)),fn=(O=fn+ie+65535)-65536*(ie=Math.floor(O/65536)),yn=(O=yn+ie+65535)-65536*(ie=Math.floor(O/65536)),sn=(O=sn+ie+65535)-65536*(ie=Math.floor(O/65536)),wn=(O=wn+ie+65535)-65536*(ie=Math.floor(O/65536)),Zt=(O=Zt+ie+65535)-65536*(ie=Math.floor(O/65536)),ut=(O=ut+ie+65535)-65536*(ie=Math.floor(O/65536)),Ee=(O=(Ee+=ie-1+37*(ie-1))+(ie=1)+65535)-65536*(ie=Math.floor(O/65536)),Re=(O=Re+ie+65535)-65536*(ie=Math.floor(O/65536)),Je=(O=Je+ie+65535)-65536*(ie=Math.floor(O/65536)),rt=(O=rt+ie+65535)-65536*(ie=Math.floor(O/65536)),Ut=(O=Ut+ie+65535)-65536*(ie=Math.floor(O/65536)),gt=(O=gt+ie+65535)-65536*(ie=Math.floor(O/65536)),Gn=(O=Gn+ie+65535)-65536*(ie=Math.floor(O/65536)),Bt=(O=Bt+ie+65535)-65536*(ie=Math.floor(O/65536)),tn=(O=tn+ie+65535)-65536*(ie=Math.floor(O/65536)),dn=(O=dn+ie+65535)-65536*(ie=Math.floor(O/65536)),fn=(O=fn+ie+65535)-65536*(ie=Math.floor(O/65536)),yn=(O=yn+ie+65535)-65536*(ie=Math.floor(O/65536)),sn=(O=sn+ie+65535)-65536*(ie=Math.floor(O/65536)),wn=(O=wn+ie+65535)-65536*(ie=Math.floor(O/65536)),Zt=(O=Zt+ie+65535)-65536*(ie=Math.floor(O/65536)),ut=(O=ut+ie+65535)-65536*(ie=Math.floor(O/65536)),F[0]=Ee+=ie-1+37*(ie-1),F[1]=Re,F[2]=Je,F[3]=rt,F[4]=Ut,F[5]=gt,F[6]=Gn,F[7]=Bt,F[8]=tn,F[9]=dn,F[10]=fn,F[11]=yn,F[12]=sn,F[13]=wn,F[14]=Zt,F[15]=ut}function kt(F,W){He(F,W,W)}function Ze(F,W){var O,X=S();for(O=0;O<16;O++)X[O]=W[O];for(O=253;O>=0;O--)kt(X,X),2!==O&&4!==O&&He(X,X,W);for(O=0;O<16;O++)F[O]=X[O]}function br(F,W){var O,X=S();for(O=0;O<16;O++)X[O]=W[O];for(O=250;O>=0;O--)kt(X,X),1!==O&&He(X,X,W);for(O=0;O<16;O++)F[O]=X[O]}function nt(F,W,X){var Ee,Re,O=new Uint8Array(32),ie=new Float64Array(80),Je=S(),rt=S(),Ut=S(),gt=S(),Gn=S(),Bt=S();for(Re=0;Re<31;Re++)O[Re]=W[Re];for(O[31]=127&W[31]|64,O[0]&=248,Ie(ie,X),Re=0;Re<16;Re++)rt[Re]=ie[Re],gt[Re]=Je[Re]=Ut[Re]=0;for(Je[0]=gt[0]=1,Re=254;Re>=0;--Re)ne(Je,rt,Ee=O[Re>>>3]>>>(7&Re)&1),ne(Ut,gt,Ee),fe(Gn,Je,Ut),Xe(Je,Je,Ut),fe(Ut,rt,gt),Xe(rt,rt,gt),kt(gt,Gn),kt(Bt,Je),He(Je,Ut,Je),He(Ut,rt,Gn),fe(Gn,Je,Ut),Xe(Je,Je,Ut),kt(rt,Je),Xe(Ut,gt,Bt),He(Je,Ut,w),fe(Je,Je,gt),He(Ut,Ut,Je),He(Je,gt,Bt),He(gt,rt,ie),kt(rt,Gn),ne(Je,rt,Ee),ne(Ut,gt,Ee);for(Re=0;Re<16;Re++)ie[Re+16]=Je[Re],ie[Re+32]=Ut[Re],ie[Re+48]=rt[Re],ie[Re+64]=gt[Re];var tn=ie.subarray(32),dn=ie.subarray(16);return Ze(tn,tn),He(dn,dn,tn),H(F,dn),0}function at(F,W){return nt(F,W,b)}function nn(F,W){return j(W,32),at(F,W)}function ft(F,W,X){var O=new Uint8Array(32);return nt(O,X,W),oe(F,_,O,de)}$.prototype.blocks=function(F,W,X){for(var ie,Ee,Re,Je,rt,Ut,gt,Gn,Bt,tn,dn,fn,yn,sn,wn,Zt,ut,Jt,Rt,O=this.fin?0:2048,Qt=this.h[0],et=this.h[1],xt=this.h[2],je=this.h[3],Ye=this.h[4],lt=this.h[5],ot=this.h[6],it=this.h[7],ht=this.h[8],an=this.h[9],xn=this.r[0],Nn=this.r[1],Pn=this.r[2],we=this.r[3],bt=this.r[4],ar=this.r[5],gr=this.r[6],An=this.r[7],cr=this.r[8],mr=this.r[9];X>=16;)tn=Bt=0,tn+=(Qt+=8191&(ie=255&F[W+0]|(255&F[W+1])<<8))*xn,tn+=(et+=8191&(ie>>>13|(Ee=255&F[W+2]|(255&F[W+3])<<8)<<3))*(5*mr),tn+=(xt+=8191&(Ee>>>10|(Re=255&F[W+4]|(255&F[W+5])<<8)<<6))*(5*cr),tn+=(je+=8191&(Re>>>7|(Je=255&F[W+6]|(255&F[W+7])<<8)<<9))*(5*An),Bt=(tn+=(Ye+=8191&(Je>>>4|(rt=255&F[W+8]|(255&F[W+9])<<8)<<12))*(5*gr))>>>13,tn&=8191,tn+=(lt+=rt>>>1&8191)*(5*ar),tn+=(ot+=8191&(rt>>>14|(Ut=255&F[W+10]|(255&F[W+11])<<8)<<2))*(5*bt),tn+=(it+=8191&(Ut>>>11|(gt=255&F[W+12]|(255&F[W+13])<<8)<<5))*(5*we),tn+=(ht+=8191&(gt>>>8|(Gn=255&F[W+14]|(255&F[W+15])<<8)<<8))*(5*Pn),dn=Bt+=(tn+=(an+=Gn>>>5|O)*(5*Nn))>>>13,dn+=Qt*Nn,dn+=et*xn,dn+=xt*(5*mr),dn+=je*(5*cr),Bt=(dn+=Ye*(5*An))>>>13,dn&=8191,dn+=lt*(5*gr),dn+=ot*(5*ar),dn+=it*(5*bt),dn+=ht*(5*we),Bt+=(dn+=an*(5*Pn))>>>13,dn&=8191,fn=Bt,fn+=Qt*Pn,fn+=et*Nn,fn+=xt*xn,fn+=je*(5*mr),Bt=(fn+=Ye*(5*cr))>>>13,fn&=8191,fn+=lt*(5*An),fn+=ot*(5*gr),fn+=it*(5*ar),fn+=ht*(5*bt),yn=Bt+=(fn+=an*(5*we))>>>13,yn+=Qt*we,yn+=et*Pn,yn+=xt*Nn,yn+=je*xn,Bt=(yn+=Ye*(5*mr))>>>13,yn&=8191,yn+=lt*(5*cr),yn+=ot*(5*An),yn+=it*(5*gr),yn+=ht*(5*ar),sn=Bt+=(yn+=an*(5*bt))>>>13,sn+=Qt*bt,sn+=et*we,sn+=xt*Pn,sn+=je*Nn,Bt=(sn+=Ye*xn)>>>13,sn&=8191,sn+=lt*(5*mr),sn+=ot*(5*cr),sn+=it*(5*An),sn+=ht*(5*gr),wn=Bt+=(sn+=an*(5*ar))>>>13,wn+=Qt*ar,wn+=et*bt,wn+=xt*we,wn+=je*Pn,Bt=(wn+=Ye*Nn)>>>13,wn&=8191,wn+=lt*xn,wn+=ot*(5*mr),wn+=it*(5*cr),wn+=ht*(5*An),Zt=Bt+=(wn+=an*(5*gr))>>>13,Zt+=Qt*gr,Zt+=et*ar,Zt+=xt*bt,Zt+=je*we,Bt=(Zt+=Ye*Pn)>>>13,Zt&=8191,Zt+=lt*Nn,Zt+=ot*xn,Zt+=it*(5*mr),Zt+=ht*(5*cr),ut=Bt+=(Zt+=an*(5*An))>>>13,ut+=Qt*An,ut+=et*gr,ut+=xt*ar,ut+=je*bt,Bt=(ut+=Ye*we)>>>13,ut&=8191,ut+=lt*Pn,ut+=ot*Nn,ut+=it*xn,ut+=ht*(5*mr),Jt=Bt+=(ut+=an*(5*cr))>>>13,Jt+=Qt*cr,Jt+=et*An,Jt+=xt*gr,Jt+=je*ar,Bt=(Jt+=Ye*bt)>>>13,Jt&=8191,Jt+=lt*we,Jt+=ot*Pn,Jt+=it*Nn,Jt+=ht*xn,Rt=Bt+=(Jt+=an*(5*mr))>>>13,Rt+=Qt*mr,Rt+=et*cr,Rt+=xt*An,Rt+=je*gr,Bt=(Rt+=Ye*ar)>>>13,Rt&=8191,Rt+=lt*bt,Rt+=ot*we,Rt+=it*Pn,Rt+=ht*Nn,Qt=tn=8191&(Bt=(Bt=((Bt+=(Rt+=an*xn)>>>13)<<2)+Bt|0)+(tn&=8191)|0),et=dn+=Bt>>>=13,xt=fn&=8191,je=yn&=8191,Ye=sn&=8191,lt=wn&=8191,ot=Zt&=8191,it=ut&=8191,ht=Jt&=8191,an=Rt&=8191,W+=16,X-=16;this.h[0]=Qt,this.h[1]=et,this.h[2]=xt,this.h[3]=je,this.h[4]=Ye,this.h[5]=lt,this.h[6]=ot,this.h[7]=it,this.h[8]=ht,this.h[9]=an},$.prototype.finish=function(F,W){var O,ie,Ee,Re,X=new Uint16Array(10);if(this.leftover){for(Re=this.leftover,this.buffer[Re++]=1;Re<16;Re++)this.buffer[Re]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(O=this.h[1]>>>13,this.h[1]&=8191,Re=2;Re<10;Re++)this.h[Re]+=O,O=this.h[Re]>>>13,this.h[Re]&=8191;for(this.h[0]+=5*O,O=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=O,O=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=O,X[0]=this.h[0]+5,O=X[0]>>>13,X[0]&=8191,Re=1;Re<10;Re++)X[Re]=this.h[Re]+O,O=X[Re]>>>13,X[Re]&=8191;for(X[9]-=8192,ie=(1^O)-1,Re=0;Re<10;Re++)X[Re]&=ie;for(ie=~ie,Re=0;Re<10;Re++)this.h[Re]=this.h[Re]&ie|X[Re];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),this.h[0]=65535&(Ee=this.h[0]+this.pad[0]),Re=1;Re<8;Re++)this.h[Re]=65535&(Ee=(this.h[Re]+this.pad[Re]|0)+(Ee>>>16)|0);F[W+0]=this.h[0]>>>0&255,F[W+1]=this.h[0]>>>8&255,F[W+2]=this.h[1]>>>0&255,F[W+3]=this.h[1]>>>8&255,F[W+4]=this.h[2]>>>0&255,F[W+5]=this.h[2]>>>8&255,F[W+6]=this.h[3]>>>0&255,F[W+7]=this.h[3]>>>8&255,F[W+8]=this.h[4]>>>0&255,F[W+9]=this.h[4]>>>8&255,F[W+10]=this.h[5]>>>0&255,F[W+11]=this.h[5]>>>8&255,F[W+12]=this.h[6]>>>0&255,F[W+13]=this.h[6]>>>8&255,F[W+14]=this.h[7]>>>0&255,F[W+15]=this.h[7]>>>8&255},$.prototype.update=function(F,W,X){var O,ie;if(this.leftover){for((ie=16-this.leftover)>X&&(ie=X),O=0;O=16&&(this.blocks(F,W,ie=X-X%16),W+=ie,X-=ie),X){for(O=0;O=128;){for(et=0;et<16;et++)ie[et]=X[(xt=8*et+to)+0]<<24|X[xt+1]<<16|X[xt+2]<<8|X[xt+3],Ee[et]=X[xt+4]<<24|X[xt+5]<<16|X[xt+6]<<8|X[xt+7];for(et=0;et<80;et++)if(Je=xn,rt=Nn,gt=we,Gn=bt,Bt=ar,fn=cr,yn=mr,wn=Nr,Zt=Xr,ut=eo,lt=65535&(Ye=Rr),ot=Ye>>>16,it=65535&(je=gr),ht=je>>>16,lt+=65535&(Ye=(Nr>>>14|we<<18)^(Nr>>>18|we<<14)^(we>>>9|Nr<<23)),ot+=Ye>>>16,it+=65535&(je=(we>>>14|Nr<<18)^(we>>>18|Nr<<14)^(Nr>>>9|we<<23)),ht+=je>>>16,lt+=65535&(Ye=Nr&Xr^~Nr&eo),ot+=Ye>>>16,it+=65535&(je=we&bt^~we&ar),ht+=je>>>16,lt+=65535&(Ye=ln[2*et+1]),ot+=Ye>>>16,it+=65535&(je=ln[2*et]),ht+=je>>>16,ot+=(Ye=Ee[et%16])>>>16,it+=65535&(je=ie[et%16]),ht+=je>>>16,it+=(ot+=(lt+=65535&Ye)>>>16)>>>16,lt=65535&(Ye=Qt=65535<|ot<<16),ot=Ye>>>16,it=65535&(je=Rt=65535&it|(ht+=it>>>16)<<16),ht=je>>>16,lt+=65535&(Ye=(An>>>28|an<<4)^(an>>>2|An<<30)^(an>>>7|An<<25)),ot+=Ye>>>16,it+=65535&(je=(an>>>28|An<<4)^(An>>>2|an<<30)^(An>>>7|an<<25)),ht+=je>>>16,ot+=(Ye=An&cr^An&mr^cr&mr)>>>16,it+=65535&(je=an&xn^an&Nn^xn&Nn),ht+=je>>>16,tn=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,Jt=65535<|ot<<16,lt=65535&(Ye=Dn),ot=Ye>>>16,it=65535&(je=Pn),ht=je>>>16,ot+=(Ye=Qt)>>>16,it+=65535&(je=Rt),ht+=je>>>16,xn=an,Nn=Je,Pn=rt,we=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,bt=gt,ar=Gn,gr=Bt,an=tn,cr=An,mr=fn,Dn=yn,Nr=65535<|ot<<16,Xr=wn,eo=Zt,Rr=ut,An=Jt,et%16==15)for(xt=0;xt<16;xt++)lt=65535&(Ye=Ee[xt]),ot=Ye>>>16,it=65535&(je=ie[xt]),ht=je>>>16,lt+=65535&(Ye=Ee[(xt+9)%16]),ot+=Ye>>>16,it+=65535&(je=ie[(xt+9)%16]),ht+=je>>>16,lt+=65535&(Ye=((Qt=Ee[(xt+1)%16])>>>1|(Rt=ie[(xt+1)%16])<<31)^(Qt>>>8|Rt<<24)^(Qt>>>7|Rt<<25)),ot+=Ye>>>16,it+=65535&(je=(Rt>>>1|Qt<<31)^(Rt>>>8|Qt<<24)^Rt>>>7),ht+=je>>>16,ot+=(Ye=((Qt=Ee[(xt+14)%16])>>>19|(Rt=ie[(xt+14)%16])<<13)^(Rt>>>29|Qt<<3)^(Qt>>>6|Rt<<26))>>>16,it+=65535&(je=(Rt>>>19|Qt<<13)^(Qt>>>29|Rt<<3)^Rt>>>6),ht+=je>>>16,ie[xt]=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,Ee[xt]=65535<|ot<<16;lt=65535&(Ye=An),ot=Ye>>>16,it=65535&(je=an),ht=je>>>16,ot+=(Ye=W[0])>>>16,it+=65535&(je=F[0]),ht+=je>>>16,F[0]=an=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[0]=An=65535<|ot<<16,lt=65535&(Ye=cr),ot=Ye>>>16,it=65535&(je=xn),ht=je>>>16,ot+=(Ye=W[1])>>>16,it+=65535&(je=F[1]),ht+=je>>>16,F[1]=xn=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[1]=cr=65535<|ot<<16,lt=65535&(Ye=mr),ot=Ye>>>16,it=65535&(je=Nn),ht=je>>>16,ot+=(Ye=W[2])>>>16,it+=65535&(je=F[2]),ht+=je>>>16,F[2]=Nn=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[2]=mr=65535<|ot<<16,lt=65535&(Ye=Dn),ot=Ye>>>16,it=65535&(je=Pn),ht=je>>>16,ot+=(Ye=W[3])>>>16,it+=65535&(je=F[3]),ht+=je>>>16,F[3]=Pn=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[3]=Dn=65535<|ot<<16,lt=65535&(Ye=Nr),ot=Ye>>>16,it=65535&(je=we),ht=je>>>16,ot+=(Ye=W[4])>>>16,it+=65535&(je=F[4]),ht+=je>>>16,F[4]=we=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[4]=Nr=65535<|ot<<16,lt=65535&(Ye=Xr),ot=Ye>>>16,it=65535&(je=bt),ht=je>>>16,ot+=(Ye=W[5])>>>16,it+=65535&(je=F[5]),ht+=je>>>16,F[5]=bt=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[5]=Xr=65535<|ot<<16,lt=65535&(Ye=eo),ot=Ye>>>16,it=65535&(je=ar),ht=je>>>16,ot+=(Ye=W[6])>>>16,it+=65535&(je=F[6]),ht+=je>>>16,F[6]=ar=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[6]=eo=65535<|ot<<16,lt=65535&(Ye=Rr),ot=Ye>>>16,it=65535&(je=gr),ht=je>>>16,ot+=(Ye=W[7])>>>16,it+=65535&(je=F[7]),ht+=je>>>16,F[7]=gr=65535&(it+=(ot+=(lt+=65535&Ye)>>>16)>>>16)|(ht+=it>>>16)<<16,W[7]=Rr=65535<|ot<<16,to+=128,O-=128}return O}function Gt(F,W,X){var Re,O=new Int32Array(8),ie=new Int32Array(8),Ee=new Uint8Array(256),Je=X;for(O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225,ie[0]=4089235720,ie[1]=2227873595,ie[2]=4271175723,ie[3]=1595750129,ie[4]=2917565137,ie[5]=725511199,ie[6]=4215389547,ie[7]=327033209,zt(O,ie,W,X),X%=128,Re=0;Re=0;--ie)Pt(F,W,O=X[ie/8|0]>>(7&ie)&1),$t(W,F),$t(F,F),Pt(F,W,O)}function bn(F,W){var X=[S(),S(),S(),S()];Q(X[0],T),Q(X[1],a),Q(X[2],d),He(X[3],T,a),jn(F,X,W)}function Cn(F,W,X){var Ee,O=new Uint8Array(64),ie=[S(),S(),S(),S()];for(X||j(W,32),Gt(O,W,32),O[0]&=248,O[31]&=127,O[31]|=64,bn(ie,O),un(F,ie),Ee=0;Ee<32;Ee++)W[Ee+32]=F[Ee];return 0}var F,rr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function hr(F,W){var X,O,ie,Ee;for(O=63;O>=32;--O){for(X=0,ie=O-32,Ee=O-12;ie>4)*rr[ie],X=W[ie]>>8,W[ie]&=255;for(ie=0;ie<32;ie++)W[ie]-=X*rr[ie];for(O=0;O<32;O++)W[O+1]+=W[O]>>8,F[O]=255&W[O]}function Z(F){var X,W=new Float64Array(64);for(X=0;X<64;X++)W[X]=F[X];for(X=0;X<64;X++)F[X]=0;hr(F,W)}function B(F,W,X,O){var Je,rt,ie=new Uint8Array(64),Ee=new Uint8Array(64),Re=new Uint8Array(64),Ut=new Float64Array(64),gt=[S(),S(),S(),S()];Gt(ie,O,32),ie[0]&=248,ie[31]&=127,ie[31]|=64;var Gn=X+64;for(Je=0;Je>7&&Xe(F[0],g,F[0]),He(F[3],F[0],F[1]),0)}(rt,O))return-1;for(ie=0;ie=0},x.sign.keyPair=function(){var F=new Uint8Array(32),W=new Uint8Array(64);return Cn(F,W),{publicKey:F,secretKey:W}},x.sign.keyPair.fromSecretKey=function(F){if(Le(F),64!==F.length)throw new Error("bad secret key size");for(var W=new Uint8Array(32),X=0;X{},9214:()=>{},2480:()=>{},5024:()=>{},8597:Me=>{"use strict";Me.exports={i8:"6.5.4"}}},Me=>{Me(Me.s=4881)}]); \ No newline at end of file diff --git a/docs/main.0d557f31e8179c03.js b/docs/main.0d557f31e8179c03.js new file mode 100644 index 00000000..cb091564 --- /dev/null +++ b/docs/main.0d557f31e8179c03.js @@ -0,0 +1 @@ +(self.webpackChunkdapp=self.webpackChunkdapp||[]).push([[179],{3432:(Ne,Ae,$)=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.proto=Ae.google=Ae.com=Ae.Writer=Ae.Reader=void 0;var a,v=m($(9274)),A=function _(a){return a&&a.__esModule?a:{default:a}}($(7080)),T=m($(6783));function y(a){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(y=function(c){return c?i:r})(a)}function m(a,r){if(!r&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var i=y(r);if(i&&i.has(a))return i.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if("default"!=h&&Object.prototype.hasOwnProperty.call(a,h)){var g=d?Object.getOwnPropertyDescriptor(a,h):null;g&&(g.get||g.set)?Object.defineProperty(c,h,g):c[h]=a[h]}return c.default=a,i&&i.set(a,c),c}null==(a=v.util).Long&&(console.log("Patching Protobuf Long.js instance..."),a.Long=A.default,null!=v.Reader._configure&&v.Reader._configure(v.BufferReader)),Ae.Reader=v.Reader,Ae.Writer=v.Writer,Ae.proto=T.proto,Ae.com=T.com,Ae.google=T.google},6783:(Ne,Ae,$)=>{"use strict";var v=function T(k,a){if(!a&&k&&k.__esModule)return k;if(null===k||"object"!=typeof k&&"function"!=typeof k)return{default:k};var r=A(a);if(r&&r.has(k))return r.get(k);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in k)if("default"!=d&&Object.prototype.hasOwnProperty.call(k,d)){var h=c?Object.getOwnPropertyDescriptor(k,d):null;h&&(h.get||h.set)?Object.defineProperty(i,d,h):i[d]=k[d]}return i.default=k,r&&r.set(k,i),i}($(9274));function A(k){if("function"!=typeof WeakMap)return null;var a=new WeakMap,r=new WeakMap;return(A=function(i){return i?r:a})(k)}Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.proto=Ae.google=Ae.default=Ae.com=void 0;const _=v.Reader,y=v.Writer,m=v.util,f=v.roots.hashgraph||(v.roots.hashgraph={});Ae.default=f;const C=f.com={hedera:{mirror:{api:{proto:{ConsensusTopicQuery:function(){function d(h){if(h)for(var g=Object.keys(h),E=0;E>>3){case 1:P.topicID=f.proto.TopicID.decode(h,h.uint32());break;case 2:P.consensusStartTime=f.proto.Timestamp.decode(h,h.uint32());break;case 3:P.consensusEndTime=f.proto.Timestamp.decode(h,h.uint32());break;case 4:P.limit=h.uint64();break;default:h.skipType(7&U)}return P},d.getTypeUrl=function(h){return void 0===h&&(h="type.googleapis.com"),h+"/com.hedera.mirror.api.proto.ConsensusTopicQuery"},d}(),ConsensusTopicResponse:function(){function d(h){if(h)for(var g=Object.keys(h),E=0;E>>3){case 1:P.consensusTimestamp=f.proto.Timestamp.decode(h,h.uint32());break;case 2:P.message=h.bytes();break;case 3:P.runningHash=h.bytes();break;case 4:P.sequenceNumber=h.uint64();break;case 5:P.runningHashVersion=h.uint64();break;case 6:P.chunkInfo=f.proto.ConsensusMessageChunkInfo.decode(h,h.uint32());break;default:h.skipType(7&U)}return P},d.getTypeUrl=function(h){return void 0===h&&(h="type.googleapis.com"),h+"/com.hedera.mirror.api.proto.ConsensusTopicResponse"},d}(),ConsensusService:function(){function d(h,g,E){v.rpc.Service.call(this,h,g,E)}return(d.prototype=Object.create(v.rpc.Service.prototype)).constructor=d,d.create=function(h,g,E){return new this(h,g,E)},Object.defineProperty(d.prototype.subscribeTopic=function h(g,E){return this.rpcCall(h,f.com.hedera.mirror.api.proto.ConsensusTopicQuery,f.com.hedera.mirror.api.proto.ConsensusTopicResponse,g,E)},"name",{value:"subscribeTopic"}),d}(),AddressBookQuery:function(){function d(h){if(h)for(var g=Object.keys(h),E=0;E>>3){case 1:P.fileId=f.proto.FileID.decode(h,h.uint32());break;case 2:P.limit=h.int32();break;default:h.skipType(7&U)}return P},d.getTypeUrl=function(h){return void 0===h&&(h="type.googleapis.com"),h+"/com.hedera.mirror.api.proto.AddressBookQuery"},d}(),NetworkService:function(){function d(h,g,E){v.rpc.Service.call(this,h,g,E)}return(d.prototype=Object.create(v.rpc.Service.prototype)).constructor=d,d.create=function(h,g,E){return new this(h,g,E)},Object.defineProperty(d.prototype.getNodes=function h(g,E){return this.rpcCall(h,f.com.hedera.mirror.api.proto.AddressBookQuery,f.proto.NodeAddress,g,E)},"name",{value:"getNodes"}),d}()}}}}};Ae.com=C;const b=f.proto={TransactionList:function(){function a(r){if(this.transactionList=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.transactionList&&d.transactionList.length||(d.transactionList=[]),d.transactionList.push(f.proto.Transaction.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionList"},a}(),ShardID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.shardNum=r.int64():r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ShardID"},a}(),RealmID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.shardNum=r.int64();break;case 2:d.realmNum=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.RealmID"},a}(),AccountID:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.shardNum=i.int64();break;case 2:h.realmNum=i.int64();break;case 3:h.accountNum=i.int64();break;case 4:h.alias=i.bytes();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.AccountID"},a}(),FileID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.shardNum=r.int64();break;case 2:d.realmNum=r.int64();break;case 3:d.fileNum=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileID"},a}(),ContractID:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.shardNum=i.int64();break;case 2:h.realmNum=i.int64();break;case 3:h.contractNum=i.int64();break;case 4:h.evmAddress=i.bytes();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractID"},a}(),TransactionID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.transactionValidStart=f.proto.Timestamp.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.scheduled=r.bool();break;case 4:d.nonce=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionID"},a}(),AccountAmount:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.amount=r.sint64();break;case 3:d.isApproval=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.AccountAmount"},a}(),TransferList:function(){function a(r){if(this.accountAmounts=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.accountAmounts&&d.accountAmounts.length||(d.accountAmounts=[]),d.accountAmounts.push(f.proto.AccountAmount.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransferList"},a}(),NftTransfer:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.senderAccountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.receiverAccountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.serialNumber=r.int64();break;case 4:d.isApproval=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NftTransfer"},a}(),TokenTransferList:function(){function a(r){if(this.transfers=[],this.nftTransfers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.transfers&&d.transfers.length||(d.transfers=[]),d.transfers.push(f.proto.AccountAmount.decode(r,r.uint32()));break;case 3:d.nftTransfers&&d.nftTransfers.length||(d.nftTransfers=[]),d.nftTransfers.push(f.proto.NftTransfer.decode(r,r.uint32()));break;case 4:d.expectedDecimals=f.google.protobuf.UInt32Value.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenTransferList"},a}(),Fraction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.numerator=r.int64();break;case 2:d.denominator=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.Fraction"},a}(),TopicID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.shardNum=r.int64();break;case 2:d.realmNum=r.int64();break;case 3:d.topicNum=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TopicID"},a}(),TokenID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.shardNum=r.int64();break;case 2:d.realmNum=r.int64();break;case 3:d.tokenNum=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenID"},a}(),ScheduleID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.shardNum=r.int64();break;case 2:d.realmNum=r.int64();break;case 3:d.scheduleNum=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleID"},a}(),TokenType:function(){const a={},r=Object.create(a);return r[a[0]="FUNGIBLE_COMMON"]=0,r[a[1]="NON_FUNGIBLE_UNIQUE"]=1,r}(),SubType:function(){const a={},r=Object.create(a);return r[a[0]="DEFAULT"]=0,r[a[1]="TOKEN_FUNGIBLE_COMMON"]=1,r[a[2]="TOKEN_NON_FUNGIBLE_UNIQUE"]=2,r[a[3]="TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES"]=3,r[a[4]="TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES"]=4,r[a[5]="SCHEDULE_CREATE_CONTRACT_CALL"]=5,r}(),TokenSupplyType:function(){const a={},r=Object.create(a);return r[a[0]="INFINITE"]=0,r[a[1]="FINITE"]=1,r}(),TokenFreezeStatus:function(){const a={},r=Object.create(a);return r[a[0]="FreezeNotApplicable"]=0,r[a[1]="Frozen"]=1,r[a[2]="Unfrozen"]=2,r}(),TokenKycStatus:function(){const a={},r=Object.create(a);return r[a[0]="KycNotApplicable"]=0,r[a[1]="Granted"]=1,r[a[2]="Revoked"]=2,r}(),TokenPauseStatus:function(){const a={},r=Object.create(a);return r[a[0]="PauseNotApplicable"]=0,r[a[1]="Paused"]=1,r[a[2]="Unpaused"]=2,r}(),Key:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;case 2:h.ed25519=i.bytes();break;case 3:h.RSA_3072=i.bytes();break;case 4:h.ECDSA_384=i.bytes();break;case 5:h.thresholdKey=f.proto.ThresholdKey.decode(i,i.uint32());break;case 6:h.keyList=f.proto.KeyList.decode(i,i.uint32());break;case 7:h.ECDSASecp256k1=i.bytes();break;case 8:h.delegatableContractId=f.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.Key"},a}(),ThresholdKey:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.threshold=r.uint32();break;case 2:d.keys=f.proto.KeyList.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ThresholdKey"},a}(),KeyList:function(){function a(r){if(this.keys=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.keys&&d.keys.length||(d.keys=[]),d.keys.push(f.proto.Key.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.KeyList"},a}(),Signature:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.contract=i.bytes();break;case 2:h.ed25519=i.bytes();break;case 3:h.RSA_3072=i.bytes();break;case 4:h.ECDSA_384=i.bytes();break;case 5:h.thresholdSignature=f.proto.ThresholdSignature.decode(i,i.uint32());break;case 6:h.signatureList=f.proto.SignatureList.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.Signature"},a}(),ThresholdSignature:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.sigs=f.proto.SignatureList.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ThresholdSignature"},a}(),SignatureList:function(){function a(r){if(this.sigs=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.sigs&&d.sigs.length||(d.sigs=[]),d.sigs.push(f.proto.Signature.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SignatureList"},a}(),SignaturePair:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.pubKeyPrefix=i.bytes();break;case 2:h.contract=i.bytes();break;case 3:h.ed25519=i.bytes();break;case 4:h.RSA_3072=i.bytes();break;case 5:h.ECDSA_384=i.bytes();break;case 6:h.ECDSASecp256k1=i.bytes();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.SignaturePair"},a}(),SignatureMap:function(){function a(r){if(this.sigPair=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.sigPair&&d.sigPair.length||(d.sigPair=[]),d.sigPair.push(f.proto.SignaturePair.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SignatureMap"},a}(),HederaFunctionality:function(){const a={},r=Object.create(a);return r[a[0]="NONE"]=0,r[a[1]="CryptoTransfer"]=1,r[a[2]="CryptoUpdate"]=2,r[a[3]="CryptoDelete"]=3,r[a[4]="CryptoAddLiveHash"]=4,r[a[5]="CryptoDeleteLiveHash"]=5,r[a[6]="ContractCall"]=6,r[a[7]="ContractCreate"]=7,r[a[8]="ContractUpdate"]=8,r[a[9]="FileCreate"]=9,r[a[10]="FileAppend"]=10,r[a[11]="FileUpdate"]=11,r[a[12]="FileDelete"]=12,r[a[13]="CryptoGetAccountBalance"]=13,r[a[14]="CryptoGetAccountRecords"]=14,r[a[15]="CryptoGetInfo"]=15,r[a[16]="ContractCallLocal"]=16,r[a[17]="ContractGetInfo"]=17,r[a[18]="ContractGetBytecode"]=18,r[a[19]="GetBySolidityID"]=19,r[a[20]="GetByKey"]=20,r[a[21]="CryptoGetLiveHash"]=21,r[a[22]="CryptoGetStakers"]=22,r[a[23]="FileGetContents"]=23,r[a[24]="FileGetInfo"]=24,r[a[25]="TransactionGetRecord"]=25,r[a[26]="ContractGetRecords"]=26,r[a[27]="CryptoCreate"]=27,r[a[28]="SystemDelete"]=28,r[a[29]="SystemUndelete"]=29,r[a[30]="ContractDelete"]=30,r[a[31]="Freeze"]=31,r[a[32]="CreateTransactionRecord"]=32,r[a[33]="CryptoAccountAutoRenew"]=33,r[a[34]="ContractAutoRenew"]=34,r[a[35]="GetVersionInfo"]=35,r[a[36]="TransactionGetReceipt"]=36,r[a[50]="ConsensusCreateTopic"]=50,r[a[51]="ConsensusUpdateTopic"]=51,r[a[52]="ConsensusDeleteTopic"]=52,r[a[53]="ConsensusGetTopicInfo"]=53,r[a[54]="ConsensusSubmitMessage"]=54,r[a[55]="UncheckedSubmit"]=55,r[a[56]="TokenCreate"]=56,r[a[58]="TokenGetInfo"]=58,r[a[59]="TokenFreezeAccount"]=59,r[a[60]="TokenUnfreezeAccount"]=60,r[a[61]="TokenGrantKycToAccount"]=61,r[a[62]="TokenRevokeKycFromAccount"]=62,r[a[63]="TokenDelete"]=63,r[a[64]="TokenUpdate"]=64,r[a[65]="TokenMint"]=65,r[a[66]="TokenBurn"]=66,r[a[67]="TokenAccountWipe"]=67,r[a[68]="TokenAssociateToAccount"]=68,r[a[69]="TokenDissociateFromAccount"]=69,r[a[70]="ScheduleCreate"]=70,r[a[71]="ScheduleDelete"]=71,r[a[72]="ScheduleSign"]=72,r[a[73]="ScheduleGetInfo"]=73,r[a[74]="TokenGetAccountNftInfos"]=74,r[a[75]="TokenGetNftInfo"]=75,r[a[76]="TokenGetNftInfos"]=76,r[a[77]="TokenFeeScheduleUpdate"]=77,r[a[78]="NetworkGetExecutionTime"]=78,r[a[79]="TokenPause"]=79,r[a[80]="TokenUnpause"]=80,r[a[81]="CryptoApproveAllowance"]=81,r[a[82]="CryptoDeleteAllowance"]=82,r[a[83]="GetAccountDetails"]=83,r[a[84]="EthereumTransaction"]=84,r[a[85]="NodeStakeUpdate"]=85,r[a[86]="UtilPrng"]=86,r}(),FeeComponents:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.min=r.int64();break;case 2:d.max=r.int64();break;case 3:d.constant=r.int64();break;case 4:d.bpt=r.int64();break;case 5:d.vpt=r.int64();break;case 6:d.rbh=r.int64();break;case 7:d.sbh=r.int64();break;case 8:d.gas=r.int64();break;case 9:d.tv=r.int64();break;case 10:d.bpr=r.int64();break;case 11:d.sbpr=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FeeComponents"},a}(),TransactionFeeSchedule:function(){function a(r){if(this.fees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.hederaFunctionality=r.int32();break;case 2:d.feeData=f.proto.FeeData.decode(r,r.uint32());break;case 3:d.fees&&d.fees.length||(d.fees=[]),d.fees.push(f.proto.FeeData.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionFeeSchedule"},a}(),FeeData:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.nodedata=f.proto.FeeComponents.decode(r,r.uint32());break;case 2:d.networkdata=f.proto.FeeComponents.decode(r,r.uint32());break;case 3:d.servicedata=f.proto.FeeComponents.decode(r,r.uint32());break;case 4:d.subType=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FeeData"},a}(),FeeSchedule:function(){function a(r){if(this.transactionFeeSchedule=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.transactionFeeSchedule&&d.transactionFeeSchedule.length||(d.transactionFeeSchedule=[]),d.transactionFeeSchedule.push(f.proto.TransactionFeeSchedule.decode(r,r.uint32()));break;case 2:d.expiryTime=f.proto.TimestampSeconds.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FeeSchedule"},a}(),CurrentAndNextFeeSchedule:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.currentFeeSchedule=f.proto.FeeSchedule.decode(r,r.uint32());break;case 2:d.nextFeeSchedule=f.proto.FeeSchedule.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CurrentAndNextFeeSchedule"},a}(),ServiceEndpoint:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.ipAddressV4=r.bytes();break;case 2:d.port=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ServiceEndpoint"},a}(),NodeAddress:function(){function a(r){if(this.serviceEndpoint=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.ipAddress=r.bytes();break;case 2:d.portno=r.int32();break;case 3:d.memo=r.bytes();break;case 4:d.RSA_PubKey=r.string();break;case 5:d.nodeId=r.int64();break;case 6:d.nodeAccountId=f.proto.AccountID.decode(r,r.uint32());break;case 7:d.nodeCertHash=r.bytes();break;case 8:d.serviceEndpoint&&d.serviceEndpoint.length||(d.serviceEndpoint=[]),d.serviceEndpoint.push(f.proto.ServiceEndpoint.decode(r,r.uint32()));break;case 9:d.description=r.string();break;case 10:d.stake=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NodeAddress"},a}(),NodeAddressBook:function(){function a(r){if(this.nodeAddress=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.nodeAddress&&d.nodeAddress.length||(d.nodeAddress=[]),d.nodeAddress.push(f.proto.NodeAddress.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NodeAddressBook"},a}(),SemanticVersion:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.major=r.int32();break;case 2:d.minor=r.int32();break;case 3:d.patch=r.int32();break;case 4:d.pre=r.string();break;case 5:d.build=r.string();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SemanticVersion"},a}(),Setting:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.name=r.string();break;case 2:d.value=r.string();break;case 3:d.data=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.Setting"},a}(),ServicesConfigurationList:function(){function a(r){if(this.nameValue=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.nameValue&&d.nameValue.length||(d.nameValue=[]),d.nameValue.push(f.proto.Setting.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ServicesConfigurationList"},a}(),TokenRelationship:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.symbol=r.string();break;case 3:d.balance=r.uint64();break;case 4:d.kycStatus=r.int32();break;case 5:d.freezeStatus=r.int32();break;case 6:d.decimals=r.uint32();break;case 7:d.automaticAssociation=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenRelationship"},a}(),TokenBalance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.balance=r.uint64();break;case 3:d.decimals=r.uint32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenBalance"},a}(),TokenBalances:function(){function a(r){if(this.tokenBalances=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.tokenBalances&&d.tokenBalances.length||(d.tokenBalances=[]),d.tokenBalances.push(f.proto.TokenBalance.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenBalances"},a}(),TokenAssociation:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.accountId=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenAssociation"},a}(),StakingInfo:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.declineReward=i.bool();break;case 2:h.stakePeriodStart=f.proto.Timestamp.decode(i,i.uint32());break;case 3:h.pendingReward=i.int64();break;case 4:h.stakedToMe=i.int64();break;case 5:h.stakedAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 6:h.stakedNodeId=i.int64();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.StakingInfo"},a}(),Timestamp:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.seconds=r.int64();break;case 2:d.nanos=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.Timestamp"},a}(),TimestampSeconds:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.seconds=r.int64():r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TimestampSeconds"},a}(),ConsensusCreateTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.memo=r.string();break;case 2:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 3:d.submitKey=f.proto.Key.decode(r,r.uint32());break;case 6:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 7:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusCreateTopicTransactionBody"},a}(),Duration:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.seconds=r.int64():r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.Duration"},a}(),ConsensusDeleteTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.topicID=f.proto.TopicID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusDeleteTopicTransactionBody"},a}(),ConsensusGetTopicInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.topicID=f.proto.TopicID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusGetTopicInfoQuery"},a}(),ConsensusGetTopicInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.topicID=f.proto.TopicID.decode(r,r.uint32());break;case 5:d.topicInfo=f.proto.ConsensusTopicInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusGetTopicInfoResponse"},a}(),ResponseType:function(){const a={},r=Object.create(a);return r[a[0]="ANSWER_ONLY"]=0,r[a[1]="ANSWER_STATE_PROOF"]=1,r[a[2]="COST_ANSWER"]=2,r[a[3]="COST_ANSWER_STATE_PROOF"]=3,r}(),QueryHeader:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.payment=f.proto.Transaction.decode(r,r.uint32());break;case 2:d.responseType=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.QueryHeader"},a}(),Transaction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.body=f.proto.TransactionBody.decode(r,r.uint32());break;case 2:d.sigs=f.proto.SignatureList.decode(r,r.uint32());break;case 3:d.sigMap=f.proto.SignatureMap.decode(r,r.uint32());break;case 4:d.bodyBytes=r.bytes();break;case 5:d.signedTransactionBytes=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.Transaction"},a}(),TransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.transactionID=f.proto.TransactionID.decode(i,i.uint32());break;case 2:h.nodeAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.transactionFee=i.uint64();break;case 4:h.transactionValidDuration=f.proto.Duration.decode(i,i.uint32());break;case 5:h.generateRecord=i.bool();break;case 6:h.memo=i.string();break;case 7:h.contractCall=f.proto.ContractCallTransactionBody.decode(i,i.uint32());break;case 8:h.contractCreateInstance=f.proto.ContractCreateTransactionBody.decode(i,i.uint32());break;case 9:h.contractUpdateInstance=f.proto.ContractUpdateTransactionBody.decode(i,i.uint32());break;case 22:h.contractDeleteInstance=f.proto.ContractDeleteTransactionBody.decode(i,i.uint32());break;case 50:h.ethereumTransaction=f.proto.EthereumTransactionBody.decode(i,i.uint32());break;case 10:h.cryptoAddLiveHash=f.proto.CryptoAddLiveHashTransactionBody.decode(i,i.uint32());break;case 48:h.cryptoApproveAllowance=f.proto.CryptoApproveAllowanceTransactionBody.decode(i,i.uint32());break;case 49:h.cryptoDeleteAllowance=f.proto.CryptoDeleteAllowanceTransactionBody.decode(i,i.uint32());break;case 11:h.cryptoCreateAccount=f.proto.CryptoCreateTransactionBody.decode(i,i.uint32());break;case 12:h.cryptoDelete=f.proto.CryptoDeleteTransactionBody.decode(i,i.uint32());break;case 13:h.cryptoDeleteLiveHash=f.proto.CryptoDeleteLiveHashTransactionBody.decode(i,i.uint32());break;case 14:h.cryptoTransfer=f.proto.CryptoTransferTransactionBody.decode(i,i.uint32());break;case 15:h.cryptoUpdateAccount=f.proto.CryptoUpdateTransactionBody.decode(i,i.uint32());break;case 16:h.fileAppend=f.proto.FileAppendTransactionBody.decode(i,i.uint32());break;case 17:h.fileCreate=f.proto.FileCreateTransactionBody.decode(i,i.uint32());break;case 18:h.fileDelete=f.proto.FileDeleteTransactionBody.decode(i,i.uint32());break;case 19:h.fileUpdate=f.proto.FileUpdateTransactionBody.decode(i,i.uint32());break;case 20:h.systemDelete=f.proto.SystemDeleteTransactionBody.decode(i,i.uint32());break;case 21:h.systemUndelete=f.proto.SystemUndeleteTransactionBody.decode(i,i.uint32());break;case 23:h.freeze=f.proto.FreezeTransactionBody.decode(i,i.uint32());break;case 24:h.consensusCreateTopic=f.proto.ConsensusCreateTopicTransactionBody.decode(i,i.uint32());break;case 25:h.consensusUpdateTopic=f.proto.ConsensusUpdateTopicTransactionBody.decode(i,i.uint32());break;case 26:h.consensusDeleteTopic=f.proto.ConsensusDeleteTopicTransactionBody.decode(i,i.uint32());break;case 27:h.consensusSubmitMessage=f.proto.ConsensusSubmitMessageTransactionBody.decode(i,i.uint32());break;case 28:h.uncheckedSubmit=f.proto.UncheckedSubmitBody.decode(i,i.uint32());break;case 29:h.tokenCreation=f.proto.TokenCreateTransactionBody.decode(i,i.uint32());break;case 31:h.tokenFreeze=f.proto.TokenFreezeAccountTransactionBody.decode(i,i.uint32());break;case 32:h.tokenUnfreeze=f.proto.TokenUnfreezeAccountTransactionBody.decode(i,i.uint32());break;case 33:h.tokenGrantKyc=f.proto.TokenGrantKycTransactionBody.decode(i,i.uint32());break;case 34:h.tokenRevokeKyc=f.proto.TokenRevokeKycTransactionBody.decode(i,i.uint32());break;case 35:h.tokenDeletion=f.proto.TokenDeleteTransactionBody.decode(i,i.uint32());break;case 36:h.tokenUpdate=f.proto.TokenUpdateTransactionBody.decode(i,i.uint32());break;case 37:h.tokenMint=f.proto.TokenMintTransactionBody.decode(i,i.uint32());break;case 38:h.tokenBurn=f.proto.TokenBurnTransactionBody.decode(i,i.uint32());break;case 39:h.tokenWipe=f.proto.TokenWipeAccountTransactionBody.decode(i,i.uint32());break;case 40:h.tokenAssociate=f.proto.TokenAssociateTransactionBody.decode(i,i.uint32());break;case 41:h.tokenDissociate=f.proto.TokenDissociateTransactionBody.decode(i,i.uint32());break;case 45:h.tokenFeeScheduleUpdate=f.proto.TokenFeeScheduleUpdateTransactionBody.decode(i,i.uint32());break;case 46:h.tokenPause=f.proto.TokenPauseTransactionBody.decode(i,i.uint32());break;case 47:h.tokenUnpause=f.proto.TokenUnpauseTransactionBody.decode(i,i.uint32());break;case 42:h.scheduleCreate=f.proto.ScheduleCreateTransactionBody.decode(i,i.uint32());break;case 43:h.scheduleDelete=f.proto.ScheduleDeleteTransactionBody.decode(i,i.uint32());break;case 44:h.scheduleSign=f.proto.ScheduleSignTransactionBody.decode(i,i.uint32());break;case 51:h.nodeStakeUpdate=f.proto.NodeStakeUpdateTransactionBody.decode(i,i.uint32());break;case 52:h.utilPrng=f.proto.UtilPrngTransactionBody.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.TransactionBody"},a}(),SystemDeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 2:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;case 3:h.expirationTime=f.proto.TimestampSeconds.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.SystemDeleteTransactionBody"},a}(),SystemUndeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 2:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.SystemUndeleteTransactionBody"},a}(),FreezeTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.startHour=r.int32();break;case 2:d.startMin=r.int32();break;case 3:d.endHour=r.int32();break;case 4:d.endMin=r.int32();break;case 5:d.updateFile=f.proto.FileID.decode(r,r.uint32());break;case 6:d.fileHash=r.bytes();break;case 7:d.startTime=f.proto.Timestamp.decode(r,r.uint32());break;case 8:d.freezeType=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FreezeTransactionBody"},a}(),FreezeType:function(){const a={},r=Object.create(a);return r[a[0]="UNKNOWN_FREEZE_TYPE"]=0,r[a[1]="FREEZE_ONLY"]=1,r[a[2]="PREPARE_UPGRADE"]=2,r[a[3]="FREEZE_UPGRADE"]=3,r[a[4]="FREEZE_ABORT"]=4,r[a[5]="TELEMETRY_UPGRADE"]=5,r}(),ContractCallTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.gas=r.int64();break;case 3:d.amount=r.int64();break;case 4:d.functionParameters=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractCallTransactionBody"},a}(),ContractCreateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 16:h.initcode=i.bytes();break;case 3:h.adminKey=f.proto.Key.decode(i,i.uint32());break;case 4:h.gas=i.int64();break;case 5:h.initialBalance=i.int64();break;case 6:h.proxyAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 8:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 9:h.constructorParameters=i.bytes();break;case 10:h.shardID=f.proto.ShardID.decode(i,i.uint32());break;case 11:h.realmID=f.proto.RealmID.decode(i,i.uint32());break;case 12:h.newRealmAdminKey=f.proto.Key.decode(i,i.uint32());break;case 13:h.memo=i.string();break;case 14:h.maxAutomaticTokenAssociations=i.int32();break;case 15:h.autoRenewAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 17:h.stakedAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 18:h.stakedNodeId=i.int64();break;case 19:h.declineReward=i.bool();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractCreateTransactionBody"},a}(),ContractUpdateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;case 2:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 3:h.adminKey=f.proto.Key.decode(i,i.uint32());break;case 6:h.proxyAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 7:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 8:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 9:h.memo=i.string();break;case 10:h.memoWrapper=f.google.protobuf.StringValue.decode(i,i.uint32());break;case 11:h.maxAutomaticTokenAssociations=f.google.protobuf.Int32Value.decode(i,i.uint32());break;case 12:h.autoRenewAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 13:h.stakedAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 14:h.stakedNodeId=i.int64();break;case 15:h.declineReward=f.google.protobuf.BoolValue.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractUpdateTransactionBody"},a}(),LiveHash:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountId=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.hash=r.bytes();break;case 3:d.keys=f.proto.KeyList.decode(r,r.uint32());break;case 5:d.duration=f.proto.Duration.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.LiveHash"},a}(),CryptoAddLiveHashTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.liveHash=f.proto.LiveHash.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoAddLiveHashTransactionBody"},a}(),CryptoCreateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.key=f.proto.Key.decode(i,i.uint32());break;case 2:h.initialBalance=i.uint64();break;case 3:h.proxyAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 6:h.sendRecordThreshold=i.uint64();break;case 7:h.receiveRecordThreshold=i.uint64();break;case 8:h.receiverSigRequired=i.bool();break;case 9:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 10:h.shardID=f.proto.ShardID.decode(i,i.uint32());break;case 11:h.realmID=f.proto.RealmID.decode(i,i.uint32());break;case 12:h.newRealmAdminKey=f.proto.Key.decode(i,i.uint32());break;case 13:h.memo=i.string();break;case 14:h.maxAutomaticTokenAssociations=i.int32();break;case 15:h.stakedAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 16:h.stakedNodeId=i.int64();break;case 17:h.declineReward=i.bool();break;case 18:h.alias=i.bytes();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.CryptoCreateTransactionBody"},a}(),CryptoDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.transferAccountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.deleteAccountID=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoDeleteTransactionBody"},a}(),CryptoDeleteLiveHashTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountOfLiveHash=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.liveHashToDelete=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoDeleteLiveHashTransactionBody"},a}(),CryptoTransferTransactionBody:function(){function a(r){if(this.tokenTransfers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.transfers=f.proto.TransferList.decode(r,r.uint32());break;case 2:d.tokenTransfers&&d.tokenTransfers.length||(d.tokenTransfers=[]),d.tokenTransfers.push(f.proto.TokenTransferList.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoTransferTransactionBody"},a}(),CryptoUpdateTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 2:h.accountIDToUpdate=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.key=f.proto.Key.decode(i,i.uint32());break;case 4:h.proxyAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 5:h.proxyFraction=i.int32();break;case 6:h.sendRecordThreshold=i.uint64();break;case 11:h.sendRecordThresholdWrapper=f.google.protobuf.UInt64Value.decode(i,i.uint32());break;case 7:h.receiveRecordThreshold=i.uint64();break;case 12:h.receiveRecordThresholdWrapper=f.google.protobuf.UInt64Value.decode(i,i.uint32());break;case 8:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 9:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 10:h.receiverSigRequired=i.bool();break;case 13:h.receiverSigRequiredWrapper=f.google.protobuf.BoolValue.decode(i,i.uint32());break;case 14:h.memo=f.google.protobuf.StringValue.decode(i,i.uint32());break;case 15:h.maxAutomaticTokenAssociations=f.google.protobuf.Int32Value.decode(i,i.uint32());break;case 16:h.stakedAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 17:h.stakedNodeId=i.int64();break;case 18:h.declineReward=f.google.protobuf.BoolValue.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.CryptoUpdateTransactionBody"},a}(),CryptoApproveAllowanceTransactionBody:function(){function a(r){if(this.cryptoAllowances=[],this.nftAllowances=[],this.tokenAllowances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.cryptoAllowances&&d.cryptoAllowances.length||(d.cryptoAllowances=[]),d.cryptoAllowances.push(f.proto.CryptoAllowance.decode(r,r.uint32()));break;case 2:d.nftAllowances&&d.nftAllowances.length||(d.nftAllowances=[]),d.nftAllowances.push(f.proto.NftAllowance.decode(r,r.uint32()));break;case 3:d.tokenAllowances&&d.tokenAllowances.length||(d.tokenAllowances=[]),d.tokenAllowances.push(f.proto.TokenAllowance.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoApproveAllowanceTransactionBody"},a}(),CryptoAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.owner=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.spender=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.amount=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoAllowance"},a}(),NftAllowance:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.owner=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.spender=f.proto.AccountID.decode(r,r.uint32());break;case 4:if(d.serialNumbers&&d.serialNumbers.length||(d.serialNumbers=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.owner=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.spender=f.proto.AccountID.decode(r,r.uint32());break;case 4:d.amount=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenAllowance"},a}(),CryptoDeleteAllowanceTransactionBody:function(){function a(r){if(this.nftAllowances=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.nftAllowances&&d.nftAllowances.length||(d.nftAllowances=[]),d.nftAllowances.push(f.proto.NftRemoveAllowance.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoDeleteAllowanceTransactionBody"},a}(),NftRemoveAllowance:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.owner=f.proto.AccountID.decode(r,r.uint32());break;case 3:if(d.serialNumbers&&d.serialNumbers.length||(d.serialNumbers=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.ethereumData=r.bytes();break;case 2:d.callData=f.proto.FileID.decode(r,r.uint32());break;case 3:d.maxGasAllowance=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.EthereumTransactionBody"},a}(),FileAppendTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 2:d.fileID=f.proto.FileID.decode(r,r.uint32());break;case 4:d.contents=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileAppendTransactionBody"},a}(),FileCreateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 2:d.expirationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 3:d.keys=f.proto.KeyList.decode(r,r.uint32());break;case 4:d.contents=r.bytes();break;case 5:d.shardID=f.proto.ShardID.decode(r,r.uint32());break;case 6:d.realmID=f.proto.RealmID.decode(r,r.uint32());break;case 7:d.newRealmAdminKey=f.proto.Key.decode(r,r.uint32());break;case 8:d.memo=r.string();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileCreateTransactionBody"},a}(),FileDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.fileID=f.proto.FileID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileDeleteTransactionBody"},a}(),FileUpdateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.fileID=f.proto.FileID.decode(r,r.uint32());break;case 2:d.expirationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 3:d.keys=f.proto.KeyList.decode(r,r.uint32());break;case 4:d.contents=r.bytes();break;case 5:d.memo=f.google.protobuf.StringValue.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileUpdateTransactionBody"},a}(),ContractDeleteTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;case 2:h.transferAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.transferContractID=f.proto.ContractID.decode(i,i.uint32());break;case 4:h.permanentRemoval=i.bool();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractDeleteTransactionBody"},a}(),ConsensusUpdateTopicTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.topicID=f.proto.TopicID.decode(r,r.uint32());break;case 2:d.memo=f.google.protobuf.StringValue.decode(r,r.uint32());break;case 4:d.expirationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 6:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 7:d.submitKey=f.proto.Key.decode(r,r.uint32());break;case 8:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 9:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusUpdateTopicTransactionBody"},a}(),ConsensusMessageChunkInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.initialTransactionID=f.proto.TransactionID.decode(r,r.uint32());break;case 2:d.total=r.int32();break;case 3:d.number=r.int32();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusMessageChunkInfo"},a}(),ConsensusSubmitMessageTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.topicID=f.proto.TopicID.decode(r,r.uint32());break;case 2:d.message=r.bytes();break;case 3:d.chunkInfo=f.proto.ConsensusMessageChunkInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusSubmitMessageTransactionBody"},a}(),UncheckedSubmitBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.transactionBytes=r.bytes():r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.UncheckedSubmitBody"},a}(),TokenCreateTransactionBody:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.name=r.string();break;case 2:d.symbol=r.string();break;case 3:d.decimals=r.uint32();break;case 4:d.initialSupply=r.uint64();break;case 5:d.treasury=f.proto.AccountID.decode(r,r.uint32());break;case 6:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 7:d.kycKey=f.proto.Key.decode(r,r.uint32());break;case 8:d.freezeKey=f.proto.Key.decode(r,r.uint32());break;case 9:d.wipeKey=f.proto.Key.decode(r,r.uint32());break;case 10:d.supplyKey=f.proto.Key.decode(r,r.uint32());break;case 11:d.freezeDefault=r.bool();break;case 13:d.expiry=f.proto.Timestamp.decode(r,r.uint32());break;case 14:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;case 15:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 16:d.memo=r.string();break;case 17:d.tokenType=r.int32();break;case 18:d.supplyType=r.int32();break;case 19:d.maxSupply=r.int64();break;case 20:d.feeScheduleKey=f.proto.Key.decode(r,r.uint32());break;case 21:d.customFees&&d.customFees.length||(d.customFees=[]),d.customFees.push(f.proto.CustomFee.decode(r,r.uint32()));break;case 22:d.pauseKey=f.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenCreateTransactionBody"},a}(),FractionalFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.fractionalAmount=f.proto.Fraction.decode(r,r.uint32());break;case 2:d.minimumAmount=r.int64();break;case 3:d.maximumAmount=r.int64();break;case 4:d.netOfTransfers=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FractionalFee"},a}(),FixedFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.amount=r.int64();break;case 2:d.denominatingTokenId=f.proto.TokenID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FixedFee"},a}(),RoyaltyFee:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.exchangeValueFraction=f.proto.Fraction.decode(r,r.uint32());break;case 2:d.fallbackFee=f.proto.FixedFee.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.RoyaltyFee"},a}(),CustomFee:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fixedFee=f.proto.FixedFee.decode(i,i.uint32());break;case 2:h.fractionalFee=f.proto.FractionalFee.decode(i,i.uint32());break;case 4:h.royaltyFee=f.proto.RoyaltyFee.decode(i,i.uint32());break;case 3:h.feeCollectorAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 5:h.allCollectorsAreExempt=i.bool();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.CustomFee"},a}(),AssessedCustomFee:function(){function a(r){if(this.effectivePayerAccountId=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.amount=r.int64();break;case 2:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 3:d.feeCollectorAccountId=f.proto.AccountID.decode(r,r.uint32());break;case 4:d.effectivePayerAccountId&&d.effectivePayerAccountId.length||(d.effectivePayerAccountId=[]),d.effectivePayerAccountId.push(f.proto.AccountID.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.AssessedCustomFee"},a}(),TokenFreezeAccountTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.account=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenFreezeAccountTransactionBody"},a}(),TokenUnfreezeAccountTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.account=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenUnfreezeAccountTransactionBody"},a}(),TokenGrantKycTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.account=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGrantKycTransactionBody"},a}(),TokenRevokeKycTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.account=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenRevokeKycTransactionBody"},a}(),TokenDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.token=f.proto.TokenID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenDeleteTransactionBody"},a}(),TokenUpdateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.symbol=r.string();break;case 3:d.name=r.string();break;case 4:d.treasury=f.proto.AccountID.decode(r,r.uint32());break;case 5:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 6:d.kycKey=f.proto.Key.decode(r,r.uint32());break;case 7:d.freezeKey=f.proto.Key.decode(r,r.uint32());break;case 8:d.wipeKey=f.proto.Key.decode(r,r.uint32());break;case 9:d.supplyKey=f.proto.Key.decode(r,r.uint32());break;case 10:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;case 11:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 12:d.expiry=f.proto.Timestamp.decode(r,r.uint32());break;case 13:d.memo=f.google.protobuf.StringValue.decode(r,r.uint32());break;case 14:d.feeScheduleKey=f.proto.Key.decode(r,r.uint32());break;case 15:d.pauseKey=f.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenUpdateTransactionBody"},a}(),TokenMintTransactionBody:function(){function a(r){if(this.metadata=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.amount=r.uint64();break;case 3:d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(r.bytes());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenMintTransactionBody"},a}(),TokenBurnTransactionBody:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.amount=r.uint64();break;case 3:if(d.serialNumbers&&d.serialNumbers.length||(d.serialNumbers=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.token=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.account=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.amount=r.uint64();break;case 4:if(d.serialNumbers&&d.serialNumbers.length||(d.serialNumbers=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.account=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.tokens&&d.tokens.length||(d.tokens=[]),d.tokens.push(f.proto.TokenID.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenAssociateTransactionBody"},a}(),TokenDissociateTransactionBody:function(){function a(r){if(this.tokens=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.account=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.tokens&&d.tokens.length||(d.tokens=[]),d.tokens.push(f.proto.TokenID.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenDissociateTransactionBody"},a}(),TokenFeeScheduleUpdateTransactionBody:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.customFees&&d.customFees.length||(d.customFees=[]),d.customFees.push(f.proto.CustomFee.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenFeeScheduleUpdateTransactionBody"},a}(),TokenPauseTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.token=f.proto.TokenID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenPauseTransactionBody"},a}(),TokenUnpauseTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.token=f.proto.TokenID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenUnpauseTransactionBody"},a}(),ScheduleCreateTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.scheduledTransactionBody=f.proto.SchedulableTransactionBody.decode(r,r.uint32());break;case 2:d.memo=r.string();break;case 3:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 4:d.payerAccountID=f.proto.AccountID.decode(r,r.uint32());break;case 5:d.expirationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 13:d.waitForExpiry=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleCreateTransactionBody"},a}(),SchedulableTransactionBody:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.transactionFee=i.uint64();break;case 2:h.memo=i.string();break;case 3:h.contractCall=f.proto.ContractCallTransactionBody.decode(i,i.uint32());break;case 4:h.contractCreateInstance=f.proto.ContractCreateTransactionBody.decode(i,i.uint32());break;case 5:h.contractUpdateInstance=f.proto.ContractUpdateTransactionBody.decode(i,i.uint32());break;case 6:h.contractDeleteInstance=f.proto.ContractDeleteTransactionBody.decode(i,i.uint32());break;case 37:h.cryptoApproveAllowance=f.proto.CryptoApproveAllowanceTransactionBody.decode(i,i.uint32());break;case 38:h.cryptoDeleteAllowance=f.proto.CryptoDeleteAllowanceTransactionBody.decode(i,i.uint32());break;case 7:h.cryptoCreateAccount=f.proto.CryptoCreateTransactionBody.decode(i,i.uint32());break;case 8:h.cryptoDelete=f.proto.CryptoDeleteTransactionBody.decode(i,i.uint32());break;case 9:h.cryptoTransfer=f.proto.CryptoTransferTransactionBody.decode(i,i.uint32());break;case 10:h.cryptoUpdateAccount=f.proto.CryptoUpdateTransactionBody.decode(i,i.uint32());break;case 11:h.fileAppend=f.proto.FileAppendTransactionBody.decode(i,i.uint32());break;case 12:h.fileCreate=f.proto.FileCreateTransactionBody.decode(i,i.uint32());break;case 13:h.fileDelete=f.proto.FileDeleteTransactionBody.decode(i,i.uint32());break;case 14:h.fileUpdate=f.proto.FileUpdateTransactionBody.decode(i,i.uint32());break;case 15:h.systemDelete=f.proto.SystemDeleteTransactionBody.decode(i,i.uint32());break;case 16:h.systemUndelete=f.proto.SystemUndeleteTransactionBody.decode(i,i.uint32());break;case 17:h.freeze=f.proto.FreezeTransactionBody.decode(i,i.uint32());break;case 18:h.consensusCreateTopic=f.proto.ConsensusCreateTopicTransactionBody.decode(i,i.uint32());break;case 19:h.consensusUpdateTopic=f.proto.ConsensusUpdateTopicTransactionBody.decode(i,i.uint32());break;case 20:h.consensusDeleteTopic=f.proto.ConsensusDeleteTopicTransactionBody.decode(i,i.uint32());break;case 21:h.consensusSubmitMessage=f.proto.ConsensusSubmitMessageTransactionBody.decode(i,i.uint32());break;case 22:h.tokenCreation=f.proto.TokenCreateTransactionBody.decode(i,i.uint32());break;case 23:h.tokenFreeze=f.proto.TokenFreezeAccountTransactionBody.decode(i,i.uint32());break;case 24:h.tokenUnfreeze=f.proto.TokenUnfreezeAccountTransactionBody.decode(i,i.uint32());break;case 25:h.tokenGrantKyc=f.proto.TokenGrantKycTransactionBody.decode(i,i.uint32());break;case 26:h.tokenRevokeKyc=f.proto.TokenRevokeKycTransactionBody.decode(i,i.uint32());break;case 27:h.tokenDeletion=f.proto.TokenDeleteTransactionBody.decode(i,i.uint32());break;case 28:h.tokenUpdate=f.proto.TokenUpdateTransactionBody.decode(i,i.uint32());break;case 29:h.tokenMint=f.proto.TokenMintTransactionBody.decode(i,i.uint32());break;case 30:h.tokenBurn=f.proto.TokenBurnTransactionBody.decode(i,i.uint32());break;case 31:h.tokenWipe=f.proto.TokenWipeAccountTransactionBody.decode(i,i.uint32());break;case 32:h.tokenAssociate=f.proto.TokenAssociateTransactionBody.decode(i,i.uint32());break;case 33:h.tokenDissociate=f.proto.TokenDissociateTransactionBody.decode(i,i.uint32());break;case 39:h.tokenFeeScheduleUpdate=f.proto.TokenFeeScheduleUpdateTransactionBody.decode(i,i.uint32());break;case 35:h.tokenPause=f.proto.TokenPauseTransactionBody.decode(i,i.uint32());break;case 36:h.tokenUnpause=f.proto.TokenUnpauseTransactionBody.decode(i,i.uint32());break;case 34:h.scheduleDelete=f.proto.ScheduleDeleteTransactionBody.decode(i,i.uint32());break;case 40:h.utilPrng=f.proto.UtilPrngTransactionBody.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.SchedulableTransactionBody"},a}(),ScheduleDeleteTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.scheduleID=f.proto.ScheduleID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleDeleteTransactionBody"},a}(),UtilPrngTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.range=r.int32():r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.UtilPrngTransactionBody"},a}(),ScheduleSignTransactionBody:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.scheduleID=f.proto.ScheduleID.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleSignTransactionBody"},a}(),NodeStakeUpdateTransactionBody:function(){function a(r){if(this.nodeStake=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.endOfStakingPeriod=f.proto.Timestamp.decode(r,r.uint32());break;case 2:d.nodeStake&&d.nodeStake.length||(d.nodeStake=[]),d.nodeStake.push(f.proto.NodeStake.decode(r,r.uint32()));break;case 3:d.maxStakingRewardRatePerHbar=r.int64();break;case 4:d.nodeRewardFeeFraction=f.proto.Fraction.decode(r,r.uint32());break;case 5:d.stakingPeriodsStored=r.int64();break;case 6:d.stakingPeriod=r.int64();break;case 7:d.stakingRewardFeeFraction=f.proto.Fraction.decode(r,r.uint32());break;case 8:d.stakingStartThreshold=r.int64();break;case 9:d.stakingRewardRate=r.int64();break;case 10:d.reservedStakingRewards=r.int64();break;case 11:d.unreservedStakingRewardBalance=r.int64();break;case 12:d.rewardBalanceThreshold=r.int64();break;case 13:d.maxStakeRewarded=r.int64();break;case 14:d.maxTotalReward=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NodeStakeUpdateTransactionBody"},a}(),NodeStake:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.maxStake=r.int64();break;case 2:d.minStake=r.int64();break;case 3:d.nodeId=r.int64();break;case 4:d.rewardRate=r.int64();break;case 5:d.stake=r.int64();break;case 6:d.stakeNotRewarded=r.int64();break;case 7:d.stakeRewarded=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NodeStake"},a}(),ResponseHeader:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.nodeTransactionPrecheckCode=r.int32();break;case 2:d.responseType=r.int32();break;case 3:d.cost=r.uint64();break;case 4:d.stateProof=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ResponseHeader"},a}(),TransactionResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.nodeTransactionPrecheckCode=r.int32();break;case 2:d.cost=r.uint64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionResponse"},a}(),ResponseCodeEnum:function(){const a={},r=Object.create(a);return r[a[0]="OK"]=0,r[a[1]="INVALID_TRANSACTION"]=1,r[a[2]="PAYER_ACCOUNT_NOT_FOUND"]=2,r[a[3]="INVALID_NODE_ACCOUNT"]=3,r[a[4]="TRANSACTION_EXPIRED"]=4,r[a[5]="INVALID_TRANSACTION_START"]=5,r[a[6]="INVALID_TRANSACTION_DURATION"]=6,r[a[7]="INVALID_SIGNATURE"]=7,r[a[8]="MEMO_TOO_LONG"]=8,r[a[9]="INSUFFICIENT_TX_FEE"]=9,r[a[10]="INSUFFICIENT_PAYER_BALANCE"]=10,r[a[11]="DUPLICATE_TRANSACTION"]=11,r[a[12]="BUSY"]=12,r[a[13]="NOT_SUPPORTED"]=13,r[a[14]="INVALID_FILE_ID"]=14,r[a[15]="INVALID_ACCOUNT_ID"]=15,r[a[16]="INVALID_CONTRACT_ID"]=16,r[a[17]="INVALID_TRANSACTION_ID"]=17,r[a[18]="RECEIPT_NOT_FOUND"]=18,r[a[19]="RECORD_NOT_FOUND"]=19,r[a[20]="INVALID_SOLIDITY_ID"]=20,r[a[21]="UNKNOWN"]=21,r[a[22]="SUCCESS"]=22,r[a[23]="FAIL_INVALID"]=23,r[a[24]="FAIL_FEE"]=24,r[a[25]="FAIL_BALANCE"]=25,r[a[26]="KEY_REQUIRED"]=26,r[a[27]="BAD_ENCODING"]=27,r[a[28]="INSUFFICIENT_ACCOUNT_BALANCE"]=28,r[a[29]="INVALID_SOLIDITY_ADDRESS"]=29,r[a[30]="INSUFFICIENT_GAS"]=30,r[a[31]="CONTRACT_SIZE_LIMIT_EXCEEDED"]=31,r[a[32]="LOCAL_CALL_MODIFICATION_EXCEPTION"]=32,r[a[33]="CONTRACT_REVERT_EXECUTED"]=33,r[a[34]="CONTRACT_EXECUTION_EXCEPTION"]=34,r[a[35]="INVALID_RECEIVING_NODE_ACCOUNT"]=35,r[a[36]="MISSING_QUERY_HEADER"]=36,r[a[37]="ACCOUNT_UPDATE_FAILED"]=37,r[a[38]="INVALID_KEY_ENCODING"]=38,r[a[39]="NULL_SOLIDITY_ADDRESS"]=39,r[a[40]="CONTRACT_UPDATE_FAILED"]=40,r[a[41]="INVALID_QUERY_HEADER"]=41,r[a[42]="INVALID_FEE_SUBMITTED"]=42,r[a[43]="INVALID_PAYER_SIGNATURE"]=43,r[a[44]="KEY_NOT_PROVIDED"]=44,r[a[45]="INVALID_EXPIRATION_TIME"]=45,r[a[46]="NO_WACL_KEY"]=46,r[a[47]="FILE_CONTENT_EMPTY"]=47,r[a[48]="INVALID_ACCOUNT_AMOUNTS"]=48,r[a[49]="EMPTY_TRANSACTION_BODY"]=49,r[a[50]="INVALID_TRANSACTION_BODY"]=50,r[a[51]="INVALID_SIGNATURE_TYPE_MISMATCHING_KEY"]=51,r[a[52]="INVALID_SIGNATURE_COUNT_MISMATCHING_KEY"]=52,r[a[53]="EMPTY_LIVE_HASH_BODY"]=53,r[a[54]="EMPTY_LIVE_HASH"]=54,r[a[55]="EMPTY_LIVE_HASH_KEYS"]=55,r[a[56]="INVALID_LIVE_HASH_SIZE"]=56,r[a[57]="EMPTY_QUERY_BODY"]=57,r[a[58]="EMPTY_LIVE_HASH_QUERY"]=58,r[a[59]="LIVE_HASH_NOT_FOUND"]=59,r[a[60]="ACCOUNT_ID_DOES_NOT_EXIST"]=60,r[a[61]="LIVE_HASH_ALREADY_EXISTS"]=61,r[a[62]="INVALID_FILE_WACL"]=62,r[a[63]="SERIALIZATION_FAILED"]=63,r[a[64]="TRANSACTION_OVERSIZE"]=64,r[a[65]="TRANSACTION_TOO_MANY_LAYERS"]=65,r[a[66]="CONTRACT_DELETED"]=66,r[a[67]="PLATFORM_NOT_ACTIVE"]=67,r[a[68]="KEY_PREFIX_MISMATCH"]=68,r[a[69]="PLATFORM_TRANSACTION_NOT_CREATED"]=69,r[a[70]="INVALID_RENEWAL_PERIOD"]=70,r[a[71]="INVALID_PAYER_ACCOUNT_ID"]=71,r[a[72]="ACCOUNT_DELETED"]=72,r[a[73]="FILE_DELETED"]=73,r[a[74]="ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS"]=74,r[a[75]="SETTING_NEGATIVE_ACCOUNT_BALANCE"]=75,r[a[76]="OBTAINER_REQUIRED"]=76,r[a[77]="OBTAINER_SAME_CONTRACT_ID"]=77,r[a[78]="OBTAINER_DOES_NOT_EXIST"]=78,r[a[79]="MODIFYING_IMMUTABLE_CONTRACT"]=79,r[a[80]="FILE_SYSTEM_EXCEPTION"]=80,r[a[81]="AUTORENEW_DURATION_NOT_IN_RANGE"]=81,r[a[82]="ERROR_DECODING_BYTESTRING"]=82,r[a[83]="CONTRACT_FILE_EMPTY"]=83,r[a[84]="CONTRACT_BYTECODE_EMPTY"]=84,r[a[85]="INVALID_INITIAL_BALANCE"]=85,r[a[86]="INVALID_RECEIVE_RECORD_THRESHOLD"]=86,r[a[87]="INVALID_SEND_RECORD_THRESHOLD"]=87,r[a[88]="ACCOUNT_IS_NOT_GENESIS_ACCOUNT"]=88,r[a[89]="PAYER_ACCOUNT_UNAUTHORIZED"]=89,r[a[90]="INVALID_FREEZE_TRANSACTION_BODY"]=90,r[a[91]="FREEZE_TRANSACTION_BODY_NOT_FOUND"]=91,r[a[92]="TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=92,r[a[93]="RESULT_SIZE_LIMIT_EXCEEDED"]=93,r[a[94]="NOT_SPECIAL_ACCOUNT"]=94,r[a[95]="CONTRACT_NEGATIVE_GAS"]=95,r[a[96]="CONTRACT_NEGATIVE_VALUE"]=96,r[a[97]="INVALID_FEE_FILE"]=97,r[a[98]="INVALID_EXCHANGE_RATE_FILE"]=98,r[a[99]="INSUFFICIENT_LOCAL_CALL_GAS"]=99,r[a[100]="ENTITY_NOT_ALLOWED_TO_DELETE"]=100,r[a[101]="AUTHORIZATION_FAILED"]=101,r[a[102]="FILE_UPLOADED_PROTO_INVALID"]=102,r[a[103]="FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK"]=103,r[a[104]="FEE_SCHEDULE_FILE_PART_UPLOADED"]=104,r[a[105]="EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED"]=105,r[a[106]="MAX_CONTRACT_STORAGE_EXCEEDED"]=106,r[a[107]="TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT"]=107,r[a[108]="TOTAL_LEDGER_BALANCE_INVALID"]=108,r[a[110]="EXPIRATION_REDUCTION_NOT_ALLOWED"]=110,r[a[111]="MAX_GAS_LIMIT_EXCEEDED"]=111,r[a[112]="MAX_FILE_SIZE_EXCEEDED"]=112,r[a[113]="RECEIVER_SIG_REQUIRED"]=113,r[a[150]="INVALID_TOPIC_ID"]=150,r[a[155]="INVALID_ADMIN_KEY"]=155,r[a[156]="INVALID_SUBMIT_KEY"]=156,r[a[157]="UNAUTHORIZED"]=157,r[a[158]="INVALID_TOPIC_MESSAGE"]=158,r[a[159]="INVALID_AUTORENEW_ACCOUNT"]=159,r[a[160]="AUTORENEW_ACCOUNT_NOT_ALLOWED"]=160,r[a[162]="TOPIC_EXPIRED"]=162,r[a[163]="INVALID_CHUNK_NUMBER"]=163,r[a[164]="INVALID_CHUNK_TRANSACTION_ID"]=164,r[a[165]="ACCOUNT_FROZEN_FOR_TOKEN"]=165,r[a[166]="TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED"]=166,r[a[167]="INVALID_TOKEN_ID"]=167,r[a[168]="INVALID_TOKEN_DECIMALS"]=168,r[a[169]="INVALID_TOKEN_INITIAL_SUPPLY"]=169,r[a[170]="INVALID_TREASURY_ACCOUNT_FOR_TOKEN"]=170,r[a[171]="INVALID_TOKEN_SYMBOL"]=171,r[a[172]="TOKEN_HAS_NO_FREEZE_KEY"]=172,r[a[173]="TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN"]=173,r[a[174]="MISSING_TOKEN_SYMBOL"]=174,r[a[175]="TOKEN_SYMBOL_TOO_LONG"]=175,r[a[176]="ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN"]=176,r[a[177]="TOKEN_HAS_NO_KYC_KEY"]=177,r[a[178]="INSUFFICIENT_TOKEN_BALANCE"]=178,r[a[179]="TOKEN_WAS_DELETED"]=179,r[a[180]="TOKEN_HAS_NO_SUPPLY_KEY"]=180,r[a[181]="TOKEN_HAS_NO_WIPE_KEY"]=181,r[a[182]="INVALID_TOKEN_MINT_AMOUNT"]=182,r[a[183]="INVALID_TOKEN_BURN_AMOUNT"]=183,r[a[184]="TOKEN_NOT_ASSOCIATED_TO_ACCOUNT"]=184,r[a[185]="CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT"]=185,r[a[186]="INVALID_KYC_KEY"]=186,r[a[187]="INVALID_WIPE_KEY"]=187,r[a[188]="INVALID_FREEZE_KEY"]=188,r[a[189]="INVALID_SUPPLY_KEY"]=189,r[a[190]="MISSING_TOKEN_NAME"]=190,r[a[191]="TOKEN_NAME_TOO_LONG"]=191,r[a[192]="INVALID_WIPING_AMOUNT"]=192,r[a[193]="TOKEN_IS_IMMUTABLE"]=193,r[a[194]="TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT"]=194,r[a[195]="TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES"]=195,r[a[196]="ACCOUNT_IS_TREASURY"]=196,r[a[197]="TOKEN_ID_REPEATED_IN_TOKEN_LIST"]=197,r[a[198]="TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED"]=198,r[a[199]="EMPTY_TOKEN_TRANSFER_BODY"]=199,r[a[200]="EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS"]=200,r[a[201]="INVALID_SCHEDULE_ID"]=201,r[a[202]="SCHEDULE_IS_IMMUTABLE"]=202,r[a[203]="INVALID_SCHEDULE_PAYER_ID"]=203,r[a[204]="INVALID_SCHEDULE_ACCOUNT_ID"]=204,r[a[205]="NO_NEW_VALID_SIGNATURES"]=205,r[a[206]="UNRESOLVABLE_REQUIRED_SIGNERS"]=206,r[a[207]="SCHEDULED_TRANSACTION_NOT_IN_WHITELIST"]=207,r[a[208]="SOME_SIGNATURES_WERE_INVALID"]=208,r[a[209]="TRANSACTION_ID_FIELD_NOT_ALLOWED"]=209,r[a[210]="IDENTICAL_SCHEDULE_ALREADY_CREATED"]=210,r[a[211]="INVALID_ZERO_BYTE_IN_STRING"]=211,r[a[212]="SCHEDULE_ALREADY_DELETED"]=212,r[a[213]="SCHEDULE_ALREADY_EXECUTED"]=213,r[a[214]="MESSAGE_SIZE_TOO_LARGE"]=214,r[a[215]="OPERATION_REPEATED_IN_BUCKET_GROUPS"]=215,r[a[216]="BUCKET_CAPACITY_OVERFLOW"]=216,r[a[217]="NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION"]=217,r[a[218]="BUCKET_HAS_NO_THROTTLE_GROUPS"]=218,r[a[219]="THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC"]=219,r[a[220]="SUCCESS_BUT_MISSING_EXPECTED_OPERATION"]=220,r[a[221]="UNPARSEABLE_THROTTLE_DEFINITIONS"]=221,r[a[222]="INVALID_THROTTLE_DEFINITIONS"]=222,r[a[223]="ACCOUNT_EXPIRED_AND_PENDING_REMOVAL"]=223,r[a[224]="INVALID_TOKEN_MAX_SUPPLY"]=224,r[a[225]="INVALID_TOKEN_NFT_SERIAL_NUMBER"]=225,r[a[226]="INVALID_NFT_ID"]=226,r[a[227]="METADATA_TOO_LONG"]=227,r[a[228]="BATCH_SIZE_LIMIT_EXCEEDED"]=228,r[a[229]="INVALID_QUERY_RANGE"]=229,r[a[230]="FRACTION_DIVIDES_BY_ZERO"]=230,r[a[231]="INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE"]=231,r[a[232]="CUSTOM_FEES_LIST_TOO_LONG"]=232,r[a[233]="INVALID_CUSTOM_FEE_COLLECTOR"]=233,r[a[234]="INVALID_TOKEN_ID_IN_CUSTOM_FEES"]=234,r[a[235]="TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR"]=235,r[a[236]="TOKEN_MAX_SUPPLY_REACHED"]=236,r[a[237]="SENDER_DOES_NOT_OWN_NFT_SERIAL_NO"]=237,r[a[238]="CUSTOM_FEE_NOT_FULLY_SPECIFIED"]=238,r[a[239]="CUSTOM_FEE_MUST_BE_POSITIVE"]=239,r[a[240]="TOKEN_HAS_NO_FEE_SCHEDULE_KEY"]=240,r[a[241]="CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE"]=241,r[a[242]="ROYALTY_FRACTION_CANNOT_EXCEED_ONE"]=242,r[a[243]="FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT"]=243,r[a[244]="CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES"]=244,r[a[245]="CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON"]=245,r[a[246]="CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=246,r[a[247]="INVALID_CUSTOM_FEE_SCHEDULE_KEY"]=247,r[a[248]="INVALID_TOKEN_MINT_METADATA"]=248,r[a[249]="INVALID_TOKEN_BURN_METADATA"]=249,r[a[250]="CURRENT_TREASURY_STILL_OWNS_NFTS"]=250,r[a[251]="ACCOUNT_STILL_OWNS_NFTS"]=251,r[a[252]="TREASURY_MUST_OWN_BURNED_NFT"]=252,r[a[253]="ACCOUNT_DOES_NOT_OWN_WIPED_NFT"]=253,r[a[254]="ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON"]=254,r[a[255]="MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED"]=255,r[a[256]="PAYER_ACCOUNT_DELETED"]=256,r[a[257]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH"]=257,r[a[258]="CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS"]=258,r[a[259]="INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"]=259,r[a[260]="SERIAL_NUMBER_LIMIT_REACHED"]=260,r[a[261]="CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE"]=261,r[a[262]="NO_REMAINING_AUTOMATIC_ASSOCIATIONS"]=262,r[a[263]="EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT"]=263,r[a[264]="REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT"]=264,r[a[265]="TOKEN_IS_PAUSED"]=265,r[a[266]="TOKEN_HAS_NO_PAUSE_KEY"]=266,r[a[267]="INVALID_PAUSE_KEY"]=267,r[a[268]="FREEZE_UPDATE_FILE_DOES_NOT_EXIST"]=268,r[a[269]="FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH"]=269,r[a[270]="NO_UPGRADE_HAS_BEEN_PREPARED"]=270,r[a[271]="NO_FREEZE_IS_SCHEDULED"]=271,r[a[272]="UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE"]=272,r[a[273]="FREEZE_START_TIME_MUST_BE_FUTURE"]=273,r[a[274]="PREPARED_UPDATE_FILE_IS_IMMUTABLE"]=274,r[a[275]="FREEZE_ALREADY_SCHEDULED"]=275,r[a[276]="FREEZE_UPGRADE_IN_PROGRESS"]=276,r[a[277]="UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED"]=277,r[a[278]="UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED"]=278,r[a[279]="CONSENSUS_GAS_EXHAUSTED"]=279,r[a[280]="REVERTED_SUCCESS"]=280,r[a[281]="MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED"]=281,r[a[282]="INVALID_ALIAS_KEY"]=282,r[a[283]="UNEXPECTED_TOKEN_DECIMALS"]=283,r[a[284]="INVALID_PROXY_ACCOUNT_ID"]=284,r[a[285]="INVALID_TRANSFER_ACCOUNT_ID"]=285,r[a[286]="INVALID_FEE_COLLECTOR_ACCOUNT_ID"]=286,r[a[287]="ALIAS_IS_IMMUTABLE"]=287,r[a[288]="SPENDER_ACCOUNT_SAME_AS_OWNER"]=288,r[a[289]="AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY"]=289,r[a[290]="NEGATIVE_ALLOWANCE_AMOUNT"]=290,r[a[291]="CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON"]=291,r[a[292]="SPENDER_DOES_NOT_HAVE_ALLOWANCE"]=292,r[a[293]="AMOUNT_EXCEEDS_ALLOWANCE"]=293,r[a[294]="MAX_ALLOWANCES_EXCEEDED"]=294,r[a[295]="EMPTY_ALLOWANCES"]=295,r[a[296]="SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES"]=296,r[a[297]="REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES"]=297,r[a[298]="FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES"]=298,r[a[299]="NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES"]=299,r[a[300]="INVALID_ALLOWANCE_OWNER_ID"]=300,r[a[301]="INVALID_ALLOWANCE_SPENDER_ID"]=301,r[a[302]="REPEATED_ALLOWANCES_TO_DELETE"]=302,r[a[303]="INVALID_DELEGATING_SPENDER"]=303,r[a[304]="DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL"]=304,r[a[305]="DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL"]=305,r[a[306]="SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE"]=306,r[a[307]="SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME"]=307,r[a[308]="SCHEDULE_FUTURE_THROTTLE_EXCEEDED"]=308,r[a[309]="SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED"]=309,r[a[310]="INVALID_ETHEREUM_TRANSACTION"]=310,r[a[311]="WRONG_CHAIN_ID"]=311,r[a[312]="WRONG_NONCE"]=312,r[a[313]="ACCESS_LIST_UNSUPPORTED"]=313,r[a[314]="SCHEDULE_PENDING_EXPIRATION"]=314,r[a[315]="CONTRACT_IS_TOKEN_TREASURY"]=315,r[a[316]="CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES"]=316,r[a[317]="CONTRACT_EXPIRED_AND_PENDING_REMOVAL"]=317,r[a[318]="CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT"]=318,r[a[319]="PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION"]=319,r[a[320]="PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED"]=320,r[a[321]="SELF_STAKING_IS_NOT_ALLOWED"]=321,r[a[322]="INVALID_STAKING_ID"]=322,r[a[323]="STAKING_NOT_ENABLED"]=323,r[a[324]="INVALID_PRNG_RANGE"]=324,r[a[325]="MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED"]=325,r[a[326]="INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE"]=326,r[a[327]="INSUFFICIENT_BALANCES_FOR_STORAGE_RENT"]=327,r[a[328]="MAX_CHILD_RECORDS_EXCEEDED"]=328,r[a[329]="INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES"]=329,r[a[330]="TRANSACTION_HAS_UNKNOWN_FIELDS"]=330,r[a[331]="ACCOUNT_IS_IMMUTABLE"]=331,r[a[332]="ALIAS_ALREADY_ASSIGNED"]=332,r}(),ConsensusTopicInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.memo=r.string();break;case 2:d.runningHash=r.bytes();break;case 3:d.sequenceNumber=r.uint64();break;case 4:d.expirationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 5:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 6:d.submitKey=f.proto.Key.decode(r,r.uint32());break;case 7:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 8:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;case 9:d.ledgerId=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ConsensusTopicInfo"},a}(),ConsensusService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createTopic=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createTopic"}),Object.defineProperty(a.prototype.updateTopic=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateTopic"}),Object.defineProperty(a.prototype.deleteTopic=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteTopic"}),Object.defineProperty(a.prototype.getTopicInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTopicInfo"}),Object.defineProperty(a.prototype.submitMessage=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"submitMessage"}),a}(),Query:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.getByKey=f.proto.GetByKeyQuery.decode(i,i.uint32());break;case 2:h.getBySolidityID=f.proto.GetBySolidityIDQuery.decode(i,i.uint32());break;case 3:h.contractCallLocal=f.proto.ContractCallLocalQuery.decode(i,i.uint32());break;case 4:h.contractGetInfo=f.proto.ContractGetInfoQuery.decode(i,i.uint32());break;case 5:h.contractGetBytecode=f.proto.ContractGetBytecodeQuery.decode(i,i.uint32());break;case 6:h.ContractGetRecords=f.proto.ContractGetRecordsQuery.decode(i,i.uint32());break;case 7:h.cryptogetAccountBalance=f.proto.CryptoGetAccountBalanceQuery.decode(i,i.uint32());break;case 8:h.cryptoGetAccountRecords=f.proto.CryptoGetAccountRecordsQuery.decode(i,i.uint32());break;case 9:h.cryptoGetInfo=f.proto.CryptoGetInfoQuery.decode(i,i.uint32());break;case 10:h.cryptoGetLiveHash=f.proto.CryptoGetLiveHashQuery.decode(i,i.uint32());break;case 11:h.cryptoGetProxyStakers=f.proto.CryptoGetStakersQuery.decode(i,i.uint32());break;case 12:h.fileGetContents=f.proto.FileGetContentsQuery.decode(i,i.uint32());break;case 13:h.fileGetInfo=f.proto.FileGetInfoQuery.decode(i,i.uint32());break;case 14:h.transactionGetReceipt=f.proto.TransactionGetReceiptQuery.decode(i,i.uint32());break;case 15:h.transactionGetRecord=f.proto.TransactionGetRecordQuery.decode(i,i.uint32());break;case 16:h.transactionGetFastRecord=f.proto.TransactionGetFastRecordQuery.decode(i,i.uint32());break;case 50:h.consensusGetTopicInfo=f.proto.ConsensusGetTopicInfoQuery.decode(i,i.uint32());break;case 51:h.networkGetVersionInfo=f.proto.NetworkGetVersionInfoQuery.decode(i,i.uint32());break;case 52:h.tokenGetInfo=f.proto.TokenGetInfoQuery.decode(i,i.uint32());break;case 53:h.scheduleGetInfo=f.proto.ScheduleGetInfoQuery.decode(i,i.uint32());break;case 54:h.tokenGetAccountNftInfos=f.proto.TokenGetAccountNftInfosQuery.decode(i,i.uint32());break;case 55:h.tokenGetNftInfo=f.proto.TokenGetNftInfoQuery.decode(i,i.uint32());break;case 56:h.tokenGetNftInfos=f.proto.TokenGetNftInfosQuery.decode(i,i.uint32());break;case 57:h.networkGetExecutionTime=f.proto.NetworkGetExecutionTimeQuery.decode(i,i.uint32());break;case 58:h.accountDetails=f.proto.GetAccountDetailsQuery.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.Query"},a}(),GetByKeyQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.key=f.proto.Key.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetByKeyQuery"},a}(),EntityID:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.accountID=f.proto.AccountID.decode(i,i.uint32());break;case 2:h.liveHash=f.proto.LiveHash.decode(i,i.uint32());break;case 3:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 4:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.EntityID"},a}(),GetByKeyResponse:function(){function a(r){if(this.entities=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.entities&&d.entities.length||(d.entities=[]),d.entities.push(f.proto.EntityID.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetByKeyResponse"},a}(),GetBySolidityIDQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.solidityID=r.string();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetBySolidityIDQuery"},a}(),GetBySolidityIDResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.fileID=f.proto.FileID.decode(r,r.uint32());break;case 4:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetBySolidityIDResponse"},a}(),ContractLoginfo:function(){function a(r){if(this.topic=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.bloom=r.bytes();break;case 3:d.topic&&d.topic.length||(d.topic=[]),d.topic.push(r.bytes());break;case 4:d.data=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractLoginfo"},a}(),ContractFunctionResult:function(){function a(r){if(this.logInfo=[],this.createdContractIDs=[],this.contractNonces=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.contractCallResult=r.bytes();break;case 3:d.errorMessage=r.string();break;case 4:d.bloom=r.bytes();break;case 5:d.gasUsed=r.uint64();break;case 6:d.logInfo&&d.logInfo.length||(d.logInfo=[]),d.logInfo.push(f.proto.ContractLoginfo.decode(r,r.uint32()));break;case 7:d.createdContractIDs&&d.createdContractIDs.length||(d.createdContractIDs=[]),d.createdContractIDs.push(f.proto.ContractID.decode(r,r.uint32()));break;case 9:d.evmAddress=f.google.protobuf.BytesValue.decode(r,r.uint32());break;case 10:d.gas=r.int64();break;case 11:d.amount=r.int64();break;case 12:d.functionParameters=r.bytes();break;case 13:d.senderId=f.proto.AccountID.decode(r,r.uint32());break;case 14:d.contractNonces&&d.contractNonces.length||(d.contractNonces=[]),d.contractNonces.push(f.proto.ContractNonceInfo.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractFunctionResult"},a}(),ContractCallLocalQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 3:d.gas=r.int64();break;case 4:d.functionParameters=r.bytes();break;case 5:d.maxResultSize=r.int64();break;case 6:d.senderId=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractCallLocalQuery"},a}(),ContractCallLocalResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.functionResult=f.proto.ContractFunctionResult.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractCallLocalResponse"},a}(),ContractNonceInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractId=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.nonce=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractNonceInfo"},a}(),ContractGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetInfoQuery"},a}(),ContractGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.contractInfo=f.proto.ContractGetInfoResponse.ContractInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetInfoResponse"},a.ContractInfo=function(){function r(i){if(this.tokenRelationships=[],i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;case 2:h.accountID=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.contractAccountID=i.string();break;case 4:h.adminKey=f.proto.Key.decode(i,i.uint32());break;case 5:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 6:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 7:h.storage=i.int64();break;case 8:h.memo=i.string();break;case 9:h.balance=i.uint64();break;case 10:h.deleted=i.bool();break;case 11:h.tokenRelationships&&h.tokenRelationships.length||(h.tokenRelationships=[]),h.tokenRelationships.push(f.proto.TokenRelationship.decode(i,i.uint32()));break;case 12:h.ledgerId=i.bytes();break;case 13:h.autoRenewAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 14:h.maxAutomaticTokenAssociations=i.int32();break;case 15:h.stakingInfo=f.proto.StakingInfo.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractGetInfoResponse.ContractInfo"},r}(),a}(),ContractGetBytecodeQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetBytecodeQuery"},a}(),ContractGetBytecodeResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 6:d.bytecode=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetBytecodeResponse"},a}(),ContractGetRecordsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetRecordsQuery"},a}(),ContractGetRecordsResponse:function(){function a(r){if(this.records=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 3:d.records&&d.records.length||(d.records=[]),d.records.push(f.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractGetRecordsResponse"},a}(),TransactionRecord:function(){function a(i){if(this.tokenTransferLists=[],this.assessedCustomFees=[],this.automaticTokenAssociations=[],this.paidStakingRewards=[],i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.receipt=f.proto.TransactionReceipt.decode(i,i.uint32());break;case 2:h.transactionHash=i.bytes();break;case 3:h.consensusTimestamp=f.proto.Timestamp.decode(i,i.uint32());break;case 4:h.transactionID=f.proto.TransactionID.decode(i,i.uint32());break;case 5:h.memo=i.string();break;case 6:h.transactionFee=i.uint64();break;case 7:h.contractCallResult=f.proto.ContractFunctionResult.decode(i,i.uint32());break;case 8:h.contractCreateResult=f.proto.ContractFunctionResult.decode(i,i.uint32());break;case 10:h.transferList=f.proto.TransferList.decode(i,i.uint32());break;case 11:h.tokenTransferLists&&h.tokenTransferLists.length||(h.tokenTransferLists=[]),h.tokenTransferLists.push(f.proto.TokenTransferList.decode(i,i.uint32()));break;case 12:h.scheduleRef=f.proto.ScheduleID.decode(i,i.uint32());break;case 13:h.assessedCustomFees&&h.assessedCustomFees.length||(h.assessedCustomFees=[]),h.assessedCustomFees.push(f.proto.AssessedCustomFee.decode(i,i.uint32()));break;case 14:h.automaticTokenAssociations&&h.automaticTokenAssociations.length||(h.automaticTokenAssociations=[]),h.automaticTokenAssociations.push(f.proto.TokenAssociation.decode(i,i.uint32()));break;case 15:h.parentConsensusTimestamp=f.proto.Timestamp.decode(i,i.uint32());break;case 16:h.alias=i.bytes();break;case 17:h.ethereumHash=i.bytes();break;case 18:h.paidStakingRewards&&h.paidStakingRewards.length||(h.paidStakingRewards=[]),h.paidStakingRewards.push(f.proto.AccountAmount.decode(i,i.uint32()));break;case 19:h.prngBytes=i.bytes();break;case 20:h.prngNumber=i.int32();break;case 21:h.evmAddress=i.bytes();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.TransactionRecord"},a}(),TransactionReceipt:function(){function a(r){if(this.serialNumbers=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.status=r.int32();break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.fileID=f.proto.FileID.decode(r,r.uint32());break;case 4:d.contractID=f.proto.ContractID.decode(r,r.uint32());break;case 5:d.exchangeRate=f.proto.ExchangeRateSet.decode(r,r.uint32());break;case 6:d.topicID=f.proto.TopicID.decode(r,r.uint32());break;case 7:d.topicSequenceNumber=r.uint64();break;case 8:d.topicRunningHash=r.bytes();break;case 9:d.topicRunningHashVersion=r.uint64();break;case 10:d.tokenID=f.proto.TokenID.decode(r,r.uint32());break;case 11:d.newTotalSupply=r.uint64();break;case 12:d.scheduleID=f.proto.ScheduleID.decode(r,r.uint32());break;case 13:d.scheduledTransactionID=f.proto.TransactionID.decode(r,r.uint32());break;case 14:if(d.serialNumbers&&d.serialNumbers.length||(d.serialNumbers=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.hbarEquiv=r.int32();break;case 2:d.centEquiv=r.int32();break;case 3:d.expirationTime=f.proto.TimestampSeconds.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ExchangeRate"},a}(),ExchangeRateSet:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.currentRate=f.proto.ExchangeRate.decode(r,r.uint32());break;case 2:d.nextRate=f.proto.ExchangeRate.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ExchangeRateSet"},a}(),CryptoGetAccountBalanceQuery:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.header=f.proto.QueryHeader.decode(i,i.uint32());break;case 2:h.accountID=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.contractID=f.proto.ContractID.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.CryptoGetAccountBalanceQuery"},a}(),CryptoGetAccountBalanceResponse:function(){function a(r){if(this.tokenBalances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.balance=r.uint64();break;case 4:d.tokenBalances&&d.tokenBalances.length||(d.tokenBalances=[]),d.tokenBalances.push(f.proto.TokenBalance.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetAccountBalanceResponse"},a}(),CryptoGetAccountRecordsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetAccountRecordsQuery"},a}(),CryptoGetAccountRecordsResponse:function(){function a(r){if(this.records=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.records&&d.records.length||(d.records=[]),d.records.push(f.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetAccountRecordsResponse"},a}(),CryptoGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetInfoQuery"},a}(),CryptoGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.accountInfo=f.proto.CryptoGetInfoResponse.AccountInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetInfoResponse"},a.AccountInfo=function(){function r(i){if(this.liveHashes=[],this.tokenRelationships=[],i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.accountID=f.proto.AccountID.decode(i,i.uint32());break;case 2:h.contractAccountID=i.string();break;case 3:h.deleted=i.bool();break;case 4:h.proxyAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 6:h.proxyReceived=i.int64();break;case 7:h.key=f.proto.Key.decode(i,i.uint32());break;case 8:h.balance=i.uint64();break;case 9:h.generateSendRecordThreshold=i.uint64();break;case 10:h.generateReceiveRecordThreshold=i.uint64();break;case 11:h.receiverSigRequired=i.bool();break;case 12:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 13:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 14:h.liveHashes&&h.liveHashes.length||(h.liveHashes=[]),h.liveHashes.push(f.proto.LiveHash.decode(i,i.uint32()));break;case 15:h.tokenRelationships&&h.tokenRelationships.length||(h.tokenRelationships=[]),h.tokenRelationships.push(f.proto.TokenRelationship.decode(i,i.uint32()));break;case 16:h.memo=i.string();break;case 17:h.ownedNfts=i.int64();break;case 18:h.maxAutomaticTokenAssociations=i.int32();break;case 19:h.alias=i.bytes();break;case 20:h.ledgerId=i.bytes();break;case 21:h.ethereumNonce=i.int64();break;case 22:h.stakingInfo=f.proto.StakingInfo.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.CryptoGetInfoResponse.AccountInfo"},r}(),a}(),CryptoGetLiveHashQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.hash=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetLiveHashQuery"},a}(),CryptoGetLiveHashResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.liveHash=f.proto.LiveHash.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetLiveHashResponse"},a}(),CryptoGetStakersQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetStakersQuery"},a}(),ProxyStaker:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.amount=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ProxyStaker"},a}(),AllProxyStakers:function(){function a(r){if(this.proxyStaker=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.proxyStaker&&d.proxyStaker.length||(d.proxyStaker=[]),d.proxyStaker.push(f.proto.ProxyStaker.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.AllProxyStakers"},a}(),CryptoGetStakersResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 3:d.stakers=f.proto.AllProxyStakers.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.CryptoGetStakersResponse"},a}(),FileGetContentsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.fileID=f.proto.FileID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileGetContentsQuery"},a}(),FileGetContentsResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.fileContents=f.proto.FileGetContentsResponse.FileContents.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileGetContentsResponse"},a.FileContents=function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 2:h.contents=i.bytes();break;default:i.skipType(7&g)}return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.FileGetContentsResponse.FileContents"},r}(),a}(),FileGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.fileID=f.proto.FileID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileGetInfoQuery"},a}(),FileGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.fileInfo=f.proto.FileGetInfoResponse.FileInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.FileGetInfoResponse"},a.FileInfo=function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.fileID=f.proto.FileID.decode(i,i.uint32());break;case 2:h.size=i.int64();break;case 3:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 4:h.deleted=i.bool();break;case 5:h.keys=f.proto.KeyList.decode(i,i.uint32());break;case 6:h.memo=i.string();break;case 7:h.ledgerId=i.bytes();break;default:i.skipType(7&g)}return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.FileGetInfoResponse.FileInfo"},r}(),a}(),TransactionGetReceiptQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.transactionID=f.proto.TransactionID.decode(r,r.uint32());break;case 3:d.includeDuplicates=r.bool();break;case 4:d.includeChildReceipts=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetReceiptQuery"},a}(),TransactionGetReceiptResponse:function(){function a(r){if(this.duplicateTransactionReceipts=[],this.childTransactionReceipts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.receipt=f.proto.TransactionReceipt.decode(r,r.uint32());break;case 4:d.duplicateTransactionReceipts&&d.duplicateTransactionReceipts.length||(d.duplicateTransactionReceipts=[]),d.duplicateTransactionReceipts.push(f.proto.TransactionReceipt.decode(r,r.uint32()));break;case 5:d.childTransactionReceipts&&d.childTransactionReceipts.length||(d.childTransactionReceipts=[]),d.childTransactionReceipts.push(f.proto.TransactionReceipt.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetReceiptResponse"},a}(),TransactionGetRecordQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.transactionID=f.proto.TransactionID.decode(r,r.uint32());break;case 3:d.includeDuplicates=r.bool();break;case 4:d.includeChildRecords=r.bool();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetRecordQuery"},a}(),TransactionGetRecordResponse:function(){function a(r){if(this.duplicateTransactionRecords=[],this.childTransactionRecords=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 3:d.transactionRecord=f.proto.TransactionRecord.decode(r,r.uint32());break;case 4:d.duplicateTransactionRecords&&d.duplicateTransactionRecords.length||(d.duplicateTransactionRecords=[]),d.duplicateTransactionRecords.push(f.proto.TransactionRecord.decode(r,r.uint32()));break;case 5:d.childTransactionRecords&&d.childTransactionRecords.length||(d.childTransactionRecords=[]),d.childTransactionRecords.push(f.proto.TransactionRecord.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetRecordResponse"},a}(),TransactionGetFastRecordQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.transactionID=f.proto.TransactionID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetFastRecordQuery"},a}(),TransactionGetFastRecordResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.transactionRecord=f.proto.TransactionRecord.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TransactionGetFastRecordResponse"},a}(),NetworkGetVersionInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3?d.header=f.proto.QueryHeader.decode(r,r.uint32()):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NetworkGetVersionInfoQuery"},a}(),NetworkGetVersionInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.hapiProtoVersion=f.proto.SemanticVersion.decode(r,r.uint32());break;case 3:d.hederaServicesVersion=f.proto.SemanticVersion.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NetworkGetVersionInfoResponse"},a}(),NetworkGetExecutionTimeQuery:function(){function a(r){if(this.transactionIds=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.transactionIds&&d.transactionIds.length||(d.transactionIds=[]),d.transactionIds.push(f.proto.TransactionID.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NetworkGetExecutionTimeQuery"},a}(),NetworkGetExecutionTimeResponse:function(){function a(r){if(this.executionTimes=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:if(d.executionTimes&&d.executionTimes.length||(d.executionTimes=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.token=f.proto.TokenID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetInfoQuery"},a}(),TokenInfo:function(){function a(r){if(this.customFees=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.name=r.string();break;case 3:d.symbol=r.string();break;case 4:d.decimals=r.uint32();break;case 5:d.totalSupply=r.uint64();break;case 6:d.treasury=f.proto.AccountID.decode(r,r.uint32());break;case 7:d.adminKey=f.proto.Key.decode(r,r.uint32());break;case 8:d.kycKey=f.proto.Key.decode(r,r.uint32());break;case 9:d.freezeKey=f.proto.Key.decode(r,r.uint32());break;case 10:d.wipeKey=f.proto.Key.decode(r,r.uint32());break;case 11:d.supplyKey=f.proto.Key.decode(r,r.uint32());break;case 12:d.defaultFreezeStatus=r.int32();break;case 13:d.defaultKycStatus=r.int32();break;case 14:d.deleted=r.bool();break;case 15:d.autoRenewAccount=f.proto.AccountID.decode(r,r.uint32());break;case 16:d.autoRenewPeriod=f.proto.Duration.decode(r,r.uint32());break;case 17:d.expiry=f.proto.Timestamp.decode(r,r.uint32());break;case 18:d.memo=r.string();break;case 19:d.tokenType=r.int32();break;case 20:d.supplyType=r.int32();break;case 21:d.maxSupply=r.int64();break;case 22:d.feeScheduleKey=f.proto.Key.decode(r,r.uint32());break;case 23:d.customFees&&d.customFees.length||(d.customFees=[]),d.customFees.push(f.proto.CustomFee.decode(r,r.uint32()));break;case 24:d.pauseKey=f.proto.Key.decode(r,r.uint32());break;case 25:d.pauseStatus=r.int32();break;case 26:d.ledgerId=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenInfo"},a}(),TokenGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.tokenInfo=f.proto.TokenInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetInfoResponse"},a}(),ScheduleGetInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.scheduleID=f.proto.ScheduleID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleGetInfoQuery"},a}(),ScheduleInfo:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.scheduleID=f.proto.ScheduleID.decode(i,i.uint32());break;case 2:h.deletionTime=f.proto.Timestamp.decode(i,i.uint32());break;case 3:h.executionTime=f.proto.Timestamp.decode(i,i.uint32());break;case 4:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 5:h.scheduledTransactionBody=f.proto.SchedulableTransactionBody.decode(i,i.uint32());break;case 6:h.memo=i.string();break;case 7:h.adminKey=f.proto.Key.decode(i,i.uint32());break;case 8:h.signers=f.proto.KeyList.decode(i,i.uint32());break;case 9:h.creatorAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 10:h.payerAccountID=f.proto.AccountID.decode(i,i.uint32());break;case 11:h.scheduledTransactionID=f.proto.TransactionID.decode(i,i.uint32());break;case 12:h.ledgerId=i.bytes();break;case 13:h.waitForExpiry=i.bool();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ScheduleInfo"},a}(),ScheduleGetInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.scheduleInfo=f.proto.ScheduleInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ScheduleGetInfoResponse"},a}(),TokenGetAccountNftInfosQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.start=r.int64();break;case 4:d.end=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetAccountNftInfosQuery"},a}(),TokenGetAccountNftInfosResponse:function(){function a(r){if(this.nfts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.nfts&&d.nfts.length||(d.nfts=[]),d.nfts.push(f.proto.TokenNftInfo.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetAccountNftInfosResponse"},a}(),NftID:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenID=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.serialNumber=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.NftID"},a}(),TokenGetNftInfoQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.nftID=f.proto.NftID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetNftInfoQuery"},a}(),TokenNftInfo:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.nftID=f.proto.NftID.decode(r,r.uint32());break;case 2:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.creationTime=f.proto.Timestamp.decode(r,r.uint32());break;case 4:d.metadata=r.bytes();break;case 5:d.ledgerId=r.bytes();break;case 6:d.spenderId=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenNftInfo"},a}(),TokenGetNftInfoResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.nft=f.proto.TokenNftInfo.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetNftInfoResponse"},a}(),TokenGetNftInfosQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.tokenID=f.proto.TokenID.decode(r,r.uint32());break;case 3:d.start=r.int64();break;case 4:d.end=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetNftInfosQuery"},a}(),TokenGetNftInfosResponse:function(){function a(r){if(this.nfts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.tokenID=f.proto.TokenID.decode(r,r.uint32());break;case 3:d.nfts&&d.nfts.length||(d.nfts=[]),d.nfts.push(f.proto.TokenNftInfo.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenGetNftInfosResponse"},a}(),GetAccountDetailsQuery:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.QueryHeader.decode(r,r.uint32());break;case 2:d.accountId=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetAccountDetailsQuery"},a}(),GetAccountDetailsResponse:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.header=f.proto.ResponseHeader.decode(r,r.uint32());break;case 2:d.accountDetails=f.proto.GetAccountDetailsResponse.AccountDetails.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GetAccountDetailsResponse"},a.AccountDetails=function(){function r(i){if(this.tokenRelationships=[],this.grantedCryptoAllowances=[],this.grantedNftAllowances=[],this.grantedTokenAllowances=[],i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.accountId=f.proto.AccountID.decode(i,i.uint32());break;case 2:h.contractAccountId=i.string();break;case 3:h.deleted=i.bool();break;case 4:h.proxyAccountId=f.proto.AccountID.decode(i,i.uint32());break;case 5:h.proxyReceived=i.int64();break;case 6:h.key=f.proto.Key.decode(i,i.uint32());break;case 7:h.balance=i.uint64();break;case 8:h.receiverSigRequired=i.bool();break;case 9:h.expirationTime=f.proto.Timestamp.decode(i,i.uint32());break;case 10:h.autoRenewPeriod=f.proto.Duration.decode(i,i.uint32());break;case 11:h.tokenRelationships&&h.tokenRelationships.length||(h.tokenRelationships=[]),h.tokenRelationships.push(f.proto.TokenRelationship.decode(i,i.uint32()));break;case 12:h.memo=i.string();break;case 13:h.ownedNfts=i.int64();break;case 14:h.maxAutomaticTokenAssociations=i.int32();break;case 15:h.alias=i.bytes();break;case 16:h.ledgerId=i.bytes();break;case 17:h.grantedCryptoAllowances&&h.grantedCryptoAllowances.length||(h.grantedCryptoAllowances=[]),h.grantedCryptoAllowances.push(f.proto.GrantedCryptoAllowance.decode(i,i.uint32()));break;case 18:h.grantedNftAllowances&&h.grantedNftAllowances.length||(h.grantedNftAllowances=[]),h.grantedNftAllowances.push(f.proto.GrantedNftAllowance.decode(i,i.uint32()));break;case 19:h.grantedTokenAllowances&&h.grantedTokenAllowances.length||(h.grantedTokenAllowances=[]),h.grantedTokenAllowances.push(f.proto.GrantedTokenAllowance.decode(i,i.uint32()));break;default:i.skipType(7&g)}return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.GetAccountDetailsResponse.AccountDetails"},r}(),a}(),GrantedCryptoAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.spender=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.amount=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GrantedCryptoAllowance"},a}(),GrantedNftAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.spender=f.proto.AccountID.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GrantedNftAllowance"},a}(),GrantedTokenAllowance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.spender=f.proto.AccountID.decode(r,r.uint32());break;case 3:d.amount=r.int64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.GrantedTokenAllowance"},a}(),Response:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.getByKey=f.proto.GetByKeyResponse.decode(i,i.uint32());break;case 2:h.getBySolidityID=f.proto.GetBySolidityIDResponse.decode(i,i.uint32());break;case 3:h.contractCallLocal=f.proto.ContractCallLocalResponse.decode(i,i.uint32());break;case 5:h.contractGetBytecodeResponse=f.proto.ContractGetBytecodeResponse.decode(i,i.uint32());break;case 4:h.contractGetInfo=f.proto.ContractGetInfoResponse.decode(i,i.uint32());break;case 6:h.contractGetRecordsResponse=f.proto.ContractGetRecordsResponse.decode(i,i.uint32());break;case 7:h.cryptogetAccountBalance=f.proto.CryptoGetAccountBalanceResponse.decode(i,i.uint32());break;case 8:h.cryptoGetAccountRecords=f.proto.CryptoGetAccountRecordsResponse.decode(i,i.uint32());break;case 9:h.cryptoGetInfo=f.proto.CryptoGetInfoResponse.decode(i,i.uint32());break;case 10:h.cryptoGetLiveHash=f.proto.CryptoGetLiveHashResponse.decode(i,i.uint32());break;case 11:h.cryptoGetProxyStakers=f.proto.CryptoGetStakersResponse.decode(i,i.uint32());break;case 12:h.fileGetContents=f.proto.FileGetContentsResponse.decode(i,i.uint32());break;case 13:h.fileGetInfo=f.proto.FileGetInfoResponse.decode(i,i.uint32());break;case 14:h.transactionGetReceipt=f.proto.TransactionGetReceiptResponse.decode(i,i.uint32());break;case 15:h.transactionGetRecord=f.proto.TransactionGetRecordResponse.decode(i,i.uint32());break;case 16:h.transactionGetFastRecord=f.proto.TransactionGetFastRecordResponse.decode(i,i.uint32());break;case 150:h.consensusGetTopicInfo=f.proto.ConsensusGetTopicInfoResponse.decode(i,i.uint32());break;case 151:h.networkGetVersionInfo=f.proto.NetworkGetVersionInfoResponse.decode(i,i.uint32());break;case 152:h.tokenGetInfo=f.proto.TokenGetInfoResponse.decode(i,i.uint32());break;case 153:h.scheduleGetInfo=f.proto.ScheduleGetInfoResponse.decode(i,i.uint32());break;case 154:h.tokenGetAccountNftInfos=f.proto.TokenGetAccountNftInfosResponse.decode(i,i.uint32());break;case 155:h.tokenGetNftInfo=f.proto.TokenGetNftInfoResponse.decode(i,i.uint32());break;case 156:h.tokenGetNftInfos=f.proto.TokenGetNftInfosResponse.decode(i,i.uint32());break;case 157:h.networkGetExecutionTime=f.proto.NetworkGetExecutionTimeResponse.decode(i,i.uint32());break;case 158:h.accountDetails=f.proto.GetAccountDetailsResponse.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.Response"},a}(),CryptoService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createAccount"}),Object.defineProperty(a.prototype.updateAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateAccount"}),Object.defineProperty(a.prototype.cryptoTransfer=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"cryptoTransfer"}),Object.defineProperty(a.prototype.cryptoDelete=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"cryptoDelete"}),Object.defineProperty(a.prototype.approveAllowances=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"approveAllowances"}),Object.defineProperty(a.prototype.deleteAllowances=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteAllowances"}),Object.defineProperty(a.prototype.addLiveHash=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"addLiveHash"}),Object.defineProperty(a.prototype.deleteLiveHash=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteLiveHash"}),Object.defineProperty(a.prototype.getLiveHash=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getLiveHash"}),Object.defineProperty(a.prototype.getAccountRecords=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getAccountRecords"}),Object.defineProperty(a.prototype.cryptoGetBalance=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"cryptoGetBalance"}),Object.defineProperty(a.prototype.getAccountInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getAccountInfo"}),Object.defineProperty(a.prototype.getTransactionReceipts=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTransactionReceipts"}),Object.defineProperty(a.prototype.getFastTransactionRecord=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getFastTransactionRecord"}),Object.defineProperty(a.prototype.getTxRecordByTxID=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTxRecordByTxID"}),Object.defineProperty(a.prototype.getStakersByAccountID=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getStakersByAccountID"}),a}(),FileService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createFile=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createFile"}),Object.defineProperty(a.prototype.updateFile=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateFile"}),Object.defineProperty(a.prototype.deleteFile=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteFile"}),Object.defineProperty(a.prototype.appendContent=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"appendContent"}),Object.defineProperty(a.prototype.getFileContent=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getFileContent"}),Object.defineProperty(a.prototype.getFileInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getFileInfo"}),Object.defineProperty(a.prototype.systemDelete=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"systemDelete"}),Object.defineProperty(a.prototype.systemUndelete=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"systemUndelete"}),a}(),FreezeService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.freeze=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"freeze"}),a}(),NetworkService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.getVersionInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getVersionInfo"}),Object.defineProperty(a.prototype.getExecutionTime=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getExecutionTime"}),Object.defineProperty(a.prototype.uncheckedSubmit=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"uncheckedSubmit"}),Object.defineProperty(a.prototype.getAccountDetails=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getAccountDetails"}),a}(),ScheduleService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createSchedule=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createSchedule"}),Object.defineProperty(a.prototype.signSchedule=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"signSchedule"}),Object.defineProperty(a.prototype.deleteSchedule=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteSchedule"}),Object.defineProperty(a.prototype.getScheduleInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getScheduleInfo"}),a}(),SmartContractService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createContract=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createContract"}),Object.defineProperty(a.prototype.updateContract=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateContract"}),Object.defineProperty(a.prototype.contractCallMethod=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"contractCallMethod"}),Object.defineProperty(a.prototype.getContractInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getContractInfo"}),Object.defineProperty(a.prototype.contractCallLocalMethod=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"contractCallLocalMethod"}),Object.defineProperty(a.prototype.contractGetBytecode=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"ContractGetBytecode"}),Object.defineProperty(a.prototype.getBySolidityID=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getBySolidityID"}),Object.defineProperty(a.prototype.getTxRecordByContractID=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTxRecordByContractID"}),Object.defineProperty(a.prototype.deleteContract=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteContract"}),Object.defineProperty(a.prototype.systemDelete=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"systemDelete"}),Object.defineProperty(a.prototype.systemUndelete=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"systemUndelete"}),Object.defineProperty(a.prototype.callEthereum=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"callEthereum"}),a}(),ThrottleGroup:function(){function a(r){if(this.operations=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:if(d.operations&&d.operations.length||(d.operations=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3){case 1:d.name=r.string();break;case 2:d.burstPeriodMs=r.uint64();break;case 3:d.throttleGroups&&d.throttleGroups.length||(d.throttleGroups=[]),d.throttleGroups.push(f.proto.ThrottleGroup.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ThrottleBucket"},a}(),ThrottleDefinitions:function(){function a(r){if(this.throttleBuckets=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.throttleBuckets&&d.throttleBuckets.length||(d.throttleBuckets=[]),d.throttleBuckets.push(f.proto.ThrottleBucket.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ThrottleDefinitions"},a}(),TokenService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.createToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"createToken"}),Object.defineProperty(a.prototype.updateToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateToken"}),Object.defineProperty(a.prototype.mintToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"mintToken"}),Object.defineProperty(a.prototype.burnToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"burnToken"}),Object.defineProperty(a.prototype.deleteToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"deleteToken"}),Object.defineProperty(a.prototype.wipeTokenAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"wipeTokenAccount"}),Object.defineProperty(a.prototype.freezeTokenAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"freezeTokenAccount"}),Object.defineProperty(a.prototype.unfreezeTokenAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"unfreezeTokenAccount"}),Object.defineProperty(a.prototype.grantKycToTokenAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"grantKycToTokenAccount"}),Object.defineProperty(a.prototype.revokeKycFromTokenAccount=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"revokeKycFromTokenAccount"}),Object.defineProperty(a.prototype.associateTokens=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"associateTokens"}),Object.defineProperty(a.prototype.dissociateTokens=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"dissociateTokens"}),Object.defineProperty(a.prototype.updateTokenFeeSchedule=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"updateTokenFeeSchedule"}),Object.defineProperty(a.prototype.getTokenInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTokenInfo"}),Object.defineProperty(a.prototype.getAccountNftInfos=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getAccountNftInfos"}),Object.defineProperty(a.prototype.getTokenNftInfo=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTokenNftInfo"}),Object.defineProperty(a.prototype.getTokenNftInfos=function r(i,c){return this.rpcCall(r,f.proto.Query,f.proto.Response,i,c)},"name",{value:"getTokenNftInfos"}),Object.defineProperty(a.prototype.pauseToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"pauseToken"}),Object.defineProperty(a.prototype.unpauseToken=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"unpauseToken"}),a}(),SignedTransaction:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.bodyBytes=r.bytes();break;case 2:d.sigMap=f.proto.SignatureMap.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SignedTransaction"},a}(),UtilService:function(){function a(r,i,c){v.rpc.Service.call(this,r,i,c)}return(a.prototype=Object.create(v.rpc.Service.prototype)).constructor=a,a.create=function(r,i,c){return new this(r,i,c)},Object.defineProperty(a.prototype.prng=function r(i,c){return this.rpcCall(r,f.proto.Transaction,f.proto.TransactionResponse,i,c)},"name",{value:"prng"}),a}(),TokenUnitBalance:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.tokenId=f.proto.TokenID.decode(r,r.uint32());break;case 2:d.balance=r.uint64();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.TokenUnitBalance"},a}(),SingleAccountBalances:function(){function a(r){if(this.tokenUnitBalances=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.accountID=f.proto.AccountID.decode(r,r.uint32());break;case 2:d.hbarBalance=r.uint64();break;case 3:d.tokenUnitBalances&&d.tokenUnitBalances.length||(d.tokenUnitBalances=[]),d.tokenUnitBalances.push(f.proto.TokenUnitBalance.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SingleAccountBalances"},a}(),AllAccountBalances:function(){function a(r){if(this.allAccounts=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.consensusTimestamp=f.proto.Timestamp.decode(r,r.uint32());break;case 2:d.allAccounts&&d.allAccounts.length||(d.allAccounts=[]),d.allAccounts.push(f.proto.SingleAccountBalances.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.AllAccountBalances"},a}(),ContractActions:function(){function a(r){if(this.contractActions=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.contractActions&&d.contractActions.length||(d.contractActions=[]),d.contractActions.push(f.proto.ContractAction.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractActions"},a}(),ContractActionType:function(){const a={},r=Object.create(a);return r[a[0]="NO_ACTION"]=0,r[a[1]="CALL"]=1,r[a[2]="CREATE"]=2,r[a[3]="PRECOMPILE"]=3,r[a[4]="SYSTEM"]=4,r}(),CallOperationType:function(){const a={},r=Object.create(a);return r[a[0]="OP_UNKNOWN"]=0,r[a[1]="OP_CALL"]=1,r[a[2]="OP_CALLCODE"]=2,r[a[3]="OP_DELEGATECALL"]=3,r[a[4]="OP_STATICCALL"]=4,r[a[5]="OP_CREATE"]=5,r[a[6]="OP_CREATE2"]=6,r}(),ContractAction:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.callType=i.int32();break;case 2:h.callingAccount=f.proto.AccountID.decode(i,i.uint32());break;case 3:h.callingContract=f.proto.ContractID.decode(i,i.uint32());break;case 4:h.gas=i.int64();break;case 5:h.input=i.bytes();break;case 6:h.recipientAccount=f.proto.AccountID.decode(i,i.uint32());break;case 7:h.recipientContract=f.proto.ContractID.decode(i,i.uint32());break;case 8:h.targetedAddress=i.bytes();break;case 9:h.value=i.int64();break;case 10:h.gasUsed=i.int64();break;case 11:h.output=i.bytes();break;case 12:h.revertReason=i.bytes();break;case 13:h.error=i.bytes();break;case 14:h.callDepth=i.int32();break;case 15:h.callOperationType=i.int32();break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.ContractAction"},a}(),ContractBytecode:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractId=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.initcode=r.bytes();break;case 3:d.runtimeBytecode=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractBytecode"},a}(),ContractStateChanges:function(){function a(r){if(this.contractStateChanges=[],r)for(var i=Object.keys(r),c=0;c>>3?(d.contractStateChanges&&d.contractStateChanges.length||(d.contractStateChanges=[]),d.contractStateChanges.push(f.proto.ContractStateChange.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractStateChanges"},a}(),ContractStateChange:function(){function a(r){if(this.storageChanges=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.contractId=f.proto.ContractID.decode(r,r.uint32());break;case 2:d.storageChanges&&d.storageChanges.length||(d.storageChanges=[]),d.storageChanges.push(f.proto.StorageChange.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.ContractStateChange"},a}(),StorageChange:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.slot=r.bytes();break;case 2:d.valueRead=r.bytes();break;case 3:d.valueWritten=f.google.protobuf.BytesValue.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.StorageChange"},a}(),HashAlgorithm:function(){const a={},r=Object.create(a);return r[a[0]="HASH_ALGORITHM_UNKNOWN"]=0,r[a[1]="SHA_384"]=1,r}(),HashObject:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.algorithm=r.int32();break;case 2:d.length=r.int32();break;case 3:d.hash=r.bytes();break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.HashObject"},a}(),RecordStreamFile:function(){function a(r){if(this.recordStreamItems=[],this.sidecars=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.hapiProtoVersion=f.proto.SemanticVersion.decode(r,r.uint32());break;case 2:d.startObjectRunningHash=f.proto.HashObject.decode(r,r.uint32());break;case 3:d.recordStreamItems&&d.recordStreamItems.length||(d.recordStreamItems=[]),d.recordStreamItems.push(f.proto.RecordStreamItem.decode(r,r.uint32()));break;case 4:d.endObjectRunningHash=f.proto.HashObject.decode(r,r.uint32());break;case 5:d.blockNumber=r.int64();break;case 6:d.sidecars&&d.sidecars.length||(d.sidecars=[]),d.sidecars.push(f.proto.SidecarMetadata.decode(r,r.uint32()));break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.RecordStreamFile"},a}(),RecordStreamItem:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.transaction=f.proto.Transaction.decode(r,r.uint32());break;case 2:d.record=f.proto.TransactionRecord.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.RecordStreamItem"},a}(),SidecarMetadata:function(){function a(r){if(this.types=[],r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.hash=f.proto.HashObject.decode(r,r.uint32());break;case 2:d.id=r.int32();break;case 3:if(d.types&&d.types.length||(d.types=[]),2==(7&h))for(var g=r.uint32()+r.pos;r.pos>>3?(d.sidecarRecords&&d.sidecarRecords.length||(d.sidecarRecords=[]),d.sidecarRecords.push(f.proto.TransactionSidecarRecord.decode(r,r.uint32()))):r.skipType(7&h);return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SidecarFile"},a}(),TransactionSidecarRecord:function(){function a(i){if(i)for(var c=Object.keys(i),d=0;d>>3){case 1:h.consensusTimestamp=f.proto.Timestamp.decode(i,i.uint32());break;case 2:h.migration=i.bool();break;case 3:h.stateChanges=f.proto.ContractStateChanges.decode(i,i.uint32());break;case 4:h.actions=f.proto.ContractActions.decode(i,i.uint32());break;case 5:h.bytecode=f.proto.ContractBytecode.decode(i,i.uint32());break;default:i.skipType(7&g)}return h},a.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/proto.TransactionSidecarRecord"},a}(),SignatureFile:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.fileSignature=f.proto.SignatureObject.decode(r,r.uint32());break;case 2:d.metadataSignature=f.proto.SignatureObject.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SignatureFile"},a}(),SignatureObject:function(){function a(r){if(r)for(var i=Object.keys(r),c=0;c>>3){case 1:d.type=r.int32();break;case 2:d.length=r.int32();break;case 3:d.checksum=r.int32();break;case 4:d.signature=r.bytes();break;case 5:d.hashObject=f.proto.HashObject.decode(r,r.uint32());break;default:r.skipType(7&h)}return d},a.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/proto.SignatureObject"},a}(),SignatureType:function(){const a={},r=Object.create(a);return r[a[0]="SIGNATURE_TYPE_UNKNOWN"]=0,r[a[1]="SHA_384_WITH_RSA"]=1,r}()};Ae.proto=b;const x=f.google={protobuf:{DoubleValue:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.double():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.DoubleValue"},r}(),FloatValue:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.float():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.FloatValue"},r}(),Int64Value:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.int64():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.Int64Value"},r}(),UInt64Value:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.uint64():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.UInt64Value"},r}(),Int32Value:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.int32():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.Int32Value"},r}(),UInt32Value:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.uint32():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.UInt32Value"},r}(),BoolValue:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.bool():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.BoolValue"},r}(),StringValue:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.string():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.StringValue"},r}(),BytesValue:function(){function r(i){if(i)for(var c=Object.keys(i),d=0;d>>3?h.value=i.bytes():i.skipType(7&g);return h},r.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/google.protobuf.BytesValue"},r}()}};Ae.google=x},6984:Ne=>{"use strict";Ne.exports=function Ae($,v){for(var A=new Array(arguments.length-1),T=0,_=2,y=!0;_{"use strict";var $=Ae;$.length=function(m){var f=m.length;if(!f)return 0;for(var C=0;--f%4>1&&"="===m.charAt(f);)++C;return Math.ceil(3*m.length)/4-C};for(var v=new Array(64),A=new Array(123),T=0;T<64;)A[v[T]=T<26?T+65:T<52?T+71:T<62?T-4:T-59|43]=T++;$.encode=function(m,f,C){for(var r,b=null,x=[],k=0,a=0;f>2],r=(3&i)<<4,a=1;break;case 1:x[k++]=v[r|i>>4],r=(15&i)<<2,a=2;break;case 2:x[k++]=v[r|i>>6],x[k++]=v[63&i],a=0}k>8191&&((b||(b=[])).push(String.fromCharCode.apply(String,x)),k=0)}return a&&(x[k++]=v[r],x[k++]=61,1===a&&(x[k++]=61)),b?(k&&b.push(String.fromCharCode.apply(String,x.slice(0,k))),b.join("")):String.fromCharCode.apply(String,x.slice(0,k))};var _="invalid encoding";$.decode=function(m,f,C){for(var k,b=C,x=0,a=0;a1)break;if(void 0===(r=A[r]))throw Error(_);switch(x){case 0:k=r,x=1;break;case 1:f[C++]=k<<2|(48&r)>>4,k=r,x=2;break;case 2:f[C++]=(15&k)<<4|(60&r)>>2,k=r,x=3;break;case 3:f[C++]=(3&k)<<6|r,x=0}}if(1===x)throw Error(_);return C-b},$.test=function(m){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(m)}},8523:Ne=>{"use strict";function Ae(){this._listeners={}}Ne.exports=Ae,Ae.prototype.on=function(v,A,T){return(this._listeners[v]||(this._listeners[v]=[])).push({fn:A,ctx:T||this}),this},Ae.prototype.off=function(v,A){if(void 0===v)this._listeners={};else if(void 0===A)this._listeners[v]=[];else for(var T=this._listeners[v],_=0;_{"use strict";function Ae(_){return typeof Float32Array<"u"?function(){var y=new Float32Array([-0]),m=new Uint8Array(y.buffer),f=128===m[3];function C(a,r,i){y[0]=a,r[i]=m[0],r[i+1]=m[1],r[i+2]=m[2],r[i+3]=m[3]}function b(a,r,i){y[0]=a,r[i]=m[3],r[i+1]=m[2],r[i+2]=m[1],r[i+3]=m[0]}function x(a,r){return m[0]=a[r],m[1]=a[r+1],m[2]=a[r+2],m[3]=a[r+3],y[0]}function k(a,r){return m[3]=a[r],m[2]=a[r+1],m[1]=a[r+2],m[0]=a[r+3],y[0]}_.writeFloatLE=f?C:b,_.writeFloatBE=f?b:C,_.readFloatLE=f?x:k,_.readFloatBE=f?k:x}():function(){function y(f,C,b,x){var k=C<0?1:0;if(k&&(C=-C),0===C)f(1/C>0?0:2147483648,b,x);else if(isNaN(C))f(2143289344,b,x);else if(C>34028234663852886e22)f((k<<31|2139095040)>>>0,b,x);else if(C<11754943508222875e-54)f((k<<31|Math.round(C/1401298464324817e-60))>>>0,b,x);else{var a=Math.floor(Math.log(C)/Math.LN2);f((k<<31|a+127<<23|8388607&Math.round(C*Math.pow(2,-a)*8388608))>>>0,b,x)}}function m(f,C,b){var x=f(C,b),k=2*(x>>31)+1,a=x>>>23&255,r=8388607&x;return 255===a?r?NaN:k*(1/0):0===a?1401298464324817e-60*k*r:k*Math.pow(2,a-150)*(r+8388608)}_.writeFloatLE=y.bind(null,$),_.writeFloatBE=y.bind(null,v),_.readFloatLE=m.bind(null,A),_.readFloatBE=m.bind(null,T)}(),typeof Float64Array<"u"?function(){var y=new Float64Array([-0]),m=new Uint8Array(y.buffer),f=128===m[7];function C(a,r,i){y[0]=a,r[i]=m[0],r[i+1]=m[1],r[i+2]=m[2],r[i+3]=m[3],r[i+4]=m[4],r[i+5]=m[5],r[i+6]=m[6],r[i+7]=m[7]}function b(a,r,i){y[0]=a,r[i]=m[7],r[i+1]=m[6],r[i+2]=m[5],r[i+3]=m[4],r[i+4]=m[3],r[i+5]=m[2],r[i+6]=m[1],r[i+7]=m[0]}function x(a,r){return m[0]=a[r],m[1]=a[r+1],m[2]=a[r+2],m[3]=a[r+3],m[4]=a[r+4],m[5]=a[r+5],m[6]=a[r+6],m[7]=a[r+7],y[0]}function k(a,r){return m[7]=a[r],m[6]=a[r+1],m[5]=a[r+2],m[4]=a[r+3],m[3]=a[r+4],m[2]=a[r+5],m[1]=a[r+6],m[0]=a[r+7],y[0]}_.writeDoubleLE=f?C:b,_.writeDoubleBE=f?b:C,_.readDoubleLE=f?x:k,_.readDoubleBE=f?k:x}():function(){function y(f,C,b,x,k,a){var r=x<0?1:0;if(r&&(x=-x),0===x)f(0,k,a+C),f(1/x>0?0:2147483648,k,a+b);else if(isNaN(x))f(0,k,a+C),f(2146959360,k,a+b);else if(x>17976931348623157e292)f(0,k,a+C),f((r<<31|2146435072)>>>0,k,a+b);else{var i;if(x<22250738585072014e-324)f((i=x/5e-324)>>>0,k,a+C),f((r<<31|i/4294967296)>>>0,k,a+b);else{var c=Math.floor(Math.log(x)/Math.LN2);1024===c&&(c=1023),f(4503599627370496*(i=x*Math.pow(2,-c))>>>0,k,a+C),f((r<<31|c+1023<<20|1048576*i&1048575)>>>0,k,a+b)}}}function m(f,C,b,x,k){var a=f(x,k+C),r=f(x,k+b),i=2*(r>>31)+1,c=r>>>20&2047,d=4294967296*(1048575&r)+a;return 2047===c?d?NaN:i*(1/0):0===c?5e-324*i*d:i*Math.pow(2,c-1075)*(d+4503599627370496)}_.writeDoubleLE=y.bind(null,$,0,4),_.writeDoubleBE=y.bind(null,v,4,0),_.readDoubleLE=m.bind(null,A,0,4),_.readDoubleBE=m.bind(null,T,4,0)}(),_}function $(_,y,m){y[m]=255&_,y[m+1]=_>>>8&255,y[m+2]=_>>>16&255,y[m+3]=_>>>24}function v(_,y,m){y[m]=_>>>24,y[m+1]=_>>>16&255,y[m+2]=_>>>8&255,y[m+3]=255&_}function A(_,y){return(_[y]|_[y+1]<<8|_[y+2]<<16|_[y+3]<<24)>>>0}function T(_,y){return(_[y]<<24|_[y+1]<<16|_[y+2]<<8|_[y+3])>>>0}Ne.exports=Ae(Ae)},6771:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Ne){}return null}module.exports=inquire},7560:Ne=>{"use strict";Ne.exports=function Ae($,v,A){var T=A||8192,_=T>>>1,y=null,m=T;return function(C){if(C<1||C>_)return $(C);m+C>T&&(y=$(T),m=0);var b=v.call(y,m,m+=C);return 7&m&&(m=1+(7|m)),b}}},121:(Ne,Ae)=>{"use strict";var $=Ae;$.length=function(A){for(var T=0,_=0,y=0;y191&&b<224?f[C++]=(31&b)<<6|63&A[T++]:b>239&&b<365?(b=((7&b)<<18|(63&A[T++])<<12|(63&A[T++])<<6|63&A[T++])-65536,f[C++]=55296+(b>>10),f[C++]=56320+(1023&b)):f[C++]=(15&b)<<12|(63&A[T++])<<6|63&A[T++],C>8191&&((m||(m=[])).push(String.fromCharCode.apply(String,f)),C=0);return m?(C&&m.push(String.fromCharCode.apply(String,f.slice(0,C))),m.join("")):String.fromCharCode.apply(String,f.slice(0,C))},$.write=function(A,T,_){for(var m,f,y=_,C=0;C>6|192,T[_++]=63&m|128):55296==(64512&m)&&56320==(64512&(f=A.charCodeAt(C+1)))?(++C,T[_++]=(m=65536+((1023&m)<<10)+(1023&f))>>18|240,T[_++]=m>>12&63|128,T[_++]=m>>6&63|128,T[_++]=63&m|128):(T[_++]=m>>12|224,T[_++]=m>>6&63|128,T[_++]=63&m|128);return _-y}},6398:function(Ne,Ae,$){"use strict";var v=this&&this.__assign||function(){return v=Object.assign||function(a){for(var r,i=1,c=arguments.length;i0&&h[h.length-1])&&(6===U[0]||2===U[0])){i=0;continue}if(3===U[0]&&(!h||U[1]>h[0]&&U[1]1)throw new Error("dotScale should be in range (0, 1].");i.components.data.scale=i.dotScale,i.components.timing.scale=i.dotScale,i.components.alignment.scale=i.dotScale}this.options=i,this.canvas=y.createCanvas(r.size,r.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new f.QRCodeModel(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return a.prototype.draw=function(){var r=this;return new Promise(function(i){return r._draw().then(i)})},a.prototype._clear=function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)},a._prepareRoundedCornerClip=function(r,i,c,d,h,g){r.beginPath(),r.moveTo(i,c),r.arcTo(i+d,c,i+d,c+h,g),r.arcTo(i+d,c+h,i,c+h,g),r.arcTo(i,c+h,i,c,g),r.arcTo(i,c,i+d,c,g),r.closePath()},a._getAverageRGB=function(r){var d,h,te,c={r:0,g:0,b:0},g=-4,E={r:0,g:0,b:0},P=0,X=y.createCanvas(d=r.naturalWidth||r.width,h=r.naturalHeight||r.height).getContext("2d");if(!X)return c;X.drawImage(r,0,0);try{te=X.getImageData(0,0,d,h)}catch{return c}for(;(g+=20)200||te.data[g+1]>200||te.data[g+2]>200||(++P,E.r+=te.data[g],E.g+=te.data[g+1],E.b+=te.data[g+2]);return E.r=~~(E.r/P),E.g=~~(E.g/P),E.b=~~(E.b/P),E},a._drawDot=function(r,i,c,d,h,g){void 0===h&&(h=0),void 0===g&&(g=1),r.fillRect((i+h)*d,(c+h)*d,g*d,g*d)},a._drawAlignProtector=function(r,i,c,d){r.clearRect((i-2)*d,(c-2)*d,5*d,5*d),r.fillRect((i-2)*d,(c-2)*d,5*d,5*d)},a._drawAlign=function(r,i,c,d,h,g,E,P){void 0===h&&(h=0),void 0===g&&(g=1);var U=r.fillStyle;r.fillStyle=E,new Array(4).fill(0).map(function(X,te){a._drawDot(r,i-2+te,c-2,d,h,g),a._drawDot(r,i+2,c-2+te,d,h,g),a._drawDot(r,i+2-te,c+2,d,h,g),a._drawDot(r,i-2,c+2-te,d,h,g)}),a._drawDot(r,i,c,d,h,g),P||(r.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(function(X,te){a._drawDot(r,i-1+te,c-1,d,h,g),a._drawDot(r,i+1,c-1+te,d,h,g),a._drawDot(r,i+1-te,c+1,d,h,g),a._drawDot(r,i-1,c+1-te,d,h,g)})),r.fillStyle=U},a.prototype._draw=function(){var r,i,c,d,h,g,E,P,U,X,te,z,W,Y,D,N,L,O,I;return A(this,void 0,void 0,function(){var B,F,H,G,Z,oe,j,de,_e,st,ne,We,Pe,we,Be,K,Q,ie,Ce,ve,je,Me,tt,It,bt,Ye,Et,xt,Pt,Wt,fe,ee,re,Ie,He,ot,un,Ht,Bn,Rt,zt,Dn,fn,jt,Tr,yn,Nt,Kt,Xt,an,hr,Ft,$e,ae,le,ue,q,be,Ge,nt,et;return T(this,function(rn){switch(rn.label){case 0:if(B=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,F=this.options.size,((H=this.options.margin)<0||2*H>=F)&&(H=0),G=Math.ceil(H),Z=this.options.whiteMargin,oe=this.options.backgroundDimming,j=Math.ceil((F-2*H)/B),st=y.createCanvas(_e=(de=j*B)+2*G,_e),ne=st.getContext("2d"),this._clear(),ne.save(),ne.translate(G,G),We=y.createCanvas(_e,_e),Pe=We.getContext("2d"),we=null,Be=[],!this.options.gifBackground)return[3,1];if(K=m.parseGIF(this.options.gifBackground),we=K,Be=m.decompressFrames(K,!0),this.options.autoColor){for(Q=0,ie=0,Ce=0,ve=0,zt=0;zt200||je[1]>200||je[2]>200)&&(0===je[0]&&0===je[1]&&0===je[2]||(ve++,Q+=je[0],ie+=je[1],Ce+=je[2]));this.options.colorDark="rgb("+(Q=~~(Q/ve))+","+(ie=~~(ie/ve))+","+(Ce=~~(Ce/ve))+")"}return[3,4];case 1:return this.options.backgroundImage?[4,y.loadImage(this.options.backgroundImage)]:[3,3];case 2:return Me=rn.sent(),this.options.autoColor&&(tt=a._getAverageRGB(Me),this.options.colorDark="rgb("+tt.r+","+tt.g+","+tt.b+")"),Pe.drawImage(Me,0,0,Me.width,Me.height,0,0,_e,_e),Pe.rect(0,0,_e,_e),Pe.fillStyle=oe,Pe.fill(),[3,4];case 3:Pe.rect(0,0,_e,_e),Pe.fillStyle=this.options.colorLight,Pe.fill(),rn.label=4;case 4:for(It=f.QRUtil.getPatternPosition(this.qrCode.typeNumber),bt=(null===(c=null===(i=this.options.components)||void 0===i?void 0:i.data)||void 0===c?void 0:c.scale)||b,Ye=.5*(1-bt),Et=0;Et=8&&xt<=B-8||6==xt&&Et>=8&&Et<=B-8,fe=xt<8&&(Et<8||Et>=B-8)||xt>=B-8&&Et<8||Wt,zt=1;zt=It[zt]-2&&Et<=It[zt]+2&&xt>=It[zt]-2&&xt<=It[zt]+2;ee=xt*j+(fe?0:Ye*j),re=Et*j+(fe?0:Ye*j),ne.strokeStyle=Pt?this.options.colorDark:this.options.colorLight,ne.lineWidth=.5,ne.fillStyle=Pt?this.options.colorDark:"rgba(255, 255, 255, 0.6)",0===It.length?fe||ne.fillRect(ee,re,(fe?1:bt)*j,(fe?1:bt)*j):(Ie=xt=B-4-5&&Et=B-4-5,!fe&&!Ie&&ne.fillRect(ee,re,(fe?1:bt)*j,(fe?1:bt)*j))}if(He=It[It.length-1],ne.fillStyle="rgba(255, 255, 255, 0.6)",ne.fillRect(0,0,8*j,8*j),ne.fillRect(0,(B-8)*j,8*j,8*j),ne.fillRect((B-8)*j,0,8*j,8*j),!(null===(h=null===(d=this.options.components)||void 0===d?void 0:d.timing)||void 0===h)&&h.protectors&&(ne.fillRect(8*j,6*j,(B-8-8)*j,j),ne.fillRect(6*j,8*j,j,(B-8-8)*j)),!(null===(E=null===(g=this.options.components)||void 0===g?void 0:g.cornerAlignment)||void 0===E)&&E.protectors&&a._drawAlignProtector(ne,He,He,j),null!==(U=null===(P=this.options.components)||void 0===P?void 0:P.alignment)&&void 0!==U&&U.protectors)for(zt=0;zt=1)&&(yn=.2),(Nt=this.options.logoMargin)<0&&(Nt=0),(Kt=this.options.logoCornerRadius)<0&&(Kt=0),hr=an=.5*(_e-(Xt=de*yn)),ne.restore(),ne.fillStyle="#FFFFFF",ne.save(),a._prepareRoundedCornerClip(ne,an-Nt,hr-Nt,Xt+2*Nt,Xt+2*Nt,Kt+Nt),ne.clip(),Ft=ne.globalCompositeOperation,ne.globalCompositeOperation="destination-out",ne.fill(),ne.globalCompositeOperation=Ft,ne.restore(),ne.save(),a._prepareRoundedCornerClip(ne,an,hr,Xt,Xt,Kt),ne.clip(),ne.drawImage(Tr,an,hr,Xt,Xt),ne.restore(),ne.save(),ne.translate(G,G),rn.label=6;case 6:if(we){if(Be.forEach(function(St){$e||(($e=new C.default(F,F)).setDelay(St.delay),$e.setRepeat(0));var dn=St.dims,Zt=dn.width,vn=dn.height;ae||(ae=y.createCanvas(Zt,vn),(le=ae.getContext("2d")).rect(0,0,ae.width,ae.height),le.fillStyle="#ffffff",le.fill()),(!ue||!be||Zt!==ue.width||vn!==ue.height)&&(ue=y.createCanvas(Zt,vn),q=ue.getContext("2d"),be=q.createImageData(Zt,vn)),be.data.set(St.patch),q.putImageData(be,0,0),le.drawImage(ue,St.dims.left,St.dims.top);var bn=y.createCanvas(_e,_e),En=bn.getContext("2d");En.drawImage(ae,0,0,_e,_e),En.rect(0,0,_e,_e),En.fillStyle=oe,En.fill(),En.drawImage(st,0,0,_e,_e);var Tn=y.createCanvas(F,F),In=Tn.getContext("2d");In.drawImage(bn,0,0,F,F),$e.addFrame(In.getImageData(0,0,Tn.width,Tn.height).data)}),!$e)throw new Error("No frames.");return $e.finish(),k(this.canvas)?(Ge=$e.stream().toFlattenUint8Array(),nt=Ge.reduce(function(St,dn){return St+String.fromCharCode(dn)},""),[2,Promise.resolve("data:image/gif;base64,"+window.btoa(nt))]):[2,Promise.resolve(Buffer.from($e.stream().toFlattenUint8Array()))]}return Pe.drawImage(st,0,0,_e,_e),ne.drawImage(We,-G,-G,_e,_e),(et=y.createCanvas(F,F)).getContext("2d").drawImage(st,0,0,F,F),this.canvas=et,k(this.canvas)?[2,Promise.resolve(this.canvas.toDataURL())]:[2,Promise.resolve(this.canvas.toBuffer())]}})})},a.CorrectLevel=f.QRErrorCorrectLevel,a.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"#ffffff",correctLevel:f.QRErrorCorrectLevel.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:a.defaultComponentOptions={data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}},autoColor:!0},a}();function k(a){try{return a instanceof HTMLElement}catch{return"object"==typeof a&&1===a.nodeType&&"object"==typeof a.style&&"object"==typeof a.ownerDocument}}Ae.AwesomeQR=x},552:(Ne,Ae,$)=>{"use strict";var v=$(6478),A=$(4314);function T(){this.page=-1,this.pages=[],this.newPage()}T.pageSize=4096,T.charMap={};for(var _=0;_<256;_++)T.charMap[_]=String.fromCharCode(_);function y(m,f){this.width=~~m,this.height=~~f,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new T}T.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(T.pageSize),this.cursor=0},T.prototype.getData=function(){for(var m="",f=0;f=T.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=m},T.prototype.writeUTFBytes=function(m){for(var f=m.length,C=0;C=0&&(this.dispose=m)},y.prototype.setRepeat=function(m){this.repeat=m},y.prototype.setTransparent=function(m){this.transparent=m},y.prototype.addFrame=function(m){this.image=m,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1},y.prototype.finish=function(){this.out.writeByte(59)},y.prototype.setQuality=function(m){m<1&&(m=1),this.sample=m},y.prototype.setDither=function(m){!0===m&&(m="FloydSteinberg"),this.dither=m},y.prototype.setGlobalPalette=function(m){this.globalPalette=m},y.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},y.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},y.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new v(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},y.prototype.indexPixels=function(m){var f=this.pixels.length/3;this.indexedPixels=new Uint8Array(f);for(var C=0,b=0;b=0&&O+d=0&&I+c>16,(65280&m)>>8,255&m,f)},y.prototype.findClosestRGB=function(m,f,C,b){if(null===this.colorTab)return-1;if(this.neuQuant&&!b)return this.neuQuant.lookupRGB(m,f,C);for(var k=0,a=16777216,r=this.colorTab.length,i=0,c=0;i=0&&(f=7&this.dispose),this.out.writeByte(0|(f<<=2)|m),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},y.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(this.firstFrame||this.globalPalette?0:128|this.palSize)},y.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},y.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},y.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var m=768-this.colorTab.length,f=0;f>8&255)},y.prototype.writePixels=function(){new A(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},y.prototype.stream=function(){return this.out},Ne.exports=y},4314:Ne=>{"use strict";var Ae=-1,$=12,v=5003,A=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];Ne.exports=function T(_,y,m,f){var a,i,d,g,E,P,U,X,te,C=Math.max(2,f),b=new Uint8Array(256),x=new Int32Array(v),k=new Int32Array(v),r=0,c=0,h=!1;function z(F,H){b[i++]=F,i>=254&&L(H)}function W(F){Y(v),c=E+2,h=!0,B(E,F)}function Y(F){for(var H=0;H0&&(F.writeByte(i),F.writeBytes(b,0,i),i=0)}function O(F){return(1<0?a|=F<=8;)z(255&a,H),a>>=8,r-=8;if((c>d||h)&&(h?(d=O(te=g),h=!1):(++te,d=te==$?1<<$:O(te))),F==P){for(;r>0;)z(255&a,H),a>>=8,r-=8;L(H)}}this.encode=function N(F){F.writeByte(C),U=_*y,X=0,function D(F,H){var G,R,Z,oe,j,de,_e;for(h=!1,d=O(te=g=F),P=1+(E=1<=0){j=de-Z,0===Z&&(j=1);do{if((Z-=j)<0&&(Z+=de),x[Z]===G){oe=k[Z];continue e}}while(x[Z]>=0)}B(oe,H),oe=R,c<1<<$?(k[Z]=c++,x[Z]=G):W(H)}else oe=k[Z];B(oe,H),B(P,H)}(C+1,F),F.writeByte(0)}}},6478:Ne=>{"use strict";var $=256,v=$-1,A=4,T=16,_=1<>f,b=_<>3),d=1024,U=1<<18;Ne.exports=function D(N,L){var O,I,B,F,H;function Z(Pe,we,Be,K,Q){O[we][0]-=Pe*(O[we][0]-Be)/d,O[we][1]-=Pe*(O[we][1]-K)/d,O[we][2]-=Pe*(O[we][2]-Q)/d}function oe(Pe,we,Be,K,Q){for(var tt,It,ie=Math.abs(we-Pe),Ce=Math.min(we+Pe,$),ve=we+1,je=we-1,Me=1;veie;)It=H[Me++],veie&&((tt=O[je--])[0]-=It*(tt[0]-Be)/U,tt[1]-=It*(tt[1]-K)/U,tt[2]-=It*(tt[2]-Q)/U)}function j(Pe,we,Be){var ve,je,Me,tt,It,K=2147483647,Q=K,ie=-1,Ce=ie;for(ve=0;ve<$;ve++)je=O[ve],(Me=Math.abs(je[0]-Pe)+Math.abs(je[1]-we)+Math.abs(je[2]-Be))>T-A))>f,B[ve]+=It<>3),Pe=0;Pe<$;Pe++)we=(Pe<>6;for(ve<=1&&(ve=0),Pe=0;Pe=we&&(Ye-=we),0===Q&&(Q=1),++Pe%Q==0)for(ie-=ie/Be,(ve=(Ce-=Ce/30)>>6)<=1&&(ve=0),bt=0;bt>=A,O[Pe][1]>>=A,O[Pe][2]>>=A,O[Pe][3]=Pe}(),function de(){var Pe,we,Be,K,Q,ie,Ce=0,ve=0;for(Pe=0;Pe<$;Pe++){for(Q=Pe,ie=(Be=O[Pe])[1],we=Pe+1;we<$;we++)(K=O[we])[1]>1,we=Ce+1;we>1,we=Ce+1;we<256;we++)I[we]=v}()},this.getColormap=function We(){for(var Pe=[],we=[],Be=0;Be<$;Be++)we[O[Be][3]]=Be;for(var K=0,Q=0;Q<$;Q++){var ie=we[Q];Pe[K++]=O[ie][0],Pe[K++]=O[ie][1],Pe[K++]=O[ie][2]}return Pe},this.lookupRGB=function _e(Pe,we,Be){for(var K,Q,ie,Ce=1e3,ve=-1,je=I[we],Me=je-1;je<$||Me>=0;)je<$&&((ie=(Q=O[je])[1]-we)>=Ce?je=$:(je++,ie<0&&(ie=-ie),(K=Q[0]-Pe)<0&&(K=-K),(ie+=K)=0&&((ie=we-(Q=O[Me])[1])>=Ce?Me=-1:(Me--,ie<0&&(ie=-ie),(K=Q[0]-Pe)<0&&(K=-K),(ie+=K){"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.deinterlace=void 0,Ae.deinterlace=function($,v){for(var A=new Array($.length),T=$.length/v,y=[0,4,2,1],m=[8,8,4,2],f=0,C=0;C<4;C++)for(var b=y[C];b{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.lzw=void 0,Ae.lzw=function($,v,A){var m,f,C,b,x,k,a,r,i,c,P,U,te,z,W,Y,T=4096,y=A,d=new Array(A),h=new Array(T),g=new Array(T),E=new Array(T+1);for(x=1+(f=1<<(c=$)),m=f+2,a=-1,C=(1<<(b=c+1))-1,r=0;r>=b,U-=b,r>m||r==x)break;if(r==f){C=(1<<(b=c+1))-1,m=f+2,a=-1;continue}if(-1==a){E[z++]=g[r],a=r,te=r;continue}for(k=r,r==m&&(E[z++]=te,r=a);r>f;)E[z++]=g[r],r=h[r];E[z++]=te=255&g[r],m{"use strict";function A(a){var r=encodeURI(a).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return r.length+(r.length!=Number(a)?3:0)}Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.QRMath=Ae.QRUtil=Ae.QRMaskPattern=Ae.QRErrorCorrectLevel=Ae.QRCodeModel=void 0;var T=function(){function a(r){this.mode=y.MODE_8BIT_BYTE,this.parsedData=[],this.data=r;for(var i=[],c=0,d=this.data.length;c65536?(h[0]=240|(1835008&g)>>>18,h[1]=128|(258048&g)>>>12,h[2]=128|(4032&g)>>>6,h[3]=128|63&g):g>2048?(h[0]=224|(61440&g)>>>12,h[1]=128|(4032&g)>>>6,h[2]=128|63&g):g>128?(h[0]=192|(1984&g)>>>6,h[1]=128|63&g):h[0]=g,i.push(h)}this.parsedData=Array.prototype.concat.apply([],i),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a.prototype.getLength=function(){return this.parsedData.length},a.prototype.write=function(r){for(var i=0,c=this.parsedData.length;ik.length)throw new Error("Too long data");return i}(r,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: "+this.typeNumber);if(!function $(a,r,i){var c=A(r),d=a-1,h=0;switch(i){case Ae.QRErrorCorrectLevel.L:h=k[d][0];break;case Ae.QRErrorCorrectLevel.M:h=k[d][1];break;case Ae.QRErrorCorrectLevel.Q:h=k[d][2];break;case Ae.QRErrorCorrectLevel.H:h=k[d][3]}return c<=h}(this.typeNumber,r,this.errorCorrectLevel))throw new Error("Data is too long for QR version: "+this.typeNumber)}var i=new T(r);this.dataList.push(i),this.dataCache=void 0},a.prototype.isDark=function(r,i){if(r<0||this.moduleCount<=r||i<0||this.moduleCount<=i)throw new Error(r+","+i);return this.modules[r][i]},a.prototype.getModuleCount=function(){return this.moduleCount},a.prototype.make=function(){this.makeImpl(!1,this.getBestMaskPattern())},a.prototype.makeImpl=function(r,i){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var c=0;c=7&&this.setupTypeNumber(r),null==this.dataCache&&(this.dataCache=a.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},a.prototype.setupPositionProbePattern=function(r,i){for(var c=-1;c<=7;c++)if(!(r+c<=-1||this.moduleCount<=r+c))for(var d=-1;d<=7;d++)i+d<=-1||this.moduleCount<=i+d||(this.modules[r+c][i+d]=0<=c&&c<=6&&(0==d||6==d)||0<=d&&d<=6&&(0==c||6==c)||2<=c&&c<=4&&2<=d&&d<=4)},a.prototype.getBestMaskPattern=function(){if(Number.isInteger(this.maskPattern)&&Object.values(Ae.QRMaskPattern).includes(this.maskPattern))return this.maskPattern;for(var r=0,i=0,c=0;c<8;c++){this.makeImpl(!0,c);var d=m.getLostPoint(this);(0==c||r>d)&&(r=d,i=c)}return i},a.prototype.setupTimingPattern=function(){for(var r=8;r>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(c=0;c<18;c++)d=!r&&1==(i>>c&1),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d},a.prototype.setupTypeInfo=function(r,i){for(var d=m.getBCHTypeInfo(this.errorCorrectLevel<<3|i),h=0;h<15;h++){var g=!r&&1==(d>>h&1);h<6?this.modules[h][8]=g:h<8?this.modules[h+1][8]=g:this.modules[this.moduleCount-15+h][8]=g}for(h=0;h<15;h++)g=!r&&1==(d>>h&1),h<8?this.modules[8][this.moduleCount-h-1]=g:h<9?this.modules[8][15-h-1+1]=g:this.modules[8][15-h-1]=g;this.modules[this.moduleCount-8][8]=!r},a.prototype.mapData=function(r,i){for(var c=-1,d=this.moduleCount-1,h=7,g=0,E=this.moduleCount-1;E>0;E-=2)for(6==E&&E--;;){for(var P=0;P<2;P++)if(null==this.modules[d][E-P]){var U=!1;g>>h&1)),m.getMask(i,d,E-P)&&(U=!U),this.modules[d][E-P]=U,-1==--h&&(g++,h=7)}if((d+=c)<0||this.moduleCount<=d){d-=c,c=-c;break}}},a.createData=function(r,i,c){for(var d=b.getRSBlocks(r,i),h=new x,g=0;g8*P)throw new Error("code length overflow. ("+h.getLengthInBits()+">"+8*P+")");for(h.getLengthInBits()+4<=8*P&&h.put(0,4);h.getLengthInBits()%8!=0;)h.putBit(!1);for(;!(h.getLengthInBits()>=8*P||(h.put(a.PAD0,8),h.getLengthInBits()>=8*P));)h.put(a.PAD1,8);return a.createBytes(h,d)},a.createBytes=function(r,i){for(var c=0,d=0,h=0,g=new Array(i.length),E=new Array(i.length),P=0;P=0?Y.get(D):0}}var N=0;for(te=0;te=0;)i^=a.G15<=0;)i^=a.G18<>>=1;return i},a.getPatternPosition=function(r){return a.PATTERN_POSITION_TABLE[r-1]},a.getMask=function(r,i,c){switch(r){case Ae.QRMaskPattern.PATTERN000:return(i+c)%2==0;case Ae.QRMaskPattern.PATTERN001:return i%2==0;case Ae.QRMaskPattern.PATTERN010:return c%3==0;case Ae.QRMaskPattern.PATTERN011:return(i+c)%3==0;case Ae.QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(c/3))%2==0;case Ae.QRMaskPattern.PATTERN101:return i*c%2+i*c%3==0;case Ae.QRMaskPattern.PATTERN110:return(i*c%2+i*c%3)%2==0;case Ae.QRMaskPattern.PATTERN111:return(i*c%3+(i+c)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},a.getErrorCorrectPolynomial=function(r){for(var i=new C([1],0),c=0;c5&&(c+=3+g-5)}for(d=0;d=256;)r-=255;return a.EXP_TABLE[r]},a.EXP_TABLE=new Array(256),a.LOG_TABLE=new Array(256),a._constructor=function(){for(var r=0;r<8;r++)a.EXP_TABLE[r]=1<>>7-r%8&1)},a.prototype.put=function(r,i){for(var c=0;c>>i-c-1&1))},a.prototype.getLengthInBits=function(){return this.length},a.prototype.putBit=function(r){var i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),r&&(this.buffer[i]|=128>>>this.length%8),this.length++},a}(),k=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},6434:(Ne,Ae)=>{"use strict";Ae.byteLength=function f(r){var i=m(r),d=i[1];return 3*(i[0]+d)/4-d},Ae.toByteArray=function b(r){var i,U,c=m(r),d=c[0],h=c[1],g=new A(function C(r,i,c){return 3*(i+c)/4-c}(0,d,h)),E=0,P=h>0?d-4:d;for(U=0;U>16&255,g[E++]=i>>8&255,g[E++]=255&i;return 2===h&&(i=v[r.charCodeAt(U)]<<2|v[r.charCodeAt(U+1)]>>4,g[E++]=255&i),1===h&&(i=v[r.charCodeAt(U)]<<10|v[r.charCodeAt(U+1)]<<4|v[r.charCodeAt(U+2)]>>2,g[E++]=i>>8&255,g[E++]=255&i),g},Ae.fromByteArray=function a(r){for(var i,c=r.length,d=c%3,h=[],g=16383,E=0,P=c-d;EP?P:E+g));return 1===d?h.push($[(i=r[c-1])>>2]+$[i<<4&63]+"=="):2===d&&h.push($[(i=(r[c-2]<<8)+r[c-1])>>10]+$[i>>4&63]+$[i<<2&63]+"="),h.join("")};for(var $=[],v=[],A=typeof Uint8Array<"u"?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,y=T.length;_0)throw new Error("Invalid string. Length must be a multiple of 4");var c=r.indexOf("=");return-1===c&&(c=i),[c,c===i?0:4-c%4]}function x(r){return $[r>>18&63]+$[r>>12&63]+$[r>>6&63]+$[63&r]}function k(r,i,c){for(var h=[],g=i;g=48&&B<=57?B-48:B>=65&&B<=70?B-55:B>=97&&B<=102?B-87:void T(!1,"Invalid character in "+O)}function C(O,I,B){var F=f(O,B);return B-1>=I&&(F|=f(O,B-1)<<4),F}function b(O,I,B,F){for(var H=0,G=0,R=Math.min(O.length,B),Z=I;Z=49?oe-49+10:oe>=17?oe-17+10:oe,T(oe>=0&&G0?I:B},y.min=function(I,B){return I.cmp(B)<0?I:B},y.prototype._init=function(I,B,F){if("number"==typeof I)return this._initNumber(I,B,F);if("object"==typeof I)return this._initArray(I,B,F);"hex"===B&&(B=16),T(B===(0|B)&&B>=2&&B<=36);var H=0;"-"===(I=I.toString().replace(/\s+/g,""))[0]&&(H++,this.negative=1),H=0;H-=3)this.words[G]|=(R=I[H]|I[H-1]<<8|I[H-2]<<16)<>>26-Z&67108863,(Z+=24)>=26&&(Z-=26,G++);else if("le"===F)for(H=0,G=0;H>>26-Z&67108863,(Z+=24)>=26&&(Z-=26,G++);return this._strip()},y.prototype._parseHex=function(I,B,F){this.length=Math.ceil((I.length-B)/6),this.words=new Array(this.length);for(var H=0;H=B;H-=2)Z=C(I,B,H)<=18?(G-=18,this.words[R+=1]|=Z>>>26):G+=8;else for(H=(I.length-B)%2==0?B+1:B;H=18?(G-=18,this.words[R+=1]|=Z>>>26):G+=8;this._strip()},y.prototype._parseBase=function(I,B,F){this.words=[0],this.length=1;for(var H=0,G=1;G<=67108863;G*=B)H++;H--,G=G/B|0;for(var R=I.length-F,Z=R%H,oe=Math.min(R,R-Z)+F,j=0,de=F;de1&&0===this.words[this.length-1];)this.length--;return this._normSign()},y.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{y.prototype[Symbol.for("nodejs.util.inspect.custom")]=k}catch{y.prototype.inspect=k}else y.prototype.inspect=k;function k(){return(this.red?""}var a=["","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"],r=[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],i=[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];function h(O,I,B){B.negative=I.negative^O.negative;var F=O.length+I.length|0;B.length=F,F=F-1|0;var H=0|O.words[0],G=0|I.words[0],R=H*G,oe=R/67108864|0;B.words[0]=67108863&R;for(var j=1;j>>26,_e=67108863&oe,st=Math.min(j,I.length-1),ne=Math.max(0,j-O.length+1);ne<=st;ne++)de+=(R=(H=0|O.words[j-ne|0])*(G=0|I.words[ne])+_e)/67108864|0,_e=67108863&R;B.words[j]=0|_e,oe=0|de}return 0!==oe?B.words[j]=0|oe:B.length--,B._strip()}y.prototype.toString=function(I,B){var F;if(B=0|B||1,16===(I=I||10)||"hex"===I){F="";for(var H=0,G=0,R=0;R>>24-H&16777215,(H+=2)>=26&&(H-=26,R--),F=0!==G||R!==this.length-1?a[6-oe.length]+oe+F:oe+F}for(0!==G&&(F=G.toString(16)+F);F.length%B!=0;)F="0"+F;return 0!==this.negative&&(F="-"+F),F}if(I===(0|I)&&I>=2&&I<=36){var j=r[I],de=i[I];F="";var _e=this.clone();for(_e.negative=0;!_e.isZero();){var st=_e.modrn(de).toString(I);F=(_e=_e.idivn(de)).isZero()?st+F:a[j-st.length]+st+F}for(this.isZero()&&(F="0"+F);F.length%B!=0;)F="0"+F;return 0!==this.negative&&(F="-"+F),F}T(!1,"Base should be between 2 and 36")},y.prototype.toNumber=function(){var I=this.words[0];return 2===this.length?I+=67108864*this.words[1]:3===this.length&&1===this.words[2]?I+=4503599627370496+67108864*this.words[1]:this.length>2&&T(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-I:I},y.prototype.toJSON=function(){return this.toString(16,2)},m&&(y.prototype.toBuffer=function(I,B){return this.toArrayLike(m,I,B)}),y.prototype.toArray=function(I,B){return this.toArrayLike(Array,I,B)},y.prototype.toArrayLike=function(I,B,F){this._strip();var H=this.byteLength(),G=F||Math.max(1,H);T(H<=G,"byte array longer than desired length"),T(G>0,"Requested array length <= 0");var R=function(I,B){return I.allocUnsafe?I.allocUnsafe(B):new I(B)}(I,G);return this["_toArrayLike"+("le"===B?"LE":"BE")](R,H),R},y.prototype._toArrayLikeLE=function(I,B){for(var F=0,H=0,G=0,R=0;G>8&255),F>16&255),6===R?(F>24&255),H=0,R=0):(H=Z>>>24,R+=2)}if(F=0&&(I[F--]=Z>>8&255),F>=0&&(I[F--]=Z>>16&255),6===R?(F>=0&&(I[F--]=Z>>24&255),H=0,R=0):(H=Z>>>24,R+=2)}if(F>=0)for(I[F--]=H;F>=0;)I[F--]=0},y.prototype._countBits=Math.clz32?function(I){return 32-Math.clz32(I)}:function(I){var B=I,F=0;return B>=4096&&(F+=13,B>>>=13),B>=64&&(F+=7,B>>>=7),B>=8&&(F+=4,B>>>=4),B>=2&&(F+=2,B>>>=2),F+B},y.prototype._zeroBits=function(I){if(0===I)return 26;var B=I,F=0;return 8191&B||(F+=13,B>>>=13),127&B||(F+=7,B>>>=7),15&B||(F+=4,B>>>=4),3&B||(F+=2,B>>>=2),1&B||F++,F},y.prototype.bitLength=function(){var B=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+B},y.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,B=0;BI.length?this.clone().ior(I):I.clone().ior(this)},y.prototype.uor=function(I){return this.length>I.length?this.clone().iuor(I):I.clone().iuor(this)},y.prototype.iuand=function(I){var B;B=this.length>I.length?I:this;for(var F=0;FI.length?this.clone().iand(I):I.clone().iand(this)},y.prototype.uand=function(I){return this.length>I.length?this.clone().iuand(I):I.clone().iuand(this)},y.prototype.iuxor=function(I){var B,F;this.length>I.length?(B=this,F=I):(B=I,F=this);for(var H=0;HI.length?this.clone().ixor(I):I.clone().ixor(this)},y.prototype.uxor=function(I){return this.length>I.length?this.clone().iuxor(I):I.clone().iuxor(this)},y.prototype.inotn=function(I){T("number"==typeof I&&I>=0);var B=0|Math.ceil(I/26),F=I%26;this._expand(B),F>0&&B--;for(var H=0;H0&&(this.words[H]=~this.words[H]&67108863>>26-F),this._strip()},y.prototype.notn=function(I){return this.clone().inotn(I)},y.prototype.setn=function(I,B){T("number"==typeof I&&I>=0);var F=I/26|0,H=I%26;return this._expand(F+1),this.words[F]=B?this.words[F]|1<I.length?(F=this,H=I):(F=I,H=this);for(var G=0,R=0;R>>26;for(;0!==G&&R>>26;if(this.length=F.length,0!==G)this.words[this.length]=G,this.length++;else if(F!==this)for(;RI.length?this.clone().iadd(I):I.clone().iadd(this)},y.prototype.isub=function(I){if(0!==I.negative){I.negative=0;var B=this.iadd(I);return I.negative=1,B._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(I),this.negative=1,this._normSign();var H,G,F=this.cmp(I);if(0===F)return this.negative=0,this.length=1,this.words[0]=0,this;F>0?(H=this,G=I):(H=I,G=this);for(var R=0,Z=0;Z>26,this.words[Z]=67108863&B;for(;0!==R&&Z>26,this.words[Z]=67108863&B;if(0===R&&Z>>13,We=0|H[1],Pe=8191&We,we=We>>>13,Be=0|H[2],K=8191&Be,Q=Be>>>13,ie=0|H[3],Ce=8191&ie,ve=ie>>>13,je=0|H[4],Me=8191&je,tt=je>>>13,It=0|H[5],bt=8191&It,Ye=It>>>13,Et=0|H[6],xt=8191&Et,Pt=Et>>>13,Qt=0|H[7],Wt=8191&Qt,fe=Qt>>>13,ee=0|H[8],re=8191&ee,Ie=ee>>>13,He=0|H[9],Ke=8191&He,ot=He>>>13,un=0|G[0],Ht=8191&un,Ut=un>>>13,Bn=0|G[1],Rt=8191&Bn,zt=Bn>>>13,Dn=0|G[2],fn=8191&Dn,jt=Dn>>>13,Tr=0|G[3],yn=8191&Tr,Nt=Tr>>>13,Kt=0|G[4],Xt=8191&Kt,an=Kt>>>13,hr=0|G[5],Ft=8191&hr,$e=hr>>>13,ae=0|G[6],le=8191&ae,ue=ae>>>13,q=0|G[7],be=8191&q,Ge=q>>>13,nt=0|G[8],et=8191&nt,ft=nt>>>13,rn=0|G[9],St=8191&rn,dn=rn>>>13;F.negative=I.negative^B.negative,F.length=19;var Zt=(Z+(oe=Math.imul(st,Ht))|0)+((8191&(j=(j=Math.imul(st,Ut))+Math.imul(ne,Ht)|0))<<13)|0;Z=((de=Math.imul(ne,Ut))+(j>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,oe=Math.imul(Pe,Ht),j=(j=Math.imul(Pe,Ut))+Math.imul(we,Ht)|0,de=Math.imul(we,Ut);var vn=(Z+(oe=oe+Math.imul(st,Rt)|0)|0)+((8191&(j=(j=j+Math.imul(st,zt)|0)+Math.imul(ne,Rt)|0))<<13)|0;Z=((de=de+Math.imul(ne,zt)|0)+(j>>>13)|0)+(vn>>>26)|0,vn&=67108863,oe=Math.imul(K,Ht),j=(j=Math.imul(K,Ut))+Math.imul(Q,Ht)|0,de=Math.imul(Q,Ut),oe=oe+Math.imul(Pe,Rt)|0,j=(j=j+Math.imul(Pe,zt)|0)+Math.imul(we,Rt)|0,de=de+Math.imul(we,zt)|0;var bn=(Z+(oe=oe+Math.imul(st,fn)|0)|0)+((8191&(j=(j=j+Math.imul(st,jt)|0)+Math.imul(ne,fn)|0))<<13)|0;Z=((de=de+Math.imul(ne,jt)|0)+(j>>>13)|0)+(bn>>>26)|0,bn&=67108863,oe=Math.imul(Ce,Ht),j=(j=Math.imul(Ce,Ut))+Math.imul(ve,Ht)|0,de=Math.imul(ve,Ut),oe=oe+Math.imul(K,Rt)|0,j=(j=j+Math.imul(K,zt)|0)+Math.imul(Q,Rt)|0,de=de+Math.imul(Q,zt)|0,oe=oe+Math.imul(Pe,fn)|0,j=(j=j+Math.imul(Pe,jt)|0)+Math.imul(we,fn)|0,de=de+Math.imul(we,jt)|0;var En=(Z+(oe=oe+Math.imul(st,yn)|0)|0)+((8191&(j=(j=j+Math.imul(st,Nt)|0)+Math.imul(ne,yn)|0))<<13)|0;Z=((de=de+Math.imul(ne,Nt)|0)+(j>>>13)|0)+(En>>>26)|0,En&=67108863,oe=Math.imul(Me,Ht),j=(j=Math.imul(Me,Ut))+Math.imul(tt,Ht)|0,de=Math.imul(tt,Ut),oe=oe+Math.imul(Ce,Rt)|0,j=(j=j+Math.imul(Ce,zt)|0)+Math.imul(ve,Rt)|0,de=de+Math.imul(ve,zt)|0,oe=oe+Math.imul(K,fn)|0,j=(j=j+Math.imul(K,jt)|0)+Math.imul(Q,fn)|0,de=de+Math.imul(Q,jt)|0,oe=oe+Math.imul(Pe,yn)|0,j=(j=j+Math.imul(Pe,Nt)|0)+Math.imul(we,yn)|0,de=de+Math.imul(we,Nt)|0;var Tn=(Z+(oe=oe+Math.imul(st,Xt)|0)|0)+((8191&(j=(j=j+Math.imul(st,an)|0)+Math.imul(ne,Xt)|0))<<13)|0;Z=((de=de+Math.imul(ne,an)|0)+(j>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,oe=Math.imul(bt,Ht),j=(j=Math.imul(bt,Ut))+Math.imul(Ye,Ht)|0,de=Math.imul(Ye,Ut),oe=oe+Math.imul(Me,Rt)|0,j=(j=j+Math.imul(Me,zt)|0)+Math.imul(tt,Rt)|0,de=de+Math.imul(tt,zt)|0,oe=oe+Math.imul(Ce,fn)|0,j=(j=j+Math.imul(Ce,jt)|0)+Math.imul(ve,fn)|0,de=de+Math.imul(ve,jt)|0,oe=oe+Math.imul(K,yn)|0,j=(j=j+Math.imul(K,Nt)|0)+Math.imul(Q,yn)|0,de=de+Math.imul(Q,Nt)|0,oe=oe+Math.imul(Pe,Xt)|0,j=(j=j+Math.imul(Pe,an)|0)+Math.imul(we,Xt)|0,de=de+Math.imul(we,an)|0;var In=(Z+(oe=oe+Math.imul(st,Ft)|0)|0)+((8191&(j=(j=j+Math.imul(st,$e)|0)+Math.imul(ne,Ft)|0))<<13)|0;Z=((de=de+Math.imul(ne,$e)|0)+(j>>>13)|0)+(In>>>26)|0,In&=67108863,oe=Math.imul(xt,Ht),j=(j=Math.imul(xt,Ut))+Math.imul(Pt,Ht)|0,de=Math.imul(Pt,Ut),oe=oe+Math.imul(bt,Rt)|0,j=(j=j+Math.imul(bt,zt)|0)+Math.imul(Ye,Rt)|0,de=de+Math.imul(Ye,zt)|0,oe=oe+Math.imul(Me,fn)|0,j=(j=j+Math.imul(Me,jt)|0)+Math.imul(tt,fn)|0,de=de+Math.imul(tt,jt)|0,oe=oe+Math.imul(Ce,yn)|0,j=(j=j+Math.imul(Ce,Nt)|0)+Math.imul(ve,yn)|0,de=de+Math.imul(ve,Nt)|0,oe=oe+Math.imul(K,Xt)|0,j=(j=j+Math.imul(K,an)|0)+Math.imul(Q,Xt)|0,de=de+Math.imul(Q,an)|0,oe=oe+Math.imul(Pe,Ft)|0,j=(j=j+Math.imul(Pe,$e)|0)+Math.imul(we,Ft)|0,de=de+Math.imul(we,$e)|0;var Nn=(Z+(oe=oe+Math.imul(st,le)|0)|0)+((8191&(j=(j=j+Math.imul(st,ue)|0)+Math.imul(ne,le)|0))<<13)|0;Z=((de=de+Math.imul(ne,ue)|0)+(j>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,oe=Math.imul(Wt,Ht),j=(j=Math.imul(Wt,Ut))+Math.imul(fe,Ht)|0,de=Math.imul(fe,Ut),oe=oe+Math.imul(xt,Rt)|0,j=(j=j+Math.imul(xt,zt)|0)+Math.imul(Pt,Rt)|0,de=de+Math.imul(Pt,zt)|0,oe=oe+Math.imul(bt,fn)|0,j=(j=j+Math.imul(bt,jt)|0)+Math.imul(Ye,fn)|0,de=de+Math.imul(Ye,jt)|0,oe=oe+Math.imul(Me,yn)|0,j=(j=j+Math.imul(Me,Nt)|0)+Math.imul(tt,yn)|0,de=de+Math.imul(tt,Nt)|0,oe=oe+Math.imul(Ce,Xt)|0,j=(j=j+Math.imul(Ce,an)|0)+Math.imul(ve,Xt)|0,de=de+Math.imul(ve,an)|0,oe=oe+Math.imul(K,Ft)|0,j=(j=j+Math.imul(K,$e)|0)+Math.imul(Q,Ft)|0,de=de+Math.imul(Q,$e)|0,oe=oe+Math.imul(Pe,le)|0,j=(j=j+Math.imul(Pe,ue)|0)+Math.imul(we,le)|0,de=de+Math.imul(we,ue)|0;var On=(Z+(oe=oe+Math.imul(st,be)|0)|0)+((8191&(j=(j=j+Math.imul(st,Ge)|0)+Math.imul(ne,be)|0))<<13)|0;Z=((de=de+Math.imul(ne,Ge)|0)+(j>>>13)|0)+(On>>>26)|0,On&=67108863,oe=Math.imul(re,Ht),j=(j=Math.imul(re,Ut))+Math.imul(Ie,Ht)|0,de=Math.imul(Ie,Ut),oe=oe+Math.imul(Wt,Rt)|0,j=(j=j+Math.imul(Wt,zt)|0)+Math.imul(fe,Rt)|0,de=de+Math.imul(fe,zt)|0,oe=oe+Math.imul(xt,fn)|0,j=(j=j+Math.imul(xt,jt)|0)+Math.imul(Pt,fn)|0,de=de+Math.imul(Pt,jt)|0,oe=oe+Math.imul(bt,yn)|0,j=(j=j+Math.imul(bt,Nt)|0)+Math.imul(Ye,yn)|0,de=de+Math.imul(Ye,Nt)|0,oe=oe+Math.imul(Me,Xt)|0,j=(j=j+Math.imul(Me,an)|0)+Math.imul(tt,Xt)|0,de=de+Math.imul(tt,an)|0,oe=oe+Math.imul(Ce,Ft)|0,j=(j=j+Math.imul(Ce,$e)|0)+Math.imul(ve,Ft)|0,de=de+Math.imul(ve,$e)|0,oe=oe+Math.imul(K,le)|0,j=(j=j+Math.imul(K,ue)|0)+Math.imul(Q,le)|0,de=de+Math.imul(Q,ue)|0,oe=oe+Math.imul(Pe,be)|0,j=(j=j+Math.imul(Pe,Ge)|0)+Math.imul(we,be)|0,de=de+Math.imul(we,Ge)|0;var qt=(Z+(oe=oe+Math.imul(st,et)|0)|0)+((8191&(j=(j=j+Math.imul(st,ft)|0)+Math.imul(ne,et)|0))<<13)|0;Z=((de=de+Math.imul(ne,ft)|0)+(j>>>13)|0)+(qt>>>26)|0,qt&=67108863,oe=Math.imul(Ke,Ht),j=(j=Math.imul(Ke,Ut))+Math.imul(ot,Ht)|0,de=Math.imul(ot,Ut),oe=oe+Math.imul(re,Rt)|0,j=(j=j+Math.imul(re,zt)|0)+Math.imul(Ie,Rt)|0,de=de+Math.imul(Ie,zt)|0,oe=oe+Math.imul(Wt,fn)|0,j=(j=j+Math.imul(Wt,jt)|0)+Math.imul(fe,fn)|0,de=de+Math.imul(fe,jt)|0,oe=oe+Math.imul(xt,yn)|0,j=(j=j+Math.imul(xt,Nt)|0)+Math.imul(Pt,yn)|0,de=de+Math.imul(Pt,Nt)|0,oe=oe+Math.imul(bt,Xt)|0,j=(j=j+Math.imul(bt,an)|0)+Math.imul(Ye,Xt)|0,de=de+Math.imul(Ye,an)|0,oe=oe+Math.imul(Me,Ft)|0,j=(j=j+Math.imul(Me,$e)|0)+Math.imul(tt,Ft)|0,de=de+Math.imul(tt,$e)|0,oe=oe+Math.imul(Ce,le)|0,j=(j=j+Math.imul(Ce,ue)|0)+Math.imul(ve,le)|0,de=de+Math.imul(ve,ue)|0,oe=oe+Math.imul(K,be)|0,j=(j=j+Math.imul(K,Ge)|0)+Math.imul(Q,be)|0,de=de+Math.imul(Q,Ge)|0,oe=oe+Math.imul(Pe,et)|0,j=(j=j+Math.imul(Pe,ft)|0)+Math.imul(we,et)|0,de=de+Math.imul(we,ft)|0;var Gt=(Z+(oe=oe+Math.imul(st,St)|0)|0)+((8191&(j=(j=j+Math.imul(st,dn)|0)+Math.imul(ne,St)|0))<<13)|0;Z=((de=de+Math.imul(ne,dn)|0)+(j>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,oe=Math.imul(Ke,Rt),j=(j=Math.imul(Ke,zt))+Math.imul(ot,Rt)|0,de=Math.imul(ot,zt),oe=oe+Math.imul(re,fn)|0,j=(j=j+Math.imul(re,jt)|0)+Math.imul(Ie,fn)|0,de=de+Math.imul(Ie,jt)|0,oe=oe+Math.imul(Wt,yn)|0,j=(j=j+Math.imul(Wt,Nt)|0)+Math.imul(fe,yn)|0,de=de+Math.imul(fe,Nt)|0,oe=oe+Math.imul(xt,Xt)|0,j=(j=j+Math.imul(xt,an)|0)+Math.imul(Pt,Xt)|0,de=de+Math.imul(Pt,an)|0,oe=oe+Math.imul(bt,Ft)|0,j=(j=j+Math.imul(bt,$e)|0)+Math.imul(Ye,Ft)|0,de=de+Math.imul(Ye,$e)|0,oe=oe+Math.imul(Me,le)|0,j=(j=j+Math.imul(Me,ue)|0)+Math.imul(tt,le)|0,de=de+Math.imul(tt,ue)|0,oe=oe+Math.imul(Ce,be)|0,j=(j=j+Math.imul(Ce,Ge)|0)+Math.imul(ve,be)|0,de=de+Math.imul(ve,Ge)|0,oe=oe+Math.imul(K,et)|0,j=(j=j+Math.imul(K,ft)|0)+Math.imul(Q,et)|0,de=de+Math.imul(Q,ft)|0;var sn=(Z+(oe=oe+Math.imul(Pe,St)|0)|0)+((8191&(j=(j=j+Math.imul(Pe,dn)|0)+Math.imul(we,St)|0))<<13)|0;Z=((de=de+Math.imul(we,dn)|0)+(j>>>13)|0)+(sn>>>26)|0,sn&=67108863,oe=Math.imul(Ke,fn),j=(j=Math.imul(Ke,jt))+Math.imul(ot,fn)|0,de=Math.imul(ot,jt),oe=oe+Math.imul(re,yn)|0,j=(j=j+Math.imul(re,Nt)|0)+Math.imul(Ie,yn)|0,de=de+Math.imul(Ie,Nt)|0,oe=oe+Math.imul(Wt,Xt)|0,j=(j=j+Math.imul(Wt,an)|0)+Math.imul(fe,Xt)|0,de=de+Math.imul(fe,an)|0,oe=oe+Math.imul(xt,Ft)|0,j=(j=j+Math.imul(xt,$e)|0)+Math.imul(Pt,Ft)|0,de=de+Math.imul(Pt,$e)|0,oe=oe+Math.imul(bt,le)|0,j=(j=j+Math.imul(bt,ue)|0)+Math.imul(Ye,le)|0,de=de+Math.imul(Ye,ue)|0,oe=oe+Math.imul(Me,be)|0,j=(j=j+Math.imul(Me,Ge)|0)+Math.imul(tt,be)|0,de=de+Math.imul(tt,Ge)|0,oe=oe+Math.imul(Ce,et)|0,j=(j=j+Math.imul(Ce,ft)|0)+Math.imul(ve,et)|0,de=de+Math.imul(ve,ft)|0;var pn=(Z+(oe=oe+Math.imul(K,St)|0)|0)+((8191&(j=(j=j+Math.imul(K,dn)|0)+Math.imul(Q,St)|0))<<13)|0;Z=((de=de+Math.imul(Q,dn)|0)+(j>>>13)|0)+(pn>>>26)|0,pn&=67108863,oe=Math.imul(Ke,yn),j=(j=Math.imul(Ke,Nt))+Math.imul(ot,yn)|0,de=Math.imul(ot,Nt),oe=oe+Math.imul(re,Xt)|0,j=(j=j+Math.imul(re,an)|0)+Math.imul(Ie,Xt)|0,de=de+Math.imul(Ie,an)|0,oe=oe+Math.imul(Wt,Ft)|0,j=(j=j+Math.imul(Wt,$e)|0)+Math.imul(fe,Ft)|0,de=de+Math.imul(fe,$e)|0,oe=oe+Math.imul(xt,le)|0,j=(j=j+Math.imul(xt,ue)|0)+Math.imul(Pt,le)|0,de=de+Math.imul(Pt,ue)|0,oe=oe+Math.imul(bt,be)|0,j=(j=j+Math.imul(bt,Ge)|0)+Math.imul(Ye,be)|0,de=de+Math.imul(Ye,Ge)|0,oe=oe+Math.imul(Me,et)|0,j=(j=j+Math.imul(Me,ft)|0)+Math.imul(tt,et)|0,de=de+Math.imul(tt,ft)|0;var on=(Z+(oe=oe+Math.imul(Ce,St)|0)|0)+((8191&(j=(j=j+Math.imul(Ce,dn)|0)+Math.imul(ve,St)|0))<<13)|0;Z=((de=de+Math.imul(ve,dn)|0)+(j>>>13)|0)+(on>>>26)|0,on&=67108863,oe=Math.imul(Ke,Xt),j=(j=Math.imul(Ke,an))+Math.imul(ot,Xt)|0,de=Math.imul(ot,an),oe=oe+Math.imul(re,Ft)|0,j=(j=j+Math.imul(re,$e)|0)+Math.imul(Ie,Ft)|0,de=de+Math.imul(Ie,$e)|0,oe=oe+Math.imul(Wt,le)|0,j=(j=j+Math.imul(Wt,ue)|0)+Math.imul(fe,le)|0,de=de+Math.imul(fe,ue)|0,oe=oe+Math.imul(xt,be)|0,j=(j=j+Math.imul(xt,Ge)|0)+Math.imul(Pt,be)|0,de=de+Math.imul(Pt,Ge)|0,oe=oe+Math.imul(bt,et)|0,j=(j=j+Math.imul(bt,ft)|0)+Math.imul(Ye,et)|0,de=de+Math.imul(Ye,ft)|0;var vt=(Z+(oe=oe+Math.imul(Me,St)|0)|0)+((8191&(j=(j=j+Math.imul(Me,dn)|0)+Math.imul(tt,St)|0))<<13)|0;Z=((de=de+Math.imul(tt,dn)|0)+(j>>>13)|0)+(vt>>>26)|0,vt&=67108863,oe=Math.imul(Ke,Ft),j=(j=Math.imul(Ke,$e))+Math.imul(ot,Ft)|0,de=Math.imul(ot,$e),oe=oe+Math.imul(re,le)|0,j=(j=j+Math.imul(re,ue)|0)+Math.imul(Ie,le)|0,de=de+Math.imul(Ie,ue)|0,oe=oe+Math.imul(Wt,be)|0,j=(j=j+Math.imul(Wt,Ge)|0)+Math.imul(fe,be)|0,de=de+Math.imul(fe,Ge)|0,oe=oe+Math.imul(xt,et)|0,j=(j=j+Math.imul(xt,ft)|0)+Math.imul(Pt,et)|0,de=de+Math.imul(Pt,ft)|0;var At=(Z+(oe=oe+Math.imul(bt,St)|0)|0)+((8191&(j=(j=j+Math.imul(bt,dn)|0)+Math.imul(Ye,St)|0))<<13)|0;Z=((de=de+Math.imul(Ye,dn)|0)+(j>>>13)|0)+(At>>>26)|0,At&=67108863,oe=Math.imul(Ke,le),j=(j=Math.imul(Ke,ue))+Math.imul(ot,le)|0,de=Math.imul(ot,ue),oe=oe+Math.imul(re,be)|0,j=(j=j+Math.imul(re,Ge)|0)+Math.imul(Ie,be)|0,de=de+Math.imul(Ie,Ge)|0,oe=oe+Math.imul(Wt,et)|0,j=(j=j+Math.imul(Wt,ft)|0)+Math.imul(fe,et)|0,de=de+Math.imul(fe,ft)|0;var dt=(Z+(oe=oe+Math.imul(xt,St)|0)|0)+((8191&(j=(j=j+Math.imul(xt,dn)|0)+Math.imul(Pt,St)|0))<<13)|0;Z=((de=de+Math.imul(Pt,dn)|0)+(j>>>13)|0)+(dt>>>26)|0,dt&=67108863,oe=Math.imul(Ke,be),j=(j=Math.imul(Ke,Ge))+Math.imul(ot,be)|0,de=Math.imul(ot,Ge),oe=oe+Math.imul(re,et)|0,j=(j=j+Math.imul(re,ft)|0)+Math.imul(Ie,et)|0,de=de+Math.imul(Ie,ft)|0;var Mt=(Z+(oe=oe+Math.imul(Wt,St)|0)|0)+((8191&(j=(j=j+Math.imul(Wt,dn)|0)+Math.imul(fe,St)|0))<<13)|0;Z=((de=de+Math.imul(fe,dn)|0)+(j>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,oe=Math.imul(Ke,et),j=(j=Math.imul(Ke,ft))+Math.imul(ot,et)|0,de=Math.imul(ot,ft);var se=(Z+(oe=oe+Math.imul(re,St)|0)|0)+((8191&(j=(j=j+Math.imul(re,dn)|0)+Math.imul(Ie,St)|0))<<13)|0;Z=((de=de+Math.imul(Ie,dn)|0)+(j>>>13)|0)+(se>>>26)|0,se&=67108863;var ce=(Z+(oe=Math.imul(Ke,St))|0)+((8191&(j=(j=Math.imul(Ke,dn))+Math.imul(ot,St)|0))<<13)|0;return Z=((de=Math.imul(ot,dn))+(j>>>13)|0)+(ce>>>26)|0,ce&=67108863,R[0]=Zt,R[1]=vn,R[2]=bn,R[3]=En,R[4]=Tn,R[5]=In,R[6]=Nn,R[7]=On,R[8]=qt,R[9]=Gt,R[10]=sn,R[11]=pn,R[12]=on,R[13]=vt,R[14]=At,R[15]=dt,R[16]=Mt,R[17]=se,R[18]=ce,0!==Z&&(R[19]=Z,F.length++),F};function E(O,I,B){B.negative=I.negative^O.negative,B.length=O.length+I.length;for(var F=0,H=0,G=0;G>>26)|0)>>>26,R&=67108863}B.words[G]=Z,F=R,R=H}return 0!==F?B.words[G]=F:B.length--,B._strip()}function P(O,I,B){return E(O,I,B)}function U(O,I){this.x=O,this.y=I}Math.imul||(g=h),y.prototype.mulTo=function(I,B){var H=this.length+I.length;return 10===this.length&&10===I.length?g(this,I,B):H<63?h(this,I,B):H<1024?E(this,I,B):P(this,I,B)},U.prototype.makeRBT=function(I){for(var B=new Array(I),F=y.prototype._countBits(I)-1,H=0;H>=1;return H},U.prototype.permute=function(I,B,F,H,G,R){for(var Z=0;Z>>=1)G++;return 1<>>=13),G>>>=13;for(R=2*B;R>=26,F+=G/67108864|0,F+=R>>>26,this.words[H]=67108863&R}return 0!==F&&(this.words[H]=F,this.length++),B?this.ineg():this},y.prototype.muln=function(I){return this.clone().imuln(I)},y.prototype.sqr=function(){return this.mul(this)},y.prototype.isqr=function(){return this.imul(this.clone())},y.prototype.pow=function(I){var B=function d(O){for(var I=new Array(O.bitLength()),B=0;B>>B%26&1;return I}(I);if(0===B.length)return new y(1);for(var F=this,H=0;H=0);var G,B=I%26,F=(I-B)/26,H=67108863>>>26-B<<26-B;if(0!==B){var R=0;for(G=0;G>>26-B}R&&(this.words[G]=R,this.length++)}if(0!==F){for(G=this.length-1;G>=0;G--)this.words[G+F]=this.words[G];for(G=0;G=0),H=B?(B-B%26)/26:0;var G=I%26,R=Math.min((I-G)/26,this.length),Z=67108863^67108863>>>G<R)for(this.length-=R,j=0;j=0&&(0!==de||j>=H);j--){var _e=0|this.words[j];this.words[j]=de<<26-G|_e>>>G,de=_e&Z}return oe&&0!==de&&(oe.words[oe.length++]=de),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},y.prototype.ishrn=function(I,B,F){return T(0===this.negative),this.iushrn(I,B,F)},y.prototype.shln=function(I){return this.clone().ishln(I)},y.prototype.ushln=function(I){return this.clone().iushln(I)},y.prototype.shrn=function(I){return this.clone().ishrn(I)},y.prototype.ushrn=function(I){return this.clone().iushrn(I)},y.prototype.testn=function(I){T("number"==typeof I&&I>=0);var B=I%26,F=(I-B)/26;return!(this.length<=F||!(this.words[F]&1<=0);var B=I%26,F=(I-B)/26;return T(0===this.negative,"imaskn works only with positive numbers"),this.length<=F?this:(0!==B&&F++,this.length=Math.min(F,this.length),0!==B&&(this.words[this.length-1]&=67108863^67108863>>>B<=67108864;B++)this.words[B]-=67108864,B===this.length-1?this.words[B+1]=1:this.words[B+1]++;return this.length=Math.max(this.length,B+1),this},y.prototype.isubn=function(I){if(T("number"==typeof I),T(I<67108864),I<0)return this.iaddn(-I);if(0!==this.negative)return this.negative=0,this.iaddn(I),this.negative=1,this;if(this.words[0]-=I,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var B=0;B>26)-(oe/67108864|0),this.words[G+F]=67108863&R}for(;G>26,this.words[G+F]=67108863&R;if(0===Z)return this._strip();for(T(-1===Z),Z=0,G=0;G>26,this.words[G]=67108863&R;return this.negative=1,this._strip()},y.prototype._wordDiv=function(I,B){var F,H=this.clone(),G=I,R=0|G.words[G.length-1];0!=(F=26-this._countBits(R))&&(G=G.ushln(F),H.iushln(F),R=0|G.words[G.length-1]);var j,oe=H.length-G.length;if("mod"!==B){(j=new y(null)).length=oe+1,j.words=new Array(j.length);for(var de=0;de=0;st--){var ne=67108864*(0|H.words[G.length+st])+(0|H.words[G.length+st-1]);for(ne=Math.min(ne/R|0,67108863),H._ishlnsubmul(G,ne,st);0!==H.negative;)ne--,H.negative=0,H._ishlnsubmul(G,1,st),H.isZero()||(H.negative^=1);j&&(j.words[st]=ne)}return j&&j._strip(),H._strip(),"div"!==B&&0!==F&&H.iushrn(F),{div:j||null,mod:H}},y.prototype.divmod=function(I,B,F){return T(!I.isZero()),this.isZero()?{div:new y(0),mod:new y(0)}:0!==this.negative&&0===I.negative?(R=this.neg().divmod(I,B),"mod"!==B&&(H=R.div.neg()),"div"!==B&&(G=R.mod.neg(),F&&0!==G.negative&&G.iadd(I)),{div:H,mod:G}):0===this.negative&&0!==I.negative?(R=this.divmod(I.neg(),B),"mod"!==B&&(H=R.div.neg()),{div:H,mod:R.mod}):this.negative&I.negative?(R=this.neg().divmod(I.neg(),B),"div"!==B&&(G=R.mod.neg(),F&&0!==G.negative&&G.isub(I)),{div:R.div,mod:G}):I.length>this.length||this.cmp(I)<0?{div:new y(0),mod:this}:1===I.length?"div"===B?{div:this.divn(I.words[0]),mod:null}:"mod"===B?{div:null,mod:new y(this.modrn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new y(this.modrn(I.words[0]))}:this._wordDiv(I,B);var H,G,R},y.prototype.div=function(I){return this.divmod(I,"div",!1).div},y.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},y.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},y.prototype.divRound=function(I){var B=this.divmod(I);if(B.mod.isZero())return B.div;var F=0!==B.div.negative?B.mod.isub(I):B.mod,H=I.ushrn(1),G=I.andln(1),R=F.cmp(H);return R<0||1===G&&0===R?B.div:0!==B.div.negative?B.div.isubn(1):B.div.iaddn(1)},y.prototype.modrn=function(I){var B=I<0;B&&(I=-I),T(I<=67108863);for(var F=(1<<26)%I,H=0,G=this.length-1;G>=0;G--)H=(F*H+(0|this.words[G]))%I;return B?-H:H},y.prototype.modn=function(I){return this.modrn(I)},y.prototype.idivn=function(I){var B=I<0;B&&(I=-I),T(I<=67108863);for(var F=0,H=this.length-1;H>=0;H--){var G=(0|this.words[H])+67108864*F;this.words[H]=G/I|0,F=G%I}return this._strip(),B?this.ineg():this},y.prototype.divn=function(I){return this.clone().idivn(I)},y.prototype.egcd=function(I){T(0===I.negative),T(!I.isZero());var B=this,F=I.clone();B=0!==B.negative?B.umod(I):B.clone();for(var H=new y(1),G=new y(0),R=new y(0),Z=new y(1),oe=0;B.isEven()&&F.isEven();)B.iushrn(1),F.iushrn(1),++oe;for(var j=F.clone(),de=B.clone();!B.isZero();){for(var _e=0,st=1;!(B.words[0]&st)&&_e<26;++_e,st<<=1);if(_e>0)for(B.iushrn(_e);_e-- >0;)(H.isOdd()||G.isOdd())&&(H.iadd(j),G.isub(de)),H.iushrn(1),G.iushrn(1);for(var ne=0,We=1;!(F.words[0]&We)&&ne<26;++ne,We<<=1);if(ne>0)for(F.iushrn(ne);ne-- >0;)(R.isOdd()||Z.isOdd())&&(R.iadd(j),Z.isub(de)),R.iushrn(1),Z.iushrn(1);B.cmp(F)>=0?(B.isub(F),H.isub(R),G.isub(Z)):(F.isub(B),R.isub(H),Z.isub(G))}return{a:R,b:Z,gcd:F.iushln(oe)}},y.prototype._invmp=function(I){T(0===I.negative),T(!I.isZero());var _e,B=this,F=I.clone();B=0!==B.negative?B.umod(I):B.clone();for(var H=new y(1),G=new y(0),R=F.clone();B.cmpn(1)>0&&F.cmpn(1)>0;){for(var Z=0,oe=1;!(B.words[0]&oe)&&Z<26;++Z,oe<<=1);if(Z>0)for(B.iushrn(Z);Z-- >0;)H.isOdd()&&H.iadd(R),H.iushrn(1);for(var j=0,de=1;!(F.words[0]&de)&&j<26;++j,de<<=1);if(j>0)for(F.iushrn(j);j-- >0;)G.isOdd()&&G.iadd(R),G.iushrn(1);B.cmp(F)>=0?(B.isub(F),H.isub(G)):(F.isub(B),G.isub(H))}return(_e=0===B.cmpn(1)?H:G).cmpn(0)<0&&_e.iadd(I),_e},y.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var B=this.clone(),F=I.clone();B.negative=0,F.negative=0;for(var H=0;B.isEven()&&F.isEven();H++)B.iushrn(1),F.iushrn(1);for(;;){for(;B.isEven();)B.iushrn(1);for(;F.isEven();)F.iushrn(1);var G=B.cmp(F);if(G<0){var R=B;B=F,F=R}else if(0===G||0===F.cmpn(1))break;B.isub(F)}return F.iushln(H)},y.prototype.invm=function(I){return this.egcd(I).a.umod(I)},y.prototype.isEven=function(){return 0==(1&this.words[0])},y.prototype.isOdd=function(){return 1==(1&this.words[0])},y.prototype.andln=function(I){return this.words[0]&I},y.prototype.bincn=function(I){T("number"==typeof I);var B=I%26,F=(I-B)/26,H=1<>>26,this.words[R]=Z&=67108863}return 0!==G&&(this.words[R]=G,this.length++),this},y.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},y.prototype.cmpn=function(I){var F,B=I<0;if(0!==this.negative&&!B)return-1;if(0===this.negative&&B)return 1;if(this._strip(),this.length>1)F=1;else{B&&(I=-I),T(I<=67108863,"Number is too big");var H=0|this.words[0];F=H===I?0:HI.length)return 1;if(this.length=0;F--){var H=0|this.words[F],G=0|I.words[F];if(H!==G){HG&&(B=1);break}}return B},y.prototype.gtn=function(I){return 1===this.cmpn(I)},y.prototype.gt=function(I){return 1===this.cmp(I)},y.prototype.gten=function(I){return this.cmpn(I)>=0},y.prototype.gte=function(I){return this.cmp(I)>=0},y.prototype.ltn=function(I){return-1===this.cmpn(I)},y.prototype.lt=function(I){return-1===this.cmp(I)},y.prototype.lten=function(I){return this.cmpn(I)<=0},y.prototype.lte=function(I){return this.cmp(I)<=0},y.prototype.eqn=function(I){return 0===this.cmpn(I)},y.prototype.eq=function(I){return 0===this.cmp(I)},y.red=function(I){return new N(I)},y.prototype.toRed=function(I){return T(!this.red,"Already a number in reduction context"),T(0===this.negative,"red works only with positives"),I.convertTo(this)._forceRed(I)},y.prototype.fromRed=function(){return T(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},y.prototype._forceRed=function(I){return this.red=I,this},y.prototype.forceRed=function(I){return T(!this.red,"Already a number in reduction context"),this._forceRed(I)},y.prototype.redAdd=function(I){return T(this.red,"redAdd works only with red numbers"),this.red.add(this,I)},y.prototype.redIAdd=function(I){return T(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,I)},y.prototype.redSub=function(I){return T(this.red,"redSub works only with red numbers"),this.red.sub(this,I)},y.prototype.redISub=function(I){return T(this.red,"redISub works only with red numbers"),this.red.isub(this,I)},y.prototype.redShl=function(I){return T(this.red,"redShl works only with red numbers"),this.red.shl(this,I)},y.prototype.redMul=function(I){return T(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.mul(this,I)},y.prototype.redIMul=function(I){return T(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.imul(this,I)},y.prototype.redSqr=function(){return T(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},y.prototype.redISqr=function(){return T(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},y.prototype.redSqrt=function(){return T(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},y.prototype.redInvm=function(){return T(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},y.prototype.redNeg=function(){return T(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},y.prototype.redPow=function(I){return T(this.red&&!I.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,I)};var X={k256:null,p224:null,p192:null,p25519:null};function te(O,I){this.name=O,this.p=new y(I,16),this.n=this.p.bitLength(),this.k=new y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Y(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(O){if("string"==typeof O){var I=y._prime(O);this.m=I.p,this.prime=I}else T(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}function L(O){N.call(this,O),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new y(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)}te.prototype._tmp=function(){var I=new y(null);return I.words=new Array(Math.ceil(this.n/13)),I},te.prototype.ireduce=function(I){var F,B=I;do{this.split(B,this.tmp),F=(B=(B=this.imulK(B)).iadd(this.tmp)).bitLength()}while(F>this.n);var H=F0?B.isub(this.p):void 0!==B.strip?B.strip():B._strip(),B},te.prototype.split=function(I,B){I.iushrn(this.n,0,B)},te.prototype.imulK=function(I){return I.imul(this.k)},_(z,te),z.prototype.split=function(I,B){for(var F=4194303,H=Math.min(I.length,9),G=0;G>>22,R=Z}I.words[G-10]=R>>>=22,I.length-=0===R&&I.length>10?10:9},z.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var B=0,F=0;F>>=26,I.words[F]=G,B=H}return 0!==B&&(I.words[I.length++]=B),I},y._prime=function(I){if(X[I])return X[I];var B;if("k256"===I)B=new z;else if("p224"===I)B=new W;else if("p192"===I)B=new Y;else{if("p25519"!==I)throw new Error("Unknown prime "+I);B=new D}return X[I]=B,B},N.prototype._verify1=function(I){T(0===I.negative,"red works only with positives"),T(I.red,"red works only with red numbers")},N.prototype._verify2=function(I,B){T(0==(I.negative|B.negative),"red works only with positives"),T(I.red&&I.red===B.red,"red works only with red numbers")},N.prototype.imod=function(I){return this.prime?this.prime.ireduce(I)._forceRed(this):(x(I,I.umod(this.m)._forceRed(this)),I)},N.prototype.neg=function(I){return I.isZero()?I.clone():this.m.sub(I)._forceRed(this)},N.prototype.add=function(I,B){this._verify2(I,B);var F=I.add(B);return F.cmp(this.m)>=0&&F.isub(this.m),F._forceRed(this)},N.prototype.iadd=function(I,B){this._verify2(I,B);var F=I.iadd(B);return F.cmp(this.m)>=0&&F.isub(this.m),F},N.prototype.sub=function(I,B){this._verify2(I,B);var F=I.sub(B);return F.cmpn(0)<0&&F.iadd(this.m),F._forceRed(this)},N.prototype.isub=function(I,B){this._verify2(I,B);var F=I.isub(B);return F.cmpn(0)<0&&F.iadd(this.m),F},N.prototype.shl=function(I,B){return this._verify1(I),this.imod(I.ushln(B))},N.prototype.imul=function(I,B){return this._verify2(I,B),this.imod(I.imul(B))},N.prototype.mul=function(I,B){return this._verify2(I,B),this.imod(I.mul(B))},N.prototype.isqr=function(I){return this.imul(I,I.clone())},N.prototype.sqr=function(I){return this.mul(I,I)},N.prototype.sqrt=function(I){if(I.isZero())return I.clone();var B=this.m.andln(3);if(T(B%2==1),3===B){var F=this.m.add(new y(1)).iushrn(2);return this.pow(I,F)}for(var H=this.m.subn(1),G=0;!H.isZero()&&0===H.andln(1);)G++,H.iushrn(1);T(!H.isZero());var R=new y(1).toRed(this),Z=R.redNeg(),oe=this.m.subn(1).iushrn(1),j=this.m.bitLength();for(j=new y(2*j*j).toRed(this);0!==this.pow(j,oe).cmp(Z);)j.redIAdd(Z);for(var de=this.pow(j,H),_e=this.pow(I,H.addn(1).iushrn(1)),st=this.pow(I,H),ne=G;0!==st.cmp(R);){for(var We=st,Pe=0;0!==We.cmp(R);Pe++)We=We.redSqr();T(Pe=0;G--){for(var de=B.words[G],_e=j-1;_e>=0;_e--){var st=de>>_e&1;R!==H[0]&&(R=this.sqr(R)),0!==st||0!==Z?(Z<<=1,Z|=st,(4==++oe||0===G&&0===_e)&&(R=this.mul(R,H[Z]),oe=0,Z=0)):oe=0}j=26}return R},N.prototype.convertTo=function(I){var B=I.umod(this.m);return B===I?B.clone():B},N.prototype.convertFrom=function(I){var B=I.clone();return B.red=null,B},y.mont=function(I){return new L(I)},_(L,N),L.prototype.convertTo=function(I){return this.imod(I.ushln(this.shift))},L.prototype.convertFrom=function(I){var B=this.imod(I.mul(this.rinv));return B.red=null,B},L.prototype.imul=function(I,B){if(I.isZero()||B.isZero())return I.words[0]=0,I.length=1,I;var F=I.imul(B),H=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=F.isub(H).iushrn(this.shift),R=G;return G.cmp(this.m)>=0?R=G.isub(this.m):G.cmpn(0)<0&&(R=G.iadd(this.m)),R._forceRed(this)},L.prototype.mul=function(I,B){if(I.isZero()||B.isZero())return new y(0)._forceRed(this);var F=I.mul(B),H=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=F.isub(H).iushrn(this.shift),R=G;return G.cmp(this.m)>=0?R=G.isub(this.m):G.cmpn(0)<0&&(R=G.iadd(this.m)),R._forceRed(this)},L.prototype.invm=function(I){return this.imod(I._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ne=$.nmd(Ne),this)},4761:(Ne,Ae,$)=>{var v;function A(_){this.rand=_}if(Ne.exports=function(y){return v||(v=new A(null)),v.generate(y)},Ne.exports.Rand=A,A.prototype.generate=function(y){return this._rand(y)},A.prototype._rand=function(y){if(this.rand.getBytes)return this.rand.getBytes(y);for(var m=new Uint8Array(y),f=0;f{"use strict";const A=$(6434),T=$(2658),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ae.lW=C,Ae.h2=50;const y=2147483647;function f(fe){if(fe>y)throw new RangeError('The value "'+fe+'" is invalid for option "size"');const ee=new Uint8Array(fe);return Object.setPrototypeOf(ee,C.prototype),ee}function C(fe,ee,re){if("number"==typeof fe){if("string"==typeof ee)throw new TypeError('The "string" argument must be of type string. Received type number');return a(fe)}return b(fe,ee,re)}function b(fe,ee,re){if("string"==typeof fe)return function r(fe,ee){if(("string"!=typeof ee||""===ee)&&(ee="utf8"),!C.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const re=0|P(fe,ee);let Ie=f(re);const He=Ie.write(fe,ee);return He!==re&&(Ie=Ie.slice(0,He)),Ie}(fe,ee);if(ArrayBuffer.isView(fe))return function c(fe){if(Et(fe,Uint8Array)){const ee=new Uint8Array(fe);return d(ee.buffer,ee.byteOffset,ee.byteLength)}return i(fe)}(fe);if(null==fe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof fe);if(Et(fe,ArrayBuffer)||fe&&Et(fe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Et(fe,SharedArrayBuffer)||fe&&Et(fe.buffer,SharedArrayBuffer)))return d(fe,ee,re);if("number"==typeof fe)throw new TypeError('The "value" argument must not be of type number. Received type number');const Ie=fe.valueOf&&fe.valueOf();if(null!=Ie&&Ie!==fe)return C.from(Ie,ee,re);const He=function h(fe){if(C.isBuffer(fe)){const ee=0|g(fe.length),re=f(ee);return 0===re.length||fe.copy(re,0,0,ee),re}return void 0!==fe.length?"number"!=typeof fe.length||xt(fe.length)?f(0):i(fe):"Buffer"===fe.type&&Array.isArray(fe.data)?i(fe.data):void 0}(fe);if(He)return He;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof fe[Symbol.toPrimitive])return C.from(fe[Symbol.toPrimitive]("string"),ee,re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof fe)}function x(fe){if("number"!=typeof fe)throw new TypeError('"size" argument must be of type number');if(fe<0)throw new RangeError('The value "'+fe+'" is invalid for option "size"')}function a(fe){return x(fe),f(fe<0?0:0|g(fe))}function i(fe){const ee=fe.length<0?0:0|g(fe.length),re=f(ee);for(let Ie=0;Ie=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|fe}function P(fe,ee){if(C.isBuffer(fe))return fe.length;if(ArrayBuffer.isView(fe)||Et(fe,ArrayBuffer))return fe.byteLength;if("string"!=typeof fe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof fe);const re=fe.length,Ie=arguments.length>2&&!0===arguments[2];if(!Ie&&0===re)return 0;let He=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return re;case"utf8":case"utf-8":return Me(fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*re;case"hex":return re>>>1;case"base64":return bt(fe).length;default:if(He)return Ie?-1:Me(fe).length;ee=(""+ee).toLowerCase(),He=!0}}function U(fe,ee,re){let Ie=!1;if((void 0===ee||ee<0)&&(ee=0),ee>this.length||((void 0===re||re>this.length)&&(re=this.length),re<=0)||(re>>>=0)<=(ee>>>=0))return"";for(fe||(fe="utf8");;)switch(fe){case"hex":return R(this,ee,re);case"utf8":case"utf-8":return I(this,ee,re);case"ascii":return H(this,ee,re);case"latin1":case"binary":return G(this,ee,re);case"base64":return O(this,ee,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,ee,re);default:if(Ie)throw new TypeError("Unknown encoding: "+fe);fe=(fe+"").toLowerCase(),Ie=!0}}function X(fe,ee,re){const Ie=fe[ee];fe[ee]=fe[re],fe[re]=Ie}function te(fe,ee,re,Ie,He){if(0===fe.length)return-1;if("string"==typeof re?(Ie=re,re=0):re>2147483647?re=2147483647:re<-2147483648&&(re=-2147483648),xt(re=+re)&&(re=He?0:fe.length-1),re<0&&(re=fe.length+re),re>=fe.length){if(He)return-1;re=fe.length-1}else if(re<0){if(!He)return-1;re=0}if("string"==typeof ee&&(ee=C.from(ee,Ie)),C.isBuffer(ee))return 0===ee.length?-1:z(fe,ee,re,Ie,He);if("number"==typeof ee)return ee&=255,"function"==typeof Uint8Array.prototype.indexOf?He?Uint8Array.prototype.indexOf.call(fe,ee,re):Uint8Array.prototype.lastIndexOf.call(fe,ee,re):z(fe,[ee],re,Ie,He);throw new TypeError("val must be string, number or Buffer")}function z(fe,ee,re,Ie,He){let Ut,Ke=1,ot=fe.length,un=ee.length;if(void 0!==Ie&&("ucs2"===(Ie=String(Ie).toLowerCase())||"ucs-2"===Ie||"utf16le"===Ie||"utf-16le"===Ie)){if(fe.length<2||ee.length<2)return-1;Ke=2,ot/=2,un/=2,re/=2}function Ht(Bn,Rt){return 1===Ke?Bn[Rt]:Bn.readUInt16BE(Rt*Ke)}if(He){let Bn=-1;for(Ut=re;Utot&&(re=ot-un),Ut=re;Ut>=0;Ut--){let Bn=!0;for(let Rt=0;RtHe&&(Ie=He):Ie=He;const Ke=ee.length;let ot;for(Ie>Ke/2&&(Ie=Ke/2),ot=0;ot>8,He=re%256,Ke.push(He),Ke.push(Ie);return Ke}(ee,fe.length-re),fe,re,Ie)}function O(fe,ee,re){return A.fromByteArray(0===ee&&re===fe.length?fe:fe.slice(ee,re))}function I(fe,ee,re){re=Math.min(fe.length,re);const Ie=[];let He=ee;for(;He239?4:Ke>223?3:Ke>191?2:1;if(He+un<=re){let Ht,Ut,Bn,Rt;switch(un){case 1:Ke<128&&(ot=Ke);break;case 2:Ht=fe[He+1],128==(192&Ht)&&(Rt=(31&Ke)<<6|63&Ht,Rt>127&&(ot=Rt));break;case 3:Ht=fe[He+1],Ut=fe[He+2],128==(192&Ht)&&128==(192&Ut)&&(Rt=(15&Ke)<<12|(63&Ht)<<6|63&Ut,Rt>2047&&(Rt<55296||Rt>57343)&&(ot=Rt));break;case 4:Ht=fe[He+1],Ut=fe[He+2],Bn=fe[He+3],128==(192&Ht)&&128==(192&Ut)&&128==(192&Bn)&&(Rt=(15&Ke)<<18|(63&Ht)<<12|(63&Ut)<<6|63&Bn,Rt>65535&&Rt<1114112&&(ot=Rt))}}null===ot?(ot=65533,un=1):ot>65535&&(ot-=65536,Ie.push(ot>>>10&1023|55296),ot=56320|1023&ot),Ie.push(ot),He+=un}return function F(fe){const ee=fe.length;if(ee<=B)return String.fromCharCode.apply(String,fe);let re="",Ie=0;for(;IeHe.length?(C.isBuffer(ot)||(ot=C.from(ot)),ot.copy(He,Ke)):Uint8Array.prototype.set.call(He,ot,Ke);else{if(!C.isBuffer(ot))throw new TypeError('"list" argument must be an Array of Buffers');ot.copy(He,Ke)}Ke+=ot.length}return He},C.byteLength=P,C.prototype._isBuffer=!0,C.prototype.swap16=function(){const ee=this.length;if(ee%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let re=0;rere&&(ee+=" ... "),""},_&&(C.prototype[_]=C.prototype.inspect),C.prototype.compare=function(ee,re,Ie,He,Ke){if(Et(ee,Uint8Array)&&(ee=C.from(ee,ee.offset,ee.byteLength)),!C.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(void 0===re&&(re=0),void 0===Ie&&(Ie=ee?ee.length:0),void 0===He&&(He=0),void 0===Ke&&(Ke=this.length),re<0||Ie>ee.length||He<0||Ke>this.length)throw new RangeError("out of range index");if(He>=Ke&&re>=Ie)return 0;if(He>=Ke)return-1;if(re>=Ie)return 1;if(this===ee)return 0;let ot=(Ke>>>=0)-(He>>>=0),un=(Ie>>>=0)-(re>>>=0);const Ht=Math.min(ot,un),Ut=this.slice(He,Ke),Bn=ee.slice(re,Ie);for(let Rt=0;Rt>>=0,isFinite(Ie)?(Ie>>>=0,void 0===He&&(He="utf8")):(He=Ie,Ie=void 0)}const Ke=this.length-re;if((void 0===Ie||Ie>Ke)&&(Ie=Ke),ee.length>0&&(Ie<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");let ot=!1;for(;;)switch(He){case"hex":return W(this,ee,re,Ie);case"utf8":case"utf-8":return Y(this,ee,re,Ie);case"ascii":case"latin1":case"binary":return D(this,ee,re,Ie);case"base64":return N(this,ee,re,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,ee,re,Ie);default:if(ot)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),ot=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const B=4096;function H(fe,ee,re){let Ie="";re=Math.min(fe.length,re);for(let He=ee;HeIe)&&(re=Ie);let He="";for(let Ke=ee;Kere)throw new RangeError("Trying to access beyond buffer length")}function j(fe,ee,re,Ie,He,Ke){if(!C.isBuffer(fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>He||eefe.length)throw new RangeError("Index out of range")}function de(fe,ee,re,Ie,He){Q(ee,Ie,He,fe,re,7);let Ke=Number(ee&BigInt(4294967295));fe[re++]=Ke,Ke>>=8,fe[re++]=Ke,Ke>>=8,fe[re++]=Ke,Ke>>=8,fe[re++]=Ke;let ot=Number(ee>>BigInt(32)&BigInt(4294967295));return fe[re++]=ot,ot>>=8,fe[re++]=ot,ot>>=8,fe[re++]=ot,ot>>=8,fe[re++]=ot,re}function _e(fe,ee,re,Ie,He){Q(ee,Ie,He,fe,re,7);let Ke=Number(ee&BigInt(4294967295));fe[re+7]=Ke,Ke>>=8,fe[re+6]=Ke,Ke>>=8,fe[re+5]=Ke,Ke>>=8,fe[re+4]=Ke;let ot=Number(ee>>BigInt(32)&BigInt(4294967295));return fe[re+3]=ot,ot>>=8,fe[re+2]=ot,ot>>=8,fe[re+1]=ot,ot>>=8,fe[re]=ot,re+8}function st(fe,ee,re,Ie,He,Ke){if(re+Ie>fe.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("Index out of range")}function ne(fe,ee,re,Ie,He){return ee=+ee,re>>>=0,He||st(fe,0,re,4),T.write(fe,ee,re,Ie,23,4),re+4}function We(fe,ee,re,Ie,He){return ee=+ee,re>>>=0,He||st(fe,0,re,8),T.write(fe,ee,re,Ie,52,8),re+8}C.prototype.slice=function(ee,re){const Ie=this.length;(ee=~~ee)<0?(ee+=Ie)<0&&(ee=0):ee>Ie&&(ee=Ie),(re=void 0===re?Ie:~~re)<0?(re+=Ie)<0&&(re=0):re>Ie&&(re=Ie),re>>=0,re>>>=0,Ie||oe(ee,re,this.length);let He=this[ee],Ke=1,ot=0;for(;++ot>>=0,re>>>=0,Ie||oe(ee,re,this.length);let He=this[ee+--re],Ke=1;for(;re>0&&(Ke*=256);)He+=this[ee+--re]*Ke;return He},C.prototype.readUint8=C.prototype.readUInt8=function(ee,re){return ee>>>=0,re||oe(ee,1,this.length),this[ee]},C.prototype.readUint16LE=C.prototype.readUInt16LE=function(ee,re){return ee>>>=0,re||oe(ee,2,this.length),this[ee]|this[ee+1]<<8},C.prototype.readUint16BE=C.prototype.readUInt16BE=function(ee,re){return ee>>>=0,re||oe(ee,2,this.length),this[ee]<<8|this[ee+1]},C.prototype.readUint32LE=C.prototype.readUInt32LE=function(ee,re){return ee>>>=0,re||oe(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+16777216*this[ee+3]},C.prototype.readUint32BE=C.prototype.readUInt32BE=function(ee,re){return ee>>>=0,re||oe(ee,4,this.length),16777216*this[ee]+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},C.prototype.readBigUInt64LE=Qt(function(ee){ie(ee>>>=0,"offset");const re=this[ee],Ie=this[ee+7];(void 0===re||void 0===Ie)&&Ce(ee,this.length-8);const He=re+256*this[++ee]+65536*this[++ee]+this[++ee]*2**24,Ke=this[++ee]+256*this[++ee]+65536*this[++ee]+Ie*2**24;return BigInt(He)+(BigInt(Ke)<>>=0,"offset");const re=this[ee],Ie=this[ee+7];(void 0===re||void 0===Ie)&&Ce(ee,this.length-8);const He=re*2**24+65536*this[++ee]+256*this[++ee]+this[++ee],Ke=this[++ee]*2**24+65536*this[++ee]+256*this[++ee]+Ie;return(BigInt(He)<>>=0,re>>>=0,Ie||oe(ee,re,this.length);let He=this[ee],Ke=1,ot=0;for(;++ot=Ke&&(He-=Math.pow(2,8*re)),He},C.prototype.readIntBE=function(ee,re,Ie){ee>>>=0,re>>>=0,Ie||oe(ee,re,this.length);let He=re,Ke=1,ot=this[ee+--He];for(;He>0&&(Ke*=256);)ot+=this[ee+--He]*Ke;return Ke*=128,ot>=Ke&&(ot-=Math.pow(2,8*re)),ot},C.prototype.readInt8=function(ee,re){return ee>>>=0,re||oe(ee,1,this.length),128&this[ee]?-1*(255-this[ee]+1):this[ee]},C.prototype.readInt16LE=function(ee,re){ee>>>=0,re||oe(ee,2,this.length);const Ie=this[ee]|this[ee+1]<<8;return 32768&Ie?4294901760|Ie:Ie},C.prototype.readInt16BE=function(ee,re){ee>>>=0,re||oe(ee,2,this.length);const Ie=this[ee+1]|this[ee]<<8;return 32768&Ie?4294901760|Ie:Ie},C.prototype.readInt32LE=function(ee,re){return ee>>>=0,re||oe(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},C.prototype.readInt32BE=function(ee,re){return ee>>>=0,re||oe(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},C.prototype.readBigInt64LE=Qt(function(ee){ie(ee>>>=0,"offset");const re=this[ee],Ie=this[ee+7];return(void 0===re||void 0===Ie)&&Ce(ee,this.length-8),(BigInt(this[ee+4]+256*this[ee+5]+65536*this[ee+6]+(Ie<<24))<>>=0,"offset");const re=this[ee],Ie=this[ee+7];(void 0===re||void 0===Ie)&&Ce(ee,this.length-8);const He=(re<<24)+65536*this[++ee]+256*this[++ee]+this[++ee];return(BigInt(He)<>>=0,re||oe(ee,4,this.length),T.read(this,ee,!0,23,4)},C.prototype.readFloatBE=function(ee,re){return ee>>>=0,re||oe(ee,4,this.length),T.read(this,ee,!1,23,4)},C.prototype.readDoubleLE=function(ee,re){return ee>>>=0,re||oe(ee,8,this.length),T.read(this,ee,!0,52,8)},C.prototype.readDoubleBE=function(ee,re){return ee>>>=0,re||oe(ee,8,this.length),T.read(this,ee,!1,52,8)},C.prototype.writeUintLE=C.prototype.writeUIntLE=function(ee,re,Ie,He){ee=+ee,re>>>=0,Ie>>>=0,He||j(this,ee,re,Ie,Math.pow(2,8*Ie)-1,0);let Ke=1,ot=0;for(this[re]=255ⅇ++ot>>=0,Ie>>>=0,He||j(this,ee,re,Ie,Math.pow(2,8*Ie)-1,0);let Ke=Ie-1,ot=1;for(this[re+Ke]=255ⅇ--Ke>=0&&(ot*=256);)this[re+Ke]=ee/ot&255;return re+Ie},C.prototype.writeUint8=C.prototype.writeUInt8=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,1,255,0),this[re]=255&ee,re+1},C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,2,65535,0),this[re]=255&ee,this[re+1]=ee>>>8,re+2},C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,2,65535,0),this[re]=ee>>>8,this[re+1]=255&ee,re+2},C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,4,4294967295,0),this[re+3]=ee>>>24,this[re+2]=ee>>>16,this[re+1]=ee>>>8,this[re]=255&ee,re+4},C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,4,4294967295,0),this[re]=ee>>>24,this[re+1]=ee>>>16,this[re+2]=ee>>>8,this[re+3]=255&ee,re+4},C.prototype.writeBigUInt64LE=Qt(function(ee,re=0){return de(this,ee,re,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeBigUInt64BE=Qt(function(ee,re=0){return _e(this,ee,re,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeIntLE=function(ee,re,Ie,He){if(ee=+ee,re>>>=0,!He){const Ht=Math.pow(2,8*Ie-1);j(this,ee,re,Ie,Ht-1,-Ht)}let Ke=0,ot=1,un=0;for(this[re]=255ⅇ++Ke>0)-un&255;return re+Ie},C.prototype.writeIntBE=function(ee,re,Ie,He){if(ee=+ee,re>>>=0,!He){const Ht=Math.pow(2,8*Ie-1);j(this,ee,re,Ie,Ht-1,-Ht)}let Ke=Ie-1,ot=1,un=0;for(this[re+Ke]=255ⅇ--Ke>=0&&(ot*=256);)ee<0&&0===un&&0!==this[re+Ke+1]&&(un=1),this[re+Ke]=(ee/ot>>0)-un&255;return re+Ie},C.prototype.writeInt8=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,1,127,-128),ee<0&&(ee=255+ee+1),this[re]=255&ee,re+1},C.prototype.writeInt16LE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,2,32767,-32768),this[re]=255&ee,this[re+1]=ee>>>8,re+2},C.prototype.writeInt16BE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,2,32767,-32768),this[re]=ee>>>8,this[re+1]=255&ee,re+2},C.prototype.writeInt32LE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,4,2147483647,-2147483648),this[re]=255&ee,this[re+1]=ee>>>8,this[re+2]=ee>>>16,this[re+3]=ee>>>24,re+4},C.prototype.writeInt32BE=function(ee,re,Ie){return ee=+ee,re>>>=0,Ie||j(this,ee,re,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[re]=ee>>>24,this[re+1]=ee>>>16,this[re+2]=ee>>>8,this[re+3]=255&ee,re+4},C.prototype.writeBigInt64LE=Qt(function(ee,re=0){return de(this,ee,re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),C.prototype.writeBigInt64BE=Qt(function(ee,re=0){return _e(this,ee,re,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),C.prototype.writeFloatLE=function(ee,re,Ie){return ne(this,ee,re,!0,Ie)},C.prototype.writeFloatBE=function(ee,re,Ie){return ne(this,ee,re,!1,Ie)},C.prototype.writeDoubleLE=function(ee,re,Ie){return We(this,ee,re,!0,Ie)},C.prototype.writeDoubleBE=function(ee,re,Ie){return We(this,ee,re,!1,Ie)},C.prototype.copy=function(ee,re,Ie,He){if(!C.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(Ie||(Ie=0),!He&&0!==He&&(He=this.length),re>=ee.length&&(re=ee.length),re||(re=0),He>0&&He=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),ee.length-re>>=0,Ie=void 0===Ie?this.length:Ie>>>0,ee||(ee=0),"number"==typeof ee)for(Ke=re;Ke=Ie+4;re-=3)ee=`_${fe.slice(re-3,re)}${ee}`;return`${fe.slice(0,re)}${ee}`}function Q(fe,ee,re,Ie,He,Ke){if(fe>re||fe3?0===ee||ee===BigInt(0)?`>= 0${ot} and < 2${ot} ** ${8*(Ke+1)}${ot}`:`>= -(2${ot} ** ${8*(Ke+1)-1}${ot}) and < 2 ** ${8*(Ke+1)-1}${ot}`:`>= ${ee}${ot} and <= ${re}${ot}`,new Pe.ERR_OUT_OF_RANGE("value",un,fe)}!function K(fe,ee,re){ie(ee,"offset"),(void 0===fe[ee]||void 0===fe[ee+re])&&Ce(ee,fe.length-(re+1))}(Ie,He,Ke)}function ie(fe,ee){if("number"!=typeof fe)throw new Pe.ERR_INVALID_ARG_TYPE(ee,"number",fe)}function Ce(fe,ee,re){throw Math.floor(fe)!==fe?(ie(fe,re),new Pe.ERR_OUT_OF_RANGE(re||"offset","an integer",fe)):ee<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE(re||"offset",`>= ${re?1:0} and <= ${ee}`,fe)}we("ERR_BUFFER_OUT_OF_BOUNDS",function(fe){return fe?`${fe} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(fe,ee){return`The "${fe}" argument must be of type number. Received type ${typeof ee}`},TypeError),we("ERR_OUT_OF_RANGE",function(fe,ee,re){let Ie=`The value of "${fe}" is out of range.`,He=re;return Number.isInteger(re)&&Math.abs(re)>2**32?He=Be(String(re)):"bigint"==typeof re&&(He=String(re),(re>BigInt(2)**BigInt(32)||re<-(BigInt(2)**BigInt(32)))&&(He=Be(He)),He+="n"),Ie+=` It must be ${ee}. Received ${He}`,Ie},RangeError);const ve=/[^+/0-9A-Za-z-_]/g;function Me(fe,ee){let re;ee=ee||1/0;const Ie=fe.length;let He=null;const Ke=[];for(let ot=0;ot55295&&re<57344){if(!He){if(re>56319){(ee-=3)>-1&&Ke.push(239,191,189);continue}if(ot+1===Ie){(ee-=3)>-1&&Ke.push(239,191,189);continue}He=re;continue}if(re<56320){(ee-=3)>-1&&Ke.push(239,191,189),He=re;continue}re=65536+(He-55296<<10|re-56320)}else He&&(ee-=3)>-1&&Ke.push(239,191,189);if(He=null,re<128){if((ee-=1)<0)break;Ke.push(re)}else if(re<2048){if((ee-=2)<0)break;Ke.push(re>>6|192,63&re|128)}else if(re<65536){if((ee-=3)<0)break;Ke.push(re>>12|224,re>>6&63|128,63&re|128)}else{if(!(re<1114112))throw new Error("Invalid code point");if((ee-=4)<0)break;Ke.push(re>>18|240,re>>12&63|128,re>>6&63|128,63&re|128)}}return Ke}function bt(fe){return A.toByteArray(function je(fe){if((fe=(fe=fe.split("=")[0]).trim().replace(ve,"")).length<2)return"";for(;fe.length%4!=0;)fe+="=";return fe}(fe))}function Ye(fe,ee,re,Ie){let He;for(He=0;He=ee.length||He>=fe.length);++He)ee[He+re]=fe[He];return He}function Et(fe,ee){return fe instanceof ee||null!=fe&&null!=fe.constructor&&null!=fe.constructor.name&&fe.constructor.name===ee.name}function xt(fe){return fe!=fe}const Pt=function(){const fe="0123456789abcdef",ee=new Array(256);for(let re=0;re<16;++re){const Ie=16*re;for(let He=0;He<16;++He)ee[Ie+He]=fe[re]+fe[He]}return ee}();function Qt(fe){return typeof BigInt>"u"?Wt:fe}function Wt(){throw new Error("BigInt not supported")}},7101:(Ne,Ae,$)=>{const v=$(8744);Ae.parseFont=v,Ae.createCanvas=function(A,T){return Object.assign(document.createElement("canvas"),{width:A,height:T})},Ae.createImageData=function(A,T,_){switch(arguments.length){case 0:return new ImageData;case 1:return new ImageData(A);case 2:return new ImageData(A,T);default:return new ImageData(A,T,_)}},Ae.loadImage=function(A,T){return new Promise(function(_,y){const m=Object.assign(document.createElement("img"),T);function f(){m.onload=null,m.onerror=null}m.onload=function(){f(),_(m)},m.onerror=function(){f(),y(new Error('Failed to load the image "'+A+'"'))},m.src=A})}},8744:Ne=>{"use strict";const _="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",y=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),m=new RegExp("(italic|oblique) +","i"),f=new RegExp("(small-caps) +","i"),C=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),b=new RegExp(`([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:${_})( *, *(?:${_}))*)`),x={};Ne.exports=a=>{if(x[a])return x[a];const r=b.exec(a);if(!r)return;const i={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(r[1]),unit:r[2],family:r[3].replace(/["']/g,"").replace(/ *, */g,",")};let c,d,h,g;const E=a.substring(0,r.index);switch((c=y.exec(E))&&(i.weight=c[1]),(d=m.exec(E))&&(i.style=d[1]),(h=f.exec(E))&&(i.variant=h[1]),(g=C.exec(E))&&(i.stretch=g[1]),i.unit){case"pt":i.size/=.75;break;case"pc":i.size*=16;break;case"in":i.size*=96;break;case"cm":i.size*=96/2.54;break;case"mm":i.size*=96/25.4;break;case"%":break;case"em":case"rem":i.size*=16/.75;break;case"q":i.size*=96/25.4/4}return x[a]=i}},7832:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8341),$(916),$(4369),$(8822),function(){var A=v,_=A.lib.BlockCipher,y=A.algo,m=[],f=[],C=[],b=[],x=[],k=[],a=[],r=[],i=[],c=[];!function(){for(var g=[],E=0;E<256;E++)g[E]=E<128?E<<1:E<<1^283;var P=0,U=0;for(E=0;E<256;E++){var X=U^U<<1^U<<2^U<<3^U<<4;m[P]=X=X>>>8^255&X^99,f[X]=P;var Y,te=g[P],z=g[te],W=g[z];C[P]=(Y=257*g[X]^16843008*X)<<24|Y>>>8,b[P]=Y<<16|Y>>>16,x[P]=Y<<8|Y>>>24,k[P]=Y,a[X]=(Y=16843009*W^65537*z^257*te^16843008*P)<<24|Y>>>8,r[X]=Y<<16|Y>>>16,i[X]=Y<<8|Y>>>24,c[X]=Y,P?(P=te^g[g[g[W^te]]],U^=g[g[U]]):P=U=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=_.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var E=this._keyPriorReset=this._key,P=E.words,U=E.sigBytes/4,te=4*((this._nRounds=U+6)+1),z=this._keySchedule=[],W=0;W6&&W%U==4&&(g=m[g>>>24]<<24|m[g>>>16&255]<<16|m[g>>>8&255]<<8|m[255&g]):(g=m[(g=g<<8|g>>>24)>>>24]<<24|m[g>>>16&255]<<16|m[g>>>8&255]<<8|m[255&g],g^=d[W/U|0]<<24),z[W]=z[W-U]^g);for(var Y=this._invKeySchedule=[],D=0;D>>24]]^r[m[g>>>16&255]]^i[m[g>>>8&255]]^c[m[255&g]]}}},encryptBlock:function(g,E){this._doCryptBlock(g,E,this._keySchedule,C,b,x,k,m)},decryptBlock:function(g,E){var P=g[E+1];g[E+1]=g[E+3],g[E+3]=P,this._doCryptBlock(g,E,this._invKeySchedule,a,r,i,c,f),P=g[E+1],g[E+1]=g[E+3],g[E+3]=P},_doCryptBlock:function(g,E,P,U,X,te,z,W){for(var Y=this._nRounds,D=g[E]^P[0],N=g[E+1]^P[1],L=g[E+2]^P[2],O=g[E+3]^P[3],I=4,B=1;B>>24]^X[N>>>16&255]^te[L>>>8&255]^z[255&O]^P[I++],H=U[N>>>24]^X[L>>>16&255]^te[O>>>8&255]^z[255&D]^P[I++],G=U[L>>>24]^X[O>>>16&255]^te[D>>>8&255]^z[255&N]^P[I++],R=U[O>>>24]^X[D>>>16&255]^te[N>>>8&255]^z[255&L]^P[I++];D=F,N=H,L=G,O=R}F=(W[D>>>24]<<24|W[N>>>16&255]<<16|W[L>>>8&255]<<8|W[255&O])^P[I++],H=(W[N>>>24]<<24|W[L>>>16&255]<<16|W[O>>>8&255]<<8|W[255&D])^P[I++],G=(W[L>>>24]<<24|W[O>>>16&255]<<16|W[D>>>8&255]<<8|W[255&N])^P[I++],R=(W[O>>>24]<<24|W[D>>>16&255]<<16|W[N>>>8&255]<<8|W[255&L])^P[I++],g[E]=F,g[E+1]=H,g[E+2]=G,g[E+3]=R},keySize:8});A.AES=_._createHelper(h)}(),v.AES)},2612:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8341),$(916),$(4369),$(8822),function(){var A=v,_=A.lib.BlockCipher;const m=16,f=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],C=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var b={pbox:[],sbox:[]};function x(c,d){let U=c.sbox[0][d>>24&255]+c.sbox[1][d>>16&255];return U^=c.sbox[2][d>>8&255],U+=c.sbox[3][255&d],U}function k(c,d,h){let P,g=d,E=h;for(let U=0;U=h&&(g=0);let E=0,P=0,U=0;for(let X=0;X1;--U)g^=c.pbox[U],E=x(c,g)^E,P=g,g=E,E=P;return P=g,g=E,E=P,E^=c.pbox[1],g^=c.pbox[0],{left:g,right:E}}(b,c[d],c[d+1]);c[d]=h.left,c[d+1]=h.right},blockSize:2,keySize:4,ivSize:2});A.Blowfish=_._createHelper(i)}(),v.Blowfish)},8822:function(Ne,Ae,$){var A,T,_,y,m,f,C,x,a,r,c,d,h,E,U,te,z,Y,D,v;Ne.exports=(v=$(1823),$(4369),void(v.lib.Cipher||(T=v,_=T.lib,y=_.Base,m=_.WordArray,f=_.BufferedBlockAlgorithm,C=T.enc,x=C.Base64,a=T.algo.EvpKDF,r=_.Cipher=f.extend({cfg:y.extend(),createEncryptor:function(N,L){return this.create(this._ENC_XFORM_MODE,N,L)},createDecryptor:function(N,L){return this.create(this._DEC_XFORM_MODE,N,L)},init:function(N,L,O){this.cfg=this.cfg.extend(O),this._xformMode=N,this._key=L,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(N){return this._append(N),this._process()},finalize:function(N){return N&&this._append(N),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function N(L){return"string"==typeof L?D:z}return function(L){return{encrypt:function(O,I,B){return N(I).encrypt(L,O,I,B)},decrypt:function(O,I,B){return N(I).decrypt(L,O,I,B)}}}}()}),_.StreamCipher=r.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=T.mode={},d=_.BlockCipherMode=y.extend({createEncryptor:function(N,L){return this.Encryptor.create(N,L)},createDecryptor:function(N,L){return this.Decryptor.create(N,L)},init:function(N,L){this._cipher=N,this._iv=L}}),h=c.CBC=function(){var N=d.extend();function L(O,I,B){var F,H=this._iv;H?(F=H,this._iv=A):F=this._prevBlock;for(var G=0;G>>2]}},_.BlockCipher=r.extend({cfg:r.cfg.extend({mode:h,padding:E}),reset:function(){var N;r.reset.call(this);var L=this.cfg,O=L.iv,I=L.mode;this._xformMode==this._ENC_XFORM_MODE?N=I.createEncryptor:(N=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==N?this._mode.init(this,O&&O.words):(this._mode=N.call(I,this,O&&O.words),this._mode.__creator=N)},_doProcessBlock:function(N,L){this._mode.processBlock(N,L)},_doFinalize:function(){var N,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),N=this._process(!0)):(N=this._process(!0),L.unpad(N)),N},blockSize:4}),U=_.CipherParams=y.extend({init:function(N){this.mixIn(N)},toString:function(N){return(N||this.formatter).stringify(this)}}),te=(T.format={}).OpenSSL={stringify:function(N){var O=N.ciphertext,I=N.salt;return(I?m.create([1398893684,1701076831]).concat(I).concat(O):O).toString(x)},parse:function(N){var L,O=x.parse(N),I=O.words;return 1398893684==I[0]&&1701076831==I[1]&&(L=m.create(I.slice(2,4)),I.splice(0,4),O.sigBytes-=16),U.create({ciphertext:O,salt:L})}},z=_.SerializableCipher=y.extend({cfg:y.extend({format:te}),encrypt:function(N,L,O,I){I=this.cfg.extend(I);var B=N.createEncryptor(O,I),F=B.finalize(L),H=B.cfg;return U.create({ciphertext:F,key:O,iv:H.iv,algorithm:N,mode:H.mode,padding:H.padding,blockSize:N.blockSize,formatter:I.format})},decrypt:function(N,L,O,I){return I=this.cfg.extend(I),L=this._parse(L,I.format),N.createDecryptor(O,I).finalize(L.ciphertext)},_parse:function(N,L){return"string"==typeof N?L.parse(N,this):N}}),Y=(T.kdf={}).OpenSSL={execute:function(N,L,O,I,B){if(I||(I=m.random(8)),B)var F=a.create({keySize:L+O,hasher:B}).compute(N,I);else F=a.create({keySize:L+O}).compute(N,I);var H=m.create(F.words.slice(L),4*O);return F.sigBytes=4*L,U.create({key:F,iv:H,salt:I})}},D=_.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:Y}),encrypt:function(N,L,O,I){var B=(I=this.cfg.extend(I)).kdf.execute(O,N.keySize,N.ivSize,I.salt,I.hasher);I.iv=B.iv;var F=z.encrypt.call(this,N,L,B.key,I);return F.mixIn(B),F},decrypt:function(N,L,O,I){I=this.cfg.extend(I),L=this._parse(L,I.format);var B=I.kdf.execute(O,N.keySize,N.ivSize,L.salt,I.hasher);return I.iv=B.iv,z.decrypt.call(this,N,L,B.key,I)}}))))},1823:function(Ne,Ae,$){var v;Ne.exports=(v=v||function(A,T){var _;if(typeof window<"u"&&window.crypto&&(_=window.crypto),typeof self<"u"&&self.crypto&&(_=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(_=globalThis.crypto),!_&&typeof window<"u"&&window.msCrypto&&(_=window.msCrypto),!_&&typeof global<"u"&&global.crypto&&(_=global.crypto),!_)try{_=$(2480)}catch{}var y=function(){if(_){if("function"==typeof _.getRandomValues)try{return _.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof _.randomBytes)try{return _.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function g(){}return function(E){var P;return g.prototype=E,P=new g,g.prototype=null,P}}(),f={},C=f.lib={},b=C.Base={extend:function(g){var E=m(this);return g&&E.mixIn(g),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var E in g)g.hasOwnProperty(E)&&(this[E]=g[E]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}},x=C.WordArray=b.extend({init:function(g,E){g=this.words=g||[],this.sigBytes=null!=E?E:4*g.length},toString:function(g){return(g||a).stringify(this)},concat:function(g){var E=this.words,P=g.words,U=this.sigBytes,X=g.sigBytes;if(this.clamp(),U%4)for(var te=0;te>>2]|=(P[te>>>2]>>>24-te%4*8&255)<<24-(U+te)%4*8;else for(var W=0;W>>2]=P[W>>>2];return this.sigBytes+=X,this},clamp:function(){var g=this.words,E=this.sigBytes;g[E>>>2]&=4294967295<<32-E%4*8,g.length=A.ceil(E/4)},clone:function(){var g=b.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var E=[],P=0;P>>2]>>>24-X%4*8&255;U.push((te>>>4).toString(16)),U.push((15&te).toString(16))}return U.join("")},parse:function(g){for(var E=g.length,P=[],U=0;U>>3]|=parseInt(g.substr(U,2),16)<<24-U%8*4;return new x.init(P,E/2)}},r=k.Latin1={stringify:function(g){for(var E=g.words,P=g.sigBytes,U=[],X=0;X>>2]>>>24-X%4*8&255));return U.join("")},parse:function(g){for(var E=g.length,P=[],U=0;U>>2]|=(255&g.charCodeAt(U))<<24-U%4*8;return new x.init(P,E)}},i=k.Utf8={stringify:function(g){try{return decodeURIComponent(escape(r.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return r.parse(unescape(encodeURIComponent(g)))}},c=C.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(g){"string"==typeof g&&(g=i.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var E,P=this._data,U=P.words,X=P.sigBytes,te=this.blockSize,W=X/(4*te),Y=(W=g?A.ceil(W):A.max((0|W)-this._minBufferSize,0))*te,D=A.min(4*Y,X);if(Y){for(var N=0;N>>2]>>>24-r%4*8&255)<<16|(b[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|b[r+2>>>2]>>>24-(r+2)%4*8&255,g=0;g<4&&r+.75*g>>6*(3-g)&63));var E=k.charAt(64);if(E)for(;a.length%4;)a.push(E);return a.join("")},parse:function(C){var b=C.length,x=this._map,k=this._reverseMap;if(!k){k=this._reverseMap=[];for(var a=0;a>>6-r%4*2;k[a>>>2]|=(i|c)<<24-a%4*8,a++}return _.create(k,a)}(C,b,k)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},v.enc.Base64)},9237:function(Ne,Ae,$){var v,_;Ne.exports=(v=$(1823),_=v.lib.WordArray,v.enc.Base64url={stringify:function(C,b){void 0===b&&(b=!0);var x=C.words,k=C.sigBytes,a=b?this._safe_map:this._map;C.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(x[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|x[i+2>>>2]>>>24-(i+2)%4*8&255,E=0;E<4&&i+.75*E>>6*(3-E)&63));var P=a.charAt(64);if(P)for(;r.length%4;)r.push(P);return r.join("")},parse:function(C,b){void 0===b&&(b=!0);var x=C.length,k=b?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var r=0;r>>6-r%4*2;k[a>>>2]|=(i|c)<<24-a%4*8,a++}return _.create(k,a)}(C,x,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},v.enc.Base64url)},4153:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),function(){var _=v.lib.WordArray,y=v.enc;function f(C){return C<<8&4278255360|C>>>8&16711935}y.Utf16=y.Utf16BE={stringify:function(C){for(var b=C.words,x=C.sigBytes,k=[],a=0;a>>2]>>>16-a%4*8&65535));return k.join("")},parse:function(C){for(var b=C.length,x=[],k=0;k>>1]|=C.charCodeAt(k)<<16-k%2*16;return _.create(x,2*b)}},y.Utf16LE={stringify:function(C){for(var b=C.words,x=C.sigBytes,k=[],a=0;a>>2]>>>16-a%4*8&65535);k.push(String.fromCharCode(r))}return k.join("")},parse:function(C){for(var b=C.length,x=[],k=0;k>>1]|=f(C.charCodeAt(k)<<16-k%2*16);return _.create(x,2*b)}}}(),v.enc.Utf16)},4369:function(Ne,Ae,$){var A,T,_,y,m,C,v;Ne.exports=(v=$(1823),$(6496),$(3331),y=(T=(A=v).lib).WordArray,C=(m=A.algo).EvpKDF=(_=T.Base).extend({cfg:_.extend({keySize:4,hasher:m.MD5,iterations:1}),init:function(b){this.cfg=this.cfg.extend(b)},compute:function(b,x){for(var k,a=this.cfg,r=a.hasher.create(),i=y.create(),c=i.words,d=a.keySize,h=a.iterations;c.lengtha&&(x=b.finalize(x)),x.clamp();for(var r=this._oKey=x.clone(),i=this._iKey=x.clone(),c=r.words,d=i.words,h=0;h>>2]|=f[x]<<24-x%4*8;y.call(this,b,C)}else y.apply(this,arguments)};m.prototype=_}}(),v.lib.WordArray)},916:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),function(A){var T=v,_=T.lib,y=_.WordArray,m=_.Hasher,f=T.algo,C=[];!function(){for(var i=0;i<64;i++)C[i]=4294967296*A.abs(A.sin(i+1))|0}();var b=f.MD5=m.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,c){for(var d=0;d<16;d++){var h=c+d,g=i[h];i[h]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8)}var E=this._hash.words,P=i[c+0],U=i[c+1],X=i[c+2],te=i[c+3],z=i[c+4],W=i[c+5],Y=i[c+6],D=i[c+7],N=i[c+8],L=i[c+9],O=i[c+10],I=i[c+11],B=i[c+12],F=i[c+13],H=i[c+14],G=i[c+15],R=E[0],Z=E[1],oe=E[2],j=E[3];R=x(R,Z,oe,j,P,7,C[0]),j=x(j,R,Z,oe,U,12,C[1]),oe=x(oe,j,R,Z,X,17,C[2]),Z=x(Z,oe,j,R,te,22,C[3]),R=x(R,Z,oe,j,z,7,C[4]),j=x(j,R,Z,oe,W,12,C[5]),oe=x(oe,j,R,Z,Y,17,C[6]),Z=x(Z,oe,j,R,D,22,C[7]),R=x(R,Z,oe,j,N,7,C[8]),j=x(j,R,Z,oe,L,12,C[9]),oe=x(oe,j,R,Z,O,17,C[10]),Z=x(Z,oe,j,R,I,22,C[11]),R=x(R,Z,oe,j,B,7,C[12]),j=x(j,R,Z,oe,F,12,C[13]),oe=x(oe,j,R,Z,H,17,C[14]),R=k(R,Z=x(Z,oe,j,R,G,22,C[15]),oe,j,U,5,C[16]),j=k(j,R,Z,oe,Y,9,C[17]),oe=k(oe,j,R,Z,I,14,C[18]),Z=k(Z,oe,j,R,P,20,C[19]),R=k(R,Z,oe,j,W,5,C[20]),j=k(j,R,Z,oe,O,9,C[21]),oe=k(oe,j,R,Z,G,14,C[22]),Z=k(Z,oe,j,R,z,20,C[23]),R=k(R,Z,oe,j,L,5,C[24]),j=k(j,R,Z,oe,H,9,C[25]),oe=k(oe,j,R,Z,te,14,C[26]),Z=k(Z,oe,j,R,N,20,C[27]),R=k(R,Z,oe,j,F,5,C[28]),j=k(j,R,Z,oe,X,9,C[29]),oe=k(oe,j,R,Z,D,14,C[30]),R=a(R,Z=k(Z,oe,j,R,B,20,C[31]),oe,j,W,4,C[32]),j=a(j,R,Z,oe,N,11,C[33]),oe=a(oe,j,R,Z,I,16,C[34]),Z=a(Z,oe,j,R,H,23,C[35]),R=a(R,Z,oe,j,U,4,C[36]),j=a(j,R,Z,oe,z,11,C[37]),oe=a(oe,j,R,Z,D,16,C[38]),Z=a(Z,oe,j,R,O,23,C[39]),R=a(R,Z,oe,j,F,4,C[40]),j=a(j,R,Z,oe,P,11,C[41]),oe=a(oe,j,R,Z,te,16,C[42]),Z=a(Z,oe,j,R,Y,23,C[43]),R=a(R,Z,oe,j,L,4,C[44]),j=a(j,R,Z,oe,B,11,C[45]),oe=a(oe,j,R,Z,G,16,C[46]),R=r(R,Z=a(Z,oe,j,R,X,23,C[47]),oe,j,P,6,C[48]),j=r(j,R,Z,oe,D,10,C[49]),oe=r(oe,j,R,Z,H,15,C[50]),Z=r(Z,oe,j,R,W,21,C[51]),R=r(R,Z,oe,j,B,6,C[52]),j=r(j,R,Z,oe,te,10,C[53]),oe=r(oe,j,R,Z,O,15,C[54]),Z=r(Z,oe,j,R,U,21,C[55]),R=r(R,Z,oe,j,N,6,C[56]),j=r(j,R,Z,oe,G,10,C[57]),oe=r(oe,j,R,Z,Y,15,C[58]),Z=r(Z,oe,j,R,F,21,C[59]),R=r(R,Z,oe,j,z,6,C[60]),j=r(j,R,Z,oe,I,10,C[61]),oe=r(oe,j,R,Z,X,15,C[62]),Z=r(Z,oe,j,R,L,21,C[63]),E[0]=E[0]+R|0,E[1]=E[1]+Z|0,E[2]=E[2]+oe|0,E[3]=E[3]+j|0},_doFinalize:function(){var i=this._data,c=i.words,d=8*this._nDataBytes,h=8*i.sigBytes;c[h>>>5]|=128<<24-h%32;var g=A.floor(d/4294967296),E=d;c[15+(h+64>>>9<<4)]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),c[14+(h+64>>>9<<4)]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),i.sigBytes=4*(c.length+1),this._process();for(var P=this._hash,U=P.words,X=0;X<4;X++){var te=U[X];U[X]=16711935&(te<<8|te>>>24)|4278255360&(te<<24|te>>>8)}return P},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});function x(i,c,d,h,g,E,P){var U=i+(c&d|~c&h)+g+P;return(U<>>32-E)+c}function k(i,c,d,h,g,E,P){var U=i+(c&h|d&~h)+g+P;return(U<>>32-E)+c}function a(i,c,d,h,g,E,P){var U=i+(c^d^h)+g+P;return(U<>>32-E)+c}function r(i,c,d,h,g,E,P){var U=i+(d^(c|~h))+g+P;return(U<>>32-E)+c}T.MD5=m._createHelper(b),T.HmacMD5=m._createHmacHelper(b)}(Math),v.MD5)},8915:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8822),v.mode.CFB=function(){var A=v.lib.BlockCipherMode.extend();function T(_,y,m,f){var C,b=this._iv;b?(C=b.slice(0),this._iv=void 0):C=this._prevBlock,f.encryptBlock(C,0);for(var x=0;x>24&255)){var f=m>>16&255,C=m>>8&255,b=255&m;255===f?(f=0,255===C?(C=0,255===b?b=0:++b):++C):++f,m=0,m+=f<<16,m+=C<<8,m+=b}else m+=1<<24;return m}var y=A.Encryptor=A.extend({processBlock:function(m,f){var C=this._cipher,b=C.blockSize,x=this._iv,k=this._counter;x&&(k=this._counter=x.slice(0),this._iv=void 0),function _(m){return 0===(m[0]=T(m[0]))&&(m[1]=T(m[1])),m}(k);var a=k.slice(0);C.encryptBlock(a,0);for(var r=0;r>>2]|=m<<24-f%4*8,A.sigBytes+=m},unpad:function(A){A.sigBytes-=255&A.words[A.sigBytes-1>>>2]}},v.pad.Ansix923)},9049:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8822),v.pad.Iso10126={pad:function(A,T){var _=4*T,y=_-A.sigBytes%_;A.concat(v.lib.WordArray.random(y-1)).concat(v.lib.WordArray.create([y<<24],1))},unpad:function(A){A.sigBytes-=255&A.words[A.sigBytes-1>>>2]}},v.pad.Iso10126)},2812:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8822),v.pad.Iso97971={pad:function(A,T){A.concat(v.lib.WordArray.create([2147483648],1)),v.pad.ZeroPadding.pad(A,T)},unpad:function(A){v.pad.ZeroPadding.unpad(A),A.sigBytes--}},v.pad.Iso97971)},1247:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8822),v.pad.NoPadding={pad:function(){},unpad:function(){}},v.pad.NoPadding)},5355:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8822),v.pad.ZeroPadding={pad:function(A,T){var _=4*T;A.clamp(),A.sigBytes+=_-(A.sigBytes%_||_)},unpad:function(A){var T=A.words,_=A.sigBytes-1;for(_=A.sigBytes-1;_>=0;_--)if(T[_>>>2]>>>24-_%4*8&255){A.sigBytes=_+1;break}}},v.pad.ZeroPadding)},3096:function(Ne,Ae,$){var A,T,_,y,m,C,b,v;Ne.exports=(v=$(1823),$(6946),$(3331),y=(T=(A=v).lib).WordArray,C=(m=A.algo).HMAC,b=m.PBKDF2=(_=T.Base).extend({cfg:_.extend({keySize:4,hasher:m.SHA256,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,k){for(var a=this.cfg,r=C.create(a.hasher,x),i=y.create(),c=y.create([1]),d=i.words,h=c.words,g=a.keySize,E=a.iterations;d.length>>16,k[1],k[0]<<16|k[3]>>>16,k[2],k[1]<<16|k[0]>>>16,k[3],k[2]<<16|k[1]>>>16],i=this._C=[k[2]<<16|k[2]>>>16,4294901760&k[0]|65535&k[1],k[3]<<16|k[3]>>>16,4294901760&k[1]|65535&k[2],k[0]<<16|k[0]>>>16,4294901760&k[2]|65535&k[3],k[1]<<16|k[1]>>>16,4294901760&k[3]|65535&k[0]];this._b=0;for(var c=0;c<4;c++)x.call(this);for(c=0;c<8;c++)i[c]^=r[c+4&7];if(a){var d=a.words,h=d[0],g=d[1],E=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),P=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),U=E>>>16|4294901760&P,X=P<<16|65535&E;for(i[0]^=E,i[1]^=U,i[2]^=P,i[3]^=X,i[4]^=E,i[5]^=U,i[6]^=P,i[7]^=X,c=0;c<4;c++)x.call(this)}},_doProcessBlock:function(k,a){var r=this._X;x.call(this),m[0]=r[0]^r[5]>>>16^r[3]<<16,m[1]=r[2]^r[7]>>>16^r[5]<<16,m[2]=r[4]^r[1]>>>16^r[7]<<16,m[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)m[i]=16711935&(m[i]<<8|m[i]>>>24)|4278255360&(m[i]<<24|m[i]>>>8),k[a+i]^=m[i]},blockSize:4,ivSize:2});function x(){for(var k=this._X,a=this._C,r=0;r<8;r++)f[r]=a[r];for(a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0>>0?1:0)|0,this._b=a[7]>>>0>>0?1:0,r=0;r<8;r++){var i=k[r]+a[r],c=65535&i,d=i>>>16;C[r]=((c*c>>>17)+c*d>>>15)+d*d^((4294901760&i)*i|0)+((65535&i)*i|0)}k[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,k[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,k[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,k[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,k[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,k[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,k[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,k[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}A.RabbitLegacy=_._createHelper(b)}(),v.RabbitLegacy)},7076:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8341),$(916),$(4369),$(8822),function(){var A=v,_=A.lib.StreamCipher,m=[],f=[],C=[],b=A.algo.Rabbit=_.extend({_doReset:function(){for(var k=this._key.words,a=this.cfg.iv,r=0;r<4;r++)k[r]=16711935&(k[r]<<8|k[r]>>>24)|4278255360&(k[r]<<24|k[r]>>>8);var i=this._X=[k[0],k[3]<<16|k[2]>>>16,k[1],k[0]<<16|k[3]>>>16,k[2],k[1]<<16|k[0]>>>16,k[3],k[2]<<16|k[1]>>>16],c=this._C=[k[2]<<16|k[2]>>>16,4294901760&k[0]|65535&k[1],k[3]<<16|k[3]>>>16,4294901760&k[1]|65535&k[2],k[0]<<16|k[0]>>>16,4294901760&k[2]|65535&k[3],k[1]<<16|k[1]>>>16,4294901760&k[3]|65535&k[0]];for(this._b=0,r=0;r<4;r++)x.call(this);for(r=0;r<8;r++)c[r]^=i[r+4&7];if(a){var d=a.words,h=d[0],g=d[1],E=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),P=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),U=E>>>16|4294901760&P,X=P<<16|65535&E;for(c[0]^=E,c[1]^=U,c[2]^=P,c[3]^=X,c[4]^=E,c[5]^=U,c[6]^=P,c[7]^=X,r=0;r<4;r++)x.call(this)}},_doProcessBlock:function(k,a){var r=this._X;x.call(this),m[0]=r[0]^r[5]>>>16^r[3]<<16,m[1]=r[2]^r[7]>>>16^r[5]<<16,m[2]=r[4]^r[1]>>>16^r[7]<<16,m[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)m[i]=16711935&(m[i]<<8|m[i]>>>24)|4278255360&(m[i]<<24|m[i]>>>8),k[a+i]^=m[i]},blockSize:4,ivSize:2});function x(){for(var k=this._X,a=this._C,r=0;r<8;r++)f[r]=a[r];for(a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0>>0?1:0)|0,this._b=a[7]>>>0>>0?1:0,r=0;r<8;r++){var i=k[r]+a[r],c=65535&i,d=i>>>16;C[r]=((c*c>>>17)+c*d>>>15)+d*d^((4294901760&i)*i|0)+((65535&i)*i|0)}k[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,k[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,k[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,k[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,k[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,k[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,k[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,k[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}A.Rabbit=_._createHelper(b)}(),v.Rabbit)},1093:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8341),$(916),$(4369),$(8822),function(){var A=v,_=A.lib.StreamCipher,y=A.algo,m=y.RC4=_.extend({_doReset:function(){for(var b=this._key,x=b.words,k=b.sigBytes,a=this._S=[],r=0;r<256;r++)a[r]=r;r=0;for(var i=0;r<256;r++){var c=r%k,h=a[r];a[r]=a[i=(i+a[r]+(x[c>>>2]>>>24-c%4*8&255))%256],a[i]=h}this._i=this._j=0},_doProcessBlock:function(b,x){b[x]^=f.call(this)},keySize:8,ivSize:0});function f(){for(var b=this._S,x=this._i,k=this._j,a=0,r=0;r<4;r++){var i=b[x=(x+1)%256];b[x]=b[k=(k+b[x])%256],b[k]=i,a|=b[(b[x]+b[k])%256]<<24-8*r}return this._i=x,this._j=k,a}A.RC4=_._createHelper(m);var C=y.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var b=this.cfg.drop;b>0;b--)f.call(this)}});A.RC4Drop=_._createHelper(C)}(),v.RC4)},5508:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),function(A){var T=v,_=T.lib,y=_.WordArray,m=_.Hasher,f=T.algo,C=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),b=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),k=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),a=y.create([0,1518500249,1859775393,2400959708,2840853838]),r=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=f.RIPEMD160=m.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,X){for(var te=0;te<16;te++){var z=X+te,W=U[z];U[z]=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8)}var F,H,G,R,Z,oe,j,de,_e,st,ne,Y=this._hash.words,D=a.words,N=r.words,L=C.words,O=b.words,I=x.words,B=k.words;for(oe=F=Y[0],j=H=Y[1],de=G=Y[2],_e=R=Y[3],st=Z=Y[4],te=0;te<80;te+=1)ne=F+U[X+L[te]]|0,ne+=te<16?c(H,G,R)+D[0]:te<32?d(H,G,R)+D[1]:te<48?h(H,G,R)+D[2]:te<64?g(H,G,R)+D[3]:E(H,G,R)+D[4],ne=(ne=P(ne|=0,I[te]))+Z|0,F=Z,Z=R,R=P(G,10),G=H,H=ne,ne=oe+U[X+O[te]]|0,ne+=te<16?E(j,de,_e)+N[0]:te<32?g(j,de,_e)+N[1]:te<48?h(j,de,_e)+N[2]:te<64?d(j,de,_e)+N[3]:c(j,de,_e)+N[4],ne=(ne=P(ne|=0,B[te]))+st|0,oe=st,st=_e,_e=P(de,10),de=j,j=ne;ne=Y[1]+G+_e|0,Y[1]=Y[2]+R+st|0,Y[2]=Y[3]+Z+oe|0,Y[3]=Y[4]+F+j|0,Y[4]=Y[0]+H+de|0,Y[0]=ne},_doFinalize:function(){var U=this._data,X=U.words,te=8*this._nDataBytes,z=8*U.sigBytes;X[z>>>5]|=128<<24-z%32,X[14+(z+64>>>9<<4)]=16711935&(te<<8|te>>>24)|4278255360&(te<<24|te>>>8),U.sigBytes=4*(X.length+1),this._process();for(var W=this._hash,Y=W.words,D=0;D<5;D++){var N=Y[D];Y[D]=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8)}return W},clone:function(){var U=m.clone.call(this);return U._hash=this._hash.clone(),U}});function c(U,X,te){return U^X^te}function d(U,X,te){return U&X|~U&te}function h(U,X,te){return(U|~X)^te}function g(U,X,te){return U&te|X&~te}function E(U,X,te){return U^(X|~te)}function P(U,X){return U<>>32-X}T.RIPEMD160=m._createHelper(i),T.HmacRIPEMD160=m._createHmacHelper(i)}(Math),v.RIPEMD160)},6496:function(Ne,Ae,$){var A,T,_,y,f,C,v;Ne.exports=(v=$(1823),_=(T=(A=v).lib).WordArray,f=[],C=A.algo.SHA1=(y=T.Hasher).extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,x){for(var k=this._hash.words,a=k[0],r=k[1],i=k[2],c=k[3],d=k[4],h=0;h<80;h++){if(h<16)f[h]=0|b[x+h];else{var g=f[h-3]^f[h-8]^f[h-14]^f[h-16];f[h]=g<<1|g>>>31}var E=(a<<5|a>>>27)+d+f[h];E+=h<20?1518500249+(r&i|~r&c):h<40?1859775393+(r^i^c):h<60?(r&i|r&c|i&c)-1894007588:(r^i^c)-899497514,d=c,c=i,i=r<<30|r>>>2,r=a,a=E}k[0]=k[0]+a|0,k[1]=k[1]+r|0,k[2]=k[2]+i|0,k[3]=k[3]+c|0,k[4]=k[4]+d|0},_doFinalize:function(){var b=this._data,x=b.words,k=8*this._nDataBytes,a=8*b.sigBytes;return x[a>>>5]|=128<<24-a%32,x[14+(a+64>>>9<<4)]=Math.floor(k/4294967296),x[15+(a+64>>>9<<4)]=k,b.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var b=y.clone.call(this);return b._hash=this._hash.clone(),b}}),A.SHA1=y._createHelper(C),A.HmacSHA1=y._createHmacHelper(C),v.SHA1)},6538:function(Ne,Ae,$){var A,_,y,m,f,v;Ne.exports=(v=$(1823),$(6946),_=(A=v).lib.WordArray,f=(y=A.algo).SHA224=(m=y.SHA256).extend({_doReset:function(){this._hash=new _.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var C=m._doFinalize.call(this);return C.sigBytes-=4,C}}),A.SHA224=m._createHelper(f),A.HmacSHA224=m._createHmacHelper(f),v.SHA224)},6946:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),function(A){var T=v,_=T.lib,y=_.WordArray,m=_.Hasher,f=T.algo,C=[],b=[];!function(){function a(d){for(var h=A.sqrt(d),g=2;g<=h;g++)if(!(d%g))return!1;return!0}function r(d){return 4294967296*(d-(0|d))|0}for(var i=2,c=0;c<64;)a(i)&&(c<8&&(C[c]=r(A.pow(i,.5))),b[c]=r(A.pow(i,1/3)),c++),i++}();var x=[],k=f.SHA256=m.extend({_doReset:function(){this._hash=new y.init(C.slice(0))},_doProcessBlock:function(a,r){for(var i=this._hash.words,c=i[0],d=i[1],h=i[2],g=i[3],E=i[4],P=i[5],U=i[6],X=i[7],te=0;te<64;te++){if(te<16)x[te]=0|a[r+te];else{var z=x[te-15],Y=x[te-2];x[te]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+x[te-7]+((Y<<15|Y>>>17)^(Y<<13|Y>>>19)^Y>>>10)+x[te-16]}var L=c&d^c&h^d&h,B=X+((E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25))+(E&P^~E&U)+b[te]+x[te];X=U,U=P,P=E,E=g+B|0,g=h,h=d,d=c,c=B+(((c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22))+L)|0}i[0]=i[0]+c|0,i[1]=i[1]+d|0,i[2]=i[2]+h|0,i[3]=i[3]+g|0,i[4]=i[4]+E|0,i[5]=i[5]+P|0,i[6]=i[6]+U|0,i[7]=i[7]+X|0},_doFinalize:function(){var a=this._data,r=a.words,i=8*this._nDataBytes,c=8*a.sigBytes;return r[c>>>5]|=128<<24-c%32,r[14+(c+64>>>9<<4)]=A.floor(i/4294967296),r[15+(c+64>>>9<<4)]=i,a.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var a=m.clone.call(this);return a._hash=this._hash.clone(),a}});T.SHA256=m._createHelper(k),T.HmacSHA256=m._createHmacHelper(k)}(Math),v.SHA256)},2633:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(4615),function(A){var T=v,_=T.lib,y=_.WordArray,m=_.Hasher,C=T.x64.Word,b=T.algo,x=[],k=[],a=[];!function(){for(var c=1,d=0,h=0;h<24;h++){x[c+5*d]=(h+1)*(h+2)/2%64;var E=(2*c+3*d)%5;c=d%5,d=E}for(c=0;c<5;c++)for(d=0;d<5;d++)k[c+5*d]=d+(2*c+3*d)%5*5;for(var P=1,U=0;U<24;U++){for(var X=0,te=0,z=0;z<7;z++){if(1&P){var W=(1<>>24)|4278255360&(P<<24|P>>>8),(X=h[E]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),X.low^=P}for(var te=0;te<24;te++){for(var z=0;z<5;z++){for(var W=0,Y=0,D=0;D<5;D++)W^=(X=h[z+5*D]).high,Y^=X.low;var N=r[z];N.high=W,N.low=Y}for(z=0;z<5;z++){var L=r[(z+4)%5],O=r[(z+1)%5],I=O.high,B=O.low;for(W=L.high^(I<<1|B>>>31),Y=L.low^(B<<1|I>>>31),D=0;D<5;D++)(X=h[z+5*D]).high^=W,X.low^=Y}for(var F=1;F<25;F++){var H=(X=h[F]).high,G=X.low,R=x[F];R<32?(W=H<>>32-R,Y=G<>>32-R):(W=G<>>64-R,Y=H<>>64-R);var Z=r[k[F]];Z.high=W,Z.low=Y}var oe=r[0],j=h[0];for(oe.high=j.high,oe.low=j.low,z=0;z<5;z++)for(D=0;D<5;D++){var de=r[F=z+5*D],_e=r[(z+1)%5+5*D],st=r[(z+2)%5+5*D];(X=h[F]).high=de.high^~_e.high&st.high,X.low=de.low^~_e.low&st.low}var X,ne=a[te];(X=h[0]).high^=ne.high,X.low^=ne.low}},_doFinalize:function(){var c=this._data,d=c.words,g=8*c.sigBytes,E=32*this.blockSize;d[g>>>5]|=1<<24-g%32,d[(A.ceil((g+1)/E)*E>>>5)-1]|=128,c.sigBytes=4*d.length,this._process();for(var P=this._state,U=this.cfg.outputLength/8,X=U/8,te=[],z=0;z>>24)|4278255360&(Y<<24|Y>>>8),te.push(D=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)),te.push(Y)}return new y.init(te,U)},clone:function(){for(var c=m.clone.call(this),d=c._state=this._state.slice(0),h=0;h<25;h++)d[h]=d[h].clone();return c}});T.SHA3=m._createHelper(i),T.HmacSHA3=m._createHmacHelper(i)}(Math),v.SHA3)},7098:function(Ne,Ae,$){var A,T,_,y,m,f,C,v;Ne.exports=(v=$(1823),$(4615),$(1206),_=(T=(A=v).x64).Word,y=T.WordArray,C=(m=A.algo).SHA384=(f=m.SHA512).extend({_doReset:function(){this._hash=new y.init([new _.init(3418070365,3238371032),new _.init(1654270250,914150663),new _.init(2438529370,812702999),new _.init(355462360,4144912697),new _.init(1731405415,4290775857),new _.init(2394180231,1750603025),new _.init(3675008525,1694076839),new _.init(1203062813,3204075428)])},_doFinalize:function(){var b=f._doFinalize.call(this);return b.sigBytes-=16,b}}),A.SHA384=f._createHelper(C),A.HmacSHA384=f._createHmacHelper(C),v.SHA384)},1206:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(4615),function(){var A=v,_=A.lib.Hasher,y=A.x64,m=y.Word,f=y.WordArray,C=A.algo;function b(){return m.create.apply(m,arguments)}var x=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],k=[];!function(){for(var r=0;r<80;r++)k[r]=b()}();var a=C.SHA512=_.extend({_doReset:function(){this._hash=new f.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var c=this._hash.words,d=c[0],h=c[1],g=c[2],E=c[3],P=c[4],U=c[5],X=c[6],te=c[7],z=d.high,W=d.low,Y=h.high,D=h.low,N=g.high,L=g.low,O=E.high,I=E.low,B=P.high,F=P.low,H=U.high,G=U.low,R=X.high,Z=X.low,oe=te.high,j=te.low,de=z,_e=W,st=Y,ne=D,We=N,Pe=L,we=O,Be=I,K=B,Q=F,ie=H,Ce=G,ve=R,je=Z,Me=oe,tt=j,It=0;It<80;It++){var bt,Ye,Et=k[It];if(It<16)Ye=Et.high=0|r[i+2*It],bt=Et.low=0|r[i+2*It+1];else{var xt=k[It-15],Pt=xt.high,Qt=xt.low,fe=(Qt>>>1|Pt<<31)^(Qt>>>8|Pt<<24)^(Qt>>>7|Pt<<25),ee=k[It-2],re=ee.high,Ie=ee.low,Ke=(Ie>>>19|re<<13)^(Ie<<3|re>>>29)^(Ie>>>6|re<<26),ot=k[It-7],Ut=k[It-16],Rt=Ut.low;Et.high=Ye=(Ye=(Ye=((Pt>>>1|Qt<<31)^(Pt>>>8|Qt<<24)^Pt>>>7)+ot.high+((bt=fe+ot.low)>>>0>>0?1:0))+((re>>>19|Ie<<13)^(re<<3|Ie>>>29)^re>>>6)+((bt+=Ke)>>>0>>0?1:0))+Ut.high+((bt+=Rt)>>>0>>0?1:0),Et.low=bt}var Ft,zt=K&ie^~K&ve,Dn=Q&Ce^~Q&je,fn=de&st^de&We^st&We,yn=(_e>>>28|de<<4)^(_e<<30|de>>>2)^(_e<<25|de>>>7),Xt=x[It],hr=Xt.low,$e=Me+((K>>>14|Q<<18)^(K>>>18|Q<<14)^(K<<23|Q>>>9))+((Ft=tt+((Q>>>14|K<<18)^(Q>>>18|K<<14)^(Q<<23|K>>>9)))>>>0>>0?1:0),ae=yn+(_e&ne^_e&Pe^ne&Pe);Me=ve,tt=je,ve=ie,je=Ce,ie=K,Ce=Q,K=we+($e=($e=($e=$e+zt+((Ft+=Dn)>>>0>>0?1:0))+Xt.high+((Ft+=hr)>>>0
>>0?1:0))+Ye+((Ft+=bt)>>>0>>0?1:0))+((Q=Be+Ft|0)>>>0>>0?1:0)|0,we=We,Be=Pe,We=st,Pe=ne,st=de,ne=_e,de=$e+(((de>>>28|_e<<4)^(de<<30|_e>>>2)^(de<<25|_e>>>7))+fn+(ae>>>0>>0?1:0))+((_e=Ft+ae|0)>>>0>>0?1:0)|0}W=d.low=W+_e,d.high=z+de+(W>>>0<_e>>>0?1:0),D=h.low=D+ne,h.high=Y+st+(D>>>0>>0?1:0),L=g.low=L+Pe,g.high=N+We+(L>>>0>>0?1:0),I=E.low=I+Be,E.high=O+we+(I>>>0>>0?1:0),F=P.low=F+Q,P.high=B+K+(F>>>0>>0?1:0),G=U.low=G+Ce,U.high=H+ie+(G>>>0>>0?1:0),Z=X.low=Z+je,X.high=R+ve+(Z>>>0>>0?1:0),j=te.low=j+tt,te.high=oe+Me+(j>>>0>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,c=8*this._nDataBytes,d=8*r.sigBytes;return i[d>>>5]|=128<<24-d%32,i[30+(d+128>>>10<<5)]=Math.floor(c/4294967296),i[31+(d+128>>>10<<5)]=c,r.sigBytes=4*i.length,this._process(),this._hash.toX32()},clone:function(){var r=_.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:32});A.SHA512=_._createHelper(a),A.HmacSHA512=_._createHmacHelper(a)}(),v.SHA512)},4994:function(Ne,Ae,$){var v;Ne.exports=(v=$(1823),$(8341),$(916),$(4369),$(8822),function(){var A=v,T=A.lib,_=T.WordArray,y=T.BlockCipher,m=A.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],C=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],b=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],k=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],a=m.DES=y.extend({_doReset:function(){for(var h=this._key.words,g=[],E=0;E<56;E++){var P=f[E]-1;g[E]=h[P>>>5]>>>31-P%32&1}for(var U=this._subKeys=[],X=0;X<16;X++){var te=U[X]=[],z=b[X];for(E=0;E<24;E++)te[E/6|0]|=g[(C[E]-1+z)%28]<<31-E%6,te[4+(E/6|0)]|=g[28+(C[E+24]-1+z)%28]<<31-E%6;for(te[0]=te[0]<<1|te[0]>>>31,E=1;E<7;E++)te[E]=te[E]>>>4*(E-1)+3;te[7]=te[7]<<5|te[7]>>>27}var W=this._invSubKeys=[];for(E=0;E<16;E++)W[E]=U[15-E]},encryptBlock:function(d,h){this._doCryptBlock(d,h,this._subKeys)},decryptBlock:function(d,h){this._doCryptBlock(d,h,this._invSubKeys)},_doCryptBlock:function(d,h,g){this._lBlock=d[h],this._rBlock=d[h+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var E=0;E<16;E++){for(var P=g[E],U=this._lBlock,X=this._rBlock,te=0,z=0;z<8;z++)te|=x[z][((X^P[z])&k[z])>>>0];this._lBlock=X,this._rBlock=U^te}var W=this._lBlock;this._lBlock=this._rBlock,this._rBlock=W,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),d[h]=this._lBlock,d[h+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function r(d,h){var g=(this._lBlock>>>d^this._rBlock)&h;this._rBlock^=g,this._lBlock^=g<>>d^this._lBlock)&h;this._lBlock^=g,this._rBlock^=g<192.");var g=h.slice(0,2),E=h.length<4?h.slice(0,2):h.slice(2,4),P=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=a.createEncryptor(_.create(g)),this._des2=a.createEncryptor(_.create(E)),this._des3=a.createEncryptor(_.create(P))},encryptBlock:function(d,h){this._des1.encryptBlock(d,h),this._des2.decryptBlock(d,h),this._des3.encryptBlock(d,h)},decryptBlock:function(d,h){this._des3.decryptBlock(d,h),this._des2.encryptBlock(d,h),this._des1.decryptBlock(d,h)},keySize:6,ivSize:2,blockSize:2});A.TripleDES=y._createHelper(c)}(),v.TripleDES)},4615:function(Ne,Ae,$){var _,y,m,f,v;Ne.exports=(v=$(1823),y=(_=v.lib).Base,m=_.WordArray,(f=v.x64={}).Word=y.extend({init:function(x,k){this.high=x,this.low=k}}),f.WordArray=y.extend({init:function(x,k){x=this.words=x||[],this.sigBytes=null!=k?k:8*x.length},toX32:function(){for(var x=this.words,k=x.length,a=[],r=0;r{"use strict";var v=Ae;v.version=$(8597).i8,v.utils=$(2946),v.rand=$(4761),v.curve=$(3868),v.curves=$(3346),v.ec=$(7237),v.eddsa=$(1615)},780:(Ne,Ae,$)=>{"use strict";var v=$(4584),A=$(2946),T=A.getNAF,_=A.getJSF,y=A.assert;function m(C,b){this.type=C,this.p=new v(b.p,16),this.red=b.prime?v.red(b.prime):v.mont(this.p),this.zero=new v(0).toRed(this.red),this.one=new v(1).toRed(this.red),this.two=new v(2).toRed(this.red),this.n=b.n&&new v(b.n,16),this.g=b.g&&this.pointFromJSON(b.g,b.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var x=this.n&&this.p.div(this.n);!x||x.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(C,b){this.curve=C,this.type=b,this.precomputed=null}Ne.exports=m,m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(b,x){y(b.precomputed);var k=b._getDoubles(),a=T(x,1,this._bitLength),r=(1<=c;h--)d=(d<<1)+a[h];i.push(d)}for(var g=this.jpoint(null,null,null),E=this.jpoint(null,null,null),P=r;P>0;P--){for(c=0;c=0;d--){for(var h=0;d>=0&&0===i[d];d--)h++;if(d>=0&&h++,c=c.dblp(h),d<0)break;var g=i[d];y(0!==g),c="affine"===b.type?c.mixedAdd(g>0?r[g-1>>1]:r[-g-1>>1].neg()):c.add(g>0?r[g-1>>1]:r[-g-1>>1].neg())}return"affine"===b.type?c.toP():c},m.prototype._wnafMulAdd=function(b,x,k,a,r){var g,E,P,i=this._wnafT1,c=this._wnafT2,d=this._wnafT3,h=0;for(g=0;g=1;g-=2){var X=g-1,te=g;if(1===i[X]&&1===i[te]){var z=[x[X],null,null,x[te]];0===x[X].y.cmp(x[te].y)?(z[1]=x[X].add(x[te]),z[2]=x[X].toJ().mixedAdd(x[te].neg())):0===x[X].y.cmp(x[te].y.redNeg())?(z[1]=x[X].toJ().mixedAdd(x[te]),z[2]=x[X].add(x[te].neg())):(z[1]=x[X].toJ().mixedAdd(x[te]),z[2]=x[X].toJ().mixedAdd(x[te].neg()));var W=[-3,-1,-5,-7,0,7,5,1,3],Y=_(k[X],k[te]);for(h=Math.max(Y[0].length,h),d[X]=new Array(h),d[te]=new Array(h),E=0;E=0;g--){for(var I=0;g>=0;){var B=!0;for(E=0;E=0&&I++,L=L.dblp(I),g<0)break;for(E=0;E0?P=c[E][F-1>>1]:F<0&&(P=c[E][-F-1>>1].neg()),L="affine"===P.type?L.mixedAdd(P):L.add(P))}}for(g=0;g=Math.ceil((b.bitLength()+1)/x.step)},f.prototype._getDoubles=function(b,x){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var k=[this],a=this,r=0;r{"use strict";var v=$(2946),A=$(4584),T=$(9879),_=$(780),y=v.assert;function m(C){this.twisted=1!=(0|C.a),this.mOneA=this.twisted&&-1==(0|C.a),this.extended=this.mOneA,_.call(this,"edwards",C),this.a=new A(C.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new A(C.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new A(C.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),y(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|C.c)}function f(C,b,x,k,a){_.BasePoint.call(this,C,"projective"),null===b&&null===x&&null===k?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new A(b,16),this.y=new A(x,16),this.z=k?new A(k,16):this.curve.one,this.t=a&&new A(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}T(m,_),Ne.exports=m,m.prototype._mulA=function(b){return this.mOneA?b.redNeg():this.a.redMul(b)},m.prototype._mulC=function(b){return this.oneC?b:this.c.redMul(b)},m.prototype.jpoint=function(b,x,k,a){return this.point(b,x,k,a)},m.prototype.pointFromX=function(b,x){(b=new A(b,16)).red||(b=b.toRed(this.red));var k=b.redSqr(),a=this.c2.redSub(this.a.redMul(k)),r=this.one.redSub(this.c2.redMul(this.d).redMul(k)),i=a.redMul(r.redInvm()),c=i.redSqrt();if(0!==c.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var d=c.fromRed().isOdd();return(x&&!d||!x&&d)&&(c=c.redNeg()),this.point(b,c)},m.prototype.pointFromY=function(b,x){(b=new A(b,16)).red||(b=b.toRed(this.red));var k=b.redSqr(),a=k.redSub(this.c2),r=k.redMul(this.d).redMul(this.c2).redSub(this.a),i=a.redMul(r.redInvm());if(0===i.cmp(this.zero)){if(x)throw new Error("invalid point");return this.point(this.zero,b)}var c=i.redSqrt();if(0!==c.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return c.fromRed().isOdd()!==x&&(c=c.redNeg()),this.point(c,b)},m.prototype.validate=function(b){if(b.isInfinity())return!0;b.normalize();var x=b.x.redSqr(),k=b.y.redSqr(),a=x.redMul(this.a).redAdd(k),r=this.c2.redMul(this.one.redAdd(this.d.redMul(x).redMul(k)));return 0===a.cmp(r)},T(f,_.BasePoint),m.prototype.pointFromJSON=function(b){return f.fromJSON(this,b)},m.prototype.point=function(b,x,k,a){return new f(this,b,x,k,a)},f.fromJSON=function(b,x){return new f(b,x[0],x[1],x[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var b=this.x.redSqr(),x=this.y.redSqr(),k=this.z.redSqr();k=k.redIAdd(k);var a=this.curve._mulA(b),r=this.x.redAdd(this.y).redSqr().redISub(b).redISub(x),i=a.redAdd(x),c=i.redSub(k),d=a.redSub(x),h=r.redMul(c),g=i.redMul(d),E=r.redMul(d),P=c.redMul(i);return this.curve.point(h,g,P,E)},f.prototype._projDbl=function(){var a,r,i,c,d,h,b=this.x.redAdd(this.y).redSqr(),x=this.x.redSqr(),k=this.y.redSqr();if(this.curve.twisted){var g=(c=this.curve._mulA(x)).redAdd(k);this.zOne?(a=b.redSub(x).redSub(k).redMul(g.redSub(this.curve.two)),r=g.redMul(c.redSub(k)),i=g.redSqr().redSub(g).redSub(g)):(d=this.z.redSqr(),h=g.redSub(d).redISub(d),a=b.redSub(x).redISub(k).redMul(h),r=g.redMul(c.redSub(k)),i=g.redMul(h))}else c=x.redAdd(k),d=this.curve._mulC(this.z).redSqr(),h=c.redSub(d).redSub(d),a=this.curve._mulC(b.redISub(c)).redMul(h),r=this.curve._mulC(c).redMul(x.redISub(k)),i=c.redMul(h);return this.curve.point(a,r,i)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(b){var x=this.y.redSub(this.x).redMul(b.y.redSub(b.x)),k=this.y.redAdd(this.x).redMul(b.y.redAdd(b.x)),a=this.t.redMul(this.curve.dd).redMul(b.t),r=this.z.redMul(b.z.redAdd(b.z)),i=k.redSub(x),c=r.redSub(a),d=r.redAdd(a),h=k.redAdd(x),g=i.redMul(c),E=d.redMul(h),P=i.redMul(h),U=c.redMul(d);return this.curve.point(g,E,U,P)},f.prototype._projAdd=function(b){var E,P,x=this.z.redMul(b.z),k=x.redSqr(),a=this.x.redMul(b.x),r=this.y.redMul(b.y),i=this.curve.d.redMul(a).redMul(r),c=k.redSub(i),d=k.redAdd(i),h=this.x.redAdd(this.y).redMul(b.x.redAdd(b.y)).redISub(a).redISub(r),g=x.redMul(c).redMul(h);return this.curve.twisted?(E=x.redMul(d).redMul(r.redSub(this.curve._mulA(a))),P=c.redMul(d)):(E=x.redMul(d).redMul(r.redSub(a)),P=this.curve._mulC(c).redMul(d)),this.curve.point(g,E,P)},f.prototype.add=function(b){return this.isInfinity()?b:b.isInfinity()?this:this.curve.extended?this._extAdd(b):this._projAdd(b)},f.prototype.mul=function(b){return this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve._wnafMul(this,b)},f.prototype.mulAdd=function(b,x,k){return this.curve._wnafMulAdd(1,[this,x],[b,k],2,!1)},f.prototype.jmulAdd=function(b,x,k){return this.curve._wnafMulAdd(1,[this,x],[b,k],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var b=this.z.redInvm();return this.x=this.x.redMul(b),this.y=this.y.redMul(b),this.t&&(this.t=this.t.redMul(b)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(b){return this===b||0===this.getX().cmp(b.getX())&&0===this.getY().cmp(b.getY())},f.prototype.eqXToP=function(b){var x=b.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(x))return!0;for(var k=b.clone(),a=this.curve.redN.redMul(this.z);;){if(k.iadd(this.curve.n),k.cmp(this.curve.p)>=0)return!1;if(x.redIAdd(a),0===this.x.cmp(x))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},3868:(Ne,Ae,$)=>{"use strict";var v=Ae;v.base=$(780),v.short=$(9918),v.mont=$(2218),v.edwards=$(6121)},2218:(Ne,Ae,$)=>{"use strict";var v=$(4584),A=$(9879),T=$(780),_=$(2946);function y(f){T.call(this,"mont",f),this.a=new v(f.a,16).toRed(this.red),this.b=new v(f.b,16).toRed(this.red),this.i4=new v(4).toRed(this.red).redInvm(),this.two=new v(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function m(f,C,b){T.BasePoint.call(this,f,"projective"),null===C&&null===b?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new v(C,16),this.z=new v(b,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}A(y,T),Ne.exports=y,y.prototype.validate=function(C){var b=C.normalize().x,x=b.redSqr(),k=x.redMul(b).redAdd(x.redMul(this.a)).redAdd(b);return 0===k.redSqrt().redSqr().cmp(k)},A(m,T.BasePoint),y.prototype.decodePoint=function(C,b){return this.point(_.toArray(C,b),1)},y.prototype.point=function(C,b){return new m(this,C,b)},y.prototype.pointFromJSON=function(C){return m.fromJSON(this,C)},m.prototype.precompute=function(){},m.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},m.fromJSON=function(C,b){return new m(C,b[0],b[1]||C.one)},m.prototype.inspect=function(){return this.isInfinity()?"":""},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},m.prototype.dbl=function(){var b=this.x.redAdd(this.z).redSqr(),k=this.x.redSub(this.z).redSqr(),a=b.redSub(k),r=b.redMul(k),i=a.redMul(k.redAdd(this.curve.a24.redMul(a)));return this.curve.point(r,i)},m.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.diffAdd=function(C,b){var x=this.x.redAdd(this.z),k=this.x.redSub(this.z),a=C.x.redAdd(C.z),i=C.x.redSub(C.z).redMul(x),c=a.redMul(k),d=b.z.redMul(i.redAdd(c).redSqr()),h=b.x.redMul(i.redISub(c).redSqr());return this.curve.point(d,h)},m.prototype.mul=function(C){for(var b=C.clone(),x=this,k=this.curve.point(null,null),r=[];0!==b.cmpn(0);b.iushrn(1))r.push(b.andln(1));for(var i=r.length-1;i>=0;i--)0===r[i]?(x=x.diffAdd(k,this),k=k.dbl()):(k=x.diffAdd(k,this),x=x.dbl());return k},m.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},m.prototype.eq=function(C){return 0===this.getX().cmp(C.getX())},m.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},9918:(Ne,Ae,$)=>{"use strict";var v=$(2946),A=$(4584),T=$(9879),_=$(780),y=v.assert;function m(b){_.call(this,"short",b),this.a=new A(b.a,16).toRed(this.red),this.b=new A(b.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(b),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(b,x,k,a){_.BasePoint.call(this,b,"affine"),null===x&&null===k?(this.x=null,this.y=null,this.inf=!0):(this.x=new A(x,16),this.y=new A(k,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function C(b,x,k,a){_.BasePoint.call(this,b,"jacobian"),null===x&&null===k&&null===a?(this.x=this.curve.one,this.y=this.curve.one,this.z=new A(0)):(this.x=new A(x,16),this.y=new A(k,16),this.z=new A(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}T(m,_),Ne.exports=m,m.prototype._getEndomorphism=function(x){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var k,a;if(x.beta)k=new A(x.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);k=(k=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(x.lambda)a=new A(x.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(k))?a=i[0]:y(0===this.g.mul(a=i[1]).x.cmp(this.g.x.redMul(k)))}return{beta:k,lambda:a,basis:x.basis?x.basis.map(function(d){return{a:new A(d.a,16),b:new A(d.b,16)}}):this._getEndoBasis(a)}}},m.prototype._getEndoRoots=function(x){var k=x===this.p?this.red:A.mont(x),a=new A(2).toRed(k).redInvm(),r=a.redNeg(),i=new A(3).toRed(k).redNeg().redSqrt().redMul(a);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},m.prototype._getEndoBasis=function(x){for(var g,E,P,U,X,te,z,Y,D,k=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=x,r=this.n.clone(),i=new A(1),c=new A(0),d=new A(0),h=new A(1),W=0;0!==a.cmpn(0);){var N=r.div(a);Y=r.sub(N.mul(a)),D=d.sub(N.mul(i));var L=h.sub(N.mul(c));if(!P&&Y.cmp(k)<0)g=z.neg(),E=i,P=Y.neg(),U=D;else if(P&&2==++W)break;z=Y,r=a,a=Y,d=i,i=D,h=c,c=L}X=Y.neg(),te=D;var O=P.sqr().add(U.sqr());return X.sqr().add(te.sqr()).cmp(O)>=0&&(X=g,te=E),P.negative&&(P=P.neg(),U=U.neg()),X.negative&&(X=X.neg(),te=te.neg()),[{a:P,b:U},{a:X,b:te}]},m.prototype._endoSplit=function(x){var k=this.endo.basis,a=k[0],r=k[1],i=r.b.mul(x).divRound(this.n),c=a.b.neg().mul(x).divRound(this.n),d=i.mul(a.a),h=c.mul(r.a),g=i.mul(a.b),E=c.mul(r.b);return{k1:x.sub(d).sub(h),k2:g.add(E).neg()}},m.prototype.pointFromX=function(x,k){(x=new A(x,16)).red||(x=x.toRed(this.red));var a=x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(k&&!i||!k&&i)&&(r=r.redNeg()),this.point(x,r)},m.prototype.validate=function(x){if(x.inf)return!0;var k=x.x,a=x.y,r=this.a.redMul(k),i=k.redSqr().redMul(k).redIAdd(r).redIAdd(this.b);return 0===a.redSqr().redISub(i).cmpn(0)},m.prototype._endoWnafMulAdd=function(x,k,a){for(var r=this._endoWnafT1,i=this._endoWnafT2,c=0;c":""},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(x){if(this.inf)return x;if(x.inf)return this;if(this.eq(x))return this.dbl();if(this.neg().eq(x))return this.curve.point(null,null);if(0===this.x.cmp(x.x))return this.curve.point(null,null);var k=this.y.redSub(x.y);0!==k.cmpn(0)&&(k=k.redMul(this.x.redSub(x.x).redInvm()));var a=k.redSqr().redISub(this.x).redISub(x.x),r=k.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},f.prototype.dbl=function(){if(this.inf)return this;var x=this.y.redAdd(this.y);if(0===x.cmpn(0))return this.curve.point(null,null);var k=this.curve.a,a=this.x.redSqr(),r=x.redInvm(),i=a.redAdd(a).redIAdd(a).redIAdd(k).redMul(r),c=i.redSqr().redISub(this.x.redAdd(this.x)),d=i.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,d)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(x){return x=new A(x,16),this.isInfinity()?this:this._hasDoubles(x)?this.curve._fixedNafMul(this,x):this.curve.endo?this.curve._endoWnafMulAdd([this],[x]):this.curve._wnafMul(this,x)},f.prototype.mulAdd=function(x,k,a){var r=[this,k],i=[x,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},f.prototype.jmulAdd=function(x,k,a){var r=[this,k],i=[x,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},f.prototype.eq=function(x){return this===x||this.inf===x.inf&&(this.inf||0===this.x.cmp(x.x)&&0===this.y.cmp(x.y))},f.prototype.neg=function(x){if(this.inf)return this;var k=this.curve.point(this.x,this.y.redNeg());if(x&&this.precomputed){var a=this.precomputed,r=function(i){return i.neg()};k.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(r)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(r)}}}return k},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},T(C,_.BasePoint),m.prototype.jpoint=function(x,k,a){return new C(this,x,k,a)},C.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var x=this.z.redInvm(),k=x.redSqr(),a=this.x.redMul(k),r=this.y.redMul(k).redMul(x);return this.curve.point(a,r)},C.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},C.prototype.add=function(x){if(this.isInfinity())return x;if(x.isInfinity())return this;var k=x.z.redSqr(),a=this.z.redSqr(),r=this.x.redMul(k),i=x.x.redMul(a),c=this.y.redMul(k.redMul(x.z)),d=x.y.redMul(a.redMul(this.z)),h=r.redSub(i),g=c.redSub(d);if(0===h.cmpn(0))return 0!==g.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var E=h.redSqr(),P=E.redMul(h),U=r.redMul(E),X=g.redSqr().redIAdd(P).redISub(U).redISub(U),te=g.redMul(U.redISub(X)).redISub(c.redMul(P)),z=this.z.redMul(x.z).redMul(h);return this.curve.jpoint(X,te,z)},C.prototype.mixedAdd=function(x){if(this.isInfinity())return x.toJ();if(x.isInfinity())return this;var k=this.z.redSqr(),a=this.x,r=x.x.redMul(k),i=this.y,c=x.y.redMul(k).redMul(this.z),d=a.redSub(r),h=i.redSub(c);if(0===d.cmpn(0))return 0!==h.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var g=d.redSqr(),E=g.redMul(d),P=a.redMul(g),U=h.redSqr().redIAdd(E).redISub(P).redISub(P),X=h.redMul(P.redISub(U)).redISub(i.redMul(E)),te=this.z.redMul(d);return this.curve.jpoint(U,X,te)},C.prototype.dblp=function(x){if(0===x)return this;if(this.isInfinity())return this;if(!x)return this.dbl();var k;if(this.curve.zeroA||this.curve.threeA){var a=this;for(k=0;k=0)return!1;if(a.redIAdd(i),0===this.x.cmp(a))return!0}},C.prototype.inspect=function(){return this.isInfinity()?"":""},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3346:(Ne,Ae,$)=>{"use strict";var C,v=Ae,A=$(7909),T=$(3868),y=$(2946).assert;function m(b){this.curve="short"===b.type?new T.short(b):"edwards"===b.type?new T.edwards(b):new T.mont(b),this.g=this.curve.g,this.n=this.curve.n,this.hash=b.hash,y(this.g.validate(),"Invalid curve"),y(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(b,x){Object.defineProperty(v,b,{configurable:!0,enumerable:!0,get:function(){var k=new m(x);return Object.defineProperty(v,b,{configurable:!0,enumerable:!0,value:k}),k}})}v.PresetCurve=m,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:A.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:A.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:A.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:A.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:A.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:A.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:A.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{C=$(5503)}catch{C=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:A.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",C]})},7237:(Ne,Ae,$)=>{"use strict";var v=$(4584),A=$(2730),T=$(2946),_=$(3346),y=$(4761),m=T.assert,f=$(2806),C=$(6799);function b(x){if(!(this instanceof b))return new b(x);"string"==typeof x&&(m(Object.prototype.hasOwnProperty.call(_,x),"Unknown curve "+x),x=_[x]),x instanceof _.PresetCurve&&(x={curve:x}),this.curve=x.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=x.curve.g,this.g.precompute(x.curve.n.bitLength()+1),this.hash=x.hash||x.curve.hash}Ne.exports=b,b.prototype.keyPair=function(k){return new f(this,k)},b.prototype.keyFromPrivate=function(k,a){return f.fromPrivate(this,k,a)},b.prototype.keyFromPublic=function(k,a){return f.fromPublic(this,k,a)},b.prototype.genKeyPair=function(k){k||(k={});for(var a=new A({hash:this.hash,pers:k.pers,persEnc:k.persEnc||"utf8",entropy:k.entropy||y(this.hash.hmacStrength),entropyEnc:k.entropy&&k.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new v(2));;){var c=new v(a.generate(r));if(!(c.cmp(i)>0))return c.iaddn(1),this.keyFromPrivate(c)}},b.prototype._truncateToN=function(k,a){var r=8*k.byteLength()-this.n.bitLength();return r>0&&(k=k.ushrn(r)),!a&&k.cmp(this.n)>=0?k.sub(this.n):k},b.prototype.sign=function(k,a,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),a=this.keyFromPrivate(a,r),k=this._truncateToN(new v(k,16));for(var c=this.n.byteLength(),d=a.getPrivate().toArray("be",c),h=k.toArray("be",c),g=new A({hash:this.hash,entropy:d,nonce:h,pers:i.pers,persEnc:i.persEnc||"utf8"}),E=this.n.sub(new v(1)),P=0;;P++){var U=i.k?i.k(P):new v(g.generate(this.n.byteLength()));if(!((U=this._truncateToN(U,!0)).cmpn(1)<=0||U.cmp(E)>=0)){var X=this.g.mul(U);if(!X.isInfinity()){var te=X.getX(),z=te.umod(this.n);if(0!==z.cmpn(0)){var W=U.invm(this.n).mul(z.mul(a.getPrivate()).iadd(k));if(0!==(W=W.umod(this.n)).cmpn(0)){var Y=(X.getY().isOdd()?1:0)|(0!==te.cmp(z)?2:0);return i.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),Y^=1),new C({r:z,s:W,recoveryParam:Y})}}}}}},b.prototype.verify=function(k,a,r,i){k=this._truncateToN(new v(k,16)),r=this.keyFromPublic(r,i);var c=(a=new C(a,"hex")).r,d=a.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var P,h=d.invm(this.n),g=h.mul(k).umod(this.n),E=h.mul(c).umod(this.n);return this.curve._maxwellTrick?!(P=this.g.jmulAdd(g,r.getPublic(),E)).isInfinity()&&P.eqXToP(c):!(P=this.g.mulAdd(g,r.getPublic(),E)).isInfinity()&&0===P.getX().umod(this.n).cmp(c)},b.prototype.recoverPubKey=function(x,k,a,r){m((3&a)===a,"The recovery param is more than two bits"),k=new C(k,r);var i=this.n,c=new v(x),d=k.r,h=k.s,g=1&a,E=a>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&E)throw new Error("Unable to find sencond key candinate");d=this.curve.pointFromX(E?d.add(this.curve.n):d,g);var P=k.r.invm(i),U=i.sub(c).mul(P).umod(i),X=h.mul(P).umod(i);return this.g.mulAdd(U,d,X)},b.prototype.getKeyRecoveryParam=function(x,k,a,r){if(null!==(k=new C(k,r)).recoveryParam)return k.recoveryParam;for(var i=0;i<4;i++){var c;try{c=this.recoverPubKey(x,k,i)}catch{continue}if(c.eq(a))return i}throw new Error("Unable to find valid recovery factor")}},2806:(Ne,Ae,$)=>{"use strict";var v=$(4584),T=$(2946).assert;function _(y,m){this.ec=y,this.priv=null,this.pub=null,m.priv&&this._importPrivate(m.priv,m.privEnc),m.pub&&this._importPublic(m.pub,m.pubEnc)}Ne.exports=_,_.fromPublic=function(m,f,C){return f instanceof _?f:new _(m,{pub:f,pubEnc:C})},_.fromPrivate=function(m,f,C){return f instanceof _?f:new _(m,{priv:f,privEnc:C})},_.prototype.validate=function(){var m=this.getPublic();return m.isInfinity()?{result:!1,reason:"Invalid public key"}:m.validate()?m.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},_.prototype.getPublic=function(m,f){return"string"==typeof m&&(f=m,m=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,m):this.pub},_.prototype.getPrivate=function(m){return"hex"===m?this.priv.toString(16,2):this.priv},_.prototype._importPrivate=function(m,f){this.priv=new v(m,f||16),this.priv=this.priv.umod(this.ec.curve.n)},_.prototype._importPublic=function(m,f){if(m.x||m.y)return"mont"===this.ec.curve.type?T(m.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&T(m.x&&m.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(m.x,m.y));this.pub=this.ec.curve.decodePoint(m,f)},_.prototype.derive=function(m){return m.validate()||T(m.validate(),"public point not validated"),m.mul(this.priv).getX()},_.prototype.sign=function(m,f,C){return this.ec.sign(m,this,f,C)},_.prototype.verify=function(m,f){return this.ec.verify(m,f,this)},_.prototype.inspect=function(){return""}},6799:(Ne,Ae,$)=>{"use strict";var v=$(4584),A=$(2946),T=A.assert;function _(b,x){if(b instanceof _)return b;this._importDER(b,x)||(T(b.r&&b.s,"Signature without r or s"),this.r=new v(b.r,16),this.s=new v(b.s,16),this.recoveryParam=void 0===b.recoveryParam?null:b.recoveryParam)}function y(){this.place=0}function m(b,x){var k=b[x.place++];if(!(128&k))return k;var a=15&k;if(0===a||a>4)return!1;for(var r=0,i=0,c=x.place;i>>=0;return!(r<=127)&&(x.place=c,r)}function f(b){for(var x=0,k=b.length-1;!b[x]&&!(128&b[x+1])&&x>>3);for(b.push(128|k);--k;)b.push(x>>>(k<<3)&255);b.push(x)}}Ne.exports=_,_.prototype._importDER=function(x,k){x=A.toArray(x,k);var a=new y;if(48!==x[a.place++])return!1;var r=m(x,a);if(!1===r||r+a.place!==x.length||2!==x[a.place++])return!1;var i=m(x,a);if(!1===i)return!1;var c=x.slice(a.place,i+a.place);if(a.place+=i,2!==x[a.place++])return!1;var d=m(x,a);if(!1===d||x.length!==d+a.place)return!1;var h=x.slice(a.place,d+a.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new v(c),this.s=new v(h),this.recoveryParam=null,!0},_.prototype.toDER=function(x){var k=this.r.toArray(),a=this.s.toArray();for(128&k[0]&&(k=[0].concat(k)),128&a[0]&&(a=[0].concat(a)),k=f(k),a=f(a);!(a[0]||128&a[1]);)a=a.slice(1);var r=[2];C(r,k.length),(r=r.concat(k)).push(2),C(r,a.length);var i=r.concat(a),c=[48];return C(c,i.length),c=c.concat(i),A.encode(c,x)}},1615:(Ne,Ae,$)=>{"use strict";var v=$(7909),A=$(3346),T=$(2946),_=T.assert,y=T.parseBytes,m=$(6014),f=$(6317);function C(b){if(_("ed25519"===b,"only tested with ed25519 so far"),!(this instanceof C))return new C(b);this.curve=b=A[b].curve,this.g=b.g,this.g.precompute(b.n.bitLength()+1),this.pointClass=b.point().constructor,this.encodingLength=Math.ceil(b.n.bitLength()/8),this.hash=v.sha512}Ne.exports=C,C.prototype.sign=function(x,k){x=y(x);var a=this.keyFromSecret(k),r=this.hashInt(a.messagePrefix(),x),i=this.g.mul(r),c=this.encodePoint(i),d=this.hashInt(c,a.pubBytes(),x).mul(a.priv()),h=r.add(d).umod(this.curve.n);return this.makeSignature({R:i,S:h,Rencoded:c})},C.prototype.verify=function(x,k,a){x=y(x),k=this.makeSignature(k);var r=this.keyFromPublic(a),i=this.hashInt(k.Rencoded(),r.pubBytes(),x),c=this.g.mul(k.S());return k.R().add(r.pub().mul(i)).eq(c)},C.prototype.hashInt=function(){for(var x=this.hash(),k=0;k{"use strict";var v=$(2946),A=v.assert,T=v.parseBytes,_=v.cachedProperty;function y(m,f){this.eddsa=m,this._secret=T(f.secret),m.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=T(f.pub)}y.fromPublic=function(f,C){return C instanceof y?C:new y(f,{pub:C})},y.fromSecret=function(f,C){return C instanceof y?C:new y(f,{secret:C})},y.prototype.secret=function(){return this._secret},_(y,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),_(y,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),_(y,"privBytes",function(){var f=this.eddsa,C=this.hash(),b=f.encodingLength-1,x=C.slice(0,f.encodingLength);return x[0]&=248,x[b]&=127,x[b]|=64,x}),_(y,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),_(y,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),_(y,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),y.prototype.sign=function(f){return A(this._secret,"KeyPair can only verify"),this.eddsa.sign(f,this)},y.prototype.verify=function(f,C){return this.eddsa.verify(f,C,this)},y.prototype.getSecret=function(f){return A(this._secret,"KeyPair is public only"),v.encode(this.secret(),f)},y.prototype.getPublic=function(f){return v.encode(this.pubBytes(),f)},Ne.exports=y},6317:(Ne,Ae,$)=>{"use strict";var v=$(4584),A=$(2946),T=A.assert,_=A.cachedProperty,y=A.parseBytes;function m(f,C){this.eddsa=f,"object"!=typeof C&&(C=y(C)),Array.isArray(C)&&(C={R:C.slice(0,f.encodingLength),S:C.slice(f.encodingLength)}),T(C.R&&C.S,"Signature without R or S"),f.isPoint(C.R)&&(this._R=C.R),C.S instanceof v&&(this._S=C.S),this._Rencoded=Array.isArray(C.R)?C.R:C.Rencoded,this._Sencoded=Array.isArray(C.S)?C.S:C.Sencoded}_(m,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),_(m,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),_(m,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),_(m,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),m.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},m.prototype.toHex=function(){return A.encode(this.toBytes(),"hex").toUpperCase()},Ne.exports=m},5503:Ne=>{Ne.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},2946:(Ne,Ae,$)=>{"use strict";var v=Ae,A=$(4584),T=$(6055),_=$(4869);v.assert=T,v.toArray=_.toArray,v.zero2=_.zero2,v.toHex=_.toHex,v.encode=_.encode,v.getNAF=function y(x,k,a){var r=new Array(Math.max(x.bitLength(),a)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-g:g):h=0,r[d]=h,c.iushrn(1)}return r},v.getJSF=function m(x,k){var a=[[],[]];x=x.clone(),k=k.clone();for(var c,r=0,i=0;x.cmpn(-r)>0||k.cmpn(-i)>0;){var g,E,d=x.andln(3)+r&3,h=k.andln(3)+i&3;3===d&&(d=-1),3===h&&(h=-1),g=1&d?3!=(c=x.andln(7)+r&7)&&5!==c||2!==h?d:-d:0,a[0].push(g),E=1&h?3!=(c=k.andln(7)+i&7)&&5!==c||2!==d?h:-h:0,a[1].push(E),2*r===g+1&&(r=1-r),2*i===E+1&&(i=1-i),x.iushrn(1),k.iushrn(1)}return a},v.cachedProperty=function f(x,k,a){var r="_"+k;x.prototype[k]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}},v.parseBytes=function C(x){return"string"==typeof x?v.toArray(x,"hex"):x},v.intFromLE=function b(x){return new A(x,"hex","le")}},4584:function(Ne,Ae,$){!function(v,A){"use strict";function T(D,N){if(!D)throw new Error(N||"Assertion failed")}function _(D,N){D.super_=N;var L=function(){};L.prototype=N.prototype,D.prototype=new L,D.prototype.constructor=D}function y(D,N,L){if(y.isBN(D))return D;this.negative=0,this.words=null,this.length=0,this.red=null,null!==D&&(("le"===N||"be"===N)&&(L=N,N=10),this._init(D||0,N||10,L||"be"))}var m;"object"==typeof v?v.exports=y:A.BN=y,y.BN=y,y.wordSize=26;try{m=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:$(5568).Buffer}catch{}function f(D,N){var L=D.charCodeAt(N);return L>=65&&L<=70?L-55:L>=97&&L<=102?L-87:L-48&15}function C(D,N,L){var O=f(D,L);return L-1>=N&&(O|=f(D,L-1)<<4),O}function b(D,N,L,O){for(var I=0,B=Math.min(D.length,L),F=N;F=49?H-49+10:H>=17?H-17+10:H}return I}y.isBN=function(N){return N instanceof y||null!==N&&"object"==typeof N&&N.constructor.wordSize===y.wordSize&&Array.isArray(N.words)},y.max=function(N,L){return N.cmp(L)>0?N:L},y.min=function(N,L){return N.cmp(L)<0?N:L},y.prototype._init=function(N,L,O){if("number"==typeof N)return this._initNumber(N,L,O);if("object"==typeof N)return this._initArray(N,L,O);"hex"===L&&(L=16),T(L===(0|L)&&L>=2&&L<=36);var I=0;"-"===(N=N.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[B]|=(F=N[I]|N[I-1]<<8|N[I-2]<<16)<>>26-H&67108863,(H+=24)>=26&&(H-=26,B++);else if("le"===O)for(I=0,B=0;I>>26-H&67108863,(H+=24)>=26&&(H-=26,B++);return this.strip()},y.prototype._parseHex=function(N,L,O){this.length=Math.ceil((N.length-L)/6),this.words=new Array(this.length);for(var I=0;I=L;I-=2)H=C(N,L,I)<=18?(B-=18,this.words[F+=1]|=H>>>26):B+=8;else for(I=(N.length-L)%2==0?L+1:L;I=18?(B-=18,this.words[F+=1]|=H>>>26):B+=8;this.strip()},y.prototype._parseBase=function(N,L,O){this.words=[0],this.length=1;for(var I=0,B=1;B<=67108863;B*=L)I++;I--,B=B/L|0;for(var F=N.length-O,H=F%I,G=Math.min(F,F-H)+O,R=0,Z=O;Z1&&0===this.words[this.length-1];)this.length--;return this._normSign()},y.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},y.prototype.inspect=function(){return(this.red?""};var x=["","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"],k=[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],a=[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];function i(D,N,L){L.negative=N.negative^D.negative;var O=D.length+N.length|0;L.length=O,O=O-1|0;var I=0|D.words[0],B=0|N.words[0],F=I*B,G=F/67108864|0;L.words[0]=67108863&F;for(var R=1;R>>26,oe=67108863&G,j=Math.min(R,N.length-1),de=Math.max(0,R-D.length+1);de<=j;de++)Z+=(F=(I=0|D.words[R-de|0])*(B=0|N.words[de])+oe)/67108864|0,oe=67108863&F;L.words[R]=0|oe,G=0|Z}return 0!==G?L.words[R]=0|G:L.length--,L.strip()}y.prototype.toString=function(N,L){var O;if(L=0|L||1,16===(N=N||10)||"hex"===N){O="";for(var I=0,B=0,F=0;F>>24-I&16777215)||F!==this.length-1?x[6-G.length]+G+O:G+O,(I+=2)>=26&&(I-=26,F--)}for(0!==B&&(O=B.toString(16)+O);O.length%L!=0;)O="0"+O;return 0!==this.negative&&(O="-"+O),O}if(N===(0|N)&&N>=2&&N<=36){var R=k[N],Z=a[N];O="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var j=oe.modn(Z).toString(N);O=(oe=oe.idivn(Z)).isZero()?j+O:x[R-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%L!=0;)O="0"+O;return 0!==this.negative&&(O="-"+O),O}T(!1,"Base should be between 2 and 36")},y.prototype.toNumber=function(){var N=this.words[0];return 2===this.length?N+=67108864*this.words[1]:3===this.length&&1===this.words[2]?N+=4503599627370496+67108864*this.words[1]:this.length>2&&T(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-N:N},y.prototype.toJSON=function(){return this.toString(16)},y.prototype.toBuffer=function(N,L){return T(typeof m<"u"),this.toArrayLike(m,N,L)},y.prototype.toArray=function(N,L){return this.toArrayLike(Array,N,L)},y.prototype.toArrayLike=function(N,L,O){var I=this.byteLength(),B=O||Math.max(1,I);T(I<=B,"byte array longer than desired length"),T(B>0,"Requested array length <= 0"),this.strip();var G,R,F="le"===L,H=new N(B),Z=this.clone();if(F){for(R=0;!Z.isZero();R++)G=Z.andln(255),Z.iushrn(8),H[R]=G;for(;R=4096&&(O+=13,L>>>=13),L>=64&&(O+=7,L>>>=7),L>=8&&(O+=4,L>>>=4),L>=2&&(O+=2,L>>>=2),O+L},y.prototype._zeroBits=function(N){if(0===N)return 26;var L=N,O=0;return 8191&L||(O+=13,L>>>=13),127&L||(O+=7,L>>>=7),15&L||(O+=4,L>>>=4),3&L||(O+=2,L>>>=2),1&L||O++,O},y.prototype.bitLength=function(){var L=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+L},y.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,L=0;LN.length?this.clone().ior(N):N.clone().ior(this)},y.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},y.prototype.iuand=function(N){var L;L=this.length>N.length?N:this;for(var O=0;ON.length?this.clone().iand(N):N.clone().iand(this)},y.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},y.prototype.iuxor=function(N){var L,O;this.length>N.length?(L=this,O=N):(L=N,O=this);for(var I=0;IN.length?this.clone().ixor(N):N.clone().ixor(this)},y.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},y.prototype.inotn=function(N){T("number"==typeof N&&N>=0);var L=0|Math.ceil(N/26),O=N%26;this._expand(L),O>0&&L--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-O),this.strip()},y.prototype.notn=function(N){return this.clone().inotn(N)},y.prototype.setn=function(N,L){T("number"==typeof N&&N>=0);var O=N/26|0,I=N%26;return this._expand(O+1),this.words[O]=L?this.words[O]|1<N.length?(O=this,I=N):(O=N,I=this);for(var B=0,F=0;F>>26;for(;0!==B&&F>>26;if(this.length=O.length,0!==B)this.words[this.length]=B,this.length++;else if(O!==this)for(;FN.length?this.clone().iadd(N):N.clone().iadd(this)},y.prototype.isub=function(N){if(0!==N.negative){N.negative=0;var L=this.iadd(N);return N.negative=1,L._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var I,B,O=this.cmp(N);if(0===O)return this.negative=0,this.length=1,this.words[0]=0,this;O>0?(I=this,B=N):(I=N,B=this);for(var F=0,H=0;H>26,this.words[H]=67108863&L;for(;0!==F&&H>26,this.words[H]=67108863&L;if(0===F&&H>>13,_e=0|I[1],st=8191&_e,ne=_e>>>13,We=0|I[2],Pe=8191&We,we=We>>>13,Be=0|I[3],K=8191&Be,Q=Be>>>13,ie=0|I[4],Ce=8191&ie,ve=ie>>>13,je=0|I[5],Me=8191&je,tt=je>>>13,It=0|I[6],bt=8191&It,Ye=It>>>13,Et=0|I[7],xt=8191&Et,Pt=Et>>>13,Qt=0|I[8],Wt=8191&Qt,fe=Qt>>>13,ee=0|I[9],re=8191&ee,Ie=ee>>>13,He=0|B[0],Ke=8191&He,ot=He>>>13,un=0|B[1],Ht=8191&un,Ut=un>>>13,Bn=0|B[2],Rt=8191&Bn,zt=Bn>>>13,Dn=0|B[3],fn=8191&Dn,jt=Dn>>>13,Tr=0|B[4],yn=8191&Tr,Nt=Tr>>>13,Kt=0|B[5],Xt=8191&Kt,an=Kt>>>13,hr=0|B[6],Ft=8191&hr,$e=hr>>>13,ae=0|B[7],le=8191&ae,ue=ae>>>13,q=0|B[8],be=8191&q,Ge=q>>>13,nt=0|B[9],et=8191&nt,ft=nt>>>13;O.negative=N.negative^L.negative,O.length=19;var rn=(H+(G=Math.imul(j,Ke))|0)+((8191&(R=(R=Math.imul(j,ot))+Math.imul(de,Ke)|0))<<13)|0;H=((Z=Math.imul(de,ot))+(R>>>13)|0)+(rn>>>26)|0,rn&=67108863,G=Math.imul(st,Ke),R=(R=Math.imul(st,ot))+Math.imul(ne,Ke)|0,Z=Math.imul(ne,ot);var St=(H+(G=G+Math.imul(j,Ht)|0)|0)+((8191&(R=(R=R+Math.imul(j,Ut)|0)+Math.imul(de,Ht)|0))<<13)|0;H=((Z=Z+Math.imul(de,Ut)|0)+(R>>>13)|0)+(St>>>26)|0,St&=67108863,G=Math.imul(Pe,Ke),R=(R=Math.imul(Pe,ot))+Math.imul(we,Ke)|0,Z=Math.imul(we,ot),G=G+Math.imul(st,Ht)|0,R=(R=R+Math.imul(st,Ut)|0)+Math.imul(ne,Ht)|0,Z=Z+Math.imul(ne,Ut)|0;var dn=(H+(G=G+Math.imul(j,Rt)|0)|0)+((8191&(R=(R=R+Math.imul(j,zt)|0)+Math.imul(de,Rt)|0))<<13)|0;H=((Z=Z+Math.imul(de,zt)|0)+(R>>>13)|0)+(dn>>>26)|0,dn&=67108863,G=Math.imul(K,Ke),R=(R=Math.imul(K,ot))+Math.imul(Q,Ke)|0,Z=Math.imul(Q,ot),G=G+Math.imul(Pe,Ht)|0,R=(R=R+Math.imul(Pe,Ut)|0)+Math.imul(we,Ht)|0,Z=Z+Math.imul(we,Ut)|0,G=G+Math.imul(st,Rt)|0,R=(R=R+Math.imul(st,zt)|0)+Math.imul(ne,Rt)|0,Z=Z+Math.imul(ne,zt)|0;var Zt=(H+(G=G+Math.imul(j,fn)|0)|0)+((8191&(R=(R=R+Math.imul(j,jt)|0)+Math.imul(de,fn)|0))<<13)|0;H=((Z=Z+Math.imul(de,jt)|0)+(R>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,G=Math.imul(Ce,Ke),R=(R=Math.imul(Ce,ot))+Math.imul(ve,Ke)|0,Z=Math.imul(ve,ot),G=G+Math.imul(K,Ht)|0,R=(R=R+Math.imul(K,Ut)|0)+Math.imul(Q,Ht)|0,Z=Z+Math.imul(Q,Ut)|0,G=G+Math.imul(Pe,Rt)|0,R=(R=R+Math.imul(Pe,zt)|0)+Math.imul(we,Rt)|0,Z=Z+Math.imul(we,zt)|0,G=G+Math.imul(st,fn)|0,R=(R=R+Math.imul(st,jt)|0)+Math.imul(ne,fn)|0,Z=Z+Math.imul(ne,jt)|0;var vn=(H+(G=G+Math.imul(j,yn)|0)|0)+((8191&(R=(R=R+Math.imul(j,Nt)|0)+Math.imul(de,yn)|0))<<13)|0;H=((Z=Z+Math.imul(de,Nt)|0)+(R>>>13)|0)+(vn>>>26)|0,vn&=67108863,G=Math.imul(Me,Ke),R=(R=Math.imul(Me,ot))+Math.imul(tt,Ke)|0,Z=Math.imul(tt,ot),G=G+Math.imul(Ce,Ht)|0,R=(R=R+Math.imul(Ce,Ut)|0)+Math.imul(ve,Ht)|0,Z=Z+Math.imul(ve,Ut)|0,G=G+Math.imul(K,Rt)|0,R=(R=R+Math.imul(K,zt)|0)+Math.imul(Q,Rt)|0,Z=Z+Math.imul(Q,zt)|0,G=G+Math.imul(Pe,fn)|0,R=(R=R+Math.imul(Pe,jt)|0)+Math.imul(we,fn)|0,Z=Z+Math.imul(we,jt)|0,G=G+Math.imul(st,yn)|0,R=(R=R+Math.imul(st,Nt)|0)+Math.imul(ne,yn)|0,Z=Z+Math.imul(ne,Nt)|0;var bn=(H+(G=G+Math.imul(j,Xt)|0)|0)+((8191&(R=(R=R+Math.imul(j,an)|0)+Math.imul(de,Xt)|0))<<13)|0;H=((Z=Z+Math.imul(de,an)|0)+(R>>>13)|0)+(bn>>>26)|0,bn&=67108863,G=Math.imul(bt,Ke),R=(R=Math.imul(bt,ot))+Math.imul(Ye,Ke)|0,Z=Math.imul(Ye,ot),G=G+Math.imul(Me,Ht)|0,R=(R=R+Math.imul(Me,Ut)|0)+Math.imul(tt,Ht)|0,Z=Z+Math.imul(tt,Ut)|0,G=G+Math.imul(Ce,Rt)|0,R=(R=R+Math.imul(Ce,zt)|0)+Math.imul(ve,Rt)|0,Z=Z+Math.imul(ve,zt)|0,G=G+Math.imul(K,fn)|0,R=(R=R+Math.imul(K,jt)|0)+Math.imul(Q,fn)|0,Z=Z+Math.imul(Q,jt)|0,G=G+Math.imul(Pe,yn)|0,R=(R=R+Math.imul(Pe,Nt)|0)+Math.imul(we,yn)|0,Z=Z+Math.imul(we,Nt)|0,G=G+Math.imul(st,Xt)|0,R=(R=R+Math.imul(st,an)|0)+Math.imul(ne,Xt)|0,Z=Z+Math.imul(ne,an)|0;var En=(H+(G=G+Math.imul(j,Ft)|0)|0)+((8191&(R=(R=R+Math.imul(j,$e)|0)+Math.imul(de,Ft)|0))<<13)|0;H=((Z=Z+Math.imul(de,$e)|0)+(R>>>13)|0)+(En>>>26)|0,En&=67108863,G=Math.imul(xt,Ke),R=(R=Math.imul(xt,ot))+Math.imul(Pt,Ke)|0,Z=Math.imul(Pt,ot),G=G+Math.imul(bt,Ht)|0,R=(R=R+Math.imul(bt,Ut)|0)+Math.imul(Ye,Ht)|0,Z=Z+Math.imul(Ye,Ut)|0,G=G+Math.imul(Me,Rt)|0,R=(R=R+Math.imul(Me,zt)|0)+Math.imul(tt,Rt)|0,Z=Z+Math.imul(tt,zt)|0,G=G+Math.imul(Ce,fn)|0,R=(R=R+Math.imul(Ce,jt)|0)+Math.imul(ve,fn)|0,Z=Z+Math.imul(ve,jt)|0,G=G+Math.imul(K,yn)|0,R=(R=R+Math.imul(K,Nt)|0)+Math.imul(Q,yn)|0,Z=Z+Math.imul(Q,Nt)|0,G=G+Math.imul(Pe,Xt)|0,R=(R=R+Math.imul(Pe,an)|0)+Math.imul(we,Xt)|0,Z=Z+Math.imul(we,an)|0,G=G+Math.imul(st,Ft)|0,R=(R=R+Math.imul(st,$e)|0)+Math.imul(ne,Ft)|0,Z=Z+Math.imul(ne,$e)|0;var Tn=(H+(G=G+Math.imul(j,le)|0)|0)+((8191&(R=(R=R+Math.imul(j,ue)|0)+Math.imul(de,le)|0))<<13)|0;H=((Z=Z+Math.imul(de,ue)|0)+(R>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,G=Math.imul(Wt,Ke),R=(R=Math.imul(Wt,ot))+Math.imul(fe,Ke)|0,Z=Math.imul(fe,ot),G=G+Math.imul(xt,Ht)|0,R=(R=R+Math.imul(xt,Ut)|0)+Math.imul(Pt,Ht)|0,Z=Z+Math.imul(Pt,Ut)|0,G=G+Math.imul(bt,Rt)|0,R=(R=R+Math.imul(bt,zt)|0)+Math.imul(Ye,Rt)|0,Z=Z+Math.imul(Ye,zt)|0,G=G+Math.imul(Me,fn)|0,R=(R=R+Math.imul(Me,jt)|0)+Math.imul(tt,fn)|0,Z=Z+Math.imul(tt,jt)|0,G=G+Math.imul(Ce,yn)|0,R=(R=R+Math.imul(Ce,Nt)|0)+Math.imul(ve,yn)|0,Z=Z+Math.imul(ve,Nt)|0,G=G+Math.imul(K,Xt)|0,R=(R=R+Math.imul(K,an)|0)+Math.imul(Q,Xt)|0,Z=Z+Math.imul(Q,an)|0,G=G+Math.imul(Pe,Ft)|0,R=(R=R+Math.imul(Pe,$e)|0)+Math.imul(we,Ft)|0,Z=Z+Math.imul(we,$e)|0,G=G+Math.imul(st,le)|0,R=(R=R+Math.imul(st,ue)|0)+Math.imul(ne,le)|0,Z=Z+Math.imul(ne,ue)|0;var In=(H+(G=G+Math.imul(j,be)|0)|0)+((8191&(R=(R=R+Math.imul(j,Ge)|0)+Math.imul(de,be)|0))<<13)|0;H=((Z=Z+Math.imul(de,Ge)|0)+(R>>>13)|0)+(In>>>26)|0,In&=67108863,G=Math.imul(re,Ke),R=(R=Math.imul(re,ot))+Math.imul(Ie,Ke)|0,Z=Math.imul(Ie,ot),G=G+Math.imul(Wt,Ht)|0,R=(R=R+Math.imul(Wt,Ut)|0)+Math.imul(fe,Ht)|0,Z=Z+Math.imul(fe,Ut)|0,G=G+Math.imul(xt,Rt)|0,R=(R=R+Math.imul(xt,zt)|0)+Math.imul(Pt,Rt)|0,Z=Z+Math.imul(Pt,zt)|0,G=G+Math.imul(bt,fn)|0,R=(R=R+Math.imul(bt,jt)|0)+Math.imul(Ye,fn)|0,Z=Z+Math.imul(Ye,jt)|0,G=G+Math.imul(Me,yn)|0,R=(R=R+Math.imul(Me,Nt)|0)+Math.imul(tt,yn)|0,Z=Z+Math.imul(tt,Nt)|0,G=G+Math.imul(Ce,Xt)|0,R=(R=R+Math.imul(Ce,an)|0)+Math.imul(ve,Xt)|0,Z=Z+Math.imul(ve,an)|0,G=G+Math.imul(K,Ft)|0,R=(R=R+Math.imul(K,$e)|0)+Math.imul(Q,Ft)|0,Z=Z+Math.imul(Q,$e)|0,G=G+Math.imul(Pe,le)|0,R=(R=R+Math.imul(Pe,ue)|0)+Math.imul(we,le)|0,Z=Z+Math.imul(we,ue)|0,G=G+Math.imul(st,be)|0,R=(R=R+Math.imul(st,Ge)|0)+Math.imul(ne,be)|0,Z=Z+Math.imul(ne,Ge)|0;var Nn=(H+(G=G+Math.imul(j,et)|0)|0)+((8191&(R=(R=R+Math.imul(j,ft)|0)+Math.imul(de,et)|0))<<13)|0;H=((Z=Z+Math.imul(de,ft)|0)+(R>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,G=Math.imul(re,Ht),R=(R=Math.imul(re,Ut))+Math.imul(Ie,Ht)|0,Z=Math.imul(Ie,Ut),G=G+Math.imul(Wt,Rt)|0,R=(R=R+Math.imul(Wt,zt)|0)+Math.imul(fe,Rt)|0,Z=Z+Math.imul(fe,zt)|0,G=G+Math.imul(xt,fn)|0,R=(R=R+Math.imul(xt,jt)|0)+Math.imul(Pt,fn)|0,Z=Z+Math.imul(Pt,jt)|0,G=G+Math.imul(bt,yn)|0,R=(R=R+Math.imul(bt,Nt)|0)+Math.imul(Ye,yn)|0,Z=Z+Math.imul(Ye,Nt)|0,G=G+Math.imul(Me,Xt)|0,R=(R=R+Math.imul(Me,an)|0)+Math.imul(tt,Xt)|0,Z=Z+Math.imul(tt,an)|0,G=G+Math.imul(Ce,Ft)|0,R=(R=R+Math.imul(Ce,$e)|0)+Math.imul(ve,Ft)|0,Z=Z+Math.imul(ve,$e)|0,G=G+Math.imul(K,le)|0,R=(R=R+Math.imul(K,ue)|0)+Math.imul(Q,le)|0,Z=Z+Math.imul(Q,ue)|0,G=G+Math.imul(Pe,be)|0,R=(R=R+Math.imul(Pe,Ge)|0)+Math.imul(we,be)|0,Z=Z+Math.imul(we,Ge)|0;var On=(H+(G=G+Math.imul(st,et)|0)|0)+((8191&(R=(R=R+Math.imul(st,ft)|0)+Math.imul(ne,et)|0))<<13)|0;H=((Z=Z+Math.imul(ne,ft)|0)+(R>>>13)|0)+(On>>>26)|0,On&=67108863,G=Math.imul(re,Rt),R=(R=Math.imul(re,zt))+Math.imul(Ie,Rt)|0,Z=Math.imul(Ie,zt),G=G+Math.imul(Wt,fn)|0,R=(R=R+Math.imul(Wt,jt)|0)+Math.imul(fe,fn)|0,Z=Z+Math.imul(fe,jt)|0,G=G+Math.imul(xt,yn)|0,R=(R=R+Math.imul(xt,Nt)|0)+Math.imul(Pt,yn)|0,Z=Z+Math.imul(Pt,Nt)|0,G=G+Math.imul(bt,Xt)|0,R=(R=R+Math.imul(bt,an)|0)+Math.imul(Ye,Xt)|0,Z=Z+Math.imul(Ye,an)|0,G=G+Math.imul(Me,Ft)|0,R=(R=R+Math.imul(Me,$e)|0)+Math.imul(tt,Ft)|0,Z=Z+Math.imul(tt,$e)|0,G=G+Math.imul(Ce,le)|0,R=(R=R+Math.imul(Ce,ue)|0)+Math.imul(ve,le)|0,Z=Z+Math.imul(ve,ue)|0,G=G+Math.imul(K,be)|0,R=(R=R+Math.imul(K,Ge)|0)+Math.imul(Q,be)|0,Z=Z+Math.imul(Q,Ge)|0;var qt=(H+(G=G+Math.imul(Pe,et)|0)|0)+((8191&(R=(R=R+Math.imul(Pe,ft)|0)+Math.imul(we,et)|0))<<13)|0;H=((Z=Z+Math.imul(we,ft)|0)+(R>>>13)|0)+(qt>>>26)|0,qt&=67108863,G=Math.imul(re,fn),R=(R=Math.imul(re,jt))+Math.imul(Ie,fn)|0,Z=Math.imul(Ie,jt),G=G+Math.imul(Wt,yn)|0,R=(R=R+Math.imul(Wt,Nt)|0)+Math.imul(fe,yn)|0,Z=Z+Math.imul(fe,Nt)|0,G=G+Math.imul(xt,Xt)|0,R=(R=R+Math.imul(xt,an)|0)+Math.imul(Pt,Xt)|0,Z=Z+Math.imul(Pt,an)|0,G=G+Math.imul(bt,Ft)|0,R=(R=R+Math.imul(bt,$e)|0)+Math.imul(Ye,Ft)|0,Z=Z+Math.imul(Ye,$e)|0,G=G+Math.imul(Me,le)|0,R=(R=R+Math.imul(Me,ue)|0)+Math.imul(tt,le)|0,Z=Z+Math.imul(tt,ue)|0,G=G+Math.imul(Ce,be)|0,R=(R=R+Math.imul(Ce,Ge)|0)+Math.imul(ve,be)|0,Z=Z+Math.imul(ve,Ge)|0;var Gt=(H+(G=G+Math.imul(K,et)|0)|0)+((8191&(R=(R=R+Math.imul(K,ft)|0)+Math.imul(Q,et)|0))<<13)|0;H=((Z=Z+Math.imul(Q,ft)|0)+(R>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,G=Math.imul(re,yn),R=(R=Math.imul(re,Nt))+Math.imul(Ie,yn)|0,Z=Math.imul(Ie,Nt),G=G+Math.imul(Wt,Xt)|0,R=(R=R+Math.imul(Wt,an)|0)+Math.imul(fe,Xt)|0,Z=Z+Math.imul(fe,an)|0,G=G+Math.imul(xt,Ft)|0,R=(R=R+Math.imul(xt,$e)|0)+Math.imul(Pt,Ft)|0,Z=Z+Math.imul(Pt,$e)|0,G=G+Math.imul(bt,le)|0,R=(R=R+Math.imul(bt,ue)|0)+Math.imul(Ye,le)|0,Z=Z+Math.imul(Ye,ue)|0,G=G+Math.imul(Me,be)|0,R=(R=R+Math.imul(Me,Ge)|0)+Math.imul(tt,be)|0,Z=Z+Math.imul(tt,Ge)|0;var sn=(H+(G=G+Math.imul(Ce,et)|0)|0)+((8191&(R=(R=R+Math.imul(Ce,ft)|0)+Math.imul(ve,et)|0))<<13)|0;H=((Z=Z+Math.imul(ve,ft)|0)+(R>>>13)|0)+(sn>>>26)|0,sn&=67108863,G=Math.imul(re,Xt),R=(R=Math.imul(re,an))+Math.imul(Ie,Xt)|0,Z=Math.imul(Ie,an),G=G+Math.imul(Wt,Ft)|0,R=(R=R+Math.imul(Wt,$e)|0)+Math.imul(fe,Ft)|0,Z=Z+Math.imul(fe,$e)|0,G=G+Math.imul(xt,le)|0,R=(R=R+Math.imul(xt,ue)|0)+Math.imul(Pt,le)|0,Z=Z+Math.imul(Pt,ue)|0,G=G+Math.imul(bt,be)|0,R=(R=R+Math.imul(bt,Ge)|0)+Math.imul(Ye,be)|0,Z=Z+Math.imul(Ye,Ge)|0;var pn=(H+(G=G+Math.imul(Me,et)|0)|0)+((8191&(R=(R=R+Math.imul(Me,ft)|0)+Math.imul(tt,et)|0))<<13)|0;H=((Z=Z+Math.imul(tt,ft)|0)+(R>>>13)|0)+(pn>>>26)|0,pn&=67108863,G=Math.imul(re,Ft),R=(R=Math.imul(re,$e))+Math.imul(Ie,Ft)|0,Z=Math.imul(Ie,$e),G=G+Math.imul(Wt,le)|0,R=(R=R+Math.imul(Wt,ue)|0)+Math.imul(fe,le)|0,Z=Z+Math.imul(fe,ue)|0,G=G+Math.imul(xt,be)|0,R=(R=R+Math.imul(xt,Ge)|0)+Math.imul(Pt,be)|0,Z=Z+Math.imul(Pt,Ge)|0;var on=(H+(G=G+Math.imul(bt,et)|0)|0)+((8191&(R=(R=R+Math.imul(bt,ft)|0)+Math.imul(Ye,et)|0))<<13)|0;H=((Z=Z+Math.imul(Ye,ft)|0)+(R>>>13)|0)+(on>>>26)|0,on&=67108863,G=Math.imul(re,le),R=(R=Math.imul(re,ue))+Math.imul(Ie,le)|0,Z=Math.imul(Ie,ue),G=G+Math.imul(Wt,be)|0,R=(R=R+Math.imul(Wt,Ge)|0)+Math.imul(fe,be)|0,Z=Z+Math.imul(fe,Ge)|0;var vt=(H+(G=G+Math.imul(xt,et)|0)|0)+((8191&(R=(R=R+Math.imul(xt,ft)|0)+Math.imul(Pt,et)|0))<<13)|0;H=((Z=Z+Math.imul(Pt,ft)|0)+(R>>>13)|0)+(vt>>>26)|0,vt&=67108863,G=Math.imul(re,be),R=(R=Math.imul(re,Ge))+Math.imul(Ie,be)|0,Z=Math.imul(Ie,Ge);var At=(H+(G=G+Math.imul(Wt,et)|0)|0)+((8191&(R=(R=R+Math.imul(Wt,ft)|0)+Math.imul(fe,et)|0))<<13)|0;H=((Z=Z+Math.imul(fe,ft)|0)+(R>>>13)|0)+(At>>>26)|0,At&=67108863;var dt=(H+(G=Math.imul(re,et))|0)+((8191&(R=(R=Math.imul(re,ft))+Math.imul(Ie,et)|0))<<13)|0;return H=((Z=Math.imul(Ie,ft))+(R>>>13)|0)+(dt>>>26)|0,dt&=67108863,F[0]=rn,F[1]=St,F[2]=dn,F[3]=Zt,F[4]=vn,F[5]=bn,F[6]=En,F[7]=Tn,F[8]=In,F[9]=Nn,F[10]=On,F[11]=qt,F[12]=Gt,F[13]=sn,F[14]=pn,F[15]=on,F[16]=vt,F[17]=At,F[18]=dt,0!==H&&(F[19]=H,O.length++),O};function h(D,N,L){return(new g).mulp(D,N,L)}function g(D,N){this.x=D,this.y=N}Math.imul||(c=i),y.prototype.mulTo=function(N,L){var O,I=this.length+N.length;return O=10===this.length&&10===N.length?c(this,N,L):I<63?i(this,N,L):I<1024?function d(D,N,L){L.negative=N.negative^D.negative,L.length=D.length+N.length;for(var O=0,I=0,B=0;B>>26)|0)>>>26,F&=67108863}L.words[B]=H,O=F,F=I}return 0!==O?L.words[B]=O:L.length--,L.strip()}(this,N,L):h(this,N,L),O},g.prototype.makeRBT=function(N){for(var L=new Array(N),O=y.prototype._countBits(N)-1,I=0;I>=1;return I},g.prototype.permute=function(N,L,O,I,B,F){for(var H=0;H>>=1)B++;return 1<>>=13),B>>>=13;for(F=2*L;F>=26,L+=I/67108864|0,L+=B>>>26,this.words[O]=67108863&B}return 0!==L&&(this.words[O]=L,this.length++),this},y.prototype.muln=function(N){return this.clone().imuln(N)},y.prototype.sqr=function(){return this.mul(this)},y.prototype.isqr=function(){return this.imul(this.clone())},y.prototype.pow=function(N){var L=function r(D){for(var N=new Array(D.bitLength()),L=0;L>>I}return N}(N);if(0===L.length)return new y(1);for(var O=this,I=0;I=0);var B,L=N%26,O=(N-L)/26,I=67108863>>>26-L<<26-L;if(0!==L){var F=0;for(B=0;B>>26-L}F&&(this.words[B]=F,this.length++)}if(0!==O){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0),I=L?(L-L%26)/26:0;var B=N%26,F=Math.min((N-B)/26,this.length),H=67108863^67108863>>>B<F)for(this.length-=F,R=0;R=0&&(0!==Z||R>=I);R--){var oe=0|this.words[R];this.words[R]=Z<<26-B|oe>>>B,Z=oe&H}return G&&0!==Z&&(G.words[G.length++]=Z),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},y.prototype.ishrn=function(N,L,O){return T(0===this.negative),this.iushrn(N,L,O)},y.prototype.shln=function(N){return this.clone().ishln(N)},y.prototype.ushln=function(N){return this.clone().iushln(N)},y.prototype.shrn=function(N){return this.clone().ishrn(N)},y.prototype.ushrn=function(N){return this.clone().iushrn(N)},y.prototype.testn=function(N){T("number"==typeof N&&N>=0);var L=N%26,O=(N-L)/26;return!(this.length<=O||!(this.words[O]&1<=0);var L=N%26,O=(N-L)/26;return T(0===this.negative,"imaskn works only with positive numbers"),this.length<=O?this:(0!==L&&O++,this.length=Math.min(O,this.length),0!==L&&(this.words[this.length-1]&=67108863^67108863>>>L<=67108864;L++)this.words[L]-=67108864,L===this.length-1?this.words[L+1]=1:this.words[L+1]++;return this.length=Math.max(this.length,L+1),this},y.prototype.isubn=function(N){if(T("number"==typeof N),T(N<67108864),N<0)return this.iaddn(-N);if(0!==this.negative)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var L=0;L>26)-(G/67108864|0),this.words[B+O]=67108863&F}for(;B>26,this.words[B+O]=67108863&F;if(0===H)return this.strip();for(T(-1===H),H=0,B=0;B>26,this.words[B]=67108863&F;return this.negative=1,this.strip()},y.prototype._wordDiv=function(N,L){var O,I=this.clone(),B=N,F=0|B.words[B.length-1];0!=(O=26-this._countBits(F))&&(B=B.ushln(O),I.iushln(O),F=0|B.words[B.length-1]);var R,G=I.length-B.length;if("mod"!==L){(R=new y(null)).length=G+1,R.words=new Array(R.length);for(var Z=0;Z=0;j--){var de=67108864*(0|I.words[B.length+j])+(0|I.words[B.length+j-1]);for(de=Math.min(de/F|0,67108863),I._ishlnsubmul(B,de,j);0!==I.negative;)de--,I.negative=0,I._ishlnsubmul(B,1,j),I.isZero()||(I.negative^=1);R&&(R.words[j]=de)}return R&&R.strip(),I.strip(),"div"!==L&&0!==O&&I.iushrn(O),{div:R||null,mod:I}},y.prototype.divmod=function(N,L,O){return T(!N.isZero()),this.isZero()?{div:new y(0),mod:new y(0)}:0!==this.negative&&0===N.negative?(F=this.neg().divmod(N,L),"mod"!==L&&(I=F.div.neg()),"div"!==L&&(B=F.mod.neg(),O&&0!==B.negative&&B.iadd(N)),{div:I,mod:B}):0===this.negative&&0!==N.negative?(F=this.divmod(N.neg(),L),"mod"!==L&&(I=F.div.neg()),{div:I,mod:F.mod}):this.negative&N.negative?(F=this.neg().divmod(N.neg(),L),"div"!==L&&(B=F.mod.neg(),O&&0!==B.negative&&B.isub(N)),{div:F.div,mod:B}):N.length>this.length||this.cmp(N)<0?{div:new y(0),mod:this}:1===N.length?"div"===L?{div:this.divn(N.words[0]),mod:null}:"mod"===L?{div:null,mod:new y(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new y(this.modn(N.words[0]))}:this._wordDiv(N,L);var I,B,F},y.prototype.div=function(N){return this.divmod(N,"div",!1).div},y.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},y.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},y.prototype.divRound=function(N){var L=this.divmod(N);if(L.mod.isZero())return L.div;var O=0!==L.div.negative?L.mod.isub(N):L.mod,I=N.ushrn(1),B=N.andln(1),F=O.cmp(I);return F<0||1===B&&0===F?L.div:0!==L.div.negative?L.div.isubn(1):L.div.iaddn(1)},y.prototype.modn=function(N){T(N<=67108863);for(var L=(1<<26)%N,O=0,I=this.length-1;I>=0;I--)O=(L*O+(0|this.words[I]))%N;return O},y.prototype.idivn=function(N){T(N<=67108863);for(var L=0,O=this.length-1;O>=0;O--){var I=(0|this.words[O])+67108864*L;this.words[O]=I/N|0,L=I%N}return this.strip()},y.prototype.divn=function(N){return this.clone().idivn(N)},y.prototype.egcd=function(N){T(0===N.negative),T(!N.isZero());var L=this,O=N.clone();L=0!==L.negative?L.umod(N):L.clone();for(var I=new y(1),B=new y(0),F=new y(0),H=new y(1),G=0;L.isEven()&&O.isEven();)L.iushrn(1),O.iushrn(1),++G;for(var R=O.clone(),Z=L.clone();!L.isZero();){for(var oe=0,j=1;!(L.words[0]&j)&&oe<26;++oe,j<<=1);if(oe>0)for(L.iushrn(oe);oe-- >0;)(I.isOdd()||B.isOdd())&&(I.iadd(R),B.isub(Z)),I.iushrn(1),B.iushrn(1);for(var de=0,_e=1;!(O.words[0]&_e)&&de<26;++de,_e<<=1);if(de>0)for(O.iushrn(de);de-- >0;)(F.isOdd()||H.isOdd())&&(F.iadd(R),H.isub(Z)),F.iushrn(1),H.iushrn(1);L.cmp(O)>=0?(L.isub(O),I.isub(F),B.isub(H)):(O.isub(L),F.isub(I),H.isub(B))}return{a:F,b:H,gcd:O.iushln(G)}},y.prototype._invmp=function(N){T(0===N.negative),T(!N.isZero());var oe,L=this,O=N.clone();L=0!==L.negative?L.umod(N):L.clone();for(var I=new y(1),B=new y(0),F=O.clone();L.cmpn(1)>0&&O.cmpn(1)>0;){for(var H=0,G=1;!(L.words[0]&G)&&H<26;++H,G<<=1);if(H>0)for(L.iushrn(H);H-- >0;)I.isOdd()&&I.iadd(F),I.iushrn(1);for(var R=0,Z=1;!(O.words[0]&Z)&&R<26;++R,Z<<=1);if(R>0)for(O.iushrn(R);R-- >0;)B.isOdd()&&B.iadd(F),B.iushrn(1);L.cmp(O)>=0?(L.isub(O),I.isub(B)):(O.isub(L),B.isub(I))}return(oe=0===L.cmpn(1)?I:B).cmpn(0)<0&&oe.iadd(N),oe},y.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var L=this.clone(),O=N.clone();L.negative=0,O.negative=0;for(var I=0;L.isEven()&&O.isEven();I++)L.iushrn(1),O.iushrn(1);for(;;){for(;L.isEven();)L.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=L.cmp(O);if(B<0){var F=L;L=O,O=F}else if(0===B||0===O.cmpn(1))break;L.isub(O)}return O.iushln(I)},y.prototype.invm=function(N){return this.egcd(N).a.umod(N)},y.prototype.isEven=function(){return 0==(1&this.words[0])},y.prototype.isOdd=function(){return 1==(1&this.words[0])},y.prototype.andln=function(N){return this.words[0]&N},y.prototype.bincn=function(N){T("number"==typeof N);var L=N%26,O=(N-L)/26,I=1<>>26,this.words[F]=H&=67108863}return 0!==B&&(this.words[F]=B,this.length++),this},y.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},y.prototype.cmpn=function(N){var O,L=N<0;if(0!==this.negative&&!L)return-1;if(0===this.negative&&L)return 1;if(this.strip(),this.length>1)O=1;else{L&&(N=-N),T(N<=67108863,"Number is too big");var I=0|this.words[0];O=I===N?0:IN.length)return 1;if(this.length=0;O--){var I=0|this.words[O],B=0|N.words[O];if(I!==B){IB&&(L=1);break}}return L},y.prototype.gtn=function(N){return 1===this.cmpn(N)},y.prototype.gt=function(N){return 1===this.cmp(N)},y.prototype.gten=function(N){return this.cmpn(N)>=0},y.prototype.gte=function(N){return this.cmp(N)>=0},y.prototype.ltn=function(N){return-1===this.cmpn(N)},y.prototype.lt=function(N){return-1===this.cmp(N)},y.prototype.lten=function(N){return this.cmpn(N)<=0},y.prototype.lte=function(N){return this.cmp(N)<=0},y.prototype.eqn=function(N){return 0===this.cmpn(N)},y.prototype.eq=function(N){return 0===this.cmp(N)},y.red=function(N){return new W(N)},y.prototype.toRed=function(N){return T(!this.red,"Already a number in reduction context"),T(0===this.negative,"red works only with positives"),N.convertTo(this)._forceRed(N)},y.prototype.fromRed=function(){return T(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},y.prototype._forceRed=function(N){return this.red=N,this},y.prototype.forceRed=function(N){return T(!this.red,"Already a number in reduction context"),this._forceRed(N)},y.prototype.redAdd=function(N){return T(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},y.prototype.redIAdd=function(N){return T(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},y.prototype.redSub=function(N){return T(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},y.prototype.redISub=function(N){return T(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},y.prototype.redShl=function(N){return T(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},y.prototype.redMul=function(N){return T(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},y.prototype.redIMul=function(N){return T(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},y.prototype.redSqr=function(){return T(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},y.prototype.redISqr=function(){return T(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},y.prototype.redSqrt=function(){return T(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},y.prototype.redInvm=function(){return T(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},y.prototype.redNeg=function(){return T(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},y.prototype.redPow=function(N){return T(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var E={k256:null,p224:null,p192:null,p25519:null};function P(D,N){this.name=D,this.p=new y(N,16),this.n=this.p.bitLength(),this.k=new y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function U(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function X(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function te(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function z(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(D){if("string"==typeof D){var N=y._prime(D);this.m=N.p,this.prime=N}else T(D.gtn(1),"modulus must be greater than 1"),this.m=D,this.prime=null}function Y(D){W.call(this,D),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new y(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)}P.prototype._tmp=function(){var N=new y(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var O,L=N;do{this.split(L,this.tmp),O=(L=(L=this.imulK(L)).iadd(this.tmp)).bitLength()}while(O>this.n);var I=O0?L.isub(this.p):void 0!==L.strip?L.strip():L._strip(),L},P.prototype.split=function(N,L){N.iushrn(this.n,0,L)},P.prototype.imulK=function(N){return N.imul(this.k)},_(U,P),U.prototype.split=function(N,L){for(var O=4194303,I=Math.min(N.length,9),B=0;B>>22,F=H}N.words[B-10]=F>>>=22,N.length-=0===F&&N.length>10?10:9},U.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var L=0,O=0;O>>=26,N.words[O]=B,L=I}return 0!==L&&(N.words[N.length++]=L),N},y._prime=function(N){if(E[N])return E[N];var L;if("k256"===N)L=new U;else if("p224"===N)L=new X;else if("p192"===N)L=new te;else{if("p25519"!==N)throw new Error("Unknown prime "+N);L=new z}return E[N]=L,L},W.prototype._verify1=function(N){T(0===N.negative,"red works only with positives"),T(N.red,"red works only with red numbers")},W.prototype._verify2=function(N,L){T(0==(N.negative|L.negative),"red works only with positives"),T(N.red&&N.red===L.red,"red works only with red numbers")},W.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},W.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},W.prototype.add=function(N,L){this._verify2(N,L);var O=N.add(L);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},W.prototype.iadd=function(N,L){this._verify2(N,L);var O=N.iadd(L);return O.cmp(this.m)>=0&&O.isub(this.m),O},W.prototype.sub=function(N,L){this._verify2(N,L);var O=N.sub(L);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},W.prototype.isub=function(N,L){this._verify2(N,L);var O=N.isub(L);return O.cmpn(0)<0&&O.iadd(this.m),O},W.prototype.shl=function(N,L){return this._verify1(N),this.imod(N.ushln(L))},W.prototype.imul=function(N,L){return this._verify2(N,L),this.imod(N.imul(L))},W.prototype.mul=function(N,L){return this._verify2(N,L),this.imod(N.mul(L))},W.prototype.isqr=function(N){return this.imul(N,N.clone())},W.prototype.sqr=function(N){return this.mul(N,N)},W.prototype.sqrt=function(N){if(N.isZero())return N.clone();var L=this.m.andln(3);if(T(L%2==1),3===L){var O=this.m.add(new y(1)).iushrn(2);return this.pow(N,O)}for(var I=this.m.subn(1),B=0;!I.isZero()&&0===I.andln(1);)B++,I.iushrn(1);T(!I.isZero());var F=new y(1).toRed(this),H=F.redNeg(),G=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new y(2*R*R).toRed(this);0!==this.pow(R,G).cmp(H);)R.redIAdd(H);for(var Z=this.pow(R,I),oe=this.pow(N,I.addn(1).iushrn(1)),j=this.pow(N,I),de=B;0!==j.cmp(F);){for(var _e=j,st=0;0!==_e.cmp(F);st++)_e=_e.redSqr();T(st=0;B--){for(var Z=L.words[B],oe=R-1;oe>=0;oe--){var j=Z>>oe&1;F!==I[0]&&(F=this.sqr(F)),0!==j||0!==H?(H<<=1,H|=j,(4==++G||0===B&&0===oe)&&(F=this.mul(F,I[H]),G=0,H=0)):G=0}R=26}return F},W.prototype.convertTo=function(N){var L=N.umod(this.m);return L===N?L.clone():L},W.prototype.convertFrom=function(N){var L=N.clone();return L.red=null,L},y.mont=function(N){return new Y(N)},_(Y,W),Y.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Y.prototype.convertFrom=function(N){var L=this.imod(N.mul(this.rinv));return L.red=null,L},Y.prototype.imul=function(N,L){if(N.isZero()||L.isZero())return N.words[0]=0,N.length=1,N;var O=N.imul(L),I=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(I).iushrn(this.shift),F=B;return B.cmp(this.m)>=0?F=B.isub(this.m):B.cmpn(0)<0&&(F=B.iadd(this.m)),F._forceRed(this)},Y.prototype.mul=function(N,L){if(N.isZero()||L.isZero())return new y(0)._forceRed(this);var O=N.mul(L),I=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(I).iushrn(this.shift),F=B;return B.cmp(this.m)>=0?F=B.isub(this.m):B.cmpn(0)<0&&(F=B.iadd(this.m)),F._forceRed(this)},Y.prototype.invm=function(N){return this.imod(N._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ne=$.nmd(Ne),this)},7909:(Ne,Ae,$)=>{var v=Ae;v.utils=$(8291),v.common=$(1393),v.sha=$(2221),v.ripemd=$(1960),v.hmac=$(1905),v.sha1=v.sha.sha1,v.sha256=v.sha.sha256,v.sha224=v.sha.sha224,v.sha384=v.sha.sha384,v.sha512=v.sha.sha512,v.ripemd160=v.ripemd.ripemd160},1393:(Ne,Ae,$)=>{"use strict";var v=$(8291),A=$(6055);function T(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Ae.BlockHash=T,T.prototype.update=function(y,m){if(y=v.toArray(y,m),this.pending=this.pending?this.pending.concat(y):y,this.pendingTotal+=y.length,this.pending.length>=this._delta8){var f=(y=this.pending).length%this._delta8;this.pending=y.slice(y.length-f,y.length),0===this.pending.length&&(this.pending=null),y=v.join32(y,0,y.length-f,this.endian);for(var C=0;C>>24&255,C[b++]=y>>>16&255,C[b++]=y>>>8&255,C[b++]=255&y}else for(C[b++]=255&y,C[b++]=y>>>8&255,C[b++]=y>>>16&255,C[b++]=y>>>24&255,C[b++]=0,C[b++]=0,C[b++]=0,C[b++]=0,x=8;x{"use strict";var v=$(8291),A=$(6055);function T(_,y,m){if(!(this instanceof T))return new T(_,y,m);this.Hash=_,this.blockSize=_.blockSize/8,this.outSize=_.outSize/8,this.inner=null,this.outer=null,this._init(v.toArray(y,m))}Ne.exports=T,T.prototype._init=function(y){y.length>this.blockSize&&(y=(new this.Hash).update(y).digest()),A(y.length<=this.blockSize);for(var m=y.length;m{"use strict";var v=$(8291),A=$(1393),T=v.rotl32,_=v.sum32,y=v.sum32_3,m=v.sum32_4,f=A.BlockHash;function C(){if(!(this instanceof C))return new C;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function b(d,h,g,E){return d<=15?h^g^E:d<=31?h&g|~h&E:d<=47?(h|~g)^E:d<=63?h&E|g&~E:h^(g|~E)}function k(d){return d<=15?1352829926:d<=31?1548603684:d<=47?1836072691:d<=63?2053994217:0}v.inherits(C,f),Ae.ripemd160=C,C.blockSize=512,C.outSize=160,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(h,g){for(var E=this.h[0],P=this.h[1],U=this.h[2],X=this.h[3],te=this.h[4],z=E,W=P,Y=U,D=X,N=te,L=0;L<80;L++){var O=_(T(m(E,b(L,P,U,X),h[a[L]+g],(d=L)<=15?0:d<=31?1518500249:d<=47?1859775393:d<=63?2400959708:2840853838),i[L]),te);E=te,te=X,X=T(U,10),U=P,P=O,O=_(T(m(z,b(79-L,W,Y,D),h[r[L]+g],k(L)),c[L]),N),z=N,N=D,D=T(Y,10),Y=W,W=O}var d;O=y(this.h[1],U,D),this.h[1]=y(this.h[2],X,N),this.h[2]=y(this.h[3],te,z),this.h[3]=y(this.h[4],E,W),this.h[4]=y(this.h[0],P,Y),this.h[0]=O},C.prototype._digest=function(h){return"hex"===h?v.toHex32(this.h,"little"):v.split32(this.h,"little")};var a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],r=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],i=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},2221:(Ne,Ae,$)=>{"use strict";Ae.sha1=$(3605),Ae.sha224=$(9643),Ae.sha256=$(1193),Ae.sha384=$(3513),Ae.sha512=$(4958)},3605:(Ne,Ae,$)=>{"use strict";var v=$(8291),A=$(1393),T=$(8491),_=v.rotl32,y=v.sum32,m=v.sum32_5,f=T.ft_1,C=A.BlockHash,b=[1518500249,1859775393,2400959708,3395469782];function x(){if(!(this instanceof x))return new x;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}v.inherits(x,C),Ne.exports=x,x.blockSize=512,x.outSize=160,x.hmacStrength=80,x.padLength=64,x.prototype._update=function(a,r){for(var i=this.W,c=0;c<16;c++)i[c]=a[r+c];for(;c{"use strict";var v=$(8291),A=$(1193);function T(){if(!(this instanceof T))return new T;A.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}v.inherits(T,A),Ne.exports=T,T.blockSize=512,T.outSize=224,T.hmacStrength=192,T.padLength=64,T.prototype._digest=function(y){return"hex"===y?v.toHex32(this.h.slice(0,7),"big"):v.split32(this.h.slice(0,7),"big")}},1193:(Ne,Ae,$)=>{"use strict";var v=$(8291),A=$(1393),T=$(8491),_=$(6055),y=v.sum32,m=v.sum32_4,f=v.sum32_5,C=T.ch32,b=T.maj32,x=T.s0_256,k=T.s1_256,a=T.g0_256,r=T.g1_256,i=A.BlockHash,c=[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];function d(){if(!(this instanceof d))return new d;i.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=c,this.W=new Array(64)}v.inherits(d,i),Ne.exports=d,d.blockSize=512,d.outSize=256,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(g,E){for(var P=this.W,U=0;U<16;U++)P[U]=g[E+U];for(;U{"use strict";var v=$(8291),A=$(4958);function T(){if(!(this instanceof T))return new T;A.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}v.inherits(T,A),Ne.exports=T,T.blockSize=1024,T.outSize=384,T.hmacStrength=192,T.padLength=128,T.prototype._digest=function(y){return"hex"===y?v.toHex32(this.h.slice(0,12),"big"):v.split32(this.h.slice(0,12),"big")}},4958:(Ne,Ae,$)=>{"use strict";var v=$(8291),A=$(1393),T=$(6055),_=v.rotr64_hi,y=v.rotr64_lo,m=v.shr64_hi,f=v.shr64_lo,C=v.sum64,b=v.sum64_hi,x=v.sum64_lo,k=v.sum64_4_hi,a=v.sum64_4_lo,r=v.sum64_5_hi,i=v.sum64_5_lo,c=A.BlockHash,d=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=d,this.W=new Array(160)}function g(O,I,B,F,H){var G=O&B^~O&H;return G<0&&(G+=4294967296),G}function E(O,I,B,F,H,G){var R=I&F^~I&G;return R<0&&(R+=4294967296),R}function P(O,I,B,F,H){var G=O&B^O&H^B&H;return G<0&&(G+=4294967296),G}function U(O,I,B,F,H,G){var R=I&F^I&G^F&G;return R<0&&(R+=4294967296),R}function X(O,I){var G=_(O,I,28)^_(I,O,2)^_(I,O,7);return G<0&&(G+=4294967296),G}function te(O,I){var G=y(O,I,28)^y(I,O,2)^y(I,O,7);return G<0&&(G+=4294967296),G}function z(O,I){var G=_(O,I,14)^_(O,I,18)^_(I,O,9);return G<0&&(G+=4294967296),G}function W(O,I){var G=y(O,I,14)^y(O,I,18)^y(I,O,9);return G<0&&(G+=4294967296),G}function Y(O,I){var G=_(O,I,1)^_(O,I,8)^m(O,I,7);return G<0&&(G+=4294967296),G}function D(O,I){var G=y(O,I,1)^y(O,I,8)^f(O,I,7);return G<0&&(G+=4294967296),G}function N(O,I){var G=_(O,I,19)^_(I,O,29)^m(O,I,6);return G<0&&(G+=4294967296),G}function L(O,I){var G=y(O,I,19)^y(I,O,29)^f(O,I,6);return G<0&&(G+=4294967296),G}v.inherits(h,c),Ne.exports=h,h.blockSize=1024,h.outSize=512,h.hmacStrength=192,h.padLength=128,h.prototype._prepareBlock=function(I,B){for(var F=this.W,H=0;H<32;H++)F[H]=I[B+H];for(;H{"use strict";var A=$(8291).rotr32;function _(k,a,r){return k&a^~k&r}function y(k,a,r){return k&a^k&r^a&r}function m(k,a,r){return k^a^r}Ae.ft_1=function T(k,a,r,i){return 0===k?_(a,r,i):1===k||3===k?m(a,r,i):2===k?y(a,r,i):void 0},Ae.ch32=_,Ae.maj32=y,Ae.p32=m,Ae.s0_256=function f(k){return A(k,2)^A(k,13)^A(k,22)},Ae.s1_256=function C(k){return A(k,6)^A(k,11)^A(k,25)},Ae.g0_256=function b(k){return A(k,7)^A(k,18)^k>>>3},Ae.g1_256=function x(k){return A(k,17)^A(k,19)^k>>>10}},8291:(Ne,Ae,$)=>{"use strict";var v=$(6055),A=$(9879);function T(L,O){return!(55296!=(64512&L.charCodeAt(O))||O<0||O+1>=L.length)&&56320==(64512&L.charCodeAt(O+1))}function m(L){return(L>>>24|L>>>8&65280|L<<8&16711680|(255&L)<<24)>>>0}function C(L){return 1===L.length?"0"+L:L}function b(L){return 7===L.length?"0"+L:6===L.length?"00"+L:5===L.length?"000"+L:4===L.length?"0000"+L:3===L.length?"00000"+L:2===L.length?"000000"+L:1===L.length?"0000000"+L:L}Ae.inherits=A,Ae.toArray=function _(L,O){if(Array.isArray(L))return L.slice();if(!L)return[];var I=[];if("string"==typeof L)if(O){if("hex"===O)for((L=L.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(L="0"+L),F=0;F>6|192,I[B++]=63&H|128):T(L,F)?(H=65536+((1023&H)<<10)+(1023&L.charCodeAt(++F)),I[B++]=H>>18|240,I[B++]=H>>12&63|128,I[B++]=H>>6&63|128,I[B++]=63&H|128):(I[B++]=H>>12|224,I[B++]=H>>6&63|128,I[B++]=63&H|128)}else for(F=0;F>>0;return H},Ae.split32=function k(L,O){for(var I=new Array(4*L.length),B=0,F=0;B>>24,I[F+1]=H>>>16&255,I[F+2]=H>>>8&255,I[F+3]=255&H):(I[F+3]=H>>>24,I[F+2]=H>>>16&255,I[F+1]=H>>>8&255,I[F]=255&H)}return I},Ae.rotr32=function a(L,O){return L>>>O|L<<32-O},Ae.rotl32=function r(L,O){return L<>>32-O},Ae.sum32=function i(L,O){return L+O>>>0},Ae.sum32_3=function c(L,O,I){return L+O+I>>>0},Ae.sum32_4=function d(L,O,I,B){return L+O+I+B>>>0},Ae.sum32_5=function h(L,O,I,B,F){return L+O+I+B+F>>>0},Ae.sum64=function g(L,O,I,B){var G=B+L[O+1]>>>0;L[O]=(G>>0,L[O+1]=G},Ae.sum64_hi=function E(L,O,I,B){return(O+B>>>0>>0},Ae.sum64_lo=function P(L,O,I,B){return O+B>>>0},Ae.sum64_4_hi=function U(L,O,I,B,F,H,G,R){var Z=0,oe=O;return Z+=(oe=oe+B>>>0)>>0)>>0)>>0},Ae.sum64_4_lo=function X(L,O,I,B,F,H,G,R){return O+B+H+R>>>0},Ae.sum64_5_hi=function te(L,O,I,B,F,H,G,R,Z,oe){var j=0,de=O;return j+=(de=de+B>>>0)>>0)>>0)>>0)>>0},Ae.sum64_5_lo=function z(L,O,I,B,F,H,G,R,Z,oe){return O+B+H+R+oe>>>0},Ae.rotr64_hi=function W(L,O,I){return(O<<32-I|L>>>I)>>>0},Ae.rotr64_lo=function Y(L,O,I){return(L<<32-I|O>>>I)>>>0},Ae.shr64_hi=function D(L,O,I){return L>>>I},Ae.shr64_lo=function N(L,O,I){return(L<<32-I|O>>>I)>>>0}},2730:(Ne,Ae,$)=>{"use strict";var v=$(7909),A=$(4869),T=$(6055);function _(y){if(!(this instanceof _))return new _(y);this.hash=y.hash,this.predResist=!!y.predResist,this.outLen=this.hash.outSize,this.minEntropy=y.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var m=A.toArray(y.entropy,y.entropyEnc||"hex"),f=A.toArray(y.nonce,y.nonceEnc||"hex"),C=A.toArray(y.pers,y.persEnc||"hex");T(m.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(m,f,C)}Ne.exports=_,_.prototype._init=function(m,f,C){var b=m.concat(f).concat(C);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var x=0;x=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(m.concat(C||[])),this._reseed=1},_.prototype.generate=function(m,f,C,b){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof f&&(b=C,C=f,f=null),C&&(C=A.toArray(C,b||"hex"),this._update(C));for(var x=[];x.length{Ae.read=function($,v,A,T,_){var y,m,f=8*_-T-1,C=(1<>1,x=-7,k=A?_-1:0,a=A?-1:1,r=$[v+k];for(k+=a,y=r&(1<<-x)-1,r>>=-x,x+=f;x>0;y=256*y+$[v+k],k+=a,x-=8);for(m=y&(1<<-x)-1,y>>=-x,x+=T;x>0;m=256*m+$[v+k],k+=a,x-=8);if(0===y)y=1-b;else{if(y===C)return m?NaN:1/0*(r?-1:1);m+=Math.pow(2,T),y-=b}return(r?-1:1)*m*Math.pow(2,y-T)},Ae.write=function($,v,A,T,_,y){var m,f,C,b=8*y-_-1,x=(1<>1,a=23===_?Math.pow(2,-24)-Math.pow(2,-77):0,r=T?0:y-1,i=T?1:-1,c=v<0||0===v&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(f=isNaN(v)?1:0,m=x):(m=Math.floor(Math.log(v)/Math.LN2),v*(C=Math.pow(2,-m))<1&&(m--,C*=2),(v+=m+k>=1?a/C:a*Math.pow(2,1-k))*C>=2&&(m++,C/=2),m+k>=x?(f=0,m=x):m+k>=1?(f=(v*C-1)*Math.pow(2,_),m+=k):(f=v*Math.pow(2,k-1)*Math.pow(2,_),m=0));_>=8;$[A+r]=255&f,r+=i,f/=256,_-=8);for(m=m<<_|f,b+=_;b>0;$[A+r]=255&m,r+=i,m/=256,b-=8);$[A+r-i]|=128*c}},9879:Ne=>{Ne.exports="function"==typeof Object.create?function($,v){v&&($.super_=v,$.prototype=Object.create(v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}))}:function($,v){if(v){$.super_=v;var A=function(){};A.prototype=v.prototype,$.prototype=new A,$.prototype.constructor=$}}},9279:(Ne,Ae)=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.loop=Ae.conditional=Ae.parse=void 0,Ae.parse=function T(_,y){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m;if(Array.isArray(y))y.forEach(function(b){return T(_,b,m,f)});else if("function"==typeof y)y(_,m,f,T);else{var C=Object.keys(y)[0];Array.isArray(y[C])?(f[C]={},T(_,y[C],m,f[C])):f[C]=y[C](_,m,f,T)}return m},Ae.conditional=function(_,y){return function(m,f,C,b){y(m,f,C)&&b(m,_,f,C)}},Ae.loop=function(_,y){return function(m,f,C,b){for(var x=[],k=m.pos;y(m,f,C);){var a={};if(b(m,_,f,a),m.pos===k)break;k=m.pos,x.push(a)}return x}}},6226:(Ne,Ae)=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.readBits=Ae.readArray=Ae.readUnsigned=Ae.readString=Ae.peekBytes=Ae.readBytes=Ae.peekByte=Ae.readByte=Ae.buildStream=void 0,Ae.buildStream=function(k){return{data:k,pos:0}};Ae.readByte=function(){return function(k){return k.data[k.pos++]}},Ae.peekByte=function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(a){return a.data[a.pos+k]}};var T=function(k){return function(a){return a.data.subarray(a.pos,a.pos+=k)}};Ae.readBytes=T,Ae.peekBytes=function(k){return function(a){return a.data.subarray(a.pos,a.pos+k)}},Ae.readString=function(k){return function(a){return Array.from(T(k)(a)).map(function(r){return String.fromCharCode(r)}).join("")}},Ae.readUnsigned=function(k){return function(a){var r=T(2)(a);return k?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}},Ae.readArray=function(k,a){return function(r,i,c){for(var d="function"==typeof a?a(r,i,c):a,h=T(k),g=new Array(d),E=0;E{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var v=$(9279),A=$(6226),T={blocks:function(a){for(var i=[],c=a.data.length,d=0,h=(0,A.readByte)()(a);0!==h&&h;h=(0,A.readByte)()(a)){if(a.pos+h>=c){var g=c-a.pos;i.push((0,A.readBytes)(g)(a)),d+=g;break}i.push((0,A.readBytes)(h)(a)),d+=h}for(var E=new Uint8Array(d),P=0,U=0;U{var v;!function(){"use strict";var A="input is invalid type",_="object"==typeof window,y=_?window:{};y.JS_SHA3_NO_WINDOW&&(_=!1);var m=!_&&"object"==typeof self;!y.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?y=global:m&&(y=self);var C=!y.JS_SHA3_NO_COMMON_JS&&Ne.exports,b=$.amdO,x=!y.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",k="0123456789abcdef".split(""),r=[4,1024,262144,67108864],d=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],E=[128,256],P=["hex","buffer","arrayBuffer","array","digest"],U={128:168,256:136};(y.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(ne){return"[object Array]"===Object.prototype.toString.call(ne)}),x&&(y.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(ne){return"object"==typeof ne&&ne.buffer&&ne.buffer.constructor===ArrayBuffer});for(var X=function(ne,We,Pe){return function(we){return new de(ne,We,ne).update(we)[Pe]()}},te=function(ne,We,Pe){return function(we,Be){return new de(ne,We,Be).update(we)[Pe]()}},z=function(ne,We,Pe){return function(we,Be,K,Q){return B["cshake"+ne].update(we,Be,K,Q)[Pe]()}},W=function(ne,We,Pe){return function(we,Be,K,Q){return B["kmac"+ne].update(we,Be,K,Q)[Pe]()}},Y=function(ne,We,Pe,we){for(var Be=0;Be>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Pe>>5,this.extraBytes=(31&Pe)>>3;for(var we=0;we<50;++we)this.s[we]=0}function _e(ne,We,Pe){de.call(this,ne,We,Pe)}de.prototype.update=function(ne){if(this.finalized)throw new Error("finalize already called");var We,Pe=typeof ne;if("string"!==Pe){if("object"!==Pe)throw new Error(A);if(null===ne)throw new Error(A);if(x&&ne.constructor===ArrayBuffer)ne=new Uint8Array(ne);else if(!(Array.isArray(ne)||x&&ArrayBuffer.isView(ne)))throw new Error(A);We=!0}for(var ve,je,we=this.blocks,Be=this.byteCount,K=ne.length,Q=this.blockCount,ie=0,Ce=this.s;ie>2]|=ne[ie]<>2]|=je<>2]|=(192|je>>6)<>2]|=(128|63&je)<=57344?(we[ve>>2]|=(224|je>>12)<>2]|=(128|je>>6&63)<>2]|=(128|63&je)<>2]|=(240|je>>18)<>2]|=(128|je>>12&63)<>2]|=(128|je>>6&63)<>2]|=(128|63&je)<=Be){for(this.start=ve-Be,this.block=we[Q],ve=0;ve>=8);Pe>0;)Be.unshift(Pe),Pe=255&(ne>>=8),++we;return We?Be.push(we):Be.unshift(we),this.update(Be),Be.length},de.prototype.encodeString=function(ne){var We,Pe=typeof ne;if("string"!==Pe){if("object"!==Pe)throw new Error(A);if(null===ne)throw new Error(A);if(x&&ne.constructor===ArrayBuffer)ne=new Uint8Array(ne);else if(!(Array.isArray(ne)||x&&ArrayBuffer.isView(ne)))throw new Error(A);We=!0}var we=0;if(We)we=ne.length;else for(var K=0;K=57344?we+=3:(Q=65536+((1023&Q)<<10|1023&ne.charCodeAt(++K)),we+=4)}return we+=this.encode(8*we),this.update(ne),we},de.prototype.bytepad=function(ne,We){for(var Pe=this.encode(We),we=0;we>2]|=this.padding[3&We],this.lastByteIndex===this.byteCount)for(ne[0]=ne[Pe],We=1;We>4&15]+k[15&ie]+k[ie>>12&15]+k[ie>>8&15]+k[ie>>20&15]+k[ie>>16&15]+k[ie>>28&15]+k[ie>>24&15];K%ne==0&&(st(We),Be=0)}return we&&(Q+=k[(ie=We[Be])>>4&15]+k[15&ie],we>1&&(Q+=k[ie>>12&15]+k[ie>>8&15]),we>2&&(Q+=k[ie>>20&15]+k[ie>>16&15])),Q},de.prototype.buffer=de.prototype.arrayBuffer=function(){this.finalize();var ie,ne=this.blockCount,We=this.s,Pe=this.outputBlocks,we=this.extraBytes,Be=0,K=0,Q=this.outputBits>>3;ie=we?new ArrayBuffer(Pe+1<<2):new ArrayBuffer(Q);for(var Ce=new Uint32Array(ie);K>8&255,Q[ie+2]=Ce>>16&255,Q[ie+3]=Ce>>24&255;K%ne==0&&st(We)}return we&&(Q[ie=K<<2]=255&(Ce=We[Be]),we>1&&(Q[ie+1]=Ce>>8&255),we>2&&(Q[ie+2]=Ce>>16&255)),Q},(_e.prototype=new de).finalize=function(){return this.encode(this.outputBits,!0),de.prototype.finalize.call(this)};var st=function(ne){var We,Pe,we,Be,K,Q,ie,Ce,ve,je,Me,tt,It,bt,Ye,Et,xt,Pt,Qt,Wt,fe,ee,re,Ie,He,Ke,ot,un,Ht,Ut,Bn,Rt,zt,Dn,fn,jt,Tr,yn,Nt,Kt,Xt,an,hr,Ft,$e,ae,le,ue,q,be,Ge,nt,et,ft,rn,St,dn,Zt,vn,bn,En,Tn,In;for(we=0;we<48;we+=2)Be=ne[0]^ne[10]^ne[20]^ne[30]^ne[40],K=ne[1]^ne[11]^ne[21]^ne[31]^ne[41],Ce=ne[4]^ne[14]^ne[24]^ne[34]^ne[44],ve=ne[5]^ne[15]^ne[25]^ne[35]^ne[45],je=ne[6]^ne[16]^ne[26]^ne[36]^ne[46],Me=ne[7]^ne[17]^ne[27]^ne[37]^ne[47],Pe=(It=ne[9]^ne[19]^ne[29]^ne[39]^ne[49])^((ie=ne[3]^ne[13]^ne[23]^ne[33]^ne[43])<<1|(Q=ne[2]^ne[12]^ne[22]^ne[32]^ne[42])>>>31),ne[0]^=We=(tt=ne[8]^ne[18]^ne[28]^ne[38]^ne[48])^(Q<<1|ie>>>31),ne[1]^=Pe,ne[10]^=We,ne[11]^=Pe,ne[20]^=We,ne[21]^=Pe,ne[30]^=We,ne[31]^=Pe,ne[40]^=We,ne[41]^=Pe,Pe=K^(ve<<1|Ce>>>31),ne[2]^=We=Be^(Ce<<1|ve>>>31),ne[3]^=Pe,ne[12]^=We,ne[13]^=Pe,ne[22]^=We,ne[23]^=Pe,ne[32]^=We,ne[33]^=Pe,ne[42]^=We,ne[43]^=Pe,Pe=ie^(Me<<1|je>>>31),ne[4]^=We=Q^(je<<1|Me>>>31),ne[5]^=Pe,ne[14]^=We,ne[15]^=Pe,ne[24]^=We,ne[25]^=Pe,ne[34]^=We,ne[35]^=Pe,ne[44]^=We,ne[45]^=Pe,Pe=ve^(It<<1|tt>>>31),ne[6]^=We=Ce^(tt<<1|It>>>31),ne[7]^=Pe,ne[16]^=We,ne[17]^=Pe,ne[26]^=We,ne[27]^=Pe,ne[36]^=We,ne[37]^=Pe,ne[46]^=We,ne[47]^=Pe,Pe=Me^(K<<1|Be>>>31),ne[8]^=We=je^(Be<<1|K>>>31),ne[9]^=Pe,ne[18]^=We,ne[19]^=Pe,ne[28]^=We,ne[29]^=Pe,ne[38]^=We,ne[39]^=Pe,ne[48]^=We,ne[49]^=Pe,Ye=ne[1],ae=ne[11]<<4|ne[10]>>>28,le=ne[10]<<4|ne[11]>>>28,un=ne[20]<<3|ne[21]>>>29,Ht=ne[21]<<3|ne[20]>>>29,bn=ne[31]<<9|ne[30]>>>23,En=ne[30]<<9|ne[31]>>>23,an=ne[40]<<18|ne[41]>>>14,hr=ne[41]<<18|ne[40]>>>14,Dn=ne[2]<<1|ne[3]>>>31,fn=ne[3]<<1|ne[2]>>>31,xt=ne[12]<<12|ne[13]>>>20,ue=ne[22]<<10|ne[23]>>>22,q=ne[23]<<10|ne[22]>>>22,Ut=ne[33]<<13|ne[32]>>>19,Bn=ne[32]<<13|ne[33]>>>19,Tn=ne[42]<<2|ne[43]>>>30,In=ne[43]<<2|ne[42]>>>30,ft=ne[5]<<30|ne[4]>>>2,rn=ne[4]<<30|ne[5]>>>2,jt=ne[14]<<6|ne[15]>>>26,Tr=ne[15]<<6|ne[14]>>>26,Qt=ne[24]<<11|ne[25]>>>21,be=ne[34]<<15|ne[35]>>>17,Ge=ne[35]<<15|ne[34]>>>17,Rt=ne[45]<<29|ne[44]>>>3,zt=ne[44]<<29|ne[45]>>>3,Ie=ne[6]<<28|ne[7]>>>4,He=ne[7]<<28|ne[6]>>>4,St=ne[17]<<23|ne[16]>>>9,dn=ne[16]<<23|ne[17]>>>9,yn=ne[26]<<25|ne[27]>>>7,Nt=ne[27]<<25|ne[26]>>>7,Wt=ne[36]<<21|ne[37]>>>11,fe=ne[37]<<21|ne[36]>>>11,nt=ne[47]<<24|ne[46]>>>8,et=ne[46]<<24|ne[47]>>>8,Ft=ne[8]<<27|ne[9]>>>5,$e=ne[9]<<27|ne[8]>>>5,Ke=ne[18]<<20|ne[19]>>>12,ot=ne[19]<<20|ne[18]>>>12,Zt=ne[29]<<7|ne[28]>>>25,vn=ne[28]<<7|ne[29]>>>25,Kt=ne[38]<<8|ne[39]>>>24,Xt=ne[39]<<8|ne[38]>>>24,ee=ne[48]<<14|ne[49]>>>18,re=ne[49]<<14|ne[48]>>>18,ne[0]=(bt=ne[0])^~(Et=ne[13]<<12|ne[12]>>>20)&(Pt=ne[25]<<11|ne[24]>>>21),ne[1]=Ye^~xt&Qt,ne[10]=Ie^~Ke&un,ne[11]=He^~ot&Ht,ne[20]=Dn^~jt&yn,ne[21]=fn^~Tr&Nt,ne[30]=Ft^~ae&ue,ne[31]=$e^~le&q,ne[40]=ft^~St&Zt,ne[41]=rn^~dn&vn,ne[2]=Et^~Pt&Wt,ne[3]=xt^~Qt&fe,ne[12]=Ke^~un&Ut,ne[13]=ot^~Ht&Bn,ne[22]=jt^~yn&Kt,ne[23]=Tr^~Nt&Xt,ne[32]=ae^~ue&be,ne[33]=le^~q&Ge,ne[42]=St^~Zt&bn,ne[43]=dn^~vn&En,ne[4]=Pt^~Wt&ee,ne[5]=Qt^~fe&re,ne[14]=un^~Ut&Rt,ne[15]=Ht^~Bn&zt,ne[24]=yn^~Kt&an,ne[25]=Nt^~Xt&hr,ne[34]=ue^~be&nt,ne[35]=q^~Ge&et,ne[44]=Zt^~bn&Tn,ne[45]=vn^~En&In,ne[6]=Wt^~ee&bt,ne[7]=fe^~re&Ye,ne[16]=Ut^~Rt&Ie,ne[17]=Bn^~zt&He,ne[26]=Kt^~an&Dn,ne[27]=Xt^~hr&fn,ne[36]=be^~nt&Ft,ne[37]=Ge^~et&$e,ne[46]=bn^~Tn&ft,ne[47]=En^~In&rn,ne[8]=ee^~bt&Et,ne[9]=re^~Ye&xt,ne[18]=Rt^~Ie&Ke,ne[19]=zt^~He&ot,ne[28]=an^~Dn&jt,ne[29]=hr^~fn&Tr,ne[38]=nt^~Ft&ae,ne[39]=et^~$e&le,ne[48]=Tn^~ft&St,ne[49]=In^~rn&dn,ne[0]^=h[we],ne[1]^=h[we+1]};if(C)Ne.exports=B;else{for(H=0;H{Ne.exports=$;var Ae=null;try{Ae=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function $(W,Y,D){this.low=0|W,this.high=0|Y,this.unsigned=!!D}function v(W){return!0===(W&&W.__isLong__)}Object.defineProperty($.prototype,"__isLong__",{value:!0}),$.isLong=v;var A={},T={};function _(W,Y){var D,N,L;return Y?(L=0<=(W>>>=0)&&W<256)&&(N=T[W])?N:(D=m(W,(0|W)<0?-1:0,!0),L&&(T[W]=D),D):(L=-128<=(W|=0)&&W<128)&&(N=A[W])?N:(D=m(W,W<0?-1:0,!1),L&&(A[W]=D),D)}function y(W,Y){if(isNaN(W))return Y?h:d;if(Y){if(W<0)return h;if(W>=r)return X}else{if(W<=-i)return te;if(W+1>=i)return U}return W<0?y(-W,Y).neg():m(W%a|0,W/a|0,Y)}function m(W,Y,D){return new $(W,Y,D)}$.fromInt=_,$.fromNumber=y,$.fromBits=m;var f=Math.pow;function C(W,Y,D){if(0===W.length)throw Error("empty string");if("NaN"===W||"Infinity"===W||"+Infinity"===W||"-Infinity"===W)return d;if("number"==typeof Y?(D=Y,Y=!1):Y=!!Y,(D=D||10)<2||360)throw Error("interior hyphen");if(0===N)return C(W.substring(1),Y,D).neg();for(var L=y(f(D,8)),O=d,I=0;I>>0:this.low},z.toNumber=function(){return this.unsigned?(this.high>>>0)*a+(this.low>>>0):this.high*a+(this.low>>>0)},z.toString=function(Y){if((Y=Y||10)<2||36>>0).toString(Y);if((I=F).isZero())return G+B;for(;G.length<6;)G="0"+G;B=""+G+B}},z.getHighBits=function(){return this.high},z.getHighBitsUnsigned=function(){return this.high>>>0},z.getLowBits=function(){return this.low},z.getLowBitsUnsigned=function(){return this.low>>>0},z.getNumBitsAbs=function(){if(this.isNegative())return this.eq(te)?64:this.neg().getNumBitsAbs();for(var Y=0!=this.high?this.high:this.low,D=31;D>0&&!(Y&1<=0},z.isOdd=function(){return 1==(1&this.low)},z.isEven=function(){return 0==(1&this.low)},z.equals=function(Y){return v(Y)||(Y=b(Y)),(this.unsigned===Y.unsigned||this.high>>>31!=1||Y.high>>>31!=1)&&this.high===Y.high&&this.low===Y.low},z.eq=z.equals,z.notEquals=function(Y){return!this.eq(Y)},z.neq=z.notEquals,z.ne=z.notEquals,z.lessThan=function(Y){return this.comp(Y)<0},z.lt=z.lessThan,z.lessThanOrEqual=function(Y){return this.comp(Y)<=0},z.lte=z.lessThanOrEqual,z.le=z.lessThanOrEqual,z.greaterThan=function(Y){return this.comp(Y)>0},z.gt=z.greaterThan,z.greaterThanOrEqual=function(Y){return this.comp(Y)>=0},z.gte=z.greaterThanOrEqual,z.ge=z.greaterThanOrEqual,z.compare=function(Y){if(v(Y)||(Y=b(Y)),this.eq(Y))return 0;var D=this.isNegative(),N=Y.isNegative();return D&&!N?-1:!D&&N?1:this.unsigned?Y.high>>>0>this.high>>>0||Y.high===this.high&&Y.low>>>0>this.low>>>0?-1:1:this.sub(Y).isNegative()?-1:1},z.comp=z.compare,z.negate=function(){return!this.unsigned&&this.eq(te)?te:this.not().add(g)},z.neg=z.negate,z.add=function(Y){v(Y)||(Y=b(Y));var G=0,R=0,Z=0,oe=0;return Z+=(oe+=(65535&this.low)+(65535&Y.low))>>>16,R+=(Z+=(this.low>>>16)+(Y.low>>>16))>>>16,G+=(R+=(65535&this.high)+(65535&Y.high))>>>16,G+=(this.high>>>16)+(Y.high>>>16),m((Z&=65535)<<16|(oe&=65535),(G&=65535)<<16|(R&=65535),this.unsigned)},z.subtract=function(Y){return v(Y)||(Y=b(Y)),this.add(Y.neg())},z.sub=z.subtract,z.multiply=function(Y){if(this.isZero())return d;if(v(Y)||(Y=b(Y)),Ae)return m(Ae.mul(this.low,this.high,Y.low,Y.high),Ae.get_high(),this.unsigned);if(Y.isZero())return d;if(this.eq(te))return Y.isOdd()?te:d;if(Y.eq(te))return this.isOdd()?te:d;if(this.isNegative())return Y.isNegative()?this.neg().mul(Y.neg()):this.neg().mul(Y).neg();if(Y.isNegative())return this.mul(Y.neg()).neg();if(this.lt(c)&&Y.lt(c))return y(this.toNumber()*Y.toNumber(),this.unsigned);var L=65535&this.high,O=this.low>>>16,I=65535&this.low,F=65535&Y.high,H=Y.low>>>16,G=65535&Y.low,R=0,Z=0,oe=0,j=0;return oe+=(j+=I*G)>>>16,Z+=(oe+=O*G)>>>16,oe&=65535,Z+=(oe+=I*H)>>>16,R+=(Z+=L*G)>>>16,Z&=65535,R+=(Z+=O*H)>>>16,Z&=65535,R+=(Z+=I*F)>>>16,R+=(this.high>>>16)*G+L*H+O*F+I*(Y.high>>>16),m((oe&=65535)<<16|(j&=65535),(R&=65535)<<16|(Z&=65535),this.unsigned)},z.mul=z.multiply,z.divide=function(Y){if(v(Y)||(Y=b(Y)),Y.isZero())throw Error("division by zero");var N,L,O;if(Ae)return this.unsigned||-2147483648!==this.high||-1!==Y.low||-1!==Y.high?m((this.unsigned?Ae.div_u:Ae.div_s)(this.low,this.high,Y.low,Y.high),Ae.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?h:d;if(this.unsigned){if(Y.unsigned||(Y=Y.toUnsigned()),Y.gt(this))return h;if(Y.gt(this.shru(1)))return E;O=h}else{if(this.eq(te))return Y.eq(g)||Y.eq(P)?te:Y.eq(te)?g:(N=this.shr(1).div(Y).shl(1)).eq(d)?Y.isNegative()?g:P:(L=this.sub(Y.mul(N)),O=N.add(L.div(Y)));if(Y.eq(te))return this.unsigned?h:d;if(this.isNegative())return Y.isNegative()?this.neg().div(Y.neg()):this.neg().div(Y).neg();if(Y.isNegative())return this.div(Y.neg()).neg();O=d}for(L=this;L.gte(Y);){N=Math.max(1,Math.floor(L.toNumber()/Y.toNumber()));for(var B=Math.ceil(Math.log(N)/Math.LN2),F=B<=48?1:f(2,B-48),H=y(N),G=H.mul(Y);G.isNegative()||G.gt(L);)G=(H=y(N-=F,this.unsigned)).mul(Y);H.isZero()&&(H=g),O=O.add(H),L=L.sub(G)}return O},z.div=z.divide,z.modulo=function(Y){return v(Y)||(Y=b(Y)),Ae?m((this.unsigned?Ae.rem_u:Ae.rem_s)(this.low,this.high,Y.low,Y.high),Ae.get_high(),this.unsigned):this.sub(this.div(Y).mul(Y))},z.mod=z.modulo,z.rem=z.modulo,z.not=function(){return m(~this.low,~this.high,this.unsigned)},z.and=function(Y){return v(Y)||(Y=b(Y)),m(this.low&Y.low,this.high&Y.high,this.unsigned)},z.or=function(Y){return v(Y)||(Y=b(Y)),m(this.low|Y.low,this.high|Y.high,this.unsigned)},z.xor=function(Y){return v(Y)||(Y=b(Y)),m(this.low^Y.low,this.high^Y.high,this.unsigned)},z.shiftLeft=function(Y){return v(Y)&&(Y=Y.toInt()),0==(Y&=63)?this:Y<32?m(this.low<>>32-Y,this.unsigned):m(0,this.low<>>Y|this.high<<32-Y,this.high>>Y,this.unsigned):m(this.high>>Y-32,this.high>=0?0:-1,this.unsigned)},z.shr=z.shiftRight,z.shiftRightUnsigned=function(Y){if(v(Y)&&(Y=Y.toInt()),0==(Y&=63))return this;var D=this.high;return Y<32?m(this.low>>>Y|D<<32-Y,D>>>Y,this.unsigned):m(32===Y?D:D>>>Y-32,0,this.unsigned)},z.shru=z.shiftRightUnsigned,z.shr_u=z.shiftRightUnsigned,z.toSigned=function(){return this.unsigned?m(this.low,this.high,!1):this},z.toUnsigned=function(){return this.unsigned?this:m(this.low,this.high,!0)},z.toBytes=function(Y){return Y?this.toBytesLE():this.toBytesBE()},z.toBytesLE=function(){var Y=this.high,D=this.low;return[255&D,D>>>8&255,D>>>16&255,D>>>24,255&Y,Y>>>8&255,Y>>>16&255,Y>>>24]},z.toBytesBE=function(){var Y=this.high,D=this.low;return[Y>>>24,Y>>>16&255,Y>>>8&255,255&Y,D>>>24,D>>>16&255,D>>>8&255,255&D]},$.fromBytes=function(Y,D,N){return N?$.fromBytesLE(Y,D):$.fromBytesBE(Y,D)},$.fromBytesLE=function(Y,D){return new $(Y[0]|Y[1]<<8|Y[2]<<16|Y[3]<<24,Y[4]|Y[5]<<8|Y[6]<<16|Y[7]<<24,D)},$.fromBytesBE=function(Y,D){return new $(Y[4]<<24|Y[5]<<16|Y[6]<<8|Y[7],Y[0]<<24|Y[1]<<16|Y[2]<<8|Y[3],D)}},6055:Ne=>{function Ae($,v){if(!$)throw new Error(v||"Assertion failed")}Ne.exports=Ae,Ae.equal=function(v,A,T){if(v!=A)throw new Error(T||"Assertion failed: "+v+" != "+A)}},4869:(Ne,Ae)=>{"use strict";var $=Ae;function A(_){return 1===_.length?"0"+_:_}function T(_){for(var y="",m=0;m<_.length;m++)y+=A(_[m].toString(16));return y}$.toArray=function v(_,y){if(Array.isArray(_))return _.slice();if(!_)return[];var m=[];if("string"!=typeof _){for(var f=0;f<_.length;f++)m[f]=0|_[f];return m}if("hex"===y)for((_=_.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(_="0"+_),f=0;f<_.length;f+=2)m.push(parseInt(_[f]+_[f+1],16));else for(f=0;f<_.length;f++){var C=_.charCodeAt(f),b=C>>8,x=255&C;b?m.push(b,x):m.push(x)}return m},$.zero2=A,$.toHex=T,$.encode=function(y,m){return"hex"===m?T(y):y}},4210:(Ne,Ae,$)=>{var v=$(3247);function A(i,c){v.cipher.registerAlgorithm(i,function(){return new v.aes.Algorithm(i,c)})}$(82),$(8531),$(2683),Ne.exports=v.aes=v.aes||{},v.aes.startEncrypting=function(i,c,d,h){var g=r({key:i,output:d,decrypt:!1,mode:h});return g.start(c),g},v.aes.createEncryptionCipher=function(i,c){return r({key:i,output:null,decrypt:!1,mode:c})},v.aes.startDecrypting=function(i,c,d,h){var g=r({key:i,output:d,decrypt:!0,mode:h});return g.start(c),g},v.aes.createDecryptionCipher=function(i,c){return r({key:i,output:null,decrypt:!0,mode:c})},v.aes.Algorithm=function(i,c){T||x();var d=this;d.name=i,d.mode=new c({blockSize:16,cipher:{encrypt:function(h,g){return a(d._w,h,g,!1)},decrypt:function(h,g){return a(d._w,h,g,!0)}}}),d._init=!1},v.aes.Algorithm.prototype.initialize=function(i){if(!this._init){var d,c=i.key;if("string"!=typeof c||16!==c.length&&24!==c.length&&32!==c.length){if(v.util.isArray(c)&&(16===c.length||24===c.length||32===c.length)){d=c,c=v.util.createBuffer();for(var h=0;h>>=2,h=0;h>8^255&U^99,m[U]=d,te=(X=i[U])<<24^U<<16^U<<8^U^X,z=((g=i[d])^(E=i[g])^(P=i[E]))<<24^(d^P)<<16^(d^E^P)<<8^d^g^P;for(var W=0;W<4;++W)C[W][d]=te,b[W][U]=z,te=te<<24|te>>>8,z=z<<24|z>>>8;0===d?d=h=1:(d=g^i[i[i[g^P]]],h^=i[i[h]])}}function k(i,c){for(var h,d=i.slice(0),g=1,E=d.length,U=_*(E+6+1),X=E;X>>16&255]<<24^y[h>>>8&255]<<16^y[255&h]<<8^y[h>>>24]^f[g]<<24,g++):E>6&&X%E==4&&(h=y[h>>>24]<<24^y[h>>>16&255]<<16^y[h>>>8&255]<<8^y[255&h]),d[X]=d[X-E]^h;if(c){for(var te,z=b[0],W=b[1],Y=b[2],D=b[3],N=d.slice(0),L=(X=0,(U=d.length)-_);X>>24]]^W[y[te>>>16&255]]^Y[y[te>>>8&255]]^D[y[255&te]];d=N}return d}function a(i,c,d,h){var E,P,U,X,te,z,W,Y,D,N,L,O,g=i.length/4-1;h?(E=b[0],P=b[1],U=b[2],X=b[3],te=m):(E=C[0],P=C[1],U=C[2],X=C[3],te=y),z=c[0]^i[0],W=c[h?3:1]^i[1],Y=c[2]^i[2],D=c[h?1:3]^i[3];for(var I=3,B=1;B>>24]^P[W>>>16&255]^U[Y>>>8&255]^X[255&D]^i[++I],L=E[W>>>24]^P[Y>>>16&255]^U[D>>>8&255]^X[255&z]^i[++I],O=E[Y>>>24]^P[D>>>16&255]^U[z>>>8&255]^X[255&W]^i[++I],D=E[D>>>24]^P[z>>>16&255]^U[W>>>8&255]^X[255&Y]^i[++I],z=N,W=L,Y=O;d[0]=te[z>>>24]<<24^te[W>>>16&255]<<16^te[Y>>>8&255]<<8^te[255&D]^i[++I],d[h?3:1]=te[W>>>24]<<24^te[Y>>>16&255]<<16^te[D>>>8&255]<<8^te[255&z]^i[++I],d[2]=te[Y>>>24]<<24^te[D>>>16&255]<<16^te[z>>>8&255]<<8^te[255&W]^i[++I],d[h?1:3]=te[D>>>24]<<24^te[z>>>16&255]<<16^te[W>>>8&255]<<8^te[255&Y]^i[++I]}function r(i){var h,d="AES-"+((i=i||{}).mode||"CBC").toUpperCase(),g=(h=i.decrypt?v.cipher.createDecipher(d,i.key):v.cipher.createCipher(d,i.key)).start;return h.start=function(E,P){var U=null;P instanceof v.util.ByteBuffer&&(U=P,P={}),(P=P||{}).output=U,P.iv=E,g.call(h,P)},h}},5145:(Ne,Ae,$)=>{var v=$(3247);$(4210),$(1326);var A=Ne.exports=v.tls;function T(b,x,k){var a=x.entity===v.tls.ConnectionEnd.client;b.read.cipherState={init:!1,cipher:v.cipher.createDecipher("AES-CBC",a?k.keys.server_write_key:k.keys.client_write_key),iv:a?k.keys.server_write_IV:k.keys.client_write_IV},b.write.cipherState={init:!1,cipher:v.cipher.createCipher("AES-CBC",a?k.keys.client_write_key:k.keys.server_write_key),iv:a?k.keys.client_write_IV:k.keys.server_write_IV},b.read.cipherFunction=f,b.write.cipherFunction=_,b.read.macLength=b.write.macLength=k.mac_length,b.read.macFunction=b.write.macFunction=A.hmac_sha1}function _(b,x){var r,k=!1,a=x.macFunction(x.macKey,x.sequenceNumber,b);b.fragment.putBytes(a),x.updateSequenceNumber(),r=b.version.minor===A.Versions.TLS_1_0.minor?x.cipherState.init?null:x.cipherState.iv:v.random.getBytesSync(16),x.cipherState.init=!0;var i=x.cipherState.cipher;return i.start({iv:r}),b.version.minor>=A.Versions.TLS_1_1.minor&&i.output.putBytes(r),i.update(b.fragment),i.finish(y)&&(b.fragment=i.output,b.length=b.fragment.length(),k=!0),k}function y(b,x,k){if(!k){var a=b-x.length()%b;x.fillWithByte(a-1,a)}return!0}function m(b,x,k){var a=!0;if(k){for(var r=x.length(),i=x.last(),c=r-1-i;c=i?(b.fragment=r.output.getBytes(d-i),c=r.output.getBytes(i)):b.fragment=r.output.getBytes(),b.fragment=v.util.createBuffer(b.fragment),b.length=b.fragment.length();var h=x.macFunction(x.macKey,x.sequenceNumber,b);return x.updateSequenceNumber(),k=function C(b,x,k){var a=v.hmac.create();return a.start("SHA1",b),a.update(x),x=a.digest().getBytes(),a.start(null,null),a.update(k),x===(k=a.digest().getBytes())}(x.macKey,c,h)&&k,k}A.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(b){b.bulk_cipher_algorithm=A.BulkCipherAlgorithm.aes,b.cipher_type=A.CipherType.block,b.enc_key_length=16,b.block_length=16,b.fixed_iv_length=16,b.record_iv_length=16,b.mac_algorithm=A.MACAlgorithm.hmac_sha1,b.mac_length=20,b.mac_key_length=20},initConnectionState:T},A.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(b){b.bulk_cipher_algorithm=A.BulkCipherAlgorithm.aes,b.cipher_type=A.CipherType.block,b.enc_key_length=32,b.block_length=16,b.fixed_iv_length=16,b.record_iv_length=16,b.mac_algorithm=A.MACAlgorithm.hmac_sha1,b.mac_length=20,b.mac_key_length=20},initConnectionState:T}},663:(Ne,Ae,$)=>{var v=$(3247);$(4960);var A=v.asn1;Ae.privateKeyValidator={name:"PrivateKeyInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Ae.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}},4960:(Ne,Ae,$)=>{var v=$(3247);$(2683),$(286);var A=Ne.exports=v.asn1=v.asn1||{};function T(f,C,b){if(b>C){var x=new Error("Too few bytes to parse DER.");throw x.available=f.length(),x.remaining=C,x.requested=b,x}}A.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},A.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},A.create=function(f,C,b,x,k){if(v.util.isArray(x)){for(var a=[],r=0;rC){if(x.strict){var d=new Error("Too few bytes to read ASN.1 value.");throw d.available=f.length(),d.remaining=C,d.requested=c,d}c=C}var h,g,E=32==(32&a);if(E)if(h=[],void 0===c)for(;;){if(T(f,C,2),f.bytes(2)===String.fromCharCode(0,0)){f.getBytes(2),C-=2;break}k=f.length(),h.push(y(f,C,b+1,x)),C-=k-f.length()}else for(;c>0;)k=f.length(),h.push(y(f,c,b+1,x)),C-=k-f.length(),c-=k-f.length();if(void 0===h&&r===A.Class.UNIVERSAL&&i===A.Type.BITSTRING&&(g=f.bytes(c)),void 0===h&&x.decodeBitStrings&&r===A.Class.UNIVERSAL&&i===A.Type.BITSTRING&&c>1){var P=f.read,U=C,X=0;if(i===A.Type.BITSTRING&&(T(f,C,1),X=f.getByte(),C--),0===X)try{k=f.length();var z=y(f,C,b+1,{strict:!0,decodeBitStrings:!0}),W=k-f.length();C-=W,i==A.Type.BITSTRING&&W++;var Y=z.tagClass;W===c&&(Y===A.Class.UNIVERSAL||Y===A.Class.CONTEXT_SPECIFIC)&&(h=[z])}catch{}void 0===h&&(f.read=P,C=U)}if(void 0===h){if(void 0===c){if(x.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=C}if(i===A.Type.BMPSTRING)for(h="";c>0;c-=2)T(f,C,2),h+=String.fromCharCode(f.getInt16()),C-=2;else h=f.getBytes(c),C-=c}return A.create(r,i,E,h,void 0===g?null:{bitStringContents:g})}A.fromDer=function(f,C){void 0===C&&(C={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),"boolean"==typeof C&&(C={strict:C,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in C||(C.strict=!0),"parseAllBytes"in C||(C.parseAllBytes=!0),"decodeBitStrings"in C||(C.decodeBitStrings=!0),"string"==typeof f&&(f=v.util.createBuffer(f));var b=f.length(),x=y(f,f.length(),0,C);if(C.parseAllBytes&&0!==f.length()){var k=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw k.byteCount=b,k.remaining=f.length(),k}return x},A.toDer=function(f){var C=v.util.createBuffer(),b=f.tagClass|f.type,x=v.util.createBuffer(),k=!1;if("bitStringContents"in f&&(k=!0,f.original&&(k=A.equals(f,f.original))),k)x.putBytes(f.bitStringContents);else if(f.composed){f.constructed?b|=32:x.putByte(0);for(var a=0;a1&&(0===f.value.charCodeAt(0)&&!(128&f.value.charCodeAt(1))||255===f.value.charCodeAt(0)&&128==(128&f.value.charCodeAt(1)))?x.putBytes(f.value.substr(1)):x.putBytes(f.value);if(C.putByte(b),x.length()<=127)C.putByte(127&x.length());else{var r=x.length(),i="";do{i+=String.fromCharCode(255&r),r>>>=8}while(r>0);for(C.putByte(128|i.length),a=i.length-1;a>=0;--a)C.putByte(i.charCodeAt(a))}return C.putBuffer(x),C},A.oidToDer=function(f){var C=f.split("."),b=v.util.createBuffer();b.putByte(40*parseInt(C[0],10)+parseInt(C[1],10));for(var x,k,a,r,i=2;i>>=7,x||(r|=128),k.push(r),x=!1}while(a>0);for(var c=k.length-1;c>=0;--c)b.putByte(k[c])}return b},A.derToOid=function(f){var C;"string"==typeof f&&(f=v.util.createBuffer(f));var b=f.getByte();C=Math.floor(b/40)+"."+b%40;for(var x=0;f.length()>0;)x<<=7,128&(b=f.getByte())?x+=127&b:(C+="."+(x+b),x=0);return C},A.utcTimeToDate=function(f){var C=new Date,b=parseInt(f.substr(0,2),10);b=b>=50?1900+b:2e3+b;var x=parseInt(f.substr(2,2),10)-1,k=parseInt(f.substr(4,2),10),a=parseInt(f.substr(6,2),10),r=parseInt(f.substr(8,2),10),i=0;if(f.length>11){var c=f.charAt(10),d=10;"+"!==c&&"-"!==c&&(i=parseInt(f.substr(10,2),10),d+=2)}if(C.setUTCFullYear(b,x,k),C.setUTCHours(a,r,i,0),d&&("+"===(c=f.charAt(d))||"-"===c)){var E=60*parseInt(f.substr(d+1,2),10)+parseInt(f.substr(d+4,2),10);E*=6e4,C.setTime("+"===c?+C-E:+C+E)}return C},A.generalizedTimeToDate=function(f){var C=new Date,b=parseInt(f.substr(0,4),10),x=parseInt(f.substr(4,2),10)-1,k=parseInt(f.substr(6,2),10),a=parseInt(f.substr(8,2),10),r=parseInt(f.substr(10,2),10),i=parseInt(f.substr(12,2),10),c=0,d=0,h=!1;"Z"===f.charAt(f.length-1)&&(h=!0);var g=f.length-5,E=f.charAt(g);return"+"!==E&&"-"!==E||(d=60*parseInt(f.substr(g+1,2),10)+parseInt(f.substr(g+4,2),10),d*=6e4,"+"===E&&(d*=-1),h=!0),"."===f.charAt(14)&&(c=1e3*parseFloat(f.substr(14),10)),h?(C.setUTCFullYear(b,x,k),C.setUTCHours(a,r,i,c),C.setTime(+C+d)):(C.setFullYear(b,x,k),C.setHours(a,r,i,c)),C},A.dateToUtcTime=function(f){if("string"==typeof f)return f;var C="",b=[];b.push((""+f.getUTCFullYear()).substr(2)),b.push(""+(f.getUTCMonth()+1)),b.push(""+f.getUTCDate()),b.push(""+f.getUTCHours()),b.push(""+f.getUTCMinutes()),b.push(""+f.getUTCSeconds());for(var x=0;x=-128&&f<128)return C.putSignedInt(f,8);if(f>=-32768&&f<32768)return C.putSignedInt(f,16);if(f>=-8388608&&f<8388608)return C.putSignedInt(f,24);if(f>=-2147483648&&f<2147483648)return C.putSignedInt(f,32);var b=new Error("Integer too large; max is 32-bits.");throw b.integer=f,b},A.derToInteger=function(f){"string"==typeof f&&(f=v.util.createBuffer(f));var C=8*f.length();if(C>32)throw new Error("Integer too large; max is 32-bits.");return f.getSignedInt(C)},A.validate=function(f,C,b,x){var k=!1;if((f.tagClass===C.tagClass||typeof C.tagClass>"u")&&(f.type===C.type||typeof C.type>"u"))if(f.constructed===C.constructed||typeof C.constructed>"u"){if(k=!0,C.value&&v.util.isArray(C.value))for(var a=0,r=0;k&&r0&&(x+="\n");for(var k="",a=0;a1?"0x"+v.util.bytesToHex(f.value.slice(1)):"(none)",f.value.length>0){var d=f.value.charCodeAt(0);1==d?x+=" (1 unused bit shown)":d>1&&(x+=" ("+d+" unused bits shown)")}}else if(f.type===A.Type.OCTETSTRING)m.test(f.value)||(x+="("+f.value+") "),x+="0x"+v.util.bytesToHex(f.value);else if(f.type===A.Type.UTF8)try{x+=v.util.decodeUtf8(f.value)}catch(h){if("URI malformed"!==h.message)throw h;x+="0x"+v.util.bytesToHex(f.value)+" (malformed UTF8)"}else f.type===A.Type.PRINTABLESTRING||f.type===A.Type.IA5String?x+=f.value:m.test(f.value)?x+="0x"+v.util.bytesToHex(f.value):x+=0===f.value.length?"[null]":f.value}return x}},5622:Ne=>{var Ae={};Ne.exports=Ae;var $={};Ae.encode=function(A,T,_){if("string"!=typeof T)throw new TypeError('"alphabet" must be a string.');if(void 0!==_&&"number"!=typeof _)throw new TypeError('"maxline" must be a number.');var y="";if(A instanceof Uint8Array){var m=0,f=T.length,C=T.charAt(0),b=[0];for(m=0;m0;)b.push(k%f),k=k/f|0}for(m=0;0===A[m]&&m=0;--m)y+=T[b[m]]}else y=function v(A,T){var _=0,y=T.length,m=T.charAt(0),f=[0];for(_=0;_0;)f.push(b%y),b=b/y|0}var x="";for(_=0;0===A.at(_)&&_=0;--_)x+=T[f[_]];return x}(A,T);if(_){var a=new RegExp(".{1,"+_+"}","g");y=y.match(a).join("\r\n")}return y},Ae.decode=function(A,T){if("string"!=typeof A)throw new TypeError('"input" must be a string.');if("string"!=typeof T)throw new TypeError('"alphabet" must be a string.');var _=$[T];if(!_){_=$[T]=[];for(var y=0;y>=8;for(;k>0;)C.push(255&k),k>>=8}for(var a=0;A[a]===f&&a{var v=$(3247);$(2683),Ne.exports=v.cipher=v.cipher||{},v.cipher.algorithms=v.cipher.algorithms||{},v.cipher.createCipher=function(T,_){var y=T;if("string"==typeof y&&(y=v.cipher.getAlgorithm(y))&&(y=y()),!y)throw new Error("Unsupported algorithm: "+T);return new v.cipher.BlockCipher({algorithm:y,key:_,decrypt:!1})},v.cipher.createDecipher=function(T,_){var y=T;if("string"==typeof y&&(y=v.cipher.getAlgorithm(y))&&(y=y()),!y)throw new Error("Unsupported algorithm: "+T);return new v.cipher.BlockCipher({algorithm:y,key:_,decrypt:!0})},v.cipher.registerAlgorithm=function(T,_){T=T.toUpperCase(),v.cipher.algorithms[T]=_},v.cipher.getAlgorithm=function(T){return(T=T.toUpperCase())in v.cipher.algorithms?v.cipher.algorithms[T]:null};var A=v.cipher.BlockCipher=function(T){this.algorithm=T.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=T.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=T.decrypt,this.algorithm.initialize(T)};A.prototype.start=function(T){T=T||{};var _={};for(var y in T)_[y]=T[y];_.decrypt=this._decrypt,this._finish=!1,this._input=v.util.createBuffer(),this.output=T.output||v.util.createBuffer(),this.mode.start(_)},A.prototype.update=function(T){for(T&&this._input.putBuffer(T);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},A.prototype.finish=function(T){T&&("ECB"===this.mode.name||"CBC"===this.mode.name)&&(this.mode.pad=function(y){return T(this.blockSize,y,!1)},this.mode.unpad=function(y){return T(this.blockSize,y,!0)});var _={};return _.decrypt=this._decrypt,_.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,_)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,_))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,_))}},8531:(Ne,Ae,$)=>{var v=$(3247);$(2683),v.cipher=v.cipher||{};var A=Ne.exports=v.cipher.modes=v.cipher.modes||{};function T(m,f){if("string"==typeof m&&(m=v.util.createBuffer(m)),v.util.isArray(m)&&m.length>4){var C=m;m=v.util.createBuffer();for(var b=0;b0))return!0;for(var b=0;b0))return!0;for(var b=0;b0)return!1;var C=m.length(),b=m.at(C-1);return!(b>this.blockSize<<2||(m.truncate(b),0))},A.cbc=function(m){m=m||{},this.name="CBC",this.cipher=m.cipher,this.blockSize=m.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},A.cbc.prototype.start=function(m){if(null===m.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in m))throw new Error("Invalid IV parameter.");this._iv=T(m.iv,this.blockSize),this._prev=this._iv.slice(0)}},A.cbc.prototype.encrypt=function(m,f,C){if(m.length()0))return!0;for(var b=0;b0))return!0;for(var b=0;b0)return!1;var C=m.length(),b=m.at(C-1);return!(b>this.blockSize<<2||(m.truncate(b),0))},A.cfb=function(m){m=m||{},this.name="CFB",this.cipher=m.cipher,this.blockSize=m.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=v.util.createBuffer(),this._partialBytes=0},A.cfb.prototype.start=function(m){if(!("iv"in m))throw new Error("Invalid IV parameter.");this._iv=T(m.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},A.cfb.prototype.encrypt=function(m,f,C){var b=m.length();if(0===b)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&b>=this.blockSize)for(var x=0;x0&&(k=this.blockSize-k),this._partialOutput.clear(),x=0;x0)m.read-=this.blockSize;else for(x=0;x0&&this._partialOutput.getBytes(this._partialBytes),k>0&&!C)return f.putBytes(this._partialOutput.getBytes(k-this._partialBytes)),this._partialBytes=k,!0;f.putBytes(this._partialOutput.getBytes(b-this._partialBytes)),this._partialBytes=0}},A.cfb.prototype.decrypt=function(m,f,C){var b=m.length();if(0===b)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&b>=this.blockSize)for(var x=0;x0&&(k=this.blockSize-k),this._partialOutput.clear(),x=0;x0)m.read-=this.blockSize;else for(x=0;x0&&this._partialOutput.getBytes(this._partialBytes),k>0&&!C)return f.putBytes(this._partialOutput.getBytes(k-this._partialBytes)),this._partialBytes=k,!0;f.putBytes(this._partialOutput.getBytes(b-this._partialBytes)),this._partialBytes=0}},A.ofb=function(m){m=m||{},this.name="OFB",this.cipher=m.cipher,this.blockSize=m.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=v.util.createBuffer(),this._partialBytes=0},A.ofb.prototype.start=function(m){if(!("iv"in m))throw new Error("Invalid IV parameter.");this._iv=T(m.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},A.ofb.prototype.encrypt=function(m,f,C){var b=m.length();if(0===m.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&b>=this.blockSize)for(var x=0;x0&&(k=this.blockSize-k),this._partialOutput.clear(),x=0;x0)m.read-=this.blockSize;else for(x=0;x0&&this._partialOutput.getBytes(this._partialBytes),k>0&&!C)return f.putBytes(this._partialOutput.getBytes(k-this._partialBytes)),this._partialBytes=k,!0;f.putBytes(this._partialOutput.getBytes(b-this._partialBytes)),this._partialBytes=0}},A.ofb.prototype.decrypt=A.ofb.prototype.encrypt,A.ctr=function(m){m=m||{},this.name="CTR",this.cipher=m.cipher,this.blockSize=m.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=v.util.createBuffer(),this._partialBytes=0},A.ctr.prototype.start=function(m){if(!("iv"in m))throw new Error("Invalid IV parameter.");this._iv=T(m.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},A.ctr.prototype.encrypt=function(m,f,C){var b=m.length();if(0===b)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&b>=this.blockSize)for(var x=0;x0&&(k=this.blockSize-k),this._partialOutput.clear(),x=0;x0&&(m.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),k>0&&!C)return f.putBytes(this._partialOutput.getBytes(k-this._partialBytes)),this._partialBytes=k,!0;f.putBytes(this._partialOutput.getBytes(b-this._partialBytes)),this._partialBytes=0}_(this._inBlock)},A.ctr.prototype.decrypt=A.ctr.prototype.encrypt,A.gcm=function(m){m=m||{},this.name="GCM",this.cipher=m.cipher,this.blockSize=m.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=v.util.createBuffer(),this._partialBytes=0,this._R=3774873600},A.gcm.prototype.start=function(m){if(!("iv"in m))throw new Error("Invalid IV parameter.");var C,f=v.util.createBuffer(m.iv);if(this._cipherLength=0,C="additionalData"in m?v.util.createBuffer(m.additionalData):v.util.createBuffer(),this._tagLength="tagLength"in m?m.tagLength:128,this._tag=null,m.decrypt&&(this._tag=v.util.createBuffer(m.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var b=f.length();if(12===b)this._j0=[f.getInt32(),f.getInt32(),f.getInt32(),1];else{for(this._j0=[0,0,0,0];f.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[f.getInt32(),f.getInt32(),f.getInt32(),f.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(y(8*b)))}this._inBlock=this._j0.slice(0),_(this._inBlock),this._partialBytes=0,C=v.util.createBuffer(C),this._aDataLength=y(8*C.length());var x=C.length()%this.blockSize;for(x&&C.fillWithByte(0,this.blockSize-x),this._s=[0,0,0,0];C.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[C.getInt32(),C.getInt32(),C.getInt32(),C.getInt32()])},A.gcm.prototype.encrypt=function(m,f,C){var b=m.length();if(0===b)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&b>=this.blockSize){for(var x=0;x0&&(k=this.blockSize-k),this._partialOutput.clear(),x=0;x0&&this._partialOutput.getBytes(this._partialBytes),k>0&&!C)return m.read-=this.blockSize,f.putBytes(this._partialOutput.getBytes(k-this._partialBytes)),this._partialBytes=k,!0;f.putBytes(this._partialOutput.getBytes(b-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),_(this._inBlock)},A.gcm.prototype.decrypt=function(m,f,C){var b=m.length();if(b0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),_(this._inBlock),this._hashBlock[0]=m.getInt32(),this._hashBlock[1]=m.getInt32(),this._hashBlock[2]=m.getInt32(),this._hashBlock[3]=m.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var x=0;x0;--b)f[b]=m[b]>>>1|(1&m[b-1])<<31;f[0]=m[0]>>>1,C&&(f[0]^=this._R)},A.gcm.prototype.tableMultiply=function(m){for(var f=[0,0,0,0],C=0;C<32;++C){var k=this._m[C][m[C/8|0]>>>4*(7-C%8)&15];f[0]^=k[0],f[1]^=k[1],f[2]^=k[2],f[3]^=k[3]}return f},A.gcm.prototype.ghash=function(m,f,C){return f[0]^=C[0],f[1]^=C[1],f[2]^=C[2],f[3]^=C[3],this.tableMultiply(f)},A.gcm.prototype.generateHashTable=function(m,f){for(var C=8/f,b=4*C,x=16*C,k=new Array(x),a=0;a>>1,x=new Array(C);x[b]=m.slice(0);for(var k=b>>>1;k>0;)this.pow(x[2*k],x[k]=[]),k>>=1;for(k=2;k{var v=$(3247);function A(i,c){v.cipher.registerAlgorithm(i,function(){return new v.des.Algorithm(i,c)})}$(82),$(8531),$(2683),Ne.exports=v.des=v.des||{},v.des.startEncrypting=function(i,c,d,h){var g=r({key:i,output:d,decrypt:!1,mode:h||(null===c?"ECB":"CBC")});return g.start(c),g},v.des.createEncryptionCipher=function(i,c){return r({key:i,output:null,decrypt:!1,mode:c})},v.des.startDecrypting=function(i,c,d,h){var g=r({key:i,output:d,decrypt:!0,mode:h||(null===c?"ECB":"CBC")});return g.start(c),g},v.des.createDecryptionCipher=function(i,c){return r({key:i,output:null,decrypt:!0,mode:c})},v.des.Algorithm=function(i,c){var d=this;d.name=i,d.mode=new c({blockSize:8,cipher:{encrypt:function(h,g){return a(d._keys,h,g,!1)},decrypt:function(h,g){return a(d._keys,h,g,!0)}}}),d._init=!1},v.des.Algorithm.prototype.initialize=function(i){if(!this._init){var c=v.util.createBuffer(i.key);if(0===this.name.indexOf("3DES")&&24!==c.length())throw new Error("Invalid Triple-DES key size: "+8*c.length());this._keys=function k(i){for(var F,c=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],d=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],h=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],g=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],E=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],P=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],U=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],X=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],te=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],z=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],W=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],Y=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],D=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],N=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],L=i.length()>8?3:1,O=[],I=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],B=0,H=0;H>>4^R))<<4,G^=F=65535&((R^=F)>>>-16^G),G^=(F=858993459&(G>>>2^(R^=F<<-16)))<<2,G^=F=65535&((R^=F)>>>-16^G),G^=(F=1431655765&(G>>>1^(R^=F<<-16)))<<1,G^=F=16711935&((R^=F)>>>8^G),F=(G^=(F=1431655765&(G>>>1^(R^=F<<8)))<<1)<<8|(R^=F)>>>20&240,G=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=F;for(var Z=0;Z>>26,R=R<<2|R>>>26):(G=G<<1|G>>>27,R=R<<1|R>>>27);var oe=c[(G&=-15)>>>28]|d[G>>>24&15]|h[G>>>20&15]|g[G>>>16&15]|E[G>>>12&15]|P[G>>>8&15]|U[G>>>4&15],j=X[(R&=-15)>>>28]|te[R>>>24&15]|z[R>>>20&15]|W[R>>>16&15]|Y[R>>>12&15]|D[R>>>8&15]|N[R>>>4&15];O[B++]=oe^(F=65535&(j>>>16^oe)),O[B++]=j^F<<16}}return O}(c),this._init=!0}},A("DES-ECB",v.cipher.modes.ecb),A("DES-CBC",v.cipher.modes.cbc),A("DES-CFB",v.cipher.modes.cfb),A("DES-OFB",v.cipher.modes.ofb),A("DES-CTR",v.cipher.modes.ctr),A("3DES-ECB",v.cipher.modes.ecb),A("3DES-CBC",v.cipher.modes.cbc),A("3DES-CFB",v.cipher.modes.cfb),A("3DES-OFB",v.cipher.modes.ofb),A("3DES-CTR",v.cipher.modes.ctr);var T=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],_=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],y=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],m=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],f=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],C=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],b=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],x=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function a(i,c,d,h){var E,g=32===i.length?3:9;E=3===g?h?[30,-2,-2]:[0,32,2]:h?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var P,U=c[0],X=c[1];U^=(P=252645135&(U>>>4^X))<<4,U^=(P=65535&(U>>>16^(X^=P)))<<16,U^=P=858993459&((X^=P)>>>2^U),U^=P=16711935&((X^=P<<2)>>>8^U),U=(U^=(P=1431655765&(U>>>1^(X^=P<<8)))<<1)<<1|U>>>31,X=(X^=P)<<1|X>>>31;for(var te=0;te>>4|X<<28)^i[Y+1];P=U,U=X,X=P^(_[D>>>24&63]|m[D>>>16&63]|C[D>>>8&63]|x[63&D]|T[N>>>24&63]|y[N>>>16&63]|f[N>>>8&63]|b[63&N])}P=U,U=X,X=P}X=X>>>1|X<<31,X^=P=1431655765&((U=U>>>1|U<<31)>>>1^X),X^=(P=16711935&(X>>>8^(U^=P<<1)))<<8,X^=(P=858993459&(X>>>2^(U^=P)))<<2,X^=P=65535&((U^=P)>>>16^X),X^=P=252645135&((U^=P<<16)>>>4^X),d[0]=U^=P<<4,d[1]=X}function r(i){var h,d="DES-"+((i=i||{}).mode||"CBC").toUpperCase(),g=(h=i.decrypt?v.cipher.createDecipher(d,i.key):v.cipher.createCipher(d,i.key)).start;return h.start=function(E,P){var U=null;P instanceof v.util.ByteBuffer&&(U=P,P={}),(P=P||{}).output=U,P.iv=E,g.call(h,P)},h}},2625:(Ne,Ae,$)=>{var v=$(3247);$(5471),$(8194),$(5571),$(2683);var A=$(663),T=A.publicKeyValidator,_=A.privateKeyValidator;if(typeof y>"u")var y=v.jsbn.BigInteger;var m=v.util.ByteBuffer,f=typeof Buffer>"u"?Uint8Array:Buffer;v.pki=v.pki||{},Ne.exports=v.pki.ed25519=v.ed25519=v.ed25519||{};var C=v.ed25519;function b(we){var Be=we.message;if(Be instanceof Uint8Array||Be instanceof f)return Be;var K=we.encoding;if(void 0===Be){if(!we.md)throw new TypeError('"options.message" or "options.md" not specified.');Be=we.md.digest().getBytes(),K="binary"}if("string"==typeof Be&&!K)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if("string"==typeof Be){if(typeof Buffer<"u")return Buffer.from(Be,K);Be=new m(Be,K)}else if(!(Be instanceof m))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var Q=new f(Be.length()),ie=0;ie=0;--Q)We(K,K),1!==Q&&Pe(K,K,Be);for(Q=0;Q<16;++Q)we[Q]=K[Q]}(K,K),Pe(K,K,ie),Pe(K,K,Ce),Pe(K,K,Ce),Pe(we[0],K,Ce),We(Q,we[0]),Pe(Q,Q,Ce),I(Q,ie)&&Pe(we[0],we[0],h),We(Q,we[0]),Pe(Q,Q,Ce),I(Q,ie)?-1:(H(we[0])===Be[31]>>7&&ne(we[0],x,we[0]),Pe(we[3],we[0],we[1]),0)}(Me,Q))return-1;for(ie=0;ie=0};var x=_e(),k=_e([1]),a=_e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),r=_e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),i=_e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=_e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),h=_e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function g(we,Be){var K=v.md.sha512.create(),Q=new m(we);K.update(Q.getBytes(Be),"binary");var ie=K.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(ie,"binary");for(var Ce=new f(C.constants.HASH_BYTE_LENGTH),ve=0;ve<64;++ve)Ce[ve]=ie.charCodeAt(ve);return Ce}function X(we,Be){var K,Q,ie,Ce;for(Q=63;Q>=32;--Q){for(K=0,ie=Q-32,Ce=Q-12;ie>8);Be[ie]+=K,Be[Q]=0}for(K=0,ie=0;ie<32;++ie)Be[ie]+=K-(Be[31]>>4)*d[ie],K=Be[ie]>>8,Be[ie]&=255;for(ie=0;ie<32;++ie)Be[ie]-=K*d[ie];for(Q=0;Q<32;++Q)Be[Q+1]+=Be[Q]>>8,we[Q]=255&Be[Q]}function te(we){for(var Be=new Float64Array(64),K=0;K<64;++K)Be[K]=we[K],we[K]=0;X(we,Be)}function z(we,Be){var K=_e(),Q=_e(),ie=_e(),Ce=_e(),ve=_e(),je=_e(),Me=_e(),tt=_e(),It=_e();ne(K,we[1],we[0]),ne(It,Be[1],Be[0]),Pe(K,K,It),st(Q,we[0],we[1]),st(It,Be[0],Be[1]),Pe(Q,Q,It),Pe(ie,we[3],Be[3]),Pe(ie,ie,r),Pe(Ce,we[2],Be[2]),st(Ce,Ce,Ce),ne(ve,Q,K),ne(je,Ce,ie),st(Me,Ce,ie),st(tt,Q,K),Pe(we[0],ve,je),Pe(we[1],tt,Me),Pe(we[2],Me,je),Pe(we[3],ve,tt)}function W(we,Be,K){for(var Q=0;Q<4;++Q)de(we[Q],Be[Q],K)}function Y(we,Be){var K=_e(),Q=_e(),ie=_e();(function oe(we,Be){var Q,K=_e();for(Q=0;Q<16;++Q)K[Q]=Be[Q];for(Q=253;Q>=0;--Q)We(K,K),2!==Q&&4!==Q&&Pe(K,K,Be);for(Q=0;Q<16;++Q)we[Q]=K[Q]})(ie,Be[2]),Pe(K,Be[0],ie),Pe(Q,Be[1],ie),D(we,Q),we[31]^=H(K)<<7}function D(we,Be){var K,Q,ie,Ce=_e(),ve=_e();for(K=0;K<16;++K)ve[K]=Be[K];for(j(ve),j(ve),j(ve),Q=0;Q<2;++Q){for(Ce[0]=ve[0]-65517,K=1;K<15;++K)Ce[K]=ve[K]-65535-(Ce[K-1]>>16&1),Ce[K-1]&=65535;Ce[15]=ve[15]-32767-(Ce[14]>>16&1),ie=Ce[15]>>16&1,Ce[14]&=65535,de(ve,Ce,1-ie)}for(K=0;K<16;K++)we[2*K]=255&ve[K],we[2*K+1]=ve[K]>>8}function I(we,Be){var K=new f(32),Q=new f(32);return D(K,we),D(Q,Be),B(K,0,Q,0)}function B(we,Be,K,Q){return function F(we,Be,K,Q,ie){var Ce,ve=0;for(Ce=0;Ce>>8)-1}(we,Be,K,Q,32)}function H(we){var Be=new f(32);return D(Be,we),1&Be[0]}function G(we,Be,K){var Q,ie;for(Z(we[0],x),Z(we[1],k),Z(we[2],k),Z(we[3],x),ie=255;ie>=0;--ie)W(we,Be,Q=K[ie/8|0]>>(7&ie)&1),z(Be,we),z(we,we),W(we,Be,Q)}function R(we,Be){var K=[_e(),_e(),_e(),_e()];Z(K[0],i),Z(K[1],c),Z(K[2],k),Pe(K[3],i,c),G(we,K,Be)}function Z(we,Be){var K;for(K=0;K<16;K++)we[K]=0|Be[K]}function j(we){var Be,K,Q=1;for(Be=0;Be<16;++Be)K=we[Be]+Q+65535,Q=Math.floor(K/65536),we[Be]=K-65536*Q;we[0]+=Q-1+37*(Q-1)}function de(we,Be,K){for(var Q,ie=~(K-1),Ce=0;Ce<16;++Ce)we[Ce]^=Q=ie&(we[Ce]^Be[Ce]),Be[Ce]^=Q}function _e(we){var Be,K=new Float64Array(16);if(we)for(Be=0;Be{Ne.exports={options:{usePureJavaScript:!1}}},4600:(Ne,Ae,$)=>{var v=$(3247);$(6702),$(2683),(Ne.exports=v.hmac=v.hmac||{}).create=function(){var T=null,_=null,y=null,m=null,f={start:function(C,b){if(null!==C)if("string"==typeof C){if(!((C=C.toLowerCase())in v.md.algorithms))throw new Error('Unknown hash algorithm "'+C+'"');_=v.md.algorithms[C].create()}else _=C;if(null===b)b=T;else{if("string"==typeof b)b=v.util.createBuffer(b);else if(v.util.isArray(b)){var x=b;b=v.util.createBuffer();for(var k=0;k_.blockLength&&(_.start(),_.update(b.bytes()),b=_.digest()),y=v.util.createBuffer(),m=v.util.createBuffer(),a=b.length(),k=0;k{Ne.exports=$(3247),$(4210),$(5145),$(4960),$(82),$(8544),$(2625),$(4600),$(6406),$(6913),$(1997),$(6076),$(7749),$(591),$(8896),$(3059),$(8041),$(2037),$(499),$(1414),$(6873),$(8194),$(6279),$(9560),$(1326),$(2683)},5471:(Ne,Ae,$)=>{var A,v=$(3247);function y(se,ce,me){this.data=[],null!=se&&("number"==typeof se?this.fromNumber(se,ce,me):this.fromString(se,null==ce&&"string"!=typeof se?256:ce))}function m(){return new y(null)}function b(se,ce,me,Ve,pt,Ct){for(var kt=16383&ce,De=ce>>14;--Ct>=0;){var Tt=16383&this.data[se],Pn=this.data[se++]>>14,$n=De*Tt+Pn*kt;pt=((Tt=kt*Tt+((16383&$n)<<14)+me.data[Ve]+pt)>>28)+($n>>14)+De*Pn,me.data[Ve++]=268435455&Tt}return pt}Ne.exports=v.jsbn=v.jsbn||{},v.jsbn.BigInteger=y,typeof navigator>"u"?(y.prototype.am=b,A=28):"Microsoft Internet Explorer"==navigator.appName?(y.prototype.am=function C(se,ce,me,Ve,pt,Ct){for(var kt=32767&ce,De=ce>>15;--Ct>=0;){var Tt=32767&this.data[se],Pn=this.data[se++]>>15,$n=De*Tt+Pn*kt;pt=((Tt=kt*Tt+((32767&$n)<<15)+me.data[Ve]+(1073741823&pt))>>>30)+($n>>>15)+De*Pn+(pt>>>30),me.data[Ve++]=1073741823&Tt}return pt},A=30):"Netscape"!=navigator.appName?(y.prototype.am=function f(se,ce,me,Ve,pt,Ct){for(;--Ct>=0;){var kt=ce*this.data[se++]+me.data[Ve]+pt;pt=Math.floor(kt/67108864),me.data[Ve++]=67108863&kt}return pt},A=26):(y.prototype.am=b,A=28),y.prototype.DB=A,y.prototype.DM=(1<>>16)&&(se=me,ce+=16),0!=(me=se>>8)&&(se=me,ce+=8),0!=(me=se>>4)&&(se=me,ce+=4),0!=(me=se>>2)&&(se=me,ce+=2),0!=(me=se>>1)&&(se=me,ce+=1),ce}function Z(se){this.m=se}function We(se){this.m=se,this.mp=se.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,ce+=16),255&se||(se>>=8,ce+=8),15&se||(se>>=4,ce+=4),3&se||(se>>=2,ce+=2),1&se||++ce,ce}function Tr(se){for(var ce=0;0!=se;)se&=se-1,++ce;return ce}function et(){}function ft(se){return se}function bn(se){this.r2=m(),this.q3=m(),y.ONE.dlShiftTo(2*se.t,this.r2),this.mu=this.r2.divide(se),this.m=se}Z.prototype.convert=function oe(se){return se.s<0||se.compareTo(this.m)>=0?se.mod(this.m):se},Z.prototype.revert=function j(se){return se},Z.prototype.reduce=function de(se){se.divRemTo(this.m,null,se)},Z.prototype.mulTo=function _e(se,ce,me){se.multiplyTo(ce,me),this.reduce(me)},Z.prototype.sqrTo=function st(se,ce){se.squareTo(ce),this.reduce(ce)},We.prototype.convert=function Pe(se){var ce=m();return se.abs().dlShiftTo(this.m.t,ce),ce.divRemTo(this.m,null,ce),se.s<0&&ce.compareTo(y.ZERO)>0&&this.m.subTo(ce,ce),ce},We.prototype.revert=function we(se){var ce=m();return se.copyTo(ce),this.reduce(ce),ce},We.prototype.reduce=function Be(se){for(;se.t<=this.mt2;)se.data[se.t++]=0;for(var ce=0;ce>15)*this.mpl&this.um)<<15)&se.DM;for(se.data[me=ce+this.m.t]+=this.m.am(0,Ve,se,ce,0,this.m.t);se.data[me]>=se.DV;)se.data[me]-=se.DV,se.data[++me]++}se.clamp(),se.drShiftTo(this.m.t,se),se.compareTo(this.m)>=0&&se.subTo(this.m,se)},We.prototype.mulTo=function Q(se,ce,me){se.multiplyTo(ce,me),this.reduce(me)},We.prototype.sqrTo=function K(se,ce){se.squareTo(ce),this.reduce(ce)},y.prototype.copyTo=function h(se){for(var ce=this.t-1;ce>=0;--ce)se.data[ce]=this.data[ce];se.t=this.t,se.s=this.s},y.prototype.fromInt=function g(se){this.t=1,this.s=se<0?-1:0,se>0?this.data[0]=se:se<-1?this.data[0]=se+this.DV:this.t=0},y.prototype.fromString=function P(se,ce){var me;if(16==ce)me=4;else if(8==ce)me=3;else if(256==ce)me=8;else if(2==ce)me=1;else if(32==ce)me=5;else{if(4!=ce)return void this.fromRadix(se,ce);me=2}this.t=0,this.s=0;for(var Ve=se.length,pt=!1,Ct=0;--Ve>=0;){var kt=8==me?255&se[Ve]:d(se,Ve);kt<0?"-"==se.charAt(Ve)&&(pt=!0):(pt=!1,0==Ct?this.data[this.t++]=kt:Ct+me>this.DB?(this.data[this.t-1]|=(kt&(1<>this.DB-Ct):this.data[this.t-1]|=kt<=this.DB&&(Ct-=this.DB))}8==me&&128&se[0]&&(this.s=-1,Ct>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==se;)--this.t},y.prototype.dlShiftTo=function N(se,ce){var me;for(me=this.t-1;me>=0;--me)ce.data[me+se]=this.data[me];for(me=se-1;me>=0;--me)ce.data[me]=0;ce.t=this.t+se,ce.s=this.s},y.prototype.drShiftTo=function L(se,ce){for(var me=se;me=0;--De)ce.data[De+Ct+1]=this.data[De]>>Ve|kt,kt=(this.data[De]&pt)<=0;--De)ce.data[De]=0;ce.data[Ct]=kt,ce.t=this.t+Ct+1,ce.s=this.s,ce.clamp()},y.prototype.rShiftTo=function I(se,ce){ce.s=this.s;var me=Math.floor(se/this.DB);if(me>=this.t)ce.t=0;else{var Ve=se%this.DB,pt=this.DB-Ve,Ct=(1<>Ve;for(var kt=me+1;kt>Ve;Ve>0&&(ce.data[this.t-me-1]|=(this.s&Ct)<>=this.DB;if(se.t>=this.DB;Ve+=this.s}else{for(Ve+=this.s;me>=this.DB;Ve-=se.s}ce.s=Ve<0?-1:0,Ve<-1?ce.data[me++]=this.DV+Ve:Ve>0&&(ce.data[me++]=Ve),ce.t=me,ce.clamp()},y.prototype.multiplyTo=function F(se,ce){var me=this.abs(),Ve=se.abs(),pt=me.t;for(ce.t=pt+Ve.t;--pt>=0;)ce.data[pt]=0;for(pt=0;pt=0;)se.data[me]=0;for(me=0;me=ce.DV&&(se.data[me+ce.t]-=ce.DV,se.data[me+ce.t+1]=1)}se.t>0&&(se.data[se.t-1]+=ce.am(me,ce.data[me],se,2*me,0,1)),se.s=0,se.clamp()},y.prototype.divRemTo=function G(se,ce,me){var Ve=se.abs();if(!(Ve.t<=0)){var pt=this.abs();if(pt.t0?(Ve.lShiftTo(Tt,Ct),pt.lShiftTo(Tt,me)):(Ve.copyTo(Ct),pt.copyTo(me));var Pn=Ct.t,$n=Ct.data[Pn-1];if(0!=$n){var _n=$n*(1<1?Ct.data[Pn-2]>>this.F2:0),Zn=this.FV/_n,pr=(1<=0&&(me.data[me.t++]=1,me.subTo(Lr,me)),y.ONE.dlShiftTo(Pn,Lr),Lr.subTo(Ct,Ct);Ct.t=0;){var Ur=me.data[--cr]==$n?this.DM:Math.floor(me.data[cr]*Zn+(me.data[cr-1]+Sn)*pr);if((me.data[cr]+=Ct.am(0,Ur,me,Xr,0,Pn))0&&me.rShiftTo(Tt,me),kt<0&&y.ZERO.subTo(me,me)}}},y.prototype.invDigit=function ne(){if(this.t<1)return 0;var se=this.data[0];if(!(1&se))return 0;var ce=3&se;return(ce=(ce=(ce=(ce=ce*(2-(15&se)*ce)&15)*(2-(255&se)*ce)&255)*(2-((65535&se)*ce&65535))&65535)*(2-se*ce%this.DV)%this.DV)>0?this.DV-ce:-ce},y.prototype.isEven=function ie(){return 0==(this.t>0?1&this.data[0]:this.s)},y.prototype.exp=function Ce(se,ce){if(se>4294967295||se<1)return y.ONE;var me=m(),Ve=m(),pt=ce.convert(this),Ct=Y(se)-1;for(pt.copyTo(me);--Ct>=0;)if(ce.sqrTo(me,Ve),(se&1<0)ce.mulTo(Ve,pt,me);else{var kt=me;me=Ve,Ve=kt}return ce.revert(me)},y.prototype.toString=function X(se){if(this.s<0)return"-"+this.negate().toString(se);var ce;if(16==se)ce=4;else if(8==se)ce=3;else if(2==se)ce=1;else if(32==se)ce=5;else{if(4!=se)return this.toRadix(se);ce=2}var Ve,me=(1<0)for(De>De)>0&&(pt=!0,Ct=c(Ve));kt>=0;)De>(De+=this.DB-ce)):(Ve=this.data[kt]>>(De-=ce)&me,De<=0&&(De+=this.DB,--kt)),Ve>0&&(pt=!0),pt&&(Ct+=c(Ve));return pt?Ct:"0"},y.prototype.negate=function te(){var se=m();return y.ZERO.subTo(this,se),se},y.prototype.abs=function z(){return this.s<0?this.negate():this},y.prototype.compareTo=function W(se){var ce=this.s-se.s;if(0!=ce)return ce;var me=this.t;if(0!=(ce=me-se.t))return this.s<0?-ce:ce;for(;--me>=0;)if(0!=(ce=this.data[me]-se.data[me]))return ce;return 0},y.prototype.bitLength=function D(){return this.t<=0?0:this.DB*(this.t-1)+Y(this.data[this.t-1]^this.s&this.DM)},y.prototype.mod=function R(se){var ce=m();return this.abs().divRemTo(se,null,ce),this.s<0&&ce.compareTo(y.ZERO)>0&&se.subTo(ce,ce),ce},y.prototype.modPowInt=function ve(se,ce){var me;return me=se<256||ce.isEven()?new Z(ce):new We(ce),this.exp(se,me)},y.ZERO=E(0),y.ONE=E(1),et.prototype.convert=ft,et.prototype.revert=ft,et.prototype.mulTo=function rn(se,ce,me){se.multiplyTo(ce,me)},et.prototype.sqrTo=function St(se,ce){se.squareTo(ce)},bn.prototype.convert=function En(se){if(se.s<0||se.t>2*this.m.t)return se.mod(this.m);if(se.compareTo(this.m)<0)return se;var ce=m();return se.copyTo(ce),this.reduce(ce),ce},bn.prototype.revert=function Tn(se){return se},bn.prototype.reduce=function In(se){for(se.drShiftTo(this.m.t-1,this.r2),se.t>this.m.t+1&&(se.t=this.m.t+1,se.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);se.compareTo(this.r2)<0;)se.dAddOffset(1,this.m.t+1);for(se.subTo(this.r2,se);se.compareTo(this.m)>=0;)se.subTo(this.m,se)},bn.prototype.mulTo=function On(se,ce,me){se.multiplyTo(ce,me),this.reduce(me)},bn.prototype.sqrTo=function Nn(se,ce){se.squareTo(ce),this.reduce(ce)};var on=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],vt=(1<<26)/on[on.length-1];y.prototype.chunkSize=function bt(se){return Math.floor(Math.LN2*this.DB/Math.log(se))},y.prototype.toRadix=function Et(se){if(null==se&&(se=10),0==this.signum()||se<2||se>36)return"0";var ce=this.chunkSize(se),me=Math.pow(se,ce),Ve=E(me),pt=m(),Ct=m(),kt="";for(this.divRemTo(Ve,pt,Ct);pt.signum()>0;)kt=(me+Ct.intValue()).toString(se).substr(1)+kt,pt.divRemTo(Ve,pt,Ct);return Ct.intValue().toString(se)+kt},y.prototype.fromRadix=function xt(se,ce){this.fromInt(0),null==ce&&(ce=10);for(var me=this.chunkSize(ce),Ve=Math.pow(ce,me),pt=!1,Ct=0,kt=0,De=0;De=me&&(this.dMultiply(Ve),this.dAddOffset(kt,0),Ct=0,kt=0))}Ct>0&&(this.dMultiply(Math.pow(ce,Ct)),this.dAddOffset(kt,0)),pt&&y.ZERO.subTo(this,this)},y.prototype.fromNumber=function Pt(se,ce,me){if("number"==typeof ce)if(se<2)this.fromInt(1);else for(this.fromNumber(se,me),this.testBit(se-1)||this.bitwiseTo(y.ONE.shiftLeft(se-1),Ke,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(ce);)this.dAddOffset(2,0),this.bitLength()>se&&this.subTo(y.ONE.shiftLeft(se-1),this);else{var Ve=new Array,pt=7&se;Ve.length=1+(se>>3),ce.nextBytes(Ve),pt>0?Ve[0]&=(1<>=this.DB;if(se.t>=this.DB;Ve+=this.s}else{for(Ve+=this.s;me>=this.DB;Ve+=se.s}ce.s=Ve<0?-1:0,Ve>0?ce.data[me++]=Ve:Ve<-1&&(ce.data[me++]=this.DV+Ve),ce.t=me,ce.clamp()},y.prototype.dMultiply=function Ge(se){this.data[this.t]=this.am(0,se-1,this,0,0,this.t),++this.t,this.clamp()},y.prototype.dAddOffset=function nt(se,ce){if(0!=se){for(;this.t<=ce;)this.data[this.t++]=0;for(this.data[ce]+=se;this.data[ce]>=this.DV;)this.data[ce]-=this.DV,++ce>=this.t&&(this.data[this.t++]=0),++this.data[ce]}},y.prototype.multiplyLowerTo=function Zt(se,ce,me){var pt,Ve=Math.min(this.t+se.t,ce);for(me.s=0,me.t=Ve;Ve>0;)me.data[--Ve]=0;for(pt=me.t-this.t;Ve=0;)me.data[Ve]=0;for(Ve=Math.max(ce-this.t,0);Ve0)if(0==ce)me=this.data[0]%se;else for(var Ve=this.t-1;Ve>=0;--Ve)me=(ce*me+this.data[Ve])%se;return me},y.prototype.millerRabin=function dt(se){var ce=this.subtract(y.ONE),me=ce.getLowestSetBit();if(me<=0)return!1;for(var Ct,Ve=ce.shiftRight(me),pt=function Mt(){return{nextBytes:function(se){for(var ce=0;ce=0);var De=Ct.modPow(Ve,this);if(0!=De.compareTo(y.ONE)&&0!=De.compareTo(ce)){for(var Tt=1;Tt++>24},y.prototype.shortValue=function It(){return 0==this.t?this.s:this.data[0]<<16>>16},y.prototype.signum=function Ye(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},y.prototype.toByteArray=function Qt(){var se=this.t,ce=new Array;ce[0]=this.s;var Ve,me=this.DB-se*this.DB%8,pt=0;if(se-- >0)for(me>me)!=(this.s&this.DM)>>me&&(ce[pt++]=Ve|this.s<=0;)me<8?(Ve=(this.data[se]&(1<>(me+=this.DB-8)):(Ve=this.data[se]>>(me-=8)&255,me<=0&&(me+=this.DB,--se)),128&Ve&&(Ve|=-256),0==pt&&(128&this.s)!=(128&Ve)&&++pt,(pt>0||Ve!=this.s)&&(ce[pt++]=Ve);return ce},y.prototype.equals=function Wt(se){return 0==this.compareTo(se)},y.prototype.min=function fe(se){return this.compareTo(se)<0?this:se},y.prototype.max=function ee(se){return this.compareTo(se)>0?this:se},y.prototype.and=function He(se){var ce=m();return this.bitwiseTo(se,Ie,ce),ce},y.prototype.or=function ot(se){var ce=m();return this.bitwiseTo(se,Ke,ce),ce},y.prototype.xor=function Ht(se){var ce=m();return this.bitwiseTo(se,un,ce),ce},y.prototype.andNot=function Bn(se){var ce=m();return this.bitwiseTo(se,Ut,ce),ce},y.prototype.not=function Rt(){for(var se=m(),ce=0;ce=this.t?0!=this.s:0!=(this.data[ce]&1<1){var $n=m();for(Ct.sqrTo(kt[1],$n);De<=Pn;)kt[De]=m(),Ct.mulTo($n,kt[De-2],kt[De]),De+=2}var Zn,cr,_n=se.t-1,pr=!0,Sn=m();for(me=Y(se.data[_n])-1;_n>=0;){for(me>=Tt?Zn=se.data[_n]>>me-Tt&Pn:(Zn=(se.data[_n]&(1<0&&(Zn|=se.data[_n-1]>>this.DB+me-Tt)),De=Ve;!(1&Zn);)Zn>>=1,--De;if((me-=De)<0&&(me+=this.DB,--_n),pr)kt[Zn].copyTo(pt),pr=!1;else{for(;De>1;)Ct.sqrTo(pt,Sn),Ct.sqrTo(Sn,pt),De-=2;De>0?Ct.sqrTo(pt,Sn):(cr=pt,pt=Sn,Sn=cr),Ct.mulTo(Sn,kt[Zn],pt)}for(;_n>=0&&!(se.data[_n]&1<=0?(me.subTo(Ve,me),ce&&pt.subTo(kt,pt),Ct.subTo(De,Ct)):(Ve.subTo(me,Ve),ce&&kt.subTo(pt,kt),De.subTo(Ct,De))}return 0!=Ve.compareTo(y.ONE)?y.ZERO:De.compareTo(se)>=0?De.subtract(se):De.signum()<0?(De.addTo(se,De),De.signum()<0?De.add(se):De):De},y.prototype.pow=function dn(se){return this.exp(se,new et)},y.prototype.gcd=function Gt(se){var ce=this.s<0?this.negate():this.clone(),me=se.s<0?se.negate():se.clone();if(ce.compareTo(me)<0){var Ve=ce;ce=me,me=Ve}var pt=ce.getLowestSetBit(),Ct=me.getLowestSetBit();if(Ct<0)return ce;for(pt0&&(ce.rShiftTo(Ct,ce),me.rShiftTo(Ct,me));ce.signum()>0;)(pt=ce.getLowestSetBit())>0&&ce.rShiftTo(pt,ce),(pt=me.getLowestSetBit())>0&&me.rShiftTo(pt,me),ce.compareTo(me)>=0?(ce.subTo(me,ce),ce.rShiftTo(1,ce)):(me.subTo(ce,me),me.rShiftTo(1,me));return Ct>0&&me.lShiftTo(Ct,me),me},y.prototype.isProbablePrime=function At(se){var ce,me=this.abs();if(1==me.t&&me.data[0]<=on[on.length-1]){for(ce=0;ce{var v=$(3247);$(2683),$(8194),$(5471),Ne.exports=v.kem=v.kem||{};var A=v.jsbn.BigInteger;function T(_,y,m,f){_.generate=function(C,b){for(var x=new v.util.ByteBuffer,k=Math.ceil(b/f)+m,a=new v.util.ByteBuffer,r=m;r0&&(k=v.util.fillString(String.fromCharCode(0),a)+k),{encapsulation:C.encrypt(k,"NONE"),key:_.generate(k,b)}},decrypt:function(C,b,x){var k=C.decrypt(b,"NONE");return _.generate(k,x)}}},v.kem.kdf1=function(_,y){T(this,_,0,y||_.digestLength)},v.kem.kdf2=function(_,y){T(this,_,1,y||_.digestLength)}},6913:(Ne,Ae,$)=>{var v=$(3247);$(2683),Ne.exports=v.log=v.log||{},v.log.levels=["none","error","warning","info","debug","verbose","max"];var A={},T=[],_=null;v.log.LEVEL_LOCKED=2,v.log.NO_LEVEL_CHECK=4,v.log.INTERPOLATE=8;for(var y=0;y"u"||i?r.flags|=v.log.LEVEL_LOCKED:r.flags&=~v.log.LEVEL_LOCKED},v.log.addLogger=function(r){T.push(r)},typeof console<"u"&&"log"in console){var C;if(console.error&&console.warn&&console.info&&console.debug){var b={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},x=function(r,i){v.log.prepareStandard(i);var c=b[i.level],d=[i.standard];d=d.concat(i.arguments.slice()),c.apply(console,d)};C=v.log.makeLogger(x)}else x=function(i,c){v.log.prepareStandardFull(c),console.log(c.standardFull)},C=v.log.makeLogger(x);v.log.setLevel(C,"debug"),v.log.addLogger(C),_=C}else console={log:function(){}};if(null!==_&&typeof window<"u"&&window.location){var k=new URL(window.location.href).searchParams;k.has("console.level")&&v.log.setLevel(_,k.get("console.level").slice(-1)[0]),k.has("console.lock")&&"true"==k.get("console.lock").slice(-1)[0]&&v.log.lock(_)}v.log.consoleLogger=_},1997:(Ne,Ae,$)=>{Ne.exports=$(6702),$(2740),$(6021),$(5501),$(5571)},6702:(Ne,Ae,$)=>{var v=$(3247);Ne.exports=v.md=v.md||{},v.md.algorithms=v.md.algorithms||{}},2740:(Ne,Ae,$)=>{var v=$(3247);$(6702),$(2683);var A=Ne.exports=v.md5=v.md5||{};v.md.md5=v.md.algorithms.md5=A,A.create=function(){f||function C(){T=String.fromCharCode(128),T+=v.util.fillString(String.fromCharCode(0),64),_=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],y=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],m=new Array(64);for(var x=0;x<64;++x)m[x]=Math.floor(4294967296*Math.abs(Math.sin(x+1)));f=!0}();var x=null,k=v.util.createBuffer(),a=new Array(16),r={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var i=r.messageLengthSize/4,c=0;c>>0,d>>>0];for(var h=r.fullMessageLength.length-1;h>=0;--h)r.fullMessageLength[h]+=d[1],d[1]=d[0]+(r.fullMessageLength[h]/4294967296>>>0),r.fullMessageLength[h]=r.fullMessageLength[h]>>>0,d[0]=d[1]/4294967296>>>0;return k.putBytes(i),b(x,a,k),(k.read>2048||0===k.length())&&k.compact(),r},r.digest=function(){var i=v.util.createBuffer();i.putBytes(k.bytes()),i.putBytes(T.substr(0,r.blockLength-(r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize&r.blockLength-1)));for(var h,g=0,E=r.fullMessageLength.length-1;E>=0;--E)g=(h=8*r.fullMessageLength[E]+g)/4294967296>>>0,i.putInt32Le(h>>>0);var P={h0:x.h0,h1:x.h1,h2:x.h2,h3:x.h3};b(P,a,i);var U=v.util.createBuffer();return U.putInt32Le(P.h0),U.putInt32Le(P.h1),U.putInt32Le(P.h2),U.putInt32Le(P.h3),U},r};var T=null,_=null,y=null,m=null,f=!1;function b(x,k,a){for(var r,i,c,d,h,E,P,U=a.length();U>=64;){for(i=x.h0,c=x.h1,d=x.h2,h=x.h3,P=0;P<16;++P)k[P]=a.getInt32Le(),r=i+(h^c&(d^h))+m[P]+k[P],i=h,h=d,d=c,c+=r<<(E=y[P])|r>>>32-E;for(;P<32;++P)r=i+(d^h&(c^d))+m[P]+k[_[P]],i=h,h=d,d=c,c+=r<<(E=y[P])|r>>>32-E;for(;P<48;++P)r=i+(c^d^h)+m[P]+k[_[P]],i=h,h=d,d=c,c+=r<<(E=y[P])|r>>>32-E;for(;P<64;++P)r=i+(d^(c|~h))+m[P]+k[_[P]],i=h,h=d,d=c,c+=r<<(E=y[P])|r>>>32-E;x.h0=x.h0+i|0,x.h1=x.h1+c|0,x.h2=x.h2+d|0,x.h3=x.h3+h|0,U-=64}}},381:(Ne,Ae,$)=>{var v=$(3247);$(6076),Ne.exports=v.mgf=v.mgf||{},v.mgf.mgf1=v.mgf1},6076:(Ne,Ae,$)=>{var v=$(3247);$(2683),v.mgf=v.mgf||{},(Ne.exports=v.mgf.mgf1=v.mgf1=v.mgf1||{}).create=function(T){return{generate:function(y,m){for(var f=new v.util.ByteBuffer,C=Math.ceil(m/T.digestLength),b=0;b{var v=$(3247);v.pki=v.pki||{};var A=Ne.exports=v.pki.oids=v.oids=v.oids||{};function T(y,m){A[y]=m,A[m]=y}function _(y,m){A[y]=m}T("1.2.840.113549.1.1.1","rsaEncryption"),T("1.2.840.113549.1.1.4","md5WithRSAEncryption"),T("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),T("1.2.840.113549.1.1.7","RSAES-OAEP"),T("1.2.840.113549.1.1.8","mgf1"),T("1.2.840.113549.1.1.9","pSpecified"),T("1.2.840.113549.1.1.10","RSASSA-PSS"),T("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),T("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),T("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),T("1.3.101.112","EdDSA25519"),T("1.2.840.10040.4.3","dsa-with-sha1"),T("1.3.14.3.2.7","desCBC"),T("1.3.14.3.2.26","sha1"),T("1.3.14.3.2.29","sha1WithRSASignature"),T("2.16.840.1.101.3.4.2.1","sha256"),T("2.16.840.1.101.3.4.2.2","sha384"),T("2.16.840.1.101.3.4.2.3","sha512"),T("2.16.840.1.101.3.4.2.4","sha224"),T("2.16.840.1.101.3.4.2.5","sha512-224"),T("2.16.840.1.101.3.4.2.6","sha512-256"),T("1.2.840.113549.2.2","md2"),T("1.2.840.113549.2.5","md5"),T("1.2.840.113549.1.7.1","data"),T("1.2.840.113549.1.7.2","signedData"),T("1.2.840.113549.1.7.3","envelopedData"),T("1.2.840.113549.1.7.4","signedAndEnvelopedData"),T("1.2.840.113549.1.7.5","digestedData"),T("1.2.840.113549.1.7.6","encryptedData"),T("1.2.840.113549.1.9.1","emailAddress"),T("1.2.840.113549.1.9.2","unstructuredName"),T("1.2.840.113549.1.9.3","contentType"),T("1.2.840.113549.1.9.4","messageDigest"),T("1.2.840.113549.1.9.5","signingTime"),T("1.2.840.113549.1.9.6","counterSignature"),T("1.2.840.113549.1.9.7","challengePassword"),T("1.2.840.113549.1.9.8","unstructuredAddress"),T("1.2.840.113549.1.9.14","extensionRequest"),T("1.2.840.113549.1.9.20","friendlyName"),T("1.2.840.113549.1.9.21","localKeyId"),T("1.2.840.113549.1.9.22.1","x509Certificate"),T("1.2.840.113549.1.12.10.1.1","keyBag"),T("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),T("1.2.840.113549.1.12.10.1.3","certBag"),T("1.2.840.113549.1.12.10.1.4","crlBag"),T("1.2.840.113549.1.12.10.1.5","secretBag"),T("1.2.840.113549.1.12.10.1.6","safeContentsBag"),T("1.2.840.113549.1.5.13","pkcs5PBES2"),T("1.2.840.113549.1.5.12","pkcs5PBKDF2"),T("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),T("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),T("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),T("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),T("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),T("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),T("1.2.840.113549.2.7","hmacWithSHA1"),T("1.2.840.113549.2.8","hmacWithSHA224"),T("1.2.840.113549.2.9","hmacWithSHA256"),T("1.2.840.113549.2.10","hmacWithSHA384"),T("1.2.840.113549.2.11","hmacWithSHA512"),T("1.2.840.113549.3.7","des-EDE3-CBC"),T("2.16.840.1.101.3.4.1.2","aes128-CBC"),T("2.16.840.1.101.3.4.1.22","aes192-CBC"),T("2.16.840.1.101.3.4.1.42","aes256-CBC"),T("2.5.4.3","commonName"),T("2.5.4.4","surname"),T("2.5.4.5","serialNumber"),T("2.5.4.6","countryName"),T("2.5.4.7","localityName"),T("2.5.4.8","stateOrProvinceName"),T("2.5.4.9","streetAddress"),T("2.5.4.10","organizationName"),T("2.5.4.11","organizationalUnitName"),T("2.5.4.12","title"),T("2.5.4.13","description"),T("2.5.4.15","businessCategory"),T("2.5.4.17","postalCode"),T("2.5.4.42","givenName"),T("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),T("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),T("2.16.840.1.113730.1.1","nsCertType"),T("2.16.840.1.113730.1.13","nsComment"),_("2.5.29.1","authorityKeyIdentifier"),_("2.5.29.2","keyAttributes"),_("2.5.29.3","certificatePolicies"),_("2.5.29.4","keyUsageRestriction"),_("2.5.29.5","policyMapping"),_("2.5.29.6","subtreesConstraint"),_("2.5.29.7","subjectAltName"),_("2.5.29.8","issuerAltName"),_("2.5.29.9","subjectDirectoryAttributes"),_("2.5.29.10","basicConstraints"),_("2.5.29.11","nameConstraints"),_("2.5.29.12","policyConstraints"),_("2.5.29.13","basicConstraints"),T("2.5.29.14","subjectKeyIdentifier"),T("2.5.29.15","keyUsage"),_("2.5.29.16","privateKeyUsagePeriod"),T("2.5.29.17","subjectAltName"),T("2.5.29.18","issuerAltName"),T("2.5.29.19","basicConstraints"),_("2.5.29.20","cRLNumber"),_("2.5.29.21","cRLReason"),_("2.5.29.22","expirationDate"),_("2.5.29.23","instructionCode"),_("2.5.29.24","invalidityDate"),_("2.5.29.25","cRLDistributionPoints"),_("2.5.29.26","issuingDistributionPoint"),_("2.5.29.27","deltaCRLIndicator"),_("2.5.29.28","issuingDistributionPoint"),_("2.5.29.29","certificateIssuer"),_("2.5.29.30","nameConstraints"),T("2.5.29.31","cRLDistributionPoints"),T("2.5.29.32","certificatePolicies"),_("2.5.29.33","policyMappings"),_("2.5.29.34","policyConstraints"),T("2.5.29.35","authorityKeyIdentifier"),_("2.5.29.36","policyConstraints"),T("2.5.29.37","extKeyUsage"),_("2.5.29.46","freshestCRL"),_("2.5.29.54","inhibitAnyPolicy"),T("1.3.6.1.4.1.11129.2.4.2","timestampList"),T("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),T("1.3.6.1.5.5.7.3.1","serverAuth"),T("1.3.6.1.5.5.7.3.2","clientAuth"),T("1.3.6.1.5.5.7.3.3","codeSigning"),T("1.3.6.1.5.5.7.3.4","emailProtection"),T("1.3.6.1.5.5.7.3.8","timeStamping")},3740:(Ne,Ae,$)=>{var v=$(3247);if($(4210),$(4960),$(8544),$(6702),$(286),$(7749),$(591),$(8194),$(6279),$(3888),$(2683),typeof A>"u")var A=v.jsbn.BigInteger;var T=v.asn1,_=v.pki=v.pki||{};Ne.exports=_.pbe=v.pbe=v.pbe||{};var y=_.oids,m={name:"EncryptedPrivateKeyInfo",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},f={name:"PBES2Algorithms",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},C={name:"pkcs-12PbeParams",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"iterations"}]};function b(r,i){return r.start().update(i).digest().getBytes()}function x(r){var i;if(r){if(!(i=_.oids[T.derToOid(r)])){var c=new Error("Unsupported PRF OID.");throw c.oid=r,c.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],c}}else i="hmacWithSHA1";return k(i)}function k(r){var i=v.md;switch(r){case"hmacWithSHA224":i=v.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":r=r.substr(8).toLowerCase();break;default:var c=new Error("Unsupported PRF algorithm.");throw c.algorithm=r,c.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],c}if(!i||!(r in i))throw new Error("Unknown hash algorithm: "+r);return i[r].create()}_.encryptPrivateKeyInfo=function(r,i,c){(c=c||{}).saltSize=c.saltSize||8,c.count=c.count||2048,c.algorithm=c.algorithm||"aes128",c.prfAlgorithm=c.prfAlgorithm||"sha1";var E,P,U,d=v.random.getBytesSync(c.saltSize),h=c.count,g=T.integerToDer(h);if(0===c.algorithm.indexOf("aes")||"des"===c.algorithm){var X,te,z;switch(c.algorithm){case"aes128":E=16,X=16,te=y["aes128-CBC"],z=v.aes.createEncryptionCipher;break;case"aes192":E=24,X=16,te=y["aes192-CBC"],z=v.aes.createEncryptionCipher;break;case"aes256":E=32,X=16,te=y["aes256-CBC"],z=v.aes.createEncryptionCipher;break;case"des":E=8,X=8,te=y.desCBC,z=v.des.createEncryptionCipher;break;default:throw(W=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=c.algorithm,W}var Y="hmacWith"+c.prfAlgorithm.toUpperCase(),D=k(Y),N=v.pkcs5.pbkdf2(i,d,h,E,D),L=v.random.getBytesSync(X);(O=z(N)).start(L),O.update(T.toDer(r)),O.finish(),U=O.output.getBytes();var I=function a(r,i,c,d){var h=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,r),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,i.getBytes())]);return"hmacWithSHA1"!==d&&h.value.push(T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,v.util.hexToBytes(c.toString(16))),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(_.oids[d]).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])),h}(d,g,E,Y);P=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(y.pkcs5PBES2).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(y.pkcs5PBKDF2).getBytes()),I]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(te).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,L)])])])}else{var W;if("3des"!==c.algorithm)throw(W=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=c.algorithm,W;E=24;var O,B=new v.util.ByteBuffer(d);N=_.pbe.generatePkcs12Key(i,B,1,h,E),L=_.pbe.generatePkcs12Key(i,B,2,h,E),(O=v.des.createEncryptionCipher(N)).start(L),O.update(T.toDer(r)),O.finish(),U=O.output.getBytes(),P=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(y["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,d),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,g.getBytes())])])}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[P,T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,U)])},_.decryptPrivateKeyInfo=function(r,i){var c=null,d={},h=[];if(!T.validate(r,m,d,h)){var g=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw g.errors=h,g}var E=T.derToOid(d.encryptionOid),P=_.pbe.getCipher(E,d.encryptionParams,i),U=v.util.createBuffer(d.encryptedData);return P.update(U),P.finish()&&(c=T.fromDer(P.output)),c},_.encryptedPrivateKeyToPem=function(r,i){var c={type:"ENCRYPTED PRIVATE KEY",body:T.toDer(r).getBytes()};return v.pem.encode(c,{maxline:i})},_.encryptedPrivateKeyFromPem=function(r){var i=v.pem.decode(r)[0];if("ENCRYPTED PRIVATE KEY"!==i.type){var c=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw c.headerType=i.type,c}if(i.procType&&"ENCRYPTED"===i.procType.type)throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return T.fromDer(i.body)},_.encryptRsaPrivateKey=function(r,i,c){if(!(c=c||{}).legacy){var d=_.wrapRsaPrivateKey(_.privateKeyToAsn1(r));return d=_.encryptPrivateKeyInfo(d,i,c),_.encryptedPrivateKeyToPem(d)}var h,g,E,P;switch(c.algorithm){case"aes128":h="AES-128-CBC",E=16,g=v.random.getBytesSync(16),P=v.aes.createEncryptionCipher;break;case"aes192":h="AES-192-CBC",E=24,g=v.random.getBytesSync(16),P=v.aes.createEncryptionCipher;break;case"aes256":h="AES-256-CBC",E=32,g=v.random.getBytesSync(16),P=v.aes.createEncryptionCipher;break;case"3des":h="DES-EDE3-CBC",E=24,g=v.random.getBytesSync(8),P=v.des.createEncryptionCipher;break;case"des":h="DES-CBC",E=8,g=v.random.getBytesSync(8),P=v.des.createEncryptionCipher;break;default:var U=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+c.algorithm+'".');throw U.algorithm=c.algorithm,U}var te=P(v.pbe.opensslDeriveBytes(i,g.substr(0,8),E));te.start(g),te.update(T.toDer(_.privateKeyToAsn1(r))),te.finish();var z={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:h,parameters:v.util.bytesToHex(g).toUpperCase()},body:te.output.getBytes()};return v.pem.encode(z)},_.decryptRsaPrivateKey=function(r,i){var c=null,d=v.pem.decode(r)[0];if("ENCRYPTED PRIVATE KEY"!==d.type&&"PRIVATE KEY"!==d.type&&"RSA PRIVATE KEY"!==d.type)throw(h=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".')).headerType=h,h;if(d.procType&&"ENCRYPTED"===d.procType.type){var g,E;switch(d.dekInfo.algorithm){case"DES-CBC":g=8,E=v.des.createDecryptionCipher;break;case"DES-EDE3-CBC":g=24,E=v.des.createDecryptionCipher;break;case"AES-128-CBC":g=16,E=v.aes.createDecryptionCipher;break;case"AES-192-CBC":g=24,E=v.aes.createDecryptionCipher;break;case"AES-256-CBC":g=32,E=v.aes.createDecryptionCipher;break;case"RC2-40-CBC":g=5,E=function(z){return v.rc2.createDecryptionCipher(z,40)};break;case"RC2-64-CBC":g=8,E=function(z){return v.rc2.createDecryptionCipher(z,64)};break;case"RC2-128-CBC":g=16,E=function(z){return v.rc2.createDecryptionCipher(z,128)};break;default:var h;throw(h=new Error('Could not decrypt private key; unsupported encryption algorithm "'+d.dekInfo.algorithm+'".')).algorithm=d.dekInfo.algorithm,h}var P=v.util.hexToBytes(d.dekInfo.parameters),X=E(v.pbe.opensslDeriveBytes(i,P.substr(0,8),g));if(X.start(P),X.update(v.util.createBuffer(d.body)),!X.finish())return c;c=X.output.getBytes()}else c=d.body;return null!==(c="ENCRYPTED PRIVATE KEY"===d.type?_.decryptPrivateKeyInfo(T.fromDer(c),i):T.fromDer(c))&&(c=_.privateKeyFromAsn1(c)),c},_.pbe.generatePkcs12Key=function(r,i,c,d,h,g){var E,P;if(typeof g>"u"||null===g){if(!("sha1"in v.md))throw new Error('"sha1" hash algorithm unavailable.');g=v.md.sha1.create()}var U=g.digestLength,X=g.blockLength,te=new v.util.ByteBuffer,z=new v.util.ByteBuffer;if(null!=r){for(P=0;P=0;P--)_e>>=8,_e+=Z.at(P)+de.at(P),de.setAt(P,255&_e);j.putBuffer(de)}B=j,te.putBuffer(G)}return te.truncate(te.length()-h),te},_.pbe.getCipher=function(r,i,c){switch(r){case _.oids.pkcs5PBES2:return _.pbe.getCipherForPBES2(r,i,c);case _.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case _.oids["pbewithSHAAnd40BitRC2-CBC"]:return _.pbe.getCipherForPKCS12PBE(r,i,c);default:var d=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw d.oid=r,d.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],d}},_.pbe.getCipherForPBES2=function(r,i,c){var g,d={},h=[];if(!T.validate(i,f,d,h))throw(g=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=h,g;if((r=T.derToOid(d.kdfOid))!==_.oids.pkcs5PBKDF2)throw(g=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=r,g.supportedOids=["pkcs5PBKDF2"],g;if((r=T.derToOid(d.encOid))!==_.oids["aes128-CBC"]&&r!==_.oids["aes192-CBC"]&&r!==_.oids["aes256-CBC"]&&r!==_.oids["des-EDE3-CBC"]&&r!==_.oids.desCBC)throw(g=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=r,g.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],g;var U,X,E=d.kdfSalt,P=v.util.createBuffer(d.kdfIterationCount);switch(P=P.getInt(P.length()<<3),_.oids[r]){case"aes128-CBC":U=16,X=v.aes.createDecryptionCipher;break;case"aes192-CBC":U=24,X=v.aes.createDecryptionCipher;break;case"aes256-CBC":U=32,X=v.aes.createDecryptionCipher;break;case"des-EDE3-CBC":U=24,X=v.des.createDecryptionCipher;break;case"desCBC":U=8,X=v.des.createDecryptionCipher}var te=x(d.prfOid),z=v.pkcs5.pbkdf2(c,E,P,U,te),W=d.encIv,Y=X(z);return Y.start(W),Y},_.pbe.getCipherForPKCS12PBE=function(r,i,c){var d={},h=[];if(!T.validate(i,C,d,h))throw(g=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=h,g;var U,X,te,E=v.util.createBuffer(d.salt),P=v.util.createBuffer(d.iterations);switch(P=P.getInt(P.length()<<3),r){case _.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:U=24,X=8,te=v.des.startDecrypting;break;case _.oids["pbewithSHAAnd40BitRC2-CBC"]:U=5,X=8,te=function(N,L){var O=v.rc2.createDecryptionCipher(N,40);return O.start(L,null),O};break;default:var g;throw(g=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=r,g}var z=x(d.prfOid),W=_.pbe.generatePkcs12Key(c,E,1,P,U,z);return z.start(),te(W,_.pbe.generatePkcs12Key(c,E,2,P,X,z))},_.pbe.opensslDeriveBytes=function(r,i,c,d){if(typeof d>"u"||null===d){if(!("md5"in v.md))throw new Error('"md5" hash algorithm unavailable.');d=v.md.md5.create()}null===i&&(i="");for(var h=[b(d,r+i)],g=16,E=1;g{var v=$(3247);$(4600),$(6702),$(2683);var T,A=v.pkcs5=v.pkcs5||{};v.util.isNodejs&&!v.options.usePureJavaScript&&(T=$(5819)),Ne.exports=v.pbkdf2=A.pbkdf2=function(_,y,m,f,C,b){if("function"==typeof C&&(b=C,C=null),v.util.isNodejs&&!v.options.usePureJavaScript&&T.pbkdf2&&(null===C||"object"!=typeof C)&&(T.pbkdf2Sync.length>4||!C||"sha1"===C))return"string"!=typeof C&&(C="sha1"),_=Buffer.from(_,"binary"),y=Buffer.from(y,"binary"),b?4===T.pbkdf2Sync.length?T.pbkdf2(_,y,m,f,function(te,z){if(te)return b(te);b(null,z.toString("binary"))}):T.pbkdf2(_,y,m,f,C,function(te,z){if(te)return b(te);b(null,z.toString("binary"))}):4===T.pbkdf2Sync.length?T.pbkdf2Sync(_,y,m,f).toString("binary"):T.pbkdf2Sync(_,y,m,f,C).toString("binary");if((typeof C>"u"||null===C)&&(C="sha1"),"string"==typeof C){if(!(C in v.md.algorithms))throw new Error("Unknown hash algorithm: "+C);C=v.md[C].create()}var x=C.digestLength;if(f>4294967295*x){var k=new Error("Derived key is too long.");if(b)return b(k);throw k}var a=Math.ceil(f/x),r=f-(a-1)*x,i=v.hmac.create();i.start(C,_);var d,h,g,c="";if(!b){for(var E=1;E<=a;++E){i.start(null,null),i.update(y),i.update(v.util.int32ToBytes(E)),d=g=i.digest().getBytes();for(var P=2;P<=m;++P)i.start(null,null),i.update(g),h=i.digest().getBytes(),d=v.util.xorBytes(d,h,x),g=h;c+=Ea)return b(null,c);i.start(null,null),i.update(y),i.update(v.util.int32ToBytes(E)),d=g=i.digest().getBytes(),P=2,X()}function X(){if(P<=m)return i.start(null,null),i.update(g),h=i.digest().getBytes(),d=v.util.xorBytes(d,h,x),g=h,++P,v.util.setImmediate(X);c+=E{var v=$(3247);$(2683);var A=Ne.exports=v.pem=v.pem||{};function T(y){for(var m=y.name+": ",f=[],C=function(r,i){return" "+i},b=0;b65&&-1!==k){var a=m[k];","===a?(++k,m=m.substr(0,k)+"\r\n "+m.substr(k)):m=m.substr(0,k)+"\r\n"+a+m.substr(k+1),x=b-k-1,k=-1,++b}else(" "===m[b]||"\t"===m[b]||","===m[b])&&(k=b);return m}function _(y){return y.replace(/^\s+/,"")}A.encode=function(y,m){m=m||{};var C,f="-----BEGIN "+y.type+"-----\r\n";if(y.procType&&(f+=T(C={name:"Proc-Type",values:[String(y.procType.version),y.procType.type]})),y.contentDomain&&(f+=T(C={name:"Content-Domain",values:[y.contentDomain]})),y.dekInfo&&(C={name:"DEK-Info",values:[y.dekInfo.algorithm]},y.dekInfo.parameters&&C.values.push(y.dekInfo.parameters),f+=T(C)),y.headers)for(var b=0;b{var v=$(3247);$(2683),$(8194),$(6021);var A=Ne.exports=v.pkcs1=v.pkcs1||{};function T(_,y,m){m||(m=v.md.sha1.create());for(var f="",C=Math.ceil(y/m.digestLength),b=0;b>24&255,b>>16&255,b>>8&255,255&b);m.start(),m.update(_+x),f+=m.digest().getBytes()}return f.substring(0,y)}A.encode_rsa_oaep=function(_,y,m){var f,C,b,x;"string"==typeof m?(f=m,C=arguments[3]||void 0,b=arguments[4]||void 0):m&&(f=m.label||void 0,C=m.seed||void 0,b=m.md||void 0,m.mgf1&&m.mgf1.md&&(x=m.mgf1.md)),b?b.start():b=v.md.sha1.create(),x||(x=b);var k=Math.ceil(_.n.bitLength()/8),a=k-2*b.digestLength-2;if(y.length>a)throw(r=new Error("RSAES-OAEP input message length is too long.")).length=y.length,r.maxLength=a,r;f||(f=""),b.update(f,"raw");for(var i=b.digest(),c="",d=a-y.length,h=0;h{var v=$(3247);$(4960),$(4600),$(286),$(4448),$(3740),$(8194),$(3888),$(6021),$(2683),$(5056);var A=v.asn1,T=v.pki,_=Ne.exports=v.pkcs12=v.pkcs12||{},y={name:"ContentInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:A.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},m={name:"PFX",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"version"},y,{name:"PFX.macData",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:A.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:A.Class.UNIVERSAL,type:A.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:A.Class.UNIVERSAL,type:A.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},f={name:"SafeBag",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:A.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},C={name:"Attribute",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0,capture:"values"}]},b={name:"CertBag",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:A.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:A.Class.UNIVERSAL,type:A.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function x(d,h,g,E){for(var P=[],U=0;U=0&&P.push(te)}}return P}function k(d){if(d.composed||d.constructed){for(var h=v.util.createBuffer(),g=0;g0&&(U=A.create(A.Class.UNIVERSAL,A.Type.SET,!0,z));var W=[],Y=[];null!==h&&(Y=v.util.isArray(h)?h:[h]);for(var D=[],N=0;N0){var B=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,D),F=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.data).getBytes()),A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,A.toDer(B).getBytes())])]);W.push(F)}var H=null;if(null!==d){var G=T.wrapRsaPrivateKey(T.privateKeyToAsn1(d));H=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,null===g?[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.keyBag).getBytes()),A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[G]),U]:[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.pkcs8ShroudedKeyBag).getBytes()),A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[T.encryptPrivateKeyInfo(G,g,E)]),U]);var R=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[H]),Z=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.data).getBytes()),A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,A.toDer(R).getBytes())])]);W.push(Z)}var j,oe=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,W);if(E.useMac){var te=v.md.sha1.create(),de=new v.util.ByteBuffer(v.random.getBytes(E.saltSize)),_e=E.count,st=(d=_.generateKey(g,de,3,_e,20),v.hmac.create());st.start(te,d),st.update(A.toDer(oe).getBytes());var ne=st.getMac();j=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.sha1).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")]),A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,ne.getBytes())]),A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,de.getBytes()),A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(_e).getBytes())])}return A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(3).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(T.oids.data).getBytes()),A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,A.toDer(oe).getBytes())])]),j])},_.generateKey=v.pbe.generatePkcs12Key},8041:(Ne,Ae,$)=>{var v=$(3247);$(4210),$(4960),$(8544),$(286),$(591),$(4448),$(8194),$(2683),$(5056);var A=v.asn1,T=Ne.exports=v.pkcs7=v.pkcs7||{};function _(d){var h={},g=[];if(!A.validate(d,T.asn1.recipientInfoValidator,h,g)){var E=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw E.errors=g,E}return{version:h.version.charCodeAt(0),issuer:v.pki.RDNAttributesAsArray(h.issuer),serialNumber:v.util.createBuffer(h.serial).toHex(),encryptedContent:{algorithm:A.derToOid(h.encAlgorithm),parameter:h.encParameter?h.encParameter.value:void 0,content:h.encKey}}}function y(d){return A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(d.version).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[v.pki.distinguishedNameToAsn1({attributes:d.issuer}),A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,v.util.hexToBytes(d.serialNumber))]),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(d.encryptedContent.algorithm).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")]),A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,d.encryptedContent.content)])}function f(d){for(var h=[],g=0;g0){for(var g=A.create(A.Class.CONTEXT_SPECIFIC,1,!0,[]),E=0;E=g&&P0&&X.value[0].value.push(A.create(A.Class.CONTEXT_SPECIFIC,0,!0,E)),U.length>0&&X.value[0].value.push(A.create(A.Class.CONTEXT_SPECIFIC,1,!0,U)),X.value[0].value.push(A.create(A.Class.UNIVERSAL,A.Type.SET,!0,d.signerInfos)),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(d.type).getBytes()),X])},addSigner:function(E){var P=E.issuer,U=E.serialNumber;if(E.certificate){var X=E.certificate;"string"==typeof X&&(X=v.pki.certificateFromPem(X)),P=X.issuer.attributes,U=X.serialNumber}var te=E.key;if(!te)throw new Error("Could not add PKCS#7 signer; no private key specified.");"string"==typeof te&&(te=v.pki.privateKeyFromPem(te));var z=E.digestAlgorithm||v.pki.oids.sha1;switch(z){case v.pki.oids.sha1:case v.pki.oids.sha256:case v.pki.oids.sha384:case v.pki.oids.sha512:case v.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+z)}var W=E.authenticatedAttributes||[];if(W.length>0){for(var Y=!1,D=!1,N=0;N{var v=$(3247);$(4960),$(2683);var A=v.asn1,T=Ne.exports=v.pkcs7asn1=v.pkcs7asn1||{};v.pkcs7=v.pkcs7||{},v.pkcs7.asn1=T;var _={name:"ContentInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};T.contentInfoValidator=_;var y={name:"EncryptedContentInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:A.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};T.envelopedDataValidator={name:"EnvelopedData",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(y)},T.encryptedDataValidator={name:"EncryptedData",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"version"}].concat(y)},T.signedDataValidator={name:"SignedData",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},_,{name:"SignedData.Certificates",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,capture:"signerInfos",optional:!0,value:[{name:"SignerInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:A.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:A.Class.UNIVERSAL,type:A.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]}]}]},T.recipientInfoValidator={name:"RecipientInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:A.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:A.Class.UNIVERSAL,type:A.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}},2037:(Ne,Ae,$)=>{var v=$(3247);$(4960),$(286),$(3740),$(591),$(7749),$(3059),$(6873),$(3888),$(2683),$(5056);var A=v.asn1,T=Ne.exports=v.pki=v.pki||{};T.pemToDer=function(_){var y=v.pem.decode(_)[0];if(y.procType&&"ENCRYPTED"===y.procType.type)throw new Error("Could not convert PEM to DER; PEM is encrypted.");return v.util.createBuffer(y.body)},T.privateKeyFromPem=function(_){var y=v.pem.decode(_)[0];if("PRIVATE KEY"!==y.type&&"RSA PRIVATE KEY"!==y.type){var m=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw m.headerType=y.type,m}if(y.procType&&"ENCRYPTED"===y.procType.type)throw new Error("Could not convert private key from PEM; PEM is encrypted.");var f=A.fromDer(y.body);return T.privateKeyFromAsn1(f)},T.privateKeyToPem=function(_,y){var m={type:"RSA PRIVATE KEY",body:A.toDer(T.privateKeyToAsn1(_)).getBytes()};return v.pem.encode(m,{maxline:y})},T.privateKeyInfoToPem=function(_,y){var m={type:"PRIVATE KEY",body:A.toDer(_).getBytes()};return v.pem.encode(m,{maxline:y})}},499:(Ne,Ae,$)=>{var v=$(3247);$(2683),$(5471),$(8194),function(){if(v.prime)Ne.exports=v.prime;else{var A=Ne.exports=v.prime=v.prime||{},T=v.jsbn.BigInteger,_=[6,4,2,4,2,4,6,2],y=new T(null);y.fromInt(30);var m=function(r,i){return r|i};A.generateProbablePrime=function(r,i,c){"function"==typeof i&&(c=i,i={});var d=(i=i||{}).algorithm||"PRIMEINC";"string"==typeof d&&(d={name:d}),d.options=d.options||{};var h=i.prng||v.random;if("PRIMEINC"===d.name)return function f(r,i,c,d){return"workers"in c?function x(r,i,c,d){if(typeof Worker>"u")return C(r,i,c,d);var h=k(r,i),g=c.workers,E=c.workLoad||100,P=30*E/8,U=c.workerScript||"forge/prime.worker.js";if(-1===g)return v.util.estimateCores(function(te,z){te&&(z=2),g=z-1,X()});function X(){g=Math.max(1,g);for(var te=[],z=0;zr&&(h=k(r,i));var I=h.toString(16);N.target.postMessage({hex:I,workLoad:E}),h.dAddOffset(P,0)}}}X()}(r,i,c,d):C(r,i,c,d)}(r,{nextBytes:function(E){for(var P=h.getBytesSync(E.length),U=0;Ui&&(r=k(i,c)),r.isProbablePrime(h))return E(null,r);r.dAddOffset(_[d++%8],0)}while(g<0||+new Date-P{var v=$(3247);$(2683);var A=null;v.util.isNodejs&&!v.options.usePureJavaScript&&!process.versions["node-webkit"]&&(A=$(5819)),(Ne.exports=v.prng=v.prng||{}).create=function(_){for(var y={plugin:_,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},m=_.md,f=new Array(32),C=0;C<32;++C)f[C]=m.create();function x(){if(y.pools[0].messageLength>=32)return k();y.collect(y.seedFileSync(32-y.pools[0].messageLength<<5)),k()}function k(){y.reseeds=4294967295===y.reseeds?0:y.reseeds+1;var r=y.plugin.md.create();r.update(y.keyBytes);for(var i=1,c=0;c<32;++c)y.reseeds%i==0&&(r.update(y.pools[c].digest().getBytes()),y.pools[c].start()),i<<=1;y.keyBytes=r.digest().getBytes(),r.start(),r.update(y.keyBytes);var d=r.digest().getBytes();y.key=y.plugin.formatKey(y.keyBytes),y.seed=y.plugin.formatSeed(d),y.generated=0}function a(r){var i=null,c=v.util.globalScope,d=c.crypto||c.msCrypto;d&&d.getRandomValues&&(i=function(W){return d.getRandomValues(W)});var h=v.util.createBuffer();if(i)for(;h.length()>16)))<<16,z=4294967295&(X=(2147483647&(X+=U>>15))+(X>>31)),P=0;P<3;++P)te=z>>>(P<<3),te^=Math.floor(256*Math.random()),h.putByte(255&te);return h.getBytes(r)}return y.pools=f,y.pool=0,y.generate=function(r,i){if(!i)return y.generateSync(r);var c=y.plugin.cipher,d=y.plugin.increment,h=y.plugin.formatKey,g=y.plugin.formatSeed,E=v.util.createBuffer();y.key=null,function P(U){if(U)return i(U);if(E.length()>=r)return i(null,E.getBytes(r));if(y.generated>1048575&&(y.key=null),null===y.key)return v.util.nextTick(function(){!function b(r){if(y.pools[0].messageLength>=32)return k(),r();y.seedFile(32-y.pools[0].messageLength<<5,function(c,d){if(c)return r(c);y.collect(d),k(),r()})}(P)});var X=c(y.key,y.seed);y.generated+=X.length,E.putBytes(X),y.key=h(c(y.key,d(y.seed))),y.seed=g(c(y.key,y.seed)),v.util.setImmediate(P)}()},y.generateSync=function(r){var i=y.plugin.cipher,c=y.plugin.increment,d=y.plugin.formatKey,h=y.plugin.formatSeed;y.key=null;for(var g=v.util.createBuffer();g.length()1048575&&(y.key=null),null===y.key&&x();var E=i(y.key,y.seed);y.generated+=E.length,g.putBytes(E),y.key=d(i(y.key,c(y.seed))),y.seed=h(i(y.key,y.seed))}return g.getBytes(r)},A?(y.seedFile=function(r,i){A.randomBytes(r,function(c,d){if(c)return i(c);i(null,d.toString())})},y.seedFileSync=function(r){return A.randomBytes(r).toString()}):(y.seedFile=function(r,i){try{i(null,a(r))}catch(c){i(c)}},y.seedFileSync=a),y.collect=function(r){for(var i=r.length,c=0;c>d&255);y.collect(c)},y.registerWorker=function(r){r===self?y.seedFile=function(c,d){self.addEventListener("message",function h(g){var E=g.data;E.forge&&E.forge.prng&&(self.removeEventListener("message",h),d(E.forge.prng.err,E.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:c}}})}:r.addEventListener("message",function(c){var d=c.data;d.forge&&d.forge.prng&&y.seedFile(d.forge.prng.needed,function(h,g){r.postMessage({forge:{prng:{err:h,bytes:g}}})})})},y}},6873:(Ne,Ae,$)=>{var v=$(3247);$(8194),$(2683),(Ne.exports=v.pss=v.pss||{}).create=function(T){3===arguments.length&&(T={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var C,_=T.md,y=T.mgf,m=_.digestLength,f=T.salt||null;if("string"==typeof f&&(f=v.util.createBuffer(f)),"saltLength"in T)C=T.saltLength;else{if(null===f)throw new Error("Salt length not specified or specific salt not given.");C=f.length()}if(null!==f&&f.length()!==C)throw new Error("Given salt length does not match length of given salt.");var b=T.prng||v.random;return{encode:function(k,a){var r,h,i=a-1,c=Math.ceil(i/8),d=k.digest().getBytes();if(c>8*c-i&255;return(z=String.fromCharCode(z.charCodeAt(0)&~W)+z.substr(1))+E+String.fromCharCode(188)},verify:function(k,a,r){var i,c=r-1,d=Math.ceil(c/8);if(a=a.substr(-d),d>8*d-c&255;if(g.charCodeAt(0)&P)throw new Error("Bits beyond keysize not zero as expected.");var U=y.generate(E,h),X="";for(i=0;i{var v=$(3247);$(4210),$(5501),$(1414),$(2683),v.random&&v.random.getBytes?Ne.exports=v.random:function(A){var T={},_=new Array(4),y=v.util.createBuffer();function m(){var r=v.prng.create(T);return r.getBytes=function(i,c){return r.generate(i,c)},r.getBytesSync=function(i){return r.generate(i)},r}T.formatKey=function(r){var i=v.util.createBuffer(r);return(r=new Array(4))[0]=i.getInt32(),r[1]=i.getInt32(),r[2]=i.getInt32(),r[3]=i.getInt32(),v.aes._expandKey(r,!1)},T.formatSeed=function(r){var i=v.util.createBuffer(r);return(r=new Array(4))[0]=i.getInt32(),r[1]=i.getInt32(),r[2]=i.getInt32(),r[3]=i.getInt32(),r},T.cipher=function(r,i){return v.aes._updateBlock(r,i,_,!1),y.putInt32(_[0]),y.putInt32(_[1]),y.putInt32(_[2]),y.putInt32(_[3]),y.getBytes()},T.increment=function(r){return++r[3],r},T.md=v.md.sha256;var f=m(),C=null,b=v.util.globalScope,x=b.crypto||b.msCrypto;if(x&&x.getRandomValues&&(C=function(r){return x.getRandomValues(r)}),v.options.usePureJavaScript||!v.util.isNodejs&&!C){if(typeof window>"u"||window,f.collectInt(+new Date,32),typeof navigator<"u"){var k="";for(var a in navigator)try{"string"==typeof navigator[a]&&(k+=navigator[a])}catch{}f.collect(k),k=null}A&&(A().mousemove(function(r){f.collectInt(r.clientX,16),f.collectInt(r.clientY,16)}),A().keypress(function(r){f.collectInt(r.charCode,8)}))}if(v.random)for(var a in f)v.random[a]=f[a];else v.random=f;v.random.createInstance=m,Ne.exports=v.random}(typeof jQuery<"u"?jQuery:null)},6279:(Ne,Ae,$)=>{var v=$(3247);$(2683);var A=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],T=[1,2,3,5],_=function(f,C){return f<>16-C},y=function(f,C){return(65535&f)>>C|f<<16-C&65535};Ne.exports=v.rc2=v.rc2||{},v.rc2.expandKey=function(f,C){"string"==typeof f&&(f=v.util.createBuffer(f)),C=C||128;var i,b=f,x=f.length(),k=C,a=Math.ceil(k/8),r=255>>(7&k);for(i=x;i<128;i++)b.putByte(A[b.at(i-1)+b.at(i-x)&255]);for(b.setAt(128-a,A[b.at(128-a)&r]),i=127-a;i>=0;i--)b.setAt(i,A[b.at(i+1)^b.at(i+a)]);return b};var m=function(f,C,b){var i,c,d,h,x=!1,k=null,a=null,r=null,g=[];for(f=v.rc2.expandKey(f,C),d=0;d<64;d++)g.push(f.getInt16Le());b?(i=function(U){for(d=0;d<4;d++)U[d]+=g[h]+(U[(d+3)%4]&U[(d+2)%4])+(~U[(d+3)%4]&U[(d+1)%4]),U[d]=_(U[d],T[d]),h++},c=function(U){for(d=0;d<4;d++)U[d]+=g[63&U[(d+3)%4]]}):(i=function(U){for(d=3;d>=0;d--)U[d]=y(U[d],T[d]),U[d]-=g[h]+(U[(d+3)%4]&U[(d+2)%4])+(~U[(d+3)%4]&U[(d+1)%4]),h--},c=function(U){for(d=3;d>=0;d--)U[d]-=g[63&U[(d+3)%4]]});var E=function(U){var X=[];for(d=0;d<4;d++){var te=k.getInt16Le();null!==r&&(b?te^=r.getInt16Le():r.putInt16Le(te)),X.push(65535&te)}h=b?0:63;for(var z=0;z=8;)E([[5,i],[1,c],[6,i],[1,c],[5,i]])},finish:function(U){var X=!0;if(b)if(U)X=U(8,k,!b);else{var te=8===k.length()?8:8-k.length();k.fillWithByte(te,te)}if(X&&(x=!0,P.update()),!b&&(X=0===k.length()))if(U)X=U(8,a,!b);else{var z=a.length(),W=a.at(z-1);W>z?X=!1:a.truncate(W)}return X}}};v.rc2.startEncrypting=function(f,C,b){var x=v.rc2.createEncryptionCipher(f,128);return x.start(C,b),x},v.rc2.createEncryptionCipher=function(f,C){return m(f,C,!0)},v.rc2.startDecrypting=function(f,C,b){var x=v.rc2.createDecryptionCipher(f,128);return x.start(C,b),x},v.rc2.createDecryptionCipher=function(f,C){return m(f,C,!1)}},3888:(Ne,Ae,$)=>{var v=$(3247);if($(4960),$(5471),$(286),$(8896),$(499),$(8194),$(2683),typeof A>"u")var A=v.jsbn.BigInteger;var T=v.util.isNodejs?$(5819):null,_=v.asn1,y=v.util;v.pki=v.pki||{},Ne.exports=v.pki.rsa=v.rsa=v.rsa||{};var m=v.pki,f=[6,4,2,4,2,4,6,2],C={name:"PrivateKeyInfo",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:_.Class.UNIVERSAL,type:_.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:_.Class.UNIVERSAL,type:_.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},b={name:"RSAPrivateKey",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},x={name:"RSAPublicKey",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:_.Class.UNIVERSAL,type:_.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},k=v.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:_.Class.UNIVERSAL,type:_.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:_.Class.UNIVERSAL,type:_.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},a={name:"DigestInfo",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:_.Class.UNIVERSAL,type:_.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:_.Class.UNIVERSAL,type:_.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:_.Class.UNIVERSAL,type:_.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:_.Class.UNIVERSAL,type:_.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},r=function(D){if(!(D.algorithm in m.oids)){var L=new Error("Unknown message digest algorithm.");throw L.algorithm=D.algorithm,L}var O=_.oidToDer(m.oids[D.algorithm]).getBytes(),I=_.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[]),B=_.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[]);B.value.push(_.create(_.Class.UNIVERSAL,_.Type.OID,!1,O)),B.value.push(_.create(_.Class.UNIVERSAL,_.Type.NULL,!1,""));var F=_.create(_.Class.UNIVERSAL,_.Type.OCTETSTRING,!1,D.digest().getBytes());return I.value.push(B),I.value.push(F),_.toDer(I).getBytes()},i=function(D,N,L){if(L)return D.modPow(N.e,N.n);if(!N.p||!N.q)return D.modPow(N.d,N.n);var O;N.dP||(N.dP=N.d.mod(N.p.subtract(A.ONE))),N.dQ||(N.dQ=N.d.mod(N.q.subtract(A.ONE))),N.qInv||(N.qInv=N.q.modInverse(N.p));do{O=new A(v.util.bytesToHex(v.random.getBytes(N.n.bitLength()/8)),16)}while(O.compareTo(N.n)>=0||!O.gcd(N.n).equals(A.ONE));for(var I=(D=D.multiply(O.modPow(N.e,N.n)).mod(N.n)).mod(N.p).modPow(N.dP,N.p),B=D.mod(N.q).modPow(N.dQ,N.q);I.compareTo(B)<0;)I=I.add(N.p);var F=I.subtract(B).multiply(N.qInv).mod(N.p).multiply(N.q).add(B);return F.multiply(O.modInverse(N.n)).mod(N.n)};function c(D,N,L){var O=v.util.createBuffer(),I=Math.ceil(N.n.bitLength()/8);if(D.length>I-11){var B=new Error("Message is too long for PKCS#1 v1.5 padding.");throw B.length=D.length,B.max=I-11,B}O.putByte(0),O.putByte(L);var H,F=I-3-D.length;if(0===L||1===L){H=0===L?0:255;for(var G=0;G0;){var R=0,Z=v.random.getBytes(F);for(G=0;G"u")throw new Error("Encryption block is invalid.");var G=0;if(0===H){G=I-3-O;for(var R=0;R1;){if(255!==B.getByte()){--B.read;break}++G}else if(2===H)for(G=0;B.length()>1;){if(0===B.getByte()){--B.read;break}++G}if(0!==B.getByte()||G!==I-3-B.length())throw new Error("Encryption block is invalid.");return B.getBytes()}function g(D){var N=D.toString(16);N[0]>="8"&&(N="00"+N);var L=v.util.hexToBytes(N);return L.length>1&&(0===L.charCodeAt(0)&&!(128&L.charCodeAt(1))||255===L.charCodeAt(0)&&128==(128&L.charCodeAt(1)))?L.substr(1):L}function E(D){return D<=100?27:D<=150?18:D<=200?15:D<=250?12:D<=300?9:D<=350?8:D<=400?7:D<=500?6:D<=600?5:D<=800?4:D<=1250?3:2}function P(D){return v.util.isNodejs&&"function"==typeof T[D]}function U(D){return typeof y.globalScope<"u"&&"object"==typeof y.globalScope.crypto&&"object"==typeof y.globalScope.crypto.subtle&&"function"==typeof y.globalScope.crypto.subtle[D]}function X(D){return typeof y.globalScope<"u"&&"object"==typeof y.globalScope.msCrypto&&"object"==typeof y.globalScope.msCrypto.subtle&&"function"==typeof y.globalScope.msCrypto.subtle[D]}function te(D){for(var N=v.util.hexToBytes(D.toString(16)),L=new Uint8Array(N.length),O=0;O0;)R.putByte(0),--Z;return R.putBytes(v.util.hexToBytes(G)),R.getBytes()},m.rsa.decrypt=function(D,N,L,O){var I=Math.ceil(N.n.bitLength()/8);if(D.length!==I){var B=new Error("Encrypted message length is invalid.");throw B.length=D.length,B.expected=I,B}var F=new A(v.util.createBuffer(D).toHex(),16);if(F.compareTo(N.n)>=0)throw new Error("Encrypted message is invalid.");for(var G=i(F,N,L).toString(16),R=v.util.createBuffer(),Z=I-Math.ceil(G.length/2);Z>0;)R.putByte(0),--Z;return R.putBytes(v.util.hexToBytes(G)),!1!==O?d(R.getBytes(),N,L):R.getBytes()},m.rsa.createKeyPairGenerationState=function(D,N,L){"string"==typeof D&&(D=parseInt(D,10)),D=D||2048;var F,O=(L=L||{}).prng||v.random,I={nextBytes:function(H){for(var G=O.getBytesSync(H.length),R=0;R>1,pBits:D-(D>>1),pqState:0,num:null,keys:null}).e.fromInt(F.eInt),F},m.rsa.stepKeyPairGenerationState=function(D,N){"algorithm"in D||(D.algorithm="PRIMEINC");var L=new A(null);L.fromInt(30);for(var F,O=0,I=function(oe,j){return oe|j},B=+new Date,H=0;null===D.keys&&(N<=0||HG?D.pqState=0:D.num.isProbablePrime(E(D.num.bitLength()))?++D.pqState:D.num.dAddOffset(f[O++%8],0):2===D.pqState?D.pqState=0===D.num.subtract(A.ONE).gcd(D.e).compareTo(A.ONE)?3:0:3===D.pqState&&(D.pqState=0,null===D.p?D.p=D.num:D.q=D.num,null!==D.p&&null!==D.q&&++D.state,D.num=null)}else if(1===D.state)D.p.compareTo(D.q)<0&&(D.num=D.p,D.p=D.q,D.q=D.num),++D.state;else if(2===D.state)D.p1=D.p.subtract(A.ONE),D.q1=D.q.subtract(A.ONE),D.phi=D.p1.multiply(D.q1),++D.state;else if(3===D.state)0===D.phi.gcd(D.e).compareTo(A.ONE)?++D.state:(D.p=null,D.q=null,D.state=0);else if(4===D.state)D.n=D.p.multiply(D.q),D.n.bitLength()===D.bits?++D.state:(D.q=null,D.state=0);else if(5===D.state){var Z=D.e.modInverse(D.phi);D.keys={privateKey:m.rsa.setPrivateKey(D.n,D.e,Z,D.p,D.q,Z.mod(D.p1),Z.mod(D.q1),D.q.modInverse(D.p)),publicKey:m.rsa.setPublicKey(D.n,D.e)}}H+=(F=+new Date)-B,B=F}return null!==D.keys},m.rsa.generateKeyPair=function(D,N,L,O){if(1===arguments.length?"object"==typeof D?(L=D,D=void 0):"function"==typeof D&&(O=D,D=void 0):2===arguments.length?"number"==typeof D?"function"==typeof N?(O=N,N=void 0):"number"!=typeof N&&(L=N,N=void 0):(L=D,O=N,D=void 0,N=void 0):3===arguments.length&&("number"==typeof N?"function"==typeof L&&(O=L,L=void 0):(O=L,L=N,N=void 0)),L=L||{},void 0===D&&(D=L.bits||2048),void 0===N&&(N=L.e||65537),!v.options.usePureJavaScript&&!L.prng&&D>=256&&D<=16384&&(65537===N||3===N))if(O){if(P("generateKeyPair"))return T.generateKeyPair("rsa",{modulusLength:D,publicExponent:N,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(H,G,R){if(H)return O(H);O(null,{privateKey:m.privateKeyFromPem(R),publicKey:m.publicKeyFromPem(G)})});if(U("generateKey")&&U("exportKey"))return y.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:D,publicExponent:te(N),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(H){return y.globalScope.crypto.subtle.exportKey("pkcs8",H.privateKey)}).then(void 0,function(H){O(H)}).then(function(H){if(H){var G=m.privateKeyFromAsn1(_.fromDer(v.util.createBuffer(H)));O(null,{privateKey:G,publicKey:m.setRsaPublicKey(G.n,G.e)})}});if(X("generateKey")&&X("exportKey")){var I=y.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:D,publicExponent:te(N),hash:{name:"SHA-256"}},!0,["sign","verify"]);return I.oncomplete=function(H){var R=y.globalScope.msCrypto.subtle.exportKey("pkcs8",H.target.result.privateKey);R.oncomplete=function(Z){var j=m.privateKeyFromAsn1(_.fromDer(v.util.createBuffer(Z.target.result)));O(null,{privateKey:j,publicKey:m.setRsaPublicKey(j.n,j.e)})},R.onerror=function(Z){O(Z)}},void(I.onerror=function(H){O(H)})}}else if(P("generateKeyPairSync")){var B=T.generateKeyPairSync("rsa",{modulusLength:D,publicExponent:N,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:m.privateKeyFromPem(B.privateKey),publicKey:m.publicKeyFromPem(B.publicKey)}}var F=m.rsa.createKeyPairGenerationState(D,N,L);if(!O)return m.rsa.stepKeyPairGenerationState(F,0),F.keys;!function h(D,N,L){"function"==typeof N&&(L=N,N={});var O={algorithm:{name:(N=N||{}).algorithm||"PRIMEINC",options:{workers:N.workers||2,workLoad:N.workLoad||100,workerScript:N.workerScript}}};function I(){B(D.pBits,function(H,G){return H?L(H):(D.p=G,null!==D.q?F(H,D.q):void B(D.qBits,F))})}function B(H,G){v.prime.generateProbablePrime(H,O,G)}function F(H,G){if(H)return L(H);if(D.q=G,D.p.compareTo(D.q)<0){var R=D.p;D.p=D.q,D.q=R}if(0!==D.p.subtract(A.ONE).gcd(D.e).compareTo(A.ONE))return D.p=null,void I();if(0!==D.q.subtract(A.ONE).gcd(D.e).compareTo(A.ONE))return D.q=null,void B(D.qBits,F);if(D.p1=D.p.subtract(A.ONE),D.q1=D.q.subtract(A.ONE),D.phi=D.p1.multiply(D.q1),0!==D.phi.gcd(D.e).compareTo(A.ONE))return D.p=D.q=null,void I();if(D.n=D.p.multiply(D.q),D.n.bitLength()!==D.bits)return D.q=null,void B(D.qBits,F);var Z=D.e.modInverse(D.phi);D.keys={privateKey:m.rsa.setPrivateKey(D.n,D.e,Z,D.p,D.q,Z.mod(D.p1),Z.mod(D.q1),D.q.modInverse(D.p)),publicKey:m.rsa.setPublicKey(D.n,D.e)},L(null,D.keys)}"prng"in N&&(O.prng=N.prng),I()}(F,L,O)},m.setRsaPublicKey=m.rsa.setPublicKey=function(D,N){var L={n:D,e:N,encrypt:function(O,I,B){if("string"==typeof I?I=I.toUpperCase():void 0===I&&(I="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===I)I={encode:function(H,G,R){return c(H,G,2).getBytes()}};else if("RSA-OAEP"===I||"RSAES-OAEP"===I)I={encode:function(H,G){return v.pkcs1.encode_rsa_oaep(G,H,B)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(I))I={encode:function(H){return H}};else if("string"==typeof I)throw new Error('Unsupported encryption scheme: "'+I+'".');var F=I.encode(O,L,!0);return m.rsa.encrypt(F,L,!0)},verify:function(O,I,B,F){"string"==typeof B?B=B.toUpperCase():void 0===B&&(B="RSASSA-PKCS1-V1_5"),void 0===F&&(F={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in F||(F._parseAllDigestBytes=!0),"RSASSA-PKCS1-V1_5"===B?B={verify:function(G,R){R=d(R,L,!0);var Z=_.fromDer(R,{parseAllBytes:F._parseAllDigestBytes}),oe={},j=[];if(!_.validate(Z,a,oe,j))throw(de=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.")).errors=j,de;var de,_e=_.derToOid(oe.algorithmIdentifier);if(_e!==v.oids.md2&&_e!==v.oids.md5&&_e!==v.oids.sha1&&_e!==v.oids.sha224&&_e!==v.oids.sha256&&_e!==v.oids.sha384&&_e!==v.oids.sha512&&_e!==v.oids["sha512-224"]&&_e!==v.oids["sha512-256"])throw(de=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.")).oid=_e,de;if((_e===v.oids.md2||_e===v.oids.md5)&&!("parameters"in oe))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return G===oe.digest}}:("NONE"===B||"NULL"===B||null===B)&&(B={verify:function(G,R){return G===d(R,L,!0)}});var H=m.rsa.decrypt(I,L,!0,!1);return B.verify(O,H,L.n.bitLength())}};return L},m.setRsaPrivateKey=m.rsa.setPrivateKey=function(D,N,L,O,I,B,F,H){var G={n:D,e:N,d:L,p:O,q:I,dP:B,dQ:F,qInv:H,decrypt:function(R,Z,oe){"string"==typeof Z?Z=Z.toUpperCase():void 0===Z&&(Z="RSAES-PKCS1-V1_5");var j=m.rsa.decrypt(R,G,!1,!1);if("RSAES-PKCS1-V1_5"===Z)Z={decode:d};else if("RSA-OAEP"===Z||"RSAES-OAEP"===Z)Z={decode:function(de,_e){return v.pkcs1.decode_rsa_oaep(_e,de,oe)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(Z))throw new Error('Unsupported encryption scheme: "'+Z+'".');Z={decode:function(de){return de}}}return Z.decode(j,G,!1)},sign:function(R,Z){var oe=!1;"string"==typeof Z&&(Z=Z.toUpperCase()),void 0===Z||"RSASSA-PKCS1-V1_5"===Z?(Z={encode:r},oe=1):("NONE"===Z||"NULL"===Z||null===Z)&&(Z={encode:function(){return R}},oe=1);var j=Z.encode(R,G.n.bitLength());return m.rsa.encrypt(j,G,oe)}};return G},m.wrapRsaPrivateKey=function(D){return _.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,_.integerToDer(0).getBytes()),_.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.OID,!1,_.oidToDer(m.oids.rsaEncryption).getBytes()),_.create(_.Class.UNIVERSAL,_.Type.NULL,!1,"")]),_.create(_.Class.UNIVERSAL,_.Type.OCTETSTRING,!1,_.toDer(D).getBytes())])},m.privateKeyFromAsn1=function(D){var I,B,F,H,G,R,Z,oe,N={},L=[];if(_.validate(D,C,N,L)&&(D=_.fromDer(v.util.createBuffer(N.privateKey))),!_.validate(D,b,N={},L=[])){var O=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw O.errors=L,O}return I=v.util.createBuffer(N.privateKeyModulus).toHex(),B=v.util.createBuffer(N.privateKeyPublicExponent).toHex(),F=v.util.createBuffer(N.privateKeyPrivateExponent).toHex(),H=v.util.createBuffer(N.privateKeyPrime1).toHex(),G=v.util.createBuffer(N.privateKeyPrime2).toHex(),R=v.util.createBuffer(N.privateKeyExponent1).toHex(),Z=v.util.createBuffer(N.privateKeyExponent2).toHex(),oe=v.util.createBuffer(N.privateKeyCoefficient).toHex(),m.setRsaPrivateKey(new A(I,16),new A(B,16),new A(F,16),new A(H,16),new A(G,16),new A(R,16),new A(Z,16),new A(oe,16))},m.privateKeyToAsn1=m.privateKeyToRSAPrivateKey=function(D){return _.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,_.integerToDer(0).getBytes()),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.n)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.e)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.d)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.p)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.q)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.dP)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.dQ)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.qInv))])},m.publicKeyFromAsn1=function(D){var N={},L=[];if(_.validate(D,k,N,L)){var I,O=_.derToOid(N.publicKeyOid);if(O!==m.oids.rsaEncryption)throw(I=new Error("Cannot read public key. Unknown OID.")).oid=O,I;D=N.rsaPublicKey}if(!_.validate(D,x,N,L=[]))throw(I=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=L,I;var B=v.util.createBuffer(N.publicKeyModulus).toHex(),F=v.util.createBuffer(N.publicKeyExponent).toHex();return m.setRsaPublicKey(new A(B,16),new A(F,16))},m.publicKeyToAsn1=m.publicKeyToSubjectPublicKeyInfo=function(D){return _.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.OID,!1,_.oidToDer(m.oids.rsaEncryption).getBytes()),_.create(_.Class.UNIVERSAL,_.Type.NULL,!1,"")]),_.create(_.Class.UNIVERSAL,_.Type.BITSTRING,!1,[m.publicKeyToRSAPublicKey(D)])])},m.publicKeyToRSAPublicKey=function(D){return _.create(_.Class.UNIVERSAL,_.Type.SEQUENCE,!0,[_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.n)),_.create(_.Class.UNIVERSAL,_.Type.INTEGER,!1,g(D.e))])}},6021:(Ne,Ae,$)=>{var v=$(3247);$(6702),$(2683);var A=Ne.exports=v.sha1=v.sha1||{};v.md.sha1=v.md.algorithms.sha1=A,A.create=function(){_||function y(){T=String.fromCharCode(128),T+=v.util.fillString(String.fromCharCode(0),64),_=!0}();var f=null,C=v.util.createBuffer(),b=new Array(80),x={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){x.messageLength=0,x.fullMessageLength=x.messageLength64=[];for(var k=x.messageLengthSize/4,a=0;a>>0,r>>>0];for(var i=x.fullMessageLength.length-1;i>=0;--i)x.fullMessageLength[i]+=r[1],r[1]=r[0]+(x.fullMessageLength[i]/4294967296>>>0),x.fullMessageLength[i]=x.fullMessageLength[i]>>>0,r[0]=r[1]/4294967296>>>0;return C.putBytes(k),m(f,b,C),(C.read>2048||0===C.length())&&C.compact(),x},x.digest=function(){var k=v.util.createBuffer();k.putBytes(C.bytes()),k.putBytes(T.substr(0,x.blockLength-(x.fullMessageLength[x.fullMessageLength.length-1]+x.messageLengthSize&x.blockLength-1)));for(var i,d=8*x.fullMessageLength[0],h=0;h>>0)>>>0),d=i>>>0;k.putInt32(d);var g={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3,h4:f.h4};m(g,b,k);var E=v.util.createBuffer();return E.putInt32(g.h0),E.putInt32(g.h1),E.putInt32(g.h2),E.putInt32(g.h3),E.putInt32(g.h4),E},x};var T=null,_=!1;function m(f,C,b){for(var x,k,a,r,i,c,h,g=b.length();g>=64;){for(k=f.h0,a=f.h1,r=f.h2,i=f.h3,c=f.h4,h=0;h<16;++h)x=b.getInt32(),C[h]=x,x=(k<<5|k>>>27)+(i^a&(r^i))+c+1518500249+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;for(;h<20;++h)C[h]=x=(x=C[h-3]^C[h-8]^C[h-14]^C[h-16])<<1|x>>>31,x=(k<<5|k>>>27)+(i^a&(r^i))+c+1518500249+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;for(;h<32;++h)C[h]=x=(x=C[h-3]^C[h-8]^C[h-14]^C[h-16])<<1|x>>>31,x=(k<<5|k>>>27)+(a^r^i)+c+1859775393+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;for(;h<40;++h)C[h]=x=(x=C[h-6]^C[h-16]^C[h-28]^C[h-32])<<2|x>>>30,x=(k<<5|k>>>27)+(a^r^i)+c+1859775393+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;for(;h<60;++h)C[h]=x=(x=C[h-6]^C[h-16]^C[h-28]^C[h-32])<<2|x>>>30,x=(k<<5|k>>>27)+(a&r|i&(a^r))+c+2400959708+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;for(;h<80;++h)C[h]=x=(x=C[h-6]^C[h-16]^C[h-28]^C[h-32])<<2|x>>>30,x=(k<<5|k>>>27)+(a^r^i)+c+3395469782+x,c=i,i=r,r=(a<<30|a>>>2)>>>0,a=k,k=x;f.h0=f.h0+k|0,f.h1=f.h1+a|0,f.h2=f.h2+r|0,f.h3=f.h3+i|0,f.h4=f.h4+c|0,g-=64}}},5501:(Ne,Ae,$)=>{var v=$(3247);$(6702),$(2683);var A=Ne.exports=v.sha256=v.sha256||{};v.md.sha256=v.md.algorithms.sha256=A,A.create=function(){_||function m(){T=String.fromCharCode(128),T+=v.util.fillString(String.fromCharCode(0),64),y=[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],_=!0}();var C=null,b=v.util.createBuffer(),x=new Array(64),k={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){k.messageLength=0,k.fullMessageLength=k.messageLength64=[];for(var a=k.messageLengthSize/4,r=0;r>>0,i>>>0];for(var c=k.fullMessageLength.length-1;c>=0;--c)k.fullMessageLength[c]+=i[1],i[1]=i[0]+(k.fullMessageLength[c]/4294967296>>>0),k.fullMessageLength[c]=k.fullMessageLength[c]>>>0,i[0]=i[1]/4294967296>>>0;return b.putBytes(a),f(C,x,b),(b.read>2048||0===b.length())&&b.compact(),k},k.digest=function(){var a=v.util.createBuffer();a.putBytes(b.bytes()),a.putBytes(T.substr(0,k.blockLength-(k.fullMessageLength[k.fullMessageLength.length-1]+k.messageLengthSize&k.blockLength-1)));for(var c,h=8*k.fullMessageLength[0],g=0;g>>0)>>>0),h=c>>>0;a.putInt32(h);var E={h0:C.h0,h1:C.h1,h2:C.h2,h3:C.h3,h4:C.h4,h5:C.h5,h6:C.h6,h7:C.h7};f(E,x,a);var P=v.util.createBuffer();return P.putInt32(E.h0),P.putInt32(E.h1),P.putInt32(E.h2),P.putInt32(E.h3),P.putInt32(E.h4),P.putInt32(E.h5),P.putInt32(E.h6),P.putInt32(E.h7),P},k};var T=null,_=!1,y=null;function f(C,b,x){for(var k,a,d,h,g,E,P,U,X,te,z,W,Y=x.length();Y>=64;){for(h=0;h<16;++h)b[h]=x.getInt32();for(;h<64;++h)b[h]=(k=((k=b[h-2])>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)+b[h-7]+(a=((a=b[h-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3)+b[h-16]|0;for(g=C.h0,E=C.h1,P=C.h2,U=C.h3,X=C.h4,te=C.h5,z=C.h6,W=C.h7,h=0;h<64;++h)d=g&E|P&(g^E),k=W+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(z^X&(te^z))+y[h]+b[h],W=z,z=te,te=X,X=U+k>>>0,U=P,P=E,E=g,g=k+(a=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+d)>>>0;C.h0=C.h0+g|0,C.h1=C.h1+E|0,C.h2=C.h2+P|0,C.h3=C.h3+U|0,C.h4=C.h4+X|0,C.h5=C.h5+te|0,C.h6=C.h6+z|0,C.h7=C.h7+W|0,Y-=64}}},5571:(Ne,Ae,$)=>{var v=$(3247);$(6702),$(2683);var A=Ne.exports=v.sha512=v.sha512||{};v.md.sha512=v.md.algorithms.sha512=A;var T=v.sha384=v.sha512.sha384=v.sha512.sha384||{};T.create=function(){return A.create("SHA-384")},v.md.sha384=v.md.algorithms.sha384=T,v.sha512.sha256=v.sha512.sha256||{create:function(){return A.create("SHA-512/256")}},v.md["sha512/256"]=v.md.algorithms["sha512/256"]=v.sha512.sha256,v.sha512.sha224=v.sha512.sha224||{create:function(){return A.create("SHA-512/224")}},v.md["sha512/224"]=v.md.algorithms["sha512/224"]=v.sha512.sha224,A.create=function(x){if(y||function C(){_=String.fromCharCode(128),_+=v.util.fillString(String.fromCharCode(0),128),m=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],(f={})["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],f["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],f["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],f["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],y=!0}(),typeof x>"u"&&(x="SHA-512"),!(x in f))throw new Error("Invalid SHA-512 algorithm: "+x);for(var k=f[x],a=null,r=v.util.createBuffer(),i=new Array(80),c=0;c<80;++c)i[c]=new Array(2);var d=64;switch(x){case"SHA-384":d=48;break;case"SHA-512/256":d=32;break;case"SHA-512/224":d=28}var h={algorithm:x.replace("-","").toLowerCase(),blockLength:128,digestLength:d,messageLength:0,fullMessageLength:null,messageLengthSize:16,start:function(){h.messageLength=0,h.fullMessageLength=h.messageLength128=[];for(var g=h.messageLengthSize/4,E=0;E>>0,P>>>0];for(var U=h.fullMessageLength.length-1;U>=0;--U)h.fullMessageLength[U]+=P[1],P[1]=P[0]+(h.fullMessageLength[U]/4294967296>>>0),h.fullMessageLength[U]=h.fullMessageLength[U]>>>0,P[0]=P[1]/4294967296>>>0;return r.putBytes(g),b(a,i,r),(r.read>2048||0===r.length())&&r.compact(),h},h.digest=function(){var g=v.util.createBuffer();g.putBytes(r.bytes()),g.putBytes(_.substr(0,h.blockLength-(h.fullMessageLength[h.fullMessageLength.length-1]+h.messageLengthSize&h.blockLength-1)));for(var U,te=8*h.fullMessageLength[0],z=0;z>>0)>>>0),te=U>>>0;g.putInt32(te);var W=new Array(a.length);for(z=0;z=128;){for(_e=0;_e<16;++_e)k[_e][0]=a.getInt32()>>>0,k[_e][1]=a.getInt32()>>>0;for(;_e<80;++_e)i=(((st=(We=k[_e-2])[0])<<13|(ne=We[1])>>>19)^(ne<<3|st>>>29)^(st<<26|ne>>>6))>>>0,k[_e][0]=(r=((st>>>19|ne<<13)^(ne>>>29|st<<3)^st>>>6)>>>0)+(Pe=k[_e-7])[0]+(c=(((st=(we=k[_e-15])[0])>>>1|(ne=we[1])<<31)^(st>>>8|ne<<24)^st>>>7)>>>0)+(Be=k[_e-16])[0]+((ne=i+Pe[1]+(d=((st<<31|ne>>>1)^(st<<24|ne>>>8)^(st<<25|ne>>>7))>>>0)+Be[1])/4294967296>>>0)>>>0,k[_e][1]=ne>>>0;for(W=x[0][0],Y=x[0][1],D=x[1][0],N=x[1][1],L=x[2][0],O=x[2][1],I=x[3][0],B=x[3][1],F=x[4][0],H=x[4][1],G=x[5][0],R=x[5][1],Z=x[6][0],oe=x[6][1],j=x[7][0],de=x[7][1],_e=0;_e<80;++_e)r=j+(((F>>>14|H<<18)^(F>>>18|H<<14)^(H>>>9|F<<23))>>>0)+((Z^F&(G^Z))>>>0)+m[_e][0]+k[_e][0]+((ne=de+(((F<<18|H>>>14)^(F<<14|H>>>18)^(H<<23|F>>>9))>>>0)+((oe^H&(R^oe))>>>0)+m[_e][1]+k[_e][1])/4294967296>>>0)>>>0,i=ne>>>0,c=(((W>>>28|Y<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25))>>>0)+((W&D|L&(W^D))>>>0)+((ne=(((W<<4|Y>>>28)^(Y<<30|W>>>2)^(Y<<25|W>>>7))>>>0)+((Y&N|O&(Y^N))>>>0))/4294967296>>>0)>>>0,d=ne>>>0,j=Z,de=oe,Z=G,oe=R,G=F,R=H,F=I+r+((ne=B+i)/4294967296>>>0)>>>0,H=ne>>>0,I=L,B=O,L=D,O=N,D=W,N=Y,W=r+c+((ne=i+d)/4294967296>>>0)>>>0,Y=ne>>>0;x[0][0]=x[0][0]+W+((ne=x[0][1]+Y)/4294967296>>>0)>>>0,x[0][1]=ne>>>0,x[1][0]=x[1][0]+D+((ne=x[1][1]+N)/4294967296>>>0)>>>0,x[1][1]=ne>>>0,x[2][0]=x[2][0]+L+((ne=x[2][1]+O)/4294967296>>>0)>>>0,x[2][1]=ne>>>0,x[3][0]=x[3][0]+I+((ne=x[3][1]+B)/4294967296>>>0)>>>0,x[3][1]=ne>>>0,x[4][0]=x[4][0]+F+((ne=x[4][1]+H)/4294967296>>>0)>>>0,x[4][1]=ne>>>0,x[5][0]=x[5][0]+G+((ne=x[5][1]+R)/4294967296>>>0)>>>0,x[5][1]=ne>>>0,x[6][0]=x[6][0]+Z+((ne=x[6][1]+oe)/4294967296>>>0)>>>0,x[6][1]=ne>>>0,x[7][0]=x[7][0]+j+((ne=x[7][1]+de)/4294967296>>>0)>>>0,x[7][1]=ne>>>0,K-=128}}},9560:(Ne,Ae,$)=>{var v=$(3247);$(4210),$(4600),$(2740),$(6021),$(2683);var A=Ne.exports=v.ssh=v.ssh||{};function T(m,f){var C=f.toString(16);C[0]>="8"&&(C="00"+C);var b=v.util.hexToBytes(C);m.putInt32(b.length),m.putBytes(b)}function _(m,f){m.putInt32(f.length),m.putString(f)}function y(){for(var m=v.md.sha1.create(),f=arguments.length,C=0;C{var v=$(3247);$(4960),$(4600),$(2740),$(591),$(2037),$(8194),$(6021),$(2683);var A=function(K,Q,ie,Ce){var ve=v.util.createBuffer(),je=K.length>>1,Me=je+(1&K.length),tt=K.substr(0,Me),It=K.substr(je,Me),bt=v.util.createBuffer(),Ye=v.hmac.create();ie=Q+ie;var Et=Math.ceil(Ce/16),xt=Math.ceil(Ce/20);Ye.start("MD5",tt);var Pt=v.util.createBuffer();bt.putBytes(ie);for(var Qt=0;Qt0&&(b.queue(K,b.createAlert(K,{level:b.Alert.Level.warning,description:b.Alert.Description.no_renegotiation})),b.flush(K)),K.process()},b.parseHelloMessage=function(K,Q,ie){var Ce=null,ve=K.entity===b.ConnectionEnd.client;if(ie<38)K.error(K,{message:ve?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.illegal_parameter}});else{var je=Q.fragment,Me=je.length();if(Ce={version:{major:je.getByte(),minor:je.getByte()},random:v.util.createBuffer(je.getBytes(32)),session_id:f(je,1),extensions:[]},ve?(Ce.cipher_suite=je.getBytes(2),Ce.compression_method=je.getByte()):(Ce.cipher_suites=f(je,2),Ce.compression_methods=f(je,1)),(Me=ie-(Me-je.length()))>0){for(var tt=f(je,2);tt.length()>0;)Ce.extensions.push({type:[tt.getByte(),tt.getByte()],data:f(tt,2)});if(!ve)for(var It=0;It0&&0===Ye.getByte();)K.session.extensions.server_name.serverNameList.push(f(Ye,2).getBytes())}}if(K.session.version&&(Ce.version.major!==K.session.version.major||Ce.version.minor!==K.session.version.minor))return K.error(K,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.protocol_version}});if(ve)K.session.cipherSuite=b.getCipherSuite(Ce.cipher_suite);else for(var xt=v.util.createBuffer(Ce.cipher_suites.bytes());xt.length()>0&&(K.session.cipherSuite=b.getCipherSuite(xt.getBytes(2)),null===K.session.cipherSuite););if(null===K.session.cipherSuite)return K.error(K,{message:"No cipher suites in common.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.handshake_failure},cipherSuite:v.util.bytesToHex(Ce.cipher_suite)});K.session.compressionMethod=ve?Ce.compression_method:b.CompressionMethod.none}return Ce},b.createSecurityParameters=function(K,Q){var ie=K.entity===b.ConnectionEnd.client,Ce=Q.random.bytes(),ve=ie?K.session.sp.client_random:Ce,je=ie?Ce:b.createRandom().getBytes();K.session.sp={entity:K.entity,prf_algorithm:b.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:K.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:ve,server_random:je}},b.handleServerHello=function(K,Q,ie){var Ce=b.parseHelloMessage(K,Q,ie);if(!K.fail){if(!(Ce.version.minor<=K.version.minor))return K.error(K,{message:"Incompatible TLS version.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.protocol_version}});K.version.minor=Ce.version.minor,K.session.version=K.version;var ve=Ce.session_id.bytes();ve.length>0&&ve===K.session.id?(K.expect=c,K.session.resuming=!0,K.session.sp.server_random=Ce.random.bytes()):(K.expect=k,K.session.resuming=!1,b.createSecurityParameters(K,Ce)),K.session.id=ve,K.process()}},b.handleClientHello=function(K,Q,ie){var Ce=b.parseHelloMessage(K,Q,ie);if(!K.fail){var ve=Ce.session_id.bytes(),je=null;if(K.sessionCache&&(null===(je=K.sessionCache.getSession(ve))?ve="":(je.version.major!==Ce.version.major||je.version.minor>Ce.version.minor)&&(je=null,ve="")),0===ve.length&&(ve=v.random.getBytes(32)),K.session.id=ve,K.session.clientHelloVersion=Ce.version,K.session.sp={},je)K.version=K.session.version=je.version,K.session.sp=je.sp;else{for(var Me,tt=1;tt0;)je=f(ve.certificate_list,3),Me=v.asn1.fromDer(je),je=v.pki.certificateFromAsn1(Me,!0),tt.push(je)}catch(bt){return K.error(K,{message:"Could not parse certificate list.",cause:bt,send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.bad_certificate}})}var It=K.entity===b.ConnectionEnd.client;!It&&!0!==K.verifyClient||0!==tt.length?0===tt.length?K.expect=It?a:U:(It?K.session.serverCertificate=tt[0]:K.session.clientCertificate=tt[0],b.verifyCertificateChain(K,tt)&&(K.expect=It?a:U)):K.error(K,{message:It?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.illegal_parameter}}),K.process()},b.handleServerKeyExchange=function(K,Q,ie){if(ie>0)return K.error(K,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.unsupported_certificate}});K.expect=r,K.process()},b.handleClientKeyExchange=function(K,Q,ie){if(ie<48)return K.error(K,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.unsupported_certificate}});var ve={enc_pre_master_secret:f(Q.fragment,2).getBytes()},je=null;if(K.getPrivateKey)try{je=K.getPrivateKey(K,K.session.serverCertificate),je=v.pki.privateKeyFromPem(je)}catch(It){K.error(K,{message:"Could not get private key.",cause:It,send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.internal_error}})}if(null===je)return K.error(K,{message:"No private key set.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.internal_error}});try{var Me=K.session.sp;Me.pre_master_secret=je.decrypt(ve.enc_pre_master_secret);var tt=K.session.clientHelloVersion;if(tt.major!==Me.pre_master_secret.charCodeAt(0)||tt.minor!==Me.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{Me.pre_master_secret=v.random.getBytes(48)}K.expect=te,null!==K.session.clientCertificate&&(K.expect=X),K.process()},b.handleCertificateRequest=function(K,Q,ie){if(ie<3)return K.error(K,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.illegal_parameter}});var Ce=Q.fragment,ve={certificate_types:f(Ce,1),certificate_authorities:f(Ce,2)};K.session.certificateRequest=ve,K.expect=i,K.process()},b.handleCertificateVerify=function(K,Q,ie){if(ie<2)return K.error(K,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.illegal_parameter}});var Ce=Q.fragment;Ce.read-=4;var ve=Ce.bytes();Ce.read+=4;var je={signature:f(Ce,2).getBytes()},Me=v.util.createBuffer();Me.putBuffer(K.session.md5.digest()),Me.putBuffer(K.session.sha1.digest()),Me=Me.getBytes();try{if(!K.session.clientCertificate.publicKey.verify(Me,je.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");K.session.md5.update(ve),K.session.sha1.update(ve)}catch{return K.error(K,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.handshake_failure}})}K.expect=te,K.process()},b.handleServerHelloDone=function(K,Q,ie){if(ie>0)return K.error(K,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.record_overflow}});if(null===K.serverCertificate){var Ce={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.insufficient_security}},je=K.verify(K,Ce.alert.description,0,[]);if(!0!==je)return(je||0===je)&&("object"!=typeof je||v.util.isArray(je)?"number"==typeof je&&(Ce.alert.description=je):(je.message&&(Ce.message=je.message),je.alert&&(Ce.alert.description=je.alert))),K.error(K,Ce)}null!==K.session.certificateRequest&&(Q=b.createRecord(K,{type:b.ContentType.handshake,data:b.createCertificate(K)}),b.queue(K,Q)),Q=b.createRecord(K,{type:b.ContentType.handshake,data:b.createClientKeyExchange(K)}),b.queue(K,Q),K.expect=g;var Me=function(tt,It){null!==tt.session.certificateRequest&&null!==tt.session.clientCertificate&&b.queue(tt,b.createRecord(tt,{type:b.ContentType.handshake,data:b.createCertificateVerify(tt,It)})),b.queue(tt,b.createRecord(tt,{type:b.ContentType.change_cipher_spec,data:b.createChangeCipherSpec()})),tt.state.pending=b.createConnectionState(tt),tt.state.current.write=tt.state.pending.write,b.queue(tt,b.createRecord(tt,{type:b.ContentType.handshake,data:b.createFinished(tt)})),tt.expect=c,b.flush(tt),tt.process()};if(null===K.session.certificateRequest||null===K.session.clientCertificate)return Me(K,null);b.getClientSignature(K,Me)},b.handleChangeCipherSpec=function(K,Q){if(1!==Q.fragment.getByte())return K.error(K,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.illegal_parameter}});var ie=K.entity===b.ConnectionEnd.client;(K.session.resuming&&ie||!K.session.resuming&&!ie)&&(K.state.pending=b.createConnectionState(K)),K.state.current.read=K.state.pending.read,(!K.session.resuming&&ie||K.session.resuming&&!ie)&&(K.state.pending=null),K.expect=ie?d:z,K.process()},b.handleFinished=function(K,Q,ie){var Ce=Q.fragment;Ce.read-=4;var ve=Ce.bytes();Ce.read+=4;var je=Q.fragment.getBytes();(Ce=v.util.createBuffer()).putBuffer(K.session.md5.digest()),Ce.putBuffer(K.session.sha1.digest());var Me=K.entity===b.ConnectionEnd.client;if((Ce=A(K.session.sp.master_secret,Me?"server finished":"client finished",Ce.getBytes(),12)).getBytes()!==je)return K.error(K,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.decrypt_error}});K.session.md5.update(ve),K.session.sha1.update(ve),(K.session.resuming&&Me||!K.session.resuming&&!Me)&&(b.queue(K,b.createRecord(K,{type:b.ContentType.change_cipher_spec,data:b.createChangeCipherSpec()})),K.state.current.write=K.state.pending.write,K.state.pending=null,b.queue(K,b.createRecord(K,{type:b.ContentType.handshake,data:b.createFinished(K)}))),K.expect=Me?h:W,K.handshaking=!1,++K.handshakes,K.peerCertificate=Me?K.session.serverCertificate:K.session.clientCertificate,b.flush(K),K.isConnected=!0,K.connected(K),K.process()},b.handleAlert=function(K,Q){var ve,ie=Q.fragment,Ce={level:ie.getByte(),description:ie.getByte()};switch(Ce.description){case b.Alert.Description.close_notify:ve="Connection closed.";break;case b.Alert.Description.unexpected_message:ve="Unexpected message.";break;case b.Alert.Description.bad_record_mac:ve="Bad record MAC.";break;case b.Alert.Description.decryption_failed:ve="Decryption failed.";break;case b.Alert.Description.record_overflow:ve="Record overflow.";break;case b.Alert.Description.decompression_failure:ve="Decompression failed.";break;case b.Alert.Description.handshake_failure:ve="Handshake failure.";break;case b.Alert.Description.bad_certificate:ve="Bad certificate.";break;case b.Alert.Description.unsupported_certificate:ve="Unsupported certificate.";break;case b.Alert.Description.certificate_revoked:ve="Certificate revoked.";break;case b.Alert.Description.certificate_expired:ve="Certificate expired.";break;case b.Alert.Description.certificate_unknown:ve="Certificate unknown.";break;case b.Alert.Description.illegal_parameter:ve="Illegal parameter.";break;case b.Alert.Description.unknown_ca:ve="Unknown certificate authority.";break;case b.Alert.Description.access_denied:ve="Access denied.";break;case b.Alert.Description.decode_error:ve="Decode error.";break;case b.Alert.Description.decrypt_error:ve="Decrypt error.";break;case b.Alert.Description.export_restriction:ve="Export restriction.";break;case b.Alert.Description.protocol_version:ve="Unsupported protocol version.";break;case b.Alert.Description.insufficient_security:ve="Insufficient security.";break;case b.Alert.Description.internal_error:ve="Internal error.";break;case b.Alert.Description.user_canceled:ve="User canceled.";break;case b.Alert.Description.no_renegotiation:ve="Renegotiation not supported.";break;default:ve="Unknown error."}if(Ce.description===b.Alert.Description.close_notify)return K.close();K.error(K,{message:ve,send:!1,origin:K.entity===b.ConnectionEnd.client?"server":"client",alert:Ce}),K.process()},b.handleHandshake=function(K,Q){var ie=Q.fragment,Ce=ie.getByte(),ve=ie.getInt24();if(ve>ie.length())return K.fragmented=Q,Q.fragment=v.util.createBuffer(),ie.read-=4,K.process();K.fragmented=null,ie.read-=4;var je=ie.bytes(ve+4);ie.read+=4,Ce in _e[K.entity][K.expect]?(K.entity===b.ConnectionEnd.server&&!K.open&&!K.fail&&(K.handshaking=!0,K.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:v.md.md5.create(),sha1:v.md.sha1.create()}),Ce!==b.HandshakeType.hello_request&&Ce!==b.HandshakeType.certificate_verify&&Ce!==b.HandshakeType.finished&&(K.session.md5.update(je),K.session.sha1.update(je)),_e[K.entity][K.expect][Ce](K,Q,ve)):b.handleUnexpected(K,Q)},b.handleApplicationData=function(K,Q){K.data.putBuffer(Q.fragment),K.dataReady(K),K.process()},b.handleHeartbeat=function(K,Q){var ie=Q.fragment,Ce=ie.getByte(),ve=ie.getInt16(),je=ie.getBytes(ve);if(Ce===b.HeartbeatMessageType.heartbeat_request){if(K.handshaking||ve>je.length)return K.process();b.queue(K,b.createRecord(K,{type:b.ContentType.heartbeat,data:b.createHeartbeat(b.HeartbeatMessageType.heartbeat_response,je)})),b.flush(K)}else if(Ce===b.HeartbeatMessageType.heartbeat_response){if(je!==K.expectedHeartbeatPayload)return K.process();K.heartbeatReceived&&K.heartbeatReceived(K,v.util.createBuffer(je))}K.process()};var k=1,a=2,r=3,i=4,c=5,d=6,h=7,g=8,P=1,U=2,X=3,te=4,z=5,W=6,D=b.handleUnexpected,N=b.handleChangeCipherSpec,L=b.handleAlert,O=b.handleHandshake,I=b.handleApplicationData,B=b.handleHeartbeat,F=[];F[b.ConnectionEnd.client]=[[D,L,O,D,B],[D,L,O,D,B],[D,L,O,D,B],[D,L,O,D,B],[D,L,O,D,B],[N,L,D,D,B],[D,L,O,D,B],[D,L,O,I,B],[D,L,O,D,B]],F[b.ConnectionEnd.server]=[[D,L,O,D,B],[D,L,O,D,B],[D,L,O,D,B],[D,L,O,D,B],[N,L,D,D,B],[D,L,O,D,B],[D,L,O,I,B],[D,L,O,D,B]];var H=b.handleHelloRequest,R=b.handleCertificate,Z=b.handleServerKeyExchange,oe=b.handleCertificateRequest,j=b.handleServerHelloDone,de=b.handleFinished,_e=[];_e[b.ConnectionEnd.client]=[[D,D,b.handleServerHello,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,R,Z,oe,j,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,Z,oe,j,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,D,oe,j,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,D,D,j,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,de],[H,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[H,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D]],_e[b.ConnectionEnd.server]=[[D,b.handleClientHello,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,R,D,D,D,D,D,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,b.handleClientKeyExchange,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,b.handleCertificateVerify,D,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,de],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D],[D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D]],b.generateKeys=function(K,Q){var ie=A,Ce=Q.client_random+Q.server_random;K.session.resuming||(Q.master_secret=ie(Q.pre_master_secret,"master secret",Ce,48).bytes(),Q.pre_master_secret=null);var ve=2*Q.mac_key_length+2*Q.enc_key_length,je=K.version.major===b.Versions.TLS_1_0.major&&K.version.minor===b.Versions.TLS_1_0.minor;je&&(ve+=2*Q.fixed_iv_length);var Me=ie(Q.master_secret,"key expansion",Ce=Q.server_random+Q.client_random,ve),tt={client_write_MAC_key:Me.getBytes(Q.mac_key_length),server_write_MAC_key:Me.getBytes(Q.mac_key_length),client_write_key:Me.getBytes(Q.enc_key_length),server_write_key:Me.getBytes(Q.enc_key_length)};return je&&(tt.client_write_IV=Me.getBytes(Q.fixed_iv_length),tt.server_write_IV=Me.getBytes(Q.fixed_iv_length)),tt},b.createConnectionState=function(K){var Q=K.entity===b.ConnectionEnd.client,ie=function(){var je={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(Me){return!0},compressionState:null,compressFunction:function(Me){return!0},updateSequenceNumber:function(){4294967295===je.sequenceNumber[1]?(je.sequenceNumber[1]=0,++je.sequenceNumber[0]):++je.sequenceNumber[1]}};return je},Ce={read:ie(),write:ie()};if(Ce.read.update=function(je,Me){return Ce.read.cipherFunction(Me,Ce.read)?Ce.read.compressFunction(je,Me,Ce.read)||je.error(je,{message:"Could not decompress record.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.decompression_failure}}):je.error(je,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.bad_record_mac}}),!je.fail},Ce.write.update=function(je,Me){return Ce.write.compressFunction(je,Me,Ce.write)?Ce.write.cipherFunction(Me,Ce.write)||je.error(je,{message:"Could not encrypt record.",send:!1,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.internal_error}}):je.error(je,{message:"Could not compress record.",send:!1,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.internal_error}}),!je.fail},K.session){var ve=K.session.sp;switch(K.session.cipherSuite.initSecurityParameters(ve),ve.keys=b.generateKeys(K,ve),Ce.read.macKey=Q?ve.keys.server_write_MAC_key:ve.keys.client_write_MAC_key,Ce.write.macKey=Q?ve.keys.client_write_MAC_key:ve.keys.server_write_MAC_key,K.session.cipherSuite.initConnectionState(Ce,K,ve),ve.compression_algorithm){case b.CompressionMethod.none:break;case b.CompressionMethod.deflate:Ce.read.compressFunction=m,Ce.write.compressFunction=y;break;default:throw new Error("Unsupported compression algorithm.")}}return Ce},b.createRandom=function(){var K=new Date,Q=+K+6e4*K.getTimezoneOffset(),ie=v.util.createBuffer();return ie.putInt32(Q),ie.putBytes(v.random.getBytes(28)),ie},b.createRecord=function(K,Q){return Q.data?{type:Q.type,version:{major:K.version.major,minor:K.version.minor},length:Q.data.length(),fragment:Q.data}:null},b.createAlert=function(K,Q){var ie=v.util.createBuffer();return ie.putByte(Q.level),ie.putByte(Q.description),b.createRecord(K,{type:b.ContentType.alert,data:ie})},b.createClientHello=function(K){K.session.clientHelloVersion={major:K.version.major,minor:K.version.minor};for(var Q=v.util.createBuffer(),ie=0;ie0&&(Et+=2);var xt=K.session.id,Pt=xt.length+1+2+4+28+2+ve+1+Me+Et,Qt=v.util.createBuffer();return Qt.putByte(b.HandshakeType.client_hello),Qt.putInt24(Pt),Qt.putByte(K.version.major),Qt.putByte(K.version.minor),Qt.putBytes(K.session.sp.client_random),C(Qt,1,v.util.createBuffer(xt)),C(Qt,2,Q),C(Qt,1,je),Et>0&&C(Qt,2,tt),Qt},b.createServerHello=function(K){var Q=K.session.id,ie=Q.length+1+2+4+28+2+1,Ce=v.util.createBuffer();return Ce.putByte(b.HandshakeType.server_hello),Ce.putInt24(ie),Ce.putByte(K.version.major),Ce.putByte(K.version.minor),Ce.putBytes(K.session.sp.server_random),C(Ce,1,v.util.createBuffer(Q)),Ce.putByte(K.session.cipherSuite.id[0]),Ce.putByte(K.session.cipherSuite.id[1]),Ce.putByte(K.session.compressionMethod),Ce},b.createCertificate=function(K){var Q=K.entity===b.ConnectionEnd.client,ie=null;K.getCertificate&&(ie=K.getCertificate(K,Q?K.session.certificateRequest:K.session.extensions.server_name.serverNameList));var ve=v.util.createBuffer();if(null!==ie)try{v.util.isArray(ie)||(ie=[ie]);for(var je=null,Me=0;Me"u"&&(ie=Q.length);var Ce=v.util.createBuffer();Ce.putByte(K),Ce.putInt16(ie),Ce.putBytes(Q);var ve=Ce.length(),je=Math.max(16,ve-ie-3);return Ce.putBytes(v.random.getBytes(je)),Ce},b.queue=function(K,Q){if(Q&&(0!==Q.fragment.length()||Q.type!==b.ContentType.handshake&&Q.type!==b.ContentType.alert&&Q.type!==b.ContentType.change_cipher_spec)){if(Q.type===b.ContentType.handshake){var ie=Q.fragment.bytes();K.session.md5.update(ie),K.session.sha1.update(ie),ie=null}var Ce;if(Q.fragment.length()<=b.MaxFragment)Ce=[Q];else{Ce=[];for(var ve=Q.fragment.bytes();ve.length>b.MaxFragment;)Ce.push(b.createRecord(K,{type:Q.type,data:v.util.createBuffer(ve.slice(0,b.MaxFragment))})),ve=ve.slice(b.MaxFragment);ve.length>0&&Ce.push(b.createRecord(K,{type:Q.type,data:v.util.createBuffer(ve)}))}for(var je=0;je0&&(Me=ie.order[0]),null!==Me&&Me in ie.cache)for(var tt in je=ie.cache[Me],delete ie.cache[Me],ie.order)if(ie.order[tt]===Me){ie.order.splice(tt,1);break}return je},ie.setSession=function(ve,je){if(ie.order.length===ie.capacity){var Me=ie.order.shift();delete ie.cache[Me]}Me=v.util.bytesToHex(ve),ie.order.push(Me),ie.cache[Me]=je}}return ie},b.createConnection=function(K){var Q;Q=K.caStore?v.util.isArray(K.caStore)?v.pki.createCaStore(K.caStore):K.caStore:v.pki.createCaStore();var ie=K.cipherSuites||null;if(null===ie)for(var Ce in ie=[],b.CipherSuites)ie.push(b.CipherSuites[Ce]);var ve=K.server?b.ConnectionEnd.server:b.ConnectionEnd.client,je=K.sessionCache?b.createSessionCache(K.sessionCache):null,Me={version:{major:b.Version.major,minor:b.Version.minor},entity:ve,sessionId:K.sessionId,caStore:Q,sessionCache:je,cipherSuites:ie,connected:K.connected,virtualHost:K.virtualHost||null,verifyClient:K.verifyClient||!1,verify:K.verify||function(Ye,Et,xt,Pt){return Et},verifyOptions:K.verifyOptions||{},getCertificate:K.getCertificate||null,getPrivateKey:K.getPrivateKey||null,getSignature:K.getSignature||null,input:v.util.createBuffer(),tlsData:v.util.createBuffer(),data:v.util.createBuffer(),tlsDataReady:K.tlsDataReady,dataReady:K.dataReady,heartbeatReceived:K.heartbeatReceived,closed:K.closed,error:function(Ye,Et){Et.origin=Et.origin||(Ye.entity===b.ConnectionEnd.client?"client":"server"),Et.send&&(b.queue(Ye,b.createAlert(Ye,Et.alert)),b.flush(Ye));var xt=!1!==Et.fatal;xt&&(Ye.fail=!0),K.error(Ye,Et),xt&&Ye.close(!1)},deflate:K.deflate||null,inflate:K.inflate||null,reset:function(Ye){Me.version={major:b.Version.major,minor:b.Version.minor},Me.record=null,Me.session=null,Me.peerCertificate=null,Me.state={pending:null,current:null},Me.expect=0,Me.fragmented=null,Me.records=[],Me.open=!1,Me.handshakes=0,Me.handshaking=!1,Me.isConnected=!1,Me.fail=!(Ye||typeof Ye>"u"),Me.input.clear(),Me.tlsData.clear(),Me.data.clear(),Me.state.current=b.createConnectionState(Me)}};return Me.reset(),Me.handshake=function(Ye){if(Me.entity!==b.ConnectionEnd.client)Me.error(Me,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(Me.handshaking)Me.error(Me,{message:"Handshake already in progress.",fatal:!1});else{Me.fail&&!Me.open&&0===Me.handshakes&&(Me.fail=!1),Me.handshaking=!0;var Et=null;(Ye=Ye||"").length>0&&(Me.sessionCache&&(Et=Me.sessionCache.getSession(Ye)),null===Et&&(Ye="")),0===Ye.length&&Me.sessionCache&&null!==(Et=Me.sessionCache.getSession())&&(Ye=Et.id),Me.session={id:Ye,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:v.md.md5.create(),sha1:v.md.sha1.create()},Et&&(Me.version=Et.version,Me.session.sp=Et.sp),Me.session.sp.client_random=b.createRandom().getBytes(),Me.open=!0,b.queue(Me,b.createRecord(Me,{type:b.ContentType.handshake,data:b.createClientHello(Me)})),b.flush(Me)}},Me.process=function(Ye){var Et=0;return Ye&&Me.input.putBytes(Ye),Me.fail||(null!==Me.record&&Me.record.ready&&Me.record.fragment.isEmpty()&&(Me.record=null),null===Me.record&&(Et=function(Ye){var Et=0,xt=Ye.input,Pt=xt.length();if(Pt<5)Et=5-Pt;else{Ye.record={type:xt.getByte(),version:{major:xt.getByte(),minor:xt.getByte()},length:xt.getInt16(),fragment:v.util.createBuffer(),ready:!1};var Qt=Ye.record.version.major===Ye.version.major;Qt&&Ye.session&&Ye.session.version&&(Qt=Ye.record.version.minor===Ye.version.minor),Qt||Ye.error(Ye,{message:"Incompatible TLS version.",send:!0,alert:{level:b.Alert.Level.fatal,description:b.Alert.Description.protocol_version}})}return Et}(Me)),!Me.fail&&null!==Me.record&&!Me.record.ready&&(Et=function(Ye){var Et=0,xt=Ye.input,Pt=xt.length();return Pt"u"&&(Et=Ye.length),Me.expectedHeartbeatPayload=Ye,b.queue(Me,b.createRecord(Me,{type:b.ContentType.heartbeat,data:b.createHeartbeat(b.HeartbeatMessageType.heartbeat_request,Ye,Et)})),b.flush(Me)},Me.close=function(Ye){if(!Me.fail&&Me.sessionCache&&Me.session){var Et={id:Me.session.id,version:Me.session.version,sp:Me.session.sp};Et.sp.keys=null,Me.sessionCache.setSession(Et.id,Et)}Me.open&&(Me.open=!1,Me.input.clear(),(Me.isConnected||Me.handshaking)&&(Me.isConnected=Me.handshaking=!1,b.queue(Me,b.createAlert(Me,{level:b.Alert.Level.warning,description:b.Alert.Description.close_notify})),b.flush(Me)),Me.closed(Me)),Me.reset(Ye)},Me},Ne.exports=v.tls=v.tls||{},b)"function"!=typeof b[Be]&&(v.tls[Be]=b[Be]);v.tls.prf_tls1=A,v.tls.hmac_sha1=function(K,Q,ie){var Ce=v.hmac.create();Ce.start("SHA1",K);var ve=v.util.createBuffer();return ve.putInt32(Q[0]),ve.putInt32(Q[1]),ve.putByte(ie.type),ve.putByte(ie.version.major),ve.putByte(ie.version.minor),ve.putInt16(ie.length),ve.putBytes(ie.fragment.bytes()),Ce.update(ve.getBytes()),Ce.digest().getBytes()},v.tls.createSessionCache=b.createSessionCache,v.tls.createConnection=b.createConnection},2683:(Ne,Ae,$)=>{var v=$(3247),A=$(5622),T=Ne.exports=v.util=v.util||{};function _(g){if(8!==g&&16!==g&&24!==g&&32!==g)throw new Error("Only 8, 16, 24, or 32 bits supported: "+g)}function y(g){if(this.data="",this.read=0,"string"==typeof g)this.data=g;else if(T.isArrayBuffer(g)||T.isArrayBufferView(g))if(typeof Buffer<"u"&&g instanceof Buffer)this.data=g.toString("binary");else{var E=new Uint8Array(g);try{this.data=String.fromCharCode.apply(null,E)}catch{for(var P=0;P15?(P=Date.now(),te(Y)):(E.push(Y),1===E.length&&X.setAttribute("a",U=!U))}}T.nextTick=T.setImmediate})(),T.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,T.globalScope=T.isNodejs?global:typeof self>"u"?window:self,T.isArray=Array.isArray||function(g){return"[object Array]"===Object.prototype.toString.call(g)},T.isArrayBuffer=function(g){return typeof ArrayBuffer<"u"&&g instanceof ArrayBuffer},T.isArrayBufferView=function(g){return g&&T.isArrayBuffer(g.buffer)&&void 0!==g.byteLength},T.ByteBuffer=y,T.ByteStringBuffer=y,T.ByteStringBuffer.prototype._optimizeConstructedString=function(g){this._constructedStringLength+=g,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},T.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},T.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},T.ByteStringBuffer.prototype.putByte=function(g){return this.putBytes(String.fromCharCode(g))},T.ByteStringBuffer.prototype.fillWithByte=function(g,E){g=String.fromCharCode(g);for(var P=this.data;E>0;)1&E&&(P+=g),(E>>>=1)>0&&(g+=g);return this.data=P,this._optimizeConstructedString(E),this},T.ByteStringBuffer.prototype.putBytes=function(g){return this.data+=g,this._optimizeConstructedString(g.length),this},T.ByteStringBuffer.prototype.putString=function(g){return this.putBytes(T.encodeUtf8(g))},T.ByteStringBuffer.prototype.putInt16=function(g){return this.putBytes(String.fromCharCode(g>>8&255)+String.fromCharCode(255&g))},T.ByteStringBuffer.prototype.putInt24=function(g){return this.putBytes(String.fromCharCode(g>>16&255)+String.fromCharCode(g>>8&255)+String.fromCharCode(255&g))},T.ByteStringBuffer.prototype.putInt32=function(g){return this.putBytes(String.fromCharCode(g>>24&255)+String.fromCharCode(g>>16&255)+String.fromCharCode(g>>8&255)+String.fromCharCode(255&g))},T.ByteStringBuffer.prototype.putInt16Le=function(g){return this.putBytes(String.fromCharCode(255&g)+String.fromCharCode(g>>8&255))},T.ByteStringBuffer.prototype.putInt24Le=function(g){return this.putBytes(String.fromCharCode(255&g)+String.fromCharCode(g>>8&255)+String.fromCharCode(g>>16&255))},T.ByteStringBuffer.prototype.putInt32Le=function(g){return this.putBytes(String.fromCharCode(255&g)+String.fromCharCode(g>>8&255)+String.fromCharCode(g>>16&255)+String.fromCharCode(g>>24&255))},T.ByteStringBuffer.prototype.putInt=function(g,E){_(E);var P="";do{E-=8,P+=String.fromCharCode(g>>E&255)}while(E>0);return this.putBytes(P)},T.ByteStringBuffer.prototype.putSignedInt=function(g,E){return g<0&&(g+=2<0);return E},T.ByteStringBuffer.prototype.getSignedInt=function(g){var E=this.getInt(g),P=2<=P&&(E-=P<<1),E},T.ByteStringBuffer.prototype.getBytes=function(g){var E;return g?(g=Math.min(this.length(),g),E=this.data.slice(this.read,this.read+g),this.read+=g):0===g?E="":(E=0===this.read?this.data:this.data.slice(this.read),this.clear()),E},T.ByteStringBuffer.prototype.bytes=function(g){return typeof g>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+g)},T.ByteStringBuffer.prototype.at=function(g){return this.data.charCodeAt(this.read+g)},T.ByteStringBuffer.prototype.setAt=function(g,E){return this.data=this.data.substr(0,this.read+g)+String.fromCharCode(E)+this.data.substr(this.read+g+1),this},T.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},T.ByteStringBuffer.prototype.copy=function(){var g=T.createBuffer(this.data);return g.read=this.read,g},T.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},T.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},T.ByteStringBuffer.prototype.truncate=function(g){var E=Math.max(0,this.length()-g);return this.data=this.data.substr(this.read,E),this.read=0,this},T.ByteStringBuffer.prototype.toHex=function(){for(var g="",E=this.read;E=g)return this;E=Math.max(E||this.growSize,g);var P=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),U=new Uint8Array(this.length()+E);return U.set(P),this.data=new DataView(U.buffer),this},T.DataBuffer.prototype.putByte=function(g){return this.accommodate(1),this.data.setUint8(this.write++,g),this},T.DataBuffer.prototype.fillWithByte=function(g,E){this.accommodate(E);for(var P=0;P>8&65535),this.data.setInt8(this.write,g>>16&255),this.write+=3,this},T.DataBuffer.prototype.putInt32=function(g){return this.accommodate(4),this.data.setInt32(this.write,g),this.write+=4,this},T.DataBuffer.prototype.putInt16Le=function(g){return this.accommodate(2),this.data.setInt16(this.write,g,!0),this.write+=2,this},T.DataBuffer.prototype.putInt24Le=function(g){return this.accommodate(3),this.data.setInt8(this.write,g>>16&255),this.data.setInt16(this.write,g>>8&65535,!0),this.write+=3,this},T.DataBuffer.prototype.putInt32Le=function(g){return this.accommodate(4),this.data.setInt32(this.write,g,!0),this.write+=4,this},T.DataBuffer.prototype.putInt=function(g,E){_(E),this.accommodate(E/8);do{E-=8,this.data.setInt8(this.write++,g>>E&255)}while(E>0);return this},T.DataBuffer.prototype.putSignedInt=function(g,E){return _(E),this.accommodate(E/8),g<0&&(g+=2<0);return E},T.DataBuffer.prototype.getSignedInt=function(g){var E=this.getInt(g),P=2<=P&&(E-=P<<1),E},T.DataBuffer.prototype.getBytes=function(g){var E;return g?(g=Math.min(this.length(),g),E=this.data.slice(this.read,this.read+g),this.read+=g):0===g?E="":(E=0===this.read?this.data:this.data.slice(this.read),this.clear()),E},T.DataBuffer.prototype.bytes=function(g){return typeof g>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+g)},T.DataBuffer.prototype.at=function(g){return this.data.getUint8(this.read+g)},T.DataBuffer.prototype.setAt=function(g,E){return this.data.setUint8(g,E),this},T.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},T.DataBuffer.prototype.copy=function(){return new T.DataBuffer(this)},T.DataBuffer.prototype.compact=function(){if(this.read>0){var g=new Uint8Array(this.data.buffer,this.read),E=new Uint8Array(g.byteLength);E.set(g),this.data=new DataView(E),this.write-=this.read,this.read=0}return this},T.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},T.DataBuffer.prototype.truncate=function(g){return this.write=Math.max(0,this.length()-g),this.read=Math.min(this.read,this.write),this},T.DataBuffer.prototype.toHex=function(){for(var g="",E=this.read;E0;)1&E&&(P+=g),(E>>>=1)>0&&(g+=g);return P},T.xorBytes=function(g,E,P){for(var U="",X="",te="",z=0,W=0;P>0;--P,++z)X=g.charCodeAt(z)^E.charCodeAt(z),W>=10&&(U+=te,te="",W=0),te+=String.fromCharCode(X),++W;return U+te},T.hexToBytes=function(g){var E="",P=0;for(!0&g.length&&(P=1,E+=String.fromCharCode(parseInt(g[0],16)));P>24&255)+String.fromCharCode(g>>16&255)+String.fromCharCode(g>>8&255)+String.fromCharCode(255&g)};var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],x="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";T.encode64=function(g,E){for(var X,te,z,P="",U="",W=0;W>2),P+=C.charAt((3&X)<<4|te>>4),isNaN(te)?P+="==":(P+=C.charAt((15&te)<<2|z>>6),P+=isNaN(z)?"=":C.charAt(63&z)),E&&P.length>E&&(U+=P.substr(0,E)+"\r\n",P=P.substr(E));return U+P},T.decode64=function(g){g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var P,U,X,te,E="",z=0;z>4),64!==X&&(E+=String.fromCharCode((15&U)<<4|X>>2),64!==te&&(E+=String.fromCharCode((3&X)<<6|te)));return E},T.encodeUtf8=function(g){return unescape(encodeURIComponent(g))},T.decodeUtf8=function(g){return decodeURIComponent(escape(g))},T.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:A.encode,decode:A.decode}},T.binary.raw.encode=function(g){return String.fromCharCode.apply(null,g)},T.binary.raw.decode=function(g,E,P){var U=E;U||(U=new Uint8Array(g.length));for(var X=P=P||0,te=0;te>2),P+=C.charAt((3&X)<<4|te>>4),isNaN(te)?P+="==":(P+=C.charAt((15&te)<<2|z>>6),P+=isNaN(z)?"=":C.charAt(63&z)),E&&P.length>E&&(U+=P.substr(0,E)+"\r\n",P=P.substr(E));return U+P},T.binary.base64.decode=function(g,E,P){var U=E;U||(U=new Uint8Array(3*Math.ceil(g.length/4))),g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var X,te,z,W,Y=0,D=P=P||0;Y>4,64!==z&&(U[D++]=(15&te)<<4|z>>2,64!==W&&(U[D++]=(3&z)<<6|W));return E?D-P:U.subarray(0,D)},T.binary.base58.encode=function(g,E){return T.binary.baseN.encode(g,x,E)},T.binary.base58.decode=function(g,E){return T.binary.baseN.decode(g,x,E)},T.text={utf8:{},utf16:{}},T.text.utf8.encode=function(g,E,P){g=T.encodeUtf8(g);var U=E;U||(U=new Uint8Array(g.length));for(var X=P=P||0,te=0;te"u"&&(P=["web","flash"]);var X,te=!1,z=null;for(var W in P){X=P[W];try{if("flash"===X||"both"===X){if(null===E[0])throw new Error("Flash local storage not available.");U=g.apply(this,E),te="flash"===X}("web"===X||"both"===X)&&(E[0]=localStorage,U=g.apply(this,E),te=!0)}catch(Y){z=Y}if(te)break}if(!te)throw z;return U};T.setItem=function(g,E,P,U,X){h(r,arguments,X)},T.getItem=function(g,E,P,U){return h(i,arguments,U)},T.removeItem=function(g,E,P,U){h(c,arguments,U)},T.clearItems=function(g,E,P){h(d,arguments,P)},T.isEmpty=function(g){for(var E in g)if(g.hasOwnProperty(E))return!1;return!0},T.format=function(g){for(var P,U,E=/%./g,X=0,te=[],z=0;P=E.exec(g);){(U=g.substring(z,E.lastIndex-2)).length>0&&te.push(U),z=E.lastIndex;var W=P[0][1];switch(W){case"s":case"o":te.push(X");break;case"%":te.push("%");break;default:te.push("<%"+W+"?>")}}return te.push(g.substring(z)),te.join("")},T.formatNumber=function(g,E,P,U){var X=g,te=isNaN(E=Math.abs(E))?2:E,z=void 0===P?",":P,W=void 0===U?".":U,Y=X<0?"-":"",D=parseInt(X=Math.abs(+X||0).toFixed(te),10)+"",N=D.length>3?D.length%3:0;return Y+(N?D.substr(0,N)+W:"")+D.substr(N).replace(/(\d{3})(?=\d)/g,"$1"+W)+(te?z+Math.abs(X-D).toFixed(te).slice(2):"")},T.formatSize=function(g){return g>=1073741824?T.formatNumber(g/1073741824,2,".","")+" GiB":g>=1048576?T.formatNumber(g/1048576,2,".","")+" MiB":g>=1024?T.formatNumber(g/1024,0)+" KiB":T.formatNumber(g,0)+" bytes"},T.bytesFromIP=function(g){return-1!==g.indexOf(".")?T.bytesFromIPv4(g):-1!==g.indexOf(":")?T.bytesFromIPv6(g):null},T.bytesFromIPv4=function(g){if(4!==(g=g.split(".")).length)return null;for(var E=T.createBuffer(),P=0;PP[U].end-P[U].start&&(U=P.length-1)):P.push({start:W,end:W})}E.push(te)}if(P.length>0){var Y=P[U];Y.end-Y.start>0&&(E.splice(Y.start,Y.end-Y.start+1,""),0===Y.start&&E.unshift(""),7===Y.end&&E.push(""))}return E.join(":")},T.estimateCores=function(g,E){if("function"==typeof g&&(E=g,g={}),g=g||{},"cores"in T&&!g.update)return E(null,T.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return T.cores=navigator.hardwareConcurrency,E(null,T.cores);if(typeof Worker>"u")return T.cores=1,E(null,T.cores);if(typeof Blob>"u")return T.cores=2,E(null,T.cores);var P=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(z){for(var W=Date.now(),Y=W+4;Date.now()I.st&&N.stN.st&&I.st{var v=$(3247);$(4210),$(4960),$(8544),$(6702),$(381),$(286),$(591),$(6873),$(3888),$(2683);var A=v.asn1,T=Ne.exports=v.pki=v.pki||{},_=T.oids,y={};y.CN=_.commonName,y.commonName="CN",y.C=_.countryName,y.countryName="C",y.L=_.localityName,y.localityName="L",y.ST=_.stateOrProvinceName,y.stateOrProvinceName="ST",y.O=_.organizationName,y.organizationName="O",y.OU=_.organizationalUnitName,y.organizationalUnitName="OU",y.E=_.emailAddress,y.emailAddress="E";var m=v.pki.rsa.publicKeyValidator,f={name:"Certificate",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:A.Class.UNIVERSAL,type:A.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:A.Class.UNIVERSAL,type:A.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:A.Class.UNIVERSAL,type:A.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:A.Class.UNIVERSAL,type:A.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},m,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:A.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:A.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},C={name:"rsapss",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:A.Class.UNIVERSAL,type:A.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:A.Class.UNIVERSAL,type:A.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:A.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:A.Class.UNIVERSAL,type:A.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:A.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:A.Class.UNIVERSAL,type:A.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},x={name:"CertificationRequest",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[{name:"CertificationRequestInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},m,{name:"CertificationRequestInfo.attributes",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0}]}]}]},{name:"CertificationRequest.signatureAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};function k(z,W){"string"==typeof W&&(W={shortName:W});for(var D,Y=null,N=0;null===Y&&N"u"&&(W.type&&W.type in T.oids?W.name=T.oids[W.type]:W.shortName&&W.shortName in y&&(W.name=T.oids[y[W.shortName]])),typeof W.type>"u"){if(!W.name||!(W.name in T.oids))throw(D=new Error("Attribute type not specified.")).attribute=W,D;W.type=T.oids[W.name]}if(typeof W.shortName>"u"&&W.name&&W.name in y&&(W.shortName=y[W.name]),W.type===_.extensionRequest&&(W.valueConstructed=!0,W.valueTagClass=A.Type.SEQUENCE,!W.value&&W.extensions)){W.value=[];for(var N=0;N"u")throw(D=new Error("Attribute value not specified.")).attribute=W,D}}function g(z,W){if(W=W||{},typeof z.name>"u"&&z.id&&z.id in T.oids&&(z.name=T.oids[z.id]),typeof z.id>"u"){if(!z.name||!(z.name in T.oids))throw(Y=new Error("Extension ID not specified.")).extension=z,Y;z.id=T.oids[z.name]}if(typeof z.value<"u")return z;if("keyUsage"===z.name){var D=0,N=0,L=0;z.digitalSignature&&(N|=128,D=7),z.nonRepudiation&&(N|=64,D=6),z.keyEncipherment&&(N|=32,D=5),z.dataEncipherment&&(N|=16,D=4),z.keyAgreement&&(N|=8,D=3),z.keyCertSign&&(N|=4,D=2),z.cRLSign&&(N|=2,D=1),z.encipherOnly&&(N|=1,D=0),z.decipherOnly&&(L|=128,D=7);var O=String.fromCharCode(D);0!==L?O+=String.fromCharCode(N)+String.fromCharCode(L):0!==N&&(O+=String.fromCharCode(N)),z.value=A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,O)}else if("basicConstraints"===z.name)z.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),z.cA&&z.value.value.push(A.create(A.Class.UNIVERSAL,A.Type.BOOLEAN,!1,String.fromCharCode(255))),"pathLenConstraint"in z&&z.value.value.push(A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(z.pathLenConstraint).getBytes()));else if("extKeyUsage"===z.name){z.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);var I=z.value.value;for(var B in z)!0===z[B]&&(B in _?I.push(A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(_[B]).getBytes())):-1!==B.indexOf(".")&&I.push(A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(B).getBytes())))}else if("nsCertType"===z.name)D=0,N=0,z.client&&(N|=128,D=7),z.server&&(N|=64,D=6),z.email&&(N|=32,D=5),z.objsign&&(N|=16,D=4),z.reserved&&(N|=8,D=3),z.sslCA&&(N|=4,D=2),z.emailCA&&(N|=2,D=1),z.objCA&&(N|=1,D=0),O=String.fromCharCode(D),0!==N&&(O+=String.fromCharCode(N)),z.value=A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,O);else if("subjectAltName"===z.name||"issuerAltName"===z.name){z.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);for(var H=0;H128)throw new Error('Invalid "nsComment" content.');z.value=A.create(A.Class.UNIVERSAL,A.Type.IA5STRING,!1,z.comment)}else if("subjectKeyIdentifier"===z.name&&W.cert){var G=W.cert.generateSubjectKeyIdentifier();z.subjectKeyIdentifier=G.toHex(),z.value=A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,G.getBytes())}else if("authorityKeyIdentifier"===z.name&&W.cert){if(z.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),I=z.value.value,z.keyIdentifier){var R=!0===z.keyIdentifier?W.cert.generateSubjectKeyIdentifier().getBytes():z.keyIdentifier;I.push(A.create(A.Class.CONTEXT_SPECIFIC,0,!1,R))}if(z.authorityCertIssuer){var Z=[A.create(A.Class.CONTEXT_SPECIFIC,4,!0,[c(!0===z.authorityCertIssuer?W.cert.issuer:z.authorityCertIssuer)])];I.push(A.create(A.Class.CONTEXT_SPECIFIC,1,!0,Z))}if(z.serialNumber){var oe=v.util.hexToBytes(!0===z.serialNumber?W.cert.serialNumber:z.serialNumber);I.push(A.create(A.Class.CONTEXT_SPECIFIC,2,!1,oe))}}else if("cRLDistributionPoints"===z.name){z.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),I=z.value.value;var F,j=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),de=A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[]);for(H=0;H"u")throw(Y=new Error("Extension value not specified.")).extension=z,Y;return z}function E(z,W){if(z===_["RSASSA-PSS"]){var Y=[];return void 0!==W.hash.algorithmOid&&Y.push(A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(W.hash.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")])])),void 0!==W.mgf.algorithmOid&&Y.push(A.create(A.Class.CONTEXT_SPECIFIC,1,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(W.mgf.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(W.mgf.hash.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")])])])),void 0!==W.saltLength&&Y.push(A.create(A.Class.CONTEXT_SPECIFIC,2,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(W.saltLength).getBytes())])),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,Y)}return A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")}function P(z){var W=A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[]);if(0===z.attributes.length)return W;for(var Y=z.attributes,D=0;D2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(B.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(O.validity.notBefore=B[0],O.validity.notAfter=B[1],O.tbsCertificate=Y.tbsCertificate,W){O.md=r({signatureOid:O.signatureOid,type:"certificate"});var F=A.toDer(O.tbsCertificate);O.md.update(F.getBytes())}var H=v.md.sha1.create(),G=A.toDer(Y.certIssuer);H.update(G.getBytes()),O.issuer.getField=function(oe){return k(O.issuer,oe)},O.issuer.addField=function(oe){h([oe]),O.issuer.attributes.push(oe)},O.issuer.attributes=T.RDNAttributesAsArray(Y.certIssuer),Y.certIssuerUniqueId&&(O.issuer.uniqueId=Y.certIssuerUniqueId),O.issuer.hash=H.digest().toHex();var R=v.md.sha1.create(),Z=A.toDer(Y.certSubject);return R.update(Z.getBytes()),O.subject.getField=function(oe){return k(O.subject,oe)},O.subject.addField=function(oe){h([oe]),O.subject.attributes.push(oe)},O.subject.attributes=T.RDNAttributesAsArray(Y.certSubject),Y.certSubjectUniqueId&&(O.subject.uniqueId=Y.certSubjectUniqueId),O.subject.hash=R.digest().toHex(),O.extensions=Y.certExtensions?T.certificateExtensionsFromAsn1(Y.certExtensions):[],O.publicKey=T.publicKeyFromAsn1(Y.subjectPublicKeyInfo),O},T.certificateExtensionsFromAsn1=function(z){for(var W=[],Y=0;Y1&&(D=Y.value.charCodeAt(1),N=Y.value.length>2?Y.value.charCodeAt(2):0),W.digitalSignature=128==(128&D),W.nonRepudiation=64==(64&D),W.keyEncipherment=32==(32&D),W.dataEncipherment=16==(16&D),W.keyAgreement=8==(8&D),W.keyCertSign=4==(4&D),W.cRLSign=2==(2&D),W.encipherOnly=1==(1&D),W.decipherOnly=128==(128&N)}else if("basicConstraints"===W.name){var Y=A.fromDer(W.value);W.cA=Y.value.length>0&&Y.value[0].type===A.Type.BOOLEAN&&0!==Y.value[0].value.charCodeAt(0);var L=null;Y.value.length>0&&Y.value[0].type===A.Type.INTEGER?L=Y.value[0].value:Y.value.length>1&&(L=Y.value[1].value),null!==L&&(W.pathLenConstraint=A.derToInteger(L))}else if("extKeyUsage"===W.name){Y=A.fromDer(W.value);for(var O=0;O1&&(D=Y.value.charCodeAt(1)),W.client=128==(128&D),W.server=64==(64&D),W.email=32==(32&D),W.objsign=16==(16&D),W.reserved=8==(8&D),W.sslCA=4==(4&D),W.emailCA=2==(2&D),W.objCA=1==(1&D);else if("subjectAltName"===W.name||"issuerAltName"===W.name){W.altNames=[],Y=A.fromDer(W.value);for(var B,F=0;F=U&&z0&&D.value.push(T.certificateExtensionsToAsn1(z.extensions)),D},T.getCertificationRequestInfo=function(z){return A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(z.version).getBytes()),c(z.subject),T.publicKeyToAsn1(z.publicKey),P(z)])},T.distinguishedNameToAsn1=function(z){return c(z)},T.certificateToAsn1=function(z){var W=z.tbsCertificate||T.getTBSCertificate(z);return A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[W,A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(z.signatureOid).getBytes()),E(z.signatureOid,z.signatureParameters)]),A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,String.fromCharCode(0)+z.signature)])},T.certificateExtensionsToAsn1=function(z){var W=A.create(A.Class.CONTEXT_SPECIFIC,3,!0,[]),Y=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);W.value.push(Y);for(var D=0;D"u"&&(N=new Date);var L=!0,O=null,I=0;do{var B=W.shift(),F=null,H=!1;if(N&&(NB.validity.notAfter)&&(O={message:"Certificate is not valid yet or has expired.",error:T.certificateError.certificate_expired,notBefore:B.validity.notBefore,notAfter:B.validity.notAfter,now:N}),null===O){if(null===(F=W[0]||z.getIssuer(B))&&B.isIssuer(B)&&(H=!0,F=B),F){var G=F;v.util.isArray(G)||(G=[G]);for(var R=!1;!R&&G.length>0;){F=G.shift();try{R=F.verify(B)}catch{}}R||(O={message:"Certificate signature is invalid.",error:T.certificateError.bad_certificate})}null===O&&(!F||H)&&!z.hasCertificate(B)&&(O={message:"Certificate is not trusted.",error:T.certificateError.unknown_ca})}if(null===O&&F&&!B.isIssuer(F)&&(O={message:"Certificate issuer is invalid.",error:T.certificateError.bad_certificate}),null===O)for(var Z={keyUsage:!0,basicConstraints:!0},oe=0;null===O&&oede.pathLenConstraint&&(O={message:"Certificate basicConstraints pathLenConstraint violated.",error:T.certificateError.bad_certificate})}var ne=null===O||O.error,We=Y.verify?Y.verify(ne,I,D):ne;if(!0!==We)throw!0===ne&&(O={message:"The application rejected the certificate.",error:T.certificateError.bad_certificate}),(We||0===We)&&("object"!=typeof We||v.util.isArray(We)?"string"==typeof We&&(O.error=We):(We.message&&(O.message=We.message),We.error&&(O.error=We.error))),O;O=null,L=!1,++I}while(W.length>0);return!0}},9274:(Ne,Ae,$)=>{"use strict";Ne.exports=$(1953)},1953:(Ne,Ae,$)=>{"use strict";var v=Ae;function A(){v.util._configure(),v.Writer._configure(v.BufferWriter),v.Reader._configure(v.BufferReader)}v.build="minimal",v.Writer=$(8882),v.BufferWriter=$(8994),v.Reader=$(6065),v.BufferReader=$(3111),v.util=$(8831),v.rpc=$(2494),v.roots=$(6053),v.configure=A,A()},6065:(Ne,Ae,$)=>{"use strict";Ne.exports=m;var A,v=$(8831),T=v.LongBits,_=v.utf8;function y(a,r){return RangeError("index out of range: "+a.pos+" + "+(r||1)+" > "+a.len)}function m(a){this.buf=a,this.pos=0,this.len=a.length}var r,f=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new m(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new m(r);throw Error("illegal buffer")},C=function(){return v.Buffer?function(i){return(m.create=function(d){return v.Buffer.isBuffer(d)?new A(d):f(d)})(i)}:f};function b(){var a=new T(0,0),r=0;if(!(this.len-this.pos>4)){for(;r<3;++r){if(this.pos>=this.len)throw y(this);if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return a}return a.lo=(a.lo|(127&this.buf[this.pos++])<<7*r)>>>0,a}for(;r<4;++r)if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return a;if(a.lo=(a.lo|(127&this.buf[this.pos])<<28)>>>0,a.hi=(a.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return a;if(r=0,this.len-this.pos>4){for(;r<5;++r)if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return a}else for(;r<5;++r){if(this.pos>=this.len)throw y(this);if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return a}throw Error("invalid varint encoding")}function x(a,r){return(a[r-4]|a[r-3]<<8|a[r-2]<<16|a[r-1]<<24)>>>0}function k(){if(this.pos+8>this.len)throw y(this,8);return new T(x(this.buf,this.pos+=4),x(this.buf,this.pos+=4))}m.create=C(),m.prototype._slice=v.Array.prototype.subarray||v.Array.prototype.slice,m.prototype.uint32=(r=4294967295,function(){if(r=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(r=(r|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,y(this,10);return r}),m.prototype.int32=function(){return 0|this.uint32()},m.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(1&r)|0},m.prototype.bool=function(){return 0!==this.uint32()},m.prototype.fixed32=function(){if(this.pos+4>this.len)throw y(this,4);return x(this.buf,this.pos+=4)},m.prototype.sfixed32=function(){if(this.pos+4>this.len)throw y(this,4);return 0|x(this.buf,this.pos+=4)},m.prototype.float=function(){if(this.pos+4>this.len)throw y(this,4);var r=v.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r},m.prototype.double=function(){if(this.pos+8>this.len)throw y(this,4);var r=v.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r},m.prototype.bytes=function(){var r=this.uint32(),i=this.pos,c=this.pos+r;if(c>this.len)throw y(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(i,c);if(i===c){var d=v.Buffer;return d?d.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,c)},m.prototype.string=function(){var r=this.bytes();return _.read(r,0,r.length)},m.prototype.skip=function(r){if("number"==typeof r){if(this.pos+r>this.len)throw y(this,r);this.pos+=r}else do{if(this.pos>=this.len)throw y(this)}while(128&this.buf[this.pos++]);return this},m.prototype.skipType=function(a){switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(a=7&this.uint32());)this.skipType(a);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos)}return this},m._configure=function(a){A=a,m.create=C(),A._configure();var r=v.Long?"toLong":"toNumber";v.merge(m.prototype,{int64:function(){return b.call(this)[r](!1)},uint64:function(){return b.call(this)[r](!0)},sint64:function(){return b.call(this).zzDecode()[r](!1)},fixed64:function(){return k.call(this)[r](!0)},sfixed64:function(){return k.call(this)[r](!1)}})}},3111:(Ne,Ae,$)=>{"use strict";Ne.exports=T;var v=$(6065);(T.prototype=Object.create(v.prototype)).constructor=T;var A=$(8831);function T(_){v.call(this,_)}T._configure=function(){A.Buffer&&(T.prototype._slice=A.Buffer.prototype.slice)},T.prototype.string=function(){var y=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+y,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+y,this.len))},T._configure()},6053:Ne=>{"use strict";Ne.exports={}},2494:(Ne,Ae,$)=>{"use strict";Ae.Service=$(5256)},5256:(Ne,Ae,$)=>{"use strict";Ne.exports=A;var v=$(8831);function A(T,_,y){if("function"!=typeof T)throw TypeError("rpcImpl must be a function");v.EventEmitter.call(this),this.rpcImpl=T,this.requestDelimited=Boolean(_),this.responseDelimited=Boolean(y)}(A.prototype=Object.create(v.EventEmitter.prototype)).constructor=A,A.prototype.rpcCall=function T(_,y,m,f,C){if(!f)throw TypeError("request must be specified");var b=this;if(!C)return v.asPromise(T,b,_,y,m,f);if(b.rpcImpl)try{return b.rpcImpl(_,y[b.requestDelimited?"encodeDelimited":"encode"](f).finish(),function(k,a){if(k)return b.emit("error",k,_),C(k);if(null!==a){if(!(a instanceof m))try{a=m[b.responseDelimited?"decodeDelimited":"decode"](a)}catch(r){return b.emit("error",r,_),C(r)}return b.emit("data",a,_),C(null,a)}b.end(!0)})}catch(x){return b.emit("error",x,_),void setTimeout(function(){C(x)},0)}else setTimeout(function(){C(Error("already ended"))},0)},A.prototype.end=function(_){return this.rpcImpl&&(_||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},5943:(Ne,Ae,$)=>{"use strict";Ne.exports=A;var v=$(8831);function A(m,f){this.lo=m>>>0,this.hi=f>>>0}var T=A.zero=new A(0,0);T.toNumber=function(){return 0},T.zzEncode=T.zzDecode=function(){return this},T.length=function(){return 1};var _=A.zeroHash="\0\0\0\0\0\0\0\0";A.fromNumber=function(f){if(0===f)return T;var C=f<0;C&&(f=-f);var b=f>>>0,x=(f-b)/4294967296>>>0;return C&&(x=~x>>>0,b=~b>>>0,++b>4294967295&&(b=0,++x>4294967295&&(x=0))),new A(b,x)},A.from=function(f){if("number"==typeof f)return A.fromNumber(f);if(v.isString(f)){if(!v.Long)return A.fromNumber(parseInt(f,10));f=v.Long.fromString(f)}return f.low||f.high?new A(f.low>>>0,f.high>>>0):T},A.prototype.toNumber=function(f){if(!f&&this.hi>>>31){var C=1+~this.lo>>>0,b=~this.hi>>>0;return C||(b=b+1>>>0),-(C+4294967296*b)}return this.lo+4294967296*this.hi},A.prototype.toLong=function(f){return v.Long?new v.Long(0|this.lo,0|this.hi,Boolean(f)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(f)}};var y=String.prototype.charCodeAt;A.fromHash=function(f){return f===_?T:new A((y.call(f,0)|y.call(f,1)<<8|y.call(f,2)<<16|y.call(f,3)<<24)>>>0,(y.call(f,4)|y.call(f,5)<<8|y.call(f,6)<<16|y.call(f,7)<<24)>>>0)},A.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},A.prototype.zzEncode=function(){var f=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^f)>>>0,this.lo=(this.lo<<1^f)>>>0,this},A.prototype.zzDecode=function(){var f=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^f)>>>0,this.hi=(this.hi>>>1^f)>>>0,this},A.prototype.length=function(){var f=this.lo,C=(this.lo>>>28|this.hi<<4)>>>0,b=this.hi>>>24;return 0===b?0===C?f<16384?f<128?1:2:f<2097152?3:4:C<16384?C<128?5:6:C<2097152?7:8:b<128?9:10}},8831:function(Ne,Ae,$){"use strict";var v=Ae;function A(_,y,m){for(var f=Object.keys(y),C=0;C0)},v.Buffer=function(){try{var _=v.inquire("buffer").Buffer;return _.prototype.utf8Write?_:null}catch{return null}}(),v._Buffer_from=null,v._Buffer_allocUnsafe=null,v.newBuffer=function(y){return"number"==typeof y?v.Buffer?v._Buffer_allocUnsafe(y):new v.Array(y):v.Buffer?v._Buffer_from(y):typeof Uint8Array>"u"?y:new Uint8Array(y)},v.Array=typeof Uint8Array<"u"?Uint8Array:Array,v.Long=v.global.dcodeIO&&v.global.dcodeIO.Long||v.global.Long||v.inquire("long"),v.key2Re=/^true|false|0|1$/,v.key32Re=/^-?(?:0|[1-9][0-9]*)$/,v.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,v.longToHash=function(y){return y?v.LongBits.from(y).toHash():v.LongBits.zeroHash},v.longFromHash=function(y,m){var f=v.LongBits.fromHash(y);return v.Long?v.Long.fromBits(f.lo,f.hi,m):f.toNumber(Boolean(m))},v.merge=A,v.lcFirst=function(y){return y.charAt(0).toLowerCase()+y.substring(1)},v.newError=T,v.ProtocolError=T("ProtocolError"),v.oneOfGetter=function(y){for(var m={},f=0;f-1;--b)if(1===m[C[b]]&&null!=this[C[b]])return C[b]}},v.oneOfSetter=function(y){return function(m){for(var f=0;f{"use strict";Ne.exports=b;var A,v=$(8831),T=v.LongBits,_=v.base64,y=v.utf8;function m(h,g,E){this.fn=h,this.len=g,this.next=void 0,this.val=E}function f(){}function C(h){this.head=h.head,this.tail=h.tail,this.len=h.len,this.next=h.states}function b(){this.len=0,this.head=new m(f,0,0),this.tail=this.head,this.states=null}var x=function(){return v.Buffer?function(){return(b.create=function(){return new A})()}:function(){return new b}};function k(h,g,E){g[E]=255&h}function r(h,g){this.len=h,this.next=void 0,this.val=g}function i(h,g,E){for(;h.hi;)g[E++]=127&h.lo|128,h.lo=(h.lo>>>7|h.hi<<25)>>>0,h.hi>>>=7;for(;h.lo>127;)g[E++]=127&h.lo|128,h.lo=h.lo>>>7;g[E++]=h.lo}function c(h,g,E){g[E]=255&h,g[E+1]=h>>>8&255,g[E+2]=h>>>16&255,g[E+3]=h>>>24}b.create=x(),b.alloc=function(g){return new v.Array(g)},v.Array!==Array&&(b.alloc=v.pool(b.alloc,v.Array.prototype.subarray)),b.prototype._push=function(g,E,P){return this.tail=this.tail.next=new m(g,E,P),this.len+=E,this},(r.prototype=Object.create(m.prototype)).fn=function a(h,g,E){for(;h>127;)g[E++]=127&h|128,h>>>=7;g[E]=h},b.prototype.uint32=function(g){return this.len+=(this.tail=this.tail.next=new r((g>>>=0)<128?1:g<16384?2:g<2097152?3:g<268435456?4:5,g)).len,this},b.prototype.int32=function(g){return g<0?this._push(i,10,T.fromNumber(g)):this.uint32(g)},b.prototype.sint32=function(g){return this.uint32((g<<1^g>>31)>>>0)},b.prototype.int64=b.prototype.uint64=function(g){var E=T.from(g);return this._push(i,E.length(),E)},b.prototype.sint64=function(g){var E=T.from(g).zzEncode();return this._push(i,E.length(),E)},b.prototype.bool=function(g){return this._push(k,1,g?1:0)},b.prototype.sfixed32=b.prototype.fixed32=function(g){return this._push(c,4,g>>>0)},b.prototype.sfixed64=b.prototype.fixed64=function(g){var E=T.from(g);return this._push(c,4,E.lo)._push(c,4,E.hi)},b.prototype.float=function(g){return this._push(v.float.writeFloatLE,4,g)},b.prototype.double=function(g){return this._push(v.float.writeDoubleLE,8,g)};var d=v.Array.prototype.set?function(g,E,P){E.set(g,P)}:function(g,E,P){for(var U=0;U>>0;if(!E)return this._push(k,1,0);if(v.isString(g)){var P=b.alloc(E=_.length(g));_.decode(g,P,0),g=P}return this.uint32(E)._push(d,E,g)},b.prototype.string=function(g){var E=y.length(g);return E?this.uint32(E)._push(y.write,E,g):this._push(k,1,0)},b.prototype.fork=function(){return this.states=new C(this),this.head=this.tail=new m(f,0,0),this.len=0,this},b.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new m(f,0,0),this.len=0),this},b.prototype.ldelim=function(){var g=this.head,E=this.tail,P=this.len;return this.reset().uint32(P),P&&(this.tail.next=g.next,this.tail=E,this.len+=P),this},b.prototype.finish=function(){for(var g=this.head.next,E=this.constructor.alloc(this.len),P=0;g;)g.fn(g.val,E,P),P+=g.len,g=g.next;return E},b._configure=function(h){A=h,b.create=x(),A._configure()}},8994:(Ne,Ae,$)=>{"use strict";Ne.exports=T;var v=$(8882);(T.prototype=Object.create(v.prototype)).constructor=T;var A=$(8831);function T(){v.call(this)}function _(y,m,f){y.length<40?A.utf8.write(y,m,f):m.utf8Write?m.utf8Write(y,f):m.write(y,f)}T._configure=function(){T.alloc=A._Buffer_allocUnsafe,T.writeBytesBuffer=A.Buffer&&A.Buffer.prototype instanceof Uint8Array&&"set"===A.Buffer.prototype.set.name?function(m,f,C){f.set(m,C)}:function(m,f,C){if(m.copy)m.copy(f,C,0,m.length);else for(var b=0;b>>0;return this.uint32(f),f&&this._push(T.writeBytesBuffer,f,m),this},T.prototype.string=function(m){var f=A.Buffer.byteLength(m);return this.uint32(f),f&&this._push(_,f,m),this},T._configure()},7286:(Ne,Ae)=>{"use strict";class A{static isArrayBuffer(i){return"[object ArrayBuffer]"===Object.prototype.toString.call(i)}static toArrayBuffer(i){return this.isArrayBuffer(i)?i:i.byteLength===i.buffer.byteLength||0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:this.toUint8Array(i.buffer).slice(i.byteOffset,i.byteOffset+i.byteLength).buffer}static toUint8Array(i){return this.toView(i,Uint8Array)}static toView(i,c){if(i.constructor===c)return i;if(this.isArrayBuffer(i))return new c(i);if(this.isArrayBufferView(i))return new c(i.buffer,i.byteOffset,i.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(i){return this.isArrayBufferView(i)||this.isArrayBuffer(i)}static isArrayBufferView(i){return ArrayBuffer.isView(i)||i&&this.isArrayBuffer(i.buffer)}static isEqual(i,c){const d=A.toUint8Array(i),h=A.toUint8Array(c);if(d.length!==h.byteLength)return!1;for(let g=0;g{class r{static isHex(c){return typeof c===T&&_.test(c)}static isBase64(c){return typeof c===T&&y.test(c)}static isBase64Url(c){return typeof c===T&&m.test(c)}static ToString(c,d="utf8"){const h=A.toUint8Array(c);switch(d.toLowerCase()){case"utf8":return this.ToUtf8String(h);case"binary":return this.ToBinary(h);case"hex":return this.ToHex(h);case"base64":return this.ToBase64(h);case"base64url":return this.ToBase64Url(h);case"utf16le":return C.toString(h,!0);case"utf16":case"utf16be":return C.toString(h);default:throw new Error(`Unknown type of encoding '${d}'`)}}static FromString(c,d="utf8"){if(!c)return new ArrayBuffer(0);switch(d.toLowerCase()){case"utf8":return this.FromUtf8String(c);case"binary":return this.FromBinary(c);case"hex":return this.FromHex(c);case"base64":return this.FromBase64(c);case"base64url":return this.FromBase64Url(c);case"utf16le":return C.fromString(c,!0);case"utf16":case"utf16be":return C.fromString(c);default:throw new Error(`Unknown type of encoding '${d}'`)}}static ToBase64(c){const d=A.toUint8Array(c);if(typeof btoa<"u"){const h=this.ToString(d,"binary");return btoa(h)}return Buffer.from(d).toString("base64")}static FromBase64(c){const d=this.formatString(c);if(!d)return new ArrayBuffer(0);if(!r.isBase64(d))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return typeof atob<"u"?this.FromBinary(atob(d)):new Uint8Array(Buffer.from(d,"base64")).buffer}static FromBase64Url(c){const d=this.formatString(c);if(!d)return new ArrayBuffer(0);if(!r.isBase64Url(d))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(d.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(c){return this.ToBase64(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(c,d=r.DEFAULT_UTF8_ENCODING){switch(d){case"ascii":return this.FromBinary(c);case"utf8":return f.fromString(c);case"utf16":case"utf16be":return C.fromString(c);case"utf16le":case"usc2":return C.fromString(c,!0);default:throw new Error(`Unknown type of encoding '${d}'`)}}static ToUtf8String(c,d=r.DEFAULT_UTF8_ENCODING){switch(d){case"ascii":return this.ToBinary(c);case"utf8":return f.toString(c);case"utf16":case"utf16be":return C.toString(c);case"utf16le":case"usc2":return C.toString(c,!0);default:throw new Error(`Unknown type of encoding '${d}'`)}}static FromBinary(c){const d=c.length,h=new Uint8Array(d);for(let g=0;g{"use strict";function Ae(v){try{return JSON.stringify(v)}catch{return'"[Circular]"'}}Ne.exports=function $(v,A,T){var _=T&&T.stringify||Ae;if("object"==typeof v&&null!==v){var m=A.length+1;if(1===m)return v;var f=new Array(m);f[0]=_(v);for(var C=1;C-1?a:0,v.charCodeAt(i+1)){case 100:case 102:if(k>=b||null==A[k])break;a=b||null==A[k])break;a=b||void 0===A[k])break;a",a=i+2,i++;break}x+=_(A[k]),a=i+2,i++;break;case 115:if(k>=b)break;a{Ne.exports=function(Ae){"use strict";var v=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function T(d,h){var g=d[0],E=d[1],P=d[2],U=d[3];E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&P|~E&U)+h[0]-680876936|0)<<7|g>>>25)+E|0)&E|~g&P)+h[1]-389564586|0)<<12|U>>>20)+g|0)&g|~U&E)+h[2]+606105819|0)<<17|P>>>15)+U|0)&U|~P&g)+h[3]-1044525330|0)<<22|E>>>10)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&P|~E&U)+h[4]-176418897|0)<<7|g>>>25)+E|0)&E|~g&P)+h[5]+1200080426|0)<<12|U>>>20)+g|0)&g|~U&E)+h[6]-1473231341|0)<<17|P>>>15)+U|0)&U|~P&g)+h[7]-45705983|0)<<22|E>>>10)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&P|~E&U)+h[8]+1770035416|0)<<7|g>>>25)+E|0)&E|~g&P)+h[9]-1958414417|0)<<12|U>>>20)+g|0)&g|~U&E)+h[10]-42063|0)<<17|P>>>15)+U|0)&U|~P&g)+h[11]-1990404162|0)<<22|E>>>10)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&P|~E&U)+h[12]+1804603682|0)<<7|g>>>25)+E|0)&E|~g&P)+h[13]-40341101|0)<<12|U>>>20)+g|0)&g|~U&E)+h[14]-1502002290|0)<<17|P>>>15)+U|0)&U|~P&g)+h[15]+1236535329|0)<<22|E>>>10)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&U|P&~U)+h[1]-165796510|0)<<5|g>>>27)+E|0)&P|E&~P)+h[6]-1069501632|0)<<9|U>>>23)+g|0)&E|g&~E)+h[11]+643717713|0)<<14|P>>>18)+U|0)&g|U&~g)+h[0]-373897302|0)<<20|E>>>12)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&U|P&~U)+h[5]-701558691|0)<<5|g>>>27)+E|0)&P|E&~P)+h[10]+38016083|0)<<9|U>>>23)+g|0)&E|g&~E)+h[15]-660478335|0)<<14|P>>>18)+U|0)&g|U&~g)+h[4]-405537848|0)<<20|E>>>12)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&U|P&~U)+h[9]+568446438|0)<<5|g>>>27)+E|0)&P|E&~P)+h[14]-1019803690|0)<<9|U>>>23)+g|0)&E|g&~E)+h[3]-187363961|0)<<14|P>>>18)+U|0)&g|U&~g)+h[8]+1163531501|0)<<20|E>>>12)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E&U|P&~U)+h[13]-1444681467|0)<<5|g>>>27)+E|0)&P|E&~P)+h[2]-51403784|0)<<9|U>>>23)+g|0)&E|g&~E)+h[7]+1735328473|0)<<14|P>>>18)+U|0)&g|U&~g)+h[12]-1926607734|0)<<20|E>>>12)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E^P^U)+h[5]-378558|0)<<4|g>>>28)+E|0)^E^P)+h[8]-2022574463|0)<<11|U>>>21)+g|0)^g^E)+h[11]+1839030562|0)<<16|P>>>16)+U|0)^U^g)+h[14]-35309556|0)<<23|E>>>9)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E^P^U)+h[1]-1530992060|0)<<4|g>>>28)+E|0)^E^P)+h[4]+1272893353|0)<<11|U>>>21)+g|0)^g^E)+h[7]-155497632|0)<<16|P>>>16)+U|0)^U^g)+h[10]-1094730640|0)<<23|E>>>9)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E^P^U)+h[13]+681279174|0)<<4|g>>>28)+E|0)^E^P)+h[0]-358537222|0)<<11|U>>>21)+g|0)^g^E)+h[3]-722521979|0)<<16|P>>>16)+U|0)^U^g)+h[6]+76029189|0)<<23|E>>>9)+P|0,E=((E+=((P=((P+=((U=((U+=((g=((g+=(E^P^U)+h[9]-640364487|0)<<4|g>>>28)+E|0)^E^P)+h[12]-421815835|0)<<11|U>>>21)+g|0)^g^E)+h[15]+530742520|0)<<16|P>>>16)+U|0)^U^g)+h[2]-995338651|0)<<23|E>>>9)+P|0,E=((E+=((U=((U+=(E^((g=((g+=(P^(E|~U))+h[0]-198630844|0)<<6|g>>>26)+E|0)|~P))+h[7]+1126891415|0)<<10|U>>>22)+g|0)^((P=((P+=(g^(U|~E))+h[14]-1416354905|0)<<15|P>>>17)+U|0)|~g))+h[5]-57434055|0)<<21|E>>>11)+P|0,E=((E+=((U=((U+=(E^((g=((g+=(P^(E|~U))+h[12]+1700485571|0)<<6|g>>>26)+E|0)|~P))+h[3]-1894986606|0)<<10|U>>>22)+g|0)^((P=((P+=(g^(U|~E))+h[10]-1051523|0)<<15|P>>>17)+U|0)|~g))+h[1]-2054922799|0)<<21|E>>>11)+P|0,E=((E+=((U=((U+=(E^((g=((g+=(P^(E|~U))+h[8]+1873313359|0)<<6|g>>>26)+E|0)|~P))+h[15]-30611744|0)<<10|U>>>22)+g|0)^((P=((P+=(g^(U|~E))+h[6]-1560198380|0)<<15|P>>>17)+U|0)|~g))+h[13]+1309151649|0)<<21|E>>>11)+P|0,E=((E+=((U=((U+=(E^((g=((g+=(P^(E|~U))+h[4]-145523070|0)<<6|g>>>26)+E|0)|~P))+h[11]-1120210379|0)<<10|U>>>22)+g|0)^((P=((P+=(g^(U|~E))+h[2]+718787259|0)<<15|P>>>17)+U|0)|~g))+h[9]-343485551|0)<<21|E>>>11)+P|0,d[0]=g+d[0]|0,d[1]=E+d[1]|0,d[2]=P+d[2]|0,d[3]=U+d[3]|0}function _(d){var g,h=[];for(g=0;g<64;g+=4)h[g>>2]=d.charCodeAt(g)+(d.charCodeAt(g+1)<<8)+(d.charCodeAt(g+2)<<16)+(d.charCodeAt(g+3)<<24);return h}function y(d){var g,h=[];for(g=0;g<64;g+=4)h[g>>2]=d[g]+(d[g+1]<<8)+(d[g+2]<<16)+(d[g+3]<<24);return h}function m(d){var E,P,U,X,te,z,h=d.length,g=[1732584193,-271733879,-1732584194,271733878];for(E=64;E<=h;E+=64)T(g,_(d.substring(E-64,E)));for(P=(d=d.substring(E-64)).length,U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E>2]|=d.charCodeAt(E)<<(E%4<<3);if(U[E>>2]|=128<<(E%4<<3),E>55)for(T(g,U),E=0;E<16;E+=1)U[E]=0;return X=(X=8*h).toString(16).match(/(.*?)(.{0,8})$/),te=parseInt(X[2],16),z=parseInt(X[1],16)||0,U[14]=te,U[15]=z,T(g,U),g}function C(d){var g,h="";for(g=0;g<4;g+=1)h+=v[d>>8*g+4&15]+v[d>>8*g&15];return h}function b(d){var h;for(h=0;hU?new ArrayBuffer(0):(X=U-P,te=new ArrayBuffer(X),z=new Uint8Array(te),W=new Uint8Array(this,P,X),z.set(W),te)}}(),c.prototype.append=function(d){return this.appendBinary(x(d)),this},c.prototype.appendBinary=function(d){this._buff+=d,this._length+=d.length;var g,h=this._buff.length;for(g=64;g<=h;g+=64)T(this._hash,_(this._buff.substring(g-64,g)));return this._buff=this._buff.substring(g-64),this},c.prototype.end=function(d){var E,U,h=this._buff,g=h.length,P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(E=0;E>2]|=h.charCodeAt(E)<<(E%4<<3);return this._finish(P,g),U=b(this._hash),d&&(U=i(U)),this.reset(),U},c.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},c.prototype.setState=function(d){return this._buff=d.buff,this._length=d.length,this._hash=d.hash,this},c.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},c.prototype._finish=function(d,h){var E,P,U,g=h;if(d[g>>2]|=128<<(g%4<<3),g>55)for(T(this._hash,d),g=0;g<16;g+=1)d[g]=0;E=(E=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),P=parseInt(E[2],16),U=parseInt(E[1],16)||0,d[14]=P,d[15]=U,T(this._hash,d)},c.hash=function(d,h){return c.hashBinary(x(d),h)},c.hashBinary=function(d,h){var E=b(m(d));return h?i(E):E},(c.ArrayBuffer=function(){this.reset()}).prototype.append=function(d){var E,h=function r(d,h,g){var E=new Uint8Array(d.byteLength+h.byteLength);return E.set(new Uint8Array(d)),E.set(new Uint8Array(h),d.byteLength),g?E:E.buffer}(this._buff.buffer,d,!0),g=h.length;for(this._length+=d.byteLength,E=64;E<=g;E+=64)T(this._hash,y(h.subarray(E-64,E)));return this._buff=E-64>2]|=h[P]<<(P%4<<3);return this._finish(E,g),U=b(this._hash),d&&(U=i(U)),this.reset(),U},c.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.ArrayBuffer.prototype.getState=function(){var d=c.prototype.getState.call(this);return d.buff=function a(d){return String.fromCharCode.apply(null,new Uint8Array(d))}(d.buff),d},c.ArrayBuffer.prototype.setState=function(d){return d.buff=function k(d,h){var U,g=d.length,E=new ArrayBuffer(g),P=new Uint8Array(E);for(U=0;U>2]|=d[E]<<(E%4<<3);if(U[E>>2]|=128<<(E%4<<3),E>55)for(T(g,U),E=0;E<16;E+=1)U[E]=0;return X=(X=8*h).toString(16).match(/(.*?)(.{0,8})$/),te=parseInt(X[2],16),z=parseInt(X[1],16)||0,U[14]=te,U[15]=z,T(g,U),g}(new Uint8Array(d)));return h?i(E):E},c}()},7655:function(Ne,Ae){"use strict";var f,$=this&&this.__extends||(f=function(C,b){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,k){x.__proto__=k}||function(x,k){for(var a in k)Object.prototype.hasOwnProperty.call(k,a)&&(x[a]=k[a])})(C,b)},function(C,b){function x(){this.constructor=C}f(C,b),C.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Ae.__esModule=!0,Ae.createEventEmitter=Ae.Event=Ae.createEmitter=Ae.SealedEvent=Ae.BaseEvent=void 0;var v=function(){function f(){this.listeners=[]}return f.prototype.on=function(C){this.listeners.push({once:!1,callback:C})},f.prototype.once=function(C){var b=this;if(!C){var x=new Promise(function(k){b.once(k)});return this.listeners[this.listeners.length-1].promise=x,x}this.listeners.push({once:!0,callback:C})},f.prototype.off=function(C){var b=this.listeners.length;return this.listeners=this.listeners.filter(function(x){return C!==x.callback&&(!x.promise||C!==x.promise)}),this.listeners.length!==b},f.prototype.offAll=function(){var C=this.listeners.length;return this.listeners.length=0,C},f}();Ae.BaseEvent=v;var A=function(f){function C(){return null!==f&&f.apply(this,arguments)||this}return $(C,f),C}(v);function T(f){var C=f;function b(a){for(var r=C.listeners,i=r.length>0,c=0,d=r;c{!function(v){"use strict";var A=function(ae){var le,ue=new Float64Array(16);if(ae)for(le=0;le>24&255,ae[le+1]=ue>>16&255,ae[le+2]=ue>>8&255,ae[le+3]=255&ue,ae[le+4]=q>>24&255,ae[le+5]=q>>16&255,ae[le+6]=q>>8&255,ae[le+7]=255&q}function c(ae,le,ue,q,be){var Ge,nt=0;for(Ge=0;Ge>>8)-1}function d(ae,le,ue,q){return c(ae,le,ue,q,16)}function h(ae,le,ue,q){return c(ae,le,ue,q,32)}function P(ae,le,ue,q){!function g(ae,le,ue,q){for(var De,be=255&q[0]|(255&q[1])<<8|(255&q[2])<<16|(255&q[3])<<24,Ge=255&ue[0]|(255&ue[1])<<8|(255&ue[2])<<16|(255&ue[3])<<24,nt=255&ue[4]|(255&ue[5])<<8|(255&ue[6])<<16|(255&ue[7])<<24,et=255&ue[8]|(255&ue[9])<<8|(255&ue[10])<<16|(255&ue[11])<<24,ft=255&ue[12]|(255&ue[13])<<8|(255&ue[14])<<16|(255&ue[15])<<24,rn=255&q[4]|(255&q[5])<<8|(255&q[6])<<16|(255&q[7])<<24,St=255&le[0]|(255&le[1])<<8|(255&le[2])<<16|(255&le[3])<<24,dn=255&le[4]|(255&le[5])<<8|(255&le[6])<<16|(255&le[7])<<24,Zt=255&le[8]|(255&le[9])<<8|(255&le[10])<<16|(255&le[11])<<24,vn=255&le[12]|(255&le[13])<<8|(255&le[14])<<16|(255&le[15])<<24,bn=255&q[8]|(255&q[9])<<8|(255&q[10])<<16|(255&q[11])<<24,En=255&ue[16]|(255&ue[17])<<8|(255&ue[18])<<16|(255&ue[19])<<24,Tn=255&ue[20]|(255&ue[21])<<8|(255&ue[22])<<16|(255&ue[23])<<24,In=255&ue[24]|(255&ue[25])<<8|(255&ue[26])<<16|(255&ue[27])<<24,Nn=255&ue[28]|(255&ue[29])<<8|(255&ue[30])<<16|(255&ue[31])<<24,On=255&q[12]|(255&q[13])<<8|(255&q[14])<<16|(255&q[15])<<24,qt=be,Gt=Ge,sn=nt,pn=et,on=ft,vt=rn,At=St,dt=dn,Mt=Zt,se=vn,ce=bn,me=En,Ve=Tn,pt=In,Ct=Nn,kt=On,Tt=0;Tt<20;Tt+=2)qt^=(De=(Ve^=(De=(Mt^=(De=(on^=(De=qt+Ve|0)<<7|De>>>25)+qt|0)<<9|De>>>23)+on|0)<<13|De>>>19)+Mt|0)<<18|De>>>14,vt^=(De=(Gt^=(De=(pt^=(De=(se^=(De=vt+Gt|0)<<7|De>>>25)+vt|0)<<9|De>>>23)+se|0)<<13|De>>>19)+pt|0)<<18|De>>>14,ce^=(De=(At^=(De=(sn^=(De=(Ct^=(De=ce+At|0)<<7|De>>>25)+ce|0)<<9|De>>>23)+Ct|0)<<13|De>>>19)+sn|0)<<18|De>>>14,kt^=(De=(me^=(De=(dt^=(De=(pn^=(De=kt+me|0)<<7|De>>>25)+kt|0)<<9|De>>>23)+pn|0)<<13|De>>>19)+dt|0)<<18|De>>>14,qt^=(De=(pn^=(De=(sn^=(De=(Gt^=(De=qt+pn|0)<<7|De>>>25)+qt|0)<<9|De>>>23)+Gt|0)<<13|De>>>19)+sn|0)<<18|De>>>14,vt^=(De=(on^=(De=(dt^=(De=(At^=(De=vt+on|0)<<7|De>>>25)+vt|0)<<9|De>>>23)+At|0)<<13|De>>>19)+dt|0)<<18|De>>>14,ce^=(De=(se^=(De=(Mt^=(De=(me^=(De=ce+se|0)<<7|De>>>25)+ce|0)<<9|De>>>23)+me|0)<<13|De>>>19)+Mt|0)<<18|De>>>14,kt^=(De=(Ct^=(De=(pt^=(De=(Ve^=(De=kt+Ct|0)<<7|De>>>25)+kt|0)<<9|De>>>23)+Ve|0)<<13|De>>>19)+pt|0)<<18|De>>>14;Gt=Gt+Ge|0,sn=sn+nt|0,pn=pn+et|0,on=on+ft|0,vt=vt+rn|0,At=At+St|0,dt=dt+dn|0,Mt=Mt+Zt|0,se=se+vn|0,ce=ce+bn|0,me=me+En|0,Ve=Ve+Tn|0,pt=pt+In|0,Ct=Ct+Nn|0,kt=kt+On|0,ae[0]=(qt=qt+be|0)>>>0&255,ae[1]=qt>>>8&255,ae[2]=qt>>>16&255,ae[3]=qt>>>24&255,ae[4]=Gt>>>0&255,ae[5]=Gt>>>8&255,ae[6]=Gt>>>16&255,ae[7]=Gt>>>24&255,ae[8]=sn>>>0&255,ae[9]=sn>>>8&255,ae[10]=sn>>>16&255,ae[11]=sn>>>24&255,ae[12]=pn>>>0&255,ae[13]=pn>>>8&255,ae[14]=pn>>>16&255,ae[15]=pn>>>24&255,ae[16]=on>>>0&255,ae[17]=on>>>8&255,ae[18]=on>>>16&255,ae[19]=on>>>24&255,ae[20]=vt>>>0&255,ae[21]=vt>>>8&255,ae[22]=vt>>>16&255,ae[23]=vt>>>24&255,ae[24]=At>>>0&255,ae[25]=At>>>8&255,ae[26]=At>>>16&255,ae[27]=At>>>24&255,ae[28]=dt>>>0&255,ae[29]=dt>>>8&255,ae[30]=dt>>>16&255,ae[31]=dt>>>24&255,ae[32]=Mt>>>0&255,ae[33]=Mt>>>8&255,ae[34]=Mt>>>16&255,ae[35]=Mt>>>24&255,ae[36]=se>>>0&255,ae[37]=se>>>8&255,ae[38]=se>>>16&255,ae[39]=se>>>24&255,ae[40]=ce>>>0&255,ae[41]=ce>>>8&255,ae[42]=ce>>>16&255,ae[43]=ce>>>24&255,ae[44]=me>>>0&255,ae[45]=me>>>8&255,ae[46]=me>>>16&255,ae[47]=me>>>24&255,ae[48]=Ve>>>0&255,ae[49]=Ve>>>8&255,ae[50]=Ve>>>16&255,ae[51]=Ve>>>24&255,ae[52]=pt>>>0&255,ae[53]=pt>>>8&255,ae[54]=pt>>>16&255,ae[55]=pt>>>24&255,ae[56]=Ct>>>0&255,ae[57]=Ct>>>8&255,ae[58]=Ct>>>16&255,ae[59]=Ct>>>24&255,ae[60]=kt>>>0&255,ae[61]=kt>>>8&255,ae[62]=kt>>>16&255,ae[63]=kt>>>24&255}(ae,le,ue,q)}function U(ae,le,ue,q){!function E(ae,le,ue,q){for(var De,qt=255&q[0]|(255&q[1])<<8|(255&q[2])<<16|(255&q[3])<<24,Gt=255&ue[0]|(255&ue[1])<<8|(255&ue[2])<<16|(255&ue[3])<<24,sn=255&ue[4]|(255&ue[5])<<8|(255&ue[6])<<16|(255&ue[7])<<24,pn=255&ue[8]|(255&ue[9])<<8|(255&ue[10])<<16|(255&ue[11])<<24,on=255&ue[12]|(255&ue[13])<<8|(255&ue[14])<<16|(255&ue[15])<<24,vt=255&q[4]|(255&q[5])<<8|(255&q[6])<<16|(255&q[7])<<24,At=255&le[0]|(255&le[1])<<8|(255&le[2])<<16|(255&le[3])<<24,dt=255&le[4]|(255&le[5])<<8|(255&le[6])<<16|(255&le[7])<<24,Mt=255&le[8]|(255&le[9])<<8|(255&le[10])<<16|(255&le[11])<<24,se=255&le[12]|(255&le[13])<<8|(255&le[14])<<16|(255&le[15])<<24,ce=255&q[8]|(255&q[9])<<8|(255&q[10])<<16|(255&q[11])<<24,me=255&ue[16]|(255&ue[17])<<8|(255&ue[18])<<16|(255&ue[19])<<24,Ve=255&ue[20]|(255&ue[21])<<8|(255&ue[22])<<16|(255&ue[23])<<24,pt=255&ue[24]|(255&ue[25])<<8|(255&ue[26])<<16|(255&ue[27])<<24,Ct=255&ue[28]|(255&ue[29])<<8|(255&ue[30])<<16|(255&ue[31])<<24,kt=255&q[12]|(255&q[13])<<8|(255&q[14])<<16|(255&q[15])<<24,Tt=0;Tt<20;Tt+=2)qt^=(De=(Ve^=(De=(Mt^=(De=(on^=(De=qt+Ve|0)<<7|De>>>25)+qt|0)<<9|De>>>23)+on|0)<<13|De>>>19)+Mt|0)<<18|De>>>14,vt^=(De=(Gt^=(De=(pt^=(De=(se^=(De=vt+Gt|0)<<7|De>>>25)+vt|0)<<9|De>>>23)+se|0)<<13|De>>>19)+pt|0)<<18|De>>>14,ce^=(De=(At^=(De=(sn^=(De=(Ct^=(De=ce+At|0)<<7|De>>>25)+ce|0)<<9|De>>>23)+Ct|0)<<13|De>>>19)+sn|0)<<18|De>>>14,kt^=(De=(me^=(De=(dt^=(De=(pn^=(De=kt+me|0)<<7|De>>>25)+kt|0)<<9|De>>>23)+pn|0)<<13|De>>>19)+dt|0)<<18|De>>>14,qt^=(De=(pn^=(De=(sn^=(De=(Gt^=(De=qt+pn|0)<<7|De>>>25)+qt|0)<<9|De>>>23)+Gt|0)<<13|De>>>19)+sn|0)<<18|De>>>14,vt^=(De=(on^=(De=(dt^=(De=(At^=(De=vt+on|0)<<7|De>>>25)+vt|0)<<9|De>>>23)+At|0)<<13|De>>>19)+dt|0)<<18|De>>>14,ce^=(De=(se^=(De=(Mt^=(De=(me^=(De=ce+se|0)<<7|De>>>25)+ce|0)<<9|De>>>23)+me|0)<<13|De>>>19)+Mt|0)<<18|De>>>14,kt^=(De=(Ct^=(De=(pt^=(De=(Ve^=(De=kt+Ct|0)<<7|De>>>25)+kt|0)<<9|De>>>23)+Ve|0)<<13|De>>>19)+pt|0)<<18|De>>>14;ae[0]=qt>>>0&255,ae[1]=qt>>>8&255,ae[2]=qt>>>16&255,ae[3]=qt>>>24&255,ae[4]=vt>>>0&255,ae[5]=vt>>>8&255,ae[6]=vt>>>16&255,ae[7]=vt>>>24&255,ae[8]=ce>>>0&255,ae[9]=ce>>>8&255,ae[10]=ce>>>16&255,ae[11]=ce>>>24&255,ae[12]=kt>>>0&255,ae[13]=kt>>>8&255,ae[14]=kt>>>16&255,ae[15]=kt>>>24&255,ae[16]=At>>>0&255,ae[17]=At>>>8&255,ae[18]=At>>>16&255,ae[19]=At>>>24&255,ae[20]=dt>>>0&255,ae[21]=dt>>>8&255,ae[22]=dt>>>16&255,ae[23]=dt>>>24&255,ae[24]=Mt>>>0&255,ae[25]=Mt>>>8&255,ae[26]=Mt>>>16&255,ae[27]=Mt>>>24&255,ae[28]=se>>>0&255,ae[29]=se>>>8&255,ae[30]=se>>>16&255,ae[31]=se>>>24&255}(ae,le,ue,q)}var X=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function te(ae,le,ue,q,be,Ge,nt){var rn,St,et=new Uint8Array(16),ft=new Uint8Array(64);for(St=0;St<16;St++)et[St]=0;for(St=0;St<8;St++)et[St]=Ge[St];for(;be>=64;){for(P(ft,et,nt,X),St=0;St<64;St++)ae[le+St]=ue[q+St]^ft[St];for(rn=1,St=8;St<16;St++)et[St]=255&(rn=rn+(255&et[St])|0),rn>>>=8;be-=64,le+=64,q+=64}if(be>0)for(P(ft,et,nt,X),St=0;St=64;){for(P(nt,Ge,be,X),ft=0;ft<64;ft++)ae[le+ft]=nt[ft];for(et=1,ft=8;ft<16;ft++)Ge[ft]=255&(et=et+(255&Ge[ft])|0),et>>>=8;ue-=64,le+=64}if(ue>0)for(P(nt,Ge,be,X),ft=0;ft>>13|(ue=255&ae[2]|(255&ae[3])<<8)<<3),this.r[2]=7939&(ue>>>10|(q=255&ae[4]|(255&ae[5])<<8)<<6),this.r[3]=8191&(q>>>7|(be=255&ae[6]|(255&ae[7])<<8)<<9),this.r[4]=255&(be>>>4|(Ge=255&ae[8]|(255&ae[9])<<8)<<12),this.r[5]=Ge>>>1&8190,this.r[6]=8191&(Ge>>>14|(nt=255&ae[10]|(255&ae[11])<<8)<<2),this.r[7]=8065&(nt>>>11|(et=255&ae[12]|(255&ae[13])<<8)<<5),this.r[8]=8191&(et>>>8|(ft=255&ae[14]|(255&ae[15])<<8)<<8),this.r[9]=ft>>>5&127,this.pad[0]=255&ae[16]|(255&ae[17])<<8,this.pad[1]=255&ae[18]|(255&ae[19])<<8,this.pad[2]=255&ae[20]|(255&ae[21])<<8,this.pad[3]=255&ae[22]|(255&ae[23])<<8,this.pad[4]=255&ae[24]|(255&ae[25])<<8,this.pad[5]=255&ae[26]|(255&ae[27])<<8,this.pad[6]=255&ae[28]|(255&ae[29])<<8,this.pad[7]=255&ae[30]|(255&ae[31])<<8};function N(ae,le,ue,q,be,Ge){var nt=new D(Ge);return nt.update(ue,q,be),nt.finish(ae,le),0}function L(ae,le,ue,q,be,Ge){var nt=new Uint8Array(16);return N(nt,0,ue,q,be,Ge),d(ae,le,nt,0)}function O(ae,le,ue,q,be){var Ge;if(ue<32)return-1;for(Y(ae,0,le,0,ue,q,be),N(ae,16,ae,32,ue-32,ae),Ge=0;Ge<16;Ge++)ae[Ge]=0;return 0}function I(ae,le,ue,q,be){var Ge,nt=new Uint8Array(32);if(ue<32||(W(nt,0,32,q,be),0!==L(le,16,le,32,ue-32,nt)))return-1;for(Y(ae,0,le,0,ue,q,be),Ge=0;Ge<32;Ge++)ae[Ge]=0;return 0}function B(ae,le){var ue;for(ue=0;ue<16;ue++)ae[ue]=0|le[ue]}function F(ae){var le,ue,q=1;for(le=0;le<16;le++)ue=ae[le]+q+65535,q=Math.floor(ue/65536),ae[le]=ue-65536*q;ae[0]+=q-1+37*(q-1)}function H(ae,le,ue){for(var q,be=~(ue-1),Ge=0;Ge<16;Ge++)ae[Ge]^=q=be&(ae[Ge]^le[Ge]),le[Ge]^=q}function G(ae,le){var ue,q,be,Ge=A(),nt=A();for(ue=0;ue<16;ue++)nt[ue]=le[ue];for(F(nt),F(nt),F(nt),q=0;q<2;q++){for(Ge[0]=nt[0]-65517,ue=1;ue<15;ue++)Ge[ue]=nt[ue]-65535-(Ge[ue-1]>>16&1),Ge[ue-1]&=65535;Ge[15]=nt[15]-32767-(Ge[14]>>16&1),be=Ge[15]>>16&1,Ge[14]&=65535,H(nt,Ge,1-be)}for(ue=0;ue<16;ue++)ae[2*ue]=255&nt[ue],ae[2*ue+1]=nt[ue]>>8}function R(ae,le){var ue=new Uint8Array(32),q=new Uint8Array(32);return G(ue,ae),G(q,le),h(ue,0,q,0)}function Z(ae){var le=new Uint8Array(32);return G(le,ae),1&le[0]}function oe(ae,le){var ue;for(ue=0;ue<16;ue++)ae[ue]=le[2*ue]+(le[2*ue+1]<<8);ae[15]&=32767}function j(ae,le,ue){for(var q=0;q<16;q++)ae[q]=le[q]+ue[q]}function de(ae,le,ue){for(var q=0;q<16;q++)ae[q]=le[q]-ue[q]}function _e(ae,le,ue){var q,be,Ge=0,nt=0,et=0,ft=0,rn=0,St=0,dn=0,Zt=0,vn=0,bn=0,En=0,Tn=0,In=0,Nn=0,On=0,qt=0,Gt=0,sn=0,pn=0,on=0,vt=0,At=0,dt=0,Mt=0,se=0,ce=0,me=0,Ve=0,pt=0,Ct=0,kt=0,De=ue[0],Tt=ue[1],Pn=ue[2],$n=ue[3],_n=ue[4],Zn=ue[5],pr=ue[6],Sn=ue[7],cr=ue[8],Xr=ue[9],Lr=ue[10],Ur=ue[11],mo=ue[12],So=ue[13],$o=ue[14],Zo=ue[15];Ge+=(q=le[0])*De,nt+=q*Tt,et+=q*Pn,ft+=q*$n,rn+=q*_n,St+=q*Zn,dn+=q*pr,Zt+=q*Sn,vn+=q*cr,bn+=q*Xr,En+=q*Lr,Tn+=q*Ur,In+=q*mo,Nn+=q*So,On+=q*$o,qt+=q*Zo,nt+=(q=le[1])*De,et+=q*Tt,ft+=q*Pn,rn+=q*$n,St+=q*_n,dn+=q*Zn,Zt+=q*pr,vn+=q*Sn,bn+=q*cr,En+=q*Xr,Tn+=q*Lr,In+=q*Ur,Nn+=q*mo,On+=q*So,qt+=q*$o,Gt+=q*Zo,et+=(q=le[2])*De,ft+=q*Tt,rn+=q*Pn,St+=q*$n,dn+=q*_n,Zt+=q*Zn,vn+=q*pr,bn+=q*Sn,En+=q*cr,Tn+=q*Xr,In+=q*Lr,Nn+=q*Ur,On+=q*mo,qt+=q*So,Gt+=q*$o,sn+=q*Zo,ft+=(q=le[3])*De,rn+=q*Tt,St+=q*Pn,dn+=q*$n,Zt+=q*_n,vn+=q*Zn,bn+=q*pr,En+=q*Sn,Tn+=q*cr,In+=q*Xr,Nn+=q*Lr,On+=q*Ur,qt+=q*mo,Gt+=q*So,sn+=q*$o,pn+=q*Zo,rn+=(q=le[4])*De,St+=q*Tt,dn+=q*Pn,Zt+=q*$n,vn+=q*_n,bn+=q*Zn,En+=q*pr,Tn+=q*Sn,In+=q*cr,Nn+=q*Xr,On+=q*Lr,qt+=q*Ur,Gt+=q*mo,sn+=q*So,pn+=q*$o,on+=q*Zo,St+=(q=le[5])*De,dn+=q*Tt,Zt+=q*Pn,vn+=q*$n,bn+=q*_n,En+=q*Zn,Tn+=q*pr,In+=q*Sn,Nn+=q*cr,On+=q*Xr,qt+=q*Lr,Gt+=q*Ur,sn+=q*mo,pn+=q*So,on+=q*$o,vt+=q*Zo,dn+=(q=le[6])*De,Zt+=q*Tt,vn+=q*Pn,bn+=q*$n,En+=q*_n,Tn+=q*Zn,In+=q*pr,Nn+=q*Sn,On+=q*cr,qt+=q*Xr,Gt+=q*Lr,sn+=q*Ur,pn+=q*mo,on+=q*So,vt+=q*$o,At+=q*Zo,Zt+=(q=le[7])*De,vn+=q*Tt,bn+=q*Pn,En+=q*$n,Tn+=q*_n,In+=q*Zn,Nn+=q*pr,On+=q*Sn,qt+=q*cr,Gt+=q*Xr,sn+=q*Lr,pn+=q*Ur,on+=q*mo,vt+=q*So,At+=q*$o,dt+=q*Zo,vn+=(q=le[8])*De,bn+=q*Tt,En+=q*Pn,Tn+=q*$n,In+=q*_n,Nn+=q*Zn,On+=q*pr,qt+=q*Sn,Gt+=q*cr,sn+=q*Xr,pn+=q*Lr,on+=q*Ur,vt+=q*mo,At+=q*So,dt+=q*$o,Mt+=q*Zo,bn+=(q=le[9])*De,En+=q*Tt,Tn+=q*Pn,In+=q*$n,Nn+=q*_n,On+=q*Zn,qt+=q*pr,Gt+=q*Sn,sn+=q*cr,pn+=q*Xr,on+=q*Lr,vt+=q*Ur,At+=q*mo,dt+=q*So,Mt+=q*$o,se+=q*Zo,En+=(q=le[10])*De,Tn+=q*Tt,In+=q*Pn,Nn+=q*$n,On+=q*_n,qt+=q*Zn,Gt+=q*pr,sn+=q*Sn,pn+=q*cr,on+=q*Xr,vt+=q*Lr,At+=q*Ur,dt+=q*mo,Mt+=q*So,se+=q*$o,ce+=q*Zo,Tn+=(q=le[11])*De,In+=q*Tt,Nn+=q*Pn,On+=q*$n,qt+=q*_n,Gt+=q*Zn,sn+=q*pr,pn+=q*Sn,on+=q*cr,vt+=q*Xr,At+=q*Lr,dt+=q*Ur,Mt+=q*mo,se+=q*So,ce+=q*$o,me+=q*Zo,In+=(q=le[12])*De,Nn+=q*Tt,On+=q*Pn,qt+=q*$n,Gt+=q*_n,sn+=q*Zn,pn+=q*pr,on+=q*Sn,vt+=q*cr,At+=q*Xr,dt+=q*Lr,Mt+=q*Ur,se+=q*mo,ce+=q*So,me+=q*$o,Ve+=q*Zo,Nn+=(q=le[13])*De,On+=q*Tt,qt+=q*Pn,Gt+=q*$n,sn+=q*_n,pn+=q*Zn,on+=q*pr,vt+=q*Sn,At+=q*cr,dt+=q*Xr,Mt+=q*Lr,se+=q*Ur,ce+=q*mo,me+=q*So,Ve+=q*$o,pt+=q*Zo,On+=(q=le[14])*De,qt+=q*Tt,Gt+=q*Pn,sn+=q*$n,pn+=q*_n,on+=q*Zn,vt+=q*pr,At+=q*Sn,dt+=q*cr,Mt+=q*Xr,se+=q*Lr,ce+=q*Ur,me+=q*mo,Ve+=q*So,pt+=q*$o,Ct+=q*Zo,qt+=(q=le[15])*De,nt+=38*(sn+=q*Pn),et+=38*(pn+=q*$n),ft+=38*(on+=q*_n),rn+=38*(vt+=q*Zn),St+=38*(At+=q*pr),dn+=38*(dt+=q*Sn),Zt+=38*(Mt+=q*cr),vn+=38*(se+=q*Xr),bn+=38*(ce+=q*Lr),En+=38*(me+=q*Ur),Tn+=38*(Ve+=q*mo),In+=38*(pt+=q*So),Nn+=38*(Ct+=q*$o),On+=38*(kt+=q*Zo),Ge=(q=(Ge+=38*(Gt+=q*Tt))+(be=1)+65535)-65536*(be=Math.floor(q/65536)),nt=(q=nt+be+65535)-65536*(be=Math.floor(q/65536)),et=(q=et+be+65535)-65536*(be=Math.floor(q/65536)),ft=(q=ft+be+65535)-65536*(be=Math.floor(q/65536)),rn=(q=rn+be+65535)-65536*(be=Math.floor(q/65536)),St=(q=St+be+65535)-65536*(be=Math.floor(q/65536)),dn=(q=dn+be+65535)-65536*(be=Math.floor(q/65536)),Zt=(q=Zt+be+65535)-65536*(be=Math.floor(q/65536)),vn=(q=vn+be+65535)-65536*(be=Math.floor(q/65536)),bn=(q=bn+be+65535)-65536*(be=Math.floor(q/65536)),En=(q=En+be+65535)-65536*(be=Math.floor(q/65536)),Tn=(q=Tn+be+65535)-65536*(be=Math.floor(q/65536)),In=(q=In+be+65535)-65536*(be=Math.floor(q/65536)),Nn=(q=Nn+be+65535)-65536*(be=Math.floor(q/65536)),On=(q=On+be+65535)-65536*(be=Math.floor(q/65536)),qt=(q=qt+be+65535)-65536*(be=Math.floor(q/65536)),Ge=(q=(Ge+=be-1+37*(be-1))+(be=1)+65535)-65536*(be=Math.floor(q/65536)),nt=(q=nt+be+65535)-65536*(be=Math.floor(q/65536)),et=(q=et+be+65535)-65536*(be=Math.floor(q/65536)),ft=(q=ft+be+65535)-65536*(be=Math.floor(q/65536)),rn=(q=rn+be+65535)-65536*(be=Math.floor(q/65536)),St=(q=St+be+65535)-65536*(be=Math.floor(q/65536)),dn=(q=dn+be+65535)-65536*(be=Math.floor(q/65536)),Zt=(q=Zt+be+65535)-65536*(be=Math.floor(q/65536)),vn=(q=vn+be+65535)-65536*(be=Math.floor(q/65536)),bn=(q=bn+be+65535)-65536*(be=Math.floor(q/65536)),En=(q=En+be+65535)-65536*(be=Math.floor(q/65536)),Tn=(q=Tn+be+65535)-65536*(be=Math.floor(q/65536)),In=(q=In+be+65535)-65536*(be=Math.floor(q/65536)),Nn=(q=Nn+be+65535)-65536*(be=Math.floor(q/65536)),On=(q=On+be+65535)-65536*(be=Math.floor(q/65536)),qt=(q=qt+be+65535)-65536*(be=Math.floor(q/65536)),ae[0]=Ge+=be-1+37*(be-1),ae[1]=nt,ae[2]=et,ae[3]=ft,ae[4]=rn,ae[5]=St,ae[6]=dn,ae[7]=Zt,ae[8]=vn,ae[9]=bn,ae[10]=En,ae[11]=Tn,ae[12]=In,ae[13]=Nn,ae[14]=On,ae[15]=qt}function st(ae,le){_e(ae,le,le)}function ne(ae,le){var q,ue=A();for(q=0;q<16;q++)ue[q]=le[q];for(q=253;q>=0;q--)st(ue,ue),2!==q&&4!==q&&_e(ue,ue,le);for(q=0;q<16;q++)ae[q]=ue[q]}function We(ae,le){var q,ue=A();for(q=0;q<16;q++)ue[q]=le[q];for(q=250;q>=0;q--)st(ue,ue),1!==q&&_e(ue,ue,le);for(q=0;q<16;q++)ae[q]=ue[q]}function Pe(ae,le,ue){var Ge,nt,q=new Uint8Array(32),be=new Float64Array(80),et=A(),ft=A(),rn=A(),St=A(),dn=A(),Zt=A();for(nt=0;nt<31;nt++)q[nt]=le[nt];for(q[31]=127&le[31]|64,q[0]&=248,oe(be,ue),nt=0;nt<16;nt++)ft[nt]=be[nt],St[nt]=et[nt]=rn[nt]=0;for(et[0]=St[0]=1,nt=254;nt>=0;--nt)H(et,ft,Ge=q[nt>>>3]>>>(7&nt)&1),H(rn,St,Ge),j(dn,et,rn),de(et,et,rn),j(rn,ft,St),de(ft,ft,St),st(St,dn),st(Zt,et),_e(et,rn,et),_e(rn,ft,dn),j(dn,et,rn),de(et,et,rn),st(ft,et),de(rn,St,Zt),_e(et,rn,C),j(et,et,St),_e(rn,rn,et),_e(et,St,Zt),_e(St,ft,be),st(ft,dn),H(et,ft,Ge),H(rn,St,Ge);for(nt=0;nt<16;nt++)be[nt+16]=et[nt],be[nt+32]=rn[nt],be[nt+48]=ft[nt],be[nt+64]=St[nt];var vn=be.subarray(32),bn=be.subarray(16);return ne(vn,vn),_e(bn,bn,vn),G(ae,bn),0}function we(ae,le){return Pe(ae,le,y)}function Be(ae,le){return T(le,32),we(ae,le)}function K(ae,le,ue){var q=new Uint8Array(32);return Pe(q,ue,le),U(ae,_,q,X)}D.prototype.blocks=function(ae,le,ue){for(var be,Ge,nt,et,ft,rn,St,dn,Zt,vn,bn,En,Tn,In,Nn,On,qt,Gt,sn,q=this.fin?0:2048,pn=this.h[0],on=this.h[1],vt=this.h[2],At=this.h[3],dt=this.h[4],Mt=this.h[5],se=this.h[6],ce=this.h[7],me=this.h[8],Ve=this.h[9],pt=this.r[0],Ct=this.r[1],kt=this.r[2],De=this.r[3],Tt=this.r[4],Pn=this.r[5],$n=this.r[6],_n=this.r[7],Zn=this.r[8],pr=this.r[9];ue>=16;)vn=Zt=0,vn+=(pn+=8191&(be=255&ae[le+0]|(255&ae[le+1])<<8))*pt,vn+=(on+=8191&(be>>>13|(Ge=255&ae[le+2]|(255&ae[le+3])<<8)<<3))*(5*pr),vn+=(vt+=8191&(Ge>>>10|(nt=255&ae[le+4]|(255&ae[le+5])<<8)<<6))*(5*Zn),vn+=(At+=8191&(nt>>>7|(et=255&ae[le+6]|(255&ae[le+7])<<8)<<9))*(5*_n),Zt=(vn+=(dt+=8191&(et>>>4|(ft=255&ae[le+8]|(255&ae[le+9])<<8)<<12))*(5*$n))>>>13,vn&=8191,vn+=(Mt+=ft>>>1&8191)*(5*Pn),vn+=(se+=8191&(ft>>>14|(rn=255&ae[le+10]|(255&ae[le+11])<<8)<<2))*(5*Tt),vn+=(ce+=8191&(rn>>>11|(St=255&ae[le+12]|(255&ae[le+13])<<8)<<5))*(5*De),vn+=(me+=8191&(St>>>8|(dn=255&ae[le+14]|(255&ae[le+15])<<8)<<8))*(5*kt),bn=Zt+=(vn+=(Ve+=dn>>>5|q)*(5*Ct))>>>13,bn+=pn*Ct,bn+=on*pt,bn+=vt*(5*pr),bn+=At*(5*Zn),Zt=(bn+=dt*(5*_n))>>>13,bn&=8191,bn+=Mt*(5*$n),bn+=se*(5*Pn),bn+=ce*(5*Tt),bn+=me*(5*De),Zt+=(bn+=Ve*(5*kt))>>>13,bn&=8191,En=Zt,En+=pn*kt,En+=on*Ct,En+=vt*pt,En+=At*(5*pr),Zt=(En+=dt*(5*Zn))>>>13,En&=8191,En+=Mt*(5*_n),En+=se*(5*$n),En+=ce*(5*Pn),En+=me*(5*Tt),Tn=Zt+=(En+=Ve*(5*De))>>>13,Tn+=pn*De,Tn+=on*kt,Tn+=vt*Ct,Tn+=At*pt,Zt=(Tn+=dt*(5*pr))>>>13,Tn&=8191,Tn+=Mt*(5*Zn),Tn+=se*(5*_n),Tn+=ce*(5*$n),Tn+=me*(5*Pn),In=Zt+=(Tn+=Ve*(5*Tt))>>>13,In+=pn*Tt,In+=on*De,In+=vt*kt,In+=At*Ct,Zt=(In+=dt*pt)>>>13,In&=8191,In+=Mt*(5*pr),In+=se*(5*Zn),In+=ce*(5*_n),In+=me*(5*$n),Nn=Zt+=(In+=Ve*(5*Pn))>>>13,Nn+=pn*Pn,Nn+=on*Tt,Nn+=vt*De,Nn+=At*kt,Zt=(Nn+=dt*Ct)>>>13,Nn&=8191,Nn+=Mt*pt,Nn+=se*(5*pr),Nn+=ce*(5*Zn),Nn+=me*(5*_n),On=Zt+=(Nn+=Ve*(5*$n))>>>13,On+=pn*$n,On+=on*Pn,On+=vt*Tt,On+=At*De,Zt=(On+=dt*kt)>>>13,On&=8191,On+=Mt*Ct,On+=se*pt,On+=ce*(5*pr),On+=me*(5*Zn),qt=Zt+=(On+=Ve*(5*_n))>>>13,qt+=pn*_n,qt+=on*$n,qt+=vt*Pn,qt+=At*Tt,Zt=(qt+=dt*De)>>>13,qt&=8191,qt+=Mt*kt,qt+=se*Ct,qt+=ce*pt,qt+=me*(5*pr),Gt=Zt+=(qt+=Ve*(5*Zn))>>>13,Gt+=pn*Zn,Gt+=on*_n,Gt+=vt*$n,Gt+=At*Pn,Zt=(Gt+=dt*Tt)>>>13,Gt&=8191,Gt+=Mt*De,Gt+=se*kt,Gt+=ce*Ct,Gt+=me*pt,sn=Zt+=(Gt+=Ve*(5*pr))>>>13,sn+=pn*pr,sn+=on*Zn,sn+=vt*_n,sn+=At*$n,Zt=(sn+=dt*Pn)>>>13,sn&=8191,sn+=Mt*Tt,sn+=se*De,sn+=ce*kt,sn+=me*Ct,pn=vn=8191&(Zt=(Zt=((Zt+=(sn+=Ve*pt)>>>13)<<2)+Zt|0)+(vn&=8191)|0),on=bn+=Zt>>>=13,vt=En&=8191,At=Tn&=8191,dt=In&=8191,Mt=Nn&=8191,se=On&=8191,ce=qt&=8191,me=Gt&=8191,Ve=sn&=8191,le+=16,ue-=16;this.h[0]=pn,this.h[1]=on,this.h[2]=vt,this.h[3]=At,this.h[4]=dt,this.h[5]=Mt,this.h[6]=se,this.h[7]=ce,this.h[8]=me,this.h[9]=Ve},D.prototype.finish=function(ae,le){var q,be,Ge,nt,ue=new Uint16Array(10);if(this.leftover){for(nt=this.leftover,this.buffer[nt++]=1;nt<16;nt++)this.buffer[nt]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(q=this.h[1]>>>13,this.h[1]&=8191,nt=2;nt<10;nt++)this.h[nt]+=q,q=this.h[nt]>>>13,this.h[nt]&=8191;for(this.h[0]+=5*q,q=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=q,q=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=q,ue[0]=this.h[0]+5,q=ue[0]>>>13,ue[0]&=8191,nt=1;nt<10;nt++)ue[nt]=this.h[nt]+q,q=ue[nt]>>>13,ue[nt]&=8191;for(ue[9]-=8192,be=(1^q)-1,nt=0;nt<10;nt++)ue[nt]&=be;for(be=~be,nt=0;nt<10;nt++)this.h[nt]=this.h[nt]&be|ue[nt];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),this.h[0]=65535&(Ge=this.h[0]+this.pad[0]),nt=1;nt<8;nt++)this.h[nt]=65535&(Ge=(this.h[nt]+this.pad[nt]|0)+(Ge>>>16)|0);ae[le+0]=this.h[0]>>>0&255,ae[le+1]=this.h[0]>>>8&255,ae[le+2]=this.h[1]>>>0&255,ae[le+3]=this.h[1]>>>8&255,ae[le+4]=this.h[2]>>>0&255,ae[le+5]=this.h[2]>>>8&255,ae[le+6]=this.h[3]>>>0&255,ae[le+7]=this.h[3]>>>8&255,ae[le+8]=this.h[4]>>>0&255,ae[le+9]=this.h[4]>>>8&255,ae[le+10]=this.h[5]>>>0&255,ae[le+11]=this.h[5]>>>8&255,ae[le+12]=this.h[6]>>>0&255,ae[le+13]=this.h[6]>>>8&255,ae[le+14]=this.h[7]>>>0&255,ae[le+15]=this.h[7]>>>8&255},D.prototype.update=function(ae,le,ue){var q,be;if(this.leftover){for((be=16-this.leftover)>ue&&(be=ue),q=0;q=16&&(this.blocks(ae,le,be=ue-ue%16),le+=be,ue-=be),ue){for(q=0;q=128;){for(on=0;on<16;on++)be[on]=ue[(vt=8*on+mo)+0]<<24|ue[vt+1]<<16|ue[vt+2]<<8|ue[vt+3],Ge[on]=ue[vt+4]<<24|ue[vt+5]<<16|ue[vt+6]<<8|ue[vt+7];for(on=0;on<80;on++)if(et=pt,ft=Ct,St=De,dn=Tt,Zt=Pn,En=Zn,Tn=pr,Nn=cr,On=Xr,qt=Lr,Mt=65535&(dt=Ur),se=dt>>>16,ce=65535&(At=$n),me=At>>>16,Mt+=65535&(dt=(cr>>>14|De<<18)^(cr>>>18|De<<14)^(De>>>9|cr<<23)),se+=dt>>>16,ce+=65535&(At=(De>>>14|cr<<18)^(De>>>18|cr<<14)^(cr>>>9|De<<23)),me+=At>>>16,Mt+=65535&(dt=cr&Xr^~cr&Lr),se+=dt>>>16,ce+=65535&(At=De&Tt^~De&Pn),me+=At>>>16,Mt+=65535&(dt=je[2*on+1]),se+=dt>>>16,ce+=65535&(At=je[2*on]),me+=At>>>16,se+=(dt=Ge[on%16])>>>16,ce+=65535&(At=be[on%16]),me+=At>>>16,ce+=(se+=(Mt+=65535&dt)>>>16)>>>16,Mt=65535&(dt=pn=65535&Mt|se<<16),se=dt>>>16,ce=65535&(At=sn=65535&ce|(me+=ce>>>16)<<16),me=At>>>16,Mt+=65535&(dt=(_n>>>28|Ve<<4)^(Ve>>>2|_n<<30)^(Ve>>>7|_n<<25)),se+=dt>>>16,ce+=65535&(At=(Ve>>>28|_n<<4)^(_n>>>2|Ve<<30)^(_n>>>7|Ve<<25)),me+=At>>>16,se+=(dt=_n&Zn^_n&pr^Zn&pr)>>>16,ce+=65535&(At=Ve&pt^Ve&Ct^pt&Ct),me+=At>>>16,vn=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,Gt=65535&Mt|se<<16,Mt=65535&(dt=Sn),se=dt>>>16,ce=65535&(At=kt),me=At>>>16,se+=(dt=pn)>>>16,ce+=65535&(At=sn),me+=At>>>16,pt=Ve,Ct=et,kt=ft,De=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,Tt=St,Pn=dn,$n=Zt,Ve=vn,Zn=_n,pr=En,Sn=Tn,cr=65535&Mt|se<<16,Xr=Nn,Lr=On,Ur=qt,_n=Gt,on%16==15)for(vt=0;vt<16;vt++)Mt=65535&(dt=Ge[vt]),se=dt>>>16,ce=65535&(At=be[vt]),me=At>>>16,Mt+=65535&(dt=Ge[(vt+9)%16]),se+=dt>>>16,ce+=65535&(At=be[(vt+9)%16]),me+=At>>>16,Mt+=65535&(dt=((pn=Ge[(vt+1)%16])>>>1|(sn=be[(vt+1)%16])<<31)^(pn>>>8|sn<<24)^(pn>>>7|sn<<25)),se+=dt>>>16,ce+=65535&(At=(sn>>>1|pn<<31)^(sn>>>8|pn<<24)^sn>>>7),me+=At>>>16,se+=(dt=((pn=Ge[(vt+14)%16])>>>19|(sn=be[(vt+14)%16])<<13)^(sn>>>29|pn<<3)^(pn>>>6|sn<<26))>>>16,ce+=65535&(At=(sn>>>19|pn<<13)^(pn>>>29|sn<<3)^sn>>>6),me+=At>>>16,be[vt]=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,Ge[vt]=65535&Mt|se<<16;Mt=65535&(dt=_n),se=dt>>>16,ce=65535&(At=Ve),me=At>>>16,se+=(dt=le[0])>>>16,ce+=65535&(At=ae[0]),me+=At>>>16,ae[0]=Ve=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[0]=_n=65535&Mt|se<<16,Mt=65535&(dt=Zn),se=dt>>>16,ce=65535&(At=pt),me=At>>>16,se+=(dt=le[1])>>>16,ce+=65535&(At=ae[1]),me+=At>>>16,ae[1]=pt=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[1]=Zn=65535&Mt|se<<16,Mt=65535&(dt=pr),se=dt>>>16,ce=65535&(At=Ct),me=At>>>16,se+=(dt=le[2])>>>16,ce+=65535&(At=ae[2]),me+=At>>>16,ae[2]=Ct=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[2]=pr=65535&Mt|se<<16,Mt=65535&(dt=Sn),se=dt>>>16,ce=65535&(At=kt),me=At>>>16,se+=(dt=le[3])>>>16,ce+=65535&(At=ae[3]),me+=At>>>16,ae[3]=kt=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[3]=Sn=65535&Mt|se<<16,Mt=65535&(dt=cr),se=dt>>>16,ce=65535&(At=De),me=At>>>16,se+=(dt=le[4])>>>16,ce+=65535&(At=ae[4]),me+=At>>>16,ae[4]=De=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[4]=cr=65535&Mt|se<<16,Mt=65535&(dt=Xr),se=dt>>>16,ce=65535&(At=Tt),me=At>>>16,se+=(dt=le[5])>>>16,ce+=65535&(At=ae[5]),me+=At>>>16,ae[5]=Tt=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[5]=Xr=65535&Mt|se<<16,Mt=65535&(dt=Lr),se=dt>>>16,ce=65535&(At=Pn),me=At>>>16,se+=(dt=le[6])>>>16,ce+=65535&(At=ae[6]),me+=At>>>16,ae[6]=Pn=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[6]=Lr=65535&Mt|se<<16,Mt=65535&(dt=Ur),se=dt>>>16,ce=65535&(At=$n),me=At>>>16,se+=(dt=le[7])>>>16,ce+=65535&(At=ae[7]),me+=At>>>16,ae[7]=$n=65535&(ce+=(se+=(Mt+=65535&dt)>>>16)>>>16)|(me+=ce>>>16)<<16,le[7]=Ur=65535&Mt|se<<16,mo+=128,q-=128}return q}function tt(ae,le,ue){var nt,q=new Int32Array(8),be=new Int32Array(8),Ge=new Uint8Array(256),et=ue;for(q[0]=1779033703,q[1]=3144134277,q[2]=1013904242,q[3]=2773480762,q[4]=1359893119,q[5]=2600822924,q[6]=528734635,q[7]=1541459225,be[0]=4089235720,be[1]=2227873595,be[2]=4271175723,be[3]=1595750129,be[4]=2917565137,be[5]=725511199,be[6]=4215389547,be[7]=327033209,Me(q,be,le,ue),ue%=128,nt=0;nt=0;--be)bt(ae,le,q=ue[be/8|0]>>(7&be)&1),It(le,ae),It(ae,ae),bt(ae,le,q)}function xt(ae,le){var ue=[A(),A(),A(),A()];B(ue[0],k),B(ue[1],a),B(ue[2],f),_e(ue[3],k,a),Et(ae,ue,le)}function Pt(ae,le,ue){var Ge,q=new Uint8Array(64),be=[A(),A(),A(),A()];for(ue||T(le,32),tt(q,le,32),q[0]&=248,q[31]&=127,q[31]|=64,xt(be,q),Ye(ae,be),Ge=0;Ge<32;Ge++)le[Ge+32]=ae[Ge];return 0}var Qt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Wt(ae,le){var ue,q,be,Ge;for(q=63;q>=32;--q){for(ue=0,be=q-32,Ge=q-12;be>4)*Qt[be],ue=le[be]>>8,le[be]&=255;for(be=0;be<32;be++)le[be]-=ue*Qt[be];for(q=0;q<32;q++)le[q+1]+=le[q]>>8,ae[q]=255&le[q]}function fe(ae){var ue,le=new Float64Array(64);for(ue=0;ue<64;ue++)le[ue]=ae[ue];for(ue=0;ue<64;ue++)ae[ue]=0;Wt(ae,le)}function ee(ae,le,ue,q){var et,ft,be=new Uint8Array(64),Ge=new Uint8Array(64),nt=new Uint8Array(64),rn=new Float64Array(64),St=[A(),A(),A(),A()];tt(be,q,32),be[0]&=248,be[31]&=127,be[31]|=64;var dn=ue+64;for(et=0;et>7&&de(ae[0],m,ae[0]),_e(ae[3],ae[0],ae[1]),0)}(ft,q))return-1;for(be=0;be=0},v.sign.keyPair=function(){var ae=new Uint8Array(32),le=new Uint8Array(64);return Pt(ae,le),{publicKey:ae,secretKey:le}},v.sign.keyPair.fromSecretKey=function(ae){if(Ft(ae),64!==ae.length)throw new Error("bad secret key size");for(var le=new Uint8Array(32),ue=0;ue{"use strict";var v={};function A(n){return"function"==typeof n}$.r(v),$.d(v,{hasBrowserEnv:()=>Pk,hasStandardBrowserEnv:()=>DW,hasStandardBrowserWebWorkerEnv:()=>BW});let T=!1;const _={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=n},get useDeprecatedSynchronousErrorHandling(){return T}};function y(n){setTimeout(()=>{throw n},0)}const m={closed:!0,next(n){},error(n){if(_.useDeprecatedSynchronousErrorHandling)throw n;y(n)},complete(){}},f=Array.isArray||(n=>n&&"number"==typeof n.length);function C(n){return null!==n&&"object"==typeof n}const x=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,o)=>`${o+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class k{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:o,_unsubscribe:s,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof k)t.remove(this);else if(null!==t)for(let u=0;ue.concat(t instanceof x?t.errors:t),[])}k.EMPTY=((n=new k).closed=!0,n);const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class c extends k{constructor(e,t,o){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=m;break;case 1:if(!e){this.destination=m;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new d(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new d(this,e,t,o)}}[r](){return this}static create(e,t,o){const s=new c(e,t,o);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class d extends c{constructor(e,t,o,s){super(),this._parentSubscriber=e;let l,u=this;A(t)?l=t:t&&(l=t.next,o=t.error,s=t.complete,t!==m&&(u=Object.create(t),A(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=l,this._error=o,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;_.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:o}=_;if(this._error)o&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)o?(t.syncErrorValue=e,t.syncErrorThrown=!0):y(e),this.unsubscribe();else{if(this.unsubscribe(),o)throw e;y(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);_.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(o){if(this.unsubscribe(),_.useDeprecatedSynchronousErrorHandling)throw o;y(o)}}__tryOrSetError(e,t,o){if(!_.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,o)}catch(s){return _.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(y(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const E="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(n){return n}function X(n){return 0===n.length?P:1===n.length?n[0]:function(t){return n.reduce((o,s)=>s(o),t)}}let te=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const o=new n;return o.source=this,o.operator=t,o}subscribe(t,o,s){const{operator:l}=this,u=function g(n,e,t){if(n){if(n instanceof c)return n;if(n[r])return n[r]()}return n||e||t?new c(n,e,t):new c(m)}(t,o,s);if(u.add(l?l.call(u,this.source):this.source||_.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),_.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(t){try{return this._subscribe(t)}catch(o){_.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=o),function h(n){for(;n;){const{closed:e,destination:t,isStopped:o}=n;if(e||o)return!1;n=t&&t instanceof c?t:null}return!0}(t)?t.error(o):console.warn(o)}}forEach(t,o){return new(o=z(o))((s,l)=>{let u;u=this.subscribe(p=>{try{t(p)}catch(w){l(w),u&&u.unsubscribe()}},l,s)})}_subscribe(t){const{source:o}=this;return o&&o.subscribe(t)}[E](){return this}pipe(...t){return 0===t.length?this:X(t)(this)}toPromise(t){return new(t=z(t))((o,s)=>{let l;this.subscribe(u=>l=u,u=>s(u),()=>o(l))})}}return n.create=e=>new n(e),n})();function z(n){if(n||(n=_.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Y=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class D extends k{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const o=t.indexOf(this.subscriber);-1!==o&&t.splice(o,1)}}class N extends c{constructor(e){super(e),this.destination=e}}let L=(()=>{class n extends te{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[r](){return new N(this)}lift(t){const o=new O(this,this);return o.operator=t,o}next(t){if(this.closed)throw new Y;if(!this.isStopped){const{observers:o}=this,s=o.length,l=o.slice();for(let u=0;unew O(e,t),n})();class O extends L{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):k.EMPTY}}function I(n){return n&&"function"==typeof n.schedule}function B(n,e){return function(o){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return o.lift(new F(n,e))}}class F{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new H(e,this.project,this.thisArg))}}class H extends c{constructor(e,t,o){super(e),this.project=t,this.count=0,this.thisArg=o||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(t)}}const G=n=>e=>{for(let t=0,o=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function ne(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const We=n=>{if(n&&"function"==typeof n[E])return(n=>e=>{const t=n[E]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(st(n))return G(n);if(ne(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,y),e))(n);if(n&&"function"==typeof n[oe])return(n=>e=>{const t=n[oe]();for(;;){let o;try{o=t.next()}catch(s){return e.error(s),e}if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${C(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Be(n,e){return new te(t=>{const o=new k;let s=0;return o.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||o.add(this.schedule())):t.complete()})),o})}function ve(n,e){return e?function Ce(n,e){if(null!=n){if(function Q(n){return n&&"function"==typeof n[E]}(n))return function Pe(n,e){return new te(t=>{const o=new k;return o.add(e.schedule(()=>{const s=n[E]();o.add(s.subscribe({next(l){o.add(e.schedule(()=>t.next(l)))},error(l){o.add(e.schedule(()=>t.error(l)))},complete(){o.add(e.schedule(()=>t.complete()))}}))})),o})}(n,e);if(ne(n))return function we(n,e){return new te(t=>{const o=new k;return o.add(e.schedule(()=>n.then(s=>{o.add(e.schedule(()=>{t.next(s),o.add(e.schedule(()=>t.complete()))}))},s=>{o.add(e.schedule(()=>t.error(s)))}))),o})}(n,e);if(st(n))return Be(n,e);if(function ie(n){return n&&"function"==typeof n[oe]}(n)||"string"==typeof n)return function K(n,e){if(!n)throw new Error("Iterable cannot be null");return new te(t=>{const o=new k;let s;return o.add(()=>{s&&"function"==typeof s.return&&s.return()}),o.add(e.schedule(()=>{s=n[oe](),o.add(e.schedule(function(){if(t.closed)return;let l,u;try{const p=s.next();l=p.value,u=p.done}catch(p){return void t.error(p)}u?t.complete():(t.next(l),this.schedule())}))})),o})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof te?n:new te(We(n))}class je extends c{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class tt extends c{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function bt(n,e){if(e.closed)return;if(n instanceof te)return n.subscribe(e);let t;try{t=We(n)(e)}catch(o){e.error(o)}return t}function Ye(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(Ye((s,l)=>ve(n(s,l)).pipe(B((u,p)=>e(s,u,l,p))),t)):("number"==typeof e&&(t=e),o=>o.lift(new Et(n,t)))}class Et{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new xt(e,this.project,this.concurrent))}}class xt extends tt{constructor(e,t,o=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Qt(n=Number.POSITIVE_INFINITY){return Ye(P,n)}function Wt(n,e){return e?Be(n,e):new te(G(n))}function ee(){return function(e){return e.lift(new re(e))}}class re{constructor(e){this.connectable=e}call(e,t){const{connectable:o}=this;o._refCount++;const s=new Ie(e,o),l=t.subscribe(s);return s.closed||(s.connection=o.connect()),l}}class Ie extends c{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:o}=this,s=e._connection;this.connection=null,s&&(!o||s===o)&&s.unsubscribe()}}class He extends te{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new k,e.add(this.source.subscribe(new ot(this.getSubject(),this))),e.closed&&(this._connection=null,e=k.EMPTY)),e}refCount(){return ee()(this)}}const Ke=(()=>{const n=He.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class ot extends N{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class Bn{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:o}=this,s=this.subjectFactory(),l=o(s).subscribe(e);return l.add(t.subscribe(s)),l}}function Rt(){return new L}function Dn(n){for(let e in n)if(n[e]===Dn)return e;throw Error("Could not find renamed property on target object.")}function fn(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function jt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(jt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Tr(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const yn=Dn({__forward_ref__:Dn});function Nt(n){return n.__forward_ref__=Nt,n.toString=function(){return jt(this())},n}function Kt(n){return Xt(n)?n():n}function Xt(n){return"function"==typeof n&&n.hasOwnProperty(yn)&&n.__forward_ref__===Nt}function an(n){return n&&!!n.\u0275providers}const Ft="https://g.co/ng/security#xss";class $e extends Error{constructor(e,t){super(ae(e,t)),this.code=e}}function ae(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}function le(n){return"string"==typeof n?n:null==n?"":String(n)}function nt(n,e){throw new $e(-201,!1)}function qt(n,e){null==n&&function Gt(n,e,t,o){throw new Error(`ASSERTION ERROR: ${n}`+(null==o?"":` [Expected=> ${t} ${o} ${e} <=Actual]`))}(e,n,null,"!=")}function vt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Mt(n){return ce(n,pt)||ce(n,kt)}function ce(n,e){return n.hasOwnProperty(e)?n[e]:null}function Ve(n){return n&&(n.hasOwnProperty(Ct)||n.hasOwnProperty(De))?n[Ct]:null}const pt=Dn({\u0275prov:Dn}),Ct=Dn({\u0275inj:Dn}),kt=Dn({ngInjectableDef:Dn}),De=Dn({ngInjectorDef:Dn});var Tt=(()=>((Tt=Tt||{})[Tt.Default=0]="Default",Tt[Tt.Host=1]="Host",Tt[Tt.Self=2]="Self",Tt[Tt.SkipSelf=4]="SkipSelf",Tt[Tt.Optional=8]="Optional",Tt))();let Pn;function _n(n){const e=Pn;return Pn=n,e}function Zn(n,e,t){const o=Mt(n);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:t&Tt.Optional?null:void 0!==e?e:void nt(jt(n))}const Sn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ur={},mo="__NG_DI_FLAG__",So="ngTempTokenPath",$o="ngTokenPath",Zo=/\n/gm,zD="\u0275",Bb="__source";let pd;function Sl(n){const e=pd;return pd=n,e}function KD(n,e=Tt.Default){if(void 0===pd)throw new $e(-203,!1);return null===pd?Zn(n,void 0,e):pd.get(n,e&Tt.Optional?null:void 0,e)}function Yt(n,e=Tt.Default){return(function $n(){return Pn}()||KD)(Kt(n),e)}function _r(n,e=Tt.Default){return Yt(n,y3(e))}function y3(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Mg(n){const e=[];for(let t=0;t((Js=Js||{})[Js.OnPush=0]="OnPush",Js[Js.Default=1]="Default",Js))(),Bs=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Bs||(Bs={})),Bs))();const ba={},Kr=[],b3=Dn({\u0275cmp:Dn}),Ng=Dn({\u0275dir:Dn}),Og=Dn({\u0275pipe:Dn}),Mb=Dn({\u0275mod:Dn}),va=Dn({\u0275fac:Dn}),Ad=Dn({__NG_ELEMENT_ID__:Dn});let ZD=0;function lr(n){return ya(()=>{const e=Ob(n),t={...e,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Js.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,data:n.data||{},encapsulation:n.encapsulation||Bs.Emulated,id:"c"+ZD++,styles:n.styles||Kr,_:null,schemas:n.schemas||null,tView:null};Pb(t);const o=n.dependencies;return t.directiveDefs=v3(o,!1),t.pipeDefs=v3(o,!0),t})}function JD(n){return Wr(n)||di(n)}function XD(n){return null!==n}function vi(n){return ya(()=>({type:n.type,bootstrap:n.bootstrap||Kr,declarations:n.declarations||Kr,imports:n.imports||Kr,exports:n.exports||Kr,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Nb(n,e){if(null==n)return ba;const t={};for(const o in n)if(n.hasOwnProperty(o)){let s=n[o],l=s;Array.isArray(s)&&(l=s[1],s=s[0]),t[s]=o,e&&(e[s]=l)}return t}function Yn(n){return ya(()=>{const e=Ob(n);return Pb(e),e})}function Mi(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Wr(n){return n[b3]||null}function di(n){return n[Ng]||null}function Ni(n){return n[Og]||null}function Ki(n,e){const t=n[Mb]||null;if(!t&&!0===e)throw new Error(`Type ${jt(n)} does not have '\u0275mod' property.`);return t}function Ob(n){const e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,exportAs:n.exportAs||null,standalone:!0===n.standalone,selectors:n.selectors||Kr,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Nb(n.inputs,e),outputs:Nb(n.outputs)}}function Pb(n){n.features?.forEach(e=>e(n))}function v3(n,e){if(!n)return null;const t=e?Ni:JD;return()=>("function"==typeof n?n():n).map(o=>t(o)).filter(XD)}const wa=0,wn=1,ur=2,xo=3,Ss=4,$c=5,fi=6,Nl=7,Mo=8,w3=9,C3=10,gr=11,Pg=12,md=13,Rb=14,Ol=15,hi=16,yd=17,Pl=18,Xs=19,bd=20,Fb=21,io=22,Rg=1,Lb=2,_3=7,I3=8,Rl=9,wi=10;function Yi(n){return Array.isArray(n)&&"object"==typeof n[Rg]}function Ms(n){return Array.isArray(n)&&!0===n[Rg]}function Fg(n){return 0!=(4&n.flags)}function vd(n){return n.componentOffset>-1}function x3(n){return 1==(1&n.flags)}function Ns(n){return!!n.template}function tB(n){return 0!=(256&n[ur])}function Zc(n,e){return n.hasOwnProperty(va)?n[va]:null}class oB{constructor(e,t,o){this.previousValue=e,this.currentValue=t,this.firstChange=o}isFirstChange(){return this.firstChange}}function as(){return Gb}function Gb(n){return n.type.prototype.ngOnChanges&&(n.setInput=sB),iB}function iB(){const n=Hb(this),e=n?.current;if(e){const t=n.previous;if(t===ba)n.previous=e;else for(let o in e)t[o]=e[o];n.current=null,this.ngOnChanges(e)}}function sB(n,e,t,o){const s=this.declaredInputs[t],l=Hb(n)||function aB(n,e){return n[Vb]=e}(n,{previous:ba,current:null}),u=l.current||(l.current={}),p=l.previous,w=p[s];u[s]=new oB(w&&w.currentValue,e,p===ba),n[o]=e}as.ngInherit=!0;const Vb="__ngSimpleChanges__";function Hb(n){return n[Vb]||null}const cs=function(n,e,t){};function ni(n){for(;Array.isArray(n);)n=n[wa];return n}function E3(n,e){return ni(e[n])}function Wi(n,e){return ni(e[n.index])}function Kb(n,e){return n.data[e]}function Fl(n,e){return n[e]}function Oi(n,e){const t=e[n];return Yi(t)?t:t[wa]}function T3(n){return 64==(64&n[ur])}function uc(n,e){return null==e?null:n[e]}function Yb(n){n[Pl]=0}function Ug(n,e){n[$c]+=e;let t=n,o=n[xo];for(;null!==o&&(1===e&&1===t[$c]||-1===e&&0===t[$c]);)o[$c]+=e,t=o,o=o[xo]}const er={lFrame:rv(null),bindingsEnabled:!0};function $b(){return er.bindingsEnabled}function Ot(){return er.lFrame.lView}function Br(){return er.lFrame.tView}function Un(n){return er.lFrame.contextLView=n,n[Mo]}function jn(n){return er.lFrame.contextLView=null,n}function ri(){let n=Zb();for(;null!==n&&64===n.type;)n=n.parent;return n}function Zb(){return er.lFrame.currentTNode}function ea(n,e){const t=er.lFrame;t.currentTNode=n,t.isParent=e}function jg(){return er.lFrame.isParent}function Gg(){er.lFrame.isParent=!1}function Ci(){const n=er.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Ll(){return er.lFrame.bindingIndex++}function vB(n,e){const t=er.lFrame;t.bindingIndex=t.bindingRootIndex=n,Vg(e)}function Vg(n){er.lFrame.currentDirectiveIndex=n}function ev(){return er.lFrame.currentQueryIndex}function Qg(n){er.lFrame.currentQueryIndex=n}function CB(n){const e=n[wn];return 2===e.type?e.declTNode:1===e.type?n[fi]:null}function tv(n,e,t){if(t&Tt.SkipSelf){let s=e,l=n;for(;!(s=s.parent,null!==s||t&Tt.Host||(s=CB(l),null===s||(l=l[Ol],10&s.type))););if(null===s)return!1;e=s,n=l}const o=er.lFrame=nv();return o.currentTNode=e,o.lView=n,!0}function zg(n){const e=nv(),t=n[wn];er.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function nv(){const n=er.lFrame,e=null===n?null:n.child;return null===e?rv(n):e}function rv(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function ov(){const n=er.lFrame;return er.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const iv=ov;function Kg(){const n=ov();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function _i(){return er.lFrame.selectedIndex}function qc(n){er.lFrame.selectedIndex=n}function yo(){const n=er.lFrame;return Kb(n.tView,n.selectedIndex)}function k3(n,e){for(let t=e.directiveStart,o=e.directiveEnd;t=o)break}else e[w]<0&&(n[Pl]+=65536),(p>11>16&&(3&n[ur])===e){n[ur]+=2048,cs(4,p,l);try{l.call(p)}finally{cs(5,p,l)}}}else{cs(4,p,l);try{l.call(p)}finally{cs(5,p,l)}}}const Ul=-1;class Cd{constructor(e,t,o){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=o}}function $g(n,e,t){let o=0;for(;oe){u=l-1;break}}}for(;l>16}(n),o=e;for(;t>0;)o=o[Ol],t--;return o}let Zg=!0;function N3(n){const e=Zg;return Zg=n,e}const dv=255,fv=5;let RB=0;const ta={};function O3(n,e){const t=hv(n,e);if(-1!==t)return t;const o=e[wn];o.firstCreatePass&&(n.injectorIndex=e.length,qg(o.data,n),qg(e,null),qg(o.blueprint,null));const s=Jg(n,e),l=n.injectorIndex;if(uv(s)){const u=S3(s),p=M3(s,e),w=p[wn].data;for(let S=0;S<8;S++)e[l+S]=p[u+S]|w[u+S]}return e[l+8]=s,l}function qg(n,e){n.push(0,0,0,0,0,0,0,0,e)}function hv(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Jg(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,o=null,s=e;for(;null!==s;){if(o=vv(s),null===o)return Ul;if(t++,s=s[Ol],-1!==o.injectorIndex)return o.injectorIndex|t<<16}return Ul}function Xg(n,e,t){!function FB(n,e,t){let o;"string"==typeof t?o=t.charCodeAt(0)||0:t.hasOwnProperty(Ad)&&(o=t[Ad]),null==o&&(o=t[Ad]=RB++);const s=o&dv;e.data[n+(s>>fv)]|=1<=0?e&dv:GB:e}(t);if("function"==typeof l){if(!tv(e,n,o))return o&Tt.Host?pv(s,0,o):gv(e,t,o,s);try{const u=l(o);if(null!=u||o&Tt.Optional)return u;nt()}finally{iv()}}else if("number"==typeof l){let u=null,p=hv(n,e),w=Ul,S=o&Tt.Host?e[hi][fi]:null;for((-1===p||o&Tt.SkipSelf)&&(w=-1===p?Jg(n,e):e[p+8],w!==Ul&&bv(o,!1)?(u=e[wn],p=S3(w),e=M3(w,e)):p=-1);-1!==p;){const V=e[wn];if(yv(l,p,V.data)){const J=UB(p,e,t,u,o,S);if(J!==ta)return J}w=e[p+8],w!==Ul&&bv(o,e[wn].data[p+8]===S)&&yv(l,p,e)?(u=V,p=S3(w),e=M3(w,e)):p=-1}}return s}function UB(n,e,t,o,s,l){const u=e[wn],p=u.data[n+8],V=P3(p,u,t,null==o?vd(p)&&Zg:o!=u&&0!=(3&p.type),s&Tt.Host&&l===p);return null!==V?Jc(e,u,V,p):ta}function P3(n,e,t,o,s){const l=n.providerIndexes,u=e.data,p=1048575&l,w=n.directiveStart,V=l>>20,he=s?p+V:n.directiveEnd;for(let xe=o?p:p+V;xe=w&&Ee.type===t)return xe}if(s){const xe=u[w];if(xe&&Ns(xe)&&xe.type===t)return w}return null}function Jc(n,e,t,o){let s=n[t];const l=e.data;if(function MB(n){return n instanceof Cd}(s)){const u=s;u.resolving&&function q(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new $e(-200,`Circular dependency in DI detected for ${n}${t}`)}(function ue(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():le(n)}(l[t]));const p=N3(u.canSeeViewProviders);u.resolving=!0;const w=u.injectImpl?_n(u.injectImpl):null;tv(n,o,Tt.Default);try{s=n[t]=u.factory(void 0,l,n,o),e.firstCreatePass&&t>=o.directiveStart&&function BB(n,e,t){const{ngOnChanges:o,ngOnInit:s,ngDoCheck:l}=e.type.prototype;if(o){const u=Gb(e);(t.preOrderHooks??(t.preOrderHooks=[])).push(n,u),(t.preOrderCheckHooks??(t.preOrderCheckHooks=[])).push(n,u)}s&&(t.preOrderHooks??(t.preOrderHooks=[])).push(0-n,s),l&&((t.preOrderHooks??(t.preOrderHooks=[])).push(n,l),(t.preOrderCheckHooks??(t.preOrderCheckHooks=[])).push(n,l))}(t,l[t],e)}finally{null!==w&&_n(w),N3(p),u.resolving=!1,iv()}}return s}function yv(n,e,t){return!!(t[e+(n>>fv)]&1<{const e=n.prototype.constructor,t=e[va]||e6(e),o=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==o;){const l=s[va]||e6(s);if(l&&l!==t)return l;s=Object.getPrototypeOf(s)}return l=>new l})}function e6(n){return Xt(n)?()=>{const e=e6(Kt(n));return e&&e()}:Zc(n)}function vv(n){const e=n[wn],t=e.type;return 2===t?e.declTNode:1===t?n[fi]:null}const Vl="__parameters__";function Ql(n,e,t){return ya(()=>{const o=function t6(n){return function(...t){if(n){const o=n(...t);for(const s in o)this[s]=o[s]}}}(e);function s(...l){if(this instanceof s)return o.apply(this,l),this;const u=new s(...l);return p.annotation=u,p;function p(w,S,V){const J=w.hasOwnProperty(Vl)?w[Vl]:Object.defineProperty(w,Vl,{value:[]})[Vl];for(;J.length<=V;)J.push(null);return(J[V]=J[V]||[]).push(u),w}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class Fn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=vt({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xc(n,e){n.forEach(t=>Array.isArray(t)?Xc(t,e):e(t))}function Cv(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function F3(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function $i(n,e,t){let o=zl(n,e);return o>=0?n[1|o]=t:(o=~o,function KB(n,e,t,o){let s=n.length;if(s==e)n.push(t,o);else if(1===s)n.push(o,n[0]),n[0]=t;else{for(s--,n.push(n[s-1],n[s]);s>e;)n[s]=n[s-2],s--;n[e]=t,n[e+1]=o}}(n,o,e,t)),o}function r6(n,e){const t=zl(n,e);if(t>=0)return n[1|t]}function zl(n,e){return function _v(n,e,t){let o=0,s=n.length>>t;for(;s!==o;){const l=o+(s-o>>1),u=n[l<e?s=l:o=l+1}return~(s<((Pi=Pi||{})[Pi.Important=1]="Important",Pi[Pi.DashCase=2]="DashCase",Pi))();const l6=new Map;let pS=0;const d6="__ngContext__";function pi(n,e){Yi(e)?(n[d6]=e[bd],function AS(n){l6.set(n[bd],n)}(e)):n[d6]=e}let f6;function h6(n,e){return f6(n,e)}function Md(n){const e=n[xo];return Ms(e)?e[xo]:e}function p6(n){return Hv(n[md])}function g6(n){return Hv(n[Ss])}function Hv(n){for(;null!==n&&!Ms(n);)n=n[Ss];return n}function Yl(n,e,t,o,s){if(null!=o){let l,u=!1;Ms(o)?l=o:Yi(o)&&(u=!0,o=o[wa]);const p=ni(o);0===n&&null!==t?null==s?$v(e,t,p):el(e,t,p,s||null,!0):1===n&&null!==t?el(e,t,p,s||null,!0):2===n?function C6(n,e,t){const o=G3(n,e);o&&function RS(n,e,t,o){n.removeChild(e,t,o)}(n,o,e,t)}(e,p,u):3===n&&e.destroyNode(p),null!=l&&function US(n,e,t,o,s){const l=t[_3];l!==ni(t)&&Yl(e,n,o,l,s);for(let p=wi;p0&&(n[t-1][Ss]=o[Ss]);const l=F3(n,wi+e);!function kS(n,e){Nd(n,e,e[gr],2,null,null),e[wa]=null,e[fi]=null}(o[wn],o);const u=l[Xs];null!==u&&u.detachView(l[wn]),o[xo]=null,o[Ss]=null,o[ur]&=-65}return o}function Kv(n,e){if(!(128&e[ur])){const t=e[gr];t.destroyNode&&Nd(n,e,t,3,null,null),function SS(n){let e=n[md];if(!e)return b6(n[wn],n);for(;e;){let t=null;if(Yi(e))t=e[md];else{const o=e[wi];o&&(t=o)}if(!t){for(;e&&!e[Ss]&&e!==n;)Yi(e)&&b6(e[wn],e),e=e[xo];null===e&&(e=n),Yi(e)&&b6(e[wn],e),t=e&&e[Ss]}e=t}}(e)}}function b6(n,e){if(!(128&e[ur])){e[ur]&=-65,e[ur]|=128,function PS(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let o=0;o=0?o[s=u]():o[s=-u].unsubscribe(),l+=2}else{const u=o[s=t[l+1]];t[l].call(u)}if(null!==o){for(let l=s+1;l-1){const{encapsulation:l}=n.data[o.directiveStart+s];if(l===Bs.None||l===Bs.Emulated)return null}return Wi(o,t)}}(n,e.parent,t)}function el(n,e,t,o,s){n.insertBefore(e,t,o,s)}function $v(n,e,t){n.appendChild(e,t)}function Zv(n,e,t,o,s){null!==o?el(n,e,t,o,s):$v(n,e,t)}function G3(n,e){return n.parentNode(e)}let v6,x6,Xv=function Jv(n,e,t){return 40&n.type?Wi(n,t):null};function V3(n,e,t,o){const s=Yv(n,o,e),l=e[gr],p=function qv(n,e,t){return Xv(n,e,t)}(o.parent||e[fi],o,e);if(null!=s)if(Array.isArray(t))for(let w=0;w((Uo=Uo||{})[Uo.NONE=0]="NONE",Uo[Uo.HTML=1]="HTML",Uo[Uo.STYLE=2]="STYLE",Uo[Uo.SCRIPT=3]="SCRIPT",Uo[Uo.URL=4]="URL",Uo[Uo.RESOURCE_URL=5]="RESOURCE_URL",Uo))();function S6(n){const e=function Rd(){const n=Ot();return n&&n[Pg]}();return e?e.sanitize(Uo.URL,n)||"":function Od(n,e){const t=function qS(n){return n instanceof l4&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${Ft})`)}return t===e}(n,"URL")?dc(n):function T6(n){return(n=String(n)).match(tM)?n:"unsafe:"+n}(le(n))}const W3=new Fn("ENVIRONMENT_INITIALIZER"),Fd=new Fn("INJECTOR",-1),y4=new Fn("INJECTOR_DEF_TYPES");class b4{get(e,t=Ur){if(t===Ur){const o=new Error(`NullInjectorError: No provider for ${jt(e)}!`);throw o.name="NullInjectorError",o}return t}}function hM(...n){return{\u0275providers:v4(0,n),\u0275fromNgModule:!0}}function v4(n,...e){const t=[],o=new Set;let s;return Xc(e,l=>{const u=l;M6(u,t,[],o)&&(s||(s=[]),s.push(u))}),void 0!==s&&w4(s,t),t}function w4(n,e){for(let t=0;t{e.push(l)})}}function M6(n,e,t,o){if(!(n=Kt(n)))return!1;let s=null,l=Ve(n);const u=!l&&Wr(n);if(l||u){if(u&&!u.standalone)return!1;s=n}else{const w=n.ngModule;if(l=Ve(w),!l)return!1;s=w}const p=o.has(s);if(u){if(p)return!1;if(o.add(s),u.dependencies){const w="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const S of w)M6(S,e,t,o)}}else{if(!l)return!1;{if(null!=l.imports&&!p){let S;o.add(s);try{Xc(l.imports,V=>{M6(V,e,t,o)&&(S||(S=[]),S.push(V))})}finally{}void 0!==S&&w4(S,e)}if(!p){const S=Zc(s)||(()=>new s);e.push({provide:s,useFactory:S,deps:Kr},{provide:y4,useValue:s,multi:!0},{provide:W3,useValue:()=>Yt(s),multi:!0})}const w=l.providers;null==w||p||N6(w,V=>{e.push(V)})}}return s!==n&&void 0!==n.providers}function N6(n,e){for(let t of n)an(t)&&(t=t.\u0275providers),Array.isArray(t)?N6(t,e):e(t)}const pM=Dn({provide:String,useValue:Dn});function O6(n){return null!==n&&"object"==typeof n&&pM in n}function tl(n){return"function"==typeof n}const P6=new Fn("Set Injector scope."),$3={},AM={};let R6;function Z3(){return void 0===R6&&(R6=new b4),R6}class xa{}class I4 extends xa{get destroyed(){return this._destroyed}constructor(e,t,o,s){super(),this.parent=t,this.source=o,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,L6(e,u=>this.processProvider(u)),this.records.set(Fd,$l(void 0,this)),s.has("environment")&&this.records.set(xa,$l(void 0,this));const l=this.records.get(P6);null!=l&&"string"==typeof l.value&&this.scopes.add(l.value),this.injectorDefTypes=new Set(this.get(y4.multi,Kr,Tt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Sl(this),o=_n(void 0);try{return e()}finally{Sl(t),_n(o)}}get(e,t=Ur,o=Tt.Default){this.assertNotDestroyed(),o=y3(o);const s=Sl(this),l=_n(void 0);try{if(!(o&Tt.SkipSelf)){let p=this.records.get(e);if(void 0===p){const w=function wM(n){return"function"==typeof n||"object"==typeof n&&n instanceof Fn}(e)&&Mt(e);p=w&&this.injectableDefInScope(w)?$l(F6(e),$3):null,this.records.set(e,p)}if(null!=p)return this.hydrate(e,p)}return(o&Tt.Self?Z3():this.parent).get(e,t=o&Tt.Optional&&t===Ur?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[So]=u[So]||[]).unshift(jt(e)),s)throw u;return function WD(n,e,t,o){const s=n[So];throw e[Bb]&&s.unshift(e[Bb]),n.message=function $D(n,e,t,o=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==zD?n.slice(2):n;let s=jt(e);if(Array.isArray(e))s=e.map(jt).join(" -> ");else if("object"==typeof e){let l=[];for(let u in e)if(e.hasOwnProperty(u)){let p=e[u];l.push(u+":"+("string"==typeof p?JSON.stringify(p):jt(p)))}s=`{${l.join(", ")}}`}return`${t}${o?"("+o+")":""}[${s}]: ${n.replace(Zo,"\n ")}`}("\n"+n.message,s,t,o),n[$o]=s,n[So]=null,n}(u,e,"R3InjectorError",this.source)}throw u}finally{_n(l),Sl(s)}}resolveInjectorInitializers(){const e=Sl(this),t=_n(void 0);try{const o=this.get(W3.multi,Kr,Tt.Self);for(const s of o)s()}finally{Sl(e),_n(t)}}toString(){const e=[],t=this.records;for(const o of t.keys())e.push(jt(o));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $e(205,!1)}processProvider(e){let t=tl(e=Kt(e))?e:Kt(e&&e.provide);const o=function yM(n){return O6(n)?$l(void 0,n.useValue):$l(x4(n),$3)}(e);if(tl(e)||!0!==e.multi)this.records.get(t);else{let s=this.records.get(t);s||(s=$l(void 0,$3,!0),s.factory=()=>Mg(s.multi),this.records.set(t,s)),t=e,s.multi.push(e)}this.records.set(t,o)}hydrate(e,t){return t.value===$3&&(t.value=AM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function vM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=Kt(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function F6(n){const e=Mt(n),t=null!==e?e.factory:Zc(n);if(null!==t)return t;if(n instanceof Fn)throw new $e(204,!1);if(n instanceof Function)return function mM(n){const e=n.length;if(e>0)throw function Ed(n,e){const t=[];for(let o=0;ot.factory(n):()=>new n}(n);throw new $e(204,!1)}function x4(n,e,t){let o;if(tl(n)){const s=Kt(n);return Zc(s)||F6(s)}if(O6(n))o=()=>Kt(n.useValue);else if(function _4(n){return!(!n||!n.useFactory)}(n))o=()=>n.useFactory(...Mg(n.deps||[]));else if(function C4(n){return!(!n||!n.useExisting)}(n))o=()=>Yt(Kt(n.useExisting));else{const s=Kt(n&&(n.useClass||n.provide));if(!function bM(n){return!!n.deps}(n))return Zc(s)||F6(s);o=()=>new s(...Mg(n.deps))}return o}function $l(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function L6(n,e){for(const t of n)Array.isArray(t)?L6(t,e):t&&an(t)?L6(t.\u0275providers,e):e(t)}class CM{}class E4{}class IM{resolveComponentFactory(e){throw function _M(n){const e=Error(`No component factory found for ${jt(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let us=(()=>{class n{}return n.NULL=new IM,n})();function xM(){return Zl(ri(),Ot())}function Zl(n,e){return new Zi(Wi(n,e))}let Zi=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=xM,n})();function EM(n){return n instanceof Zi?n.nativeElement:n}class Ld{}let Ea=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function TM(){const n=Ot(),t=Oi(ri().index,n);return(Yi(t)?t:n)[gr]}(),n})(),kM=(()=>{class n{}return n.\u0275prov=vt({token:n,providedIn:"root",factory:()=>null}),n})();class Ud{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const DM=new Ud("15.2.10"),U6={},j6="ngOriginalError";function G6(n){return n[j6]}class ql{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&G6(e);for(;t&&G6(t);)t=G6(t);return t||null}}function k4(n){return n.ownerDocument.defaultView}function Ta(n){return n instanceof Function?n():n}function B4(n,e,t){let o=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const l=e.length;if(s+l===o||n.charCodeAt(s+l)<=32)return s}t=s+1}}const S4="ng-template";function UM(n,e,t){let o=0,s=!0;for(;ol?"":s[J+1].toLowerCase();const xe=8&o?he:null;if(xe&&-1!==B4(xe,S,0)||2&o&&S!==he){if(Os(o))return!1;u=!0}}}}else{if(!u&&!Os(o)&&!Os(w))return!1;if(u&&Os(w))continue;u=!1,o=w|1&o}}return Os(o)||u}function Os(n){return 0==(1&n)}function VM(n,e,t,o){if(null===e)return-1;let s=0;if(o||!t){let l=!1;for(;s-1)for(t++;t0?'="'+p+'"':"")+"]"}else 8&o?s+="."+u:4&o&&(s+=" "+u);else""!==s&&!Os(u)&&(e+=O4(l,s),s=""),o=u,l=l||!Os(o);t++}return""!==s&&(e+=O4(l,s)),e}const tr={};function Te(n){P4(Br(),Ot(),_i()+n,!1)}function P4(n,e,t,o){if(!o)if(3==(3&e[ur])){const l=n.preOrderCheckHooks;null!==l&&D3(e,l,t)}else{const l=n.preOrderHooks;null!==l&&B3(e,l,0,t)}qc(t)}function U4(n,e=null,t=null,o){const s=j4(n,e,t,o);return s.resolveInjectorInitializers(),s}function j4(n,e=null,t=null,o,s=new Set){const l=[t||Kr,hM(n)];return o=o||("object"==typeof n?void 0:jt(n)),new I4(l,e||Z3(),o||null,s)}let Fi=(()=>{class n{static create(t,o){if(Array.isArray(t))return U4({name:""},o,t,"");{const s=t.name??"";return U4({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Ur,n.NULL=new b4,n.\u0275prov=vt({token:n,providedIn:"any",factory:()=>Yt(Fd)}),n.__NG_ELEMENT_ID__=-1,n})();function qe(n,e=Tt.Default){const t=Ot();return null===t?Yt(n,e):Av(ri(),t,Kt(n),e)}function W4(n,e){const t=n.contentQueries;if(null!==t)for(let o=0;oio&&P4(n,e,io,!1),cs(u?2:0,s),t(o,s)}finally{qc(l),cs(u?3:1,s)}}function W6(n,e,t){if(Fg(e)){const s=e.directiveEnd;for(let l=e.directiveStart;l0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(u)!=p&&u.push(p),u.push(t,o,l)}}(n,e,o,jd(n,t,s.hostVars,tr),s)}function na(n,e,t,o,s,l){const u=Wi(n,e);!function eA(n,e,t,o,s,l,u){if(null==l)n.removeAttribute(e,s,t);else{const p=null==u?le(l):u(l,o||"",s);n.setAttribute(e,s,p,t)}}(e[gr],u,l,n.value,t,o,s)}function ON(n,e,t,o,s,l){const u=l[e];if(null!==u){const p=o.setInput;for(let w=0;w0&&tA(t)}}function tA(n){for(let o=p6(n);null!==o;o=g6(o))for(let s=wi;s0&&tA(l)}const t=n[wn].components;if(null!==t)for(let o=0;o0&&tA(s)}}function UN(n,e){const t=Oi(e,n),o=t[wn];(function jN(n,e){for(let t=e.length;t-1&&(y6(e,o),F3(t,o))}this._attachedToViewContainer=!1}Kv(this._lView[wn],this._lView)}onDestroy(e){q4(this._lView[wn],this._lView,null,e)}markForCheck(){th(this._cdRefInjectingView||this._lView)}detach(){this._lView[ur]&=-65}reattach(){this._lView[ur]|=64}detectChanges(){nh(this._lView[wn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $e(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function BS(n,e){Nd(n,e,e[gr],2,null,null)}(this._lView[wn],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new $e(902,!1);this._appRef=e}}class GN extends Gd{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;nh(e[wn],e,e[Mo],!1)}checkNoChanges(){}get context(){return null}}class aw extends us{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Wr(e);return new Vd(t,this.ngModule)}}function cw(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class HN{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,o){o=y3(o);const s=this.injector.get(e,U6,o);return s!==U6||t===U6?s:this.parentInjector.get(e,t,o)}}class Vd extends E4{get inputs(){return cw(this.componentDef.inputs)}get outputs(){return cw(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function WM(n){return n.map(YM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,o,s){let l=(s=s||this.ngModule)instanceof xa?s:s?.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const u=l?new HN(e,l):e,p=u.get(Ld,null);if(null===p)throw new $e(407,!1);const w=u.get(kM,null),S=p.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",J=o?function yN(n,e,t){return n.selectRootElement(e,t===Bs.ShadowDom)}(S,o,this.componentDef.encapsulation):m6(S,V,function VN(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(V)),he=this.componentDef.onPush?288:272,xe=q6(0,null,null,1,0,null,null,null,null,null),Ee=J3(null,xe,null,he,null,null,p,S,w,u,null);let Le,ut;zg(Ee);try{const _t=this.componentDef;let it,gt=null;_t.findHostDirectiveDefs?(it=[],gt=new Map,_t.findHostDirectiveDefs(_t,it,gt),it.push(_t)):it=[_t];const Jt=function zN(n,e){const t=n[wn],o=io;return n[o]=e,eu(t,o,2,"#host",null)}(Ee,J),Qn=function KN(n,e,t,o,s,l,u,p){const w=s[wn];!function YN(n,e,t,o){for(const s of n)e.mergedAttrs=_d(e.mergedAttrs,s.hostAttrs);null!==e.mergedAttrs&&(rh(e,e.mergedAttrs,!0),null!==t&&o4(o,t,e))}(o,n,e,u);const S=l.createRenderer(e,t),V=J3(s,Z4(t),null,t.onPush?32:16,s[n.index],n,l,S,p||null,null,null);return w.firstCreatePass&&X6(w,n,o.length-1),eh(s,V),s[n.index]=V}(Jt,J,_t,it,Ee,p,S);ut=Kb(xe,io),J&&function $N(n,e,t,o){if(o)$g(n,t,["ng-version",DM.full]);else{const{attrs:s,classes:l}=function $M(n){const e=[],t=[];let o=1,s=2;for(;o0&&r4(n,t,l.join(" "))}}(S,_t,J,o),void 0!==t&&function ZN(n,e,t){const o=n.projection=[];for(let s=0;s=0;o--){const s=n[o];s.hostVars=e+=s.hostVars,s.hostAttrs=_d(s.hostAttrs,t=_d(t,s.hostAttrs))}}(o)}function oA(n){return n===ba?{}:n===Kr?[]:n}function XN(n,e){const t=n.viewQuery;n.viewQuery=t?(o,s)=>{e(o,s),t(o,s)}:e}function eO(n,e){const t=n.contentQueries;n.contentQueries=t?(o,s,l)=>{e(o,s,l),t(o,s,l)}:e}function tO(n,e){const t=n.hostBindings;n.hostBindings=t?(o,s)=>{e(o,s),t(o,s)}:e}function ih(n){return!!iA(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function iA(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ra(n,e,t){return n[e]=t}function Hd(n,e){return n[e]}function gi(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function nl(n,e,t,o){const s=gi(n,e,t);return gi(n,e+1,o)||s}function ds(n,e,t,o,s,l){const u=nl(n,e,t,o);return nl(n,e+2,s,l)||u}function oa(n,e,t,o){const s=Ot();return gi(s,Ll(),e)&&(Br(),na(yo(),s,n,e,t,o)),oa}function Lt(n,e,t,o,s,l,u,p){const w=Ot(),S=Br(),V=n+io,J=S.firstCreatePass?function dO(n,e,t,o,s,l,u,p,w){const S=e.consts,V=eu(e,n,4,u||null,uc(S,p));J6(e,t,V,uc(S,w)),k3(e,V);const J=V.tView=q6(2,V,o,s,l,e.directiveRegistry,e.pipeRegistry,null,e.schemas,S);return null!==e.queries&&(e.queries.template(e,V),J.queries=e.queries.embeddedTView(V)),V}(V,S,w,e,t,o,s,l,u):S.data[V];ea(J,!1);const he=w[gr].createComment("");V3(S,w,he,J),pi(he,w),eh(w,w[V]=nw(he,w,he,J)),x3(J)&&$6(S,w,J),null!=u&&Z6(w,J,p)}function ke(n,e,t){const o=Ot();return gi(o,Ll(),e)&&function qi(n,e,t,o,s,l,u,p){const w=Wi(e,t);let V,S=e.inputs;!p&&null!=S&&(V=S[o])?(rA(n,t,V,o,s),vd(e)&&function CN(n,e){const t=Oi(e,n);16&t[ur]||(t[ur]|=32)}(t,e.index)):3&e.type&&(o=function wN(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(o),s=null!=u?u(s,e.value||"",o):s,l.setProperty(w,o,s))}(Br(),yo(),o,n,e,o[gr],t,!1),ke}function sA(n,e,t,o,s){const u=s?"class":"style";rA(n,t,e.inputs[u],u,o)}function pe(n,e,t,o){const s=Ot(),l=Br(),u=io+n,p=s[gr],w=l.firstCreatePass?function hO(n,e,t,o,s,l){const u=e.consts,w=eu(e,n,2,o,uc(u,s));return J6(e,t,w,uc(u,l)),null!==w.attrs&&rh(w,w.attrs,!1),null!==w.mergedAttrs&&rh(w,w.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,w),w}(u,l,s,e,t,o):l.data[u],S=s[u]=m6(p,e,function DB(){return er.lFrame.currentNamespace}()),V=x3(w);return ea(w,!0),o4(p,S,w),32!=(32&w.flags)&&V3(l,s,S,w),0===function hB(){return er.lFrame.elementDepthCount}()&&pi(S,s),function pB(){er.lFrame.elementDepthCount++}(),V&&($6(l,s,w),W6(l,w,s)),null!==o&&Z6(s,w),pe}function ye(){let n=ri();jg()?Gg():(n=n.parent,ea(n,!1));const e=n;!function gB(){er.lFrame.elementDepthCount--}();const t=Br();return t.firstCreatePass&&(k3(t,n),Fg(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function NB(n){return 0!=(8&n.flags)}(e)&&sA(t,e,Ot(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function OB(n){return 0!=(16&n.flags)}(e)&&sA(t,e,Ot(),e.stylesWithoutHost,!1),ye}function zo(n,e,t,o){return pe(n,e,t,o),ye(),zo}function aA(n,e,t){const o=Ot(),s=Br(),l=n+io,u=s.firstCreatePass?function pO(n,e,t,o,s){const l=e.consts,u=uc(l,o),p=eu(e,n,8,"ng-container",u);return null!==u&&rh(p,u,!0),J6(e,t,p,uc(l,s)),null!==e.queries&&e.queries.elementStart(e,p),p}(l,s,o,e,t):s.data[l];ea(u,!0);const p=o[l]=o[gr].createComment("");return V3(s,o,p,u),pi(p,o),x3(u)&&($6(s,o,u),W6(s,u,o)),null!=t&&Z6(o,u),aA}function cA(){let n=ri();const e=Br();return jg()?Gg():(n=n.parent,ea(n,!1)),e.firstCreatePass&&(k3(e,n),Fg(n)&&e.queries.elementEnd(n)),cA}function lA(n,e,t){return aA(n,e,t),cA(),lA}function Ar(){return Ot()}function Qd(n){return!!n&&"function"==typeof n.then}const uA=function _w(n){return!!n&&"function"==typeof n.subscribe};function Xe(n,e,t,o){const s=Ot(),l=Br(),u=ri();return function xw(n,e,t,o,s,l,u){const p=x3(o),S=n.firstCreatePass&&ow(n),V=e[Mo],J=rw(e);let he=!0;if(3&o.type||u){const Le=Wi(o,e),ut=u?u(Le):Le,_t=J.length,it=u?Jt=>u(ni(Jt[o.index])):o.index;let gt=null;if(!u&&p&&(gt=function gO(n,e,t,o){const s=n.cleanup;if(null!=s)for(let l=0;lw?p[w]:null}"string"==typeof u&&(l+=2)}return null}(n,e,s,o.index)),null!==gt)(gt.__ngLastListenerFn__||gt).__ngNextListenerFn__=l,gt.__ngLastListenerFn__=l,he=!1;else{l=Tw(o,e,V,l,!1);const Jt=t.listen(ut,s,l);J.push(l,Jt),S&&S.push(s,it,_t,_t+1)}}else l=Tw(o,e,V,l,!1);const xe=o.outputs;let Ee;if(he&&null!==xe&&(Ee=xe[s])){const Le=Ee.length;if(Le)for(let ut=0;ut-1?Oi(n.index,e):e);let w=Ew(e,t,o,u),S=l.__ngNextListenerFn__;for(;S;)w=Ew(e,t,S,u)&&w,S=S.__ngNextListenerFn__;return s&&!1===w&&(u.preventDefault(),u.returnValue=!1),w}}function Dt(n=1){return function _B(n){return(er.lFrame.contextLView=function IB(n,e){for(;n>0;)e=e[Ol],n--;return e}(n,er.lFrame.contextLView))[Mo]}(n)}function ah(n,e){return n<<17|e<<2}function fc(n){return n>>17&32767}function fA(n){return 2|n}function rl(n){return(131068&n)>>2}function hA(n,e){return-131069&n|e<<2}function pA(n){return 1|n}function Fw(n,e,t,o,s){const l=n[t+1],u=null===e;let p=o?fc(l):rl(l),w=!1;for(;0!==p&&(!1===w||u);){const V=n[p+1];IO(n[p],e)&&(w=!0,n[p+1]=o?pA(V):fA(V)),p=o?fc(V):rl(V)}w&&(n[t+1]=o?fA(l):pA(l))}function IO(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&zl(n,e)>=0}function ch(n,e){return function Ps(n,e,t,o){const s=Ot(),l=Br(),u=function _a(n){const e=er.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);l.firstUpdatePass&&function Kw(n,e,t,o){const s=n.data;if(null===s[t+1]){const l=s[_i()],u=function zw(n,e){return e>=n.expandoStartIndex}(n,t);(function Zw(n,e){return 0!=(n.flags&(e?8:16))})(l,o)&&null===e&&!u&&(e=!1),e=function NO(n,e,t,o){const s=function Hg(n){const e=er.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let l=o?e.residualClasses:e.residualStyles;if(null===s)0===(o?e.classBindings:e.styleBindings)&&(t=zd(t=gA(null,n,e,t,o),e.attrs,o),l=null);else{const u=e.directiveStylingLast;if(-1===u||n[u]!==s)if(t=gA(s,n,e,t,o),null===l){let w=function OO(n,e,t){const o=t?e.classBindings:e.styleBindings;if(0!==rl(o))return n[fc(o)]}(n,e,o);void 0!==w&&Array.isArray(w)&&(w=gA(null,n,e,w[1],o),w=zd(w,e.attrs,o),function PO(n,e,t,o){n[fc(t?e.classBindings:e.styleBindings)]=o}(n,e,o,w))}else l=function RO(n,e,t){let o;const s=e.directiveEnd;for(let l=1+e.directiveStylingLast;l0)&&(S=!0)):V=t,s)if(0!==w){const he=fc(n[p+1]);n[o+1]=ah(he,p),0!==he&&(n[he+1]=hA(n[he+1],o)),n[p+1]=function vO(n,e){return 131071&n|e<<17}(n[p+1],o)}else n[o+1]=ah(p,0),0!==p&&(n[p+1]=hA(n[p+1],o)),p=o;else n[o+1]=ah(w,0),0===p?p=o:n[w+1]=hA(n[w+1],o),w=o;S&&(n[o+1]=fA(n[o+1])),Fw(n,V,o,!0),Fw(n,V,o,!1),function _O(n,e,t,o,s){const l=s?n.residualClasses:n.residualStyles;null!=l&&"string"==typeof e&&zl(l,e)>=0&&(t[o+1]=pA(t[o+1]))}(e,V,n,o,l),u=ah(p,w),l?e.classBindings=u:e.styleBindings=u}(s,l,e,t,u,o)}}(l,n,u,o),e!==tr&&gi(s,u,e)&&function Ww(n,e,t,o,s,l,u,p){if(!(3&e.type))return;const w=n.data,S=w[p+1],V=function wO(n){return 1==(1&n)}(S)?$w(w,e,t,s,rl(S),u):void 0;lh(V)||(lh(l)||function bO(n){return 2==(2&n)}(S)&&(l=$w(w,null,t,s,p,u)),function jS(n,e,t,o,s){if(e)s?n.addClass(t,o):n.removeClass(t,o);else{let l=-1===o.indexOf("-")?void 0:Pi.DashCase;null==s?n.removeStyle(t,o,l):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),l|=Pi.Important),n.setStyle(t,o,s,l))}}(o,u,E3(_i(),t),s,l))}(l,l.data[_i()],s,s[gr],n,s[u+1]=function jO(n,e){return null==n||""===n||("string"==typeof e?n+=e:"object"==typeof n&&(n=jt(dc(n)))),n}(e,t),o,u)}(n,e,null,!0),ch}function gA(n,e,t,o,s){let l=null;const u=t.directiveEnd;let p=t.directiveStylingLast;for(-1===p?p=t.directiveStart:p++;p0;){const w=n[s],S=Array.isArray(w),V=S?w[1]:w,J=null===V;let he=t[s+1];he===tr&&(he=J?Kr:void 0);let xe=J?r6(he,o):V===o?he:void 0;if(S&&!lh(xe)&&(xe=r6(w,o)),lh(xe)&&(p=xe,u))return p;const Ee=n[s+1];s=u?fc(Ee):rl(Ee)}if(null!==e){let w=l?e.residualClasses:e.residualStyles;null!=w&&(p=r6(w,o))}return p}function lh(n){return void 0!==n}function Re(n,e=""){const t=Ot(),o=Br(),s=n+io,l=o.firstCreatePass?eu(o,s,1,e,null):o.data[s],u=t[s]=function A6(n,e){return n.createText(e)}(t[gr],e);V3(o,t,u,l),ea(l,!1)}function Kd(n){return Vn("",n,""),Kd}function Vn(n,e,t){const o=Ot(),s=function nu(n,e,t,o){return gi(n,Ll(),t)?e+le(t)+o:tr}(o,n,e,t);return s!==tr&&function ka(n,e,t){const o=E3(e,n);!function Qv(n,e,t){n.setValue(e,t)}(n[gr],o,t)}(o,_i(),s),Vn}const fu="en-US";let yC=fu;function yA(n,e,t,o,s){if(n=Kt(n),Array.isArray(n))for(let l=0;l>20;if(tl(n)||!n.multi){const xe=new Cd(w,s,qe),Ee=vA(p,e,s?V:V+he,J);-1===Ee?(Xg(O3(S,u),l,p),bA(l,n,e.length),e.push(p),S.directiveStart++,S.directiveEnd++,s&&(S.providerIndexes+=1048576),t.push(xe),u.push(xe)):(t[Ee]=xe,u[Ee]=xe)}else{const xe=vA(p,e,V+he,J),Ee=vA(p,e,V,V+he),ut=Ee>=0&&t[Ee];if(s&&!ut||!s&&!(xe>=0&&t[xe])){Xg(O3(S,u),l,p);const _t=function o9(n,e,t,o,s){const l=new Cd(n,t,qe);return l.multi=[],l.index=e,l.componentProviders=0,HC(l,s,o&&!t),l}(s?r9:n9,t.length,s,o,w);!s&&ut&&(t[Ee].providerFactory=_t),bA(l,n,e.length,0),e.push(p),S.directiveStart++,S.directiveEnd++,s&&(S.providerIndexes+=1048576),t.push(_t),u.push(_t)}else bA(l,n,xe>-1?xe:Ee,HC(t[s?Ee:xe],w,!s&&o));!s&&o&&ut&&t[Ee].componentProviders++}}}function bA(n,e,t,o){const s=tl(e),l=function gM(n){return!!n.useClass}(e);if(s||l){const w=(l?Kt(e.useClass):e).prototype.ngOnDestroy;if(w){const S=n.destroyHooks||(n.destroyHooks=[]);if(!s&&e.multi){const V=S.indexOf(t);-1===V?S.push(t,[o,w]):S[V+1].push(o,w)}else S.push(t,w)}}}function HC(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function vA(n,e,t,o){for(let s=t;s{t.providersResolver=(o,s)=>function t9(n,e,t){const o=Br();if(o.firstCreatePass){const s=Ns(n);yA(t,o.data,o.blueprint,s,!0),yA(e,o.data,o.blueprint,s,!1)}}(o,s?s(n):n,e)}}class hu{}class QC{}class zC extends hu{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new aw(this);const o=Ki(e);this._bootstrapComponents=Ta(o.bootstrap),this._r3Injector=j4(e,t,[{provide:hu,useValue:this},{provide:us,useValue:this.componentFactoryResolver}],jt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class CA extends QC{constructor(e){super(),this.moduleType=e}create(e){return new zC(this.moduleType,e)}}class s9 extends hu{constructor(e,t,o){super(),this.componentFactoryResolver=new aw(this),this.instance=null;const s=new I4([...e,{provide:hu,useValue:this},{provide:us,useValue:this.componentFactoryResolver}],t||Z3(),o,new Set(["environment"]));this.injector=s,s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function ph(n,e,t=null){return new s9(n,e,t).injector}let a9=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const o=v4(0,t.type),s=o.length>0?ph([o],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,s)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=vt({token:n,providedIn:"environment",factory:()=>new n(Yt(xa))}),n})();function KC(n){n.getStandaloneInjector=e=>e.get(a9).getOrCreateStandaloneInjector(n)}function IA(n,e,t){const o=Ci()+n,s=Ot();return s[o]===tr?ra(s,o,t?e.call(t):e()):Hd(s,o)}function qo(n,e,t,o){return t_(Ot(),Ci(),n,e,t,o)}function Jd(n,e,t,o,s){return function n_(n,e,t,o,s,l,u){const p=e+t;return nl(n,p,s,l)?ra(n,p+2,u?o.call(u,s,l):o(s,l)):ef(n,p+2)}(Ot(),Ci(),n,e,t,o,s)}function Xd(n,e,t,o){return function i_(n,e,t,o,s,l){let u=e+t,p=!1;for(let w=0;w=0;t--){const o=e[t];if(n===o.name)return o}}(e,t.pipeRegistry),t.data[s]=o,o.onDestroy&&(t.destroyHooks??(t.destroyHooks=[])).push(s,o.onDestroy)):o=t.data[s];const l=o.factory||(o.factory=Zc(o.type)),u=_n(qe);try{const p=N3(!1),w=l();return N3(p),function fO(n,e,t,o){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=o}(t,Ot(),s,w),w}finally{_n(u)}}function Ah(n,e,t){const o=n+io,s=Ot(),l=Fl(s,o);return function tf(n,e){return n[wn].data[e].pure}(s,o)?t_(s,Ci(),e,l.transform,t,l):l.transform(t)}function xA(n){return e=>{setTimeout(n,void 0,e)}}const To=class I9 extends L{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,o){let s=e,l=t||(()=>null),u=o;if(e&&"object"==typeof e){const w=e;s=w.next?.bind(w),l=w.error?.bind(w),u=w.complete?.bind(w)}this.__isAsync&&(l=xA(l),s&&(s=xA(s)),u&&(u=xA(u)));const p=super.subscribe({next:s,error:l,complete:u});return e instanceof k&&e.add(p),p}};function x9(){return this._results[Symbol.iterator]()}class EA{get changes(){return this._changes||(this._changes=new To)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=EA.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=x9)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const o=this;o.dirty=!1;const s=function ls(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function QB(n,e,t){if(n.length!==e.length)return!1;for(let o=0;o{class n{}return n.__NG_ELEMENT_ID__=k9,n})();const E9=Da,T9=class extends E9{constructor(e,t,o){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=o}createEmbeddedView(e,t){const o=this._declarationTContainer.tView,s=J3(this._declarationLView,o,e,16,null,o.declTNode,null,null,null,null,t||null);s[yd]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[Xs];return null!==u&&(s[Xs]=u.createEmbeddedView(o)),Y6(o,s,e),new Gd(s)}};function k9(){return mh(ri(),Ot())}function mh(n,e){return 4&n.type?new T9(e,n,Zl(n,e)):null}let Ji=(()=>{class n{}return n.__NG_ELEMENT_ID__=D9,n})();function D9(){return c_(ri(),Ot())}const B9=Ji,s_=class extends B9{constructor(e,t,o){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=o}get element(){return Zl(this._hostTNode,this._hostLView)}get injector(){return new jl(this._hostTNode,this._hostLView)}get parentInjector(){const e=Jg(this._hostTNode,this._hostLView);if(uv(e)){const t=M3(e,this._hostLView),o=S3(e);return new jl(t[wn].data[o+8],t)}return new jl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=a_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-wi}createEmbeddedView(e,t,o){let s,l;"number"==typeof o?s=o:null!=o&&(s=o.index,l=o.injector);const u=e.createEmbeddedView(t||{},l);return this.insert(u,s),u}createComponent(e,t,o,s,l){const u=e&&!function xd(n){return"function"==typeof n}(e);let p;if(u)p=t;else{const J=t||{};p=J.index,o=J.injector,s=J.projectableNodes,l=J.environmentInjector||J.ngModuleRef}const w=u?e:new Vd(Wr(e)),S=o||this.parentInjector;if(!l&&null==w.ngModule){const he=(u?S:this.parentInjector).get(xa,null);he&&(l=he)}const V=w.create(S,s,void 0,l);return this.insert(V.hostView,p),V}insert(e,t){const o=e._lView,s=o[wn];if(function fB(n){return Ms(n[xo])}(o)){const V=this.indexOf(e);if(-1!==V)this.detach(V);else{const J=o[xo],he=new s_(J,J[fi],J[xo]);he.detach(he.indexOf(e))}}const l=this._adjustIndex(t),u=this._lContainer;!function MS(n,e,t,o){const s=wi+o,l=t.length;o>0&&(t[s-1][Ss]=e),o0)o.push(u[p/2]);else{const S=l[p+1],V=e[-w];for(let J=wi;J{class n{constructor(t){this.appInits=t,this.resolve=wh,this.reject=wh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,s)=>{this.resolve=o,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{l.subscribe({complete:p,error:w})});t.push(u)}}Promise.all(t).then(()=>{o()}).catch(s=>{this.reject(s)}),0===t.length&&o(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ch,8))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rf=new Fn("AppId",{providedIn:"root",factory:function N_(){return`${UA()}${UA()}${UA()}`}});function UA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const O_=new Fn("Platform Initializer"),P_=new Fn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),R_=new Fn("AnimationModuleType");let nP=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Ba=new Fn("LocaleId",{providedIn:"root",factory:()=>_r(Ba,Tt.Optional|Tt.SkipSelf)||function rP(){return typeof $localize<"u"&&$localize.locale||fu}()});class iP{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let F_=(()=>{class n{compileModuleSync(t){return new CA(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const o=this.compileModuleSync(t),l=Ta(Ki(t).declarations).reduce((u,p)=>{const w=Wr(p);return w&&u.push(new Vd(w)),u},[]);return new iP(o,l)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cP=(()=>Promise.resolve(0))();function jA(n){typeof Zone>"u"?cP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class bo{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new To(!1),this.onMicrotaskEmpty=new To(!1),this.onStable=new To(!1),this.onError=new To(!1),typeof Zone>"u")throw new $e(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&t,s.shouldCoalesceRunChangeDetection=o,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function lP(){let n=Sn.requestAnimationFrame,e=Sn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function fP(n){const e=()=>{!function dP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Sn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,VA(n),n.isCheckStableRunning=!0,GA(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),VA(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,o,s,l,u,p)=>{try{return j_(n),t.invokeTask(s,l,u,p)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||n.shouldCoalesceRunChangeDetection)&&e(),G_(n)}},onInvoke:(t,o,s,l,u,p,w)=>{try{return j_(n),t.invoke(s,l,u,p,w)}finally{n.shouldCoalesceRunChangeDetection&&e(),G_(n)}},onHasTask:(t,o,s,l)=>{t.hasTask(s,l),o===s&&("microTask"==l.change?(n._hasPendingMicrotasks=l.microTask,VA(n),GA(n)):"macroTask"==l.change&&(n.hasPendingMacrotasks=l.macroTask))},onHandleError:(t,o,s,l)=>(t.handleError(s,l),n.runOutsideAngular(()=>n.onError.emit(l)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new $e(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new $e(909,!1)}run(e,t,o){return this._inner.run(e,t,o)}runTask(e,t,o,s){const l=this._inner,u=l.scheduleEventTask("NgZoneEvent: "+s,e,uP,wh,wh);try{return l.runTask(u,t,o)}finally{l.cancelTask(u)}}runGuarded(e,t,o){return this._inner.runGuarded(e,t,o)}runOutsideAngular(e){return this._outer.run(e)}}const uP={};function GA(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function VA(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function j_(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function G_(n){n._nesting--,GA(n)}class hP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new To,this.onMicrotaskEmpty=new To,this.onStable=new To,this.onError=new To}run(e,t,o){return e.apply(t,o)}runGuarded(e,t,o){return e.apply(t,o)}runOutsideAngular(e){return e()}runTask(e,t,o,s){return e.apply(t,o)}}const V_=new Fn(""),Ih=new Fn("");let zA,HA=(()=>{class n{constructor(t,o,s){this._ngZone=t,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zA||(function pP(n){zA=n}(s),s.addToWindow(o)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{bo.assertNotInAngularZone(),jA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())jA(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(t)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,o,s){let l=-1;o&&o>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==l),t(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:t,timeoutId:l,updateCb:s})}whenStable(t,o,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,o,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(Yt(bo),Yt(QA),Yt(Ih))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})(),QA=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,o){this._applications.set(t,o)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,o=!0){return zA?.findTestabilityInTree(this,t,o)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Sa=!1;let hc=null;const H_=new Fn("AllowMultipleToken"),KA=new Fn("PlatformDestroyListeners"),Q_=new Fn("appBootstrapListener");class z_{constructor(e,t){this.name=e,this.token=t}}function Y_(n,e,t=[]){const o=`Platform: ${e}`,s=new Fn(o);return(l=[])=>{let u=YA();if(!u||u.injector.get(H_,!1)){const p=[...t,...l,{provide:s,useValue:!0}];n?n(p):function mP(n){if(hc&&!hc.get(H_,!1))throw new $e(400,!1);hc=n;const e=n.get($_);(function K_(n){const e=n.get(O_,null);e&&e.forEach(t=>t())})(n)}(function W_(n=[],e){return Fi.create({name:e,providers:[{provide:P6,useValue:"platform"},{provide:KA,useValue:new Set([()=>hc=null])},...n]})}(p,o))}return function bP(n){const e=YA();if(!e)throw new $e(401,!1);return e}()}}function YA(){return hc?.get($_)??null}let $_=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,o){const s=function q_(n,e){let t;return t="noop"===n?new hP:("zone.js"===n?void 0:n)||new bo(e),t}(o?.ngZone,function Z_(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(o)),l=[{provide:bo,useValue:s}];return s.run(()=>{const u=Fi.create({providers:l,parent:this.injector,name:t.moduleType.name}),p=t.create(u),w=p.injector.get(ql,null);if(!w)throw new $e(402,!1);return s.runOutsideAngular(()=>{const S=s.onError.subscribe({next:V=>{w.handleError(V)}});p.onDestroy(()=>{xh(this._modules,p),S.unsubscribe()})}),function J_(n,e,t){try{const o=t();return Qd(o)?o.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):o}catch(o){throw e.runOutsideAngular(()=>n.handleError(o)),o}}(w,s,()=>{const S=p.injector.get(_h);return S.runInitializers(),S.donePromise.then(()=>(function bC(n){qt(n,"Expected localeId to be defined"),"string"==typeof n&&(yC=n.toLowerCase().replace(/_/g,"-"))}(p.injector.get(Ba,fu)||fu),this._moduleDoBootstrap(p),p))})})}bootstrapModule(t,o=[]){const s=X_({},o);return function gP(n,e,t){const o=new CA(t);return Promise.resolve(o)}(0,0,t).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(t){const o=t.injector.get(Us);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>o.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new $e(-403,!1);t.instance.ngDoBootstrap(o)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $e(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const t=this._injector.get(KA,null);t&&(t.forEach(o=>o()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(Yt(Fi))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function X_(n,e){return Array.isArray(e)?e.reduce(X_,n):{...n,...e}}let Us=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,o,s){this._zone=t,this._injector=o,this._exceptionHandler=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new te(p=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{p.next(this._stable),p.complete()})}),u=new te(p=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),jA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,p.next(!0))})})});const S=this._zone.onUnstable.subscribe(()=>{bo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{p.next(!1)}))});return()=>{w.unsubscribe(),S.unsubscribe()}});this.isStable=function fe(...n){let e=Number.POSITIVE_INFINITY,t=null,o=n[n.length-1];return I(o)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof o&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof te?n[0]:Qt(e)(Wt(n,t))}(l,u.pipe(function zt(){return n=>ee()(function Ut(n,e){return function(o){let s;if(s="function"==typeof n?n:function(){return n},"function"==typeof e)return o.lift(new Bn(s,e));const l=Object.create(o,Ke);return l.source=o,l.subjectFactory=s,l}}(Rt)(n))}()))}bootstrap(t,o){const s=t instanceof E4;if(!this._injector.get(_h).done){!s&&function Ml(n){const e=Wr(n)||di(n)||Ni(n);return null!==e&&e.standalone}(t);throw new $e(405,Sa)}let u;u=s?t:this._injector.get(us).resolveComponentFactory(t),this.componentTypes.push(u.componentType);const p=function AP(n){return n.isBoundToModule}(u)?void 0:this._injector.get(hu),S=u.create(Fi.NULL,[],o||u.selector,p),V=S.location.nativeElement,J=S.injector.get(V_,null);return J?.registerApplication(V),S.onDestroy(()=>{this.detachView(S.hostView),xh(this.components,S),J?.unregisterApplication(V)}),this._loadComponent(S),S}tick(){if(this._runningTick)throw new $e(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const o=t;this._views.push(o),o.attachToAppRef(this)}detachView(t){const o=t;xh(this._views,o),o.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const o=this._injector.get(Q_,[]);o.push(...this._bootstrapListeners),o.forEach(s=>s(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>xh(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new $e(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(Yt(bo),Yt(xa),Yt(ql))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xh(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let pc=(()=>{class n{}return n.__NG_ELEMENT_ID__=wP,n})();function wP(n){return function CP(n,e,t){if(vd(n)&&!t){const o=Oi(n.index,e);return new Gd(o,o)}return 47&n.type?new Gd(e[hi],e):null}(ri(),Ot(),16==(16&n))}class oI{constructor(){}supports(e){return ih(e)}create(e){return new kP(e)}}const TP=(n,e)=>e;class kP{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||TP}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,o=this._removalsHead,s=0,l=null;for(;t||o;){const u=!o||t&&t.currentIndex{u=this._trackByFn(s,p),null!==t&&Object.is(t.trackById,u)?(o&&(t=this._verifyReinsertion(t,p,u,s)),Object.is(t.item,p)||this._addIdentityChange(t,p)):(t=this._mismatch(t,p,u,s),o=!0),t=t._next,s++}),this.length=s;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,o,s){let l;return null===e?l=this._itTail:(l=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,l,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(o,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,l,s)):e=this._addAfter(new DP(t,o),l,s),e}_verifyReinsertion(e,t,o,s){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==l?e=this._reinsertAfter(l,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,l=e._nextRemoved;return null===s?this._removalsHead=l:s._nextRemoved=l,null===l?this._removalsTail=s:l._prevRemoved=s,this._insertAfter(e,t,o),this._addToMoves(e,o),e}_moveAfter(e,t,o){return this._unlink(e),this._insertAfter(e,t,o),this._addToMoves(e,o),e}_addAfter(e,t,o){return this._insertAfter(e,t,o),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,o){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new iI),this._linkedRecords.put(e),e.currentIndex=o,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,o=e._next;return null===t?this._itHead=o:t._next=o,null===o?this._itTail=t:o._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iI),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class DP{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class BP{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===t||t<=o.currentIndex)&&Object.is(o.trackById,e))return o;return null}remove(e){const t=e._prevDup,o=e._nextDup;return null===t?this._head=o:t._nextDup=o,null===o?this._tail=t:o._prevDup=t,null===this._head}}class iI{constructor(){this.map=new Map}put(e){const t=e.trackById;let o=this.map.get(t);o||(o=new BP,this.map.set(t,o)),o.add(e)}get(e,t){const s=this.map.get(e);return s?s.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sI(n,e,t){const o=n.previousIndex;if(null===o)return o;let s=0;return t&&o{if(t&&t.key===s)this._maybeAddToChanges(t,o),this._appendAfter=t,t=t._next;else{const l=this._getOrCreateRecordForKey(s,o);t=this._insertBeforeOrAppend(t,l)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let o=t;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const o=e._prev;return t._next=e,t._prev=o,e._prev=t,o&&(o._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const s=this._records.get(e);this._maybeAddToChanges(s,t);const l=s._prev,u=s._next;return l&&(l._next=u),u&&(u._prev=l),s._next=null,s._prev=null,s}const o=new MP(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(o=>t(e[o],o))}}class MP{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function cI(){return new kh([new oI])}let kh=(()=>{class n{constructor(t){this.factories=t}static create(t,o){if(null!=o){const s=o.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:o=>n.create(t,o||cI()),deps:[[n,new kd,new Td]]}}find(t){const o=this.factories.find(s=>s.supports(t));if(null!=o)return o;throw new $e(901,!1)}}return n.\u0275prov=vt({token:n,providedIn:"root",factory:cI}),n})();function lI(){return new sf([new aI])}let sf=(()=>{class n{constructor(t){this.factories=t}static create(t,o){if(o){const s=o.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:o=>n.create(t,o||lI()),deps:[[n,new kd,new Td]]}}find(t){const o=this.factories.find(s=>s.supports(t));if(o)return o;throw new $e(901,!1)}}return n.\u0275prov=vt({token:n,providedIn:"root",factory:lI}),n})();const PP=Y_(null,"core",[]);let RP=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(Yt(Us))},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({}),n})();let JA=null;function Ma(){return JA}class UP{}const Ai=new Fn("DocumentToken");let XA=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return function jP(){return Yt(uI)}()},providedIn:"platform"}),n})();const GP=new Fn("Location Initialized");let uI=(()=>{class n extends XA{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ma().getBaseHref(this._doc)}onPopState(t){const o=Ma().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",t,!1),()=>o.removeEventListener("popstate",t)}onHashChange(t){const o=Ma().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",t,!1),()=>o.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,o,s){dI()?this._history.pushState(t,o,s):this._location.hash=s}replaceState(t,o,s){dI()?this._history.replaceState(t,o,s):this._location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai))},n.\u0275prov=vt({token:n,factory:function(){return function VP(){return new uI(Yt(Ai))}()},providedIn:"platform"}),n})();function dI(){return!!window.history.pushState}function e1(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function fI(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Na(n){return n&&"?"!==n[0]?"?"+n:n}let sl=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return _r(pI)},providedIn:"root"}),n})();const hI=new Fn("appBaseHref");let pI=(()=>{class n extends sl{constructor(t,o){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??_r(Ai).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return e1(this._baseHref,t)}path(t=!1){const o=this._platformLocation.pathname+Na(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${o}${s}`:o}pushState(t,o,s,l){const u=this.prepareExternalUrl(s+Na(l));this._platformLocation.pushState(t,o,u)}replaceState(t,o,s,l){const u=this.prepareExternalUrl(s+Na(l));this._platformLocation.replaceState(t,o,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(Yt(XA),Yt(hI,8))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HP=(()=>{class n extends sl{constructor(t,o){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=o&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(t){const o=e1(this._baseHref,t);return o.length>0?"#"+o:o}pushState(t,o,s,l){let u=this.prepareExternalUrl(s+Na(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(t,o,u)}replaceState(t,o,s,l){let u=this.prepareExternalUrl(s+Na(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(t,o,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(Yt(XA),Yt(hI,8))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})(),t1=(()=>{class n{constructor(t){this._subject=new To,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const o=this._locationStrategy.getBaseHref();this._basePath=function KP(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(fI(gI(o))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,o=""){return this.path()==this.normalize(t+Na(o))}normalize(t){return n.stripTrailingSlash(function zP(n,e){if(!n||!e.startsWith(n))return e;const t=e.substring(n.length);return""===t||["/",";","?","#"].includes(t[0])?t:e}(this._basePath,gI(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,o="",s=null){this._locationStrategy.pushState(s,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Na(o)),s)}replaceState(t,o="",s=null){this._locationStrategy.replaceState(s,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Na(o)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{const o=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",o){this._urlChangeListeners.forEach(s=>s(t,o))}subscribe(t,o,s){return this._subject.subscribe({next:t,error:o,complete:s})}}return n.normalizeQueryParams=Na,n.joinWithSlash=e1,n.stripTrailingSlash=fI,n.\u0275fac=function(t){return new(t||n)(Yt(sl))},n.\u0275prov=vt({token:n,factory:function(){return function QP(){return new t1(Yt(sl))}()},providedIn:"root"}),n})();function gI(n){return n.replace(/\/index.html$/,"")}const d1=/\s+/,II=[];let lf=(()=>{class n{constructor(t,o,s,l){this._iterableDiffers=t,this._keyValueDiffers=o,this._ngEl=s,this._renderer=l,this.initialClasses=II,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(d1):II}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(d1):t}ngDoCheck(){for(const o of this.initialClasses)this._updateState(o,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const o of t)this._updateState(o,!0);else if(null!=t)for(const o of Object.keys(t))this._updateState(o,Boolean(t[o]));this._applyStateDiff()}_updateState(t,o){const s=this.stateMap.get(t);void 0!==s?(s.enabled!==o&&(s.changed=!0,s.enabled=o),s.touched=!0):this.stateMap.set(t,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const o=t[0],s=t[1];s.changed?(this._toggleClass(o,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),s.touched=!1}}_toggleClass(t,o){(t=t.trim()).length>0&&t.split(d1).forEach(s=>{o?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return n.\u0275fac=function(t){return new(t||n)(qe(kh),qe(sf),qe(Zi),qe(Ea))},n.\u0275dir=Yn({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class SR{constructor(e,t,o,s){this.$implicit=e,this.ngForOf=t,this.index=o,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ir=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,o,s){this._viewContainer=t,this._template=o,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const o=this._viewContainer;t.forEachOperation((s,l,u)=>{if(null==s.previousIndex)o.createEmbeddedView(this._template,new SR(s.item,this._ngForOf,-1,-1),null===u?void 0:u);else if(null==u)o.remove(null===l?void 0:l);else if(null!==l){const p=o.get(l);o.move(p,u),TI(p,s)}});for(let s=0,l=o.length;s{TI(o.get(s.currentIndex),s)})}static ngTemplateContextGuard(t,o){return!0}}return n.\u0275fac=function(t){return new(t||n)(qe(Ji),qe(Da),qe(kh))},n.\u0275dir=Yn({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function TI(n,e){n.context.$implicit=e.item}let ps=(()=>{class n{constructor(t,o){this._viewContainer=t,this._context=new NR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){kI("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){kI("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,o){return!0}}return n.\u0275fac=function(t){return new(t||n)(qe(Ji),qe(Da))},n.\u0275dir=Yn({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class NR{constructor(){this.$implicit=null,this.ngIf=null}}function kI(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${jt(e)}'.`)}let uf=(()=>{class n{constructor(t,o,s){this._ngEl=t,this._differs=o,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,o){const[s,l]=t.split("."),u=-1===s.indexOf("-")?void 0:Pi.DashCase;null!=o?this._renderer.setStyle(this._ngEl.nativeElement,s,l?`${o}${l}`:o,u):this._renderer.removeStyle(this._ngEl.nativeElement,s,u)}_applyChanges(t){t.forEachRemovedItem(o=>this._setStyle(o.key,null)),t.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),t.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(qe(Zi),qe(sf),qe(Ea))},n.\u0275dir=Yn({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),p1=(()=>{class n{transform(t){return JSON.stringify(t,null,2)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Mi({name:"json",type:n,pure:!1,standalone:!0}),n})(),df=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({}),n})();let aF=(()=>{class n{}return n.\u0275prov=vt({token:n,providedIn:"root",factory:()=>new cF(Yt(Ai),window)}),n})();class cF{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function lF(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const o=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let s=o.currentNode;for(;s;){const l=s.shadowRoot;if(l){const u=l.getElementById(e)||l.querySelector(`[name="${e}"]`);if(u)return u}s=o.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),o=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,l=this.offset();this.window.scrollTo(o-l[0],s-l[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=MI(this.window.history)||MI(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function MI(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class FF extends UP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b1 extends FF{static makeCurrent(){!function LP(n){JA||(JA=n)}(new b1)}onAndCancel(e,t,o){return e.addEventListener(t,o,!1),()=>{e.removeEventListener(t,o,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function LF(){return hf=hf||document.querySelector("base"),hf?hf.getAttribute("href"):null}();return null==t?null:function UF(n){jh=jh||document.createElement("a"),jh.setAttribute("href",n);const e=jh.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){hf=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function DR(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const o=t.indexOf("="),[s,l]=-1==o?[t,""]:[t.slice(0,o),t.slice(o+1)];if(s.trim()===e)return decodeURIComponent(l)}return null}(document.cookie,e)}}let jh,hf=null;const FI=new Fn("TRANSITION_ID"),GF=[{provide:Ch,useFactory:function jF(n,e,t){return()=>{t.get(_h).donePromise.then(()=>{const o=Ma(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();const Gh=new Fn("EventManagerPlugins");let Vh=(()=>{class n{constructor(t,o){this._zone=o,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,o,s){return this._findPluginFor(o).addEventListener(t,o,s)}addGlobalEventListener(t,o,s){return this._findPluginFor(o).addGlobalEventListener(t,o,s)}getZone(){return this._zone}_findPluginFor(t){const o=this._eventNameToPlugin.get(t);if(o)return o;const s=this._plugins;for(let l=0;l{class n{constructor(){this.usageCount=new Map}addStyles(t){for(const o of t)1===this.changeUsageCount(o,1)&&this.onStyleAdded(o)}removeStyles(t){for(const o of t)0===this.changeUsageCount(o,-1)&&this.onStyleRemoved(o)}onStyleRemoved(t){}onStyleAdded(t){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(t,o){const s=this.usageCount;let l=s.get(t)??0;return l+=o,l>0?s.set(t,l):s.delete(t),l}ngOnDestroy(){for(const t of this.getAllStyles())this.onStyleRemoved(t);this.usageCount.clear()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})(),pf=(()=>{class n extends UI{constructor(t){super(),this.doc=t,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(t){for(const o of this.hostNodes)this.addStyleToHost(o,t)}onStyleRemoved(t){const o=this.styleRef;o.get(t)?.forEach(l=>l.remove()),o.delete(t)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const o of this.getAllStyles())this.addStyleToHost(t,o)}removeHost(t){this.hostNodes.delete(t)}addStyleToHost(t,o){const s=this.doc.createElement("style");s.textContent=o,t.appendChild(s);const l=this.styleRef.get(o);l?l.push(s):this.styleRef.set(o,[s])}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();const v1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},w1=/%COMP%/g,VI=new Fn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function HI(n,e){return e.flat(100).map(t=>t.replace(w1,n))}function QI(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Hh=(()=>{class n{constructor(t,o,s,l){this.eventManager=t,this.sharedStylesHost=o,this.appId=s,this.removeStylesOnCompDestory=l,this.rendererByCompId=new Map,this.defaultRenderer=new C1(t)}createRenderer(t,o){if(!t||!o)return this.defaultRenderer;const s=this.getOrCreateRenderer(t,o);return s instanceof YI?s.applyToHost(t):s instanceof _1&&s.applyStyles(),s}getOrCreateRenderer(t,o){const s=this.rendererByCompId;let l=s.get(o.id);if(!l){const u=this.eventManager,p=this.sharedStylesHost,w=this.removeStylesOnCompDestory;switch(o.encapsulation){case Bs.Emulated:l=new YI(u,p,o,this.appId,w);break;case Bs.ShadowDom:return new ZF(u,p,t,o);default:l=new _1(u,p,o,w)}l.onDestroy=()=>s.delete(o.id),s.set(o.id,l)}return l}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(Yt(Vh),Yt(pf),Yt(rf),Yt(VI))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();class C1{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(v1[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(KI(e)?e.content:e).appendChild(t)}insertBefore(e,t,o){e&&(KI(e)?e.content:e).insertBefore(t,o)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error(`The selector "${e}" did not match any elements`);return t||(o.textContent=""),o}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,o,s){if(s){t=s+":"+t;const l=v1[s];l?e.setAttributeNS(l,t,o):e.setAttribute(t,o)}else e.setAttribute(t,o)}removeAttribute(e,t,o){if(o){const s=v1[o];s?e.removeAttributeNS(s,t):e.removeAttribute(`${o}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,o,s){s&(Pi.DashCase|Pi.Important)?e.style.setProperty(t,o,s&Pi.Important?"important":""):e.style[t]=o}removeStyle(e,t,o){o&Pi.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,o){e[t]=o}setValue(e,t){e.nodeValue=t}listen(e,t,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,QI(o)):this.eventManager.addEventListener(e,t,QI(o))}}function KI(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ZF extends C1{constructor(e,t,o,s){super(e),this.sharedStylesHost=t,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=HI(s.id,s.styles);for(const u of l){const p=document.createElement("style");p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,o){return super.insertBefore(this.nodeOrShadowRoot(e),t,o)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _1 extends C1{constructor(e,t,o,s,l=o.id){super(e),this.sharedStylesHost=t,this.removeStylesOnCompDestory=s,this.rendererUsageCount=0,this.styles=HI(l,o.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class YI extends _1{constructor(e,t,o,s,l){const u=s+"-"+o.id;super(e,t,o,l,u),this.contentAttr=function YF(n){return"_ngcontent-%COMP%".replace(w1,n)}(u),this.hostAttr=function WF(n){return"_nghost-%COMP%".replace(w1,n)}(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const o=super.createElement(e,t);return super.setAttribute(o,this.contentAttr,""),o}}let qF=(()=>{class n extends LI{constructor(t){super(t)}supports(t){return!0}addEventListener(t,o,s){return t.addEventListener(o,s,!1),()=>this.removeEventListener(t,o,s)}removeEventListener(t,o,s){return t.removeEventListener(o,s)}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();const WI=["alt","control","meta","shift"],JF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},XF={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let eL=(()=>{class n extends LI{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,o,s){const l=n.parseEventName(o),u=n.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ma().onAndCancel(t,l.domEventName,u))}static parseEventName(t){const o=t.toLowerCase().split("."),s=o.shift();if(0===o.length||"keydown"!==s&&"keyup"!==s)return null;const l=n._normalizeKey(o.pop());let u="",p=o.indexOf("code");if(p>-1&&(o.splice(p,1),u="code."),WI.forEach(S=>{const V=o.indexOf(S);V>-1&&(o.splice(V,1),u+=S+".")}),u+=l,0!=o.length||0===l.length)return null;const w={};return w.domEventName=s,w.fullKey=u,w}static matchEventFullKeyCode(t,o){let s=JF[t.key]||t.key,l="";return o.indexOf("code.")>-1&&(s=t.code,l="code."),!(null==s||!s)&&(s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),WI.forEach(u=>{u!==s&&(0,XF[u])(t)&&(l+=u+".")}),l+=s,l===o)}static eventCallback(t,o,s){return l=>{n.matchEventFullKeyCode(l,t)&&s.runGuarded(()=>o(l))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();const ZI=[{provide:P_,useValue:"browser"},{provide:O_,useValue:function tL(){b1.makeCurrent()},multi:!0},{provide:Ai,useFactory:function rL(){return function zS(n){x6=n}(document),document},deps:[]}],oL=Y_(PP,"browser",ZI),qI=new Fn(""),JI=[{provide:Ih,useClass:class VF{addToWindow(e){Sn.getAngularTestability=(o,s=!0)=>{const l=e.findTestabilityInTree(o,s);if(null==l)throw new Error("Could not find testability for element.");return l},Sn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Sn.getAllAngularRootElements=()=>e.getAllRootElements(),Sn.frameworkStabilizers||(Sn.frameworkStabilizers=[]),Sn.frameworkStabilizers.push(o=>{const s=Sn.getAllAngularTestabilities();let l=s.length,u=!1;const p=function(w){u=u||w,l--,0==l&&o(u)};s.forEach(function(w){w.whenStable(p)})})}findTestabilityInTree(e,t,o){return null==t?null:e.getTestability(t)??(o?Ma().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:V_,useClass:HA,deps:[bo,QA,Ih]},{provide:HA,useClass:HA,deps:[bo,QA,Ih]}],XI=[{provide:P6,useValue:"root"},{provide:ql,useFactory:function nL(){return new ql},deps:[]},{provide:Gh,useClass:qF,multi:!0,deps:[Ai,bo,P_]},{provide:Gh,useClass:eL,multi:!0,deps:[Ai]},{provide:Hh,useClass:Hh,deps:[Vh,pf,rf,VI]},{provide:Ld,useExisting:Hh},{provide:UI,useExisting:pf},{provide:pf,useClass:pf,deps:[Ai]},{provide:Vh,useClass:Vh,deps:[Gh,bo]},{provide:class uF{},useClass:HF,deps:[]},[]];let x1=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:rf,useValue:t.appId},{provide:FI,useExisting:rf},GF]}}}return n.\u0275fac=function(t){return new(t||n)(Yt(qI,12))},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({providers:[...XI,...JI],imports:[df,RP]}),n})(),e5=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai))},n.\u0275prov=vt({token:n,factory:function(t){let o=null;return o=t?new t:function sL(){return new e5(Yt(Ai))}(),o},providedIn:"root"}),n})();function Qh(n,e){return new te(t=>{const o=n.length;if(0===o)return void t.complete();const s=new Array(o);let l=0,u=0;for(let p=0;p{S||(S=!0,u++),s[p]=V},error:V=>t.error(V),complete:()=>{l++,(l===o||!S)&&(u===o&&t.next(e?e.reduce((V,J,he)=>(V[J]=s[he],V),{}):s),t.complete())}}))}})}typeof window<"u"&&window;let r5=(()=>{class n{constructor(t,o){this._renderer=t,this._elementRef=o,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,o){this._renderer.setProperty(this._elementRef.nativeElement,t,o)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(qe(Ea),qe(Zi))},n.\u0275dir=Yn({type:n}),n})(),al=(()=>{class n extends r5{}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,features:[Yr]}),n})();const aa=new Fn("NgValueAccessor"),hL={provide:aa,useExisting:Nt(()=>ca),multi:!0};let ca=(()=>{class n extends al{writeValue(t){this.setProperty("checked",t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){1&t&&Xe("change",function(l){return o.onChange(l.target.checked)})("blur",function(){return o.onTouched()})},features:[lo([hL]),Yr]}),n})();const pL={provide:aa,useExisting:Nt(()=>Nr),multi:!0},AL=new Fn("CompositionEventMode");let Nr=(()=>{class n extends r5{constructor(t,o,s){super(t,o),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function gL(){const n=Ma()?Ma().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(qe(Ea),qe(Zi),qe(AL,8))},n.\u0275dir=Yn({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,o){1&t&&Xe("input",function(l){return o._handleInput(l.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(l){return o._compositionEnd(l.target.value)})},features:[lo([pL]),Yr]}),n})();const mL=!1;function Ac(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}const mi=new Fn("NgValidators"),mc=new Fn("NgAsyncValidators");function zh(n){return null}function h5(n){return null!=n}function p5(n){const e=Qd(n)?ve(n):n;if(mL&&!uA(e)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new $e(-1101,t)}return e}function g5(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function A5(n,e){return e.map(t=>t(n))}function m5(n){return n.map(e=>function bL(n){return!n.validate}(e)?e:t=>e.validate(t))}function T1(n){return null!=n?function y5(n){if(!n)return null;const e=n.filter(h5);return 0==e.length?null:function(t){return g5(A5(t,e))}}(m5(n)):null}function k1(n){return null!=n?function b5(n){if(!n)return null;const e=n.filter(h5);return 0==e.length?null:function(t){return function fL(...n){if(1===n.length){const e=n[0];if(f(e))return Qh(e,null);if(C(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Qh(t.map(o=>e[o]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Qh(n=1===n.length&&f(n[0])?n[0]:n,null).pipe(B(t=>e(...t)))}return Qh(n,null)}(A5(t,e).map(p5)).pipe(B(g5))}}(m5(n)):null}function v5(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function D1(n){return n?Array.isArray(n)?n:[n]:[]}function Kh(n,e){return Array.isArray(n)?n.includes(e):n===e}function _5(n,e){const t=D1(e);return D1(n).forEach(s=>{Kh(t,s)||t.push(s)}),t}function I5(n,e){return D1(e).filter(t=>!Kh(n,t))}class x5{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=T1(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=k1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Ei extends x5{get formDirective(){return null}get path(){return null}}class yc extends x5{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class E5{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Sr=(()=>{class n extends E5{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(qe(yc,2))},n.\u0275dir=Yn({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){2&t&&ch("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Yr]}),n})();const gf="VALID",Wh="INVALID",mu="PENDING",Af="DISABLED";function $h(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class B5{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===gf}get invalid(){return this.status===Wh}get pending(){return this.status==mu}get disabled(){return this.status===Af}get enabled(){return this.status!==Af}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(_5(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(_5(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(I5(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(I5(e,this._rawAsyncValidators))}hasValidator(e){return Kh(this._rawValidators,e)}hasAsyncValidator(e){return Kh(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=mu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Af,this.errors=null,this._forEachChild(o=>{o.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=gf,this._forEachChild(o=>{o.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gf||this.status===mu)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Af:gf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=mu,this._hasOwnPendingAsyncValidator=!0;const t=p5(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((o,s)=>o&&o._find(s),this)}getError(e,t){const o=t?this.get(t):this;return o&&o.errors?o.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new To,this.statusChanges=new To}_calculateStatus(){return this._allControlsDisabled()?Af:this.errors?Wh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mu)?mu:this._anyControlsHaveStatus(Wh)?Wh:gf}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$h(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function TL(n){return Array.isArray(n)?T1(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function kL(n){return Array.isArray(n)?k1(n):n||null}(this._rawAsyncValidators)}}const yu=new Fn("CallSetDisabledState",{providedIn:"root",factory:()=>Zh}),Zh="always";function mf(n,e,t=Zh){(function R1(n,e){const t=function w5(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(v5(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const o=function C5(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(v5(o,e.asyncValidator)):"function"==typeof o&&n.setAsyncValidators([o]);const s=()=>n.updateValueAndValidity();Xh(e._rawValidators,s),Xh(e._rawAsyncValidators,s)})(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function SL(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&S5(n,e)})}(n,e),function NL(n,e){const t=(o,s)=>{e.valueAccessor.writeValue(o),s&&e.viewToModelUpdate(o)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function ML(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&S5(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function BL(n,e){if(e.valueAccessor.setDisabledState){const t=o=>{e.valueAccessor.setDisabledState(o)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function Xh(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function S5(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function O5(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function P5(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const R5=class extends B5{constructor(e=null,t,o){super(function N1(n){return($h(n)?n.validators:n)||null}(t),function O1(n,e){return($h(e)?e.asyncValidators:n)||null}(o,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$h(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=P5(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){O5(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){O5(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){P5(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},GL={provide:yc,useExisting:Nt(()=>kr)},U5=(()=>Promise.resolve())();let kr=(()=>{class n extends yc{constructor(t,o,s,l,u,p){super(),this._changeDetectorRef=u,this.callSetDisabledState=p,this.control=new R5,this._registered=!1,this.update=new To,this._parent=t,this._setValidators(o),this._setAsyncValidators(s),this.valueAccessor=function U1(n,e){if(!e)return null;let t,o,s;return Array.isArray(e),e.forEach(l=>{l.constructor===Nr?t=l:function RL(n){return Object.getPrototypeOf(n.constructor)===al}(l)?o=l:s=l}),s||o||t||null}(0,l)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const o=t.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function L1(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){mf(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){U5.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const o=t.isDisabled.currentValue,s=0!==o&&function Au(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(o);U5.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function qh(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(qe(Ei,9),qe(mi,10),qe(mc,10),qe(aa,10),qe(pc,8),qe(yu,8))},n.\u0275dir=Yn({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[lo([GL]),Yr,as]}),n})();const HL={provide:aa,useExisting:Nt(()=>bc),multi:!0};let bc=(()=>{class n extends al{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=o=>{t(""==o?null:parseFloat(o))}}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,o){1&t&&Xe("input",function(l){return o.onChange(l.target.value)})("blur",function(){return o.onTouched()})},features:[lo([HL]),Yr]}),n})(),j5=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({}),n})();const JL={provide:aa,useExisting:Nt(()=>Mr),multi:!0};function Y5(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Mr=(()=>{class n extends al{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const s=Y5(this._getOptionId(t),t);this.setProperty("value",s)}registerOnChange(t){this.onChange=o=>{this.value=this._getOptionValue(o),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o),t))return o;return null}_getOptionValue(t){const o=function XL(n){return n.split(":")[0]}(t);return this._optionMap.has(o)?this._optionMap.get(o):t}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,o){1&t&&Xe("change",function(l){return o.onChange(l.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[lo([JL]),Yr]}),n})(),jr=(()=>{class n{constructor(t,o,s){this._element=t,this._renderer=o,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Y5(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(qe(Zi),qe(Ea),qe(Mr,9))},n.\u0275dir=Yn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const eU={provide:aa,useExisting:Nt(()=>Q1),multi:!0};function W5(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Q1=(()=>{class n extends al{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let o;if(this.value=t,Array.isArray(t)){const s=t.map(l=>this._getOptionId(l));o=(l,u)=>{l._setSelected(s.indexOf(u.toString())>-1)}}else o=(s,l)=>{s._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(t){this.onChange=o=>{const s=[],l=o.selectedOptions;if(void 0!==l){const u=l;for(let p=0;p{class n{constructor(t,o,s){this._element=t,this._renderer=o,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(W5(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(W5(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(qe(Zi),qe(Ea),qe(Q1,9))},n.\u0275dir=Yn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function Z5(n){return"number"==typeof n?n:parseFloat(n)}let cl=(()=>{class n{constructor(){this._validator=zh}ngOnChanges(t){if(this.inputName in t){const o=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):zh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Yn({type:n,features:[as]}),n})();const nU={provide:mi,useExisting:Nt(()=>bf),multi:!0};let bf=(()=>{class n extends cl{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>Z5(t),this.createValidator=t=>function s5(n){return e=>{if(Ac(e.value)||Ac(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&oa("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[lo([nU]),Yr]}),n})();const rU={provide:mi,useExisting:Nt(()=>vc),multi:!0};let vc=(()=>{class n extends cl{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>Z5(t),this.createValidator=t=>function i5(n){return e=>{if(Ac(e.value)||Ac(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&tt0),multi:!0};let t0=(()=>{class n extends cl{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function $5(n){return"number"==typeof n?n:parseInt(n,10)}(t),this.createValidator=t=>function d5(n){return e=>function o5(n){return null!=n&&"number"==typeof n.length}(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(t)}}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275dir=Yn({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&oa("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[lo([cU]),Yr]}),n})(),uU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({imports:[j5]}),n})(),fU=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:yu,useValue:t.callSetDisabledState??Zh}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({imports:[uU]}),n})();function Gn(...n){let e=n[n.length-1];return I(e)?(n.pop(),Be(n,e)):Wt(n)}class gs extends L{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Y;return this._value}next(e){super.next(this._value=e)}}const n0=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();class hU extends c{notifyNext(e,t,o,s,l){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class pU extends c{constructor(e,t,o){super(),this.parent=e,this.outerValue=t,this.outerIndex=o,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function gU(n,e,t,o,s=new pU(n,t,o)){if(!s.closed)return e instanceof te?e.subscribe(s):We(e)(s)}const tx={};function nx(...n){let e,t;return I(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&f(n[0])&&(n=n[0]),Wt(n,t).lift(new AU(e))}class AU{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new mU(e,this.resultSelector))}}class mU extends hU{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(tx),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let o=0;on.complete());function r0(n){return n?function bU(n){return new te(e=>n.schedule(()=>e.complete()))}(n):ll}function rx(n){return new te(e=>{let t;try{t=n()}catch(s){return void e.error(s)}return(t?ve(t):r0()).subscribe(e)})}function bu(n,e){return new te(e?t=>e.schedule(vU,0,{error:n,subscriber:t}):t=>t.error(n))}function vU({error:n,subscriber:e}){e.error(n)}function Vs(n,e){return"function"==typeof e?t=>t.pipe(Vs((o,s)=>ve(n(o,s)).pipe(B((l,u)=>e(o,l,s,u))))):t=>t.lift(new wU(n))}class wU{constructor(e){this.project=e}call(e,t){return t.subscribe(new CU(e,this.project))}}class CU extends tt{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const o=this.index++;try{t=this.project(e,o)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const o=new je(this),s=this.destination;s.add(o),this.innerSubscription=bt(e,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ox=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function ul(n){return e=>0===n?r0():e.lift(new _U(n))}class _U{constructor(e){if(this.total=e,this.total<0)throw new ox}call(e,t){return t.subscribe(new IU(e,this.total))}}class IU extends c{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,o=++this.count;o<=t&&(this.destination.next(e),o===t&&(this.destination.complete(),this.unsubscribe()))}}function wc(n,e){return function(o){return o.lift(new EU(n,e))}}class EU{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new TU(e,this.predicate,this.thisArg))}}class TU extends c{constructor(e,t,o){super(e),this.predicate=t,this.thisArg=o,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(o){return void this.destination.error(o)}t&&this.destination.next(e)}}function o0(n=null){return e=>e.lift(new kU(n))}class kU{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new DU(e,this.defaultValue))}}class DU extends c{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ix(n=MU){return e=>e.lift(new BU(n))}class BU{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new SU(e,this.errorFactory))}}class SU extends c{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function MU(){return new n0}function Cc(n,e){const t=arguments.length>=2;return o=>o.pipe(n?wc((s,l)=>n(s,l,o)):P,ul(1),t?o0(e):ix(()=>new n0))}function dl(n,e){return Ye(n,e,1)}function _c(){}function ii(n,e,t){return function(s){return s.lift(new NU(n,e,t))}}class NU{constructor(e,t,o){this.nextOrObserver=e,this.error=t,this.complete=o}call(e,t){return t.subscribe(new OU(e,this.nextOrObserver,this.error,this.complete))}}class OU extends c{constructor(e,t,o,s){super(e),this._tapNext=_c,this._tapError=_c,this._tapComplete=_c,this._tapError=o||_c,this._tapComplete=s||_c,A(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||_c,this._tapError=t.error||_c,this._tapComplete=t.complete||_c)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function fl(n){return function(t){const o=new PU(n),s=t.lift(o);return o.caught=s}}class PU{constructor(e){this.selector=e}call(e,t){return t.subscribe(new RU(e,this.selector,this.caught))}}class RU extends tt{constructor(e,t,o){super(e),this.selector=t,this.caught=o}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(l){return void super.error(l)}this._unsubscribeAndRecycle();const o=new je(this);this.add(o);const s=bt(t,o);s!==o&&this.add(s)}}}function sx(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(s){return s.lift(new FU(n,e,t))}}class FU{constructor(e,t,o=!1){this.accumulator=e,this.seed=t,this.hasSeed=o}call(e,t){return t.subscribe(new LU(e,this.accumulator,this.seed,this.hasSeed))}}class LU extends c{constructor(e,t,o,s){super(e),this.accumulator=t,this._seed=o,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let o;try{o=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=o,this.destination.next(o)}}function Y1(n){return function(t){return 0===n?r0():t.lift(new UU(n))}}class UU{constructor(e){if(this.total=e,this.total<0)throw new ox}call(e,t){return t.subscribe(new jU(e,this.total))}}class jU extends c{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,o=this.total,s=this.count++;t.length0){const o=this.count>=this.total?this.total:this.count,s=this.ring;for(let l=0;l=2;return o=>o.pipe(n?wc((s,l)=>n(s,l,o)):P,Y1(1),t?o0(e):ix(()=>new n0))}class VU{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new HU(e,this.predicate,this.inclusive))}}class HU extends c{constructor(e,t,o){super(e),this.predicate=t,this.inclusive=o,this.index=0}_next(e){const t=this.destination;let o;try{o=this.predicate(e,this.index++)}catch(s){return void t.error(s)}this.nextOrComplete(e,o)}nextOrComplete(e,t){const o=this.destination;Boolean(t)?o.next(e):(this.inclusive&&o.next(e),o.complete())}}class zU{constructor(e){this.value=e}call(e,t){return t.subscribe(new KU(e,this.value))}}class KU extends c{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function W1(n){return e=>e.lift(new YU(n))}class YU{constructor(e){this.callback=e}call(e,t){return t.subscribe(new WU(e,this.callback))}}class WU extends c{constructor(e,t){super(e),this.add(new k(t))}}const or="primary",vf=Symbol("RouteTitle");class $U{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function vu(n){return new $U(n)}function ZU(n,e,t){const o=t.path.split("/");if(o.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||o.lengtho[l]===s)}return n===e}function lx(n){return Array.prototype.concat.apply([],n)}function ux(n){return n.length>0?n[n.length-1]:null}function si(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Ic(n){return uA(n)?n:Qd(n)?ve(Promise.resolve(n)):Gn(n)}const s0=!1,JU={exact:function hx(n,e,t){if(!hl(n.segments,e.segments)||!a0(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const o in e.children)if(!n.children[o]||!hx(n.children[o],e.children[o],t))return!1;return!0},subset:px},dx={exact:function XU(n,e){return la(n,e)},subset:function ej(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>cx(n[t],e[t]))},ignored:()=>!0};function fx(n,e,t){return JU[t.paths](n.root,e.root,t.matrixParams)&&dx[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function px(n,e,t){return gx(n,e,e.segments,t)}function gx(n,e,t,o){if(n.segments.length>t.length){const s=n.segments.slice(0,t.length);return!(!hl(s,t)||e.hasChildren()||!a0(s,t,o))}if(n.segments.length===t.length){if(!hl(n.segments,t)||!a0(n.segments,t,o))return!1;for(const s in e.children)if(!n.children[s]||!px(n.children[s],e.children[s],o))return!1;return!0}{const s=t.slice(0,n.segments.length),l=t.slice(n.segments.length);return!!(hl(n.segments,s)&&a0(n.segments,s,o)&&n.children[or])&&gx(n.children[or],e,l,o)}}function a0(n,e,t){return e.every((o,s)=>dx[t](n[s].parameters,o.parameters))}class xc{constructor(e=new br([],{}),t={},o=null){this.root=e,this.queryParams=t,this.fragment=o}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vu(this.queryParams)),this._queryParamMap}toString(){return rj.serialize(this)}}class br{constructor(e,t){this.segments=e,this.children=t,this.parent=null,si(t,(o,s)=>o.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return c0(this)}}class wf{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=vu(this.parameters)),this._parameterMap}toString(){return yx(this)}}function hl(n,e){return n.length===e.length&&n.every((t,o)=>t.path===e[o].path)}let Cf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return new $1},providedIn:"root"}),n})();class $1{parse(e){const t=new fj(e);return new xc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${_f(e.root,!0)}`,o=function sj(n){const e=Object.keys(n).map(t=>{const o=n[t];return Array.isArray(o)?o.map(s=>`${l0(t)}=${l0(s)}`).join("&"):`${l0(t)}=${l0(o)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),s="string"==typeof e.fragment?`#${function oj(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${o}${s}`}}const rj=new $1;function c0(n){return n.segments.map(e=>yx(e)).join("/")}function _f(n,e){if(!n.hasChildren())return c0(n);if(e){const t=n.children[or]?_f(n.children[or],!1):"",o=[];return si(n.children,(s,l)=>{l!==or&&o.push(`${l}:${_f(s,!1)}`)}),o.length>0?`${t}(${o.join("//")})`:t}{const t=function nj(n,e){let t=[];return si(n.children,(o,s)=>{s===or&&(t=t.concat(e(o,s)))}),si(n.children,(o,s)=>{s!==or&&(t=t.concat(e(o,s)))}),t}(n,(o,s)=>s===or?[_f(n.children[or],!1)]:[`${s}:${_f(o,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[or]?`${c0(n)}/${t[0]}`:`${c0(n)}/(${t.join("//")})`}}function Ax(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function l0(n){return Ax(n).replace(/%3B/gi,";")}function Z1(n){return Ax(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function u0(n){return decodeURIComponent(n)}function mx(n){return u0(n.replace(/\+/g,"%20"))}function yx(n){return`${Z1(n.path)}${function ij(n){return Object.keys(n).map(e=>`;${Z1(e)}=${Z1(n[e])}`).join("")}(n.parameters)}`}const aj=/^[^\/()?;=#]+/;function d0(n){const e=n.match(aj);return e?e[0]:""}const cj=/^[^=?&#]+/,uj=/^[^&#]+/;class fj{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new br([],{}):new br([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(o[or]=new br(e,t)),o}parseSegment(){const e=d0(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new $e(4009,s0);return this.capture(e),new wf(u0(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=d0(this.remaining);if(!t)return;this.capture(t);let o="";if(this.consumeOptional("=")){const s=d0(this.remaining);s&&(o=s,this.capture(o))}e[u0(t)]=u0(o)}parseQueryParam(e){const t=function lj(n){const e=n.match(cj);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let o="";if(this.consumeOptional("=")){const u=function dj(n){const e=n.match(uj);return e?e[0]:""}(this.remaining);u&&(o=u,this.capture(o))}const s=mx(t),l=mx(o);if(e.hasOwnProperty(s)){let u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const o=d0(this.remaining),s=this.remaining[o.length];if("/"!==s&&")"!==s&&";"!==s)throw new $e(4010,s0);let l;o.indexOf(":")>-1?(l=o.slice(0,o.indexOf(":")),this.capture(l),this.capture(":")):e&&(l=or);const u=this.parseChildren();t[l]=1===Object.keys(u).length?u[or]:new br([],u),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new $e(4011,s0)}}function q1(n){return n.segments.length>0?new br([],{[or]:n}):n}function f0(n){const e={};for(const o of Object.keys(n.children)){const l=f0(n.children[o]);(l.segments.length>0||l.hasChildren())&&(e[o]=l)}return function hj(n){if(1===n.numberOfChildren&&n.children[or]){const e=n.children[or];return new br(n.segments.concat(e.segments),e.children)}return n}(new br(n.segments,e))}function pl(n){return n instanceof xc}const J1=!1;function pj(n,e,t,o,s){if(0===t.length)return wu(e.root,e.root,e.root,o,s);const l=function _x(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Cx(!0,0,n);let e=0,t=!1;const o=n.reduce((s,l,u)=>{if("object"==typeof l&&null!=l){if(l.outlets){const p={};return si(l.outlets,(w,S)=>{p[S]="string"==typeof w?w.split("/"):w}),[...s,{outlets:p}]}if(l.segmentPath)return[...s,l.segmentPath]}return"string"!=typeof l?[...s,l]:0===u?(l.split("/").forEach((p,w)=>{0==w&&"."===p||(0==w&&""===p?t=!0:".."===p?e++:""!=p&&s.push(p))}),s):[...s,l]},[]);return new Cx(t,e,o)}(t);return l.toRoot()?wu(e.root,e.root,new br([],{}),o,s):function u(w){const S=function Aj(n,e,t,o){if(n.isAbsolute)return new Cu(e.root,!0,0);if(-1===o)return new Cu(t,t===e.root,0);return function Ix(n,e,t){let o=n,s=e,l=t;for(;l>s;){if(l-=s,o=o.parent,!o)throw new $e(4005,J1&&"Invalid number of '../'");s=o.segments.length}return new Cu(o,!1,s-l)}(t,o+(If(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,e,n.snapshot?._urlSegment,w),V=S.processChildren?_u(S.segmentGroup,S.index,l.commands):X1(S.segmentGroup,S.index,l.commands);return wu(e.root,S.segmentGroup,V,o,s)}(n.snapshot?._lastPathIndex)}function If(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function xf(n){return"object"==typeof n&&null!=n&&n.outlets}function wu(n,e,t,o,s){let u,l={};o&&si(o,(w,S)=>{l[S]=Array.isArray(w)?w.map(V=>`${V}`):`${w}`}),u=n===e?t:wx(n,e,t);const p=q1(f0(u));return new xc(p,l,s)}function wx(n,e,t){const o={};return si(n.children,(s,l)=>{o[l]=s===e?t:wx(s,e,t)}),new br(n.segments,o)}class Cx{constructor(e,t,o){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=o,e&&o.length>0&&If(o[0]))throw new $e(4003,J1&&"Root segment cannot have matrix parameters");const s=o.find(xf);if(s&&s!==ux(o))throw new $e(4004,J1&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cu{constructor(e,t,o){this.segmentGroup=e,this.processChildren=t,this.index=o}}function X1(n,e,t){if(n||(n=new br([],{})),0===n.segments.length&&n.hasChildren())return _u(n,e,t);const o=function yj(n,e,t){let o=0,s=e;const l={match:!1,pathIndex:0,commandIndex:0};for(;s=t.length)return l;const u=n.segments[s],p=t[o];if(xf(p))break;const w=`${p}`,S=o0&&void 0===w)break;if(w&&S&&"object"==typeof S&&void 0===S.outlets){if(!Ex(w,S,u))return l;o+=2}else{if(!Ex(w,{},u))return l;o++}s++}return{match:!0,pathIndex:s,commandIndex:o}}(n,e,t),s=t.slice(o.commandIndex);if(o.match&&o.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(s[u]=X1(n.children[u],e,l))}),si(n.children,(l,u)=>{void 0===o[u]&&(s[u]=l)}),new br(n.segments,s)}}function em(n,e,t){const o=n.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[o]=em(new br([],{}),0,t))}),e}function xx(n){const e={};return si(n,(t,o)=>e[o]=`${t}`),e}function Ex(n,e,t){return n==t.path&&la(e,t.parameters)}const Ef="imperative";class ua{constructor(e,t){this.id=e,this.url=t}}class tm extends ua{constructor(e,t,o="imperative",s=null){super(e,t),this.type=0,this.navigationTrigger=o,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gl extends ua{constructor(e,t,o){super(e,t),this.urlAfterRedirects=o,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class h0 extends ua{constructor(e,t,o,s){super(e,t),this.reason=o,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class p0 extends ua{constructor(e,t,o,s){super(e,t),this.reason=o,this.code=s,this.type=16}}class nm extends ua{constructor(e,t,o,s){super(e,t),this.error=o,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vj extends ua{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wj extends ua{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cj extends ua{constructor(e,t,o,s,l){super(e,t),this.urlAfterRedirects=o,this.state=s,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _j extends ua{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ij extends ua{constructor(e,t,o,s){super(e,t),this.urlAfterRedirects=o,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xj{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ej{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Tj{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kj{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dj{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bj{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tx{constructor(e,t,o){this.routerEvent=e,this.position=t,this.anchor=o,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Nj=(()=>{class n{createUrlTree(t,o,s,l,u,p){return pj(t||o.root,s,l,u,p)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})(),Pj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(e){return Nj.\u0275fac(e)},providedIn:"root"}),n})();class kx{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=rm(e,this._root);return t?t.children.map(o=>o.value):[]}firstChild(e){const t=rm(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=om(e,this._root);return t.length<2?[]:t[t.length-2].children.map(s=>s.value).filter(s=>s!==e)}pathFromRoot(e){return om(e,this._root).map(t=>t.value)}}function rm(n,e){if(n===e.value)return e;for(const t of e.children){const o=rm(n,t);if(o)return o}return null}function om(n,e){if(n===e.value)return[e];for(const t of e.children){const o=om(n,t);if(o.length)return o.unshift(e),o}return[]}class Pa{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Iu(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class Dx extends kx{constructor(e,t){super(e),this.snapshot=t,im(this,e)}toString(){return this.snapshot.toString()}}function Bx(n,e){const t=function Rj(n,e){const u=new g0([],{},{},"",{},or,e,null,n.root,-1,{});return new Mx("",new Pa(u,[]))}(n,e),o=new gs([new wf("",{})]),s=new gs({}),l=new gs({}),u=new gs({}),p=new gs(""),w=new xu(o,s,u,p,l,or,e,t.root);return w.snapshot=t.root,new Dx(new Pa(w,[]),t)}class xu{constructor(e,t,o,s,l,u,p,w){this.url=e,this.params=t,this.queryParams=o,this.fragment=s,this.data=l,this.outlet=u,this.component=p,this.title=this.data?.pipe(B(S=>S[vf]))??Gn(void 0),this._futureSnapshot=w}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(B(e=>vu(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>vu(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Sx(n,e="emptyOnly"){const t=n.pathFromRoot;let o=0;if("always"!==e)for(o=t.length-1;o>=1;){const s=t[o],l=t[o-1];if(s.routeConfig&&""===s.routeConfig.path)o--;else{if(l.component)break;o--}}return function Fj(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(o))}class g0{get title(){return this.data?.[vf]}constructor(e,t,o,s,l,u,p,w,S,V,J){this.url=e,this.params=t,this.queryParams=o,this.fragment=s,this.data=l,this.outlet=u,this.component=p,this.routeConfig=w,this._urlSegment=S,this._lastPathIndex=V,this._resolve=J}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=vu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(o=>o.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mx extends kx{constructor(e,t){super(t),this.url=e,im(this,t)}toString(){return Nx(this._root)}}function im(n,e){e.value._routerState=n,e.children.forEach(t=>im(n,t))}function Nx(n){const e=n.children.length>0?` { ${n.children.map(Nx).join(", ")} } `:"";return`${n.value}${e}`}function sm(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,la(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),la(e.params,t.params)||n.params.next(t.params),function qU(n,e){if(n.length!==e.length)return!1;for(let t=0;tla(t.parameters,e[o].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||am(n.parent,e.parent))}function Tf(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const o=t.value;o._futureSnapshot=e.value;const s=function Uj(n,e,t){return e.children.map(o=>{for(const s of t.children)if(n.shouldReuseRoute(o.value,s.value.snapshot))return Tf(n,o,s);return Tf(n,o)})}(n,e,t);return new Pa(o,s)}{if(n.shouldAttach(e.value)){const l=n.retrieve(e.value);if(null!==l){const u=l.route;return u.value._futureSnapshot=e.value,u.children=e.children.map(p=>Tf(n,p)),u}}const o=function jj(n){return new xu(new gs(n.url),new gs(n.params),new gs(n.queryParams),new gs(n.fragment),new gs(n.data),n.outlet,n.component,n)}(e.value),s=e.children.map(l=>Tf(n,l));return new Pa(o,s)}}const cm="ngNavigationCancelingError";function Ox(n,e){const{redirectTo:t,navigationBehaviorOptions:o}=pl(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,s=Px(!1,0,e);return s.url=t,s.navigationBehaviorOptions=o,s}function Px(n,e,t){const o=new Error("NavigationCancelingError: "+(n||""));return o[cm]=!0,o.cancellationCode=e,t&&(o.url=t),o}function Rx(n){return Fx(n)&&pl(n.url)}function Fx(n){return n&&n[cm]}class Gj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new kf,this.attachRef=null}}let kf=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,o){const s=this.getOrCreateContext(t);s.outlet=o,this.contexts.set(t,s)}onChildOutletDestroyed(t){const o=this.getContext(t);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let o=this.getContext(t);return o||(o=new Gj,this.contexts.set(t,o)),o}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A0=!1;let lm=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=or,this.activateEvents=new To,this.deactivateEvents=new To,this.attachEvents=new To,this.detachEvents=new To,this.parentContexts=_r(kf),this.location=_r(Ji),this.changeDetector=_r(pc),this.environmentInjector=_r(xa)}ngOnChanges(t){if(t.name){const{firstChange:o,previousValue:s}=t.name;if(o)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new $e(4012,A0);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new $e(4012,A0);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new $e(4012,A0);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,o){this.activated=t,this._activatedRoute=o,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,o){if(this.isActivated)throw new $e(4013,A0);this._activatedRoute=t;const s=this.location,u=t.snapshot.component,p=this.parentContexts.getOrCreateContext(this.name).children,w=new Vj(t,p,s.injector);if(o&&function Hj(n){return!!n.resolveComponentFactory}(o)){const S=o.resolveComponentFactory(u);this.activated=s.createComponent(S,s.length,w)}else this.activated=s.createComponent(u,{index:s.length,injector:w,environmentInjector:o??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Yn({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[as]}),n})();class Vj{constructor(e,t,o){this.route=e,this.childContexts=t,this.parent=o}get(e,t){return e===xu?this.route:e===kf?this.childContexts:this.parent.get(e,t)}}let um=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=lr({type:n,selectors:[["ng-component"]],standalone:!0,features:[KC],decls:1,vars:0,template:function(t,o){1&t&&zo(0,"router-outlet")},dependencies:[lm],encapsulation:2}),n})();function Lx(n,e){return n.providers&&!n._injector&&(n._injector=ph(n.providers,e,`Route: ${n.path}`)),n._injector??e}function fm(n){const e=n.children&&n.children.map(fm),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==or&&(t.component=um),t}function As(n){return n.outlet||or}function Ux(n,e){const t=n.filter(o=>As(o)===e);return t.push(...n.filter(o=>As(o)!==e)),t}function Df(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class Wj{constructor(e,t,o,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=o,this.forwardEvent=s}activate(e){const t=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,o,e),sm(this.futureState.root),this.activateChildRoutes(t,o,e)}deactivateChildRoutes(e,t,o){const s=Iu(t);e.children.forEach(l=>{const u=l.value.outlet;this.deactivateRoutes(l,s[u],o),delete s[u]}),si(s,(l,u)=>{this.deactivateRouteAndItsChildren(l,o)})}deactivateRoutes(e,t,o){const s=e.value,l=t?t.value:null;if(s===l)if(s.component){const u=o.getContext(s.outlet);u&&this.deactivateChildRoutes(e,t,u.children)}else this.deactivateChildRoutes(e,t,o);else l&&this.deactivateRouteAndItsChildren(t,o)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const o=t.getContext(e.value.outlet),s=o&&e.value.component?o.children:t,l=Iu(e);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);if(o&&o.outlet){const u=o.outlet.detach(),p=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:u,route:e,contexts:p})}}deactivateRouteAndOutlet(e,t){const o=t.getContext(e.value.outlet),s=o&&e.value.component?o.children:t,l=Iu(e);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);o&&(o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated()),o.attachRef=null,o.resolver=null,o.route=null)}activateChildRoutes(e,t,o){const s=Iu(t);e.children.forEach(l=>{this.activateRoutes(l,s[l.value.outlet],o),this.forwardEvent(new Bj(l.value.snapshot))}),e.children.length&&this.forwardEvent(new kj(e.value.snapshot))}activateRoutes(e,t,o){const s=e.value,l=t?t.value:null;if(sm(s),s===l)if(s.component){const u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,u.children)}else this.activateChildRoutes(e,t,o);else if(s.component){const u=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const p=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),u.children.onOutletReAttached(p.contexts),u.attachRef=p.componentRef,u.route=p.route.value,u.outlet&&u.outlet.attach(p.componentRef,p.route.value),sm(p.route.value),this.activateChildRoutes(e,null,u.children)}else{const p=Df(s.snapshot),w=p?.get(us)??null;u.attachRef=null,u.route=s,u.resolver=w,u.injector=p,u.outlet&&u.outlet.activateWith(s,u.injector),this.activateChildRoutes(e,null,u.children)}}else this.activateChildRoutes(e,null,o)}}class jx{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class m0{constructor(e,t){this.component=e,this.route=t}}function $j(n,e,t){const o=n._root;return Bf(o,e?e._root:null,t,[o.value])}function Eu(n,e){const t=Symbol(),o=e.get(n,t);return o===t?"function"!=typeof n||function se(n){return null!==Mt(n)}(n)?e.get(n):n:o}function Bf(n,e,t,o,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=Iu(e);return n.children.forEach(u=>{(function qj(n,e,t,o,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,u=e?e.value:null,p=t?t.getContext(n.value.outlet):null;if(u&&l.routeConfig===u.routeConfig){const w=function Jj(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!hl(n.url,e.url);case"pathParamsOrQueryParamsChange":return!hl(n.url,e.url)||!la(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!am(n,e)||!la(n.queryParams,e.queryParams);default:return!am(n,e)}}(u,l,l.routeConfig.runGuardsAndResolvers);w?s.canActivateChecks.push(new jx(o)):(l.data=u.data,l._resolvedData=u._resolvedData),Bf(n,e,l.component?p?p.children:null:t,o,s),w&&p&&p.outlet&&p.outlet.isActivated&&s.canDeactivateChecks.push(new m0(p.outlet.component,u))}else u&&Sf(e,p,s),s.canActivateChecks.push(new jx(o)),Bf(n,null,l.component?p?p.children:null:t,o,s)})(u,l[u.value.outlet],t,o.concat([u.value]),s),delete l[u.value.outlet]}),si(l,(u,p)=>Sf(u,t.getContext(p),s)),s}function Sf(n,e,t){const o=Iu(n),s=n.value;si(o,(l,u)=>{Sf(l,s.component?e?e.children.getContext(u):null:e,t)}),t.canDeactivateChecks.push(new m0(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function Mf(n){return"function"==typeof n}function hm(n){return n instanceof n0||"EmptyError"===n?.name}const y0=Symbol("INITIAL_VALUE");function Tu(){return Vs(n=>nx(n.map(e=>e.pipe(ul(1),function xU(...n){const e=n[n.length-1];return I(e)?(n.pop(),t=>K1(n,t,e)):t=>K1(n,t)}(y0)))).pipe(B(e=>{for(const t of e)if(!0!==t){if(t===y0)return y0;if(!1===t||t instanceof xc)return t}return!0}),wc(e=>e!==y0),ul(1)))}function Gx(n){return function U(...n){return X(n)}(ii(e=>{if(pl(e))throw Ox(0,e)}),B(e=>!0===e))}const pm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vx(n,e,t,o,s){const l=gm(n,e,t);return l.matched?function gG(n,e,t,o){const s=e.canMatch;return s&&0!==s.length?Gn(s.map(u=>{const p=Eu(u,n);return Ic(function oG(n){return n&&Mf(n.canMatch)}(p)?p.canMatch(e,t):n.runInContext(()=>p(e,t)))})).pipe(Tu(),Gx()):Gn(!0)}(o=Lx(e,o),e,t).pipe(B(u=>!0===u?l:{...pm})):Gn(l)}function gm(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...pm}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const s=(e.matcher||ZU)(t,n,e);if(!s)return{...pm};const l={};si(s.posParams,(p,w)=>{l[w]=p.path});const u=s.consumed.length>0?{...l,...s.consumed[s.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:s.consumed,remainingSegments:t.slice(s.consumed.length),parameters:u,positionalParamSegments:s.posParams??{}}}function b0(n,e,t,o){if(t.length>0&&function yG(n,e,t){return t.some(o=>v0(n,e,o)&&As(o)!==or)}(n,t,o)){const l=new br(e,function mG(n,e,t,o){const s={};s[or]=o,o._sourceSegment=n,o._segmentIndexShift=e.length;for(const l of t)if(""===l.path&&As(l)!==or){const u=new br([],{});u._sourceSegment=n,u._segmentIndexShift=e.length,s[As(l)]=u}return s}(n,e,o,new br(t,n.children)));return l._sourceSegment=n,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:[]}}if(0===t.length&&function bG(n,e,t){return t.some(o=>v0(n,e,o))}(n,t,o)){const l=new br(n.segments,function AG(n,e,t,o,s){const l={};for(const u of o)if(v0(n,t,u)&&!s[As(u)]){const p=new br([],{});p._sourceSegment=n,p._segmentIndexShift=e.length,l[As(u)]=p}return{...s,...l}}(n,e,t,o,n.children));return l._sourceSegment=n,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:t}}const s=new br(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}function v0(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function Hx(n,e,t,o){return!!(As(n)===o||o!==or&&v0(e,t,n))&&("**"===n.path||gm(e,n,t).matched)}function Qx(n,e,t){return 0===e.length&&!n.children[t]}const w0=!1;class C0{constructor(e){this.segmentGroup=e||null}}class zx{constructor(e){this.urlTree=e}}function Nf(n){return bu(new C0(n))}function Kx(n){return bu(new zx(n))}function vG(n){return bu(new $e(4e3,w0&&`Only absolute redirects can have named outlets. redirectTo: '${n}'`))}class _G{constructor(e,t,o,s,l){this.injector=e,this.configLoader=t,this.urlSerializer=o,this.urlTree=s,this.config=l,this.allowRedirects=!0}apply(){const e=b0(this.urlTree.root,[],[],this.config).segmentGroup,t=new br(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,or).pipe(B(l=>this.createUrlTree(f0(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe(fl(l=>{if(l instanceof zx)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof C0?this.noMatchError(l):l}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,or).pipe(B(s=>this.createUrlTree(f0(s),e.queryParams,e.fragment))).pipe(fl(s=>{throw s instanceof C0?this.noMatchError(s):s}))}noMatchError(e){return new $e(4002,w0&&`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,o){const s=q1(e);return new xc(s,t,o)}expandSegmentGroup(e,t,o,s){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,t,o).pipe(B(l=>new br([],l))):this.expandSegment(e,o,t,o.segments,s,!0)}expandChildren(e,t,o){const s=[];for(const l of Object.keys(o.children))"primary"===l?s.unshift(l):s.push(l);return ve(s).pipe(dl(l=>{const u=o.children[l],p=Ux(t,l);return this.expandSegmentGroup(e,p,u,l).pipe(B(w=>({segment:w,outlet:l})))}),sx((l,u)=>(l[u.outlet]=u.segment,l),{}),ax())}expandSegment(e,t,o,s,l,u){return ve(o).pipe(dl(p=>this.expandSegmentAgainstRoute(e,t,o,p,s,l,u).pipe(fl(S=>{if(S instanceof C0)return Gn(null);throw S}))),Cc(p=>!!p),fl((p,w)=>{if(hm(p))return Qx(t,s,l)?Gn(new br([],{})):Nf(t);throw p}))}expandSegmentAgainstRoute(e,t,o,s,l,u,p){return Hx(s,t,l,u)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,l,u):p&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u):Nf(t):Nf(t)}expandSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,o,s,u):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,o,s){const l=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?Kx(l):this.lineralizeSegments(o,l).pipe(Ye(u=>{const p=new br(u,{});return this.expandSegment(e,p,t,u,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,o,s,l,u){const{matched:p,consumedSegments:w,remainingSegments:S,positionalParamSegments:V}=gm(t,s,l);if(!p)return Nf(t);const J=this.applyRedirectCommands(w,s.redirectTo,V);return s.redirectTo.startsWith("/")?Kx(J):this.lineralizeSegments(s,J).pipe(Ye(he=>this.expandSegment(e,t,o,he.concat(S),u,!1)))}matchSegmentAgainstRoute(e,t,o,s,l){return"**"===o.path?(e=Lx(o,e),o.loadChildren?(o._loadedRoutes?Gn({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe(B(p=>(o._loadedRoutes=p.routes,o._loadedInjector=p.injector,new br(s,{})))):Gn(new br(s,{}))):Vx(t,o,s,e).pipe(Vs(({matched:u,consumedSegments:p,remainingSegments:w})=>u?this.getChildConfig(e=o._injector??e,o,s).pipe(Ye(V=>{const J=V.injector??e,he=V.routes,{segmentGroup:xe,slicedSegments:Ee}=b0(t,p,w,he),Le=new br(xe.segments,xe.children);if(0===Ee.length&&Le.hasChildren())return this.expandChildren(J,he,Le).pipe(B(gt=>new br(p,gt)));if(0===he.length&&0===Ee.length)return Gn(new br(p,{}));const ut=As(o)===l;return this.expandSegment(J,Le,he,Ee,ut?or:l,!0).pipe(B(it=>new br(p.concat(it.segments),it.children)))})):Nf(t)))}getChildConfig(e,t,o){return t.children?Gn({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?Gn({routes:t._loadedRoutes,injector:t._loadedInjector}):function pG(n,e,t,o){const s=e.canLoad;return void 0===s||0===s.length?Gn(!0):Gn(s.map(u=>{const p=Eu(u,n);return Ic(function eG(n){return n&&Mf(n.canLoad)}(p)?p.canLoad(e,t):n.runInContext(()=>p(e,t)))})).pipe(Tu(),Gx())}(e,t,o).pipe(Ye(s=>s?this.configLoader.loadChildren(e,t).pipe(ii(l=>{t._loadedRoutes=l.routes,t._loadedInjector=l.injector})):function wG(n){return bu(Px(w0&&`Cannot load children because the guard of the route "path: '${n.path}'" returned false`,3))}(t))):Gn({routes:[],injector:e})}lineralizeSegments(e,t){let o=[],s=t.root;for(;;){if(o=o.concat(s.segments),0===s.numberOfChildren)return Gn(o);if(s.numberOfChildren>1||!s.children[or])return vG(e.redirectTo);s=s.children[or]}}applyRedirectCommands(e,t,o){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,o)}applyRedirectCreateUrlTree(e,t,o,s){const l=this.createSegmentGroup(e,t.root,o,s);return new xc(l,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const o={};return si(e,(s,l)=>{if("string"==typeof s&&s.startsWith(":")){const p=s.substring(1);o[l]=t[p]}else o[l]=s}),o}createSegmentGroup(e,t,o,s){const l=this.createSegments(e,t.segments,o,s);let u={};return si(t.children,(p,w)=>{u[w]=this.createSegmentGroup(e,p,o,s)}),new br(l,u)}createSegments(e,t,o,s){return t.map(l=>l.path.startsWith(":")?this.findPosParam(e,l,s):this.findOrReturn(l,o))}findPosParam(e,t,o){const s=o[t.path.substring(1)];if(!s)throw new $e(4001,w0&&`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let o=0;for(const s of t){if(s.path===e.path)return t.splice(o),s;o++}return e}}class xG{}class kG{constructor(e,t,o,s,l,u,p){this.injector=e,this.rootComponentType=t,this.config=o,this.urlTree=s,this.url=l,this.paramsInheritanceStrategy=u,this.urlSerializer=p}recognize(){const e=b0(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,or).pipe(B(t=>{if(null===t)return null;const o=new g0([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},or,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Pa(o,t),l=new Mx(this.url,s);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(e){const t=e.value,o=Sx(t,this.paramsInheritanceStrategy);t.params=Object.freeze(o.params),t.data=Object.freeze(o.data),e.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(e,t,o,s){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,t,o):this.processSegment(e,t,o,o.segments,s)}processChildren(e,t,o){return ve(Object.keys(o.children)).pipe(dl(s=>{const l=o.children[s],u=Ux(t,s);return this.processSegmentGroup(e,u,l,s)}),sx((s,l)=>s&&l?(s.push(...l),s):null),function GU(n,e=!1){return t=>t.lift(new VU(n,e))}(s=>null!==s),o0(null),ax(),B(s=>{if(null===s)return null;const l=Wx(s);return function DG(n){n.sort((e,t)=>e.value.outlet===or?-1:t.value.outlet===or?1:e.value.outlet.localeCompare(t.value.outlet))}(l),l}))}processSegment(e,t,o,s,l){return ve(t).pipe(dl(u=>this.processSegmentAgainstRoute(u._injector??e,u,o,s,l)),Cc(u=>!!u),fl(u=>{if(hm(u))return Qx(o,s,l)?Gn([]):Gn(null);throw u}))}processSegmentAgainstRoute(e,t,o,s,l){if(t.redirectTo||!Hx(t,o,s,l))return Gn(null);let u;if("**"===t.path){const p=s.length>0?ux(s).parameters:{},w=Zx(o)+s.length;u=Gn({snapshot:new g0(s,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qx(t),As(t),t.component??t._loadedComponent??null,t,$x(o),w,Jx(t)),consumedSegments:[],remainingSegments:[]})}else u=Vx(o,t,s,e).pipe(B(({matched:p,consumedSegments:w,remainingSegments:S,parameters:V})=>{if(!p)return null;const J=Zx(o)+w.length;return{snapshot:new g0(w,V,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qx(t),As(t),t.component??t._loadedComponent??null,t,$x(o),J,Jx(t)),consumedSegments:w,remainingSegments:S}}));return u.pipe(Vs(p=>{if(null===p)return Gn(null);const{snapshot:w,consumedSegments:S,remainingSegments:V}=p;e=t._injector??e;const J=t._loadedInjector??e,he=function BG(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:xe,slicedSegments:Ee}=b0(o,S,V,he.filter(ut=>void 0===ut.redirectTo));if(0===Ee.length&&xe.hasChildren())return this.processChildren(J,he,xe).pipe(B(ut=>null===ut?null:[new Pa(w,ut)]));if(0===he.length&&0===Ee.length)return Gn([new Pa(w,[])]);const Le=As(t)===l;return this.processSegment(J,he,xe,Ee,Le?or:l).pipe(B(ut=>null===ut?null:[new Pa(w,ut)]))}))}}function SG(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Wx(n){const e=[],t=new Set;for(const o of n){if(!SG(o)){e.push(o);continue}const s=e.find(l=>o.value.routeConfig===l.value.routeConfig);void 0!==s?(s.children.push(...o.children),t.add(s)):e.push(o)}for(const o of t){const s=Wx(o.children);e.push(new Pa(o.value,s))}return e.filter(o=>!t.has(o))}function $x(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Zx(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function qx(n){return n.data||{}}function Jx(n){return n.resolve||{}}function Xx(n){return"string"==typeof n.title||null===n.title}function Am(n){return Vs(e=>{const t=n(e);return t?ve(t).pipe(B(()=>e)):Gn(e)})}const ku=new Fn("ROUTES");let mm=(()=>{class n{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=_r(F_)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Gn(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const o=Ic(t.loadComponent()).pipe(B(tE),ii(l=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=l}),W1(()=>{this.componentLoaders.delete(t)})),s=new He(o,()=>new L).pipe(ee());return this.componentLoaders.set(t,s),s}loadChildren(t,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return Gn({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);const l=this.loadModuleFactoryOrRoutes(o.loadChildren).pipe(B(p=>{this.onLoadEndListener&&this.onLoadEndListener(o);let w,S,V=!1;Array.isArray(p)?S=p:(w=p.create(t).injector,S=lx(w.get(ku,[],Tt.Self|Tt.Optional)));return{routes:S.map(fm),injector:w}}),W1(()=>{this.childrenLoaders.delete(o)})),u=new He(l,()=>new L).pipe(ee());return this.childrenLoaders.set(o,u),u}loadModuleFactoryOrRoutes(t){return Ic(t()).pipe(B(tE),Ye(o=>o instanceof QC||Array.isArray(o)?Gn(o):ve(this.compiler.compileModuleAsync(o))))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tE(n){return function UG(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let I0=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new L,this.configLoader=_r(mm),this.environmentInjector=_r(xa),this.urlSerializer=_r(Cf),this.rootContexts=_r(kf),this.navigationId=0,this.afterPreactivation=()=>Gn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=s=>this.events.next(new Ej(s)),this.configLoader.onLoadStartListener=s=>this.events.next(new xj(s))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const o=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:o})}setupNavigations(t){return this.transitions=new gs({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ef,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wc(o=>0!==o.id),B(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),Vs(o=>{let s=!1,l=!1;return Gn(o).pipe(ii(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Vs(u=>{const p=t.browserUrlTree.toString(),w=!t.navigated||u.extractedUrl.toString()!==p||p!==t.currentUrlTree.toString();if(!w&&"reload"!==(u.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const V="";return this.events.next(new p0(u.id,t.serializeUrl(o.rawUrl),V,0)),t.rawUrlTree=u.rawUrl,u.resolve(null),ll}if(t.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return nE(u.source)&&(t.browserUrlTree=u.extractedUrl),Gn(u).pipe(Vs(V=>{const J=this.transitions?.getValue();return this.events.next(new tm(V.id,this.urlSerializer.serialize(V.extractedUrl),V.source,V.restoredState)),J!==this.transitions?.getValue()?ll:Promise.resolve(V)}),function IG(n,e,t,o){return Vs(s=>function CG(n,e,t,o,s){return new _G(n,e,t,o,s).apply()}(n,e,t,s.extractedUrl,o).pipe(B(l=>({...s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),ii(V=>{this.currentNavigation={...this.currentNavigation,finalUrl:V.urlAfterRedirects},o.urlAfterRedirects=V.urlAfterRedirects}),function NG(n,e,t,o,s){return Ye(l=>function TG(n,e,t,o,s,l,u="emptyOnly"){return new kG(n,e,t,o,s,u,l).recognize().pipe(Vs(p=>null===p?function EG(n){return new te(e=>e.error(n))}(new xG):Gn(p)))}(n,e,t,l.urlAfterRedirects,o.serialize(l.urlAfterRedirects),o,s).pipe(B(u=>({...l,targetSnapshot:u}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),ii(V=>{if(o.targetSnapshot=V.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!V.extras.skipLocationChange){const he=t.urlHandlingStrategy.merge(V.urlAfterRedirects,V.rawUrl);t.setBrowserUrl(he,V)}t.browserUrlTree=V.urlAfterRedirects}const J=new vj(V.id,this.urlSerializer.serialize(V.extractedUrl),this.urlSerializer.serialize(V.urlAfterRedirects),V.targetSnapshot);this.events.next(J)}));if(w&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:V,extractedUrl:J,source:he,restoredState:xe,extras:Ee}=u,Le=new tm(V,this.urlSerializer.serialize(J),he,xe);this.events.next(Le);const ut=Bx(J,this.rootComponentType).snapshot;return Gn(o={...u,targetSnapshot:ut,urlAfterRedirects:J,extras:{...Ee,skipLocationChange:!1,replaceUrl:!1}})}{const V="";return this.events.next(new p0(u.id,t.serializeUrl(o.extractedUrl),V,1)),t.rawUrlTree=u.rawUrl,u.resolve(null),ll}}),ii(u=>{const p=new wj(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),B(u=>o={...u,guards:$j(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),function sG(n,e){return Ye(t=>{const{targetSnapshot:o,currentSnapshot:s,guards:{canActivateChecks:l,canDeactivateChecks:u}}=t;return 0===u.length&&0===l.length?Gn({...t,guardsResult:!0}):function aG(n,e,t,o){return ve(n).pipe(Ye(s=>function hG(n,e,t,o,s){const l=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return l&&0!==l.length?Gn(l.map(p=>{const w=Df(e)??s,S=Eu(p,w);return Ic(function rG(n){return n&&Mf(n.canDeactivate)}(S)?S.canDeactivate(n,e,t,o):w.runInContext(()=>S(n,e,t,o))).pipe(Cc())})).pipe(Tu()):Gn(!0)}(s.component,s.route,t,e,o)),Cc(s=>!0!==s,!0))}(u,o,s,n).pipe(Ye(p=>p&&function Xj(n){return"boolean"==typeof n}(p)?function cG(n,e,t,o){return ve(e).pipe(dl(s=>K1(function uG(n,e){return null!==n&&e&&e(new Tj(n)),Gn(!0)}(s.route.parent,o),function lG(n,e){return null!==n&&e&&e(new Dj(n)),Gn(!0)}(s.route,o),function fG(n,e,t){const o=e[e.length-1],l=e.slice(0,e.length-1).reverse().map(u=>function Zj(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(u)).filter(u=>null!==u).map(u=>rx(()=>Gn(u.guards.map(w=>{const S=Df(u.node)??t,V=Eu(w,S);return Ic(function nG(n){return n&&Mf(n.canActivateChild)}(V)?V.canActivateChild(o,n):S.runInContext(()=>V(o,n))).pipe(Cc())})).pipe(Tu())));return Gn(l).pipe(Tu())}(n,s.path,t),function dG(n,e,t){const o=e.routeConfig?e.routeConfig.canActivate:null;if(!o||0===o.length)return Gn(!0);const s=o.map(l=>rx(()=>{const u=Df(e)??t,p=Eu(l,u);return Ic(function tG(n){return n&&Mf(n.canActivate)}(p)?p.canActivate(e,n):u.runInContext(()=>p(e,n))).pipe(Cc())}));return Gn(s).pipe(Tu())}(n,s.route,t))),Cc(s=>!0!==s,!0))}(o,l,n,e):Gn(p)),B(p=>({...t,guardsResult:p})))})}(this.environmentInjector,u=>this.events.next(u)),ii(u=>{if(o.guardsResult=u.guardsResult,pl(u.guardsResult))throw Ox(0,u.guardsResult);const p=new Cj(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(p)}),wc(u=>!!u.guardsResult||(t.restoreHistory(u),this.cancelNavigationTransition(u,"",3),!1)),Am(u=>{if(u.guards.canActivateChecks.length)return Gn(u).pipe(ii(p=>{const w=new _j(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}),Vs(p=>{let w=!1;return Gn(p).pipe(function OG(n,e){return Ye(t=>{const{targetSnapshot:o,guards:{canActivateChecks:s}}=t;if(!s.length)return Gn(t);let l=0;return ve(s).pipe(dl(u=>function PG(n,e,t,o){const s=n.routeConfig,l=n._resolve;return void 0!==s?.title&&!Xx(s)&&(l[vf]=s.title),function RG(n,e,t,o){const s=function FG(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===s.length)return Gn({});const l={};return ve(s).pipe(Ye(u=>function LG(n,e,t,o){const s=Df(e)??o,l=Eu(n,s);return Ic(l.resolve?l.resolve(e,t):s.runInContext(()=>l(e,t)))}(n[u],e,t,o).pipe(Cc(),ii(p=>{l[u]=p}))),Y1(1),function QU(n){return e=>e.lift(new zU(n))}(l),fl(u=>hm(u)?ll:bu(u)))}(l,n,e,o).pipe(B(u=>(n._resolvedData=u,n.data=Sx(n,t).resolve,s&&Xx(s)&&(n.data[vf]=s.title),null)))}(u.route,o,n,e)),ii(()=>l++),Y1(1),Ye(u=>l===s.length?Gn(t):ll))})}(t.paramsInheritanceStrategy,this.environmentInjector),ii({next:()=>w=!0,complete:()=>{w||(t.restoreHistory(p),this.cancelNavigationTransition(p,"",2))}}))}),ii(p=>{const w=new Ij(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}))}),Am(u=>{const p=w=>{const S=[];w.routeConfig?.loadComponent&&!w.routeConfig._loadedComponent&&S.push(this.configLoader.loadComponent(w.routeConfig).pipe(ii(V=>{w.component=V}),B(()=>{})));for(const V of w.children)S.push(...p(V));return S};return nx(p(u.targetSnapshot.root)).pipe(o0(),ul(1))}),Am(()=>this.afterPreactivation()),B(u=>{const p=function Lj(n,e,t){const o=Tf(n,e._root,t?t._root:void 0);return new Dx(o,e)}(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return o={...u,targetRouterState:p}}),ii(u=>{t.currentUrlTree=u.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),t.routerState=u.targetRouterState,"deferred"===t.urlUpdateStrategy&&(u.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,u),t.browserUrlTree=u.urlAfterRedirects)}),((n,e,t)=>B(o=>(new Wj(e,o.targetRouterState,o.currentRouterState,t).activate(n),o)))(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u)),ul(1),ii({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new gl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),W1(()=>{s||l||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),fl(u=>{if(l=!0,Fx(u)){Rx(u)||(t.navigated=!0,t.restoreHistory(o,!0));const p=new h0(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode);if(this.events.next(p),Rx(u)){const w=t.urlHandlingStrategy.merge(u.url,t.rawUrlTree),S={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||nE(o.source)};t.scheduleNavigation(w,Ef,null,S,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{t.restoreHistory(o,!0);const p=new nm(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);this.events.next(p);try{o.resolve(t.errorHandler(u))}catch(w){o.reject(w)}}return ll}))}))}cancelNavigationTransition(t,o,s){const l=new h0(t.id,this.urlSerializer.serialize(t.extractedUrl),o,s);this.events.next(l),t.resolve(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nE(n){return n!==Ef}let rE=(()=>{class n{buildTitle(t){let o,s=t.root;for(;void 0!==s;)o=this.getResolvedTitleForRoute(s)??o,s=s.children.find(l=>l.outlet===or);return o}getResolvedTitleForRoute(t){return t.data[vf]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return _r(jG)},providedIn:"root"}),n})(),jG=(()=>{class n extends rE{constructor(t){super(),this.title=t}updateTitle(t){const o=this.buildTitle(t);void 0!==o&&this.title.setTitle(o)}}return n.\u0275fac=function(t){return new(t||n)(Yt(e5))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GG=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return _r(HG)},providedIn:"root"}),n})();class VG{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let HG=(()=>{class n extends VG{}return n.\u0275fac=function(){let e;return function(o){return(e||(e=oi(n)))(o||n)}}(),n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const x0=new Fn("",{providedIn:"root",factory:()=>({})});let zG=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:function(){return _r(KG)},providedIn:"root"}),n})(),KG=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,o){return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function YG(n){throw n}function WG(n,e,t){return e.parse("/")}const $G={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xi=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=_r(nP),this.isNgZoneEnabled=!1,this.options=_r(x0,{optional:!0})||{},this.errorHandler=this.options.errorHandler||YG,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||WG,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=_r(zG),this.routeReuseStrategy=_r(GG),this.urlCreationStrategy=_r(Pj),this.titleStrategy=_r(rE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=lx(_r(ku,{optional:!0})??[]),this.navigationTransitions=_r(I0),this.urlSerializer=_r(Cf),this.location=_r(t1),this.isNgZoneEnabled=_r(bo)instanceof bo&&bo.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xc,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Bx(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId??0},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ef,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const o="popstate"===t.type?"popstate":"hashchange";"popstate"===o&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,o,t.state)},0)}))}navigateToSyncWithBrowser(t,o,s){const l={replaceUrl:!0},u=s?.navigationId?s:null;if(s){const w={...s};delete w.navigationId,delete w.\u0275routerPageId,0!==Object.keys(w).length&&(l.state=w)}const p=this.parseUrl(t);this.scheduleNavigation(p,o,u,l)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(fm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,o={}){const{relativeTo:s,queryParams:l,fragment:u,queryParamsHandling:p,preserveFragment:w}=o,S=w?this.currentUrlTree.fragment:u;let V=null;switch(p){case"merge":V={...this.currentUrlTree.queryParams,...l};break;case"preserve":V=this.currentUrlTree.queryParams;break;default:V=l||null}return null!==V&&(V=this.removeEmptyProps(V)),this.urlCreationStrategy.createUrlTree(s,this.routerState,this.currentUrlTree,t,V,S??null)}navigateByUrl(t,o={skipLocationChange:!1}){const s=pl(t)?t:this.parseUrl(t),l=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(l,Ef,null,o)}navigate(t,o={skipLocationChange:!1}){return function qG(n){for(let e=0;e{const l=t[s];return null!=l&&(o[s]=l),o},{})}scheduleNavigation(t,o,s,l,u){if(this.disposed)return Promise.resolve(!1);let p,w,S,V;return u?(p=u.resolve,w=u.reject,S=u.promise):S=new Promise((J,he)=>{p=J,w=he}),V="computed"===this.canceledNavigationResolution?s&&s.\u0275routerPageId?s.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:V,source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:l,resolve:p,reject:w,promise:S,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),S.catch(J=>Promise.reject(J))}setBrowserUrl(t,o){const s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||o.extras.replaceUrl){const u={...o.extras.state,...this.generateNgRouterState(o.id,this.browserPageId)};this.location.replaceState(s,"",u)}else{const l={...o.extras.state,...this.generateNgRouterState(o.id,o.targetPageId)};this.location.go(s,"",l)}}restoreHistory(t,o=!1){if("computed"===this.canceledNavigationResolution){const l=this.currentPageId-(this.browserPageId??this.currentPageId);0!==l?this.location.historyGo(l):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===l&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,o){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:o}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class oE{}let eV=(()=>{class n{constructor(t,o,s,l,u){this.router=t,this.injector=s,this.preloadingStrategy=l,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe(wc(t=>t instanceof gl),dl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,o){const s=[];for(const l of o){l.providers&&!l._injector&&(l._injector=ph(l.providers,t,`Route: ${l.path}`));const u=l._injector??t,p=l._loadedInjector??u;(l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent)&&s.push(this.preloadConfig(u,l)),(l.children||l._loadedRoutes)&&s.push(this.processRoutes(p,l.children??l._loadedRoutes))}return ve(s).pipe(Qt())}preloadConfig(t,o){return this.preloadingStrategy.preload(o,()=>{let s;s=o.loadChildren&&void 0===o.canLoad?this.loader.loadChildren(t,o):Gn(null);const l=s.pipe(Ye(u=>null===u?Gn(void 0):(o._loadedRoutes=u.routes,o._loadedInjector=u.injector,this.processRoutes(u.injector??t,u.routes))));return o.loadComponent&&!o._loadedComponent?ve([l,this.loader.loadComponent(o)]).pipe(Qt()):l})}}return n.\u0275fac=function(t){return new(t||n)(Yt(Xi),Yt(F_),Yt(xa),Yt(oE),Yt(mm))},n.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vm=new Fn("");let iE=(()=>{class n{constructor(t,o,s,l,u={}){this.urlSerializer=t,this.transitions=o,this.viewportScroller=s,this.zone=l,this.options=u,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},u.scrollPositionRestoration=u.scrollPositionRestoration||"disabled",u.anchorScrolling=u.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof tm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof gl&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Tx&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Tx(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(t){!function Y4(){throw new Error("invalid")}()},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();var es=(()=>((es=es||{})[es.COMPLETE=0]="COMPLETE",es[es.FAILED=1]="FAILED",es[es.REDIRECTING=2]="REDIRECTING",es))();const Du=!1;function Ec(n,e){return{\u0275kind:n,\u0275providers:e}}const wm=new Fn("",{providedIn:"root",factory:()=>!1});function aE(){const n=_r(Fi);return e=>{const t=n.get(Us);if(e!==t.components[0])return;const o=n.get(Xi),s=n.get(cE);1===n.get(Cm)&&o.initialNavigation(),n.get(lE,null,Tt.Optional)?.setUpPreloading(),n.get(vm,null,Tt.Optional)?.init(),o.resetRootComponentType(t.componentTypes[0]),s.closed||(s.next(),s.complete(),s.unsubscribe())}}const cE=new Fn(Du?"bootstrap done indicator":"",{factory:()=>new L}),Cm=new Fn(Du?"initial navigation":"",{providedIn:"root",factory:()=>1});function iV(){let n=[];return n=Du?[{provide:W3,multi:!0,useFactory:()=>{const e=_r(Xi);return()=>e.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function Sj(n){if(!("type"in n))return`Unknown Router Event: ${n.constructor.name}`;switch(n.type){case 14:return`ActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state}, shouldActivate: ${n.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 2:return`NavigationCancel(id: ${n.id}, url: '${n.url}')`;case 16:return`NavigationSkipped(id: ${n.id}, url: '${n.url}')`;case 1:return`NavigationEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${n.id}, url: '${n.url}', error: ${n.error})`;case 0:return`NavigationStart(id: ${n.id}, url: '${n.url}')`;case 6:return`ResolveEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 5:return`ResolveStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 10:return`RouteConfigLoadEnd(path: ${n.route.path})`;case 9:return`RouteConfigLoadStart(path: ${n.route.path})`;case 4:return`RoutesRecognized(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 15:return`Scroll(anchor: '${n.anchor}', position: '${n.position?`${n.position[0]}, ${n.position[1]}`:null}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],Ec(1,n)}const lE=new Fn(Du?"router preloader":"");function sV(n){return Ec(0,[{provide:lE,useExisting:eV},{provide:oE,useExisting:n}])}const Of=!1,uE=new Fn(Of?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),aV=[t1,{provide:Cf,useClass:$1},Xi,kf,{provide:xu,useFactory:function sE(n){return n.routerState.root},deps:[Xi]},mm,Of?{provide:wm,useValue:!0}:[]];function cV(){return new z_("Router",Xi)}let dE=(()=>{class n{constructor(t){}static forRoot(t,o){return{ngModule:n,providers:[aV,Of&&o?.enableTracing?iV().\u0275providers:[],{provide:ku,multi:!0,useValue:t},{provide:uE,useFactory:fV,deps:[[Xi,new Td,new kd]]},{provide:x0,useValue:o||{}},o?.useHash?{provide:sl,useClass:HP}:{provide:sl,useClass:pI},{provide:vm,useFactory:()=>{const n=_r(aF),e=_r(bo),t=_r(x0),o=_r(I0),s=_r(Cf);return t.scrollOffset&&n.setOffset(t.scrollOffset),new iE(s,o,n,e,t)}},o?.preloadingStrategy?sV(o.preloadingStrategy).\u0275providers:[],{provide:z_,multi:!0,useFactory:cV},o?.initialNavigation?hV(o):[],[{provide:fE,useFactory:aE},{provide:Q_,multi:!0,useExisting:fE}]]}}static forChild(t){return{ngModule:n,providers:[{provide:ku,multi:!0,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(Yt(uE,8))},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({imports:[um]}),n})();function fV(n){if(Of&&n)throw new $e(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function hV(n){return["disabled"===n.initialNavigation?Ec(3,[{provide:Ch,multi:!0,useFactory:()=>{const e=_r(Xi);return()=>{e.setUpLocationChangeListener()}}},{provide:Cm,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Ec(2,[{provide:Cm,useValue:0},{provide:Ch,multi:!0,deps:[Fi],useFactory:e=>{const t=e.get(GP,Promise.resolve());return()=>t.then(()=>new Promise(o=>{const s=e.get(Xi),l=e.get(cE);(function tV(n,e){n.events.pipe(wc(t=>t instanceof gl||t instanceof h0||t instanceof nm||t instanceof p0),B(t=>t instanceof gl||t instanceof p0?es.COMPLETE:t instanceof h0&&(0===t.code||1===t.code)?es.REDIRECTING:es.FAILED),wc(t=>t!==es.REDIRECTING),ul(1)).subscribe(()=>{e()})})(s,()=>{o(!0)}),e.get(I0).afterPreactivation=()=>(o(!0),l.closed?Gn(void 0):l),s.initialNavigation()}))}}]).\u0275providers:[]]}const fE=new Fn(Of?"Router Initializer":""),gV=[];let AV=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=vi({type:n});static#n=this.\u0275inj=dt({imports:[dE.forRoot(gV),dE]})}return n})();class mV extends k{constructor(e,t){super()}schedule(e,t=0){return this}}let hE=(()=>{class n{constructor(t,o=n.now){this.SchedulerAction=t,this.now=o}schedule(t,o=0,s){return new this.SchedulerAction(this,t).schedule(s,o)}}return n.now=()=>Date.now(),n})();class Tc extends hE{constructor(e,t=hE.now){super(e,()=>Tc.delegate&&Tc.delegate!==this?Tc.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,o){return Tc.delegate&&Tc.delegate!==this?Tc.delegate.schedule(e,t,o):super.schedule(e,t,o)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let o;this.active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}}const bV=new Tc(class yV extends mV{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,o=0){return setInterval(e.flush.bind(e,this),o)}recycleAsyncId(e,t,o=0){if(null!==o&&this.delay===o&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(e,t);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,o=!1;try{this.work(e)}catch(l){o=!0,s=!!l&&l||new Error(l)}if(o)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,o=t.actions,s=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&o.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}});class Hs{constructor(e,t,o){this.kind=e,this.value=t,this.error=o,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,o){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return o&&o()}}accept(e,t,o){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,o)}toObservable(){switch(this.kind){case"N":return Gn(this.value);case"E":return bu(this.error);case"C":return r0()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new Hs("N",e):Hs.undefinedValueNotification}static createError(e){return new Hs("E",void 0,e)}static createComplete(){return Hs.completeNotification}}Hs.completeNotification=new Hs("C"),Hs.undefinedValueNotification=new Hs("N",void 0);class wV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Im(e,this.delay,this.scheduler))}}class Im extends c{constructor(e,t,o){super(e),this.delay=t,this.scheduler=o,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,o=t.queue,s=e.scheduler,l=e.destination;for(;o.length>0&&o[0].time-s.now()<=0;)o.shift().notification.observe(l);if(o.length>0){const u=Math.max(0,o[0].time-s.now());this.schedule(e,u)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Im.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,o=new CV(t.now()+this.delay,e);this.queue.push(o),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Hs.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Hs.createComplete()),this.unsubscribe()}}class CV{constructor(e,t){this.time=e,this.notification=t}}class pE{}class _V{}const Ra="*";function gE(n,e){return{type:7,name:n,definitions:e,options:{}}}function uo(n,e=null){return{type:4,styles:e,timings:n}}function AE(n,e=null){return{type:2,steps:n,options:e}}function Vt(n){return{type:6,styles:n,offset:null}}function wo(n,e,t){return{type:0,name:n,styles:e,options:t}}function Po(n){return{type:5,steps:n}}function fo(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function IV(n=null){return{type:9,options:n}}function xV(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function mE(n){Promise.resolve().then(n)}class Pf{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){mE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class yE{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,o=0,s=0;const l=this.players.length;0==l?mE(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++t==l&&this._onFinish()}),u.onDestroy(()=>{++o==l&&this._onDestroy()}),u.onStart(()=>{++s==l&&this._onStart()})}),this.totalTime=this.players.reduce((u,p)=>Math.max(u,p.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(o=>{const s=o.totalTime?Math.min(1,t/o.totalTime):1;o.setPosition(s)})}getPosition(){const e=this.players.reduce((t,o)=>null===t||o.totalTime>t.totalTime?o:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}const xm="!";function bE(n){return new $e(3e3,!1)}function sH(){return typeof window<"u"&&typeof window.document<"u"}function Em(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function kc(n){switch(n.length){case 0:return new Pf;case 1:return n[0];default:return new yE(n)}}function vE(n,e,t,o,s=new Map,l=new Map){const u=[],p=[];let w=-1,S=null;if(o.forEach(V=>{const J=V.get("offset"),he=J==w,xe=he&&S||new Map;V.forEach((Ee,Le)=>{let ut=Le,_t=Ee;if("offset"!==Le)switch(ut=e.normalizePropertyName(ut,u),_t){case xm:_t=s.get(Le);break;case Ra:_t=l.get(Le);break;default:_t=e.normalizeStyleValue(Le,ut,_t,u)}xe.set(ut,_t)}),he||p.push(xe),S=xe,w=J}),u.length)throw function WV(n){return new $e(3502,!1)}();return p}function Tm(n,e,t,o){switch(e){case"start":n.onStart(()=>o(t&&km(t,"start",n)));break;case"done":n.onDone(()=>o(t&&km(t,"done",n)));break;case"destroy":n.onDestroy(()=>o(t&&km(t,"destroy",n)))}}function km(n,e,t){const l=Dm(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),u=n._data;return null!=u&&(l._data=u),l}function Dm(n,e,t,o,s="",l=0,u){return{element:n,triggerName:e,fromState:t,toState:o,phaseName:s,totalTime:l,disabled:!!u}}function ts(n,e,t){let o=n.get(e);return o||n.set(e,o=t),o}function wE(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let Bm=(n,e)=>!1,CE=(n,e,t)=>[],_E=null;function Sm(n){const e=n.parentNode||n.host;return e===_E?null:e}(Em()||typeof Element<"u")&&(sH()?(_E=(()=>document.documentElement)(),Bm=(n,e)=>{for(;e;){if(e===n)return!0;e=Sm(e)}return!1}):Bm=(n,e)=>n.contains(e),CE=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const o=n.querySelector(e);return o?[o]:[]});let Al=null,IE=!1;const xE=Bm,EE=CE;let TE=(()=>{class n{validateStyleProperty(t){return function cH(n){Al||(Al=function lH(){return typeof document<"u"?document.body:null}()||{},IE=!!Al.style&&"WebkitAppearance"in Al.style);let e=!0;return Al.style&&!function aH(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Al.style,!e&&IE&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Al.style)),e}(t)}matchesElement(t,o){return!1}containsElement(t,o){return xE(t,o)}getParentElement(t){return Sm(t)}query(t,o,s){return EE(t,o,s)}computeStyle(t,o,s){return s||""}animate(t,o,s,l,u,p=[],w){return new Pf(s,l)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})(),Mm=(()=>{class n{}return n.NOOP=new TE,n})();const uH=1e3,Nm="ng-enter",E0="ng-leave",T0="ng-trigger",k0=".ng-trigger",DE="ng-animating",Om=".ng-animating";function Fa(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pm(parseFloat(e[1]),e[2])}function Pm(n,e){return"s"===e?n*uH:n}function D0(n,e,t){return n.hasOwnProperty("duration")?n:function fH(n,e,t){let s,l=0,u="";if("string"==typeof n){const p=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===p)return e.push(bE()),{duration:0,delay:0,easing:""};s=Pm(parseFloat(p[1]),p[2]);const w=p[3];null!=w&&(l=Pm(parseFloat(w),p[4]));const S=p[5];S&&(u=S)}else s=n;if(!t){let p=!1,w=e.length;s<0&&(e.push(function EV(){return new $e(3100,!1)}()),p=!0),l<0&&(e.push(function TV(){return new $e(3101,!1)}()),p=!0),p&&e.splice(w,0,bE())}return{duration:s,delay:l,easing:u}}(n,e,t)}function Rf(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function BE(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Dc(n,e=new Map,t){if(t)for(let[o,s]of t)e.set(o,s);for(let[o,s]of n)e.set(o,s);return e}function ME(n,e,t){return t?e+":"+t+";":""}function NE(n){let e="";for(let t=0;t{const l=Fm(s);t&&!t.has(s)&&t.set(s,n.style[l]),n.style[l]=o}),Em()&&NE(n))}function ml(n,e){n.style&&(e.forEach((t,o)=>{const s=Fm(o);n.style[s]=""}),Em()&&NE(n))}function Ff(n){return Array.isArray(n)?1==n.length?n[0]:AE(n):n}const Rm=new RegExp("{{\\s*(.+?)\\s*}}","g");function OE(n){let e=[];if("string"==typeof n){let t;for(;t=Rm.exec(n);)e.push(t[1]);Rm.lastIndex=0}return e}function Lf(n,e,t){const o=n.toString(),s=o.replace(Rm,(l,u)=>{let p=e[u];return null==p&&(t.push(function DV(n){return new $e(3003,!1)}()),p=""),p.toString()});return s==o?n:s}function B0(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const gH=/-+([a-z0-9])/g;function Fm(n){return n.replace(gH,(...e)=>e[1].toUpperCase())}function AH(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ns(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function BV(n){return new $e(3004,!1)}()}}function PE(n,e){return window.getComputedStyle(n)[e]}const N0="*";function CH(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(o=>function _H(n,e,t){if(":"==n[0]){const w=function IH(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,o)=>parseFloat(o)>parseFloat(t);case":decrement":return(t,o)=>parseFloat(o) *"}}(n,t);if("function"==typeof w)return void e.push(w);n=w}const o=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return t.push(function HV(n){return new $e(3015,!1)}()),e;const s=o[1],l=o[2],u=o[3];e.push(RE(s,u));"<"==l[0]&&!(s==N0&&u==N0)&&e.push(RE(u,s))}(o,t,e)):t.push(n),t}const O0=new Set(["true","1"]),P0=new Set(["false","0"]);function RE(n,e){const t=O0.has(n)||P0.has(n),o=O0.has(e)||P0.has(e);return(s,l)=>{let u=n==N0||n==s,p=e==N0||e==l;return!u&&t&&"boolean"==typeof s&&(u=s?O0.has(n):P0.has(n)),!p&&o&&"boolean"==typeof l&&(p=l?O0.has(e):P0.has(e)),u&&p}}const xH=new RegExp("s*:selfs*,?","g");function Lm(n,e,t,o){return new EH(n).build(e,t,o)}class EH{constructor(e){this._driver=e}build(e,t,o){const s=new DH(t);return this._resetContextStyleTimingState(s),ns(this,Ff(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let o=t.queryCount=0,s=t.depCount=0;const l=[],u=[];return"@"==e.name.charAt(0)&&t.errors.push(function MV(){return new $e(3006,!1)}()),e.definitions.forEach(p=>{if(this._resetContextStyleTimingState(t),0==p.type){const w=p,S=w.name;S.toString().split(/\s*,\s*/).forEach(V=>{w.name=V,l.push(this.visitState(w,t))}),w.name=S}else if(1==p.type){const w=this.visitTransition(p,t);o+=w.queryCount,s+=w.depCount,u.push(w)}else t.errors.push(function NV(){return new $e(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:o,depCount:s,options:null}}visitState(e,t){const o=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(o.containsDynamicStyles){const l=new Set,u=s||{};o.styles.forEach(p=>{p instanceof Map&&p.forEach(w=>{OE(w).forEach(S=>{u.hasOwnProperty(S)||l.add(S)})})}),l.size&&(B0(l.values()),t.errors.push(function OV(n,e){return new $e(3008,!1)}()))}return{type:0,name:e.name,style:o,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const o=ns(this,Ff(e.animation),t);return{type:1,matchers:CH(e.expr,t.errors),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:yl(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(o=>ns(this,o,t)),options:yl(e.options)}}visitGroup(e,t){const o=t.currentTime;let s=0;const l=e.steps.map(u=>{t.currentTime=o;const p=ns(this,u,t);return s=Math.max(s,t.currentTime),p});return t.currentTime=s,{type:3,steps:l,options:yl(e.options)}}visitAnimate(e,t){const o=function SH(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Um(D0(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Um(0,0,"");return l.dynamic=!0,l.strValue=t,l}const s=D0(t,e);return Um(s.duration,s.delay,s.easing)}(e.timings,t.errors);t.currentAnimateTimings=o;let s,l=e.styles?e.styles:Vt({});if(5==l.type)s=this.visitKeyframes(l,t);else{let u=e.styles,p=!1;if(!u){p=!0;const S={};o.easing&&(S.easing=o.easing),u=Vt(S)}t.currentTime+=o.duration+o.delay;const w=this.visitStyle(u,t);w.isEmptyStep=p,s=w}return t.currentAnimateTimings=null,{type:4,timings:o,style:s,options:null}}visitStyle(e,t){const o=this._makeStyleAst(e,t);return this._validateStyleAst(o,t),o}_makeStyleAst(e,t){const o=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let p of s)"string"==typeof p?p===Ra?o.push(p):t.errors.push(new $e(3002,!1)):o.push(BE(p));let l=!1,u=null;return o.forEach(p=>{if(p instanceof Map&&(p.has("easing")&&(u=p.get("easing"),p.delete("easing")),!l))for(let w of p.values())if(w.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:o,easing:u,offset:e.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(e,t){const o=t.currentAnimateTimings;let s=t.currentTime,l=t.currentTime;o&&l>0&&(l-=o.duration+o.delay),e.styles.forEach(u=>{"string"!=typeof u&&u.forEach((p,w)=>{const S=t.collectedStyles.get(t.currentQuerySelector),V=S.get(w);let J=!0;V&&(l!=s&&l>=V.startTime&&s<=V.endTime&&(t.errors.push(function RV(n,e,t,o,s){return new $e(3010,!1)}()),J=!1),l=V.startTime),J&&S.set(w,{startTime:l,endTime:s}),t.options&&function pH(n,e,t){const o=e.params||{},s=OE(n);s.length&&s.forEach(l=>{o.hasOwnProperty(l)||t.push(function kV(n){return new $e(3001,!1)}())})}(p,t.options,t.errors)})})}visitKeyframes(e,t){const o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function FV(){return new $e(3011,!1)}()),o;let l=0;const u=[];let p=!1,w=!1,S=0;const V=e.steps.map(_t=>{const it=this._makeStyleAst(_t,t);let gt=null!=it.offset?it.offset:function BH(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const o=t;e=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(it.styles),Jt=0;return null!=gt&&(l++,Jt=it.offset=gt),w=w||Jt<0||Jt>1,p=p||Jt0&&l{const gt=he>0?it==xe?1:he*it:u[it],Jt=gt*ut;t.currentTime=Ee+Le.delay+Jt,Le.duration=Jt,this._validateStyleAst(_t,t),_t.offset=gt,o.styles.push(_t)}),o}visitReference(e,t){return{type:8,animation:ns(this,Ff(e.animation),t),options:yl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:yl(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:yl(e.options)}}visitQuery(e,t){const o=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[l,u]=function TH(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(xH,"")),n=n.replace(/@\*/g,k0).replace(/@\w+/g,t=>k0+"-"+t.slice(1)).replace(/:animating/g,Om),[n,e]}(e.selector);t.currentQuerySelector=o.length?o+" "+l:l,ts(t.collectedStyles,t.currentQuerySelector,new Map);const p=ns(this,Ff(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=o,{type:11,selector:l,limit:s.limit||0,optional:!!s.optional,includeSelf:u,animation:p,originalSelector:e.selector,options:yl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function GV(){return new $e(3013,!1)}());const o="full"===e.timings?{duration:0,delay:0,easing:"full"}:D0(e.timings,t.errors,!0);return{type:12,animation:ns(this,Ff(e.animation),t),timings:o,options:null}}}class DH{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yl(n){return n?(n=Rf(n)).params&&(n.params=function kH(n){return n?Rf(n):null}(n.params)):n={},n}function Um(n,e,t){return{duration:n,delay:e,easing:t}}function jm(n,e,t,o,s,l,u=null,p=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:o,duration:s,delay:l,totalTime:s+l,easing:u,subTimeline:p}}class R0{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let o=this._map.get(e);o||this._map.set(e,o=[]),o.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const OH=new RegExp(":enter","g"),RH=new RegExp(":leave","g");function Gm(n,e,t,o,s,l=new Map,u=new Map,p,w,S=[]){return(new FH).buildKeyframes(n,e,t,o,s,l,u,p,w,S)}class FH{buildKeyframes(e,t,o,s,l,u,p,w,S,V=[]){S=S||new R0;const J=new Vm(e,t,S,s,l,V,[]);J.options=w;const he=w.delay?Fa(w.delay):0;J.currentTimeline.delayNextStep(he),J.currentTimeline.setStyles([u],null,J.errors,w),ns(this,o,J);const xe=J.timelines.filter(Ee=>Ee.containsAnimation());if(xe.length&&p.size){let Ee;for(let Le=xe.length-1;Le>=0;Le--){const ut=xe[Le];if(ut.element===t){Ee=ut;break}}Ee&&!Ee.allowOnlyTimelineStyles()&&Ee.setStyles([p],null,J.errors,w)}return xe.length?xe.map(Ee=>Ee.buildKeyframes()):[jm(t,[],[],[],0,he,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const o=t.subInstructions.get(t.element);if(o){const s=t.createSubContext(e.options),l=t.currentTimeline.currentTime,u=this._visitSubInstructions(o,s,s.options);l!=u&&t.transformIntoNewTimeline(u)}t.previousNode=e}visitAnimateRef(e,t){const o=t.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,o),this.visitReference(e.animation,o),t.transformIntoNewTimeline(o.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,o){for(const s of e){const l=s?.delay;if(l){const u="number"==typeof l?l:Fa(Lf(l,s?.params??{},t.errors));o.delayNextStep(u)}}}_visitSubInstructions(e,t,o){let l=t.currentTimeline.currentTime;const u=null!=o.duration?Fa(o.duration):null,p=null!=o.delay?Fa(o.delay):null;return 0!==u&&e.forEach(w=>{const S=t.appendInstructionToTimeline(w,u,p);l=Math.max(l,S.duration+S.delay)}),l}visitReference(e,t){t.updateOptions(e.options,!0),ns(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const o=t.subContextCount;let s=t;const l=e.options;if(l&&(l.params||l.delay)&&(s=t.createSubContext(l),s.transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=F0);const u=Fa(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(u=>ns(this,u,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>o&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const o=[];let s=t.currentTimeline.currentTime;const l=e.options&&e.options.delay?Fa(e.options.delay):0;e.steps.forEach(u=>{const p=t.createSubContext(e.options);l&&p.delayNextStep(l),ns(this,u,p),s=Math.max(s,p.currentTimeline.currentTime),o.push(p.currentTimeline)}),o.forEach(u=>t.currentTimeline.mergeTimelineCollectedStyles(u)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const o=e.strValue;return D0(t.params?Lf(o,t.params,t.errors):o,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const o=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;o.delay&&(t.incrementTime(o.delay),s.snapshotCurrentStyles());const l=e.style;5==l.type?this.visitKeyframes(l,t):(t.incrementTime(o.duration),this.visitStyle(l,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const o=t.currentTimeline,s=t.currentAnimateTimings;!s&&o.hasCurrentStyleProperties()&&o.forwardFrame();const l=s&&s.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(l):o.setStyles(e.styles,l,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const o=t.currentAnimateTimings,s=t.currentTimeline.duration,l=o.duration,p=t.createSubContext().currentTimeline;p.easing=o.easing,e.styles.forEach(w=>{p.forwardTime((w.offset||0)*l),p.setStyles(w.styles,w.easing,t.errors,t.options),p.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(p),t.transformIntoNewTimeline(s+l),t.previousNode=e}visitQuery(e,t){const o=t.currentTimeline.currentTime,s=e.options||{},l=s.delay?Fa(s.delay):0;l&&(6===t.previousNode.type||0==o&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=F0);let u=o;const p=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=p.length;let w=null;p.forEach((S,V)=>{t.currentQueryIndex=V;const J=t.createSubContext(e.options,S);l&&J.delayNextStep(l),S===t.element&&(w=J.currentTimeline),ns(this,e.animation,J),J.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,J.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(u),w&&(t.currentTimeline.mergeTimelineCollectedStyles(w),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const o=t.parentContext,s=t.currentTimeline,l=e.timings,u=Math.abs(l.duration),p=u*(t.currentQueryTotal-1);let w=u*t.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":w=p-w;break;case"full":w=o.currentStaggerTime}const V=t.currentTimeline;w&&V.delayNextStep(w);const J=V.currentTime;ns(this,e.animation,t),t.previousNode=e,o.currentStaggerTime=s.currentTime-J+(s.startTime-o.currentTimeline.startTime)}}const F0={};class Vm{constructor(e,t,o,s,l,u,p,w){this._driver=e,this.element=t,this.subInstructions=o,this._enterClassName=s,this._leaveClassName=l,this.errors=u,this.timelines=p,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=F0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=w||new L0(this._driver,t,0),p.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const o=e;let s=this.options;null!=o.duration&&(s.duration=Fa(o.duration)),null!=o.delay&&(s.delay=Fa(o.delay));const l=o.params;if(l){let u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(p=>{(!t||!u.hasOwnProperty(p))&&(u[p]=Lf(l[p],u,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const o=e.params={};Object.keys(t).forEach(s=>{o[s]=t[s]})}}return e}createSubContext(e=null,t,o){const s=t||this.element,l=new Vm(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,o||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(e),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(e){return this.previousNode=F0,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,o){const s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(o??0)+e.delay,easing:""},l=new LH(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(l),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,o,s,l,u){let p=[];if(s&&p.push(this.element),e.length>0){e=(e=e.replace(OH,"."+this._enterClassName)).replace(RH,"."+this._leaveClassName);let S=this._driver.query(this.element,e,1!=o);0!==o&&(S=o<0?S.slice(S.length+o,S.length):S.slice(0,o)),p.push(...S)}return!l&&0==p.length&&u.push(function VV(n){return new $e(3014,!1)}()),p}}class L0{constructor(e,t,o,s){this._driver=e,this.element=t,this.startTime=o,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new L0(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,o]of this._globalTimelineStyles)this._backFill.set(t,o||Ra),this._currentKeyframe.set(t,Ra);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,o,s){t&&this._previousKeyframe.set("easing",t);const l=s&&s.params||{},u=function UH(n,e){const t=new Map;let o;return n.forEach(s=>{if("*"===s){o=o||e.keys();for(let l of o)t.set(l,Ra)}else Dc(s,t)}),t}(e,this._globalTimelineStyles);for(let[p,w]of u){const S=Lf(w,l,o);this._pendingStyles.set(p,S),this._localTimelineStyles.has(p)||this._backFill.set(p,this._globalTimelineStyles.get(p)??Ra),this._updateStyle(p,S)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,o)=>{const s=this._styleSummary.get(o);(!s||t.time>s.time)&&this._updateStyle(o,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,o=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((p,w)=>{const S=Dc(p,new Map,this._backFill);S.forEach((V,J)=>{V===xm?e.add(J):V===Ra&&t.add(J)}),o||S.set("offset",w/this.duration),s.push(S)});const l=e.size?B0(e.values()):[],u=t.size?B0(t.values()):[];if(o){const p=s[0],w=new Map(p);p.set("offset",0),w.set("offset",1),s=[p,w]}return jm(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}class LH extends L0{constructor(e,t,o,s,l,u,p=!1){super(e,t,u.delay),this.keyframes=o,this.preStyleProps=s,this.postStyleProps=l,this._stretchStartingKeyframe=p,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:o,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const l=[],u=o+t,p=t/u,w=Dc(e[0]);w.set("offset",0),l.push(w);const S=Dc(e[0]);S.set("offset",UE(p)),l.push(S);const V=e.length-1;for(let J=1;J<=V;J++){let he=Dc(e[J]);const xe=he.get("offset");he.set("offset",UE((t+xe*o)/u)),l.push(he)}o=u,t=0,s="",e=l}return jm(this.element,e,this.preStyleProps,this.postStyleProps,o,t,s,!0)}}function UE(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Hm{}const jH=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class GH extends Hm{normalizePropertyName(e,t){return Fm(e)}normalizeStyleValue(e,t,o,s){let l="";const u=o.toString().trim();if(jH.has(t)&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{const p=o.match(/^[+-]?[\d\.]+([a-z]*)$/);p&&0==p[1].length&&s.push(function SV(n,e){return new $e(3005,!1)}())}return u+l}}function jE(n,e,t,o,s,l,u,p,w,S,V,J,he){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:l,toState:o,toStyles:u,timelines:p,queriedElements:w,preStyleProps:S,postStyleProps:V,totalTime:J,errors:he}}const Qm={};class GE{constructor(e,t,o){this._triggerName=e,this.ast=t,this._stateStyles=o}match(e,t,o,s){return function VH(n,e,t,o,s){return n.some(l=>l(e,t,o,s))}(this.ast.matchers,e,t,o,s)}buildStyles(e,t,o){let s=this._stateStyles.get("*");return void 0!==e&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,o):new Map}build(e,t,o,s,l,u,p,w,S,V){const J=[],he=this.ast.options&&this.ast.options.params||Qm,Ee=this.buildStyles(o,p&&p.params||Qm,J),Le=w&&w.params||Qm,ut=this.buildStyles(s,Le,J),_t=new Set,it=new Map,gt=new Map,Jt="void"===s,Qn={params:HH(Le,he),delay:this.ast.options?.delay},Ln=V?[]:Gm(e,t,this.ast.animation,l,u,Ee,ut,Qn,S,J);let Er=0;if(Ln.forEach(Fe=>{Er=Math.max(Fe.duration+Fe.delay,Er)}),J.length)return jE(t,this._triggerName,o,s,Jt,Ee,ut,[],[],it,gt,Er,J);Ln.forEach(Fe=>{const ze=Fe.element,ht=ts(it,ze,new Set);Fe.preStyleProps.forEach(lt=>ht.add(lt));const at=ts(gt,ze,new Set);Fe.postStyleProps.forEach(lt=>at.add(lt)),ze!==t&&_t.add(ze)});const Se=B0(_t.values());return jE(t,this._triggerName,o,s,Jt,Ee,ut,Ln,Se,it,gt,Er)}}function HH(n,e){const t=Rf(e);for(const o in n)n.hasOwnProperty(o)&&null!=n[o]&&(t[o]=n[o]);return t}class QH{constructor(e,t,o){this.styles=e,this.defaultParams=t,this.normalizer=o}buildStyles(e,t){const o=new Map,s=Rf(this.defaultParams);return Object.keys(e).forEach(l=>{const u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((u,p)=>{u&&(u=Lf(u,s,t));const w=this.normalizer.normalizePropertyName(p,t);u=this.normalizer.normalizeStyleValue(p,w,u,t),o.set(p,u)})}),o}}class KH{constructor(e,t,o){this.name=e,this.ast=t,this._normalizer=o,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{this.states.set(s.name,new QH(s.style,s.options&&s.options.params||{},o))}),VE(this.states,"true","1"),VE(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new GE(e,s,this.states))}),this.fallbackTransition=function YH(n,e,t){return new GE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,p)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,o,s){return this.transitionFactories.find(u=>u.match(e,t,o,s))||null}matchStyles(e,t,o){return this.fallbackTransition.buildStyles(e,t,o)}}function VE(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const WH=new R0;class $H{constructor(e,t,o){this.bodyNode=e,this._driver=t,this._normalizer=o,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const o=[],s=[],l=Lm(this._driver,t,o,s);if(o.length)throw function $V(n){return new $e(3503,!1)}();this._animations.set(e,l)}_buildPlayer(e,t,o){const s=e.element,l=vE(0,this._normalizer,0,e.keyframes,t,o);return this._driver.animate(s,l,e.duration,e.delay,e.easing,[],!0)}create(e,t,o={}){const s=[],l=this._animations.get(e);let u;const p=new Map;if(l?(u=Gm(this._driver,t,l,Nm,E0,new Map,new Map,o,WH,s),u.forEach(V=>{const J=ts(p,V.element,new Map);V.postStyleProps.forEach(he=>J.set(he,null))})):(s.push(function ZV(){return new $e(3300,!1)}()),u=[]),s.length)throw function qV(n){return new $e(3504,!1)}();p.forEach((V,J)=>{V.forEach((he,xe)=>{V.set(xe,this._driver.computeStyle(J,xe,Ra))})});const S=kc(u.map(V=>{const J=p.get(V.element);return this._buildPlayer(V,new Map,J)}));return this._playersById.set(e,S),S.onDestroy(()=>this.destroy(e)),this.players.push(S),S}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const o=this.players.indexOf(t);o>=0&&this.players.splice(o,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function JV(n){return new $e(3301,!1)}();return t}listen(e,t,o,s){const l=Dm(t,"","","");return Tm(this._getPlayer(e),o,l,s),()=>{}}command(e,t,o,s){if("register"==o)return void this.register(e,s[0]);if("create"==o)return void this.create(e,t,s[0]||{});const l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const HE="ng-animate-queued",zm="ng-animate-disabled",eQ=[],QE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ms="__ng_removed";class Km{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const o=e&&e.hasOwnProperty("value");if(this.value=function iQ(n){return n??null}(o?e.value:e),o){const l=Rf(e);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const o=this.options.params;Object.keys(t).forEach(s=>{null==o[s]&&(o[s]=t[s])})}}}const Uf="void",Ym=new Km(Uf);class nQ{constructor(e,t,o){this.id=e,this.hostElement=t,this._engine=o,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ys(t,this._hostClassName)}listen(e,t,o,s){if(!this._triggers.has(t))throw function XV(n,e){return new $e(3302,!1)}();if(null==o||0==o.length)throw function eH(n){return new $e(3303,!1)}();if(!function sQ(n){return"start"==n||"done"==n}(o))throw function tH(n,e){return new $e(3400,!1)}();const l=ts(this._elementListeners,e,[]),u={name:t,phase:o,callback:s};l.push(u);const p=ts(this._engine.statesByElement,e,new Map);return p.has(t)||(ys(e,T0),ys(e,T0+"-"+t),p.set(t,Ym)),()=>{this._engine.afterFlush(()=>{const w=l.indexOf(u);w>=0&&l.splice(w,1),this._triggers.has(t)||p.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function nH(n){return new $e(3401,!1)}();return t}trigger(e,t,o,s=!0){const l=this._getTrigger(t),u=new Wm(this.id,t,e);let p=this._engine.statesByElement.get(e);p||(ys(e,T0),ys(e,T0+"-"+t),this._engine.statesByElement.set(e,p=new Map));let w=p.get(t);const S=new Km(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&w&&S.absorbOptions(w.options),p.set(t,S),w||(w=Ym),S.value!==Uf&&w.value===S.value){if(!function lQ(n,e){const t=Object.keys(n),o=Object.keys(e);if(t.length!=o.length)return!1;for(let s=0;s{ml(e,ut),da(e,_t)})}return}const he=ts(this._engine.playersByElement,e,[]);he.forEach(Le=>{Le.namespaceId==this.id&&Le.triggerName==t&&Le.queued&&Le.destroy()});let xe=l.matchTransition(w.value,S.value,e,S.params),Ee=!1;if(!xe){if(!s)return;xe=l.fallbackTransition,Ee=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:xe,fromState:w,toState:S,player:u,isFallbackTransition:Ee}),Ee||(ys(e,HE),u.onStart(()=>{Bu(e,HE)})),u.onDone(()=>{let Le=this.players.indexOf(u);Le>=0&&this.players.splice(Le,1);const ut=this._engine.playersByElement.get(e);if(ut){let _t=ut.indexOf(u);_t>=0&&ut.splice(_t,1)}}),this.players.push(u),he.push(u),u}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,o)=>{this._elementListeners.set(o,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(o=>o.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const o=this._engine.driver.query(e,k0,!0);o.forEach(s=>{if(s[ms])return;const l=this._engine.fetchNamespacesByElement(s);l.size?l.forEach(u=>u.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,o,s){const l=this._engine.statesByElement.get(e),u=new Map;if(l){const p=[];if(l.forEach((w,S)=>{if(u.set(S,w.value),this._triggers.has(S)){const V=this.trigger(e,S,Uf,s);V&&p.push(V)}}),p.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,u),o&&kc(p).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),o=this._engine.statesByElement.get(e);if(t&&o){const s=new Set;t.forEach(l=>{const u=l.name;if(s.has(u))return;s.add(u);const w=this._triggers.get(u).fallbackTransition,S=o.get(u)||Ym,V=new Km(Uf),J=new Wm(this.id,u,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:u,transition:w,fromState:S,toState:V,player:J,isFallbackTransition:!0})})}}removeNode(e,t){const o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(o.totalAnimations){const l=o.players.length?o.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else{let u=e;for(;u=u.parentNode;)if(o.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)o.markElementAsRemoved(this.id,e,!1,t);else{const l=e[ms];(!l||l===QE)&&(o.afterFlush(()=>this.clearElementCache(e)),o.destroyInnerAnimations(e),o._onRemovalComplete(e,t))}}insertNode(e,t){ys(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(o=>{const s=o.player;if(s.destroyed)return;const l=o.element,u=this._elementListeners.get(l);u&&u.forEach(p=>{if(p.name==o.triggerName){const w=Dm(l,o.triggerName,o.fromState.value,o.toState.value);w._data=e,Tm(o.player,p.phase,w,p.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(o)}),this._queue=[],t.sort((o,s)=>{const l=o.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:this._engine.driver.containsElement(o.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(o=>o.element===e)||t,t}}class rQ{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,o){this.bodyNode=e,this.driver=t,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,l)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(o=>{o.queued&&e.push(o)})}),e}createNamespace(e,t){const o=new nQ(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(o,t):(this.newHostElements.set(t,o),this.collectEnterElement(t)),this._namespaceLookup[e]=o}_balanceNamespaceList(e,t){const o=this._namespaceList,s=this.namespacesByHostElement;if(o.length-1>=0){let u=!1,p=this.driver.getParentElement(t);for(;p;){const w=s.get(p);if(w){const S=o.indexOf(w);o.splice(S+1,0,e),u=!0;break}p=this.driver.getParentElement(p)}u||o.unshift(e)}else o.push(e);return s.set(t,e),e}register(e,t){let o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,t)),o}registerTrigger(e,t,o){let s=this._namespaceLookup[e];s&&s.register(t,o)&&this.totalAnimations++}destroy(e,t){if(!e)return;const o=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(o.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(o);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>o.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,o=this.statesByElement.get(e);if(o)for(let s of o.values())if(s.namespaceId){const l=this._fetchNamespace(s.namespaceId);l&&t.add(l)}return t}trigger(e,t,o,s){if(U0(t)){const l=this._fetchNamespace(e);if(l)return l.trigger(t,o,s),!0}return!1}insertNode(e,t,o,s){if(!U0(t))return;const l=t[ms];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const u=this.collectedLeaveElements.indexOf(t);u>=0&&this.collectedLeaveElements.splice(u,1)}if(e){const u=this._fetchNamespace(e);u&&u.insertNode(t,o)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ys(e,zm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Bu(e,zm))}removeNode(e,t,o,s){if(U0(t)){const l=e?this._fetchNamespace(e):null;if(l?l.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),o){const u=this.namespacesByHostElement.get(t);u&&u.id!==e&&u.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,o,s,l){this.collectedLeaveElements.push(t),t[ms]={namespaceId:e,setForRemoval:s,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:l}}listen(e,t,o,s,l){return U0(t)?this._fetchNamespace(e).listen(t,o,s,l):()=>{}}_buildInstruction(e,t,o,s,l){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,s,e.fromState.options,e.toState.options,t,l)}destroyInnerAnimations(e){let t=this.driver.query(e,k0,!0);t.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Om,!0),t.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return kc(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[ms];if(t&&t.setForRemoval){if(e[ms]=QE,t.namespaceId){this.destroyInnerAnimations(e);const o=this._fetchNamespace(t.namespaceId);o&&o.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(zm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,s)=>this._balanceNamespaceList(o,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;oo()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],t.length?kc(t).onDone(()=>{o.forEach(s=>s())}):o.forEach(s=>s())}}reportError(e){throw function rH(n){return new $e(3402,!1)}()}_flushAnimations(e,t){const o=new R0,s=[],l=new Map,u=[],p=new Map,w=new Map,S=new Map,V=new Set;this.disabledNodes.forEach(Qe=>{V.add(Qe);const Je=this.driver.query(Qe,".ng-animate-queued",!0);for(let Ze=0;Ze{const Ze=Nm+Le++;Ee.set(Je,Ze),Qe.forEach(wt=>ys(wt,Ze))});const ut=[],_t=new Set,it=new Set;for(let Qe=0;Qe_t.add(wt)):it.add(Je))}const gt=new Map,Jt=YE(he,Array.from(_t));Jt.forEach((Qe,Je)=>{const Ze=E0+Le++;gt.set(Je,Ze),Qe.forEach(wt=>ys(wt,Ze))}),e.push(()=>{xe.forEach((Qe,Je)=>{const Ze=Ee.get(Je);Qe.forEach(wt=>Bu(wt,Ze))}),Jt.forEach((Qe,Je)=>{const Ze=gt.get(Je);Qe.forEach(wt=>Bu(wt,Ze))}),ut.forEach(Qe=>{this.processLeaveNode(Qe)})});const Qn=[],Ln=[];for(let Qe=this._namespaceList.length-1;Qe>=0;Qe--)this._namespaceList[Qe].drainQueuedTransitions(t).forEach(Ze=>{const wt=Ze.player,nn=Ze.element;if(Qn.push(wt),this.collectedEnterElements.length){const ar=nn[ms];if(ar&&ar.setForMove){if(ar.previousTriggersValues&&ar.previousTriggersValues.has(Ze.triggerName)){const Do=ar.previousTriggersValues.get(Ze.triggerName),oo=this.statesByElement.get(Ze.element);if(oo&&oo.has(Ze.triggerName)){const ti=oo.get(Ze.triggerName);ti.value=Do,oo.set(Ze.triggerName,ti)}}return void wt.destroy()}}const gn=!J||!this.driver.containsElement(J,nn),Rn=gt.get(nn),fr=Ee.get(nn),Hn=this._buildInstruction(Ze,o,fr,Rn,gn);if(Hn.errors&&Hn.errors.length)return void Ln.push(Hn);if(gn)return wt.onStart(()=>ml(nn,Hn.fromStyles)),wt.onDestroy(()=>da(nn,Hn.toStyles)),void s.push(wt);if(Ze.isFallbackTransition)return wt.onStart(()=>ml(nn,Hn.fromStyles)),wt.onDestroy(()=>da(nn,Hn.toStyles)),void s.push(wt);const Xn=[];Hn.timelines.forEach(ar=>{ar.stretchStartingKeyframe=!0,this.disabledNodes.has(ar.element)||Xn.push(ar)}),Hn.timelines=Xn,o.append(nn,Hn.timelines),u.push({instruction:Hn,player:wt,element:nn}),Hn.queriedElements.forEach(ar=>ts(p,ar,[]).push(wt)),Hn.preStyleProps.forEach((ar,Do)=>{if(ar.size){let oo=w.get(Do);oo||w.set(Do,oo=new Set),ar.forEach((ti,Ao)=>oo.add(Ao))}}),Hn.postStyleProps.forEach((ar,Do)=>{let oo=S.get(Do);oo||S.set(Do,oo=new Set),ar.forEach((ti,Ao)=>oo.add(Ao))})});if(Ln.length){const Qe=[];Ln.forEach(Je=>{Qe.push(function oH(n,e){return new $e(3505,!1)}())}),Qn.forEach(Je=>Je.destroy()),this.reportError(Qe)}const Er=new Map,Se=new Map;u.forEach(Qe=>{const Je=Qe.element;o.has(Je)&&(Se.set(Je,Je),this._beforeAnimationBuild(Qe.player.namespaceId,Qe.instruction,Er))}),s.forEach(Qe=>{const Je=Qe.element;this._getPreviousPlayers(Je,!1,Qe.namespaceId,Qe.triggerName,null).forEach(wt=>{ts(Er,Je,[]).push(wt),wt.destroy()})});const Fe=ut.filter(Qe=>$E(Qe,w,S)),ze=new Map;KE(ze,this.driver,it,S,Ra).forEach(Qe=>{$E(Qe,w,S)&&Fe.push(Qe)});const at=new Map;xe.forEach((Qe,Je)=>{KE(at,this.driver,new Set(Qe),w,xm)}),Fe.forEach(Qe=>{const Je=ze.get(Qe),Ze=at.get(Qe);ze.set(Qe,new Map([...Array.from(Je?.entries()??[]),...Array.from(Ze?.entries()??[])]))});const lt=[],yt=[],rt={};u.forEach(Qe=>{const{element:Je,player:Ze,instruction:wt}=Qe;if(o.has(Je)){if(V.has(Je))return Ze.onDestroy(()=>da(Je,wt.toStyles)),Ze.disabled=!0,Ze.overrideTotalTime(wt.totalTime),void s.push(Ze);let nn=rt;if(Se.size>1){let Rn=Je;const fr=[];for(;Rn=Rn.parentNode;){const Hn=Se.get(Rn);if(Hn){nn=Hn;break}fr.push(Rn)}fr.forEach(Hn=>Se.set(Hn,nn))}const gn=this._buildAnimation(Ze.namespaceId,wt,Er,l,at,ze);if(Ze.setRealPlayer(gn),nn===rt)lt.push(Ze);else{const Rn=this.playersByElement.get(nn);Rn&&Rn.length&&(Ze.parentPlayer=kc(Rn)),s.push(Ze)}}else ml(Je,wt.fromStyles),Ze.onDestroy(()=>da(Je,wt.toStyles)),yt.push(Ze),V.has(Je)&&s.push(Ze)}),yt.forEach(Qe=>{const Je=l.get(Qe.element);if(Je&&Je.length){const Ze=kc(Je);Qe.setRealPlayer(Ze)}}),s.forEach(Qe=>{Qe.parentPlayer?Qe.syncPlayerEvents(Qe.parentPlayer):Qe.destroy()});for(let Qe=0;Qe!gn.destroyed);nn.length?aQ(this,Je,nn):this.processLeaveNode(Je)}return ut.length=0,lt.forEach(Qe=>{this.players.push(Qe),Qe.onDone(()=>{Qe.destroy();const Je=this.players.indexOf(Qe);this.players.splice(Je,1)}),Qe.play()}),lt}elementContainsData(e,t){let o=!1;const s=t[ms];return s&&s.setForRemoval&&(o=!0),this.playersByElement.has(t)&&(o=!0),this.playersByQueriedElement.has(t)&&(o=!0),this.statesByElement.has(t)&&(o=!0),this._fetchNamespace(e).elementContainsData(t)||o}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,o,s,l){let u=[];if(t){const p=this.playersByQueriedElement.get(e);p&&(u=p)}else{const p=this.playersByElement.get(e);if(p){const w=!l||l==Uf;p.forEach(S=>{S.queued||!w&&S.triggerName!=s||u.push(S)})}}return(o||s)&&(u=u.filter(p=>!(o&&o!=p.namespaceId||s&&s!=p.triggerName))),u}_beforeAnimationBuild(e,t,o){const l=t.element,u=t.isRemovalTransition?void 0:e,p=t.isRemovalTransition?void 0:t.triggerName;for(const w of t.timelines){const S=w.element,V=S!==l,J=ts(o,S,[]);this._getPreviousPlayers(S,V,u,p,t.toState).forEach(xe=>{const Ee=xe.getRealPlayer();Ee.beforeDestroy&&Ee.beforeDestroy(),xe.destroy(),J.push(xe)})}ml(l,t.fromStyles)}_buildAnimation(e,t,o,s,l,u){const p=t.triggerName,w=t.element,S=[],V=new Set,J=new Set,he=t.timelines.map(Ee=>{const Le=Ee.element;V.add(Le);const ut=Le[ms];if(ut&&ut.removedBeforeQueried)return new Pf(Ee.duration,Ee.delay);const _t=Le!==w,it=function cQ(n){const e=[];return WE(n,e),e}((o.get(Le)||eQ).map(Er=>Er.getRealPlayer())).filter(Er=>!!Er.element&&Er.element===Le),gt=l.get(Le),Jt=u.get(Le),Qn=vE(0,this._normalizer,0,Ee.keyframes,gt,Jt),Ln=this._buildPlayer(Ee,Qn,it);if(Ee.subTimeline&&s&&J.add(Le),_t){const Er=new Wm(e,p,Le);Er.setRealPlayer(Ln),S.push(Er)}return Ln});S.forEach(Ee=>{ts(this.playersByQueriedElement,Ee.element,[]).push(Ee),Ee.onDone(()=>function oQ(n,e,t){let o=n.get(e);if(o){if(o.length){const s=o.indexOf(t);o.splice(s,1)}0==o.length&&n.delete(e)}return o}(this.playersByQueriedElement,Ee.element,Ee))}),V.forEach(Ee=>ys(Ee,DE));const xe=kc(he);return xe.onDestroy(()=>{V.forEach(Ee=>Bu(Ee,DE)),da(w,t.toStyles)}),J.forEach(Ee=>{ts(s,Ee,[]).push(xe)}),xe}_buildPlayer(e,t,o){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,o):new Pf(e.duration,e.delay)}}class Wm{constructor(e,t,o){this.namespaceId=e,this.triggerName=t,this.element=o,this._player=new Pf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,o)=>{t.forEach(s=>Tm(e,o,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ts(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function U0(n){return n&&1===n.nodeType}function zE(n,e){const t=n.style.display;return n.style.display=e??"none",t}function KE(n,e,t,o,s){const l=[];t.forEach(w=>l.push(zE(w)));const u=[];o.forEach((w,S)=>{const V=new Map;w.forEach(J=>{const he=e.computeStyle(S,J,s);V.set(J,he),(!he||0==he.length)&&(S[ms]=tQ,u.push(S))}),n.set(S,V)});let p=0;return t.forEach(w=>zE(w,l[p++])),u}function YE(n,e){const t=new Map;if(n.forEach(p=>t.set(p,[])),0==e.length)return t;const o=1,s=new Set(e),l=new Map;function u(p){if(!p)return o;let w=l.get(p);if(w)return w;const S=p.parentNode;return w=t.has(S)?S:s.has(S)?o:u(S),l.set(p,w),w}return e.forEach(p=>{const w=u(p);w!==o&&t.get(w).push(p)}),t}function ys(n,e){n.classList?.add(e)}function Bu(n,e){n.classList?.remove(e)}function aQ(n,e,t){kc(t).onDone(()=>n.processLeaveNode(e))}function WE(n,e){for(let t=0;ts.add(l)):e.set(n,o),t.delete(n),!0}class j0{constructor(e,t,o){this.bodyNode=e,this._driver=t,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(s,l)=>{},this._transitionEngine=new rQ(e,t,o),this._timelineEngine=new $H(e,t,o),this._transitionEngine.onRemovalComplete=(s,l)=>this.onRemovalComplete(s,l)}registerTrigger(e,t,o,s,l){const u=e+"-"+s;let p=this._triggerCache[u];if(!p){const w=[],S=[],V=Lm(this._driver,l,w,S);if(w.length)throw function YV(n,e){return new $e(3404,!1)}();p=function zH(n,e,t){return new KH(n,e,t)}(s,V,this._normalizer),this._triggerCache[u]=p}this._transitionEngine.registerTrigger(t,s,p)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,o,s){this._transitionEngine.insertNode(e,t,o,s)}onRemove(e,t,o,s){this._transitionEngine.removeNode(e,t,s||!1,o)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,o,s){if("@"==o.charAt(0)){const[l,u]=wE(o);this._timelineEngine.command(l,t,u,s)}else this._transitionEngine.trigger(e,t,o,s)}listen(e,t,o,s,l){if("@"==o.charAt(0)){const[u,p]=wE(o);return this._timelineEngine.listen(u,t,p,l)}return this._transitionEngine.listen(e,t,o,s,l)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let dQ=(()=>{class n{constructor(t,o,s){this._element=t,this._startStyles=o,this._endStyles=s,this._state=0;let l=n.initialStylesByElement.get(t);l||n.initialStylesByElement.set(t,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&da(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(da(this._element,this._initialStyles),this._endStyles&&(da(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ml(this._element,this._endStyles),this._endStyles=null),da(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function $m(n){let e=null;return n.forEach((t,o)=>{(function fQ(n){return"display"===n||"position"===n})(o)&&(e=e||new Map,e.set(o,t))}),e}class ZE{constructor(e,t,o,s){this.element=e,this.keyframes=t,this.options=o,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(o=>{t.push(Object.fromEntries(o))}),t}_triggerWebAnimation(e,t,o){return e.animate(this._convertKeyframesToObject(t),o)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((o,s)=>{"offset"!==s&&e.set(s,this._finished?o:PE(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class hQ{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return xE(e,t)}getParentElement(e){return Sm(e)}query(e,t,o){return EE(e,t,o)}computeStyle(e,t,o){return window.getComputedStyle(e)[t]}animate(e,t,o,s,l,u=[]){const w={duration:o,delay:s,fill:0==s?"both":"forwards"};l&&(w.easing=l);const S=new Map,V=u.filter(xe=>xe instanceof ZE);(function mH(n,e){return 0===n||0===e})(o,s)&&V.forEach(xe=>{xe.currentSnapshot.forEach((Ee,Le)=>S.set(Le,Ee))});let J=function hH(n){return n.length?n[0]instanceof Map?n:n.map(e=>BE(e)):[]}(t).map(xe=>Dc(xe));J=function yH(n,e,t){if(t.size&&e.length){let o=e[0],s=[];if(t.forEach((l,u)=>{o.has(u)||s.push(u),o.set(u,l)}),s.length)for(let l=1;lu.set(p,PE(n,p)))}}return e}(e,J,S);const he=function uQ(n,e){let t=null,o=null;return Array.isArray(e)&&e.length?(t=$m(e[0]),e.length>1&&(o=$m(e[e.length-1]))):e instanceof Map&&(t=$m(e)),t||o?new dQ(n,t,o):null}(e,J);return new ZE(e,J,w,he)}}let pQ=(()=>{class n extends pE{constructor(t,o){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(o.body,{id:"0",encapsulation:Bs.None,styles:[],data:{animation:[]}})}build(t){const o=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?AE(t):t;return qE(this._renderer,null,o,"register",[s]),new gQ(o,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ld),Yt(Ai))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();class gQ extends _V{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new AQ(this._id,e,t||{},this._renderer)}}class AQ{constructor(e,t,o,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",o)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return qE(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function qE(n,e,t,o,s){return n.setProperty(e,`@@${t}:${o}`,s)}const JE="@.disabled";let mQ=(()=>{class n{constructor(t,o,s){this.delegate=t,this.engine=o,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),o.onRemovalComplete=(l,u)=>{const p=u?.parentNode(l);p&&u.removeChild(p,l)}}createRenderer(t,o){const l=this.delegate.createRenderer(t,o);if(!(t&&o&&o.data&&o.data.animation)){let V=this._rendererCache.get(l);return V||(V=new XE("",l,this.engine,()=>this._rendererCache.delete(l)),this._rendererCache.set(l,V)),V}const u=o.id,p=o.id+"-"+this._currentId;this._currentId++,this.engine.register(p,t);const w=V=>{Array.isArray(V)?V.forEach(w):this.engine.registerTrigger(u,p,t,V.name,V)};return o.data.animation.forEach(w),new yQ(this,p,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,o,s){t>=0&&to(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[u,p]=l;u(p)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([o,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ld),Yt(j0),Yt(bo))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();class XE{constructor(e,t,o,s){this.namespaceId=e,this.delegate=t,this.engine=o,this._onDestroy=s,this.destroyNode=this.delegate.destroyNode?l=>t.destroyNode(l):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,o,s=!0){this.delegate.insertBefore(e,t,o),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,o){this.engine.onRemove(this.namespaceId,t,this.delegate,o)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,o,s){this.delegate.setAttribute(e,t,o,s)}removeAttribute(e,t,o){this.delegate.removeAttribute(e,t,o)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,o,s){this.delegate.setStyle(e,t,o,s)}removeStyle(e,t,o){this.delegate.removeStyle(e,t,o)}setProperty(e,t,o){"@"==t.charAt(0)&&t==JE?this.disableAnimations(e,!!o):this.delegate.setProperty(e,t,o)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,o){return this.delegate.listen(e,t,o)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yQ extends XE{constructor(e,t,o,s,l){super(t,o,s,l),this.factory=e,this.namespaceId=t}setProperty(e,t,o){"@"==t.charAt(0)?"."==t.charAt(1)&&t==JE?this.disableAnimations(e,o=void 0===o||!!o):this.engine.process(this.namespaceId,e,t.slice(1),o):this.delegate.setProperty(e,t,o)}listen(e,t,o){if("@"==t.charAt(0)){const s=function bQ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let l=t.slice(1),u="";return"@"!=l.charAt(0)&&([l,u]=function vQ(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(l)),this.engine.listen(this.namespaceId,s,l,u,p=>{this.factory.scheduleListenerCallback(p._data||-1,o,p)})}return this.delegate.listen(e,t,o)}}let wQ=(()=>{class n extends j0{constructor(t,o,s,l){super(t.body,o,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(Yt(Ai),Yt(Mm),Yt(Hm),Yt(Us))},n.\u0275prov=vt({token:n,factory:n.\u0275fac}),n})();const eT=[{provide:pE,useClass:pQ},{provide:Hm,useFactory:function CQ(){return new GH}},{provide:j0,useClass:wQ},{provide:Ld,useFactory:function _Q(n,e,t){return new mQ(n,e,t)},deps:[Hh,j0,bo]}],Zm=[{provide:Mm,useFactory:()=>new hQ},{provide:R_,useValue:"BrowserAnimations"},...eT],tT=[{provide:Mm,useClass:TE},{provide:R_,useValue:"NoopAnimations"},...eT];let IQ=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?tT:Zm}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({providers:Zm,imports:[x1]}),n})();const V0=function(n,e,t,o,s,l,u,p,w,S){return{"":n,"ed-btn-success":e,"ed-btn-info":t,"ed-btn-warning":o,"ed-btn-danger":s,"ed-btn-dark":l,"ed-btn-light":u,"ed-btn-primary":p,"ed-btn-secondary":w,"ed-btn-link":S}},La=function(n){return{"text-align":n}},H0=function(n){return{closeDelay:n}},Q0=function(n,e){return{value:n,params:e}},z0=function(n,e,t,o,s){return{"standard-dialog":n,"success-dialog":e,"info-dialog":t,"warning-dialog":o,"danger-dialog":s}};function PQ(n,e){}function RQ(n,e){1&n&&lA(0)}function FQ(n,e){}function LQ(n,e){}function UQ(n,e){if(1&n){const t=Ar();pe(0,"button",14),Xe("click",function(){const l=Un(t).$implicit;return jn(Dt(2).onCustomButton(l))}),Re(1),ye()}if(2&n){const t=e.$implicit;ke("ngClass",Xd(2,V0,[!!t.LayoutType&&0===t.LayoutType,!!t.LayoutType&&1===t.LayoutType,!!t.LayoutType&&2===t.LayoutType,!!t.LayoutType&&3===t.LayoutType,!!t.LayoutType&&4===t.LayoutType,!!t.LayoutType&&5===t.LayoutType,!!t.LayoutType&&6===t.LayoutType,!!t.LayoutType&&7===t.LayoutType,!!t.LayoutType&&8===t.LayoutType,!!t.LayoutType&&9===t.LayoutType])),Te(1),Vn(" ",t.Label," ")}}function jQ(n,e){if(1&n&&(pe(0,"div",12),Lt(1,UQ,2,13,"button",13),ye()),2&n){const t=Dt();ke("ngStyle",qo(2,La,t.dialogBelonging.DialogCoreConfig.ButtonPosition)),Te(1),ke("ngForOf",t.dialogBelonging.Buttons)}}const GQ=function(){return{maxWidth:"100vw",maxHeight:"100vh",width:"100%",borderRadius:"0"}},VQ=function(){return{width:"100vw",height:"100vh"}},HQ=function(n,e,t,o,s,l){return{width:n,minWidth:e,maxWidth:t,height:o,minHeight:s,maxHeight:l}};class Ua{}var ja=(()=>(function(n){n[n.NONE=0]="NONE",n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER"}(ja||(ja={})),ja))(),Bc=(()=>(function(n){n[n.NONE=0]="NONE",n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER",n[n.DARK=5]="DARK",n[n.LIGHT=6]="LIGHT",n[n.PRIMARY=7]="PRIMARY",n[n.SECONDARY=8]="SECONDARY",n[n.LINK=9]="LINK"}(Bc||(Bc={})),Bc))(),jf=(()=>(function(n){n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.WARNING=3]="WARNING",n[n.DANGER=4]="DANGER",n[n.DARK=5]="DARK",n[n.LIGHT=6]="LIGHT",n[n.PRIMARY=7]="PRIMARY",n[n.SECONDARY=8]="SECONDARY"}(jf||(jf={})),jf))(),Su=(()=>(function(n){n[n.NONE=0]="NONE",n.BOUNCE_IN="bounceIn",n.SWING="swing",n.ZOOM_IN="zoomIn",n.ZOOM_IN_ROTATE="zoomInRotate",n.ELASTIC="elastic",n.JELLO="jello",n.FADE_IN="fadeIn",n.SLIDE_IN_UP="slideInUp",n.SLIDE_IN_DOWN="slideInDown",n.SLIDE_IN_LEFT="slideInLeft",n.SLIDE_IN_RIGHT="slideInRight"}(Su||(Su={})),Su))(),Mu=(()=>(function(n){n[n.NONE=0]="NONE",n.ZOOM_OUT_WIND="zoomOutWind",n.BOUNCE_OUT="bounceOut",n.FLIP_OUT="flipOutY",n.ZOOM_OUT="zoomOut",n.ZOOM_OUT_ROTATE="zoomOutRotate",n.SLIDE_OUT_UP="slideOutUp",n.SLIDE_OUT_DOWN="slideOutDown",n.SLIDE_OUT_LEFT="slideOutLeft",n.SLIDE_OUT_RIGHT="slideOutRight"}(Mu||(Mu={})),Mu))();let Nu=(()=>{class n{constructor(t){this.userGlobalConfig=t,this.productionGlobalConfig=new sT,this.authorGlobalConfig=new sT,this.userGeneratedConfig=new mz(t),this.authorGlobalConfig.DisplayColor.Primary=null,this.authorGlobalConfig.DisplayColor.Secondary=null,this.authorGlobalConfig.DisplayColor.Success=null,this.authorGlobalConfig.DisplayColor.Info=null,this.authorGlobalConfig.DisplayColor.Warning=null,this.authorGlobalConfig.DisplayColor.Danger=null,this.authorGlobalConfig.DisplayColor.Light=null,this.authorGlobalConfig.DisplayColor.Dark=null,this.productionGlobalConfig.DisplayColor=this.authorGlobalConfig.DisplayColor,this.setUserColors(this.userGeneratedConfig.ColorList),this.setNodeStyles(this.productionGlobalConfig.DisplayColor)}resetStyles(){this.setUserColors(this.userGeneratedConfig.ColorList),this.setNodeStyles(this.productionGlobalConfig.DisplayColor,!0)}setNodeStyles(t,o=!1){if(o){let s=document.getElementById("ngx-awesome-popup-glob-styles");s&&s.remove()}this.setToastStyles(),Object.keys(t).forEach(s=>{t[s]&&(this.setButtonStyling(s,t[s]),this.setIconStyling(s,t[s]),this.setToastStyling(s,t[s]),this.setDialogFrame(s,t[s]),jf[s.toUpperCase()]===jf.PRIMARY&&this.getSheet("ngx-awesome-popup-styles").addRule(".ngx-awesome-popup-overlay",`background: ${t[s].TransparentDarkenVariance}!important;`))})}setUserColors(t){if("object"!=typeof t)return;const o=Object.keys(t),s=Object.keys(this.productionGlobalConfig.DisplayColor);o.forEach(l=>{if(s.find(u=>u===l))if(t[l]){const u=new bz(t[l]);u.Base&&(this.productionGlobalConfig.DisplayColor[l]=u)}else this.productionGlobalConfig.DisplayColor[l]=null})}getSheet(t){let o=document.getElementById(t);if(!o){const s=document.head||document.getElementsByTagName("head")[0];if(!s)return;o=document.createElement("style"),o.setAttribute("id",t),o.appendChild(document.createTextNode("")),s.appendChild(o)}return o?o.sheet:null}setToastStyling(t,o){const s=`.toast-wrapper.standard-toast .evolve-toast.${t.toLowerCase()}-dialog`,l=`\n background: ${o.BrightShade}!important;\n border-color: ${o.Brighten}!important;\n `,u=`.toast-wrapper.simple-toast .evolve-toast.${t.toLowerCase()}-dialog`,p=`\n background: ${o.BrightWarmly}!important;\n color: ${o.Darken}!important;\n `,w=`.toast-wrapper .evolve-toast.${t.toLowerCase()}-dialog .progress-bar`,S=`\n background-color: ${o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(w,S),this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l),this.getSheet("ngx-awesome-popup-glob-styles").addRule(u,p)}setButtonStyling(t,o){const s=`.ed-btn-${t.toLowerCase()}`,l=`\n color: ${o.ContrastColor}!important;\n background: ${o.Base}!important;\n border-color: ${o.BrightenForShade}!important;\n `,u=`.ed-btn-${t.toLowerCase()}:hover`,p=`\n background: ${o.IsBaseBright?o.DarkenForShade:o.BrightenForShade}!important;\n border-color: ${o.IsBaseBright?o.Darken:o.Brighten}!important;\n `,w=`.ed-btn-${t.toLowerCase()}:focus, .ed-btn-${t.toLowerCase()}:active`,S=`\n box-shadow: 0 0 1px 2px ${o.IsBaseBright?o.Darken:o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l),this.getSheet("ngx-awesome-popup-glob-styles").addRule(u,p),this.getSheet("ngx-awesome-popup-glob-styles").addRule(w,S)}setIconStyling(t,o){const s=`.ap-icon-${t.toLowerCase()}`,l=`color: ${o.BrightenForShade}!important;`;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l)}setDialogFrame(t,o){const s=`.ngx-awesome-popup-overlay .${t.toLowerCase()}-dialog`,l=`\n border-color: ${o.Brighten}!important;\n `;this.getSheet("ngx-awesome-popup-glob-styles").addRule(s,l)}setToastStyles(){this.getSheet("ngx-awesome-popup-styles").addRule(".toast-entity","all 0.5s ease;"),this.getSheet("ngx-awesome-popup-styles").addRule(".toast-entity:first-child","animation: move 0.7s ease-out;"),/msie\s|trident\//i.test(window.navigator.userAgent)||(this.getSheet("ngx-awesome-popup-styles").addRule("@-webkit-keyframes move","\n 0% {margin-top: -5px; opacity: 0.4;}\n 30% {margin-top: -4px; opacity: 0.7;}\n 100% {margin-top: 0px; opacity: 1;}\n "),this.getSheet("ngx-awesome-popup-styles").addRule("@keyframes move","\n 0% {margin-top: -5px; opacity: 0.4;}\n 30% {margin-top: -4px; opacity: 0.7;}\n 100% {margin-top: 0px; opacity: 1;}\n "))}}return n.\u0275fac=function(t){return new(t||n)(Yt("cdGlobalConfig"))},n.\u0275prov=vt({factory:function(){return new n(Yt("cdGlobalConfig"))},token:n,providedIn:"root"}),n})();class Az{constructor(){this.Width=null,this.MinWidth=null,this.MaxWidth=null,this.Height=null,this.MinHeight=null,this.MaxHeight=null,this.FullScreen=null}}class K0{constructor(e,t,o=Bc.PRIMARY){this.Label=e,this.ID=t,this.LayoutType=o}}class mz{constructor(e){if(this.ColorList=new iT,e){const t=new yi;t.copyValuesFrom(e,this);const o=new iT;this.ColorList=t.copyValuesFrom(this.ColorList,o)}}}class iT{constructor(){this.Primary=null,this.Secondary=null,this.Success=null,this.Info=null,this.Warning=null,this.Danger=null,this.Light=null,this.Dark=null}}class sT{constructor(){this.DisplayColor=new yz}}class yz{constructor(){this.Primary=null,this.Secondary=null,this.Success=null,this.Info=null,this.Warning=null,this.Danger=null,this.Light=null,this.Dark=null}}class bz{constructor(e){if(this.Base=null,this.Brighten=null,this.BrightenForShade=null,this.Darken=null,this.DarkenForShade=null,this.ContrastColor=null,this.TransparentDarkenVariance=null,this.BrightShade=null,this.BrightWarmly=null,this.IsBaseBright=null,this.Base=this.isColor(e)){this.Brighten=this.brightness(this.Base,"brighten",25),this.BrightenForShade=this.brightness(this.Base,"brighten",10),this.Darken=this.brightness(this.Base,"darken",20),this.DarkenForShade=this.brightness(this.Base,"darken",10);const t=Math.floor(100*this.luminance(this.Base)),o=t>50?5:t>40?10:t>20?15:t,s=t>55?65:t>45?60:t>20?55:t>10?45:80;this.BrightShade=this.brightness(this.brightness(this.Base,"darken",o),"brighten",s),this.BrightWarmly=this.brightness(this.brightness(this.saturate(this.Base),"darken",o-10),"brighten",s-5),this.TransparentDarkenVariance=this.brightness(this.transparentize(this.Base,80),"darken",40),this.isBright(this.Base)?(this.ContrastColor="rgba(58,65,71,0.5)",this.IsBaseBright=!0):(this.ContrastColor="rgb(255,255,255, 0.7)",this.IsBaseBright=!1)}}saturate(e){const t=this.getRGBArray(e),o=55*this.getLightnessOfRGB(e),[s,l,u]=this.getLowMidHi(t);if(s.val===u.val)return e;const p=Math.round(Math.min(255-o,o)),w=Math.min(255-u.val,s.val),S=Math.min(p/10,w),V=(o-l.val)/(o-u.val)+.07,J=[];return J[u.index]=Math.round(u.val+S),J[s.index]=Math.round(s.val-S),J[l.index]=Math.round(o+(J[u.index]-o)*V+5),`rgb(${[J].join()})`}brightness(e,t,o){const s=this.getRGBArray(e),[l,u,p]=this.getLowMidHi(s);if("brighten"===t&&255===l.val||"darken"===t&&0===p.val)return e;const w=o/100*255;let S=[];if("brighten"===t){S[l.index]=Math.round(l.val+Math.min(255-l.val,w));const V=(S[l.index]-l.val)/(255-l.val);S[u.index]=u.val+(255-u.val)*V,S[p.index]=p.val+(255-p.val)*V}if("darken"===t){S[p.index]=p.val-Math.min(p.val,w);const V=(p.val-S[p.index])/p.val;S[u.index]=u.val-u.val*V,S[l.index]=l.val-l.val*V}return S=S.map(V=>Math.round(V)),s.length>3?(S.push(s[3]),`rgba(${S.join()})`):`rgb(${S.join()})`}getLightnessOfRGB(e){const t=this.getRGBArray(e);return(Math.max(...t)+Math.min(...t))/2/255}isBright(e){return this.contrast(this.luminance(e))}getLowMidHi(e){const t=e.slice(),o=e.length>3?t.reverse().slice(1).reverse():e;let s={val:-1,index:-1},l={val:1/0,index:-1};o.map((w,S)=>{w>s.val&&(s={val:w,index:S}),w+t)}luminance(e){const o=this.getRGBArray(e).map(s=>(s/=255)<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4));return.2126*o[0]+.7152*o[1]+.0722*o[2]}transparentize(e,t){const o=this.Base.replace(/^(rgb|rgba)\(/,"").replace(/\)$/,"").replace(/\s/g,"").split(",").map(l=>+l);return o.length>3&&o.pop(),o.push((100-t)/100),`rgb(${o.join()})`}}class yi{copyValuesFrom(e,t){if("object"!=typeof e)return t;const o=Object.keys(e),s=Object.keys(t);return o.forEach(l=>{if(s.find(u=>u===l||u==="_"+l))if(l.includes("Date")){const u=Date.parse(e[l]);u?t[l]=new Date(u):null!==e[l]&&(t[l]=e[l])}else null!==e[l]&&(t[l]=e[l])}),t}}class Xm{constructor(e,t){this.ParentInjector=e,this.AdditionalTokens=t}get(e,t,o){return this.AdditionalTokens.get(e)||this.ParentInjector.get(e,t)}}const wz=[Vt({transform:"scale3d(0.7, 0.7, 0.7)",offset:0,opacity:0}),Vt({transform:"scale3d(1.3, 1.3, 1.3)",offset:.3,opacity:.3}),Vt({transform:"scale3d(0.95, 0.95, 0.95)",offset:.6,opacity:1}),Vt({transform:"scale3d(1.03, 1.03, 1.03)",opacity:1,offset:.8}),Vt({transform:"transform: scale3d(0.97, 0.97, 0.97)",offset:.9}),Vt({transform:"scale3d(1, 1, 1)",offset:1,opacity:1})],Cz=[Vt({offset:0,opacity:0}),Vt({transform:"rotate3d(0, 0, 1, 10deg)",offset:.2}),Vt({transform:"rotate3d(0, 0, 1, -7deg)",offset:.3,opacity:1}),Vt({transform:"rotate3d(0, 0, 1, 3deg)",offset:.55}),Vt({transform:"rotate3d(0, 0, 1, -3deg)",offset:.8}),Vt({transform:"none",offset:1})],_z=[Vt({transform:"scale3d(0.3, 0.3, 0.3)",offset:0}),Vt({offset:.1,opacity:1}),Vt({transform:"scale3d(1, 1, 1)",offset:1})],Iz=[Vt({transform:"scale(0.1) rotate(30deg)",offset:0,opacity:0}),Vt({transform:"rotate(-10deg)",offset:.5,opacity:1}),Vt({transform:"rotate(3deg)",offset:.7}),Vt({transform:"scale(1)",offset:1})],xz=[Vt({transform:"scale3d(1, 1, 1)",offset:0,opacity:0}),Vt({transform:"scale3d(1.25, 0.75, 1)",offset:.3}),Vt({transform:"scale3d(0.75, 1.25, 1)",offset:.4,opacity:1}),Vt({transform:"scale3d(1.15, 0.85, 1)",offset:.5}),Vt({transform:"scale3d(0.95, 1.05, 1)",offset:.6}),Vt({transform:"scale3d(1.05, 0.95, 1)",offset:.7}),Vt({transform:"scale3d(1, 1, 1)",offset:1})],Ez=[Vt({offset:0,opacity:0}),Vt({transform:"skewX(-12.5deg) skewY(-12.5deg)",offset:.111}),Vt({transform:"skewX(6.25deg) skewY(6.25deg)",offset:.222}),Vt({transform:"skewX(-3.125deg) skewY(-3.125deg)",offset:.333,opacity:1}),Vt({transform:"skewX(1.5625deg) skewY(1.5625deg)",offset:.444}),Vt({transform:"skewX(-0.78125deg) skewY(-0.78125deg)",offset:.555}),Vt({transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.666}),Vt({transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.777}),Vt({transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)",offset:.888}),Vt({transform:"none",offset:1})],Tz=[Vt({offset:0,opacity:0}),Vt({offset:1,opacity:1})],kz=[Vt({offset:0,opacity:0,transform:"translate3d(0, 100%, 0)"}),Vt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],Dz=[Vt({offset:0,opacity:0,transform:"translate3d(0, -100%, 0)"}),Vt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],Bz=[Vt({offset:0,opacity:0,transform:"translate3d(-100%, 0, 0)"}),Vt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],Sz=[Vt({offset:0,opacity:0,transform:"translate3d(100%, 0, 0)"}),Vt({offset:1,opacity:1,transform:"translate3d(0, 0, 0)"})],Mz=[Vt({transform:"scale3d(.475, .475, .475) translate3d(-42px, 0, 0)",offset:.4}),Vt({transform:"scale(.1) translate3d(400px, 0, 0)","transform-origin":"top center",offset:1,opacity:0})],Nz=[Vt({transform:"scale3d(1.3, 1.3, 1.3)",offset:.3}),Vt({transform:"scale3d(0.9, 0.9, 0.9)",offset:.5}),Vt({transform:"scale3d(0.3, 0.3, 0.3)",opacity:0,offset:1})],Oz=[Vt({transform:"perspective(400px)",offset:0}),Vt({transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:1,offset:.33}),Vt({transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:0,offset:.9})],Pz=[Vt({opacity:1,offset:0}),Vt({offset:.5,transform:"scale3d(0.3, 0.3, 0.3)",opacity:0}),Vt({offset:1,opacity:0})],Rz=[Vt({opacity:1,offset:0}),Vt({offset:.9,transform:"rotate(200deg) scale(0.1)",opacity:0})],Fz=[Vt({transform:"translate3d(0, 0, 0)",offset:0}),Vt({transform:"translate3d(0, -100%, 0)",opacity:0,offset:1})],Lz=[Vt({transform:"translate3d(0, 0, 0)",offset:0}),Vt({transform:"translate3d(0, 100%, 0)",opacity:0,offset:1})],Uz=[Vt({transform:"translate3d(0, 0, 0)",offset:0}),Vt({transform:"translate3d(-100%, 0, 0)",opacity:0,offset:1})],jz=[Vt({transform:"translate3d(0, 0, 0)",offset:0}),Vt({transform:"translate3d(100%, 0, 0)",opacity:0,offset:1})],Gz=[Vt({transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)",offset:.15}),Vt({transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)",offset:.3}),Vt({transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)",offset:.45}),Vt({transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)",offset:.6}),Vt({transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)",offset:.75}),Vt({transform:"none",offset:1})];let Kz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=lr({type:n,selectors:[["ed-default-loader"]],decls:7,vars:0,consts:[[1,"box-position"],[1,"loader-center"],[1,"lds-ring"]],template:function(t,o){1&t&&(pe(0,"div",0)(1,"div",1)(2,"div",2),zo(3,"div")(4,"div")(5,"div")(6,"div"),ye()()())},styles:[".box-position[_ngcontent-%COMP%]{height:auto;left:50%;margin:0 auto;position:absolute;text-align:center;top:44%;transform:translate(-50%,-40%)}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%]{display:inline-block;height:80px;position:relative;width:80px}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border:8px solid;border-color:#d4d4d4 transparent transparent transparent;border-radius:50%;box-sizing:border-box;display:block;height:64px;margin:8px;position:absolute;width:64px}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.box-position[_ngcontent-%COMP%] .loader-center[_ngcontent-%COMP%] .lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})(),fT=(()=>{class n{constructor(t={}){this.userConfig=t,this.authorConfig=new Vf,this.productionConfig=new Vf;const o=new Vf,s=new yi;s.copyValuesFrom(t.DialogCoreConfig,o.DialogCoreConfig),t.DialogCoreConfig=o.DialogCoreConfig,null!==t.DialogCoreConfig.LoaderComponent&&(t.DialogCoreConfig.DisplayLoader=null===t.DialogCoreConfig.DisplayLoader),this.authorConfig.DialogCoreConfig.Width="auto",this.authorConfig.DialogCoreConfig.Height="auto",this.authorConfig.DialogCoreConfig.HideScrollbar=!1,this.authorConfig.DialogCoreConfig.EscapeKeyClose=!1,this.authorConfig.DialogCoreConfig.ButtonPosition="right",this.authorConfig.DialogCoreConfig.DisplayLoader=!1,this.authorConfig.DialogCoreConfig.FullScreen=!1,this.authorConfig.DialogCoreConfig.LayoutType=ja.NONE,this.authorConfig.DialogCoreConfig.LoaderComponent=Kz,this.authorConfig.DialogCoreConfig.AnimationIn=Su.ZOOM_IN,this.authorConfig.DialogCoreConfig.AnimationOut=Mu.ZOOM_OUT,s.copyValuesFrom(this.authorConfig.DialogCoreConfig,this.productionConfig.DialogCoreConfig),s.copyValuesFrom(t.DialogCoreConfig,this.productionConfig.DialogCoreConfig)}}return n.\u0275fac=function(t){return new(t||n)(Yt("dialogConfig"))},n.\u0275prov=vt({factory:function(){return new n(Yt("dialogConfig"))},token:n,providedIn:"root"}),n})(),hT=(()=>{class n{constructor(t){this.viewContainerRef=t}}return n.\u0275fac=function(t){return new(t||n)(qe(Ji))},n.\u0275dir=Yn({type:n,selectors:[["","appInsertionLoader",""]]}),n})(),pT=(()=>{class n{constructor(t){this.viewContainerRef=t}}return n.\u0275fac=function(t){return new(t||n)(qe(Ji))},n.\u0275dir=Yn({type:n,selectors:[["","appInsertion",""]]}),n})(),Yz=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.componentFactoryResolver=o,this.cd=s,this.fadeInOutAnimation="open",this.showLoader=!0,setTimeout(()=>{this.boxAnimation=this.dialogBelonging.DialogCoreConfig.AnimationIn},1)}ngAfterViewInit(){this.hideScrollbar(),this.loadChildComponent(this.childComponentType),this.loadLoaderComponent(this.dialogBelonging.DialogCoreConfig.LoaderComponent),this.setDefaultResponse(),this.cd.detectChanges()}hideScrollbar(){this.dialogBelonging.DialogCoreConfig.HideScrollbar&&(this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}revertScrollbarSettings(){this.dialogBelonging.DialogCoreConfig.HideScrollbar&&(document.body.style.overflow=this.bodyOverflow)}setDefaultResponse(){const t=new Wz;t.setBelonging(this.dialogBelonging),this.dialogBelonging.EventsController.setDefaultResponse(t)}ngOnDestroy(){this.revertScrollbarSettings(),this.childComponentRef&&this.childComponentRef.destroy(),this.loaderComponentRef&&this.loaderComponentRef.destroy()}hideScroller(){}loadChildComponent(t){const o=this.componentFactoryResolver.resolveComponentFactory(t),s=this.insertionPoint.viewContainerRef;s.clear(),this.childComponentRef=s.createComponent(o),this.childComponentRef.instance.dialogBelonging=this.dialogBelonging}loadLoaderComponent(t){const o=this.componentFactoryResolver.resolveComponentFactory(t),s=this.loaderInsertionPoint.viewContainerRef;s.clear(),this.loaderComponentRef=s.createComponent(o)}close(){this.dialogBelonging.EventsController.close()}closeParent$(){this.boxAnimation=this.dialogBelonging.DialogCoreConfig.AnimationOut;const t=this.dialogBelonging.DialogCoreConfig.AnimationOut?800:200;return this.fadeInOutAnimation="close-fast",new te(o=>{o.next(""),o.complete()}).pipe(function _m(n,e=bV){const o=function vV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return s=>s.lift(new wV(o,e))}(t))}onOverlayClicked(t){}onCustomButton(t){this.dialogBelonging.EventsController.onButtonClick(t)}closeLoader(){this.showLoader=!1}keyEvent(t){"Escape"===t.key&&this.close()}}return n.\u0275fac=function(t){return new(t||n)(qe("dialogBelonging"),qe(us),qe(pc))},n.\u0275cmp=lr({type:n,selectors:[["dialog-popup-wrapper"]],viewQuery:function(t,o){if(1&t&&(NA(pT,7),NA(hT,7)),2&t){let s;yh(s=bh())&&(o.insertionPoint=s.first),yh(s=bh())&&(o.loaderInsertionPoint=s.first)}},hostBindings:function(t,o){1&t&&Xe("keyup",function(l){return o.keyEvent(l)},0,k4)},decls:13,vars:31,consts:[[1,"ngx-awesome-popup-overlay",3,"dblclick"],[1,"evolve-parent-dialog",3,"ngStyle","ngClass"],[1,"loader-holder",3,"ngClass"],[1,"dialog-loader"],["appInsertionLoader",""],[4,"ngIf","ngIfElse"],["fullScreen",""],[1,"content-holder",3,"ngStyle"],[1,"component-content",3,"ngClass"],["appInsertion",""],[1,"button-holder"],["class","button-section",3,"ngStyle",4,"ngIf"],[1,"button-section",3,"ngStyle"],["class","ed-btn ed-btn-lg",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"ed-btn","ed-btn-lg",3,"ngClass","click"]],template:function(t,o){if(1&t&&(pe(0,"div",0),Xe("dblclick",function(l){return o.onOverlayClicked(l)}),pe(1,"div",1)(2,"div",2)(3,"div",3),Lt(4,PQ,0,0,"ng-template",4),ye()(),Lt(5,RQ,1,0,"ng-container",5),Lt(6,FQ,0,0,"ng-template",null,6,g_),pe(8,"div",7)(9,"div",8),Lt(10,LQ,0,0,"ng-template",9),ye()(),pe(11,"div",10),Lt(12,jQ,2,4,"div",11),ye()()()),2&t){const s=function Cw(n){return Fl(function yB(){return er.lFrame.contextLView}(),io+n)}(7);ke("@fadeInOut",Jd(13,Q0,o.fadeInOutAnimation,qo(11,H0,0===o.dialogBelonging.DialogCoreConfig.AnimationOut?"200ms":"300ms"))),Te(1),ke("@.disabled",0===o.dialogBelonging.DialogCoreConfig.AnimationIn&&0===o.dialogBelonging.DialogCoreConfig.AnimationOut)("@boxAnimations",o.boxAnimation)("ngStyle",o.dialogBelonging.DialogCoreConfig.FullScreen&&IA(16,GQ))("ngClass",function Fs(n,e,t,o,s,l,u,p){const w=Ci()+n,S=Ot(),V=ds(S,w,t,o,s,l);return gi(S,w+4,u)||V?ra(S,w+5,p?e.call(p,t,o,s,l,u):e(t,o,s,l,u)):Hd(S,w+5)}(17,z0,0===o.dialogBelonging.DialogCoreConfig.LayoutType,1===o.dialogBelonging.DialogCoreConfig.LayoutType,2===o.dialogBelonging.DialogCoreConfig.LayoutType,3===o.dialogBelonging.DialogCoreConfig.LayoutType,4===o.dialogBelonging.DialogCoreConfig.LayoutType)),Te(1),ke("ngClass",o.dialogBelonging.DialogCoreConfig.DisplayLoader?o.showLoader?"dialog-loader-active":"dialog-loader-gone":"dialog-loader-off"),Te(3),ke("ngIf",!o.dialogBelonging.DialogCoreConfig.FullScreen)("ngIfElse",s),Te(3),ke("ngStyle",o.dialogBelonging.DialogCoreConfig.FullScreen?IA(23,VQ):function e_(n,e,t,o,s,l,u,p,w){const S=Ci()+n,V=Ot(),J=ds(V,S,t,o,s,l);return nl(V,S+4,u,p)||J?ra(V,S+6,w?e.call(w,t,o,s,l,u,p):e(t,o,s,l,u,p)):Hd(V,S+6)}(24,HQ,o.dialogBelonging.DialogCoreConfig.Width,o.dialogBelonging.DialogCoreConfig.MinWidth,o.dialogBelonging.DialogCoreConfig.MaxWidth,o.dialogBelonging.DialogCoreConfig.Height,o.dialogBelonging.DialogCoreConfig.MinHeight,o.dialogBelonging.DialogCoreConfig.MaxHeight)),Te(1),ke("ngClass",o.dialogBelonging.DialogCoreConfig.DisplayLoader?o.showLoader?"component-content-preparing":"component-content-ready":"component-content-loader-off"),Te(3),ke("ngIf",o.dialogBelonging.Buttons.length>0)}},dependencies:[lf,Ir,ps,uf,pT,hT],styles:['.ed-btn-sm[_ngcontent-%COMP%]{font-size:12px;font-weight:normal;margin-right:3px;min-width:40px;padding:2px 8px}.ed-btn-md[_ngcontent-%COMP%]{font-size:14px;margin-right:5px;min-width:60px;padding:3px 10px}.ed-btn-lg[_ngcontent-%COMP%]{font-size:16px;margin-right:5px;min-width:70px;padding:4px 10px}.ed-btn[_ngcontent-%COMP%]{background-color:transparent;border:none;border-radius:3px;cursor:pointer;display:inline-block;line-height:1.5;text-align:center;text-decoration:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.ed-btn[_ngcontent-%COMP%]:hover{color:#989ea5}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn[_ngcontent-%COMP%], .ed-btn[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px;outline:0}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn[_ngcontent-%COMP%], .ed-btn[_ngcontent-%COMP%]:active, .ed-btn.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn[_ngcontent-%COMP%]:focus, .ed-btn[_ngcontent-%COMP%]:active:focus, .ed-btn.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px}.ed-btn[_ngcontent-%COMP%]:disabled, .ed-btn.disabled[_ngcontent-%COMP%], fieldset[_ngcontent-%COMP%]:disabled .ed-btn[_ngcontent-%COMP%]{box-shadow:none;opacity:.6;pointer-events:none}.ed-btn-primary[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#ff9e00;border-color:#ff9e00}.ed-btn-primary[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#ffa81a;background:#ffb133}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-primary[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #ffa81a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-primary[_ngcontent-%COMP%], .ed-btn-primary[_ngcontent-%COMP%]:active, .ed-btn-primary.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #ffa81a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-primary[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-primary[_ngcontent-%COMP%]:focus, .ed-btn-primary[_ngcontent-%COMP%]:active:focus, .ed-btn-primary.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #ffa81a}.ed-btn-secondary[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#989ea5;border-color:#989ea5}.ed-btn-secondary[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#a6abb1;background:#b3b8bd}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-secondary[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #a6abb1}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-secondary[_ngcontent-%COMP%], .ed-btn-secondary[_ngcontent-%COMP%]:active, .ed-btn-secondary.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #a6abb1}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-secondary[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-secondary[_ngcontent-%COMP%]:focus, .ed-btn-secondary[_ngcontent-%COMP%]:active:focus, .ed-btn-secondary.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #a6abb1}.ed-btn-success[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#3caea3;border-color:#3caea3}.ed-btn-success[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#45bfb3;background:#58c5bb}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-success[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #45bfb3}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-success[_ngcontent-%COMP%], .ed-btn-success[_ngcontent-%COMP%]:active, .ed-btn-success.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #45bfb3}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-success[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-success[_ngcontent-%COMP%]:focus, .ed-btn-success[_ngcontent-%COMP%]:active:focus, .ed-btn-success.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #45bfb3}.ed-btn-info[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#2f8ee5;border-color:#2f8ee5}.ed-btn-info[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#469ae8;background:#5ca7eb}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-info[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #469ae8}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-info[_ngcontent-%COMP%], .ed-btn-info[_ngcontent-%COMP%]:active, .ed-btn-info.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #469ae8}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-info[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-info[_ngcontent-%COMP%]:focus, .ed-btn-info[_ngcontent-%COMP%]:active:focus, .ed-btn-info.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #469ae8}.ed-btn-warning[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#ffc107;border-color:#ffc107}.ed-btn-warning[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#ffc721;background:#ffce3a}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-warning[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #ffc721}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-warning[_ngcontent-%COMP%], .ed-btn-warning[_ngcontent-%COMP%]:active, .ed-btn-warning.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #ffc721}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-warning[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-warning[_ngcontent-%COMP%]:focus, .ed-btn-warning[_ngcontent-%COMP%]:active:focus, .ed-btn-warning.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #ffc721}.ed-btn-danger[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#e46464;border-color:#e46464}.ed-btn-danger[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#e87a7a;background:#ec8f8f}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-danger[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #e87a7a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-danger[_ngcontent-%COMP%], .ed-btn-danger[_ngcontent-%COMP%]:active, .ed-btn-danger.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #e87a7a}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-danger[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-danger[_ngcontent-%COMP%]:focus, .ed-btn-danger[_ngcontent-%COMP%]:active:focus, .ed-btn-danger.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #e87a7a}.ed-btn-light[_ngcontent-%COMP%]{color:#343a40cc;background:#fbfbfb;border-color:#fbfbfb}.ed-btn-light[_ngcontent-%COMP%]:hover{color:#343a40;border-color:#fff;background:white}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-light[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #fff}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-light[_ngcontent-%COMP%], .ed-btn-light[_ngcontent-%COMP%]:active, .ed-btn-light.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #fff}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-light[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-light[_ngcontent-%COMP%]:focus, .ed-btn-light[_ngcontent-%COMP%]:active:focus, .ed-btn-light.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #fff}.ed-btn-dark[_ngcontent-%COMP%]{color:#fbfbfbcc;background:#343a40;border-color:#343a40}.ed-btn-dark[_ngcontent-%COMP%]:hover{color:#fbfbfb;border-color:#3f474e;background:#4b545c}.ed-btn-check[_ngcontent-%COMP%]:focus + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-dark[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 1px 2px #3f474e}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-dark[_ngcontent-%COMP%], .ed-btn-dark[_ngcontent-%COMP%]:active, .ed-btn-dark.active[_ngcontent-%COMP%]{box-shadow:0 0 1px 2px #3f474e}.ed-btn-check[_ngcontent-%COMP%]:checked + .ed-btn-dark[_ngcontent-%COMP%]:focus, .ed-btn-check[_ngcontent-%COMP%]:active + .ed-btn-dark[_ngcontent-%COMP%]:focus, .ed-btn-dark[_ngcontent-%COMP%]:active:focus, .ed-btn-dark.active[_ngcontent-%COMP%]:focus{box-shadow:0 0 1px 2px #3f474e}@font-face{font-family:"icomoon";src:url(data:font/eot;base64,CAgAAGQHAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA/2/OwAAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFbwAAALwAAABgY21hcBdW0ooAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmw5gfRwAAAXgAAAOUaGVhZBxow6wAAAUMAAAANmhoZWEHuQPJAAAFRAAAACRobXR4FEoACQAABWgAAAAgbG9jYQLuAhQAAAWIAAAAEm1heHAADABaAAAFnAAAACBuYW1lmUoJ+wAABbwAAAGGcG9zdAADAAAAAAdEAAAAIAADA0IBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkDA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpA//9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAAAAA24DbgA7AFcAAAE0Ji8BNz4BNTQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BBw4BFRQWHwEeATMyNj8BFx4BMzI2PwE+ATcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCkQYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg0IBw0FaGcFDgcHDgU0BQbdIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjATYHDQVoZwUOBwcOBTQFBgYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg2JW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAwAJAAAD9wO3AA8AJgA8AAAlNTQmKwEiBh0BFBY7ATI2JxM0JicuASsBIgYHDgEVExQWOwEyNjUDARYUBw4BIyEiJicmNDcBPgEzMhYXAkkKCG4ICgoIbggKAQoCAwMHBH4EBwMDAgkMCGoHDAgBtwkKCiIT/JITIgoKCQG3CSMUFCMJpW0HDAwHbQgLC94BBgMGAgIEBAICBwP++wYHBwYCFvzbESYRERMTEREmEQMlERUVEQAAAAIAAAAAA24DbgAkAEAAAAE0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAR4BMzI2NwE+ATUXFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAt4FBjQFDQcIDQXpgQUOBwcOBTQFBQUFzwUOBwcOBQE2BgWQIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjAhMIDgUzBQYGBeiBBQYGBTQFDgcHDgXPBQUFBQE3BQ0HXFtQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAwAAAAADbgNuAB8ALwBLAAAlNTQmKwERNCYrASIGHQEUFjsBFSMiBh0BFBYzITI2NQM1NCYrASIGHQEUFjsBMjYFFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAkkKCDcLB7cICgoINzcICgoIAQAICkkLB24ICgoIbgcLAW4jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiOlWwgKASUICgoIXAcLtwoIWwgLCwgCAFsICgoIWwgLC+ZbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAABAAAAAAAAwM5v/18PPPUACwQAAAAAANyqP3wAAAAA3Ko/fAAAAAAD9wO3AAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAP3AAEAAAAAAAAAAAAAAAAAAAAIBAAAAAAAAAAAAAAAAgAAAANuAAAEAAAJA24AAANuAAAAAAAAAAoAFAAeAKAA/AFgAcoAAAABAAAACABYAAMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==);src:url(data:font/eot;base64,CAgAAGQHAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA/2/OwAAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFbwAAALwAAABgY21hcBdW0ooAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmw5gfRwAAAXgAAAOUaGVhZBxow6wAAAUMAAAANmhoZWEHuQPJAAAFRAAAACRobXR4FEoACQAABWgAAAAgbG9jYQLuAhQAAAWIAAAAEm1heHAADABaAAAFnAAAACBuYW1lmUoJ+wAABbwAAAGGcG9zdAADAAAAAAdEAAAAIAADA0IBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkDA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpA//9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAAAAA24DbgA7AFcAAAE0Ji8BNz4BNTQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BBw4BFRQWHwEeATMyNj8BFx4BMzI2PwE+ATcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCkQYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg0IBw0FaGcFDgcHDgU0BQbdIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjATYHDQVoZwUOBwcOBTQFBgYFaGgFBgYFNAUOBwcOBWdoBQ0HCA0GMwUGBgVnZwUGBgUzBg2JW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAwAJAAAD9wO3AA8AJgA8AAAlNTQmKwEiBh0BFBY7ATI2JxM0JicuASsBIgYHDgEVExQWOwEyNjUDARYUBw4BIyEiJicmNDcBPgEzMhYXAkkKCG4ICgoIbggKAQoCAwMHBH4EBwMDAgkMCGoHDAgBtwkKCiIT/JITIgoKCQG3CSMUFCMJpW0HDAwHbQgLC94BBgMGAgIEBAICBwP++wYHBwYCFvzbESYRERMTEREmEQMlERUVEQAAAAIAAAAAA24DbgAkAEAAAAE0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAR4BMzI2NwE+ATUXFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAt4FBjQFDQcIDQXpgQUOBwcOBTQFBQUFzwUOBwcOBQE2BgWQIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjAhMIDgUzBQYGBeiBBQYGBTQFDgcHDgXPBQUFBQE3BQ0HXFtQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAwAAAAADbgNuAB8ALwBLAAAlNTQmKwERNCYrASIGHQEUFjsBFSMiBh0BFBYzITI2NQM1NCYrASIGHQEUFjsBMjYFFAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWAkkKCDcLB7cICgoINzcICgoIAQAICkkLB24ICgoIbgcLAW4jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiOlWwgKASUICgoIXAcLtwoIWwgLCwgCAFsICgoIWwgLC+ZbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAABAAAAAAAAwM5v/18PPPUACwQAAAAAANyqP3wAAAAA3Ko/fAAAAAAD9wO3AAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAP3AAEAAAAAAAAAAAAAAAAAAAAIBAAAAAAAAAAAAAAAAgAAAANuAAAEAAAJA24AAANuAAAAAAAAAAoAFAAeAKAA/AFgAcoAAAABAAAACABYAAMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format("embedded-opentype"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBW8AAAC8AAAAYGNtYXAXVtKKAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZsOYH0cAAAF4AAADlGhlYWQcaMOsAAAFDAAAADZoaGVhB7kDyQAABUQAAAAkaG10eBRKAAkAAAVoAAAAIGxvY2EC7gIUAAAFiAAAABJtYXhwAAwAWgAABZwAAAAgbmFtZZlKCfsAAAW8AAABhnBvc3QAAwAAAAAHRAAAACAAAwNCAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAwPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QP//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAACAAAAAANuA24AOwBXAAABNCYvATc+ATU0Ji8BLgEjIgYPAScuASMiBg8BDgEVFBYfAQcOARUUFh8BHgEzMjY/ARceATMyNj8BPgE3FAcOAQcGIyInLgEnJjU0Nz4BNzYzMhceARcWApEGBWhoBQYGBTQFDgcHDgVnaAUNBwgNBjMFBgYFZ2cFBgYFMwYNCAcNBWhnBQ4HBw4FNAUG3SMid1BQW1tQUHcjIiIjd1BQW1tQUHciIwE2Bw0FaGcFDgcHDgU0BQYGBWhoBQYGBTQFDgcHDgVnaAUNBwgNBjMFBgYFZ2cFBgYFMwYNiVtQUHciIyMid1BQW1tQUHciIyMid1BQAAMACQAAA/cDtwAPACYAPAAAJTU0JisBIgYdARQWOwEyNicTNCYnLgErASIGBw4BFRMUFjsBMjY1AwEWFAcOASMhIiYnJjQ3AT4BMzIWFwJJCghuCAoKCG4ICgEKAgMDBwR+BAcDAwIJDAhqBwwIAbcJCgoiE/ySEyIKCgkBtwkjFBQjCaVtBwwMB20ICwveAQYDBgICBAQCAgcD/vsGBwcGAhb82xEmERETExERJhEDJREVFREAAAACAAAAAANuA24AJABAAAABNCYvAS4BIyIGDwEnLgEjIgYPAQ4BFRQWHwEeATMyNjcBPgE1FxQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgLeBQY0BQ0HCA0F6YEFDgcHDgU0BQUFBc8FDgcHDgUBNgYFkCMid1BQW1tQUHcjIiIjd1BQW1tQUHciIwITCA4FMwUGBgXogQUGBgU0BQ4HBw4FzwUFBQUBNwUNB1xbUFB3IiMjIndQUFtbUFB3IiMjIndQUAAAAAMAAAAAA24DbgAfAC8ASwAAJTU0JisBETQmKwEiBh0BFBY7ARUjIgYdARQWMyEyNjUDNTQmKwEiBh0BFBY7ATI2BRQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgJJCgg3Cwe3CAoKCDc3CAoKCAEACApJCwduCAoKCG4HCwFuIyJ3UFBbW1BQdyMiIiN3UFBbW1BQdyIjpVsICgElCAoKCFwHC7cKCFsICwsIAgBbCAoKCFsICwvmW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAAAAAQAAAAAAAMDOb/9fDzz1AAsEAAAAAADcqj98AAAAANyqP3wAAAAAA/cDtwAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAAD9wABAAAAAAAAAAAAAAAAAAAACAQAAAAAAAAAAAAAAAIAAAADbgAABAAACQNuAAADbgAAAAAAAAAKABQAHgCgAPwBYAHKAAAAAQAAAAgAWAADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format("truetype"),url(data:font/woff;base64,d09GRgABAAAAAAewAAsAAAAAB2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFb2NtYXAAAAFoAAAAVAAAAFQXVtKKZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAA5QAAAOUw5gfR2hlYWQAAAVYAAAANgAAADYcaMOsaGhlYQAABZAAAAAkAAAAJAe5A8lobXR4AAAFtAAAACAAAAAgFEoACWxvY2EAAAXUAAAAEgAAABIC7gIUbWF4cAAABegAAAAgAAAAIAAMAFpuYW1lAAAGCAAAAYYAAAGGmUoJ+3Bvc3QAAAeQAAAAIAAAACAAAwAAAAMDQgGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QMDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkD//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgAAAAADbgNuADsAVwAAATQmLwE3PgE1NCYvAS4BIyIGDwEnLgEjIgYPAQ4BFRQWHwEHDgEVFBYfAR4BMzI2PwEXHgEzMjY/AT4BNxQHDgEHBiMiJy4BJyY1NDc+ATc2MzIXHgEXFgKRBgVoaAUGBgU0BQ4HBw4FZ2gFDQcIDQYzBQYGBWdnBQYGBTMGDQgHDQVoZwUOBwcOBTQFBt0jIndQUFtbUFB3IyIiI3dQUFtbUFB3IiMBNgcNBWhnBQ4HBw4FNAUGBgVoaAUGBgU0BQ4HBw4FZ2gFDQcIDQYzBQYGBWdnBQYGBTMGDYlbUFB3IiMjIndQUFtbUFB3IiMjIndQUAADAAkAAAP3A7cADwAmADwAACU1NCYrASIGHQEUFjsBMjYnEzQmJy4BKwEiBgcOARUTFBY7ATI2NQMBFhQHDgEjISImJyY0NwE+ATMyFhcCSQoIbggKCghuCAoBCgIDAwcEfgQHAwMCCQwIagcMCAG3CQoKIhP8khMiCgoJAbcJIxQUIwmlbQcMDAdtCAsL3gEGAwYCAgQEAgIHA/77BgcHBgIW/NsRJhERExMRESYRAyURFRURAAAAAgAAAAADbgNuACQAQAAAATQmLwEuASMiBg8BJy4BIyIGDwEOARUUFh8BHgEzMjY3AT4BNRcUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYC3gUGNAUNBwgNBemBBQ4HBw4FNAUFBQXPBQ4HBw4FATYGBZAjIndQUFtbUFB3IyIiI3dQUFtbUFB3IiMCEwgOBTMFBgYF6IEFBgYFNAUOBwcOBc8FBQUFATcFDQdcW1BQdyIjIyJ3UFBbW1BQdyIjIyJ3UFAAAAADAAAAAANuA24AHwAvAEsAACU1NCYrARE0JisBIgYdARQWOwEVIyIGHQEUFjMhMjY1AzU0JisBIgYdARQWOwEyNgUUBw4BBwYjIicuAScmNTQ3PgE3NjMyFx4BFxYCSQoINwsHtwgKCgg3NwgKCggBAAgKSQsHbggKCghuBwsBbiMid1BQW1tQUHcjIiIjd1BQW1tQUHciI6VbCAoBJQgKCghcBwu3CghbCAsLCAIAWwgKCghbCAsL5ltQUHciIyMid1BQW1tQUHciIyMid1BQAAAAAAEAAAAAAADAzm//Xw889QALBAAAAAAA3Ko/fAAAAADcqj98AAAAAAP3A7cAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA/cAAQAAAAAAAAAAAAAAAAAAAAgEAAAAAAAAAAAAAAACAAAAA24AAAQAAAkDbgAAA24AAAAAAAAACgAUAB4AoAD8AWABygAAAAEAAAAIAFgAAwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff"),url(data:font/svg;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiID4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPG1ldGFkYXRhPkdlbmVyYXRlZCBieSBJY29Nb29uPC9tZXRhZGF0YT4KCTxkZWZzPgoJCTxmb250IGlkPSJpY29tb29uIiBob3Jpei1hZHYteD0iMTAyNCI+CgkJCTxmb250LWZhY2UgdW5pdHMtcGVyLWVtPSIxMDI0IiBhc2NlbnQ9Ijk2MCIgZGVzY2VudD0iLTY0Ii8+CgkJCTxtaXNzaW5nLWdseXBoIGhvcml6LWFkdi14PSIxMDI0Ii8+CgkJCTxnbHlwaCB1bmljb2RlPSImI3gyMDsiIGhvcml6LWFkdi14PSI1MTIiIGQ9IiIvPgoJCQk8Z2x5cGggdW5pY29kZT0iJiN4ZTkwMDsiIGdseXBoLW5hbWU9InRpbWVzLWNpcmNsZSIgaG9yaXotYWR2LXg9Ijg3OCIgZD0iTTY1Ni41NzEgMzA5LjcxNGMwIDkuNzE0LTQgMTguODU3LTEwLjg1NyAyNS43MTRsLTEwMy40MjkgMTAzLjQyOSAxMDMuNDI5IDEwMy40MjljNi44NTcgNi44NTcgMTAuODU3IDE2IDEwLjg1NyAyNS43MTRzLTQgMTkuNDI5LTEwLjg1NyAyNi4yODZsLTUxLjQyOSA1MS40MjljLTYuODU3IDYuODU3LTE2LjU3MSAxMC44NTctMjYuMjg2IDEwLjg1N3MtMTguODU3LTQtMjUuNzE0LTEwLjg1N2wtMTAzLjQyOS0xMDMuNDI5LTEwMy40MjkgMTAzLjQyOWMtNi44NTcgNi44NTctMTYgMTAuODU3LTI1LjcxNCAxMC44NTdzLTE5LjQyOS00LTI2LjI4Ni0xMC44NTdsLTUxLjQyOS01MS40MjljLTYuODU3LTYuODU3LTEwLjg1Ny0xNi41NzEtMTAuODU3LTI2LjI4NnM0LTE4Ljg1NyAxMC44NTctMjUuNzE0bDEwMy40MjktMTAzLjQyOS0xMDMuNDI5LTEwMy40MjljLTYuODU3LTYuODU3LTEwLjg1Ny0xNi0xMC44NTctMjUuNzE0czQtMTkuNDI5IDEwLjg1Ny0yNi4yODZsNTEuNDI5LTUxLjQyOWM2Ljg1Ny02Ljg1NyAxNi41NzEtMTAuODU3IDI2LjI4Ni0xMC44NTdzMTguODU3IDQgMjUuNzE0IDEwLjg1N2wxMDMuNDI5IDEwMy40MjkgMTAzLjQyOS0xMDMuNDI5YzYuODU3LTYuODU3IDE2LTEwLjg1NyAyNS43MTQtMTAuODU3czE5LjQyOSA0IDI2LjI4NiAxMC44NTdsNTEuNDI5IDUxLjQyOWM2Ljg1NyA2Ljg1NyAxMC44NTcgMTYuNTcxIDEwLjg1NyAyNi4yODZ6TTg3Ny43MTQgNDM4Ljg1N2MwLTI0Mi4yODYtMTk2LjU3MS00MzguODU3LTQzOC44NTctNDM4Ljg1N3MtNDM4Ljg1NyAxOTYuNTcxLTQzOC44NTcgNDM4Ljg1NyAxOTYuNTcxIDQzOC44NTcgNDM4Ljg1NyA0MzguODU3IDQzOC44NTctMTk2LjU3MSA0MzguODU3LTQzOC44NTd6Ii8+CgkJCTxnbHlwaCB1bmljb2RlPSImI3hlOTAxOyIgZ2x5cGgtbmFtZT0iZXhjbGFtYXRpb24tdHJpYW5nbGUsIHdhcm5pbmciIGQ9Ik01ODUuMTQzIDE2NS4xNDN2MTA4LjU3MWMwIDEwLjI4Ni04IDE4Ljg1Ny0xOC4yODYgMTguODU3aC0xMDkuNzE0Yy0xMC4yODYgMC0xOC4yODYtOC41NzEtMTguMjg2LTE4Ljg1N3YtMTA4LjU3MWMwLTEwLjI4NiA4LTE4Ljg1NyAxOC4yODYtMTguODU3aDEwOS43MTRjMTAuMjg2IDAgMTguMjg2IDguNTcxIDE4LjI4NiAxOC44NTd6TTU4NCAzNzguODU3bDEwLjI4NiAyNjIuMjg2YzAgMy40MjktMS43MTQgOC01LjcxNCAxMC44NTctMy40MjkgMi44NTctOC41NzEgNi4yODYtMTMuNzE0IDYuMjg2aC0xMjUuNzE0Yy01LjE0MyAwLTEwLjI4Ni0zLjQyOS0xMy43MTQtNi4yODYtNC0yLjg1Ny01LjcxNC04LjU3MS01LjcxNC0xMmw5LjcxNC0yNjEuMTQzYzAtNy40MjkgOC41NzEtMTMuMTQzIDE5LjQyOS0xMy4xNDNoMTA1LjcxNGMxMC4yODYgMCAxOC44NTcgNS43MTQgMTkuNDI5IDEzLjE0M3pNNTc2IDkxMi41NzFsNDM4Ljg1Ny04MDQuNTcxYzEyLjU3MS0yMi4yODYgMTItNDkuNzE0LTEuMTQzLTcycy0zNy4xNDMtMzYtNjIuODU3LTM2aC04NzcuNzE0Yy0yNS43MTQgMC00OS43MTQgMTMuNzE0LTYyLjg1NyAzNnMtMTMuNzE0IDQ5LjcxNC0xLjE0MyA3Mmw0MzguODU3IDgwNC41NzFjMTIuNTcxIDIzLjQyOSAzNy4xNDMgMzguMjg2IDY0IDM4LjI4NnM1MS40MjktMTQuODU3IDY0LTM4LjI4NnoiLz4KCQkJPGdseXBoIHVuaWNvZGU9IiYjeGU5MDI7IiBnbHlwaC1uYW1lPSJjaGVjay1jaXJjbGUiIGhvcml6LWFkdi14PSI4NzgiIGQ9Ik03MzMuNzE0IDUzMS40MjhjMCA5LjcxNC0zLjQyOSAxOS40MjktMTAuMjg2IDI2LjI4NmwtNTIgNTEuNDI5Yy02Ljg1NyA2Ljg1Ny0xNiAxMC44NTctMjUuNzE0IDEwLjg1N3MtMTguODU3LTQtMjUuNzE0LTEwLjg1N2wtMjMzLjE0My0yMzIuNTcxLTEyOS4xNDMgMTI5LjE0M2MtNi44NTcgNi44NTctMTYgMTAuODU3LTI1LjcxNCAxMC44NTdzLTE4Ljg1Ny00LTI1LjcxNC0xMC44NTdsLTUyLTUxLjQyOWMtNi44NTctNi44NTctMTAuMjg2LTE2LjU3MS0xMC4yODYtMjYuMjg2czMuNDI5LTE4Ljg1NyAxMC4yODYtMjUuNzE0bDIwNi44NTctMjA2Ljg1N2M2Ljg1Ny02Ljg1NyAxNi41NzEtMTAuODU3IDI1LjcxNC0xMC44NTcgOS43MTQgMCAxOS40MjkgNCAyNi4yODYgMTAuODU3bDMxMC4yODYgMzEwLjI4NmM2Ljg1NyA2Ljg1NyAxMC4yODYgMTYgMTAuMjg2IDI1LjcxNHpNODc3LjcxNCA0MzguODU3YzAtMjQyLjI4Ni0xOTYuNTcxLTQzOC44NTctNDM4Ljg1Ny00MzguODU3cy00MzguODU3IDE5Ni41NzEtNDM4Ljg1NyA0MzguODU3IDE5Ni41NzEgNDM4Ljg1NyA0MzguODU3IDQzOC44NTcgNDM4Ljg1Ny0xOTYuNTcxIDQzOC44NTctNDM4Ljg1N3oiLz4KCQkJPGdseXBoIHVuaWNvZGU9IiYjeGU5MDM7IiBnbHlwaC1uYW1lPSJpbmZvLWNpcmNsZSIgaG9yaXotYWR2LXg9Ijg3OCIgZD0iTTU4NS4xNDMgMTY0LjU3MXY5MS40MjljMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtNTQuODU3djI5Mi41NzFjMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtMTgyLjg1N2MtMTAuMjg2IDAtMTguMjg2LTgtMTguMjg2LTE4LjI4NnYtOTEuNDI5YzAtMTAuMjg2IDgtMTguMjg2IDE4LjI4Ni0xOC4yODZoNTQuODU3di0xODIuODU3aC01NC44NTdjLTEwLjI4NiAwLTE4LjI4Ni04LTE4LjI4Ni0xOC4yODZ2LTkxLjQyOWMwLTEwLjI4NiA4LTE4LjI4NiAxOC4yODYtMTguMjg2aDI1NmMxMC4yODYgMCAxOC4yODYgOCAxOC4yODYgMTguMjg2ek01MTIgNjc2LjU3MXY5MS40MjljMCAxMC4yODYtOCAxOC4yODYtMTguMjg2IDE4LjI4NmgtMTA5LjcxNGMtMTAuMjg2IDAtMTguMjg2LTgtMTguMjg2LTE4LjI4NnYtOTEuNDI5YzAtMTAuMjg2IDgtMTguMjg2IDE4LjI4Ni0xOC4yODZoMTA5LjcxNGMxMC4yODYgMCAxOC4yODYgOCAxOC4yODYgMTguMjg2ek04NzcuNzE0IDQzOC44NTdjMC0yNDIuMjg2LTE5Ni41NzEtNDM4Ljg1Ny00MzguODU3LTQzOC44NTdzLTQzOC44NTcgMTk2LjU3MS00MzguODU3IDQzOC44NTcgMTk2LjU3MSA0MzguODU3IDQzOC44NTcgNDM4Ljg1NyA0MzguODU3LTE5Ni41NzEgNDM4Ljg1Ny00MzguODU3eiIvPgoJCTwvZm9udD48L2RlZnM+Cjwvc3ZnPgo=) format("svg");font-weight:normal;font-style:normal;font-display:block}[class^=icon-][_ngcontent-%COMP%], [class*=" icon-"][_ngcontent-%COMP%]{font-family:"icomoon"!important;-webkit-font-smoothing:antialiased;font-style:normal;font-feature-settings:normal;font-variant:normal;font-weight:normal;line-height:1;-moz-osx-font-smoothing:grayscale;speak:never;text-transform:none}.icon-times-circle[_ngcontent-%COMP%]:before{content:"\\e900"}.icon-exclamation-triangle[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-warning[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-check-circle[_ngcontent-%COMP%]:before{content:"\\e902"}.icon-info-circle[_ngcontent-%COMP%]:before{content:"\\e903"}.ngx-awesome-popup-overlay[_ngcontent-%COMP%]{align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:rgba(51,32,0,.4);bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;opacity:0;position:fixed;right:0;top:0;z-index:999999999}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{text-align:center}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%]{width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{display:block;width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%], .evolve-toast[_ngcontent-%COMP%] .text-wrapper-section[_ngcontent-%COMP%] .dont-break-out[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;white-space:pre-wrap;word-wrap:break-word}.evolve-parent-dialog[_ngcontent-%COMP%], .evolve-confirm-box[_ngcontent-%COMP%]{background:#fbfbfb;border-radius:5px;border-top:7px solid;box-shadow:0 0 4px 1px #00000040;display:flex;flex-direction:column;max-height:calc(100vh - 100px);max-width:calc(100vw - 100px);box-sizing:border-box;position:relative;vertical-align:bottom}.evolve-parent-dialog.standard-dialog[_ngcontent-%COMP%], .evolve-confirm-box.standard-dialog[_ngcontent-%COMP%]{border-color:transparent;padding:17px 20px 10px}.evolve-parent-dialog.success-dialog[_ngcontent-%COMP%], .evolve-confirm-box.success-dialog[_ngcontent-%COMP%]{border-color:#3caea3}.evolve-parent-dialog.info-dialog[_ngcontent-%COMP%], .evolve-confirm-box.info-dialog[_ngcontent-%COMP%]{border-color:#2f8ee5}.evolve-parent-dialog.warning-dialog[_ngcontent-%COMP%], .evolve-confirm-box.warning-dialog[_ngcontent-%COMP%]{border-color:#ffc107}.evolve-parent-dialog.danger-dialog[_ngcontent-%COMP%], .evolve-confirm-box.danger-dialog[_ngcontent-%COMP%]{border-color:#e46464}.ap-icon-success[_ngcontent-%COMP%]{color:#58c5bb}.ap-icon-info[_ngcontent-%COMP%]{color:#5ca7eb}.ap-icon-warning[_ngcontent-%COMP%]{color:#ffce3a}.ap-icon-danger[_ngcontent-%COMP%]{color:#ec8f8f}.evolve-parent-dialog[_ngcontent-%COMP%]{padding:20px 20px 10px;opacity:0}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content[_ngcontent-%COMP%]{height:100%;max-width:95vw;transition-delay:.4s;transition-duration:.4s;transition-property:opacity;transition-timing-function:linear;width:100%}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-loader-off[_ngcontent-%COMP%]{opacity:1!important;transition:none!important}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-preparing[_ngcontent-%COMP%]{opacity:0;transition:none!important}.evolve-parent-dialog[_ngcontent-%COMP%] .component-content-ready[_ngcontent-%COMP%]{height:100%;opacity:1}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader[_ngcontent-%COMP%]{opacity:1}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-off[_ngcontent-%COMP%]{display:none;opacity:0!important}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-gone[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.evolve-parent-dialog[_ngcontent-%COMP%] .dialog-loader-active[_ngcontent-%COMP%]{opacity:1}.loader-holder[_ngcontent-%COMP%]{align-items:center;background:#fbfbfb;display:flex;flex-direction:column;height:100%;justify-content:center;margin:-20px;opacity:1;position:absolute;transition-delay:.4s;transition-duration:.4s;transition-property:opacity;transition-timing-function:linear;width:100%}.content-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:calc(100vw - 100px);overflow:auto}.button-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;width:100%}.button-holder[_ngcontent-%COMP%] .button-section[_ngcontent-%COMP%]{background:rgba(222,226,230,.2);border-top:1px solid rgba(152,158,165,.2);margin:20px -20px -10px;padding:5px 20px}'],data:{animation:[gE("fadeInOut",[wo("open",Vt({opacity:1})),wo("close-fast",Vt({opacity:0})),wo("close-instant",Vt({opacity:0})),fo("* => close-fast",[xV("*",[IV()]),uo("{{closeDelay}}")]),fo("* => open",[uo(100)]),fo("* => close-instant",[uo(0)])]),gE("boxAnimations",[wo("bounceIn",Vt({opacity:1})),wo("swing",Vt({opacity:1})),wo("zoomIn",Vt({opacity:1})),wo("zoomInRotate",Vt({opacity:1})),wo("elastic",Vt({opacity:1})),wo("jello",Vt({opacity:1})),wo("fadeIn",Vt({opacity:1})),wo("slideInUp",Vt({opacity:1})),wo("slideInDown",Vt({opacity:1})),wo("slideInLeft",Vt({opacity:1})),wo("slideInRight",Vt({opacity:1})),fo("* => bounceIn",uo("1000ms cubic-bezier(0.215, 0.61, 0.355, 1)",Po(wz))),fo("* => swing",uo("800ms",Po(Cz))),fo("* => zoomIn",uo("400ms",Po(_z))),fo("* => zoomInRotate",uo("800ms ease-out",Po(Iz))),fo("* => elastic",uo("1000ms",Po(xz))),fo("* => jello",uo(1e3,Po(Ez))),fo("* => fadeIn",uo("400ms ease-out",Po(Tz))),fo("* => slideInUp",uo("400ms ease-out",Po(kz))),fo("* => slideInDown",uo("400ms ease-out",Po(Dz))),fo("* => slideInLeft",uo("400ms ease-out",Po(Bz))),fo("* => slideInRight",uo("400ms ease-out",Po(Sz))),wo("zoomOutWind",Vt({opacity:0})),wo("bounceOut",Vt({opacity:0})),wo("flipOutY",Vt({opacity:0})),wo("zoomOut",Vt({opacity:0})),wo("zoomOutRotate",Vt({opacity:0})),wo("slideOutUp",Vt({opacity:0})),wo("slideOutDown",Vt({opacity:0})),wo("slideOutLeft",Vt({opacity:0})),wo("slideOutRight",Vt({opacity:0})),fo("* => zoomOutWind",uo("400ms ease-in",Po(Mz))),fo("* => bounceOut",uo("400ms ease-in",Po(Nz))),fo("* => flipOutY",uo("400ms ease-in",Po(Oz))),fo("* => zoomOut",uo("400ms ease-in",Po(Pz))),fo("* => zoomOutRotate",uo("400ms ease-out",Po(Rz))),fo("* => slideOutUp",uo("300ms ease-in",Po(Fz))),fo("* => slideOutDown",uo("300ms ease-in",Po(Lz))),fo("* => slideOutLeft",uo("300ms ease-in",Po(Uz))),fo("* => slideOutRight",uo("300ms ease-in",Po(jz))),fo("* => wobble",uo(1e3,Po(Gz)))])]}}),n})(),gT=(()=>{class n{constructor(t,o,s){this.componentFactoryResolver=t,this.injector=o,this.appRef=s,this.dialogParentComponentRefList=[]}open(t,o){const s=o.EventsController,l=this.getComponentRef(s,o);return this.dialogParentComponentRefList.push(l),l.instance.dialogBelonging=o,l.instance.childComponentType=t,this.appendToBodyParentComponent(l),this.listeners(s),s}getComponentRef(t,o){let s;if(-1===this.findDialogIndex(o.EntityUniqueID)){const u=new WeakMap;return u.set(mT,t),s=this.componentFactoryResolver.resolveComponentFactory(Yz),s.create(new Xm(this.injector,u))}return null}listeners(t){const o=t.afterClosed$.subscribe(l=>{const u=this.findDialogIndex(l.DialogBelonging.EntityUniqueID);this.removeFromBodyDialogWrapperComponent(u),o.unsubscribe()}),s=t.afterLoader$.subscribe(l=>{if(l){const u=this.findDialogIndex(l);-1!==u&&this.dialogParentComponentRefList[u].instance.closeLoader()}s.unsubscribe()})}childComponentResolver(){}appendToBodyParentComponent(t){this.appRef.attachView(t.hostView),document.body.appendChild(t.hostView.rootNodes[0])}closeDialogWrapperComponent(t){const o=this.findDialogIndex(t);this.removeFromBodyDialogWrapperComponent(o)}removeFromBodyDialogWrapperComponent(t){t>-1&&this.dialogParentComponentRefList[t].instance.closeParent$().pipe(B(o=>{this.appRef.detachView(this.dialogParentComponentRefList[t].hostView),this.dialogParentComponentRefList[t].destroy(),this.dialogParentComponentRefList.splice(t,1)})).subscribe()}findDialogIndex(t){return this.dialogParentComponentRefList.findIndex(o=>t===o.instance.dialogBelonging.EntityUniqueID)}}return n.\u0275fac=function(t){return new(t||n)(Yt(us),Yt(Fi),Yt(Us))},n.\u0275prov=vt({factory:function(){return new n(Yt(us),Yt(Fd),Yt(Us))},token:n,providedIn:"root"}),n})();class Or{constructor(e){this.component=e,this.dialogCarrier=new $z,this.dialogCarrier.setComponent(this.component)}openDialog$(){return this.dialogCarrier.openDialog$().pipe(B(e=>{const t=new AT;return(new yi).copyValuesFrom(e,t),t}),ul(1))}setButtons(e){this.dialogCarrier.setButtons(e)}setCustomData(e){this.dialogCarrier.setCustomData(e)}setConfig(e){this.dialogCarrier.setConfig(e)}}class AT extends yi{constructor(){super(),this.Payload=null,this.Success=null,this.ClickedButtonID=null}setPayload(e){this.Payload=e}setClickedButtonID(e){this.ClickedButtonID=e}}class mT{constructor(e){this.EntityUniqueID=e,this._afterClosed=new L,this.afterClosed$=this._afterClosed.asObservable(),this._afterLoader=new L,this.afterLoader$=this._afterLoader.asObservable(),this._onButtonClick=new L,this.onButtonClick$=this._onButtonClick.asObservable(),this._buttonList=new L,this.buttonList$=this._buttonList.asObservable()}close(e=null){console.log(this.defaultResponse),this.defaultResponse.setPayload(e),this._afterClosed.next(this.defaultResponse)}onButtonClick(e){this.defaultResponse.setClickedButtonID(e.ID),this._onButtonClick.next(e)}setButtonList(e){this._buttonList.next(e)}closeLoader(){setTimeout(()=>{this._afterLoader.next(this.EntityUniqueID)},0)}setDefaultResponse(e){this.defaultResponse=e}}class Wz extends AT{constructor(){super(),this.DialogBelonging=null}setBelonging(e){this.DialogBelonging=e}}class $z{constructor(){this.dialogBelonging=new yT}setComponent(e){this.component=e}setButtons(e){e.length&&(this.dialogBelonging.Buttons=e)}setCustomData(e){this.dialogBelonging.CustomData=e}setConfig(e){(new yi).copyValuesFrom(e,this.dialogBelonging.DialogCoreConfig),e?.LoaderComponent&&(this.dialogBelonging.DialogCoreConfig.DisplayLoader=!0)}openDialog$(){return Ua.injector.get(gT).open(this.component,this.dialogBelonging).afterClosed$}}class Zz extends Az{constructor(){super(...arguments),this.EscapeKeyClose=null,this.HideScrollbar=null,this.ButtonPosition=null,this.LayoutType=null,this.DisplayLoader=null,this.LoaderComponent=null,this.AnimationIn=null,this.AnimationOut=null}}class Vf{constructor(){this.Buttons=[],this.DialogCoreConfig=new Zz}}class yT extends Vf{constructor(){super(),this.EntityUniqueID="D"+Math.random().toString(36).substr(2,9),this.CustomData=null,this.EventsController=new mT(this.EntityUniqueID);const e=Ua.injector.get(fT),t=new Vf;(new yi).copyValuesFrom(e.productionConfig.DialogCoreConfig,t.DialogCoreConfig),this.DialogCoreConfig=t.DialogCoreConfig,this.Buttons=e.productionConfig.Buttons.slice()}}let rK=(()=>{class n{constructor(t){this.injector=t,Ua.injector=t}static forRoot(t){return{ngModule:n,providers:[{provide:"cdGlobalConfig",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(Yt(Fi))},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({providers:[Nu],imports:[df,x1,IQ]}),n})(),oK=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:"dialogConfig",useValue:t},{provide:"dialogBelonging",useClass:yT}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=vi({type:n}),n.\u0275inj=dt({providers:[gT,fT],imports:[df]}),n})();function _T(n,e,t,o,s,l,u){try{var p=n[l](u),w=p.value}catch(S){return void t(S)}p.done?e(w):Promise.resolve(w).then(o,s)}function ct(n){return function(){var e=this,t=arguments;return new Promise(function(o,s){var l=n.apply(e,t);function u(w){_T(l,o,s,u,p,"next",w)}function p(w){_T(l,o,s,u,p,"throw",w)}u(void 0)})}}var mt=$(7080);const IT=[];for(let n=0;n<=255;n+=1)IT.push(n.toString(16).padStart(2,"0"));function cn(n){let e="";for(const t of n)e+=IT[t];return e}function Mn(n){const t=(n.startsWith("0x")?n.substring(2):n).match(/.{1,2}/gu);return new Uint8Array((t??[]).map(o=>parseInt(o,16)))}class iK extends Error{constructor(e,t,o,s,l){super(`Entity ID ${e.toString()}.${t.toString()}.${o.toString()}-${s} was incorrect.`),this.name="BadEntityIdException",this.shard=e,this.realm=t,this.num=o,this.presentChecksum=s,this.expectedChecksum=l}}var sK=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ty=Math.ceil,bs=Math.floor,Ui="[BigNumber Error] ",xT=Ui+"Number primitive has more than 15 significant digits: ",Qs=1e14,ir=14,ny=9007199254740991,ry=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Sc=1e7,Jo=1e9;function vs(n){var e=0|n;return n>0||n===e?e:e-1}function ws(n){for(var e,t,o=1,s=n.length,l=n[0]+"";oS^t?1:-1;for(p=(w=s.length)<(S=l.length)?w:S,u=0;ul[u]^t?1:-1;return w==S?0:w>S^t?1:-1}function Co(n,e,t,o){if(nt||n!==bs(n))throw Error(Ui+(o||"Argument")+("number"==typeof n?nt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(n))}function q0(n){var e=n.c.length-1;return vs(n.e/ir)==e&&n.c[e]%2!=0}function J0(n,e){return(n.length>1?n.charAt(0)+"."+n.slice(1):n)+(e<0?"e":"e+")+e}function Ga(n,e,t){var o,s;if(e<0){for(s=t+".";++e;s+=t);n=s+n}else if(++e>(o=n.length)){for(s=t,e-=o;--e;s+=t);n+=s}else eJ?Ze.c=Ze.e=null:Se.e=10;yt/=10,lt++);return void(lt>J?Ze.c=Ze.e=null:(Ze.e=lt,Ze.c=[Se]))}Je=String(Se)}else{if(!sK.test(Je=String(Se)))return o(Ze,Je,rt);Ze.s=45==Je.charCodeAt(0)?(Je=Je.slice(1),-1):1}(lt=Je.indexOf("."))>-1&&(Je=Je.replace(".","")),(yt=Je.search(/e/i))>0?(lt<0&&(lt=yt),lt+=+Je.slice(yt+1),Je=Je.substring(0,yt)):lt<0&&(lt=Je.length)}else{if(Co(Fe,2,ut.length,"Base"),10==Fe&&_t)return Ln(Ze=new it(Se),u+Ze.e+1,p);if(Je=String(Se),rt="number"==typeof Se){if(0*Se!=0)return o(Ze,Je,rt,Fe);if(Ze.s=1/Se<0?(Je=Je.slice(1),-1):1,it.DEBUG&&Je.replace(/^0\.0*|\./,"").length>15)throw Error(xT+Se)}else Ze.s=45===Je.charCodeAt(0)?(Je=Je.slice(1),-1):1;for(ze=ut.slice(0,Fe),lt=yt=0,Qe=Je.length;ytlt){lt=Qe;continue}}else if(!at&&(Je==Je.toUpperCase()&&(Je=Je.toLowerCase())||Je==Je.toLowerCase()&&(Je=Je.toUpperCase()))){at=!0,yt=-1,lt=0;continue}return o(Ze,String(Se),rt,Fe)}rt=!1,(lt=(Je=t(Je,Fe,10,Ze.s)).indexOf("."))>-1?Je=Je.replace(".",""):lt=Je.length}for(yt=0;48===Je.charCodeAt(yt);yt++);for(Qe=Je.length;48===Je.charCodeAt(--Qe););if(Je=Je.slice(yt,++Qe)){if(Qe-=yt,rt&&it.DEBUG&&Qe>15&&(Se>ny||Se!==bs(Se)))throw Error(xT+Ze.s*Se);if((lt=lt-yt-1)>J)Ze.c=Ze.e=null;else if(lt=S)?J0(Qe,yt):Ga(Qe,yt,"0");else if(lt=(Se=Ln(new it(Se),Fe,ze)).e,rt=(Qe=ws(Se.c)).length,1==ht||2==ht&&(Fe<=lt||lt<=w)){for(;rtrt){if(--Fe>0)for(Qe+=".";Fe--;Qe+="0");}else if((Fe+=lt-rt)>0)for(lt+1==rt&&(Qe+=".");Fe--;Qe+="0");return Se.s<0&&at?"-"+Qe:Qe}function Jt(Se,Fe){for(var ze,ht,at=1,lt=new it(Se[0]);at=10;at/=10,ht++);return(ze=ht+ze*ir-1)>J?Se.c=Se.e=null:ze=10;rt/=10,at++);if((lt=Fe-at)<0)lt+=ir,Qe=wt[Je=0],Ze=bs(Qe/nn[at-(yt=Fe)-1]%10);else if((Je=ty((lt+1)/ir))>=wt.length){if(!ht)break e;for(;wt.length<=Je;wt.push(0));Qe=Ze=0,at=1,yt=(lt%=ir)-ir+1}else{for(Qe=rt=wt[Je],at=1;rt>=10;rt/=10,at++);Ze=(yt=(lt%=ir)-ir+at)<0?0:bs(Qe/nn[at-yt-1]%10)}if(ht=ht||Fe<0||null!=wt[Je+1]||(yt<0?Qe:Qe%nn[at-yt-1]),ht=ze<4?(Ze||ht)&&(0==ze||ze==(Se.s<0?3:2)):Ze>5||5==Ze&&(4==ze||ht||6==ze&&(lt>0?yt>0?Qe/nn[at-yt]:0:wt[Je-1])%10&1||ze==(Se.s<0?8:7)),Fe<1||!wt[0])return wt.length=0,ht?(wt[0]=nn[(ir-(Fe-=Se.e+1)%ir)%ir],Se.e=-Fe||0):wt[0]=Se.e=0,Se;if(0==lt?(wt.length=Je,rt=1,Je--):(wt.length=Je+1,rt=nn[ir-lt],wt[Je]=yt>0?bs(Qe/nn[at-yt]%nn[yt])*rt:0),ht)for(;;){if(0==Je){for(lt=1,yt=wt[0];yt>=10;yt/=10,lt++);for(yt=wt[0]+=rt,rt=1;yt>=10;yt/=10,rt++);lt!=rt&&(Se.e++,wt[0]==Qs&&(wt[0]=1));break}if(wt[Je]+=rt,wt[Je]!=Qs)break;wt[Je--]=0,rt=1}for(lt=wt.length;0===wt[--lt];wt.pop());}Se.e>J?Se.c=Se.e=null:Se.e=S?J0(Fe,ze):Ga(Fe,ze,"0"),Se.s<0?"-"+Fe:Fe)}return it.clone=ET,it.ROUND_UP=0,it.ROUND_DOWN=1,it.ROUND_CEIL=2,it.ROUND_FLOOR=3,it.ROUND_HALF_UP=4,it.ROUND_HALF_DOWN=5,it.ROUND_HALF_EVEN=6,it.ROUND_HALF_CEIL=7,it.ROUND_HALF_FLOOR=8,it.EUCLID=9,it.config=it.set=function(Se){var Fe,ze;if(null!=Se){if("object"!=typeof Se)throw Error(Ui+"Object expected: "+Se);if(Se.hasOwnProperty(Fe="DECIMAL_PLACES")&&(Co(ze=Se[Fe],0,Jo,Fe),u=ze),Se.hasOwnProperty(Fe="ROUNDING_MODE")&&(Co(ze=Se[Fe],0,8,Fe),p=ze),Se.hasOwnProperty(Fe="EXPONENTIAL_AT")&&((ze=Se[Fe])&&ze.pop?(Co(ze[0],-Jo,0,Fe),Co(ze[1],0,Jo,Fe),w=ze[0],S=ze[1]):(Co(ze,-Jo,Jo,Fe),w=-(S=ze<0?-ze:ze))),Se.hasOwnProperty(Fe="RANGE"))if((ze=Se[Fe])&&ze.pop)Co(ze[0],-Jo,-1,Fe),Co(ze[1],1,Jo,Fe),V=ze[0],J=ze[1];else{if(Co(ze,-Jo,Jo,Fe),!ze)throw Error(Ui+Fe+" cannot be zero: "+ze);V=-(J=ze<0?-ze:ze)}if(Se.hasOwnProperty(Fe="CRYPTO")){if((ze=Se[Fe])!==!!ze)throw Error(Ui+Fe+" not true or false: "+ze);if(ze){if(!(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)))throw he=!ze,Error(Ui+"crypto unavailable");he=ze}else he=ze}if(Se.hasOwnProperty(Fe="MODULO_MODE")&&(Co(ze=Se[Fe],0,9,Fe),xe=ze),Se.hasOwnProperty(Fe="POW_PRECISION")&&(Co(ze=Se[Fe],0,Jo,Fe),Ee=ze),Se.hasOwnProperty(Fe="FORMAT")){if("object"!=typeof(ze=Se[Fe]))throw Error(Ui+Fe+" not an object: "+ze);Le=ze}if(Se.hasOwnProperty(Fe="ALPHABET")){if("string"!=typeof(ze=Se[Fe])||/^.?$|[+\-.\s]|(.).*\1/.test(ze))throw Error(Ui+Fe+" invalid: "+ze);_t="0123456789"==ze.slice(0,10),ut=ze}}return{DECIMAL_PLACES:u,ROUNDING_MODE:p,EXPONENTIAL_AT:[w,S],RANGE:[V,J],CRYPTO:he,MODULO_MODE:xe,POW_PRECISION:Ee,FORMAT:Le,ALPHABET:ut}},it.isBigNumber=function(Se){if(!Se||!0!==Se._isBigNumber)return!1;if(!it.DEBUG)return!0;var Fe,ze,ht=Se.c,at=Se.e,lt=Se.s;e:if("[object Array]"=={}.toString.call(ht)){if((1===lt||-1===lt)&&at>=-Jo&&at<=Jo&&at===bs(at)){if(0===ht[0]){if(0===at&&1===ht.length)return!0;break e}if((Fe=(at+1)%ir)<1&&(Fe+=ir),String(ht[0]).length==Fe){for(Fe=0;Fe=Qs||ze!==bs(ze))break e;if(0!==ze)return!0}}}else if(null===ht&&null===at&&(null===lt||1===lt||-1===lt))return!0;throw Error(Ui+"Invalid BigNumber: "+Se)},it.maximum=it.max=function(){return Jt(arguments,-1)},it.minimum=it.min=function(){return Jt(arguments,1)},it.random=(Se=9007199254740992,Fe=Math.random()*Se&2097151?function(){return bs(Math.random()*Se)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(ze){var ht,at,lt,yt,rt,Qe=0,Je=[],Ze=new it(l);if(null==ze?ze=u:Co(ze,0,Jo),yt=ty(ze/ir),he)if(crypto.getRandomValues){for(ht=crypto.getRandomValues(new Uint32Array(yt*=2));Qe>>11))>=9e15?(at=crypto.getRandomValues(new Uint32Array(2)),ht[Qe]=at[0],ht[Qe+1]=at[1]):(Je.push(rt%1e14),Qe+=2);Qe=yt/2}else{if(!crypto.randomBytes)throw he=!1,Error(Ui+"crypto unavailable");for(ht=crypto.randomBytes(yt*=7);Qe=9e15?crypto.randomBytes(7).copy(ht,Qe):(Je.push(rt%1e14),Qe+=7);Qe=yt/7}if(!he)for(;Qe=10;rt/=10,Qe++);Qeat-1&&(null==rt[yt+1]&&(rt[yt+1]=0),rt[yt+1]+=rt[yt]/at|0,rt[yt]%=at)}return rt.reverse()}return function(ze,ht,at,lt,yt){var rt,Qe,Je,Ze,wt,nn,gn,Rn,fr=ze.indexOf("."),Hn=u,Xn=p;for(fr>=0&&(Ze=Ee,Ee=0,ze=ze.replace(".",""),nn=(Rn=new it(ht)).pow(ze.length-fr),Ee=Ze,Rn.c=Fe(Ga(ws(nn.c),nn.e,"0"),10,at,Se),Rn.e=Rn.c.length),Je=Ze=(gn=Fe(ze,ht,at,yt?(rt=ut,Se):(rt=Se,ut))).length;0==gn[--Ze];gn.pop());if(!gn[0])return rt.charAt(0);if(fr<0?--Je:(nn.c=gn,nn.e=Je,nn.s=lt,gn=(nn=e(nn,Rn,Hn,Xn,at)).c,wt=nn.r,Je=nn.e),fr=gn[Qe=Je+Hn+1],Ze=at/2,wt=wt||Qe<0||null!=gn[Qe+1],wt=Xn<4?(null!=fr||wt)&&(0==Xn||Xn==(nn.s<0?3:2)):fr>Ze||fr==Ze&&(4==Xn||wt||6==Xn&&1&gn[Qe-1]||Xn==(nn.s<0?8:7)),Qe<1||!gn[0])ze=wt?Ga(rt.charAt(1),-Hn,rt.charAt(0)):rt.charAt(0);else{if(gn.length=Qe,wt)for(--at;++gn[--Qe]>at;)gn[Qe]=0,Qe||(++Je,gn=[1].concat(gn));for(Ze=gn.length;!gn[--Ze];);for(fr=0,ze="";fr<=Ze;ze+=rt.charAt(gn[fr++]));ze=Ga(ze,Je,rt.charAt(0))}return ze}}(),e=function(){function Se(ht,at,lt){var yt,rt,Qe,Je,Ze=0,wt=ht.length,nn=at%Sc,gn=at/Sc|0;for(ht=ht.slice();wt--;)Ze=((rt=nn*(Qe=ht[wt]%Sc)+(yt=gn*Qe+(Je=ht[wt]/Sc|0)*nn)%Sc*Sc+Ze)/lt|0)+(yt/Sc|0)+gn*Je,ht[wt]=rt%lt;return Ze&&(ht=[Ze].concat(ht)),ht}function Fe(ht,at,lt,yt){var rt,Qe;if(lt!=yt)Qe=lt>yt?1:-1;else for(rt=Qe=0;rtat[rt]?1:-1;break}return Qe}function ze(ht,at,lt,yt){for(var rt=0;lt--;)ht[lt]-=rt,ht[lt]=(rt=ht[lt]1;ht.splice(0,1));}return function(ht,at,lt,yt,rt){var Qe,Je,Ze,wt,nn,gn,Rn,fr,Hn,Xn,yr,ar,Do,oo,ti,Ao,Si,Bo=ht.s==at.s?1:-1,co=ht.c,zr=at.c;if(!(co&&co[0]&&zr&&zr[0]))return new it(ht.s&&at.s&&(co?!zr||co[0]!=zr[0]:zr)?co&&0==co[0]||!zr?0*Bo:Bo/0:NaN);for(Hn=(fr=new it(Bo)).c=[],Bo=lt+(Je=ht.e-at.e)+1,rt||(rt=Qs,Je=vs(ht.e/ir)-vs(at.e/ir),Bo=Bo/ir|0),Ze=0;zr[Ze]==(co[Ze]||0);Ze++);if(zr[Ze]>(co[Ze]||0)&&Je--,Bo<0)Hn.push(1),wt=!0;else{for(oo=co.length,Ao=zr.length,Ze=0,Bo+=2,(nn=bs(rt/(zr[0]+1)))>1&&(zr=Se(zr,nn,rt),co=Se(co,nn,rt),Ao=zr.length,oo=co.length),Do=Ao,yr=(Xn=co.slice(0,Ao)).length;yr=rt/2&&ti++;do{if(nn=0,(Qe=Fe(zr,Xn,Ao,yr))<0){if(ar=Xn[0],Ao!=yr&&(ar=ar*rt+(Xn[1]||0)),(nn=bs(ar/ti))>1)for(nn>=rt&&(nn=rt-1),Rn=(gn=Se(zr,nn,rt)).length,yr=Xn.length;1==Fe(gn,Xn,Rn,yr);)nn--,ze(gn,Ao=10;Bo/=10,Ze++);Ln(fr,lt+(fr.e=Ze+Je*ir-1)+1,yt,wt)}else fr.e=Je,fr.r=+wt;return fr}}(),o=function(){var Se=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Fe=/^([^.]+)\.$/,ze=/^\.([^.]+)$/,ht=/^-?(Infinity|NaN)$/,at=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(lt,yt,rt,Qe){var Je,Ze=rt?yt:yt.replace(at,"");if(ht.test(Ze))lt.s=isNaN(Ze)?null:Ze<0?-1:1;else{if(!rt&&(Ze=Ze.replace(Se,function(wt,nn,gn){return Je="x"==(gn=gn.toLowerCase())?16:"b"==gn?2:8,Qe&&Qe!=Je?wt:nn}),Qe&&(Je=Qe,Ze=Ze.replace(Fe,"$1").replace(ze,"0.$1")),yt!=Ze))return new it(Ze,Je);if(it.DEBUG)throw Error(Ui+"Not a"+(Qe?" base "+Qe:"")+" number: "+yt);lt.s=null}lt.c=lt.e=null}}(),s.absoluteValue=s.abs=function(){var Se=new it(this);return Se.s<0&&(Se.s=1),Se},s.comparedTo=function(Se,Fe){return bl(this,new it(Se,Fe))},s.decimalPlaces=s.dp=function(Se,Fe){var ze,ht,at;if(null!=Se)return Co(Se,0,Jo),null==Fe?Fe=p:Co(Fe,0,8),Ln(new it(this),Se+this.e+1,Fe);if(!(ze=this.c))return null;if(ht=((at=ze.length-1)-vs(this.e/ir))*ir,at=ze[at])for(;at%10==0;at/=10,ht--);return ht<0&&(ht=0),ht},s.dividedBy=s.div=function(Se,Fe){return e(this,new it(Se,Fe),u,p)},s.dividedToIntegerBy=s.idiv=function(Se,Fe){return e(this,new it(Se,Fe),0,1)},s.exponentiatedBy=s.pow=function(Se,Fe){var ze,ht,at,lt,rt,Qe,Je,Ze,wt=this;if((Se=new it(Se)).c&&!Se.isInteger())throw Error(Ui+"Exponent not an integer: "+Er(Se));if(null!=Fe&&(Fe=new it(Fe)),rt=Se.e>14,!wt.c||!wt.c[0]||1==wt.c[0]&&!wt.e&&1==wt.c.length||!Se.c||!Se.c[0])return Ze=new it(Math.pow(+Er(wt),rt?Se.s*(2-q0(Se)):+Er(Se))),Fe?Ze.mod(Fe):Ze;if(Qe=Se.s<0,Fe){if(Fe.c?!Fe.c[0]:!Fe.s)return new it(NaN);(ht=!Qe&&wt.isInteger()&&Fe.isInteger())&&(wt=wt.mod(Fe))}else{if(Se.e>9&&(wt.e>0||wt.e<-1||(0==wt.e?wt.c[0]>1||rt&&wt.c[1]>=24e7:wt.c[0]<8e13||rt&&wt.c[0]<=9999975e7)))return lt=wt.s<0&&q0(Se)?-0:0,wt.e>-1&&(lt=1/lt),new it(Qe?1/lt:lt);Ee&&(lt=ty(Ee/ir+2))}for(rt?(ze=new it(.5),Qe&&(Se.s=1),Je=q0(Se)):Je=(at=Math.abs(+Er(Se)))%2,Ze=new it(l);;){if(Je){if(!(Ze=Ze.times(wt)).c)break;lt?Ze.c.length>lt&&(Ze.c.length=lt):ht&&(Ze=Ze.mod(Fe))}if(at){if(0===(at=bs(at/2)))break;Je=at%2}else if(Ln(Se=Se.times(ze),Se.e+1,1),Se.e>14)Je=q0(Se);else{if(0==(at=+Er(Se)))break;Je=at%2}wt=wt.times(wt),lt?wt.c&&wt.c.length>lt&&(wt.c.length=lt):ht&&(wt=wt.mod(Fe))}return ht?Ze:(Qe&&(Ze=l.div(Ze)),Fe?Ze.mod(Fe):lt?Ln(Ze,Ee,p,void 0):Ze)},s.integerValue=function(Se){var Fe=new it(this);return null==Se?Se=p:Co(Se,0,8),Ln(Fe,Fe.e+1,Se)},s.isEqualTo=s.eq=function(Se,Fe){return 0===bl(this,new it(Se,Fe))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(Se,Fe){return bl(this,new it(Se,Fe))>0},s.isGreaterThanOrEqualTo=s.gte=function(Se,Fe){return 1===(Fe=bl(this,new it(Se,Fe)))||0===Fe},s.isInteger=function(){return!!this.c&&vs(this.e/ir)>this.c.length-2},s.isLessThan=s.lt=function(Se,Fe){return bl(this,new it(Se,Fe))<0},s.isLessThanOrEqualTo=s.lte=function(Se,Fe){return-1===(Fe=bl(this,new it(Se,Fe)))||0===Fe},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(Se,Fe){var ze,ht,at,lt,yt=this,rt=yt.s;if(Fe=(Se=new it(Se,Fe)).s,!rt||!Fe)return new it(NaN);if(rt!=Fe)return Se.s=-Fe,yt.plus(Se);var Qe=yt.e/ir,Je=Se.e/ir,Ze=yt.c,wt=Se.c;if(!Qe||!Je){if(!Ze||!wt)return Ze?(Se.s=-Fe,Se):new it(wt?yt:NaN);if(!Ze[0]||!wt[0])return wt[0]?(Se.s=-Fe,Se):new it(Ze[0]?yt:3==p?-0:0)}if(Qe=vs(Qe),Je=vs(Je),Ze=Ze.slice(),rt=Qe-Je){for((lt=rt<0)?(rt=-rt,at=Ze):(Je=Qe,at=wt),at.reverse(),Fe=rt;Fe--;at.push(0));at.reverse()}else for(ht=(lt=(rt=Ze.length)<(Fe=wt.length))?rt:Fe,rt=Fe=0;Fe0)for(;Fe--;Ze[ze++]=0);for(Fe=Qs-1;ht>rt;){if(Ze[--ht]=0;){for(ze=0,nn=ar[at]%Hn,gn=ar[at]/Hn|0,lt=at+(yt=Qe);lt>at;)ze=((Je=nn*(Je=yr[--yt]%Hn)+(rt=gn*Je+(Ze=yr[yt]/Hn|0)*nn)%Hn*Hn+Rn[lt]+ze)/fr|0)+(rt/Hn|0)+gn*Ze,Rn[lt--]=Je%fr;Rn[lt]=ze}return ze?++ht:Rn.splice(0,1),Qn(Se,Rn,ht)},s.negated=function(){var Se=new it(this);return Se.s=-Se.s||null,Se},s.plus=function(Se,Fe){var ze,ht=this,at=ht.s;if(Fe=(Se=new it(Se,Fe)).s,!at||!Fe)return new it(NaN);if(at!=Fe)return Se.s=-Fe,ht.minus(Se);var lt=ht.e/ir,yt=Se.e/ir,rt=ht.c,Qe=Se.c;if(!lt||!yt){if(!rt||!Qe)return new it(at/0);if(!rt[0]||!Qe[0])return Qe[0]?Se:new it(rt[0]?ht:0*at)}if(lt=vs(lt),yt=vs(yt),rt=rt.slice(),at=lt-yt){for(at>0?(yt=lt,ze=Qe):(at=-at,ze=rt),ze.reverse();at--;ze.push(0));ze.reverse()}for((at=rt.length)-(Fe=Qe.length)<0&&(ze=Qe,Qe=rt,rt=ze,Fe=at),at=0;Fe;)at=(rt[--Fe]=rt[Fe]+Qe[Fe]+at)/Qs|0,rt[Fe]=Qs===rt[Fe]?0:rt[Fe]%Qs;return at&&(rt=[at].concat(rt),++yt),Qn(Se,rt,yt)},s.precision=s.sd=function(Se,Fe){var ze,ht,at;if(null!=Se&&Se!==!!Se)return Co(Se,1,Jo),null==Fe?Fe=p:Co(Fe,0,8),Ln(new it(this),Se,Fe);if(!(ze=this.c))return null;if(ht=(at=ze.length-1)*ir+1,at=ze[at]){for(;at%10==0;at/=10,ht--);for(at=ze[0];at>=10;at/=10,ht++);}return Se&&this.e+1>ht&&(ht=this.e+1),ht},s.shiftedBy=function(Se){return Co(Se,-ny,ny),this.times("1e"+Se)},s.squareRoot=s.sqrt=function(){var Se,Fe,ze,ht,at,lt=this,yt=lt.c,rt=lt.s,Qe=lt.e,Je=u+4,Ze=new it("0.5");if(1!==rt||!yt||!yt[0])return new it(!rt||rt<0&&(!yt||yt[0])?NaN:yt?lt:1/0);if(0==(rt=Math.sqrt(+Er(lt)))||rt==1/0?(((Fe=ws(yt)).length+Qe)%2==0&&(Fe+="0"),rt=Math.sqrt(+Fe),Qe=vs((Qe+1)/2)-(Qe<0||Qe%2),ze=new it(Fe=rt==1/0?"5e"+Qe:(Fe=rt.toExponential()).slice(0,Fe.indexOf("e")+1)+Qe)):ze=new it(rt+""),ze.c[0])for((rt=(Qe=ze.e)+Je)<3&&(rt=0);;)if(ze=Ze.times((at=ze).plus(e(lt,at,Je,1))),ws(at.c).slice(0,rt)===(Fe=ws(ze.c)).slice(0,rt)){if(ze.e0&&Rn>0){for(Ze=gn.substr(0,lt=Rn%rt||rt);lt0&&(Ze+=Je+gn.slice(lt)),nn&&(Ze="-"+Ze)}ht=wt?Ze+(ze.decimalSeparator||"")+((Qe=+ze.fractionGroupSize)?wt.replace(new RegExp("\\d{"+Qe+"}\\B","g"),"$&"+(ze.fractionGroupSeparator||"")):wt):Ze}return(ze.prefix||"")+ht+(ze.suffix||"")},s.toFraction=function(Se){var Fe,ze,ht,at,lt,yt,rt,Qe,Je,Ze,wt,nn,gn=this,Rn=gn.c;if(null!=Se&&(!(rt=new it(Se)).isInteger()&&(rt.c||1!==rt.s)||rt.lt(l)))throw Error(Ui+"Argument "+(rt.isInteger()?"out of range: ":"not an integer: ")+Er(rt));if(!Rn)return new it(gn);for(Fe=new it(l),Je=ze=new it(l),ht=Qe=new it(l),nn=ws(Rn),lt=Fe.e=nn.length-gn.e-1,Fe.c[0]=ry[(yt=lt%ir)<0?ir+yt:yt],Se=!Se||rt.comparedTo(Fe)>0?lt>0?Fe:Je:rt,yt=J,J=1/0,rt=new it(nn),Qe.c[0]=0;Ze=e(rt,Fe,0,1),1!=(at=ze.plus(Ze.times(ht))).comparedTo(Se);)ze=ht,ht=at,Je=Qe.plus(Ze.times(at=Je)),Qe=at,Fe=rt.minus(Ze.times(at=Fe)),rt=at;return at=e(Se.minus(ze),ht,0,1),Qe=Qe.plus(at.times(Je)),ze=ze.plus(at.times(ht)),Qe.s=Je.s=gn.s,wt=e(Je,ht,lt*=2,p).minus(gn).abs().comparedTo(e(Qe,ze,lt,p).minus(gn).abs())<1?[Je,ht]:[Qe,ze],J=yt,wt},s.toNumber=function(){return+Er(this)},s.toPrecision=function(Se,Fe){return null!=Se&&Co(Se,1,Jo),gt(this,Se,Fe,2)},s.toString=function(Se){var Fe,ze=this,ht=ze.s,at=ze.e;return null===at?ht?(Fe="Infinity",ht<0&&(Fe="-"+Fe)):Fe="NaN":(null==Se?Fe=at<=w||at>=S?J0(ws(ze.c),at):Ga(ws(ze.c),at,"0"):10===Se&&_t?Fe=Ga(ws((ze=Ln(new it(ze),u+at+1,p)).c),ze.e,"0"):(Co(Se,2,ut.length,"Base"),Fe=t(Ga(ws(ze.c),at,"0"),10,Se,ht,!0)),ht<0&&ze.c[0]&&(Fe="-"+Fe)),Fe},s.valueOf=s.toJSON=function(){return Er(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=n&&it.set(n),it}();const hn=aK,cK="This value cannot be null | undefined.",dK="This value must be a string or Uint8Array.",pK="The provided variable must be an Array.",mK="This value must be a String, Number, or BigNumber to be converted.",yK="This value must be a String, Number, or BigNumber to be converted.",bK="Unable to parse given variable. Returns NaN.";function vl(n){return null!=n}function X0(n){return vl(n)&&("number"==typeof n||n instanceof Number)}function oy(n){return vl(n)&&n instanceof hn}function iy(n){return vl(n)&&n instanceof mt}function ep(n){return vl(n)&&"string"==typeof n}function tp(n){for(let e=0;e<12;e++)if(0!=n[e])return!1;return!0}function Mc(n){if(vl(n))return n;throw new Error(cK)}function CK(n){if(function wK(n){return vl(n)&&(ep(n)||function TT(n){return vl(n)&&n instanceof Uint8Array}(n))}(Mc(n)))return n;throw new Error(dK)}function xn(n){if(Mc(n),oy(n)||ep(n)||X0(n)||iy(n))return new hn(n);throw new Error(mK)}function kn(n){if(n instanceof Array)return n.map(xn);throw new Error(pK)}function sy(n){if(Mc(n),oy(n)||ep(n)||X0(n)||iy(n)){const e=parseInt(n);if(isNaN(e))throw new Error(bK);return e}throw new Error(yK)}function ji(n,e=0,t=n.byteLength){if(!(Number.isInteger(e)&&e>=0))throw new Error("Invalid offset!");if(!(Number.isInteger(t)&&t>=0))throw new Error("Invalid length!");return new DataView(n.buffer,n.byteOffset+e,Math.min(t,n.byteLength-e))}function kT(n,e,t=new Set){if("object"==typeof n&&"object"==typeof e){const o=Object.keys(n),s=Object.keys(e);if(o.length!==s.length)return!1;for(let l=0;lparseInt(o,16)))}var wl=$(6909);const uy=vr("302a300506032b6570032100");class Cs extends rp{constructor(e){super(),this._keyData=e}get _type(){return"ED25519"}static fromBytes(e){switch(e.length){case 32:return Cs.fromBytesRaw(e);case 44:return Cs.fromBytesDer(e);default:throw new ai(`invalid public key length: ${e.length} bytes`)}}static fromBytesDer(e){const t=wl.asn1.fromDer(new wl.util.ByteStringBuffer(e));let o;try{o=wl.pki.ed25519.publicKeyFromAsn1(t)}catch(s){throw new ai(`cannot decode ED25519 public key data from DER format: ${null!=s&&null!=s.message?s.message:""}`)}return new Cs(o)}static fromBytesRaw(e){if(32!=e.length)throw new ai(`invalid public key length: ${e.length} bytes`);return new Cs(e)}static fromString(e){return Cs.fromBytes(vr(e))}verify(e,t){return zs.sign.detached.verify(e,t,this._keyData)}toBytesDer(){const e=new Uint8Array(uy.length+32);return e.set(uy,0),e.set(this._keyData.subarray(0,32),uy.length),e}toBytesRaw(){return this._keyData.slice()}equals(e){return ly(this._keyData,e._keyData)}}function op(n){return Promise.resolve(zs.randomBytes(n))}function ju(n){return(new TextEncoder).encode(n)}const _s={Sha256:"SHA-256",Sha384:"SHA-384",Sha512:"SHA-512"};function Cl(n,e,t){return dy.apply(this,arguments)}function dy(){return dy=ct(function*(n,e,t){const o="string"==typeof e?ju(e):e,s="string"==typeof t?ju(t):t;try{const l=yield window.crypto.subtle.importKey("raw",o,{name:"HMAC",hash:n},!1,["sign"]);return new Uint8Array(yield window.crypto.subtle.sign("HMAC",l,s))}catch{throw new Error("Fallback if SubtleCrypto fails is not implemented")}}),dy.apply(this,arguments)}var fy=$(5247),BT=$(2630),MK=$.n(BT);const hy=new fy.ec("secp256k1"),NK=new BT("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),ST=2147483648;function ip(n,e,t){return py.apply(this,arguments)}function py(){return py=ct(function*(n,e,t){const o=MT(t),s=new Uint8Array(37),l=vr(hy.keyFromPrivate(n).getPublic(!0,"hex"));o?(s[0]=0,s.set(n,1)):s.set(l,0),new DataView(s.buffer,s.byteOffset,s.byteLength).setUint32(33,t,!1);const u=yield Cl(_s.Sha512,e,s),p=u.subarray(0,32),w=u.subarray(32);try{const S=hy.keyFromPrivate(n).getPrivate().add(hy.keyFromPrivate(p).getPrivate()).mod(NK),V=function DK(n,e){const t="0123456789abcdef";let o="0x";for(let s=0;s>4]+t[15&l]}for(o.length>2*e+2&&console.log("result out of range","result");o.length<2*e+2;)o="0x0"+o.substring(2);return o.substring(2)}(Uint8Array.from(S.toArray()),32);return S.eqn(0)?ip(n,e,t+1):{keyData:vr(V),chainCode:w}}catch{return ip(n,e,t+1)}}),py.apply(this,arguments)}function gy(){return gy=ct(function*(n){if(n.length<16)throw new TypeError("Seed should be at least 128 bits");if(n.length>64)throw new TypeError("Seed should be at most 512 bits");const e=yield Cl(_s.Sha512,"Bitcoin seed",n);return{keyData:e.subarray(0,32),chainCode:e.subarray(32)}}),gy.apply(this,arguments)}function Ay(n){return n|ST}function MT(n){return 0!=(n&ST)}function NT(n,e,t){return my.apply(this,arguments)}function my(){return my=ct(function*(n,e,t){if(MT(t))throw new Error("the index should not be pre-hardened");const o=new Uint8Array(37);o[0]=0,o.set(n,1),new DataView(o.buffer,o.byteOffset,o.byteLength).setUint32(33,t,!1),o[33]|=128;const s=yield Cl(_s.Sha512,e,o);return{keyData:s.subarray(0,32),chainCode:s.subarray(32)}}),my.apply(this,arguments)}function yy(){return yy=ct(function*(n){const e=yield Cl(_s.Sha512,"ed25519 seed",n);return{keyData:e.subarray(0,32),chainCode:e.subarray(32)}}),yy.apply(this,arguments)}const by=vr("302e020100300506032b657004220420");class ho{constructor(e,t){this._keyPair=e instanceof Uint8Array?zs.sign.keyPair.fromSeed(e):e,this._chainCode=t??null}get _type(){return"ED25519"}static generate(){const e=function BK(n){return zs.randomBytes(n)}(64);return new ho(zs.sign.keyPair.fromSeed(e.subarray(0,32)),e.subarray(32))}static generateAsync(){return ct(function*(){const e=yield op(64);return new ho(zs.sign.keyPair.fromSeed(e.subarray(0,32)),e.subarray(32))})()}static fromBytes(e){switch(e.length){case 48:return ho.fromBytesDer(e);case 32:case 64:return ho.fromBytesRaw(e);default:throw new ai(`invalid private key length: ${e.length} bytes`)}}static fromBytesDer(e){const t=wl.asn1.fromDer(new wl.util.ByteStringBuffer(e));let o;try{o=wl.pki.ed25519.privateKeyFromAsn1(t).privateKeyBytes}catch(l){throw new ai(`cannot decode ED25519 private key data from DER format: ${null!=l&&null!=l.message?l.message:""}`)}const s=zs.sign.keyPair.fromSeed(o);return new ho(s)}static fromBytesRaw(e){switch(e.length){case 32:return new ho(zs.sign.keyPair.fromSeed(e));case 64:return new ho(zs.sign.keyPair.fromSecretKey(e))}throw new ai(`invalid private key length: ${e.length} bytes`)}static fromString(e){return ho.fromBytes(vr(e))}static fromStringDer(e){return ho.fromBytesDer(vr(e))}static fromStringRaw(e){return ho.fromBytesRaw(vr(e))}static fromSeed(e){return ct(function*(){const{keyData:t,chainCode:o}=yield function PK(n){return yy.apply(this,arguments)}(e);return new ho(t,o)})()}get publicKey(){return new Cs(this._keyPair.publicKey)}sign(e){return zs.sign.detached(e,this._keyPair.secretKey)}toBytesDer(){const e=new Uint8Array(by.length+32);return e.set(by,0),e.set(this._keyPair.secretKey.subarray(0,32),by.length),e}toBytesRaw(){return this._keyPair.secretKey.slice(0,32)}}const Nc="0123456789abcdef".split(""),RK=[1,256,65536,16777216],Ks=[0,8,16,24],OT=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],vy=n=>{var e,t,o,s,l,u,p,w,S,V,J,he,xe,Ee,Le,ut,_t,it,gt,Jt,Qn,Ln,Er,Se,Fe,ze,ht,at,lt,yt,rt,Qe,Je,Ze,wt,nn,gn,Rn,fr,Hn,Xn,yr,ar,Do,oo,ti,Ao,Si,Bo,co,zr,Ja,Xa,ec,tc,nc,rc,oc,ic,sc,ac,cc,lc;for(o=0;o<48;o+=2)s=n[0]^n[10]^n[20]^n[30]^n[40],l=n[1]^n[11]^n[21]^n[31]^n[41],w=n[4]^n[14]^n[24]^n[34]^n[44],S=n[5]^n[15]^n[25]^n[35]^n[45],V=n[6]^n[16]^n[26]^n[36]^n[46],J=n[7]^n[17]^n[27]^n[37]^n[47],t=(xe=n[9]^n[19]^n[29]^n[39]^n[49])^((p=n[3]^n[13]^n[23]^n[33]^n[43])<<1|(u=n[2]^n[12]^n[22]^n[32]^n[42])>>>31),n[0]^=e=(he=n[8]^n[18]^n[28]^n[38]^n[48])^(u<<1|p>>>31),n[1]^=t,n[10]^=e,n[11]^=t,n[20]^=e,n[21]^=t,n[30]^=e,n[31]^=t,n[40]^=e,n[41]^=t,t=l^(S<<1|w>>>31),n[2]^=e=s^(w<<1|S>>>31),n[3]^=t,n[12]^=e,n[13]^=t,n[22]^=e,n[23]^=t,n[32]^=e,n[33]^=t,n[42]^=e,n[43]^=t,t=p^(J<<1|V>>>31),n[4]^=e=u^(V<<1|J>>>31),n[5]^=t,n[14]^=e,n[15]^=t,n[24]^=e,n[25]^=t,n[34]^=e,n[35]^=t,n[44]^=e,n[45]^=t,t=S^(xe<<1|he>>>31),n[6]^=e=w^(he<<1|xe>>>31),n[7]^=t,n[16]^=e,n[17]^=t,n[26]^=e,n[27]^=t,n[36]^=e,n[37]^=t,n[46]^=e,n[47]^=t,t=J^(l<<1|s>>>31),n[8]^=e=V^(s<<1|l>>>31),n[9]^=t,n[18]^=e,n[19]^=t,n[28]^=e,n[29]^=t,n[38]^=e,n[39]^=t,n[48]^=e,n[49]^=t,Le=n[1],ti=n[11]<<4|n[10]>>>28,Ao=n[10]<<4|n[11]>>>28,at=n[20]<<3|n[21]>>>29,lt=n[21]<<3|n[20]>>>29,sc=n[31]<<9|n[30]>>>23,ac=n[30]<<9|n[31]>>>23,yr=n[40]<<18|n[41]>>>14,ar=n[41]<<18|n[40]>>>14,Ze=n[2]<<1|n[3]>>>31,wt=n[3]<<1|n[2]>>>31,_t=n[12]<<12|n[13]>>>20,Si=n[22]<<10|n[23]>>>22,Bo=n[23]<<10|n[22]>>>22,yt=n[33]<<13|n[32]>>>19,rt=n[32]<<13|n[33]>>>19,cc=n[42]<<2|n[43]>>>30,lc=n[43]<<2|n[42]>>>30,ec=n[5]<<30|n[4]>>>2,tc=n[4]<<30|n[5]>>>2,nn=n[14]<<6|n[15]>>>26,gn=n[15]<<6|n[14]>>>26,gt=n[24]<<11|n[25]>>>21,co=n[34]<<15|n[35]>>>17,zr=n[35]<<15|n[34]>>>17,Qe=n[45]<<29|n[44]>>>3,Je=n[44]<<29|n[45]>>>3,Se=n[6]<<28|n[7]>>>4,Fe=n[7]<<28|n[6]>>>4,nc=n[17]<<23|n[16]>>>9,rc=n[16]<<23|n[17]>>>9,Rn=n[26]<<25|n[27]>>>7,fr=n[27]<<25|n[26]>>>7,Jt=n[36]<<21|n[37]>>>11,Qn=n[37]<<21|n[36]>>>11,Ja=n[47]<<24|n[46]>>>8,Xa=n[46]<<24|n[47]>>>8,Do=n[8]<<27|n[9]>>>5,oo=n[9]<<27|n[8]>>>5,ze=n[18]<<20|n[19]>>>12,ht=n[19]<<20|n[18]>>>12,oc=n[29]<<7|n[28]>>>25,ic=n[28]<<7|n[29]>>>25,Hn=n[38]<<8|n[39]>>>24,Xn=n[39]<<8|n[38]>>>24,Ln=n[48]<<14|n[49]>>>18,Er=n[49]<<14|n[48]>>>18,n[0]=(Ee=n[0])^~(ut=n[13]<<12|n[12]>>>20)&(it=n[25]<<11|n[24]>>>21),n[1]=Le^~_t>,n[10]=Se^~ze&at,n[11]=Fe^~ht<,n[20]=Ze^~nn&Rn,n[21]=wt^~gn&fr,n[30]=Do^~ti&Si,n[31]=oo^~Ao&Bo,n[40]=ec^~nc&oc,n[41]=tc^~rc&ic,n[2]=ut^~it&Jt,n[3]=_t^~gt&Qn,n[12]=ze^~at&yt,n[13]=ht^~lt&rt,n[22]=nn^~Rn&Hn,n[23]=gn^~fr&Xn,n[32]=ti^~Si&co,n[33]=Ao^~Bo&zr,n[42]=nc^~oc&sc,n[43]=rc^~ic&ac,n[4]=it^~Jt&Ln,n[5]=gt^~Qn&Er,n[14]=at^~yt&Qe,n[15]=lt^~rt&Je,n[24]=Rn^~Hn&yr,n[25]=fr^~Xn&ar,n[34]=Si^~co&Ja,n[35]=Bo^~zr&Xa,n[44]=oc^~sc&cc,n[45]=ic^~ac&lc,n[6]=Jt^~Ln&Ee,n[7]=Qn^~Er&Le,n[16]=yt^~Qe&Se,n[17]=rt^~Je&Fe,n[26]=Hn^~yr&Ze,n[27]=Xn^~ar&wt,n[36]=co^~Ja&Do,n[37]=zr^~Xa&oo,n[46]=sc^~cc&ec,n[47]=ac^~lc&tc,n[8]=Ln^~Ee&ut,n[9]=Er^~Le&_t,n[18]=Qe^~Se&ze,n[19]=Je^~Fe&ht,n[28]=yr^~Ze&nn,n[29]=ar^~wt&gn,n[38]=Ja^~Do&ti,n[39]=Xa^~oo&Ao,n[48]=cc^~ec&nc,n[49]=lc^~tc&rc,n[0]^=OT[o],n[1]^=OT[o+1]},wy=e=>{var t;if("0x"===e.slice(0,2)){t=[];for(var o=2,s=e.length;o{for(var S,V,t=e.length,o=n.blocks,s=n.blockCount<<2,l=n.blockCount,u=n.outputBlocks,p=n.s,w=0;w>2]|=e[w]<>2]|=V<>2]|=(192|V>>6)<>2]|=(128|63&V)<=57344?(o[S>>2]|=(224|V>>12)<>2]|=(128|V>>6&63)<>2]|=(128|63&V)<>2]|=(240|V>>18)<>2]|=(128|V>>12&63)<>2]|=(128|V>>6&63)<>2]|=(128|63&V)<=s){for(n.start=S-s,n.block=o[l],S=0;S>2]|=RK[3&S],n.lastByteIndex===s)for(o[0]=o[l],S=1;S>4&15]+Nc[15&he]+Nc[he>>12&15]+Nc[he>>8&15]+Nc[he>>20&15]+Nc[he>>16&15]+Nc[he>>28&15]+Nc[he>>24&15];xe%l==0&&(vy(p),S=0)}return"0x"+J})((n=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:34,outputBlocks:8,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e})(),t)},Yf=new fy.ec("secp256k1");function PT(){const n=Yf.genKeyPair();return{privateKey:vr(n.getPrivate("hex")),publicKey:vr(n.getPublic(!0,"hex"))}}function Cy(){return(Cy=ct(function*(){return Promise.resolve(PT())})).apply(this,arguments)}function Wf(n){const e=Yf.keyFromPrivate(n);return{privateKey:vr(e.getPrivate("hex")),publicKey:vr(e.getPublic(!0,"hex"))}}const HK=new fy.ec("secp256k1"),sp=vr("302d300706052b8104000a032200"),_y=vr("3036301006072a8648ce3d020106052b8104000a032200");class Is extends rp{constructor(e){super(),this._keyData=e}get _type(){return"secp256k1"}static fromBytes(e){return 33===e.length?Is.fromBytesRaw(e):Is.fromBytesDer(e)}static fromBytesDer(e){let t=new Uint8Array;switch(e.length){case 47:t=e.subarray(sp.length);break;case 56:t=e.subarray(_y.length,_y.length+33);break;default:t=vr(HK.keyFromPublic(e.subarray(_y.length),"der").getPublic().encodeCompressed("hex"))}if(0==t.length)throw new ai("cannot decode ECDSA private key data from DER format");return new Is(t)}static fromBytesRaw(e){if(33!=e.length)throw new ai(`invalid public key length: ${e.length} bytes`);return new Is(e)}static fromString(e){return Is.fromBytes(vr(e))}verify(e,t){return function VK(n,e,t){const o=Gi(e),s=vr(wy(`0x${o}`));return Yf.keyFromPublic(n).verify(s,{r:t.subarray(0,32),s:t.subarray(32,64)})}(this._keyData,e,t)}toBytesDer(){const e=new Uint8Array(sp.length+this._keyData.length);return e.set(sp,0),e.set(this._keyData,sp.length),e}toBytesRaw(){return new Uint8Array(this._keyData.subarray())}toEthereumAddress(){const e=vr(wy(`0x${Gi(function jK(n){return vr(Yf.keyFromPublic(n).getPublic(!1,"hex"))}(this.toBytesRaw()).subarray(1))}`));return Gi(e.subarray(12))}equals(e){return ly(this._keyData,e._keyData)}}const $f=vr("3030020100300706052b8104000a04220420"),RT=vr("30540201010420");class Ro{constructor(e,t){this._keyPair=e,this._chainCode=t??null}get _type(){return"secp256k1"}static generate(){return new Ro(PT())}static generateAsync(){return ct(function*(){return new Ro(yield function UK(){return Cy.apply(this,arguments)}())})()}static fromBytes(e){return 32===e.length?Ro.fromBytesRaw(e):Ro.fromBytesDer(e)}static fromBytesDer(e){let t=new Uint8Array;return t=function kK(n,e){if(n.byteLengthit===_t[gt]))throw new ai("HMAC mismatch; passphrase is incorrect");return xy(l,Le.slice(0,16),xe,Ee)}),By.apply(this,arguments)}function Sy(n){return LT(n)[0]}function LT(n){const[e,t]=function qK(n){if(n[0]<128)return[n[0],n.subarray(1)];const e=n[0]-128,t=n.subarray(1,e+1),o=n.subarray(e+1);return[UT(t),o]}(n.subarray(1)),o=t.subarray(0,e),s=t.subarray(e);switch(n[0]){case 2:return[{int:UT(o)},s];case 4:return[{bytes:o},s];case 5:return[{},s];case 6:return[{ident:ZK(o)},s];case 48:return[{seq:$K(o)},s];default:throw new Error(`unsupported DER type tag: ${n[0]}`)}}function $K(n){let e=n;const t=[];for(;0!==e.length;){const[o,s]=LT(e);t.push(o),e=s}return t}function ZK(n){const e=[Math.floor(n[0]/40),n[0]%40];let t=0;for(const o of n.subarray(1))t*=128,o<128?(t+=o,e.push(t),t=0):t+=127&o;return e.join(".")}function UT(n){const e=n.length;if(1===e)return n[0];let t=new DataView(n.buffer,n.byteOffset,n.byteLength);if(2===e)return t.getUint16(0,!1);if(3===e){const o=Uint8Array.of(0,...n);t=new DataView(o.buffer,o.byteOffset,o.byteLength)}if(e>4)throw new Error(`unsupported DER integer length of ${e} bytes`);return t.getUint32(0,!1)}class Gu{constructor(e){if(!("seq"in e&&e.seq.length>=1&&"ident"in e.seq[0]))throw new Error(`error parsing AlgorithmIdentifier from ${JSON.stringify(e)}`);this.algIdent=e.seq[0].ident,this.parameters=e.seq[1]}toString(){return JSON.stringify(this)}}class JK{constructor(e){if(!("seq"in e)||2!==e.seq.length)throw new Error(`error parsing PBES2Params from ${JSON.stringify(e)}`);this.kdf=new Gu(e.seq[0]),this.encScheme=new Gu(e.seq[1])}}class XK{constructor(e){if("seq"in e&&e.seq.length>=2&&"bytes"in e.seq[0]&&"int"in e.seq[1]&&(this.salt=e.seq[0].bytes,this.iterCount=e.seq[1].int,e.seq.length>2))return"seq"in e.seq[2]?void(this.prf=new Gu(e.seq[2])):("int"in e.seq[2]&&(this.keyLength=e.seq[2].int),void(4===e.seq.length&&(this.prf=new Gu(e.seq[3]))));throw new Error(`error parsing PBKDF2Params from ${JSON.stringify(e)}`)}}class My{constructor(e){if(!("seq"in e)||3!==e.seq.length)throw new Error(`error parsing PrivateKeyInfo from ${JSON.stringify(e)}`);if(!("int"in e.seq[0])||0!==e.seq[0].int)throw new Error(`expected version = 0, got ${JSON.stringify(e.seq[0])}`);if(this.version=0,this.algId=new Gu(e.seq[1]),!("bytes"in e.seq[2]))throw new Error(`expected octet string as 3rd element, got ${JSON.stringify(e.seq[2])}`);this.privateKey=e.seq[2].bytes}static parse(e){return new My(Sy(e))}}class Ny{constructor(e){if("seq"in e&&2===e.seq.length&&"bytes"in e.seq[1])return this.algId=new Gu(e.seq[0]),void(this.data=e.seq[1].bytes);throw new Error(`error parsing EncryptedPrivateKeyInfo from ${JSON.stringify(e)}`)}static parse(e){return new Ny(Sy(e))}decrypt(e){var t=this;return ct(function*(){if("1.2.840.113549.1.5.13"!==t.algId.algIdent||!t.algId.parameters)throw new Error(`unsupported key encryption algorithm: ${t.algId.toString()}`);const o=new JK(t.algId.parameters);if("1.2.840.113549.1.5.12"!==o.kdf.algIdent||!o.kdf.parameters)throw new Error(`unsupported key derivation function: ${o.kdf.toString()}`);const s=new XK(o.kdf.parameters);if(!s.prf)throw new Error("unsupported PRF HMAC-SHA-1");if("1.2.840.113549.2.9"!==s.prf.algIdent)throw new Error(`unsupported PRF ${s.prf.toString()}`);if("2.16.840.1.101.3.4.1.2"!==o.encScheme.algIdent)throw new Error(`unsupported encryption scheme: ${o.encScheme.toString()}`);if(!o.encScheme.parameters||!("bytes"in o.encScheme.parameters))throw new Error(`expected IV as bytes for AES-128-CBC, got: ${JSON.stringify(o.encScheme.parameters)}`);const l=s.keyLength||16,u=o.encScheme.parameters.bytes,p=yield qf(_s.Sha256,e,s.salt,s.iterCount,l),w=yield xy(Oc.Aes128Cbc,p,u,t.data);return My.parse(w)})()}}function jT(n){return Uint8Array.from(Zf.lW.from(n,"base64"))}var Rr=$(7286);function Vu(n,e){let t=0;if(1===n.length)return n[0];for(let o=n.length-1;o>=0;o--)t+=n[n.length-1-o]*Math.pow(2,e*o);return t}function _l(n,e,t=-1){const o=t;let s=n,l=0,u=Math.pow(2,e);for(let p=1;p<8;p++){if(n=0;V--){const J=Math.pow(2,V*e);S[l-V-1]=Math.floor(s/J),s-=S[l-V-1]*J}return w}u*=Math.pow(2,e)}return new ArrayBuffer(0)}function Oy(...n){let e=0,t=0;for(const l of n)e+=l.length;const o=new ArrayBuffer(e),s=new Uint8Array(o);for(const l of n)s.set(l,t),t+=l.length;return s}function GT(){const n=new Uint8Array(this.valueHex);this.valueHex.byteLength>=2&&(255===n[0]&&128&n[1]||0===n[0]&&0==(128&n[1]))&&this.warnings.push("Needlessly long format");const e=new ArrayBuffer(this.valueHex.byteLength),t=new Uint8Array(e);for(let p=0;p"u")throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function Py(n){let e=0,t=0;for(let s=0;s{class n{constructor({blockLength:t=0,error:o="",warnings:s=[],valueBeforeDecode:l=cp}={}){this.blockLength=t,this.error=o,this.warnings=s,this.valueBeforeDecodeView=Rr.vJ.toUint8Array(l)}static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(t){this.valueBeforeDecodeView=new Uint8Array(t)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:Rr.ep.ToHex(this.valueBeforeDecodeView)}}}return n.NAME="baseBlock",n})(),os=(()=>{class n extends Hu{fromBER(t,o,s){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(t,o){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}return n.NAME="valueBlock",n})(),dY=(()=>{class n extends(Ha(Hu)){constructor({idBlock:t={}}={}){var o,s,l,u;super(),t?(this.isHexOnly=null!==(o=t.isHexOnly)&&void 0!==o&&o,this.valueHexView=t.valueHex?Rr.vJ.toUint8Array(t.valueHex):cp,this.tagClass=null!==(s=t.tagClass)&&void 0!==s?s:-1,this.tagNumber=null!==(l=t.tagNumber)&&void 0!==l?l:-1,this.isConstructed=null!==(u=t.isConstructed)&&void 0!==u&&u):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(t=!1){let o=0;switch(this.tagClass){case 1:o|=0;break;case 2:o|=64;break;case 3:o|=128;break;case 4:o|=192;break;default:return this.error="Unknown tag class",Ys}if(this.isConstructed&&(o|=32),this.tagNumber<31&&!this.isHexOnly){const l=new Uint8Array(1);if(!t){let u=this.tagNumber;u&=31,o|=u,l[0]=o}return l.buffer}if(!this.isHexOnly){const l=_l(this.tagNumber,7),u=new Uint8Array(l),p=l.byteLength,w=new Uint8Array(p+1);if(w[0]=31|o,!t){for(let S=0;S=u.length)return this.error="End of input reached before message was fully decoded",-1;if(S===J){J+=255;const xe=new Uint8Array(J);for(let Ee=0;Ee{class n extends Hu{constructor({lenBlock:t={}}={}){var o,s,l;super(),this.isIndefiniteForm=null!==(o=t.isIndefiniteForm)&&void 0!==o&&o,this.longFormUsed=null!==(s=t.longFormUsed)&&void 0!==s&&s,this.length=null!==(l=t.length)&&void 0!==l?l:0}fromBER(t,o,s){const l=Rr.vJ.toUint8Array(t);if(!Va(this,l,o,s))return-1;const u=l.subarray(o,o+s);if(0===u.length)return this.error="Zero buffer length",-1;if(255===u[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===u[0],this.isIndefiniteForm)return this.blockLength=1,o+this.blockLength;if(this.longFormUsed=!!(128&u[0]),!1===this.longFormUsed)return this.length=u[0],this.blockLength=1,o+this.blockLength;const p=127&u[0];if(p>8)return this.error="Too big integer",-1;if(p+1>u.length)return this.error="End of input reached before message was fully decoded",-1;const w=o+1,S=l.subarray(w,w+p);return 0===S[p-1]&&this.warnings.push("Needlessly long encoded length"),this.length=Vu(S,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=p+1,o+this.blockLength}toBER(t=!1){let o,s;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return o=new ArrayBuffer(1),!1===t&&(s=new Uint8Array(o),s[0]=128),o;if(this.longFormUsed){const l=_l(this.length,8);if(l.byteLength>127)return this.error="Too big length",Ys;if(o=new ArrayBuffer(l.byteLength+1),t)return o;const u=new Uint8Array(l);s=new Uint8Array(o),s[0]=128|l.byteLength;for(let p=0;p{class n extends Hu{constructor({name:t="",optional:o=!1,primitiveSchema:s,...l}={},u){super(l),this.name=t,this.optional=o,s&&(this.primitiveSchema=s),this.idBlock=new dY(l),this.lenBlock=new fY(l),this.valueBlock=u?new u(l):new os(l)}fromBER(t,o,s){const l=this.valueBlock.fromBER(t,o,this.lenBlock.isIndefiniteForm?s:this.lenBlock.length);return-1===l?(this.error=this.valueBlock.error,l):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),l)}toBER(t,o){const s=o||new Ry;o||WT(this);const l=this.idBlock.toBER(t);if(s.write(l),this.lenBlock.isIndefiniteForm)s.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(t,s),s.write(new ArrayBuffer(2));else{const u=this.valueBlock.toBER(t);this.lenBlock.length=u.byteLength;const p=this.lenBlock.toBER(t);s.write(p),s.write(u)}return o?Ys:s.final()}toJSON(){const t={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(t.primitiveSchema=this.primitiveSchema.toJSON()),t}toString(t="ascii"){return"ascii"===t?this.onAsciiEncoding():Rr.ep.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${Rr.ep.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(t){return this===t||t instanceof this.constructor&&function tY(n,e){if(n.byteLength!==e.byteLength)return!1;const t=new Uint8Array(n),o=new Uint8Array(e);for(let s=0;s{class n extends Hi{constructor({value:t="",...o}={},s){super(o,s),t&&this.fromString(t)}getValue(){return this.valueBlock.value}setValue(t){this.valueBlock.value=t}fromBER(t,o,s){const l=this.valueBlock.fromBER(t,o,this.lenBlock.isIndefiniteForm?s:this.lenBlock.length);return-1===l?(this.error=this.valueBlock.error,l):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),l)}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}return n.NAME="BaseStringBlock",n})(),pY=(()=>{class n extends(Ha(os)){constructor({isHexOnly:t=!0,...o}={}){super(o),this.isHexOnly=t}}return n.NAME="PrimitiveValueBlock",n})();class ZT extends Hi{constructor(e={}){super(e,pY),this.idBlock.isConstructed=!1}}function Qu(n,e=0,t=n.length){const o=e;let s=new Hi({},os);const l=new Hu;if(!Va(l,n,e,t))return s.error=l.error,{offset:-1,result:s};if(!n.subarray(e,e+t).length)return s.error="Zero buffer length",{offset:-1,result:s};let p=s.idBlock.fromBER(n,e,t);if(s.idBlock.warnings.length&&s.warnings.concat(s.idBlock.warnings),-1===p)return s.error=s.idBlock.error,{offset:-1,result:s};if(p=s.lenBlock.fromBER(n,e=p,t-=s.idBlock.blockLength),s.lenBlock.warnings.length&&s.warnings.concat(s.lenBlock.warnings),-1===p)return s.error=s.lenBlock.error,{offset:-1,result:s};if(e=p,t-=s.lenBlock.blockLength,!s.idBlock.isConstructed&&s.lenBlock.isIndefiniteForm)return s.error="Indefinite length form used for primitive encoding form",{offset:-1,result:s};let w=Hi;if(1===s.idBlock.tagClass){if(s.idBlock.tagNumber>=37&&!1===s.idBlock.isHexOnly)return s.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:s};switch(s.idBlock.tagNumber){case 0:if(s.idBlock.isConstructed&&s.lenBlock.length>0)return s.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:s};w=Cn.EndOfContent;break;case 1:w=Cn.Boolean;break;case 2:w=Cn.Integer;break;case 3:w=Cn.BitString;break;case 4:w=Cn.OctetString;break;case 5:w=Cn.Null;break;case 6:w=Cn.ObjectIdentifier;break;case 10:w=Cn.Enumerated;break;case 12:w=Cn.Utf8String;break;case 13:w=Cn.RelativeObjectIdentifier;break;case 14:w=Cn.TIME;break;case 15:return s.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:s};case 16:w=Cn.Sequence;break;case 17:w=Cn.Set;break;case 18:w=Cn.NumericString;break;case 19:w=Cn.PrintableString;break;case 20:w=Cn.TeletexString;break;case 21:w=Cn.VideotexString;break;case 22:w=Cn.IA5String;break;case 23:w=Cn.UTCTime;break;case 24:w=Cn.GeneralizedTime;break;case 25:w=Cn.GraphicString;break;case 26:w=Cn.VisibleString;break;case 27:w=Cn.GeneralString;break;case 28:w=Cn.UniversalString;break;case 29:w=Cn.CharacterString;break;case 30:w=Cn.BmpString;break;case 31:w=Cn.DATE;break;case 32:w=Cn.TimeOfDay;break;case 33:w=Cn.DateTime;break;case 34:w=Cn.Duration;break;default:{const S=s.idBlock.isConstructed?new Cn.Constructed:new Cn.Primitive;S.idBlock=s.idBlock,S.lenBlock=s.lenBlock,S.warnings=s.warnings,s=S}}}else w=s.idBlock.isConstructed?Cn.Constructed:Cn.Primitive;return s=function gY(n,e){if(n instanceof e)return n;const t=new e;return t.idBlock=n.idBlock,t.lenBlock=n.lenBlock,t.warnings=n.warnings,t.valueBeforeDecodeView=n.valueBeforeDecodeView,t}(s,w),p=s.fromBER(n,e,s.lenBlock.isIndefiniteForm?t:s.lenBlock.length),s.valueBeforeDecodeView=n.subarray(o,o+s.blockLength),{offset:p,result:s}}function mY(n,e){return n?1:e}Cn.Primitive=ZT,ZT.NAME="PRIMITIVE";let Il=(()=>{class n extends os{constructor({value:t=[],isIndefiniteForm:o=!1,...s}={}){super(s),this.value=t,this.isIndefiniteForm=o}fromBER(t,o,s){const l=Rr.vJ.toUint8Array(t);if(!Va(this,l,o,s))return-1;if(this.valueBeforeDecodeView=l.subarray(o,o+s),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),o;let u=o;for(;mY(this.isIndefiniteForm,s)>0;){const p=Qu(l,u,s);if(-1===p.offset)return this.error=p.result.error,this.warnings.concat(p.result.warnings),-1;if(u=p.offset,this.blockLength+=p.result.blockLength,s-=p.result.blockLength,this.value.push(p.result),this.isIndefiniteForm&&p.result.constructor.NAME===Xf)break}return this.isIndefiniteForm&&(this.value[this.value.length-1].constructor.NAME===Xf?this.value.pop():this.warnings.push("No EndOfContent block encoded")),u}toBER(t,o){const s=o||new Ry;for(let l=0;l` ${s}`).join("\n"));const t=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return e.length?`${t} :\n${e.join("\n")}`:`${t} :`}}Cn.Constructed=zu,zu.NAME="CONSTRUCTED";let yY=(()=>{class n extends os{fromBER(t,o,s){return o}toBER(t){return Ys}}return n.override="EndOfContentValueBlock",n})();class XT extends Hi{constructor(e={}){super(e,yY),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}Cn.EndOfContent=XT,XT.NAME=Xf;class t8 extends Hi{constructor(e={}){super(e,os),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(e,t,o){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=o,t+o>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+o}toBER(e,t){const o=new ArrayBuffer(2);if(!e){const s=new Uint8Array(o);s[0]=5,s[1]=0}return t&&t.write(o),o}onAsciiEncoding(){return`${this.constructor.NAME}`}}Cn.Null=t8,t8.NAME="NULL";let bY=(()=>{class n extends(Ha(os)){constructor({value:t,...o}={}){super(o),this.valueHexView=o.valueHex?Rr.vJ.toUint8Array(o.valueHex):new Uint8Array(1),t&&(this.value=t)}get value(){for(const t of this.valueHexView)if(t>0)return!0;return!1}set value(t){this.valueHexView[0]=t?255:0}fromBER(t,o,s){const l=Rr.vJ.toUint8Array(t);return Va(this,l,o,s)?(this.valueHexView=l.subarray(o,o+s),s>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,GT.call(this),this.blockLength=s,o+s):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}return n.NAME="BooleanValueBlock",n})();class r8 extends Hi{constructor(e={}){super(e,bY),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}Cn.Boolean=r8,r8.NAME="BOOLEAN";let vY=(()=>{class n extends(Ha(Il)){constructor({isConstructed:t=!1,...o}={}){super(o),this.isConstructed=t}fromBER(t,o,s){let l=0;if(this.isConstructed){if(this.isHexOnly=!1,l=Il.prototype.fromBER.call(this,t,o,s),-1===l)return l;for(let u=0;u{class n extends(Ha(Il)){constructor({unusedBits:t=0,isConstructed:o=!1,...s}={}){super(s),this.unusedBits=t,this.isConstructed=o,this.blockLength=this.valueHexView.byteLength}fromBER(t,o,s){if(!s)return o;let l=-1;if(this.isConstructed){if(l=Il.prototype.fromBER.call(this,t,o,s),-1===l)return l;for(const w of this.value){const S=w.constructor.NAME;if(S===Xf){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if(S!==YT)return this.error="BIT STRING may consists of BIT STRINGs only",-1;const V=w.valueBlock;if(this.unusedBits>0&&V.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=V.unusedBits}return l}const u=Rr.vJ.toUint8Array(t);if(!Va(this,u,o,s))return-1;const p=u.subarray(o,o+s);if(this.unusedBits=p[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){const w=p.subarray(1);try{if(w.byteLength){const S=Qu(w,0,w.byteLength);-1!==S.offset&&S.offset===s-1&&(this.value=[S.result])}}catch{}}return this.valueHexView=p.subarray(1),this.blockLength=p.length,o+s}toBER(t,o){if(this.isConstructed)return Il.prototype.toBER.call(this,t,o);if(t)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return Ys;const s=new Uint8Array(this.valueHexView.length+1);return s[0]=this.unusedBits,s.set(this.valueHexView,1),s.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}return n.NAME="BitStringValueBlock",n})();var a8;class s8 extends Hi{constructor({idBlock:e={},lenBlock:t={},...o}={}){var s,l;null!==(s=o.isConstructed)&&void 0!==s||(o.isConstructed=!(null===(l=o.value)||void 0===l||!l.length)),super({idBlock:{isConstructed:o.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!o.isIndefiniteForm},...o},wY),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(e,t,o){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(e,t,o)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return zu.prototype.onAsciiEncoding.call(this);{const e=[],t=this.valueBlock.valueHexView;for(const s of t)e.push(s.toString(2).padStart(8,"0"));const o=e.join("");return`${this.constructor.NAME} : ${o.substring(0,o.length-this.valueBlock.unusedBits)}`}}}function CY(n,e){const t=new Uint8Array([0]),o=new Uint8Array(n),s=new Uint8Array(e);let l=o.slice(0);const u=l.length-1,p=s.slice(0),w=p.length-1;let S=0,J=0;for(let he=w=0;he--,J++)S=1==J=l.length?l=Oy(new Uint8Array([S%10]),l):l[u-J]=S%10;return t[0]>0&&(l=Oy(t,l)),l}function c8(n){if(n>=Jf.length)for(let e=Jf.length;e<=n;e++){const t=new Uint8Array([0]);let o=Jf[e-1].slice(0);for(let s=o.length-1;s>=0;s--){const l=new Uint8Array([(o[s]<<1)+t[0]]);t[0]=l[0]/10,o[s]=l[0]%10}t[0]>0&&(o=Oy(t,o)),Jf.push(o)}return Jf[n]}function _Y(n,e){let t=0;const o=new Uint8Array(n),s=new Uint8Array(e),l=o.slice(0),u=l.length-1,p=s.slice(0),w=p.length-1;let S,V=0;for(let J=w;J>=0;J--,V++)S=l[u-V]-p[w-V]-t,1==S<0?(t=1,l[u-V]=S+10):(t=0,l[u-V]=S);if(t>0)for(let J=u-w+1;J>=0;J--,V++){if(S=l[u-V]-t,!(S<0)){t=0,l[u-V]=S;break}t=1,l[u-V]=S+10}return l.slice()}Cn.BitString=s8,s8.NAME=YT;class Ly extends(Ha(os)){constructor({value:e,...t}={}){super(t),this._valueDec=0,t.valueHex&&this.setValueHex(),void 0!==e&&(this.valueDec=e)}setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=GT.call(this)))}set valueDec(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function eY(n){const e=n<0?-1*n:n;let t=128;for(let o=1;o<8;o++){if(e<=t){if(n<0){const p=_l(t-e,8,o);return new Uint8Array(p)[0]|=128,p}let s=_l(e,8,o),l=new Uint8Array(s);if(128&l[0]){const u=s.slice(0),p=new Uint8Array(u);s=new ArrayBuffer(s.byteLength+1),l=new Uint8Array(s);for(let w=0;w1&&(s=u.length+1),this.valueHexView=u.subarray(s-u.length)),l}toDER(e=!1){const t=this.valueHexView;switch(!0){case 0!=(128&t[0]):{const o=new Uint8Array(this.valueHexView.length+1);o[0]=0,o.set(t,1),this.valueHexView=o}break;case 0===t[0]&&0==(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}fromBER(e,t,o){const s=super.fromBER(e,t,o);return-1===s||this.setValueHex(),s}toBER(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const e=8*this.valueHexView.length-1;let s,t=new Uint8Array(8*this.valueHexView.length/3),o=0;const l=this.valueHexView;let u="",p=!1;for(let w=l.byteLength-1;w>=0;w--){s=l[w];for(let S=0;S<8;S++)1==(1&s)&&(o===e?(t=_Y(c8(o),t),u="-"):t=CY(t,c8(o))),o++,s>>=1}for(let w=0;w{class n extends(Ha(os)){constructor({valueDec:t=-1,isFirstSid:o=!1,...s}={}){super(s),this.valueDec=t,this.isFirstSid=o}fromBER(t,o,s){if(!s)return o;const l=Rr.vJ.toUint8Array(t);if(!Va(this,l,o,s))return-1;const u=l.subarray(o,o+s);this.valueHexView=new Uint8Array(s);for(let w=0;w{class n extends os{constructor({value:t="",...o}={}){super(o),this.value=[],t&&this.fromString(t)}fromBER(t,o,s){let l=o;for(;s>0;){const u=new f8;if(l=u.fromBER(t,l,s),-1===l)return this.blockLength=0,this.error=u.error,l;0===this.value.length&&(u.isFirstSid=!0),this.blockLength+=u.blockLength,s-=u.blockLength,this.value.push(u)}return l}toBER(t){const o=[];for(let s=0;sNumber.MAX_SAFE_INTEGER){ap();const w=BigInt(l);p.valueBigInt=w}else if(p.valueDec=parseInt(l,10),isNaN(p.valueDec))return;this.value.length||(p.isFirstSid=!0,u=!0),this.value.push(p)}}while(-1!==s)}toString(){let t="",o=!1;for(let s=0;s{class n extends(Ha(Hu)){constructor({valueDec:t=0,...o}={}){super(o),this.valueDec=t}fromBER(t,o,s){if(0===s)return o;const l=Rr.vJ.toUint8Array(t);if(!Va(this,l,o,s))return-1;const u=l.subarray(o,o+s);this.valueHexView=new Uint8Array(s);for(let w=0;w{class n extends os{constructor({value:t="",...o}={}){super(o),this.value=[],t&&this.fromString(t)}fromBER(t,o,s){let l=o;for(;s>0;){const u=new g8;if(l=u.fromBER(t,l,s),-1===l)return this.blockLength=0,this.error=u.error,l;this.blockLength+=u.blockLength,s-=u.blockLength,this.value.push(u)}return l}toBER(t,o){const s=[];for(let l=0;l{class n extends(Ha(os)){constructor({...t}={}){super(t),this.isHexOnly=!0,this.value=""}toJSON(){return{...super.toJSON(),value:this.value}}}return n.NAME="StringValueBlock",n})(),TY=(()=>{class n extends EY{}return n.NAME="SimpleStringValueBlock",n})(),xs=(()=>{class n extends hY{constructor({...t}={}){super(t,TY)}fromBuffer(t){this.valueBlock.value=String.fromCharCode.apply(null,Rr.vJ.toUint8Array(t))}fromString(t){const o=t.length,s=this.valueBlock.valueHexView=new Uint8Array(o);for(let l=0;l{class n extends xs{fromBuffer(t){this.valueBlock.valueHexView=Rr.vJ.toUint8Array(t);try{this.valueBlock.value=Rr.ep.ToUtf8String(t)}catch(o){this.warnings.push(`Error during "decodeURIComponent": ${o}, using raw string`),this.valueBlock.value=Rr.ep.ToBinary(t)}}fromString(t){this.valueBlock.valueHexView=new Uint8Array(Rr.ep.FromUtf8String(t)),this.valueBlock.value=t}}return n.NAME="Utf8StringValueBlock",n})();class El extends kY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}Cn.Utf8String=El,El.NAME="UTF8String";let DY=(()=>{class n extends xs{fromBuffer(t){this.valueBlock.value=Rr.ep.ToUtf16String(t),this.valueBlock.valueHexView=Rr.vJ.toUint8Array(t)}fromString(t){this.valueBlock.value=t,this.valueBlock.valueHexView=new Uint8Array(Rr.ep.FromUtf16String(t))}}return n.NAME="BmpStringValueBlock",n})();class I8 extends DY{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}Cn.BmpString=I8,I8.NAME="BMPString";let BY=(()=>{class n extends xs{fromBuffer(t){const o=ArrayBuffer.isView(t)?t.slice().buffer:t.slice(0),s=new Uint8Array(o);for(let l=0;l4)continue;const w=4-p.length;for(let S=p.length-1;S>=0;S--)s[4*l+S+w]=p[S]}this.valueBlock.value=t}}return n.NAME="UniversalStringValueBlock",n})();class E8 extends BY{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}Cn.UniversalString=E8,E8.NAME="UniversalString";class k8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}Cn.NumericString=k8,k8.NAME="NumericString";class B8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}Cn.PrintableString=B8,B8.NAME="PrintableString";class M8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}Cn.TeletexString=M8,M8.NAME="TeletexString";class O8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}Cn.VideotexString=O8,O8.NAME="VideotexString";class R8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}Cn.IA5String=R8,R8.NAME="IA5String";class L8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}Cn.GraphicString=L8,L8.NAME="GraphicString";class Uy extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}Cn.VisibleString=Uy,Uy.NAME="VisibleString";class G8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}Cn.GeneralString=G8,G8.NAME="GeneralString";class H8 extends xs{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}Cn.CharacterString=H8,H8.NAME="CharacterString";class jy extends Uy{constructor({value:e,valueDate:t,...o}={}){if(super(o),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,e){this.fromString(e),this.valueBlock.valueHexView=new Uint8Array(e.length);for(let s=0;s=50?1900+s:2e3+s,this.month=parseInt(o[2],10),this.day=parseInt(o[3],10),this.hour=parseInt(o[4],10),this.minute=parseInt(o[5],10),this.second=parseInt(o[6],10)}toString(e="iso"){if("iso"===e){const t=new Array(7);return t[0]=rs(this.year<2e3?this.year-1900:this.year-2e3,2),t[1]=rs(this.month,2),t[2]=rs(this.day,2),t[3]=rs(this.hour,2),t[4]=rs(this.minute,2),t[5]=rs(this.second,2),t[6]="Z",t.join("")}return super.toString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}Cn.UTCTime=jy,jy.NAME="UTCTime";class K8 extends jy{constructor(e={}){var t;super(e),null!==(t=this.millisecond)&&void 0!==t||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(e){super.fromDate(e),this.millisecond=e.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(e){let u,t=!1,o="",s="",l=0,p=0,w=0;if("Z"===e[e.length-1])o=e.substring(0,e.length-1),t=!0;else{const J=new Number(e[e.length-1]);if(isNaN(J.valueOf()))throw new Error("Wrong input string for conversion");o=e}if(t){if(-1!==o.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==o.indexOf("-"))throw new Error("Wrong input string for conversion")}else{let J=1,he=o.indexOf("+"),xe="";if(-1===he&&(he=o.indexOf("-"),J=-1),-1!==he){if(xe=o.substring(he+1),o=o.substring(0,he),2!==xe.length&&4!==xe.length)throw new Error("Wrong input string for conversion");let Ee=parseInt(xe.substring(0,2),10);if(isNaN(Ee.valueOf()))throw new Error("Wrong input string for conversion");if(p=J*Ee,4===xe.length){if(Ee=parseInt(xe.substring(2,4),10),isNaN(Ee.valueOf()))throw new Error("Wrong input string for conversion");w=J*Ee}}}let S=o.indexOf(".");if(-1===S&&(S=o.indexOf(",")),-1!==S){const J=new Number(`0${o.substring(S)}`);if(isNaN(J.valueOf()))throw new Error("Wrong input string for conversion");l=J.valueOf(),s=o.substring(0,S)}else s=o;switch(!0){case 8===s.length:if(u=/(\d{4})(\d{2})(\d{2})/gi,-1!==S)throw new Error("Wrong input string for conversion");break;case 10===s.length:if(u=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==S){let J=60*l;this.minute=Math.floor(J),J=60*(J-this.minute),this.second=Math.floor(J),J=1e3*(J-this.second),this.millisecond=Math.floor(J)}break;case 12===s.length:if(u=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==S){let J=60*l;this.second=Math.floor(J),J=1e3*(J-this.second),this.millisecond=Math.floor(J)}break;case 14===s.length:u=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==S&&(this.millisecond=Math.floor(1e3*l));break;default:throw new Error("Wrong input string for conversion")}const V=u.exec(s);if(null===V)throw new Error("Wrong input string for conversion");for(let J=1;Jnew nr(n),fa.privateKeyFromBytes=n=>nr.fromBytes(n);const Pc=Object.freeze({BadLength:"BadLength",UnknownWords:"UnknownWords",ChecksumMismatch:"ChecksumMismatch"});class Tl extends Error{constructor(e,t,o){let s;switch(t){case Pc.BadLength:s="mnemonic is of an unexpected number of words";break;case Pc.ChecksumMismatch:s="checksum byte in mnemonic did not match the rest of the mnemonic";break;case Pc.UnknownWords:s="mnemonic contained words that are not in the standard word list";break;default:throw new Error(`unexpected value ${t.toString()} for 'reason'`)}super(`invalid mnemonic: ${s}`),typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,Tl),this.name="BadMnemonicError",this.reason=t,this.mnemonic=e,this.unknownWordIndices=o}}const Qy=["aback","abbey","abbot","abide","ablaze","able","aboard","abode","abort","abound","about","above","abroad","abrupt","absent","absorb","absurd","abuse","accent","accept","access","accord","accuse","ace","ache","aching","acid","acidic","acorn","acre","across","act","action","active","actor","actual","acute","adam","adapt","add","added","addict","adept","adhere","adjust","admire","admit","adobe","adopt","adrift","adult","adverb","advice","aerial","afar","affair","affect","afford","afghan","afield","afloat","afraid","afresh","after","again","age","agency","agenda","agent","aghast","agile","ago","agony","agree","agreed","ahead","aid","aide","aim","air","airman","airy","akin","alarm","alaska","albeit","album","ale","alert","alibi","alice","alien","alight","align","alike","alive","alkali","all","alley","allied","allow","alloy","ally","almond","almost","aloft","alone","along","aloof","aloud","alpha","alpine","also","altar","alter","always","amaze","amazon","amber","ambush","amen","amend","amid","amidst","amiss","among","amount","ample","amuse","anchor","and","andrew","anew","angel","anger","angle","angry","animal","ankle","annoy","annual","answer","anthem","any","anyhow","anyway","apart","apathy","apex","apiece","appeal","appear","apple","apply","april","apron","arab","arcade","arcane","arch","arctic","ardent","are","area","argue","arid","arise","ark","arm","armful","army","aroma","around","arouse","array","arrest","arrive","arrow","arson","art","artery","artful","artist","ascent","ash","ashen","ashore","aside","ask","asleep","aspect","assay","assent","assert","assess","asset","assign","assist","assume","assure","asthma","astute","asylum","ate","athens","atlas","atom","atomic","attach","attack","attain","attend","attic","auburn","audio","audit","august","aunt","auntie","aura","austin","author","auto","autumn","avail","avenge","avenue","avert","avid","avoid","await","awake","awaken","award","aware","awash","away","awful","awhile","axe","axes","axiom","axis","axle","aye","babe","baby","bach","back","backup","bacon","bad","badge","badly","bag","baggy","bail","bait","bake","baker","bakery","bald","ball","ballad","ballet","ballot","baltic","bamboo","ban","banal","banana","band","bang","bank","bar","barber","bare","barely","barge","bark","barley","barn","baron","barrel","barren","basalt","base","basic","basil","basin","basis","basket","bass","bat","batch","bath","baton","battle","bay","beach","beacon","beak","beam","bean","bear","beard","beast","beat","beauty","become","bed","beech","beef","beefy","beep","beer","beet","beetle","before","beg","beggar","begin","behalf","behave","behind","beige","being","belief","bell","belly","belong","below","belt","bench","bend","benign","bent","berlin","berry","berth","beset","beside","best","bestow","bet","beta","betray","better","beware","beyond","bias","biceps","bicker","bid","big","bigger","bike","bile","bill","bin","binary","bind","biopsy","birch","bird","birdie","birth","bishop","bit","bitch","bite","bitter","black","blade","blame","bland","blast","blaze","bleak","blend","bless","blew","blind","blink","blip","bliss","blitz","block","blond","blood","bloody","bloom","blot","blouse","blow","blue","bluff","blunt","blur","blush","boar","board","boast","boat","bob","bodily","body","bogus","boil","bold","bolt","bomb","bombay","bond","bone","bonn","bonnet","bonus","bony","book","boom","boost","boot","booth","booze","border","bore","borrow","bosom","boss","boston","both","bother","bottle","bottom","bought","bounce","bound","bounty","bout","bovine","bow","bowel","bowl","box","boy","boyish","brace","brain","brainy","brake","bran","branch","brand","brandy","brass","brave","bravo","brazil","breach","bread","break","breast","breath","bred","breed","breeze","brew","bribe","brick","bride","bridge","brief","bright","brim","brine","bring","brink","brisk","broad","broke","broken","bronze","brook","broom","brown","bruise","brush","brutal","brute","bubble","buck","bucket","buckle","budget","buffet","buggy","build","bulb","bulge","bulk","bulky","bull","bullet","bully","bump","bumpy","bunch","bundle","bunk","bunny","burden","bureau","burial","buried","burly","burn","burnt","burrow","burst","bury","bus","bush","bust","bustle","busy","but","butler","butt","butter","button","buy","buyer","buzz","bye","byte","cab","cabin","cable","cache","cactus","caesar","cage","cairo","cajun","cajole","cake","calf","call","caller","calm","calmly","came","camel","camera","camp","campus","can","canada","canal","canary","cancel","cancer","candid","candle","candy","cane","canine","canoe","canopy","canvas","canyon","cap","cape","car","carbon","card","care","career","caress","cargo","carl","carnal","carol","carp","carpet","carrot","carry","cart","cartel","case","cash","cask","cast","castle","casual","cat","catch","cater","cattle","caught","causal","cause","cave","cease","celery","cell","cellar","celtic","cement","censor","census","cent","cereal","chain","chair","chalk","chalky","champ","chance","change","chant","chaos","chap","chapel","charge","charm","chart","chase","chat","cheap","cheat","check","cheek","cheeky","cheer","cheery","cheese","chef","cheque","cherry","chess","chest","chew","chic","chick","chief","child","chile","chill","chilly","chin","china","chip","choice","choir","choose","chop","choppy","chord","chorus","chose","chosen","chris","chrome","chunk","chunky","church","cider","cigar","cinema","circa","circle","circus","cite","city","civic","civil","clad","claim","clammy","clan","clap","clash","clasp","class","clause","claw","clay","clean","clear","clergy","clerk","clever","click","client","cliff","climax","climb","clinch","cling","clinic","clip","cloak","clock","clone","close","closer","closet","cloth","cloud","cloudy","clout","clown","club","clue","clumsy","clung","clutch","coach","coal","coarse","coast","coat","coax","cobalt","cobra","coca","cock","cocoa","code","coffee","coffin","cohort","coil","coin","coke","cold","collar","colon","colony","colt","column","comb","combat","come","comedy","comic","commit","common","compel","comply","concur","cone","confer","congo","consul","convex","convey","convoy","cook","cool","cope","copper","copy","coral","cord","core","cork","corn","corner","corps","corpse","corpus","cortex","cosmic","cosmos","cost","costly","cotton","couch","cough","could","count","county","coup","couple","coupon","course","court","cousin","cove","cover","covert","cow","coward","cowboy","cozy","crab","crack","cradle","craft","crafty","crag","crane","crash","crate","crater","crawl","crazy","creak","cream","creamy","create","credit","creed","creek","creep","creepy","crept","crest","crew","cried","crime","crisis","crisp","critic","crook","crop","cross","crow","crowd","crown","crude","cruel","cruise","crunch","crush","crust","crux","cry","crypt","cuba","cube","cubic","cuckoo","cuff","cult","cup","curb","cure","curfew","curl","curry","curse","cursor","curve","cuss","custom","cut","cute","cycle","cyclic","cynic","czech","dad","daddy","dagger","daily","dairy","daisy","dale","dam","damage","damp","dampen","dance","danger","danish","dare","dark","darken","darn","dart","dash","data","date","david","dawn","day","dead","deadly","deaf","deal","dealer","dean","dear","death","debate","debit","debris","debt","debtor","decade","decay","decent","decide","deck","decor","decree","deduce","deed","deep","deeply","deer","defeat","defect","defend","defer","define","defy","degree","deity","delay","delete","delhi","delta","demand","demise","demo","demure","denial","denote","dense","dental","deny","depart","depend","depict","deploy","depot","depth","deputy","derive","desert","design","desire","desist","desk","detail","detect","deter","detest","detour","device","devise","devoid","devote","devour","dial","diana","diary","dice","dictum","did","die","diesel","diet","differ","dig","digest","digit","dine","dinghy","dinner","diode","dip","dire","direct","dirt","dirty","disc","disco","dish","disk","dismal","dispel","ditch","dive","divert","divide","divine","dizzy","docile","dock","doctor","dog","dogma","dole","doll","dollar","dolly","domain","dome","domino","donate","done","donkey","donor","doom","door","dorsal","dose","dot","double","doubt","dough","dour","dove","down","dozen","draft","drag","dragon","drain","drama","drank","draw","drawer","dread","dream","dreary","dress","drew","dried","drift","drill","drink","drip","drive","driver","drop","drove","drown","drug","drum","drunk","dry","dual","duck","duct","due","duel","duet","duke","dull","duly","dumb","dummy","dump","dune","dung","duress","during","dusk","dust","dusty","dutch","duty","dwarf","dwell","dyer","dying","dynamo","each","eager","eagle","ear","earl","early","earn","earth","ease","easel","easily","east","easter","easy","eat","eaten","eater","echo","eddy","eden","edge","edible","edict","edit","editor","eel","eerie","eerily","effect","effort","egg","ego","eight","eighth","eighty","either","elbow","elder","eldest","elect","eleven","elicit","elite","else","elude","elves","embark","emblem","embryo","emerge","emit","empire","employ","empty","enable","enamel","end","endure","enemy","energy","engage","engine","enjoy","enlist","enough","ensure","entail","enter","entire","entry","envoy","envy","enzyme","epic","epoch","equal","equate","equip","equity","era","erect","eric","erode","erotic","errant","error","escape","escort","essay","essex","estate","esteem","ethic","ethnic","europe","evade","eve","even","event","ever","every","evict","evil","evoke","evolve","exact","exam","exceed","excel","except","excess","excise","excite","excuse","exempt","exert","exile","exist","exit","exodus","exotic","expand","expect","expert","expire","export","expose","extend","extra","eye","eyed","fabric","face","facial","fact","factor","fade","fail","faint","fair","fairly","fairy","faith","fake","falcon","fall","false","falter","fame","family","famine","famous","fan","fancy","far","farce","fare","farm","farmer","fast","fasten","faster","fat","fatal","fate","father","fatty","fault","faulty","fauna","fear","feast","feat","fed","fee","feeble","feed","feel","feet","fell","fellow","felt","female","fence","fend","ferry","fetal","fetch","feudal","fever","few","fewer","fiasco","fiddle","field","fiend","fierce","fiery","fifth","fifty","fig","fight","figure","file","fill","filled","filler","film","filter","filth","filthy","final","finale","find","fine","finery","finger","finish","finite","fire","firm","firmly","first","fiscal","fish","fisher","fist","fit","fitful","five","fix","flag","flair","flak","flame","flank","flap","flare","flash","flask","flat","flavor","flaw","fled","flee","fleece","fleet","flesh","fleshy","flew","flick","flight","flimsy","flint","flirt","float","flock","flood","floor","floppy","flora","floral","flour","flow","flower","fluent","fluffy","fluid","flung","flurry","flush","flute","flux","fly","flyer","foal","foam","focal","focus","fog","foil","fold","folk","follow","folly","fond","fondly","font","food","fool","foot","for","forbid","force","ford","forest","forge","forget","fork","form","formal","format","former","fort","forth","forty","forum","fossil","foster","foul","found","four","fourth","fox","foyer","frail","frame","franc","france","frank","fraud","fred","free","freed","freely","freeze","french","frenzy","fresh","friar","friday","fridge","fried","friend","fright","fringe","frock","frog","from","front","frost","frosty","frown","frozen","frugal","fruit","fry","fudge","fuel","full","fully","fumes","fun","fund","funny","fur","furry","fury","fuse","fusion","fuss","fussy","futile","future","fuzzy","gadget","gain","gala","galaxy","gale","gall","galley","gallon","gallop","gamble","game","gamma","gandhi","gang","gap","garage","garden","garlic","gas","gasp","gate","gather","gauge","gaunt","gave","gaze","gear","geese","gem","gemini","gender","gene","geneva","genial","genius","genre","gentle","gently","gentry","genus","george","germ","get","ghetto","ghost","giant","gift","giggle","gill","gilt","ginger","girl","give","given","glad","glade","glance","gland","glare","glass","glassy","gleam","glee","glide","global","globe","gloom","gloomy","gloria","glory","gloss","glossy","glove","glow","glue","gnat","gnu","goal","goat","gold","golden","golf","gone","gong","goo","good","goose","gore","gorge","gory","gosh","gospel","gossip","got","gothic","govern","gown","grab","grace","grade","grail","grain","grand","grant","grape","graph","grasp","grass","grassy","grate","grave","gravel","gravy","grease","greasy","great","greece","greed","greedy","greek","green","greet","grew","grey","grid","grief","grill","grim","grin","grind","grip","grit","gritty","groan","groin","groom","groove","gross","ground","group","grove","grow","grown","growth","grudge","grunt","guard","guess","guest","guide","guild","guilt","guilty","guise","guitar","gulf","gully","gun","gunman","guru","gut","guy","gypsy","habit","hack","had","hail","hair","hairy","haiti","hale","half","hall","halt","hamlet","hammer","hand","handle","handy","hang","hangar","hanoi","happen","happy","harass","harbor","hard","harder","hardly","hare","harem","harm","harp","harry","harsh","has","hash","hassle","haste","hasten","hasty","hat","hatch","hate","haul","haunt","havana","have","haven","havoc","hawaii","hawk","hay","hazard","haze","hazel","hazy","head","heal","health","heap","hear","heard","heart","hearth","hearty","heat","heater","heaven","heavy","hebrew","heck","hectic","hedge","heel","hefty","height","heir","held","helium","helix","hell","hello","helm","helmet","help","hemp","hence","henry","her","herald","herb","herd","here","hereby","hermes","hernia","hero","heroic","heroin","hey","heyday","hick","hidden","hide","high","higher","highly","hill","him","hind","hinder","hint","hippie","hire","his","hiss","hit","hive","hoard","hoarse","hobby","hockey","hold","holder","hole","hollow","holly","holy","home","honest","honey","hood","hook","hope","horn","horrid","horror","horse","hose","host","hot","hotel","hound","hour","house","hover","how","huge","hull","human","humane","humble","humid","hung","hunger","hungry","hunt","hurdle","hurl","hurry","hurt","hush","hut","hybrid","hymn","hyphen","ice","icing","icon","idaho","idea","ideal","idiom","idiot","idle","idly","idol","ignite","ignore","ill","image","immune","impact","imply","import","impose","inca","incest","inch","income","incur","indeed","index","india","indian","indoor","induce","inept","inert","infant","infect","infer","influx","inform","inject","injure","injury","ink","inlaid","inland","inlet","inmate","inn","innate","inner","input","insane","insect","insert","inset","inside","insist","insult","insure","intact","intake","intend","inter","into","invade","invent","invest","invite","invoke","inward","iowa","iran","iraq","irish","iron","ironic","irony","isaac","isabel","island","isle","israel","issue","italy","itch","item","itself","ivan","ivory","jack","jacket","jacob","jade","jaguar","jail","james","jane","japan","jargon","java","jaw","jazz","jeep","jelly","jerky","jest","jet","jewel","jewish","jim","job","jock","jockey","joe","john","join","joint","joke","jolly","jolt","jordan","joseph","joy","joyful","joyous","judge","judy","juice","juicy","july","jumble","jumbo","jump","june","jungle","junior","junk","junta","jury","just","kansas","karate","karl","keel","keen","keep","keeper","kenya","kept","kernel","kettle","key","khaki","kick","kid","kidnap","kidney","kill","killer","kin","kind","kindly","king","kiss","kite","kitten","knack","knee","kneel","knew","knife","knight","knit","knob","knock","knot","know","known","koran","korea","kuwait","label","lace","lack","lad","ladder","laden","lady","lagoon","laity","lake","lamb","lame","lamp","lance","land","lane","lap","lapse","large","larval","laser","last","latch","late","lately","latent","later","latest","latin","latter","laugh","launch","lava","lavish","law","lawful","lawn","lawyer","lay","layer","layman","lazy","lead","leader","leaf","leafy","league","leak","leaky","lean","leap","learn","lease","leash","least","leave","led","ledge","left","leg","legacy","legal","legend","legion","lemon","lend","length","lens","lent","leo","leper","lesion","less","lessen","lesser","lesson","lest","let","lethal","letter","level","lever","levy","lewis","liable","liar","libel","libya","lice","lick","lid","lie","lied","lier","life","lift","light","like","likely","limb","lime","limit","limp","line","linear","linen","linger","link","lint","lion","lip","liquid","liquor","list","listen","lit","live","lively","liver","liz","lizard","load","loaf","loan","lobby","lobe","local","locate","lock","locus","lodge","loft","lofty","log","logic","logo","london","lone","lonely","long","longer","look","loop","loose","loosen","loot","lord","lorry","lose","loss","lost","lot","lotion","lotus","loud","loudly","lounge","lousy","love","lovely","lover","low","lower","lowest","loyal","lucid","luck","lucky","lucy","lull","lump","lumpy","lunacy","lunar","lunch","lung","lure","lurid","lush","lust","lute","luther","luxury","lying","lymph","lynch","lyric","macho","macro","mad","madam","made","mafia","magic","magma","magnet","magnum","magpie","maid","maiden","mail","main","mainly","major","make","maker","male","malice","mall","malt","mammal","manage","mane","mania","manic","manner","manor","mantle","manual","manure","many","map","maple","marble","march","mare","margin","maria","marina","mark","market","marry","mars","marsh","martin","martyr","mary","mask","mason","mass","mast","master","mat","match","mate","matrix","matter","mature","maxim","may","maybe","mayor","maze","mead","meadow","meal","mean","meant","meat","medal","media","median","medic","medium","meet","mellow","melody","melon","melt","member","memo","memory","menace","mend","mental","mentor","menu","mercy","mere","merely","merge","merger","merit","merry","mesh","mess","messy","met","metal","meter","method","methyl","metric","metro","mexico","miami","mickey","mid","midday","middle","midst","midway","might","mighty","mild","mildew","mile","milk","milky","mill","mimic","mince","mind","mine","mini","mink","minor","mint","minus","minute","mire","mirror","mirth","misery","miss","mist","misty","mite","mix","moan","moat","mob","mobile","mock","mode","model","modem","modern","modest","modify","module","moist","molar","mold","mole","molten","moment","monday","money","monk","monkey","month","mood","moody","moon","moor","moral","morale","morbid","more","morgue","mortal","mortar","mosaic","moscow","moses","mosque","moss","most","mostly","moth","mother","motion","motive","motor","mount","mourn","mouse","mouth","move","movie","mrs","much","muck","mucus","mud","muddle","muddy","mule","mummy","munich","murder","murky","murmur","muscle","museum","music","mussel","must","mutant","mute","mutiny","mutter","mutton","mutual","muzzle","myopic","myriad","myself","mystic","myth","nadir","nail","naked","name","namely","nape","napkin","naples","narrow","nasal","nasty","nathan","nation","native","nature","nausea","naval","nave","navy","near","nearer","nearly","neat","neatly","neck","need","needle","needy","negate","neon","nepal","nephew","nerve","nest","net","neural","never","newly","next","nice","nicely","niche","nickel","niece","night","nile","nimble","nine","ninety","ninth","nobel","noble","nobody","node","noise","noisy","none","noon","nor","norm","normal","north","norway","nose","nosy","not","note","notice","notify","notion","noun","novel","novice","now","nozzle","null","numb","number","nurse","nut","nylon","nymph","oak","oar","oasis","oath","obese","obey","object","oblige","oboe","obtain","obtuse","occult","occupy","occur","ocean","octave","odd","off","offend","offer","office","offset","often","ohio","oil","oily","okay","old","older","oldest","olive","omega","omen","omit","once","one","onion","only","onset","onto","onus","onward","opaque","open","openly","opera","opium","oppose","optic","option","oracle","oral","orange","orbit","orchid","ordeal","order","organ","orgasm","orient","origin","ornate","orphan","oscar","other","otter","ought","ounce","our","out","outer","output","outset","oval","oven","over","overt","owe","owing","owl","own","owner","oxford","oxide","oxygen","oyster","ozone","pace","pack","packet","pact","pad","paddle","paddy","pagan","page","paid","pain","paint","pair","palace","pale","palm","pan","panama","panel","panic","papa","papal","paper","parade","parcel","pardon","parent","paris","parish","park","parody","parrot","part","partly","party","pascal","pass","past","paste","pastel","pastor","pastry","pat","patch","patent","path","patio","patrol","patron","paul","pause","pave","paw","pawn","pay","peace","peach","peak","pear","pearl","pedal","peel","peer","peking","pelvic","pelvis","pen","penal","pence","pencil","penny","people","pepper","per","perch","peril","period","perish","permit","person","peru","pest","pet","peter","petite","petrol","petty","phase","philip","phone","photo","phrase","piano","pick","picket","picnic","pie","piece","pier","pierce","piety","pig","pigeon","piggy","pike","pile","pill","pillar","pillow","pilot","pin","pinch","pine","pink","pint","pious","pipe","pirate","piss","pistol","piston","pit","pitch","pity","pivot","pixel","pizza","place","placid","plague","plain","plan","plane","planet","plank","plant","plasma","plate","play","player","plea","plead","please","pledge","plenty","plight","plot","plough","ploy","plug","plum","plump","plunge","plural","plus","plush","pocket","poem","poet","poetic","poetry","point","poison","poland","polar","pole","police","policy","polish","polite","poll","pollen","polo","pond","ponder","pony","pool","poor","poorly","pop","poppy","pore","pork","port","portal","pose","posh","post","postal","pot","potato","potent","pouch","pound","pour","powder","power","praise","pray","prayer","preach","prefer","prefix","press","pretty","price","pride","priest","primal","prime","prince","print","prior","prism","prison","privy","prize","probe","profit","prompt","prone","proof","propel","proper","prose","proton","proud","prove","proven","proxy","prune","pry","psalm","pseudo","psyche","pub","public","puff","pull","pulp","pulpit","pulsar","pulse","pump","punch","punish","punk","pupil","puppet","puppy","pure","purely","purge","purify","purple","purse","pursue","push","pushy","put","putt","puzzle","quaint","quake","quarry","quart","quartz","quebec","queen","queer","query","quest","queue","quick","quid","quiet","quilt","quirk","quit","quite","quiver","quiz","quota","quote","rabbit","race","racial","racism","rack","racket","radar","radio","radish","radius","raffle","raft","rage","raid","rail","rain","rainy","raise","rake","rally","ramp","random","range","rank","ransom","rape","rapid","rare","rarely","rarity","rash","rat","rate","rather","ratify","ratio","rattle","rave","raven","raw","ray","razor","reach","react","read","reader","ready","real","really","realm","reap","rear","reason","rebel","recall","recent","recess","recipe","reckon","record","recoup","rector","red","redeem","redo","reduce","reed","reef","reek","refer","reform","refuge","refuse","regal","regard","regent","regime","region","regret","reign","reject","relate","relax","relay","relic","relief","relish","rely","remain","remark","remedy","remind","remit","remote","remove","renal","render","rent","rental","repair","repeal","repeat","repent","reply","report","rescue","resent","reside","resign","resin","resist","resort","rest","result","resume","retail","retain","retina","retire","return","reveal","review","revise","revive","revolt","reward","rex","rhine","rhino","rhyme","rhythm","ribbon","rice","rich","rick","rid","ride","rider","ridge","rife","rifle","rift","right","rigid","rile","rim","ring","rinse","riot","ripe","ripen","ripple","rise","risk","risky","rite","ritual","ritz","rival","river","road","roar","roast","rob","robe","robert","robin","robot","robust","rock","rocket","rocky","rod","rode","rodent","rogue","role","roll","roman","rome","roof","room","root","rope","rose","rosy","rot","rotate","rotor","rotten","rouge","rough","round","route","rover","row","royal","rub","rubber","rubble","ruby","rudder","rude","rug","rugby","ruin","rule","ruler","rumble","rump","run","rune","rung","runway","rural","rush","russia","rust","rustic","rusty","sack","sacred","sad","saddle","sadism","sadly","safari","safe","safely","safer","safety","saga","sage","sahara","said","sail","sailor","saint","sake","salad","salary","sale","saline","saliva","salmon","saloon","salt","salty","salute","sam","same","sample","sand","sandy","sane","sash","satin","satire","saturn","sauce","saucer","saudi","sauna","savage","save","saw","say","scale","scalp","scan","scant","scar","scarce","scare","scarf","scary","scene","scenic","scent","school","scold","scope","score","scorn","scotch","scott","scout","scrap","scrape","scream","screen","screw","script","scroll","scrub","scum","sea","seal","seam","seaman","search","season","seat","second","secret","sect","sector","secure","see","seed","seeing","seek","seem","seize","seldom","select","self","sell","seller","semi","senate","send","senile","senior","sense","sensor","sent","sentry","seoul","sequel","serene","serial","series","sermon","serum","serve","server","set","settle","seven","severe","sew","sewage","shabby","shade","shadow","shady","shaft","shaggy","shah","shake","shaky","shall","sham","shame","shape","share","shark","sharp","shawl","she","shear","sheen","sheep","sheer","sheet","shelf","shell","sherry","shield","shift","shine","shiny","ship","shire","shirk","shirt","shiver","shock","shoe","shook","shoot","shop","shore","short","shot","should","shout","show","shower","shrank","shrewd","shrill","shrimp","shrine","shrink","shrub","shrug","shut","shy","shyly","sick","side","siege","sigh","sight","sigma","sign","signal","silent","silk","silken","silky","sill","silly","silo","silver","simple","simply","since","sinful","sing","singer","single","sink","sir","sire","siren","sister","sit","site","sitter","six","sixth","sixty","size","sketch","skill","skin","skinny","skip","skirt","skull","sky","slab","slack","slain","slam","slang","slap","slat","slate","slave","sleek","sleep","sleepy","sleeve","slice","slick","slid","slide","slight","slim","slimy","sling","slip","slit","slogan","slope","sloppy","slot","slow","slowly","slug","slum","slump","smack","small","smart","smash","smear","smell","smelly","smelt","smile","smite","smoke","smoky","smooth","smug","snack","snail","snake","snap","snatch","sneak","snow","snowy","snug","soak","soap","sober","soccer","social","sock","socket","socks","soda","sodden","sodium","sofa","soft","soften","softly","soggy","soil","solar","sold","sole","solely","solemn","solid","solo","solve","some","son","sonar","sonata","song","sonic","sony","soon","sooner","soot","soothe","sordid","sore","sorrow","sorry","sort","soul","sound","soup","sour","source","soviet","sow","space","spade","spain","span","spare","spark","sparse","spasm","spat","spate","speak","spear","speech","speed","speedy","spell","spend","sphere","spice","spicy","spider","spiky","spill","spin","spinal","spine","spiral","spirit","spit","spite","splash","split","spoil","spoke","sponge","spoon","sport","spot","spouse","spray","spread","spree","spring","sprint","spur","squad","square","squash","squat","squid","stab","stable","stack","staff","stage","stain","stair","stairs","stake","stale","stall","stamp","stance","stand","staple","star","starch","stare","stark","start","starve","state","static","statue","status","stay","stead","steady","steak","steal","steam","steel","steep","steer","stem","stench","step","stereo","stern","stew","stick","sticky","stiff","stifle","stigma","still","sting","stint","stir","stitch","stock","stocky","stone","stony","stool","stop","store","storm","stormy","story","stout","stove","stow","strain","strait","strand","strap","strata","straw","stray","streak","stream","street","stress","strict","stride","strife","strike","string","strip","stripe","strive","stroke","stroll","strong","stud","studio","study","stuff","stuffy","stunt","stupid","sturdy","style","submit","subtle","subtly","suburb","such","sudden","sue","suez","suffer","sugar","suit","suite","suitor","sullen","sultan","sum","summer","summit","summon","sun","sunday","sunny","sunset","super","superb","supper","supple","supply","sure","surely","surf","surge","survey","suture","swamp","swan","swap","swarm","sway","swear","sweat","sweaty","sweden","sweep","sweet","swell","swift","swim","swine","swing","swirl","swiss","switch","sword","swore","sydney","symbol","synod","syntax","syria","syrup","system","table","tablet","taboo","tacit","tackle","tact","tactic","tail","tailor","taiwan","take","tale","talent","talk","tall","tally","tame","tampa","tan","tandem","tangle","tank","tap","tape","target","tariff","tarp","tart","tarzan","task","taste","tasty","tattoo","taurus","taut","tavern","tax","taxi","tea","teach","teak","team","tear","tease","tech","teeth","tell","temper","temple","tempo","tempt","ten","tenant","tend","tender","tendon","tennis","tenor","tense","tent","tenth","tenure","teresa","term","terror","terse","test","texas","text","thank","thaw","them","theme","thence","theory","there","these","thesis","they","thick","thief","thigh","thin","thing","think","third","thirst","thirty","this","thomas","thorn","those","though","thread","threat","three","thrill","thrive","throat","throne","throng","throw","thrust","thud","thug","thumb","thus","thyme","tibet","tick","ticket","tidal","tide","tidy","tie","tier","tiger","tight","tile","till","tilt","timber","time","timid","tin","tiny","tip","tire","tissue","title","toad","toast","today","toe","toilet","token","tokyo","told","toll","tom","tomato","tomb","tonal","tone","tongue","tonic","too","took","tool","tooth","top","topaz","topic","torch","torque","torso","tort","toss","total","touch","tough","tour","toward","towel","tower","town","toxic","toxin","toy","trace","track","tract","trade","tragic","trail","train","trait","tram","trance","trap","trauma","travel","tray","tread","treat","treaty","treble","tree","trek","tremor","trench","trend","trendy","trial","tribal","tribe","trick","tricky","tried","trifle","trim","trio","trip","triple","troop","trophy","trot","trough","trout","truce","truck","true","truly","trunk","trust","truth","try","tube","tumble","tuna","tundra","tune","tunic","tunnel","turban","turf","turk","turkey","turn","turtle","tutor","tweed","twelve","twenty","twice","twin","twist","two","tycoon","tying","type","tyrant","ugly","ulcer","ultra","umpire","unable","uncle","under","uneasy","unfair","unify","union","unique","unit","unite","unity","unlike","unrest","unruly","until","update","upheld","uphill","uphold","upon","upper","uproar","upset","upshot","uptake","upturn","upward","urban","urge","urgent","urging","urine","usable","usage","use","useful","user","usual","utmost","utter","vacant","vacuum","vague","vain","valet","valid","valley","value","valve","van","vanish","vanity","vary","vase","vast","vat","vault","vector","veil","vein","velvet","vendor","veneer","venice","venom","vent","venue","venus","verb","verbal","verge","verify","verity","verse","versus","very","vessel","vest","vet","veto","via","viable","vicar","vice","victim","victor","video","vienna","view","vigil","viking","vile","villa","vine","vinyl","viola","violet","violin","viral","virgo","virtue","virus","visa","vision","visit","visual","vital","vivid","vocal","vodka","vogue","voice","void","volley","volume","vote","vowel","voyage","vulgar","wade","wage","waist","wait","waiter","wake","walk","walker","wall","wallet","walnut","wander","want","war","warden","warm","warmth","warn","warp","warsaw","wary","was","wash","wasp","waste","watch","water","watery","wave","wax","way","weak","weaken","wealth","weapon","wear","weary","weave","wedge","wee","weed","week","weekly","weep","weigh","weight","weird","well","were","west","wet","whale","wharf","what","wheat","wheel","when","whence","where","which","whiff","while","whim","whip","whisky","white","who","whole","wholly","whom","whose","why","wicked","wide","widely","widen","wider","widow","width","wife","wig","wild","wildly","will","willow","wily","win","wind","window","windy","wine","wing","wink","winner","winter","wipe","wire","wisdom","wise","wish","wit","witch","with","within","witty","wizard","woke","wolf","wolves","woman","womb","won","wonder","wood","wooden","woods","woody","wool","word","work","worker","world","worm","worry","worse","worst","worth","worthy","would","wound","wrap","wrath","wreath","wreck","wring","wrist","writ","write","writer","wrong","xerox","yacht","yale","yard","yarn","yeah","year","yeard","yeast","yellow","yet","yield","yogurt","yolk","you","young","your","youth","zaire","zeal","zebra","zenith","zero","zeus","zigzag","zinc","zombie","zone"],up=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function ik(n){return zy.apply(this,arguments)}function zy(){return zy=ct(function*(n){return new Uint8Array(yield crypto.subtle.digest("SHA-256",n))}),zy.apply(this,arguments)}function sk(n,e){return Ky.apply(this,arguments)}function Ky(){return Ky=ct(function*(n,e){const t=n.join(" "),o=`mnemonic${e}`.normalize("NFKD");return qf(_s.Sha512,t,o,2048,64)}),Ky.apply(this,arguments)}function ak(n,e){const o=function UY(n,e,t,o){let s=new hn(0);for(const u of n)s=s.times(e),s=s.plus(u);const l=new Uint8Array(o);for(let u=o-1;u>=0;u-=1){const p=s.dividedToIntegerBy(t),w=s.modulo(t);s=p,l[u]=w.toNumber()}return l}(n.map(u=>e.indexOf(u.toLowerCase())),e.length,256,33),s=o[o.length-1],l=new Uint8Array(o.length-1);for(let u=0;uup[lk(S)]);return new is({words:w})})()}static fromWords(e){return new is({words:e})._validate()}toPrivateKey(e=""){return this.toEd25519PrivateKey(e)}toEd25519PrivateKey(e="",t=ck){var o=this;return ct(function*(){let{keyData:s,chainCode:l}=yield o._toKeyData(e,"ed25519 seed");for(const p of t)({keyData:s,chainCode:l}=yield NT(s,l,p));const u=zs.sign.keyPair.fromSeed(s);if(null==fa.privateKeyConstructor)throw new Error("PrivateKey not found in cache");return fa.privateKeyConstructor(new ho(u,l))})()}toStandardEd25519PrivateKey(e="",t){var o=this;return ct(function*(){const s=yield is.toSeed(o.words,e);let l=yield nr.fromSeedED25519(s);t=t??0;for(const u of[44,3030,0,0,t])l=yield l.derive(u);return l})()}toEcdsaPrivateKey(e="",t=ck){var o=this;return ct(function*(){let{keyData:s,chainCode:l}=yield o._toKeyData(e,"Bitcoin seed");for(const u of t)({keyData:s,chainCode:l}=yield ip(s,l,u));if(null==fa.privateKeyConstructor)throw new Error("PrivateKey not found in cache");return fa.privateKeyConstructor(new Ro(Wf(s),l))})()}toStandardECDSAsecp256k1PrivateKey(e="",t){var o=this;return ct(function*(){const s=yield is.toSeed(o.words,e);let l=yield nr.fromSeedECDSAsecp256k1(s);t=t??0;for(const u of[Ay(44),Ay(3030),Ay(0),0,t])l=yield l.derive(u);return l})()}static toSeed(e,t){return ct(function*(){return yield sk(e,t)})()}_toKeyData(e,t){var o=this;return ct(function*(){const s=yield sk(o.words,e),l=yield Cl(_s.Sha512,t,s);return{keyData:l.subarray(0,32),chainCode:l.subarray(32)}})()}static fromString(e){return ct(function*(){return is.fromWords(e.split(/\s|,/))})()}_validate(){var e=this;return ct(function*(){if(22===e.words.length){const t=e.words.reduce((u,p,w)=>Qy.includes(p.toLowerCase())?u:[...u,w],[]);if(t.length>0)throw new Tl(e,Pc.UnknownWords,t);const[o,s]=ak(e.words,Qy),l=function LY(n){let e=255;for(let t=0;t>>1^(1&e?178:0)}return 255^e}(o);if(s!==l)throw new Tl(e,Pc.ChecksumMismatch,[])}else{if(12!==e.words.length&&24!==e.words.length)throw new Tl(e,Pc.BadLength,[]);const t=e.words.reduce((V,J,he)=>up.includes(J)?V:[...V,he],[]);if(t.length>0)throw new Tl(e,Pc.UnknownWords,t);const o=e.words.map(V=>up.indexOf(V).toString(2).padStart(11,"0")).join(""),s=32*Math.floor(o.length/33),l=o.slice(0,s),u=o.slice(s),w=l.match(/(.{1,8})/g).map(lk);if((yield dk(Uint8Array.from(w)))!==u)throw new Tl(e,Pc.ChecksumMismatch,[])}return e})()}toLegacyPrivateKey(){var e=this;return ct(function*(){let t;if(22===e.words.length?[t]=ak(e.words,Qy):t=yield function FY(n,e){return Yy.apply(this,arguments)}(e.words,up),null==fa.privateKeyFromBytes)throw new Error("PrivateKey not found in cache");return fa.privateKeyFromBytes(t)})()}toString(){return this.words.join(" ")}}function lk(n){return parseInt(n,2)}function uk(n){return n.map(e=>e.toString(2).padStart(8,"0")).join("")}function dk(n){return Wy.apply(this,arguments)}function Wy(){return Wy=ct(function*(n){const t=8*n.length/32,o=yield ik(n);return uk(Array.from(o)).slice(0,t)}),Wy.apply(this,arguments)}class Yu{constructor(e){this._mnemonic=e}static generate(){return ct(function*(){return new Yu(yield is._generate(24))})()}static generate12(){return ct(function*(){return new Yu(yield is._generate(12))})()}static fromWords(e){return ct(function*(){return new Yu(yield is.fromWords(e))})()}toPrivateKey(e=""){var t=this;return ct(function*(){return Pr.privateKeyConstructor(yield t._mnemonic.toPrivateKey(e))})()}toEd25519PrivateKey(e="",t){var o=this;return ct(function*(){return Pr.privateKeyConstructor(yield o._mnemonic.toEd25519PrivateKey(e,t))})()}toStandardEd25519PrivateKey(e="",t){var o=this;return ct(function*(){return Pr.privateKeyConstructor(yield o._mnemonic.toStandardEd25519PrivateKey(e,t))})()}toEcdsaPrivateKey(e="",t){var o=this;return ct(function*(){return Pr.privateKeyConstructor(yield o._mnemonic.toEcdsaPrivateKey(e,t))})()}toStandardECDSAsecp256k1PrivateKey(e="",t){var o=this;return ct(function*(){return Pr.privateKeyConstructor(yield o._mnemonic.toStandardECDSAsecp256k1PrivateKey(e,t))})()}static fromString(e){return ct(function*(){return new Yu(yield is.fromString(e))})()}toLegacyPrivateKey(){var e=this;return ct(function*(){return Pr.privateKeyConstructor(yield e._mnemonic.toLegacyPrivateKey())})()}toSeed(e){var t=this;return ct(function*(){return yield is.toSeed(t._mnemonic.words,e)})()}toString(){return this._mnemonic.toString()}}function fk(n,e){if(n===e)return!0;if(n.byteLength!==e.byteLength)return!1;const t=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(e.buffer,e.byteOffset,e.byteLength);let s=n.byteLength;for(;s--;)if(t.getUint8(s)!==o.getUint8(s))return!1;return!0}class qn{_toProtobufKey(){throw new Error("not implemented")}static _fromProtobufKey(e){return null!=e.contractID?Pr.contractId(e.contractID):null!=e.delegatableContractId?Pr.delegateContractId(e.delegatableContractId):null!=e.ed25519&&e.ed25519.byteLength>0?Pr.publicKeyED25519(e.ed25519):null!=e.ECDSASecp256k1&&e.ECDSASecp256k1.byteLength>0?Pr.publicKeyECDSA(e.ECDSASecp256k1):null!=e.thresholdKey&&null!=e.thresholdKey.threshold?Pr.thresholdKey(e.thresholdKey):null!=e.keyList?Pr.keyList(e.keyList):null}}class _o extends qn{constructor(e){super(),this._key=e}static fromBytes(e){return new _o(Ti.fromBytes(e))}static fromBytesED25519(e){return new _o(Ti.fromBytesED25519(e))}static fromBytesECDSA(e){return new _o(Ti.fromBytesECDSA(e))}static fromString(e){return new _o(Ti.fromString(e))}static fromStringECDSA(e){return new _o(Ti.fromStringECDSA(e))}static fromStringED25519(e){return new _o(Ti.fromStringED25519(e))}verify(e,t){return this._key.verify(e,t)}verifyTransaction(e){e._requireFrozen(),e.isFrozen()||e.freeze();for(const t of e._signedTransactions.list)if(null!=t.sigMap&&null!=t.sigMap.sigPair){let o=!1;for(const s of t.sigMap.sigPair)if(fk(s.pubKeyPrefix,this.toBytesRaw())){o=!0;const u=t.bodyBytes;let p=null;if(null!=s.ed25519?p=s.ed25519:null!=s.ECDSASecp256k1&&(p=s.ECDSASecp256k1),null==p)continue;if(!this.verify(u,p))return!1}if(!o)return!1}return!0}toBytes(){return this._key.toBytes()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toEthereumAddress(){return this._key.toEthereumAddress()}toEvmAddress(){return this._key.toEthereumAddress()}toString(){return this._key.toString()}toStringDer(){return this._key.toStringDer()}toStringRaw(){return this._key.toStringRaw()}equals(e){return this._key.equals(e._key)}_toProtobufKey(){switch(this._key._type){case"ED25519":return{ed25519:this._key.toBytesRaw()};case"secp256k1":return{ECDSASecp256k1:this._key.toBytesRaw()};default:throw new Error(`unrecognized key type ${this._key._type}`)}}_toProtobufSignature(e){switch(this._key._type){case"ED25519":return{pubKeyPrefix:this._key.toBytesRaw(),ed25519:e};case"secp256k1":return{pubKeyPrefix:this._key.toBytesRaw(),ECDSASecp256k1:e};default:throw new Error(`unrecognized key type ${this._key._type}`)}}toAccountId(e,t){return Pr.accountIdConstructor(e,t,this)}}Pr.setPublicKeyED25519(n=>_o.fromBytesED25519(n)),Pr.setPublicKeyECDSA(n=>_o.fromBytesECDSA(n));class so extends qn{constructor(e){super(),this._key=e}static generateED25519(){return new so(nr.generateED25519())}static generateECDSA(){return new so(nr.generateECDSA())}static generate(){return so.generateED25519()}static generateAsync(){return ct(function*(){return new so(yield nr.generateAsync())})()}static generateED25519Async(){return ct(function*(){return new so(yield nr.generateED25519Async())})()}static generateECDSAAsync(){return ct(function*(){return new so(yield nr.generateECDSAAsync())})()}static fromBytes(e){return new so(nr.fromBytes(e))}static fromBytesECDSA(e){return new so(nr.fromBytesECDSA(e))}static fromBytesED25519(e){return new so(nr.fromBytesED25519(e))}static fromString(e){return new so(nr.fromString(e))}static fromStringECDSA(e){return new so(nr.fromStringECDSA(e))}static fromStringED25519(e){return new so(nr.fromStringED25519(e))}static fromSeedED25519(e){return ct(function*(){return new so(yield nr.fromSeedED25519(e))})()}static fromSeedECDSAsecp256k1(e){return ct(function*(){return new so(yield nr.fromSeedECDSAsecp256k1(e))})()}static fromMnemonic(e,t=""){return ct(function*(){return new so(e instanceof Yu?yield nr.fromMnemonic(e._mnemonic,t):yield nr.fromMnemonic(e,t))})()}static fromKeystore(e,t=""){return ct(function*(){return new so(yield nr.fromKeystore(e,t))})()}static fromPem(e,t=""){return ct(function*(){return new so(yield nr.fromPem(e,t))})()}derive(e){var t=this;return ct(function*(){return new so(yield t._key.derive(e))})()}legacyDerive(e){var t=this;return ct(function*(){return new so(yield t._key.legacyDerive(e))})()}get publicKey(){return new _o(this._key.publicKey)}get chainCode(){return this._key._chainCode}sign(e){return this._key.sign(e)}signTransaction(e){const t=e._signedTransactions.get(0),o=null!=t.bodyBytes?this.sign(t.bodyBytes):new Uint8Array;return e.addSignature(this.publicKey,o),o}isDerivable(){return this._key.isDerivable()}toBytes(){return this._key.toBytes()}toBytesDer(){return this._key.toBytesDer()}toBytesRaw(){return this._key.toBytesRaw()}toString(){return this._key.toStringDer()}toStringDer(){return this._key.toStringDer()}toStringRaw(){return this._key.toStringRaw()}toKeystore(e=""){return this._key.toKeystore(e)}_toProtobufKey(){return this.publicKey._toProtobufKey()}toAccountId(e,t){return this.publicKey.toAccountId(e,t)}get type(){return this._key._type}}Pr.setPrivateKeyConstructor(n=>new so(n));class Vo extends qn{constructor(e,t){super(),this._keys=null==e?[]:e instanceof qn?[e]:e,this._threshold=t??null}static of(...e){return new Vo(e,null)}static from(e,t,o){return new Vo(null==t?Array.from(e):Array.from(e,t,o))}get threshold(){return this._threshold}setThreshold(e){return this._threshold=e,this}push(...e){return this._keys.push(...e)}splice(e,t,...o){return new Vo(this._keys.splice(e,t,...o),this.threshold)}slice(e,t){return new Vo(this._keys.slice(e,t),this.threshold)}[Symbol.iterator](){return this._keys[Symbol.iterator]()}toArray(){return this._keys.slice()}toString(){return JSON.stringify({threshold:this._threshold,keys:this._keys.toString()})}_toProtobufKey(){const e=this._keys.map(t=>t._toProtobufKey());return null==this.threshold?{keyList:{keys:e}}:{thresholdKey:{threshold:this.threshold,keys:{keys:e}}}}static __fromProtobufKeyList(e){const t=(null!=e.keys?e.keys:[]).map(o=>qn._fromProtobufKey(o));return new Vo(t)}static __fromProtobufThresoldKey(e){const t=Vo.__fromProtobufKeyList(null!=e.keys?e.keys:{});return t.setThreshold(null!=e.threshold?e.threshold:0),t}}Pr.setKeyList(n=>Vo.__fromProtobufKeyList(n)),Pr.setThresholdKey(n=>Vo.__fromProtobufThresoldKey(n));class sr{constructor(e,t,o){this._name=e,this._symbol=t,this._tinybar=o,Object.freeze(this)}static fromString(e){switch(e){case sr.Hbar._symbol:return sr.Hbar;case sr.Tinybar._symbol:return sr.Tinybar;case sr.Microbar._symbol:return sr.Microbar;case sr.Millibar._symbol:return sr.Millibar;case sr.Kilobar._symbol:return sr.Kilobar;case sr.Megabar._symbol:return sr.Megabar;case sr.Gigabar._symbol:return sr.Gigabar;default:throw new Error("Unknown unit.")}}}sr.Tinybar=new sr("tinybar","t\u210f",new hn(1)),sr.Microbar=new sr("microbar","\u03bc\u210f",new hn(100)),sr.Millibar=new sr("millibar","m\u210f",new hn(1e5)),sr.Hbar=new sr("hbar","\u210f",new hn("100000000")),sr.Kilobar=new sr("kilobar","k\u210f",new hn(1e3).multipliedBy(new hn("100000000"))),sr.Megabar=new sr("megabar","M\u210f",new hn(1e6).multipliedBy(new hn("100000000"))),sr.Gigabar=new sr("gigabar","G\u210f",new hn("1000000000").multipliedBy(new hn("100000000")));class mn{constructor(e,t=sr.Hbar){if(t===sr.Tinybar)this._valueInTinybar=function HY(n){return hn.isBigNumber(n)?n:new hn(n.toString())}(e);else{let o;o=mt.isLong(e)?new hn(e.toString(10)):hn.isBigNumber(e)||"string"==typeof e||"number"==typeof e?new hn(e):new hn(0),this._valueInTinybar=o.multipliedBy(t._tinybar)}if(!this._valueInTinybar.isInteger())throw new Error("Hbar in tinybars contains decimals")}static from(e,t){return new mn(e,t)}static fromTinybars(e){return"string"==typeof e?this.fromString(e,sr.Tinybar):new mn(e,sr.Tinybar)}static fromString(e,t=sr.Hbar){if(/^((?:\+|-)?\d+(?:\.\d+)?)(?: (t\u210f|\u03bc\u210f|m\u210f|\u210f|k\u210f|M\u210f|G\u210f))?$/.test(e)){let[s,l]=e.split(" ");return null!=l&&(t=sr.fromString(l)),new mn(new hn(s),t)}throw new Error("invalid argument provided")}to(e){return this._valueInTinybar.dividedBy(e._tinybar)}toBigNumber(){return this.to(sr.Hbar)}toTinybars(){return mt.fromValue(this._valueInTinybar.toFixed())}negated(){return mn.fromTinybars(this._valueInTinybar.negated())}isNegative(){return this._valueInTinybar.isNegative()}toString(e){return null!=e?`${this._valueInTinybar.dividedBy(e._tinybar).toString()} ${e._symbol}`:this._valueInTinybar.isLessThan(1e4)&&this._valueInTinybar.isGreaterThan(-1e4)?`${this._valueInTinybar.toFixed()} ${sr.Tinybar._symbol}`:`${this.to(sr.Hbar).toString()} ${sr.Hbar._symbol}`}}class t3 extends Error{constructor(e,t){super(t),this.name="StatusError",this.status=e.status,this.transactionId=e.transactionId,this.message=t,typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,t3)}toJSON(){return{name:this.name,status:this.status.toString(),transactionId:this.transactionId.toString(),message:this.message}}toString(){return JSON.stringify(this.toJSON())}valueOf(){return this.toJSON()}}class dp extends t3{constructor(e){super(e,`receipt for transaction ${e.transactionId.toString()} contained error status ${e.status.toString()}`),this.transactionReceipt=e.transactionReceipt}}class M{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case M.Ok:return"OK";case M.InvalidTransaction:return"INVALID_TRANSACTION";case M.PayerAccountNotFound:return"PAYER_ACCOUNT_NOT_FOUND";case M.InvalidNodeAccount:return"INVALID_NODE_ACCOUNT";case M.TransactionExpired:return"TRANSACTION_EXPIRED";case M.InvalidTransactionStart:return"INVALID_TRANSACTION_START";case M.InvalidTransactionDuration:return"INVALID_TRANSACTION_DURATION";case M.InvalidSignature:return"INVALID_SIGNATURE";case M.MemoTooLong:return"MEMO_TOO_LONG";case M.InsufficientTxFee:return"INSUFFICIENT_TX_FEE";case M.InsufficientPayerBalance:return"INSUFFICIENT_PAYER_BALANCE";case M.DuplicateTransaction:return"DUPLICATE_TRANSACTION";case M.Busy:return"BUSY";case M.NotSupported:return"NOT_SUPPORTED";case M.InvalidFileId:return"INVALID_FILE_ID";case M.InvalidAccountId:return"INVALID_ACCOUNT_ID";case M.InvalidContractId:return"INVALID_CONTRACT_ID";case M.InvalidTransactionId:return"INVALID_TRANSACTION_ID";case M.ReceiptNotFound:return"RECEIPT_NOT_FOUND";case M.RecordNotFound:return"RECORD_NOT_FOUND";case M.InvalidSolidityId:return"INVALID_SOLIDITY_ID";case M.Unknown:return"UNKNOWN";case M.Success:return"SUCCESS";case M.FailInvalid:return"FAIL_INVALID";case M.FailFee:return"FAIL_FEE";case M.FailBalance:return"FAIL_BALANCE";case M.KeyRequired:return"KEY_REQUIRED";case M.BadEncoding:return"BAD_ENCODING";case M.InsufficientAccountBalance:return"INSUFFICIENT_ACCOUNT_BALANCE";case M.InvalidSolidityAddress:return"INVALID_SOLIDITY_ADDRESS";case M.InsufficientGas:return"INSUFFICIENT_GAS";case M.ContractSizeLimitExceeded:return"CONTRACT_SIZE_LIMIT_EXCEEDED";case M.LocalCallModificationException:return"LOCAL_CALL_MODIFICATION_EXCEPTION";case M.ContractRevertExecuted:return"CONTRACT_REVERT_EXECUTED";case M.ContractExecutionException:return"CONTRACT_EXECUTION_EXCEPTION";case M.InvalidReceivingNodeAccount:return"INVALID_RECEIVING_NODE_ACCOUNT";case M.MissingQueryHeader:return"MISSING_QUERY_HEADER";case M.AccountUpdateFailed:return"ACCOUNT_UPDATE_FAILED";case M.InvalidKeyEncoding:return"INVALID_KEY_ENCODING";case M.NullSolidityAddress:return"NULL_SOLIDITY_ADDRESS";case M.ContractUpdateFailed:return"CONTRACT_UPDATE_FAILED";case M.InvalidQueryHeader:return"INVALID_QUERY_HEADER";case M.InvalidFeeSubmitted:return"INVALID_FEE_SUBMITTED";case M.InvalidPayerSignature:return"INVALID_PAYER_SIGNATURE";case M.KeyNotProvided:return"KEY_NOT_PROVIDED";case M.InvalidExpirationTime:return"INVALID_EXPIRATION_TIME";case M.NoWaclKey:return"NO_WACL_KEY";case M.FileContentEmpty:return"FILE_CONTENT_EMPTY";case M.InvalidAccountAmounts:return"INVALID_ACCOUNT_AMOUNTS";case M.EmptyTransactionBody:return"EMPTY_TRANSACTION_BODY";case M.InvalidTransactionBody:return"INVALID_TRANSACTION_BODY";case M.InvalidSignatureTypeMismatchingKey:return"INVALID_SIGNATURE_TYPE_MISMATCHING_KEY";case M.InvalidSignatureCountMismatchingKey:return"INVALID_SIGNATURE_COUNT_MISMATCHING_KEY";case M.EmptyLiveHashBody:return"EMPTY_LIVE_HASH_BODY";case M.EmptyLiveHash:return"EMPTY_LIVE_HASH";case M.EmptyLiveHashKeys:return"EMPTY_LIVE_HASH_KEYS";case M.InvalidLiveHashSize:return"INVALID_LIVE_HASH_SIZE";case M.EmptyQueryBody:return"EMPTY_QUERY_BODY";case M.EmptyLiveHashQuery:return"EMPTY_LIVE_HASH_QUERY";case M.LiveHashNotFound:return"LIVE_HASH_NOT_FOUND";case M.AccountIdDoesNotExist:return"ACCOUNT_ID_DOES_NOT_EXIST";case M.LiveHashAlreadyExists:return"LIVE_HASH_ALREADY_EXISTS";case M.InvalidFileWacl:return"INVALID_FILE_WACL";case M.SerializationFailed:return"SERIALIZATION_FAILED";case M.TransactionOversize:return"TRANSACTION_OVERSIZE";case M.TransactionTooManyLayers:return"TRANSACTION_TOO_MANY_LAYERS";case M.ContractDeleted:return"CONTRACT_DELETED";case M.PlatformNotActive:return"PLATFORM_NOT_ACTIVE";case M.KeyPrefixMismatch:return"KEY_PREFIX_MISMATCH";case M.PlatformTransactionNotCreated:return"PLATFORM_TRANSACTION_NOT_CREATED";case M.InvalidRenewalPeriod:return"INVALID_RENEWAL_PERIOD";case M.InvalidPayerAccountId:return"INVALID_PAYER_ACCOUNT_ID";case M.AccountDeleted:return"ACCOUNT_DELETED";case M.FileDeleted:return"FILE_DELETED";case M.AccountRepeatedInAccountAmounts:return"ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS";case M.SettingNegativeAccountBalance:return"SETTING_NEGATIVE_ACCOUNT_BALANCE";case M.ObtainerRequired:return"OBTAINER_REQUIRED";case M.ObtainerSameContractId:return"OBTAINER_SAME_CONTRACT_ID";case M.ObtainerDoesNotExist:return"OBTAINER_DOES_NOT_EXIST";case M.ModifyingImmutableContract:return"MODIFYING_IMMUTABLE_CONTRACT";case M.FileSystemException:return"FILE_SYSTEM_EXCEPTION";case M.AutorenewDurationNotInRange:return"AUTORENEW_DURATION_NOT_IN_RANGE";case M.ErrorDecodingBytestring:return"ERROR_DECODING_BYTESTRING";case M.ContractFileEmpty:return"CONTRACT_FILE_EMPTY";case M.ContractBytecodeEmpty:return"CONTRACT_BYTECODE_EMPTY";case M.InvalidInitialBalance:return"INVALID_INITIAL_BALANCE";case M.InvalidReceiveRecordThreshold:return"INVALID_RECEIVE_RECORD_THRESHOLD";case M.InvalidSendRecordThreshold:return"INVALID_SEND_RECORD_THRESHOLD";case M.AccountIsNotGenesisAccount:return"ACCOUNT_IS_NOT_GENESIS_ACCOUNT";case M.PayerAccountUnauthorized:return"PAYER_ACCOUNT_UNAUTHORIZED";case M.InvalidFreezeTransactionBody:return"INVALID_FREEZE_TRANSACTION_BODY";case M.FreezeTransactionBodyNotFound:return"FREEZE_TRANSACTION_BODY_NOT_FOUND";case M.TransferListSizeLimitExceeded:return"TRANSFER_LIST_SIZE_LIMIT_EXCEEDED";case M.ResultSizeLimitExceeded:return"RESULT_SIZE_LIMIT_EXCEEDED";case M.NotSpecialAccount:return"NOT_SPECIAL_ACCOUNT";case M.ContractNegativeGas:return"CONTRACT_NEGATIVE_GAS";case M.ContractNegativeValue:return"CONTRACT_NEGATIVE_VALUE";case M.InvalidFeeFile:return"INVALID_FEE_FILE";case M.InvalidExchangeRateFile:return"INVALID_EXCHANGE_RATE_FILE";case M.InsufficientLocalCallGas:return"INSUFFICIENT_LOCAL_CALL_GAS";case M.EntityNotAllowedToDelete:return"ENTITY_NOT_ALLOWED_TO_DELETE";case M.AuthorizationFailed:return"AUTHORIZATION_FAILED";case M.FileUploadedProtoInvalid:return"FILE_UPLOADED_PROTO_INVALID";case M.FileUploadedProtoNotSavedToDisk:return"FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK";case M.FeeScheduleFilePartUploaded:return"FEE_SCHEDULE_FILE_PART_UPLOADED";case M.ExchangeRateChangeLimitExceeded:return"EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED";case M.MaxContractStorageExceeded:return"MAX_CONTRACT_STORAGE_EXCEEDED";case M.TransferAccountSameAsDeleteAccount:return"TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT";case M.TotalLedgerBalanceInvalid:return"TOTAL_LEDGER_BALANCE_INVALID";case M.ExpirationReductionNotAllowed:return"EXPIRATION_REDUCTION_NOT_ALLOWED";case M.MaxGasLimitExceeded:return"MAX_GAS_LIMIT_EXCEEDED";case M.MaxFileSizeExceeded:return"MAX_FILE_SIZE_EXCEEDED";case M.ReceiverSigRequired:return"RECEIVER_SIG_REQUIRED";case M.InvalidTopicId:return"INVALID_TOPIC_ID";case M.InvalidAdminKey:return"INVALID_ADMIN_KEY";case M.InvalidSubmitKey:return"INVALID_SUBMIT_KEY";case M.Unauthorized:return"UNAUTHORIZED";case M.InvalidTopicMessage:return"INVALID_TOPIC_MESSAGE";case M.InvalidAutorenewAccount:return"INVALID_AUTORENEW_ACCOUNT";case M.AutorenewAccountNotAllowed:return"AUTORENEW_ACCOUNT_NOT_ALLOWED";case M.TopicExpired:return"TOPIC_EXPIRED";case M.InvalidChunkNumber:return"INVALID_CHUNK_NUMBER";case M.InvalidChunkTransactionId:return"INVALID_CHUNK_TRANSACTION_ID";case M.AccountFrozenForToken:return"ACCOUNT_FROZEN_FOR_TOKEN";case M.TokensPerAccountLimitExceeded:return"TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED";case M.InvalidTokenId:return"INVALID_TOKEN_ID";case M.InvalidTokenDecimals:return"INVALID_TOKEN_DECIMALS";case M.InvalidTokenInitialSupply:return"INVALID_TOKEN_INITIAL_SUPPLY";case M.InvalidTreasuryAccountForToken:return"INVALID_TREASURY_ACCOUNT_FOR_TOKEN";case M.InvalidTokenSymbol:return"INVALID_TOKEN_SYMBOL";case M.TokenHasNoFreezeKey:return"TOKEN_HAS_NO_FREEZE_KEY";case M.TransfersNotZeroSumForToken:return"TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN";case M.MissingTokenSymbol:return"MISSING_TOKEN_SYMBOL";case M.TokenSymbolTooLong:return"TOKEN_SYMBOL_TOO_LONG";case M.AccountKycNotGrantedForToken:return"ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN";case M.TokenHasNoKycKey:return"TOKEN_HAS_NO_KYC_KEY";case M.InsufficientTokenBalance:return"INSUFFICIENT_TOKEN_BALANCE";case M.TokenWasDeleted:return"TOKEN_WAS_DELETED";case M.TokenHasNoSupplyKey:return"TOKEN_HAS_NO_SUPPLY_KEY";case M.TokenHasNoWipeKey:return"TOKEN_HAS_NO_WIPE_KEY";case M.InvalidTokenMintAmount:return"INVALID_TOKEN_MINT_AMOUNT";case M.InvalidTokenBurnAmount:return"INVALID_TOKEN_BURN_AMOUNT";case M.TokenNotAssociatedToAccount:return"TOKEN_NOT_ASSOCIATED_TO_ACCOUNT";case M.CannotWipeTokenTreasuryAccount:return"CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT";case M.InvalidKycKey:return"INVALID_KYC_KEY";case M.InvalidWipeKey:return"INVALID_WIPE_KEY";case M.InvalidFreezeKey:return"INVALID_FREEZE_KEY";case M.InvalidSupplyKey:return"INVALID_SUPPLY_KEY";case M.MissingTokenName:return"MISSING_TOKEN_NAME";case M.TokenNameTooLong:return"TOKEN_NAME_TOO_LONG";case M.InvalidWipingAmount:return"INVALID_WIPING_AMOUNT";case M.TokenIsImmutable:return"TOKEN_IS_IMMUTABLE";case M.TokenAlreadyAssociatedToAccount:return"TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT";case M.TransactionRequiresZeroTokenBalances:return"TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES";case M.AccountIsTreasury:return"ACCOUNT_IS_TREASURY";case M.TokenIdRepeatedInTokenList:return"TOKEN_ID_REPEATED_IN_TOKEN_LIST";case M.TokenTransferListSizeLimitExceeded:return"TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED";case M.EmptyTokenTransferBody:return"EMPTY_TOKEN_TRANSFER_BODY";case M.EmptyTokenTransferAccountAmounts:return"EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS";case M.InvalidScheduleId:return"INVALID_SCHEDULE_ID";case M.ScheduleIsImmutable:return"SCHEDULE_IS_IMMUTABLE";case M.InvalidSchedulePayerId:return"INVALID_SCHEDULE_PAYER_ID";case M.InvalidScheduleAccountId:return"INVALID_SCHEDULE_ACCOUNT_ID";case M.NoNewValidSignatures:return"NO_NEW_VALID_SIGNATURES";case M.UnresolvableRequiredSigners:return"UNRESOLVABLE_REQUIRED_SIGNERS";case M.ScheduledTransactionNotInWhitelist:return"SCHEDULED_TRANSACTION_NOT_IN_WHITELIST";case M.SomeSignaturesWereInvalid:return"SOME_SIGNATURES_WERE_INVALID";case M.TransactionIdFieldNotAllowed:return"TRANSACTION_ID_FIELD_NOT_ALLOWED";case M.IdenticalScheduleAlreadyCreated:return"IDENTICAL_SCHEDULE_ALREADY_CREATED";case M.InvalidZeroByteInString:return"INVALID_ZERO_BYTE_IN_STRING";case M.ScheduleAlreadyDeleted:return"SCHEDULE_ALREADY_DELETED";case M.ScheduleAlreadyExecuted:return"SCHEDULE_ALREADY_EXECUTED";case M.MessageSizeTooLarge:return"MESSAGE_SIZE_TOO_LARGE";case M.OperationRepeatedInBucketGroups:return"OPERATION_REPEATED_IN_BUCKET_GROUPS";case M.BucketCapacityOverflow:return"BUCKET_CAPACITY_OVERFLOW";case M.NodeCapacityNotSufficientForOperation:return"NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION";case M.BucketHasNoThrottleGroups:return"BUCKET_HAS_NO_THROTTLE_GROUPS";case M.ThrottleGroupHasZeroOpsPerSec:return"THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC";case M.SuccessButMissingExpectedOperation:return"SUCCESS_BUT_MISSING_EXPECTED_OPERATION";case M.UnparseableThrottleDefinitions:return"UNPARSEABLE_THROTTLE_DEFINITIONS";case M.InvalidThrottleDefinitions:return"INVALID_THROTTLE_DEFINITIONS";case M.AccountExpiredAndPendingRemoval:return"ACCOUNT_EXPIRED_AND_PENDING_REMOVAL";case M.InvalidTokenMaxSupply:return"INVALID_TOKEN_MAX_SUPPLY";case M.InvalidTokenNftSerialNumber:return"INVALID_TOKEN_NFT_SERIAL_NUMBER";case M.InvalidNftId:return"INVALID_NFT_ID";case M.MetadataTooLong:return"METADATA_TOO_LONG";case M.BatchSizeLimitExceeded:return"BATCH_SIZE_LIMIT_EXCEEDED";case M.InvalidQueryRange:return"INVALID_QUERY_RANGE";case M.FractionDividesByZero:return"FRACTION_DIVIDES_BY_ZERO";case M.InsufficientPayerBalanceForCustomFee:return"INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE";case M.CustomFeesListTooLong:return"CUSTOM_FEES_LIST_TOO_LONG";case M.InvalidCustomFeeCollector:return"INVALID_CUSTOM_FEE_COLLECTOR";case M.InvalidTokenIdInCustomFees:return"INVALID_TOKEN_ID_IN_CUSTOM_FEES";case M.TokenNotAssociatedToFeeCollector:return"TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR";case M.TokenMaxSupplyReached:return"TOKEN_MAX_SUPPLY_REACHED";case M.SenderDoesNotOwnNftSerialNo:return"SENDER_DOES_NOT_OWN_NFT_SERIAL_NO";case M.CustomFeeNotFullySpecified:return"CUSTOM_FEE_NOT_FULLY_SPECIFIED";case M.CustomFeeMustBePositive:return"CUSTOM_FEE_MUST_BE_POSITIVE";case M.TokenHasNoFeeScheduleKey:return"TOKEN_HAS_NO_FEE_SCHEDULE_KEY";case M.CustomFeeOutsideNumericRange:return"CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE";case M.RoyaltyFractionCannotExceedOne:return"ROYALTY_FRACTION_CANNOT_EXCEED_ONE";case M.FractionalFeeMaxAmountLessThanMinAmount:return"FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT";case M.CustomScheduleAlreadyHasNoFees:return"CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES";case M.CustomFeeDenominationMustBeFungibleCommon:return"CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON";case M.CustomFractionalFeeOnlyAllowedForFungibleCommon:return"CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON";case M.InvalidCustomFeeScheduleKey:return"INVALID_CUSTOM_FEE_SCHEDULE_KEY";case M.InvalidTokenMintMetadata:return"INVALID_TOKEN_MINT_METADATA";case M.InvalidTokenBurnMetadata:return"INVALID_TOKEN_BURN_METADATA";case M.CurrentTreasuryStillOwnsNfts:return"CURRENT_TREASURY_STILL_OWNS_NFTS";case M.AccountStillOwnsNfts:return"ACCOUNT_STILL_OWNS_NFTS";case M.TreasuryMustOwnBurnedNft:return"TREASURY_MUST_OWN_BURNED_NFT";case M.AccountDoesNotOwnWipedNft:return"ACCOUNT_DOES_NOT_OWN_WIPED_NFT";case M.AccountAmountTransfersOnlyAllowedForFungibleCommon:return"ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON";case M.MaxNftsInPriceRegimeHaveBeenMinted:return"MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED";case M.PayerAccountDeleted:return"PAYER_ACCOUNT_DELETED";case M.CustomFeeChargingExceededMaxRecursionDepth:return"CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH";case M.CustomFeeChargingExceededMaxAccountAmounts:return"CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS";case M.InsufficientSenderAccountBalanceForCustomFee:return"INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE";case M.SerialNumberLimitReached:return"SERIAL_NUMBER_LIMIT_REACHED";case M.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique:return"CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE";case M.NoRemainingAutomaticAssociations:return"NO_REMAINING_AUTOMATIC_ASSOCIATIONS";case M.ExistingAutomaticAssociationsExceedGivenLimit:return"EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT";case M.RequestedNumAutomaticAssociationsExceedsAssociationLimit:return"REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT";case M.TokenIsPaused:return"TOKEN_IS_PAUSED";case M.TokenHasNoPauseKey:return"TOKEN_HAS_NO_PAUSE_KEY";case M.InvalidPauseKey:return"INVALID_PAUSE_KEY";case M.FreezeUpdateFileDoesNotExist:return"FREEZE_UPDATE_FILE_DOES_NOT_EXIST";case M.FreezeUpdateFileHashDoesNotMatch:return"FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH";case M.NoUpgradeHasBeenPrepared:return"NO_UPGRADE_HAS_BEEN_PREPARED";case M.NoFreezeIsScheduled:return"NO_FREEZE_IS_SCHEDULED";case M.UpdateFileHashChangedSincePrepareUpgrade:return"UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE";case M.FreezeStartTimeMustBeFuture:return"FREEZE_START_TIME_MUST_BE_FUTURE";case M.PreparedUpdateFileIsImmutable:return"PREPARED_UPDATE_FILE_IS_IMMUTABLE";case M.FreezeAlreadyScheduled:return"FREEZE_ALREADY_SCHEDULED";case M.FreezeUpgradeInProgress:return"FREEZE_UPGRADE_IN_PROGRESS";case M.UpdateFileIdDoesNotMatchPrepared:return"UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED";case M.UpdateFileHashDoesNotMatchPrepared:return"UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED";case M.ConsensusGasExhausted:return"CONSENSUS_GAS_EXHAUSTED";case M.RevertedSuccess:return"REVERTED_SUCCESS";case M.MaxStorageInPriceRegimeHasBeenUsed:return"MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED";case M.InvalidAliasKey:return"INVALID_ALIAS_KEY";case M.UnexpectedTokenDecimals:return"UNEXPECTED_TOKEN_DECIMALS";case M.InvalidProxyAccountId:return"INVALID_PROXY_ACCOUNT_ID";case M.InvalidTransferAccountId:return"INVALID_TRANSFER_ACCOUNT_ID";case M.InvalidFeeCollectorAccountId:return"INVALID_FEE_COLLECTOR_ACCOUNT_ID";case M.AliasIsImmutable:return"ALIAS_IS_IMMUTABLE";case M.SpenderAccountSameAsOwner:return"SPENDER_ACCOUNT_SAME_AS_OWNER";case M.AmountExceedsTokenMaxSupply:return"AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY";case M.NegativeAllowanceAmount:return"NEGATIVE_ALLOWANCE_AMOUNT";case M.CannotApproveForAllFungibleCommon:return"CANNOT_APPROVE_FOR_ALL_FUNGIBLE_COMMON";case M.SpenderDoesNotHaveAllowance:return"SPENDER_DOES_NOT_HAVE_ALLOWANCE";case M.AmountExceedsAllowance:return"AMOUNT_EXCEEDS_ALLOWANCE";case M.MaxAllowancesExceeded:return"MAX_ALLOWANCES_EXCEEDED";case M.EmptyAllowances:return"EMPTY_ALLOWANCES";case M.SpenderAccountRepeatedInAllowances:return"SPENDER_ACCOUNT_REPEATED_IN_ALLOWANCES";case M.RepeatedSerialNumsInNftAllowances:return"REPEATED_SERIAL_NUMS_IN_NFT_ALLOWANCES";case M.FungibleTokenInNftAllowances:return"FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES";case M.NftInFungibleTokenAllowances:return"NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES";case M.InvalidAllowanceOwnerId:return"INVALID_ALLOWANCE_OWNER_ID";case M.InvalidAllowanceSpenderId:return"INVALID_ALLOWANCE_SPENDER_ID";case M.RepeatedAllowancesToDelete:return"REPEATED_ALLOWANCES_TO_DELETE";case M.InvalidDelegatingSpender:return"INVALID_DELEGATING_SPENDER";case M.DelegatingSpenderCannotGrantApproveForAll:return"DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL";case M.DelegatingSpenderDoesNotHaveApproveForAll:return"DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL";case M.ScheduleExpirationTimeTooFarInFuture:return"SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE";case M.ScheduleExpirationTimeMustBeHigherThanConsensusTime:return"SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME";case M.ScheduleFutureThrottleExceeded:return"SCHEDULE_FUTURE_THROTTLE_EXCEEDED";case M.ScheduleFutureGasLimitExceeded:return"SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED";case M.InvalidEthereumTransaction:return"INVALID_ETHEREUM_TRANSACTION";case M.WrongChainId:return"WRONG_CHAIN_ID";case M.WrongNonce:return"WRONG_NONCE";case M.AccessListUnsupported:return"ACCESS_LIST_UNSUPPORTED";case M.SchedulePendingExpiration:return"SCHEDULE_PENDING_EXPIRATION";case M.ContractIsTokenTreasury:return"CONTRACT_IS_TOKEN_TREASURY";case M.ContractHasNonZeroTokenBalances:return"CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES";case M.ContractExpiredAndPendingRemoval:return"CONTRACT_EXPIRED_AND_PENDING_REMOVAL";case M.ContractHasNoAutoRenewAccount:return"CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT";case M.PermanentRemovalRequiresSystemInitiation:return"PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION";case M.ProxyAccountIdFieldIsDeprecated:return"PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED";case M.SelfStakingIsNotAllowed:return"SELF_STAKING_IS_NOT_ALLOWED";case M.InvalidStakingId:return"INVALID_STAKING_ID";case M.StakingNotEnabled:return"STAKING_NOT_ENABLED";case M.InvalidPrngRange:return"INVALID_PRNG_RANGE";case M.MaxEntitiesInPriceRegimeHaveBeenCreated:return"MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED";case M.InvalidFullPrefixSignatureForPrecompile:return"INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE";case M.InsufficientBalancesForStorageRent:return"INSUFFICIENT_BALANCES_FOR_STORAGE_RENT";case M.MaxChildRecordsExceeded:return"MAX_CHILD_RECORDS_EXCEEDED";case M.InsufficientBalancesForRenewalFees:return"INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES";case M.TransactionHasUnknownFields:return"TRANSACTION_HAS_UNKNOWN_FIELDS";case M.AccountIsImmutable:return"ACCOUNT_IS_IMMUTABLE";case M.AliasAlreadyAssigned:return"ALIAS_ALREADY_ASSIGNED";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return M.Ok;case 1:return M.InvalidTransaction;case 2:return M.PayerAccountNotFound;case 3:return M.InvalidNodeAccount;case 4:return M.TransactionExpired;case 5:return M.InvalidTransactionStart;case 6:return M.InvalidTransactionDuration;case 7:return M.InvalidSignature;case 8:return M.MemoTooLong;case 9:return M.InsufficientTxFee;case 10:return M.InsufficientPayerBalance;case 11:return M.DuplicateTransaction;case 12:return M.Busy;case 13:return M.NotSupported;case 14:return M.InvalidFileId;case 15:return M.InvalidAccountId;case 16:return M.InvalidContractId;case 17:return M.InvalidTransactionId;case 18:return M.ReceiptNotFound;case 19:return M.RecordNotFound;case 20:return M.InvalidSolidityId;case 21:return M.Unknown;case 22:return M.Success;case 23:return M.FailInvalid;case 24:return M.FailFee;case 25:return M.FailBalance;case 26:return M.KeyRequired;case 27:return M.BadEncoding;case 28:return M.InsufficientAccountBalance;case 29:return M.InvalidSolidityAddress;case 30:return M.InsufficientGas;case 31:return M.ContractSizeLimitExceeded;case 32:return M.LocalCallModificationException;case 33:return M.ContractRevertExecuted;case 34:return M.ContractExecutionException;case 35:return M.InvalidReceivingNodeAccount;case 36:return M.MissingQueryHeader;case 37:return M.AccountUpdateFailed;case 38:return M.InvalidKeyEncoding;case 39:return M.NullSolidityAddress;case 40:return M.ContractUpdateFailed;case 41:return M.InvalidQueryHeader;case 42:return M.InvalidFeeSubmitted;case 43:return M.InvalidPayerSignature;case 44:return M.KeyNotProvided;case 45:return M.InvalidExpirationTime;case 46:return M.NoWaclKey;case 47:return M.FileContentEmpty;case 48:return M.InvalidAccountAmounts;case 49:return M.EmptyTransactionBody;case 50:return M.InvalidTransactionBody;case 51:return M.InvalidSignatureTypeMismatchingKey;case 52:return M.InvalidSignatureCountMismatchingKey;case 53:return M.EmptyLiveHashBody;case 54:return M.EmptyLiveHash;case 55:return M.EmptyLiveHashKeys;case 56:return M.InvalidLiveHashSize;case 57:return M.EmptyQueryBody;case 58:return M.EmptyLiveHashQuery;case 59:return M.LiveHashNotFound;case 60:return M.AccountIdDoesNotExist;case 61:return M.LiveHashAlreadyExists;case 62:return M.InvalidFileWacl;case 63:return M.SerializationFailed;case 64:return M.TransactionOversize;case 65:return M.TransactionTooManyLayers;case 66:return M.ContractDeleted;case 67:return M.PlatformNotActive;case 68:return M.KeyPrefixMismatch;case 69:return M.PlatformTransactionNotCreated;case 70:return M.InvalidRenewalPeriod;case 71:return M.InvalidPayerAccountId;case 72:return M.AccountDeleted;case 73:return M.FileDeleted;case 74:return M.AccountRepeatedInAccountAmounts;case 75:return M.SettingNegativeAccountBalance;case 76:return M.ObtainerRequired;case 77:return M.ObtainerSameContractId;case 78:return M.ObtainerDoesNotExist;case 79:return M.ModifyingImmutableContract;case 80:return M.FileSystemException;case 81:return M.AutorenewDurationNotInRange;case 82:return M.ErrorDecodingBytestring;case 83:return M.ContractFileEmpty;case 84:return M.ContractBytecodeEmpty;case 85:return M.InvalidInitialBalance;case 86:return M.InvalidReceiveRecordThreshold;case 87:return M.InvalidSendRecordThreshold;case 88:return M.AccountIsNotGenesisAccount;case 89:return M.PayerAccountUnauthorized;case 90:return M.InvalidFreezeTransactionBody;case 91:return M.FreezeTransactionBodyNotFound;case 92:return M.TransferListSizeLimitExceeded;case 93:return M.ResultSizeLimitExceeded;case 94:return M.NotSpecialAccount;case 95:return M.ContractNegativeGas;case 96:return M.ContractNegativeValue;case 97:return M.InvalidFeeFile;case 98:return M.InvalidExchangeRateFile;case 99:return M.InsufficientLocalCallGas;case 100:return M.EntityNotAllowedToDelete;case 101:return M.AuthorizationFailed;case 102:return M.FileUploadedProtoInvalid;case 103:return M.FileUploadedProtoNotSavedToDisk;case 104:return M.FeeScheduleFilePartUploaded;case 105:return M.ExchangeRateChangeLimitExceeded;case 106:return M.MaxContractStorageExceeded;case 107:return M.TransferAccountSameAsDeleteAccount;case 108:return M.TotalLedgerBalanceInvalid;case 110:return M.ExpirationReductionNotAllowed;case 111:return M.MaxGasLimitExceeded;case 112:return M.MaxFileSizeExceeded;case 113:return M.ReceiverSigRequired;case 150:return M.InvalidTopicId;case 155:return M.InvalidAdminKey;case 156:return M.InvalidSubmitKey;case 157:return M.Unauthorized;case 158:return M.InvalidTopicMessage;case 159:return M.InvalidAutorenewAccount;case 160:return M.AutorenewAccountNotAllowed;case 162:return M.TopicExpired;case 163:return M.InvalidChunkNumber;case 164:return M.InvalidChunkTransactionId;case 165:return M.AccountFrozenForToken;case 166:return M.TokensPerAccountLimitExceeded;case 167:return M.InvalidTokenId;case 168:return M.InvalidTokenDecimals;case 169:return M.InvalidTokenInitialSupply;case 170:return M.InvalidTreasuryAccountForToken;case 171:return M.InvalidTokenSymbol;case 172:return M.TokenHasNoFreezeKey;case 173:return M.TransfersNotZeroSumForToken;case 174:return M.MissingTokenSymbol;case 175:return M.TokenSymbolTooLong;case 176:return M.AccountKycNotGrantedForToken;case 177:return M.TokenHasNoKycKey;case 178:return M.InsufficientTokenBalance;case 179:return M.TokenWasDeleted;case 180:return M.TokenHasNoSupplyKey;case 181:return M.TokenHasNoWipeKey;case 182:return M.InvalidTokenMintAmount;case 183:return M.InvalidTokenBurnAmount;case 184:return M.TokenNotAssociatedToAccount;case 185:return M.CannotWipeTokenTreasuryAccount;case 186:return M.InvalidKycKey;case 187:return M.InvalidWipeKey;case 188:return M.InvalidFreezeKey;case 189:return M.InvalidSupplyKey;case 190:return M.MissingTokenName;case 191:return M.TokenNameTooLong;case 192:return M.InvalidWipingAmount;case 193:return M.TokenIsImmutable;case 194:return M.TokenAlreadyAssociatedToAccount;case 195:return M.TransactionRequiresZeroTokenBalances;case 196:return M.AccountIsTreasury;case 197:return M.TokenIdRepeatedInTokenList;case 198:return M.TokenTransferListSizeLimitExceeded;case 199:return M.EmptyTokenTransferBody;case 200:return M.EmptyTokenTransferAccountAmounts;case 201:return M.InvalidScheduleId;case 202:return M.ScheduleIsImmutable;case 203:return M.InvalidSchedulePayerId;case 204:return M.InvalidScheduleAccountId;case 205:return M.NoNewValidSignatures;case 206:return M.UnresolvableRequiredSigners;case 207:return M.ScheduledTransactionNotInWhitelist;case 208:return M.SomeSignaturesWereInvalid;case 209:return M.TransactionIdFieldNotAllowed;case 210:return M.IdenticalScheduleAlreadyCreated;case 211:return M.InvalidZeroByteInString;case 212:return M.ScheduleAlreadyDeleted;case 213:return M.ScheduleAlreadyExecuted;case 214:return M.MessageSizeTooLarge;case 215:return M.OperationRepeatedInBucketGroups;case 216:return M.BucketCapacityOverflow;case 217:return M.NodeCapacityNotSufficientForOperation;case 218:return M.BucketHasNoThrottleGroups;case 219:return M.ThrottleGroupHasZeroOpsPerSec;case 220:return M.SuccessButMissingExpectedOperation;case 221:return M.UnparseableThrottleDefinitions;case 222:return M.InvalidThrottleDefinitions;case 223:return M.AccountExpiredAndPendingRemoval;case 224:return M.InvalidTokenMaxSupply;case 225:return M.InvalidTokenNftSerialNumber;case 226:return M.InvalidNftId;case 227:return M.MetadataTooLong;case 228:return M.BatchSizeLimitExceeded;case 229:return M.InvalidQueryRange;case 230:return M.FractionDividesByZero;case 231:return M.InsufficientPayerBalanceForCustomFee;case 232:return M.CustomFeesListTooLong;case 233:return M.InvalidCustomFeeCollector;case 234:return M.InvalidTokenIdInCustomFees;case 235:return M.TokenNotAssociatedToFeeCollector;case 236:return M.TokenMaxSupplyReached;case 237:return M.SenderDoesNotOwnNftSerialNo;case 238:return M.CustomFeeNotFullySpecified;case 239:return M.CustomFeeMustBePositive;case 240:return M.TokenHasNoFeeScheduleKey;case 241:return M.CustomFeeOutsideNumericRange;case 242:return M.RoyaltyFractionCannotExceedOne;case 243:return M.FractionalFeeMaxAmountLessThanMinAmount;case 244:return M.CustomScheduleAlreadyHasNoFees;case 245:return M.CustomFeeDenominationMustBeFungibleCommon;case 246:return M.CustomFractionalFeeOnlyAllowedForFungibleCommon;case 247:return M.InvalidCustomFeeScheduleKey;case 248:return M.InvalidTokenMintMetadata;case 249:return M.InvalidTokenBurnMetadata;case 250:return M.CurrentTreasuryStillOwnsNfts;case 251:return M.AccountStillOwnsNfts;case 252:return M.TreasuryMustOwnBurnedNft;case 253:return M.AccountDoesNotOwnWipedNft;case 254:return M.AccountAmountTransfersOnlyAllowedForFungibleCommon;case 255:return M.MaxNftsInPriceRegimeHaveBeenMinted;case 256:return M.PayerAccountDeleted;case 257:return M.CustomFeeChargingExceededMaxRecursionDepth;case 258:return M.CustomFeeChargingExceededMaxAccountAmounts;case 259:return M.InsufficientSenderAccountBalanceForCustomFee;case 260:return M.SerialNumberLimitReached;case 261:return M.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique;case 262:return M.NoRemainingAutomaticAssociations;case 263:return M.ExistingAutomaticAssociationsExceedGivenLimit;case 264:return M.RequestedNumAutomaticAssociationsExceedsAssociationLimit;case 265:return M.TokenIsPaused;case 266:return M.TokenHasNoPauseKey;case 267:return M.InvalidPauseKey;case 268:return M.FreezeUpdateFileDoesNotExist;case 269:return M.FreezeUpdateFileHashDoesNotMatch;case 270:return M.NoUpgradeHasBeenPrepared;case 271:return M.NoFreezeIsScheduled;case 272:return M.UpdateFileHashChangedSincePrepareUpgrade;case 273:return M.FreezeStartTimeMustBeFuture;case 274:return M.PreparedUpdateFileIsImmutable;case 275:return M.FreezeAlreadyScheduled;case 276:return M.FreezeUpgradeInProgress;case 277:return M.UpdateFileIdDoesNotMatchPrepared;case 278:return M.UpdateFileHashDoesNotMatchPrepared;case 279:return M.ConsensusGasExhausted;case 280:return M.RevertedSuccess;case 281:return M.MaxStorageInPriceRegimeHasBeenUsed;case 282:return M.InvalidAliasKey;case 283:return M.UnexpectedTokenDecimals;case 284:return M.InvalidProxyAccountId;case 285:return M.InvalidTransferAccountId;case 286:return M.InvalidFeeCollectorAccountId;case 287:return M.AliasIsImmutable;case 288:return M.SpenderAccountSameAsOwner;case 289:return M.AmountExceedsTokenMaxSupply;case 290:return M.NegativeAllowanceAmount;case 291:return M.CannotApproveForAllFungibleCommon;case 292:return M.SpenderDoesNotHaveAllowance;case 293:return M.AmountExceedsAllowance;case 294:return M.MaxAllowancesExceeded;case 295:return M.EmptyAllowances;case 296:return M.SpenderAccountRepeatedInAllowances;case 297:return M.RepeatedSerialNumsInNftAllowances;case 298:return M.FungibleTokenInNftAllowances;case 299:return M.NftInFungibleTokenAllowances;case 300:return M.InvalidAllowanceOwnerId;case 301:return M.InvalidAllowanceSpenderId;case 302:return M.RepeatedAllowancesToDelete;case 303:return M.InvalidDelegatingSpender;case 304:return M.DelegatingSpenderCannotGrantApproveForAll;case 305:return M.DelegatingSpenderDoesNotHaveApproveForAll;case 306:return M.ScheduleExpirationTimeTooFarInFuture;case 307:return M.ScheduleExpirationTimeMustBeHigherThanConsensusTime;case 308:return M.ScheduleFutureThrottleExceeded;case 309:return M.ScheduleFutureGasLimitExceeded;case 310:return M.InvalidEthereumTransaction;case 311:return M.WrongChainId;case 312:return M.WrongNonce;case 313:return M.AccessListUnsupported;case 314:return M.SchedulePendingExpiration;case 315:return M.ContractIsTokenTreasury;case 316:return M.ContractHasNonZeroTokenBalances;case 317:return M.ContractExpiredAndPendingRemoval;case 318:return M.ContractHasNoAutoRenewAccount;case 319:return M.PermanentRemovalRequiresSystemInitiation;case 320:return M.ProxyAccountIdFieldIsDeprecated;case 321:return M.SelfStakingIsNotAllowed;case 322:return M.InvalidStakingId;case 323:return M.StakingNotEnabled;case 324:return M.InvalidPrngRange;case 325:return M.MaxEntitiesInPriceRegimeHaveBeenCreated;case 326:return M.InvalidFullPrefixSignatureForPrecompile;case 327:return M.InsufficientBalancesForStorageRent;case 328:return M.MaxChildRecordsExceeded;case 329:return M.InsufficientBalancesForRenewalFees;case 330:return M.TransactionHasUnknownFields;case 331:return M.AccountIsImmutable;case 332:return M.AliasAlreadyAssigned;default:throw new Error(`(BUG) Status.fromCode() does not handle code: ${e}`)}}valueOf(){return this._code}}M.Ok=new M(0),M.InvalidTransaction=new M(1),M.PayerAccountNotFound=new M(2),M.InvalidNodeAccount=new M(3),M.TransactionExpired=new M(4),M.InvalidTransactionStart=new M(5),M.InvalidTransactionDuration=new M(6),M.InvalidSignature=new M(7),M.MemoTooLong=new M(8),M.InsufficientTxFee=new M(9),M.InsufficientPayerBalance=new M(10),M.DuplicateTransaction=new M(11),M.Busy=new M(12),M.NotSupported=new M(13),M.InvalidFileId=new M(14),M.InvalidAccountId=new M(15),M.InvalidContractId=new M(16),M.InvalidTransactionId=new M(17),M.ReceiptNotFound=new M(18),M.RecordNotFound=new M(19),M.InvalidSolidityId=new M(20),M.Unknown=new M(21),M.Success=new M(22),M.FailInvalid=new M(23),M.FailFee=new M(24),M.FailBalance=new M(25),M.KeyRequired=new M(26),M.BadEncoding=new M(27),M.InsufficientAccountBalance=new M(28),M.InvalidSolidityAddress=new M(29),M.InsufficientGas=new M(30),M.ContractSizeLimitExceeded=new M(31),M.LocalCallModificationException=new M(32),M.ContractRevertExecuted=new M(33),M.ContractExecutionException=new M(34),M.InvalidReceivingNodeAccount=new M(35),M.MissingQueryHeader=new M(36),M.AccountUpdateFailed=new M(37),M.InvalidKeyEncoding=new M(38),M.NullSolidityAddress=new M(39),M.ContractUpdateFailed=new M(40),M.InvalidQueryHeader=new M(41),M.InvalidFeeSubmitted=new M(42),M.InvalidPayerSignature=new M(43),M.KeyNotProvided=new M(44),M.InvalidExpirationTime=new M(45),M.NoWaclKey=new M(46),M.FileContentEmpty=new M(47),M.InvalidAccountAmounts=new M(48),M.EmptyTransactionBody=new M(49),M.InvalidTransactionBody=new M(50),M.InvalidSignatureTypeMismatchingKey=new M(51),M.InvalidSignatureCountMismatchingKey=new M(52),M.EmptyLiveHashBody=new M(53),M.EmptyLiveHash=new M(54),M.EmptyLiveHashKeys=new M(55),M.InvalidLiveHashSize=new M(56),M.EmptyQueryBody=new M(57),M.EmptyLiveHashQuery=new M(58),M.LiveHashNotFound=new M(59),M.AccountIdDoesNotExist=new M(60),M.LiveHashAlreadyExists=new M(61),M.InvalidFileWacl=new M(62),M.SerializationFailed=new M(63),M.TransactionOversize=new M(64),M.TransactionTooManyLayers=new M(65),M.ContractDeleted=new M(66),M.PlatformNotActive=new M(67),M.KeyPrefixMismatch=new M(68),M.PlatformTransactionNotCreated=new M(69),M.InvalidRenewalPeriod=new M(70),M.InvalidPayerAccountId=new M(71),M.AccountDeleted=new M(72),M.FileDeleted=new M(73),M.AccountRepeatedInAccountAmounts=new M(74),M.SettingNegativeAccountBalance=new M(75),M.ObtainerRequired=new M(76),M.ObtainerSameContractId=new M(77),M.ObtainerDoesNotExist=new M(78),M.ModifyingImmutableContract=new M(79),M.FileSystemException=new M(80),M.AutorenewDurationNotInRange=new M(81),M.ErrorDecodingBytestring=new M(82),M.ContractFileEmpty=new M(83),M.ContractBytecodeEmpty=new M(84),M.InvalidInitialBalance=new M(85),M.InvalidReceiveRecordThreshold=new M(86),M.InvalidSendRecordThreshold=new M(87),M.AccountIsNotGenesisAccount=new M(88),M.PayerAccountUnauthorized=new M(89),M.InvalidFreezeTransactionBody=new M(90),M.FreezeTransactionBodyNotFound=new M(91),M.TransferListSizeLimitExceeded=new M(92),M.ResultSizeLimitExceeded=new M(93),M.NotSpecialAccount=new M(94),M.ContractNegativeGas=new M(95),M.ContractNegativeValue=new M(96),M.InvalidFeeFile=new M(97),M.InvalidExchangeRateFile=new M(98),M.InsufficientLocalCallGas=new M(99),M.EntityNotAllowedToDelete=new M(100),M.AuthorizationFailed=new M(101),M.FileUploadedProtoInvalid=new M(102),M.FileUploadedProtoNotSavedToDisk=new M(103),M.FeeScheduleFilePartUploaded=new M(104),M.ExchangeRateChangeLimitExceeded=new M(105),M.MaxContractStorageExceeded=new M(106),M.TransferAccountSameAsDeleteAccount=new M(107),M.TotalLedgerBalanceInvalid=new M(108),M.ExpirationReductionNotAllowed=new M(110),M.MaxGasLimitExceeded=new M(111),M.MaxFileSizeExceeded=new M(112),M.ReceiverSigRequired=new M(113),M.InvalidTopicId=new M(150),M.InvalidAdminKey=new M(155),M.InvalidSubmitKey=new M(156),M.Unauthorized=new M(157),M.InvalidTopicMessage=new M(158),M.InvalidAutorenewAccount=new M(159),M.AutorenewAccountNotAllowed=new M(160),M.TopicExpired=new M(162),M.InvalidChunkNumber=new M(163),M.InvalidChunkTransactionId=new M(164),M.AccountFrozenForToken=new M(165),M.TokensPerAccountLimitExceeded=new M(166),M.InvalidTokenId=new M(167),M.InvalidTokenDecimals=new M(168),M.InvalidTokenInitialSupply=new M(169),M.InvalidTreasuryAccountForToken=new M(170),M.InvalidTokenSymbol=new M(171),M.TokenHasNoFreezeKey=new M(172),M.TransfersNotZeroSumForToken=new M(173),M.MissingTokenSymbol=new M(174),M.TokenSymbolTooLong=new M(175),M.AccountKycNotGrantedForToken=new M(176),M.TokenHasNoKycKey=new M(177),M.InsufficientTokenBalance=new M(178),M.TokenWasDeleted=new M(179),M.TokenHasNoSupplyKey=new M(180),M.TokenHasNoWipeKey=new M(181),M.InvalidTokenMintAmount=new M(182),M.InvalidTokenBurnAmount=new M(183),M.TokenNotAssociatedToAccount=new M(184),M.CannotWipeTokenTreasuryAccount=new M(185),M.InvalidKycKey=new M(186),M.InvalidWipeKey=new M(187),M.InvalidFreezeKey=new M(188),M.InvalidSupplyKey=new M(189),M.MissingTokenName=new M(190),M.TokenNameTooLong=new M(191),M.InvalidWipingAmount=new M(192),M.TokenIsImmutable=new M(193),M.TokenAlreadyAssociatedToAccount=new M(194),M.TransactionRequiresZeroTokenBalances=new M(195),M.AccountIsTreasury=new M(196),M.TokenIdRepeatedInTokenList=new M(197),M.TokenTransferListSizeLimitExceeded=new M(198),M.EmptyTokenTransferBody=new M(199),M.EmptyTokenTransferAccountAmounts=new M(200),M.InvalidScheduleId=new M(201),M.ScheduleIsImmutable=new M(202),M.InvalidSchedulePayerId=new M(203),M.InvalidScheduleAccountId=new M(204),M.NoNewValidSignatures=new M(205),M.UnresolvableRequiredSigners=new M(206),M.ScheduledTransactionNotInWhitelist=new M(207),M.SomeSignaturesWereInvalid=new M(208),M.TransactionIdFieldNotAllowed=new M(209),M.IdenticalScheduleAlreadyCreated=new M(210),M.InvalidZeroByteInString=new M(211),M.ScheduleAlreadyDeleted=new M(212),M.ScheduleAlreadyExecuted=new M(213),M.MessageSizeTooLarge=new M(214),M.OperationRepeatedInBucketGroups=new M(215),M.BucketCapacityOverflow=new M(216),M.NodeCapacityNotSufficientForOperation=new M(217),M.BucketHasNoThrottleGroups=new M(218),M.ThrottleGroupHasZeroOpsPerSec=new M(219),M.SuccessButMissingExpectedOperation=new M(220),M.UnparseableThrottleDefinitions=new M(221),M.InvalidThrottleDefinitions=new M(222),M.AccountExpiredAndPendingRemoval=new M(223),M.InvalidTokenMaxSupply=new M(224),M.InvalidTokenNftSerialNumber=new M(225),M.InvalidNftId=new M(226),M.MetadataTooLong=new M(227),M.BatchSizeLimitExceeded=new M(228),M.InvalidQueryRange=new M(229),M.FractionDividesByZero=new M(230),M.InsufficientPayerBalanceForCustomFee=new M(231),M.CustomFeesListTooLong=new M(232),M.InvalidCustomFeeCollector=new M(233),M.InvalidTokenIdInCustomFees=new M(234),M.TokenNotAssociatedToFeeCollector=new M(235),M.TokenMaxSupplyReached=new M(236),M.SenderDoesNotOwnNftSerialNo=new M(237),M.CustomFeeNotFullySpecified=new M(238),M.CustomFeeMustBePositive=new M(239),M.TokenHasNoFeeScheduleKey=new M(240),M.CustomFeeOutsideNumericRange=new M(241),M.RoyaltyFractionCannotExceedOne=new M(242),M.FractionalFeeMaxAmountLessThanMinAmount=new M(243),M.CustomScheduleAlreadyHasNoFees=new M(244),M.CustomFeeDenominationMustBeFungibleCommon=new M(245),M.CustomFractionalFeeOnlyAllowedForFungibleCommon=new M(246),M.InvalidCustomFeeScheduleKey=new M(247),M.InvalidTokenMintMetadata=new M(248),M.InvalidTokenBurnMetadata=new M(249),M.CurrentTreasuryStillOwnsNfts=new M(250),M.AccountStillOwnsNfts=new M(251),M.TreasuryMustOwnBurnedNft=new M(252),M.AccountDoesNotOwnWipedNft=new M(253),M.AccountAmountTransfersOnlyAllowedForFungibleCommon=new M(254),M.MaxNftsInPriceRegimeHaveBeenMinted=new M(255),M.PayerAccountDeleted=new M(256),M.CustomFeeChargingExceededMaxRecursionDepth=new M(257),M.CustomFeeChargingExceededMaxAccountAmounts=new M(258),M.InsufficientSenderAccountBalanceForCustomFee=new M(259),M.SerialNumberLimitReached=new M(260),M.CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique=new M(261),M.NoRemainingAutomaticAssociations=new M(262),M.ExistingAutomaticAssociationsExceedGivenLimit=new M(263),M.RequestedNumAutomaticAssociationsExceedsAssociationLimit=new M(264),M.TokenIsPaused=new M(265),M.TokenHasNoPauseKey=new M(266),M.InvalidPauseKey=new M(267),M.FreezeUpdateFileDoesNotExist=new M(268),M.FreezeUpdateFileHashDoesNotMatch=new M(269),M.NoUpgradeHasBeenPrepared=new M(270),M.NoFreezeIsScheduled=new M(271),M.UpdateFileHashChangedSincePrepareUpgrade=new M(272),M.FreezeStartTimeMustBeFuture=new M(273),M.PreparedUpdateFileIsImmutable=new M(274),M.FreezeAlreadyScheduled=new M(275),M.FreezeUpgradeInProgress=new M(276),M.UpdateFileIdDoesNotMatchPrepared=new M(277),M.UpdateFileHashDoesNotMatchPrepared=new M(278),M.ConsensusGasExhausted=new M(279),M.RevertedSuccess=new M(280),M.MaxStorageInPriceRegimeHasBeenUsed=new M(281),M.InvalidAliasKey=new M(282),M.UnexpectedTokenDecimals=new M(283),M.InvalidProxyAccountId=new M(284),M.InvalidTransferAccountId=new M(285),M.InvalidFeeCollectorAccountId=new M(286),M.AliasIsImmutable=new M(287),M.SpenderAccountSameAsOwner=new M(288),M.AmountExceedsTokenMaxSupply=new M(289),M.NegativeAllowanceAmount=new M(290),M.CannotApproveForAllFungibleCommon=new M(291),M.SpenderDoesNotHaveAllowance=new M(292),M.AmountExceedsAllowance=new M(293),M.MaxAllowancesExceeded=new M(294),M.EmptyAllowances=new M(295),M.SpenderAccountRepeatedInAllowances=new M(296),M.RepeatedSerialNumsInNftAllowances=new M(297),M.FungibleTokenInNftAllowances=new M(298),M.NftInFungibleTokenAllowances=new M(299),M.InvalidAllowanceOwnerId=new M(300),M.InvalidAllowanceSpenderId=new M(301),M.RepeatedAllowancesToDelete=new M(302),M.InvalidDelegatingSpender=new M(303),M.DelegatingSpenderCannotGrantApproveForAll=new M(304),M.DelegatingSpenderDoesNotHaveApproveForAll=new M(305),M.ScheduleExpirationTimeTooFarInFuture=new M(306),M.ScheduleExpirationTimeMustBeHigherThanConsensusTime=new M(307),M.ScheduleFutureThrottleExceeded=new M(308),M.ScheduleFutureGasLimitExceeded=new M(309),M.InvalidEthereumTransaction=new M(310),M.WrongChainId=new M(311),M.WrongNonce=new M(312),M.AccessListUnsupported=new M(313),M.SchedulePendingExpiration=new M(314),M.ContractIsTokenTreasury=new M(315),M.ContractHasNonZeroTokenBalances=new M(316),M.ContractExpiredAndPendingRemoval=new M(317),M.ContractHasNoAutoRenewAccount=new M(318),M.PermanentRemovalRequiresSystemInitiation=new M(319),M.ProxyAccountIdFieldIsDeprecated=new M(320),M.SelfStakingIsNotAllowed=new M(321),M.InvalidStakingId=new M(322),M.StakingNotEnabled=new M(323),M.InvalidPrngRange=new M(324),M.MaxEntitiesInPriceRegimeHaveBeenCreated=new M(325),M.InvalidFullPrefixSignatureForPrecompile=new M(326),M.InsufficientBalancesForStorageRent=new M(327),M.MaxChildRecordsExceeded=new M(328),M.InsufficientBalancesForRenewalFees=new M(329),M.TransactionHasUnknownFields=new M(330),M.AccountIsImmutable=new M(331),M.AliasAlreadyAssigned=new M(332);var ln=$(3432),Rc=$.t(ln,2);class Ws extends qn{constructor(e){super(),this._bytes=e}static fromString(e){return new Ws(Mn(e))}static fromBytes(e){return new Ws(e)}toBytes(){return this._bytes}toString(){return cn(this._bytes)}equals(e){return function IK(n,e){if(n===e)return!0;if(n.byteLength!==e.byteLength)return!1;const t=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(e.buffer,e.byteOffset,e.byteLength);let s=n.byteLength;for(;s--;)if(t.getUint8(s)!==o.getUint8(s))return!1;return!0}(this._bytes,e._bytes)}}function hk(n,e){return function(){return n.apply(e,arguments)}}const{toString:QY}=Object.prototype,{getPrototypeOf:$y}=Object,fp=(n=>e=>{const t=QY.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ha=n=>(n=n.toLowerCase(),e=>fp(e)===n),hp=n=>e=>typeof e===n,{isArray:Wu}=Array,n3=hp("undefined"),pk=ha("ArrayBuffer"),YY=hp("string"),Es=hp("function"),gk=hp("number"),pp=n=>null!==n&&"object"==typeof n,gp=n=>{if("object"!==fp(n))return!1;const e=$y(n);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in n||Symbol.iterator in n)},$Y=ha("Date"),ZY=ha("File"),qY=ha("Blob"),JY=ha("FileList"),tW=ha("URLSearchParams");function r3(n,e,{allOwnKeys:t=!1}={}){if(null===n||typeof n>"u")return;let o,s;if("object"!=typeof n&&(n=[n]),Wu(n))for(o=0,s=n.length;o0;)if(s=t[o],e===s.toLowerCase())return s;return null}const mk=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yk=n=>!n3(n)&&n!==mk,lW=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&$y(Uint8Array)),fW=ha("HTMLFormElement"),bk=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),pW=ha("RegExp"),vk=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),o={};r3(t,(s,l)=>{let u;!1!==(u=e(s,l,n))&&(o[l]=u||s)}),Object.defineProperties(n,o)},qy="abcdefghijklmnopqrstuvwxyz",wk="0123456789",Ck={DIGIT:wk,ALPHA:qy,ALPHA_DIGIT:qy+qy.toUpperCase()+wk},CW=ha("AsyncFunction"),Bt={isArray:Wu,isArrayBuffer:pk,isBuffer:function zY(n){return null!==n&&!n3(n)&&null!==n.constructor&&!n3(n.constructor)&&Es(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},isFormData:n=>{let e;return n&&("function"==typeof FormData&&n instanceof FormData||Es(n.append)&&("formdata"===(e=fp(n))||"object"===e&&Es(n.toString)&&"[object FormData]"===n.toString()))},isArrayBufferView:function KY(n){let e;return e=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&pk(n.buffer),e},isString:YY,isNumber:gk,isBoolean:n=>!0===n||!1===n,isObject:pp,isPlainObject:gp,isUndefined:n3,isDate:$Y,isFile:ZY,isBlob:qY,isRegExp:pW,isFunction:Es,isStream:n=>pp(n)&&Es(n.pipe),isURLSearchParams:tW,isTypedArray:lW,isFileList:JY,forEach:r3,merge:function Zy(){const{caseless:n}=yk(this)&&this||{},e={},t=(o,s)=>{const l=n&&Ak(e,s)||s;e[l]=gp(e[l])&&gp(o)?Zy(e[l],o):gp(o)?Zy({},o):Wu(o)?o.slice():o};for(let o=0,s=arguments.length;o(r3(e,(s,l)=>{n[l]=t&&Es(s)?hk(s,t):s},{allOwnKeys:o}),n),trim:n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:n=>(65279===n.charCodeAt(0)&&(n=n.slice(1)),n),inherits:(n,e,t,o)=>{n.prototype=Object.create(e.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},toFlatObject:(n,e,t,o)=>{let s,l,u;const p={};if(e=e||{},null==n)return e;do{for(s=Object.getOwnPropertyNames(n),l=s.length;l-- >0;)u=s[l],(!o||o(u,n,e))&&!p[u]&&(e[u]=n[u],p[u]=!0);n=!1!==t&&$y(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},kindOf:fp,kindOfTest:ha,endsWith:(n,e,t)=>{n=String(n),(void 0===t||t>n.length)&&(t=n.length);const o=n.indexOf(e,t-=e.length);return-1!==o&&o===t},toArray:n=>{if(!n)return null;if(Wu(n))return n;let e=n.length;if(!gk(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},forEachEntry:(n,e)=>{const o=(n&&n[Symbol.iterator]).call(n);let s;for(;(s=o.next())&&!s.done;){const l=s.value;e.call(n,l[0],l[1])}},matchAll:(n,e)=>{let t;const o=[];for(;null!==(t=n.exec(e));)o.push(t);return o},isHTMLForm:fW,hasOwnProperty:bk,hasOwnProp:bk,reduceDescriptors:vk,freezeMethods:n=>{vk(n,(e,t)=>{if(Es(n)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;if(Es(n[t])){if(e.enumerable=!1,"writable"in e)return void(e.writable=!1);e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet:(n,e)=>{const t={},o=s=>{s.forEach(l=>{t[l]=!0})};return Wu(n)?o(n):o(String(n).split(e)),t},toCamelCase:n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,o,s){return o.toUpperCase()+s}),noop:()=>{},toFiniteNumber:(n,e)=>(n=+n,Number.isFinite(n)?n:e),findKey:Ak,global:mk,isContextDefined:yk,ALPHABET:Ck,generateString:(n=16,e=Ck.ALPHA_DIGIT)=>{let t="";const{length:o}=e;for(;n--;)t+=e[Math.random()*o|0];return t},isSpecCompliantForm:function vW(n){return!!(n&&Es(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator])},toJSONObject:n=>{const e=new Array(10),t=(o,s)=>{if(pp(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[s]=o;const l=Wu(o)?[]:{};return r3(o,(u,p)=>{const w=t(u,s+1);!n3(w)&&(l[p]=w)}),e[s]=void 0,l}}return o};return t(n,0)},isAsyncFn:CW,isThenable:n=>n&&(pp(n)||Es(n))&&Es(n.then)&&Es(n.catch)};function $u(n,e,t,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),o&&(this.request=o),s&&(this.response=s)}Bt.inherits($u,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Bt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _k=$u.prototype,Ik={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Ik[n]={value:n}}),Object.defineProperties($u,Ik),Object.defineProperty(_k,"isAxiosError",{value:!0}),$u.from=(n,e,t,o,s,l)=>{const u=Object.create(_k);return Bt.toFlatObject(n,u,function(w){return w!==Error.prototype},p=>"isAxiosError"!==p),$u.call(u,n.message,e,t,o,s),u.cause=n,u.name=n.name,l&&Object.assign(u,l),u};const Zr=$u;function Jy(n){return Bt.isPlainObject(n)||Bt.isArray(n)}function Ek(n){return Bt.endsWith(n,"[]")?n.slice(0,-2):n}function Tk(n,e,t){return n?n.concat(e).map(function(s,l){return s=Ek(s),!t&&l?"["+s+"]":s}).join(t?".":""):e}const IW=Bt.toFlatObject(Bt,{},null,function(e){return/^is[A-Z]/.test(e)}),Ap=function xW(n,e,t){if(!Bt.isObject(n))throw new TypeError("target must be an object");e=e||new FormData;const o=(t=Bt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Le,ut){return!Bt.isUndefined(ut[Le])})).metaTokens,s=t.visitor||V,l=t.dots,u=t.indexes,w=(t.Blob||typeof Blob<"u"&&Blob)&&Bt.isSpecCompliantForm(e);if(!Bt.isFunction(s))throw new TypeError("visitor must be a function");function S(Ee){if(null===Ee)return"";if(Bt.isDate(Ee))return Ee.toISOString();if(!w&&Bt.isBlob(Ee))throw new Zr("Blob is not supported. Use a Buffer instead.");return Bt.isArrayBuffer(Ee)||Bt.isTypedArray(Ee)?w&&"function"==typeof Blob?new Blob([Ee]):Buffer.from(Ee):Ee}function V(Ee,Le,ut){let _t=Ee;if(Ee&&!ut&&"object"==typeof Ee)if(Bt.endsWith(Le,"{}"))Le=o?Le:Le.slice(0,-2),Ee=JSON.stringify(Ee);else if(Bt.isArray(Ee)&&function _W(n){return Bt.isArray(n)&&!n.some(Jy)}(Ee)||(Bt.isFileList(Ee)||Bt.endsWith(Le,"[]"))&&(_t=Bt.toArray(Ee)))return Le=Ek(Le),_t.forEach(function(gt,Jt){!Bt.isUndefined(gt)&&null!==gt&&e.append(!0===u?Tk([Le],Jt,l):null===u?Le:Le+"[]",S(gt))}),!1;return!!Jy(Ee)||(e.append(Tk(ut,Le,l),S(Ee)),!1)}const J=[],he=Object.assign(IW,{defaultVisitor:V,convertValue:S,isVisitable:Jy});if(!Bt.isObject(n))throw new TypeError("data must be an object");return function xe(Ee,Le){if(!Bt.isUndefined(Ee)){if(-1!==J.indexOf(Ee))throw Error("Circular reference detected in "+Le.join("."));J.push(Ee),Bt.forEach(Ee,function(_t,it){!0===(!(Bt.isUndefined(_t)||null===_t)&&s.call(e,_t,Bt.isString(it)?it.trim():it,Le,he))&&xe(_t,Le?Le.concat(it):[it])}),J.pop()}}(n),e};function kk(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Dk(n,e){this._pairs=[],n&&Ap(n,this,e)}const Bk=Dk.prototype;Bk.append=function(e,t){this._pairs.push([e,t])},Bk.toString=function(e){const t=e?function(o){return e.call(this,o,kk)}:kk;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};const Sk=Dk;function EW(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mk(n,e,t){if(!e)return n;const o=t&&t.encode||EW,s=t&&t.serialize;let l;if(l=s?s(e,t):Bt.isURLSearchParams(e)?e.toString():new Sk(e,t).toString(o),l){const u=n.indexOf("#");-1!==u&&(n=n.slice(0,u)),n+=(-1===n.indexOf("?")?"?":"&")+l}return n}const Nk=class TW{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Bt.forEach(this.handlers,function(o){null!==o&&e(o)})}},Ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kW={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Sk,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Pk=typeof window<"u"&&typeof document<"u",DW=(n=>Pk&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),BW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pa={...v,...kW},Rk=function OW(n){function e(t,o,s,l){let u=t[l++];const p=Number.isFinite(+u),w=l>=t.length;return u=!u&&Bt.isArray(s)?s.length:u,w?(s[u]=Bt.hasOwnProp(s,u)?[s[u],o]:o,!p):((!s[u]||!Bt.isObject(s[u]))&&(s[u]=[]),e(t,o,s[u],l)&&Bt.isArray(s[u])&&(s[u]=function NW(n){const e={},t=Object.keys(n);let o;const s=t.length;let l;for(o=0;o{e(function MW(n){return Bt.matchAll(/\w+|\[(\w*)]/g,n).map(e=>"[]"===e[0]?"":e[1]||e[0])}(o),s,t,0)}),t}return null},Xy={transitional:Ok,adapter:["xhr","http"],transformRequest:[function(e,t){const o=t.getContentType()||"",s=o.indexOf("application/json")>-1,l=Bt.isObject(e);if(l&&Bt.isHTMLForm(e)&&(e=new FormData(e)),Bt.isFormData(e))return s&&s?JSON.stringify(Rk(e)):e;if(Bt.isArrayBuffer(e)||Bt.isBuffer(e)||Bt.isStream(e)||Bt.isFile(e)||Bt.isBlob(e))return e;if(Bt.isArrayBufferView(e))return e.buffer;if(Bt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return function SW(n,e){return Ap(n,new pa.classes.URLSearchParams,Object.assign({visitor:function(t,o,s,l){return pa.isNode&&Bt.isBuffer(t)?(this.append(o,t.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},e))}(e,this.formSerializer).toString();if((p=Bt.isFileList(e))||o.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return Ap(p?{"files[]":e}:e,w&&new w,this.formSerializer)}}return l||s?(t.setContentType("application/json",!1),function PW(n,e,t){if(Bt.isString(n))try{return(e||JSON.parse)(n),Bt.trim(n)}catch(o){if("SyntaxError"!==o.name)throw o}return(t||JSON.stringify)(n)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xy.transitional,o=t&&t.forcedJSONParsing,s="json"===this.responseType;if(e&&Bt.isString(e)&&(o&&!this.responseType||s)){const u=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(p){if(u)throw"SyntaxError"===p.name?Zr.from(p,Zr.ERR_BAD_RESPONSE,this,null,this.response):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pa.classes.FormData,Blob:pa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Bt.forEach(["delete","get","head","post","put","patch"],n=>{Xy.headers[n]={}});const e2=Xy,RW=Bt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fk=Symbol("internals");function o3(n){return n&&String(n).trim().toLowerCase()}function mp(n){return!1===n||null==n?n:Bt.isArray(n)?n.map(mp):String(n)}function t2(n,e,t,o,s){if(Bt.isFunction(o))return o.call(this,e,t);if(s&&(e=t),Bt.isString(e)){if(Bt.isString(o))return-1!==e.indexOf(o);if(Bt.isRegExp(o))return o.test(e)}}class yp{constructor(e){e&&this.set(e)}set(e,t,o){const s=this;function l(p,w,S){const V=o3(w);if(!V)throw new Error("header name must be a non-empty string");const J=Bt.findKey(s,V);(!J||void 0===s[J]||!0===S||void 0===S&&!1!==s[J])&&(s[J||w]=mp(p))}const u=(p,w)=>Bt.forEach(p,(S,V)=>l(S,V,w));return Bt.isPlainObject(e)||e instanceof this.constructor?u(e,t):Bt.isString(e)&&(e=e.trim())&&!(n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))(e)?u((n=>{const e={};let t,o,s;return n&&n.split("\n").forEach(function(u){s=u.indexOf(":"),t=u.substring(0,s).trim().toLowerCase(),o=u.substring(s+1).trim(),!(!t||e[t]&&RW[t])&&("set-cookie"===t?e[t]?e[t].push(o):e[t]=[o]:e[t]=e[t]?e[t]+", "+o:o)}),e})(e),t):null!=e&&l(t,e,o),this}get(e,t){if(e=o3(e)){const o=Bt.findKey(this,e);if(o){const s=this[o];if(!t)return s;if(!0===t)return function LW(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=t.exec(n);)e[o[1]]=o[2];return e}(s);if(Bt.isFunction(t))return t.call(this,s,o);if(Bt.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=o3(e)){const o=Bt.findKey(this,e);return!(!o||void 0===this[o]||t&&!t2(0,this[o],o,t))}return!1}delete(e,t){const o=this;let s=!1;function l(u){if(u=o3(u)){const p=Bt.findKey(o,u);p&&(!t||t2(0,o[p],p,t))&&(delete o[p],s=!0)}}return Bt.isArray(e)?e.forEach(l):l(e),s}clear(e){const t=Object.keys(this);let o=t.length,s=!1;for(;o--;){const l=t[o];(!e||t2(0,this[l],l,e,!0))&&(delete this[l],s=!0)}return s}normalize(e){const t=this,o={};return Bt.forEach(this,(s,l)=>{const u=Bt.findKey(o,l);if(u)return t[u]=mp(s),void delete t[l];const p=e?function jW(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o)}(l):String(l).trim();p!==l&&delete t[l],t[p]=mp(s),o[p]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Bt.forEach(this,(o,s)=>{null!=o&&!1!==o&&(t[s]=e&&Bt.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const o=new this(e);return t.forEach(s=>o.set(s)),o}static accessor(e){const o=(this[Fk]=this[Fk]={accessors:{}}).accessors,s=this.prototype;function l(u){const p=o3(u);o[p]||(function GW(n,e){const t=Bt.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+t,{value:function(s,l,u){return this[o].call(this,e,s,l,u)},configurable:!0})})}(s,u),o[p]=!0)}return Bt.isArray(e)?e.forEach(l):l(e),this}}yp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Bt.reduceDescriptors(yp.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(o){this[t]=o}}}),Bt.freezeMethods(yp);const Qa=yp;function n2(n,e){const t=this||e2,o=e||t,s=Qa.from(o.headers);let l=o.data;return Bt.forEach(n,function(p){l=p.call(t,l,s.normalize(),e?e.status:void 0)}),s.normalize(),l}function Lk(n){return!(!n||!n.__CANCEL__)}function Uk(n,e,t){Zr.call(this,n??"canceled",Zr.ERR_CANCELED,e,t),this.name="CanceledError"}Bt.inherits(Uk,Zr,{__CANCEL__:!0});const bp=Uk,HW=pa.hasStandardBrowserEnv?{write(n,e,t,o,s,l){const u=[n+"="+encodeURIComponent(e)];Bt.isNumber(t)&&u.push("expires="+new Date(t).toGMTString()),Bt.isString(o)&&u.push("path="+o),Bt.isString(s)&&u.push("domain="+s),!0===l&&u.push("secure"),document.cookie=u.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function jk(n,e){return n&&!function QW(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}(e)?function zW(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n}(n,e):e}const KW=pa.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let o;function s(l){let u=l;return e&&(t.setAttribute("href",u),u=t.href),t.setAttribute("href",u),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return o=s(window.location.href),function(u){const p=Bt.isString(u)?s(u):u;return p.protocol===o.protocol&&p.host===o.host}}():function(){return!0},$W=function WW(n,e){n=n||10;const t=new Array(n),o=new Array(n);let u,s=0,l=0;return e=void 0!==e?e:1e3,function(w){const S=Date.now(),V=o[l];u||(u=S),t[s]=w,o[s]=S;let J=l,he=0;for(;J!==s;)he+=t[J++],J%=n;if(s=(s+1)%n,s===l&&(l=(l+1)%n),S-u{const l=s.loaded,u=s.lengthComputable?s.total:void 0,p=l-t,w=o(p);t=l;const V={loaded:l,total:u,progress:u?l/u:void 0,bytes:p,rate:w||void 0,estimated:w&&u&&l<=u?(u-l)/w:void 0,event:s};V[e?"download":"upload"]=!0,n(V)}}const r2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,o){let s=n.data;const l=Qa.from(n.headers).normalize();let w,V,{responseType:u,withXSRFToken:p}=n;function S(){n.cancelToken&&n.cancelToken.unsubscribe(w),n.signal&&n.signal.removeEventListener("abort",w)}if(Bt.isFormData(s))if(pa.hasStandardBrowserEnv||pa.hasStandardBrowserWebWorkerEnv)l.setContentType(!1);else if(!1!==(V=l.getContentType())){const[Le,...ut]=V?V.split(";").map(_t=>_t.trim()).filter(Boolean):[];l.setContentType([Le||"multipart/form-data",...ut].join("; "))}let J=new XMLHttpRequest;if(n.auth){const Le=n.auth.username||"",ut=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";l.set("Authorization","Basic "+btoa(Le+":"+ut))}const he=jk(n.baseURL,n.url);function xe(){if(!J)return;const Le=Qa.from("getAllResponseHeaders"in J&&J.getAllResponseHeaders());(function VW(n,e,t){const o=t.config.validateStatus;t.status&&o&&!o(t.status)?e(new Zr("Request failed with status code "+t.status,[Zr.ERR_BAD_REQUEST,Zr.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):n(t)})(function(gt){t(gt),S()},function(gt){o(gt),S()},{data:u&&"text"!==u&&"json"!==u?J.response:J.responseText,status:J.status,statusText:J.statusText,headers:Le,config:n,request:J}),J=null}if(J.open(n.method.toUpperCase(),Mk(he,n.params,n.paramsSerializer),!0),J.timeout=n.timeout,"onloadend"in J?J.onloadend=xe:J.onreadystatechange=function(){!J||4!==J.readyState||0===J.status&&(!J.responseURL||0!==J.responseURL.indexOf("file:"))||setTimeout(xe)},J.onabort=function(){J&&(o(new Zr("Request aborted",Zr.ECONNABORTED,n,J)),J=null)},J.onerror=function(){o(new Zr("Network Error",Zr.ERR_NETWORK,n,J)),J=null},J.ontimeout=function(){let ut=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";n.timeoutErrorMessage&&(ut=n.timeoutErrorMessage),o(new Zr(ut,(n.transitional||Ok).clarifyTimeoutError?Zr.ETIMEDOUT:Zr.ECONNABORTED,n,J)),J=null},pa.hasStandardBrowserEnv&&(p&&Bt.isFunction(p)&&(p=p(n)),p||!1!==p&&KW(he))){const Le=n.xsrfHeaderName&&n.xsrfCookieName&&HW.read(n.xsrfCookieName);Le&&l.set(n.xsrfHeaderName,Le)}void 0===s&&l.setContentType(null),"setRequestHeader"in J&&Bt.forEach(l.toJSON(),function(ut,_t){J.setRequestHeader(_t,ut)}),Bt.isUndefined(n.withCredentials)||(J.withCredentials=!!n.withCredentials),u&&"json"!==u&&(J.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&J.addEventListener("progress",Gk(n.onDownloadProgress,!0)),"function"==typeof n.onUploadProgress&&J.upload&&J.upload.addEventListener("progress",Gk(n.onUploadProgress)),(n.cancelToken||n.signal)&&(w=Le=>{J&&(o(!Le||Le.type?new bp(null,n,J):Le),J.abort(),J=null)},n.cancelToken&&n.cancelToken.subscribe(w),n.signal&&(n.signal.aborted?w():n.signal.addEventListener("abort",w)));const Ee=function YW(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}(he);Ee&&-1===pa.protocols.indexOf(Ee)?o(new Zr("Unsupported protocol "+Ee+":",Zr.ERR_BAD_REQUEST,n)):J.send(s||null)})}};Bt.forEach(r2,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Vk=n=>`- ${n}`,ZW=n=>Bt.isFunction(n)||null===n||!1===n,Hk={getAdapter:n=>{n=Bt.isArray(n)?n:[n];const{length:e}=n;let t,o;const s={};for(let l=0;l`adapter ${p} `+(!1===w?"is not supported by the environment":"is not available in the build"));let u=e?l.length>1?"since :\n"+l.map(Vk).join("\n"):" "+Vk(l[0]):"as no adapter specified";throw new Zr("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:r2};function o2(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new bp(null,n)}function Qk(n){return o2(n),n.headers=Qa.from(n.headers),n.data=n2.call(n,n.transformRequest),-1!==["post","put","patch"].indexOf(n.method)&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Hk.getAdapter(n.adapter||e2.adapter)(n).then(function(o){return o2(n),o.data=n2.call(n,n.transformResponse,o),o.headers=Qa.from(o.headers),o},function(o){return Lk(o)||(o2(n),o&&o.response&&(o.response.data=n2.call(n,n.transformResponse,o.response),o.response.headers=Qa.from(o.response.headers))),Promise.reject(o)})}const zk=n=>n instanceof Qa?n.toJSON():n;function Zu(n,e){e=e||{};const t={};function o(S,V,J){return Bt.isPlainObject(S)&&Bt.isPlainObject(V)?Bt.merge.call({caseless:J},S,V):Bt.isPlainObject(V)?Bt.merge({},V):Bt.isArray(V)?V.slice():V}function s(S,V,J){return Bt.isUndefined(V)?Bt.isUndefined(S)?void 0:o(void 0,S,J):o(S,V,J)}function l(S,V){if(!Bt.isUndefined(V))return o(void 0,V)}function u(S,V){return Bt.isUndefined(V)?Bt.isUndefined(S)?void 0:o(void 0,S):o(void 0,V)}function p(S,V,J){return J in e?o(S,V):J in n?o(void 0,S):void 0}const w={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:p,headers:(S,V)=>s(zk(S),zk(V),!0)};return Bt.forEach(Object.keys(Object.assign({},n,e)),function(V){const J=w[V]||s,he=J(n[V],e[V],V);Bt.isUndefined(he)&&J!==p||(t[V]=he)}),t}const Kk="1.6.2",i2={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{i2[n]=function(o){return typeof o===n||"a"+(e<1?"n ":" ")+n}});const Yk={};i2.transitional=function(e,t,o){function s(l,u){return"[Axios v"+Kk+"] Transitional option '"+l+"'"+u+(o?". "+o:"")}return(l,u,p)=>{if(!1===e)throw new Zr(s(u," has been removed"+(t?" in "+t:"")),Zr.ERR_DEPRECATED);return t&&!Yk[u]&&(Yk[u]=!0,console.warn(s(u," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(l,u,p)}};const s2={assertOptions:function qW(n,e,t){if("object"!=typeof n)throw new Zr("options must be an object",Zr.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let s=o.length;for(;s-- >0;){const l=o[s],u=e[l];if(u){const p=n[l],w=void 0===p||u(p,l,n);if(!0!==w)throw new Zr("option "+l+" must be "+w,Zr.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new Zr("Unknown option "+l,Zr.ERR_BAD_OPTION)}},validators:i2},Fc=s2.validators;class vp{constructor(e){this.defaults=e,this.interceptors={request:new Nk,response:new Nk}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zu(this.defaults,t);const{transitional:o,paramsSerializer:s,headers:l}=t;void 0!==o&&s2.assertOptions(o,{silentJSONParsing:Fc.transitional(Fc.boolean),forcedJSONParsing:Fc.transitional(Fc.boolean),clarifyTimeoutError:Fc.transitional(Fc.boolean)},!1),null!=s&&(Bt.isFunction(s)?t.paramsSerializer={serialize:s}:s2.assertOptions(s,{encode:Fc.function,serialize:Fc.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let u=l&&Bt.merge(l.common,l[t.method]);l&&Bt.forEach(["delete","get","head","post","put","patch","common"],Ee=>{delete l[Ee]}),t.headers=Qa.concat(u,l);const p=[];let w=!0;this.interceptors.request.forEach(function(Le){"function"==typeof Le.runWhen&&!1===Le.runWhen(t)||(w=w&&Le.synchronous,p.unshift(Le.fulfilled,Le.rejected))});const S=[];this.interceptors.response.forEach(function(Le){S.push(Le.fulfilled,Le.rejected)});let V,he,J=0;if(!w){const Ee=[Qk.bind(this),void 0];for(Ee.unshift.apply(Ee,p),Ee.push.apply(Ee,S),he=Ee.length,V=Promise.resolve(t);J{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const u=new Promise(p=>{o.subscribe(p),l=p}).then(s);return u.cancel=function(){o.unsubscribe(l)},u},e(function(l,u,p){o.reason||(o.reason=new bp(l,u,p),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new a2(function(s){e=s}),cancel:e}}}const JW=a2,c2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(c2).forEach(([n,e])=>{c2[e]=n});const t$=c2,Ho=function Wk(n){const e=new wp(n),t=hk(wp.prototype.request,e);return Bt.extend(t,wp.prototype,e,{allOwnKeys:!0}),Bt.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Wk(Zu(n,s))},t}(e2);Ho.Axios=wp,Ho.CanceledError=bp,Ho.CancelToken=JW,Ho.isCancel=Lk,Ho.VERSION=Kk,Ho.toFormData=Ap,Ho.AxiosError=Zr,Ho.Cancel=Ho.CanceledError,Ho.all=function(e){return Promise.all(e)},Ho.spread=function XW(n){return function(t){return n.apply(null,t)}},Ho.isAxiosError=function e$(n){return Bt.isObject(n)&&!0===n.isAxiosError},Ho.mergeConfig=Zu,Ho.AxiosHeaders=Qa,Ho.formToJSON=n=>Rk(Bt.isHTMLForm(n)?new FormData(n):n),Ho.getAdapter=Hk.getAdapter,Ho.HttpStatusCode=t$,Ho.default=Ho;const l2=Ho;class Ue{constructor(e,t,o,s,l){const u=Ou(e,t,o);this.shard=u.shard,this.realm=u.realm,this.num=u.num,this.aliasKey=s??null,this.evmAddress=l??null,this._checksum=null}static fromString(e){let l,u,t=mt.ZERO,o=mt.ZERO,s=mt.ZERO;if(e.startsWith("0x")&&42==e.length||40==e.length)u=Ws.fromString(e);else{const p=ay(e);if(Number.isNaN(p.shard)||Number.isNaN(p.realm))throw new Error("invalid format for entity ID");null!=p.shard&&(t=mt.fromString(p.shard)),null!=p.realm&&(o=mt.fromString(p.realm)),p.numOrHex.length<20?s=mt.fromString(p.numOrHex):40==p.numOrHex.length?u=Ws.fromString(p.numOrHex):l=_o.fromString(p.numOrHex)}return new Ue(t,o,s,l,u)}static fromEvmAddress(e,t,o){const s="string"==typeof o?Ws.fromString(o):o;return tp(s.toBytes())?this.fromSolidityAddress(s.toString()):new Ue(e,t,0,void 0,s)}static fromEvmPublicAddress(e){return new Ue(0,0,0,void 0,e)}static _fromProtobuf(e){let t,o;return null!=e.alias&&(20===e.alias.length?o=Ws.fromBytes(e.alias):t=qn._fromProtobufKey(ln.proto.Key.decode(e.alias))),t instanceof _o||(t=void 0),new Ue(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.accountNum?e.accountNum:0,t,o)}get checksum(){return this._checksum}getEvmAddress(){return this.evmAddress}populateAccountNum(e){var t=this;return ct(function*(){if(null===t.evmAddress)throw new Error("field `evmAddress` should not be null");const o=e.mirrorNetwork[0].slice(0,e.mirrorNetwork[0].indexOf(":"));yield new Promise(u=>{setTimeout(u,3e3)});const s=`https://${o}/api/v1/accounts/${t.evmAddress.toString()}`,l=(yield l2.get(s)).data.account;return t.num=mt.fromString(l.slice(l.lastIndexOf(".")+1)),t})()}populateAccountEvmAddress(e){var t=this;return ct(function*(){if(null===t.num)throw new Error("field `num` should not be null");const o=e.mirrorNetwork[0].slice(0,e.mirrorNetwork[0].indexOf(":"));yield new Promise(u=>{setTimeout(u,3e3)});const s=`https://${o}/api/v1/accounts/${t.num.toString()}`,l=(yield l2.get(s)).data.evm_address;return t.evmAddress=Ws.fromString(l),t})()}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){if(null!=this.aliasKey)throw new Error("cannot calculate checksum with an account ID that has a aliasKey");Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return Ue._fromProtobuf(ln.proto.AccountID.decode(e))}static fromSolidityAddress(e){return tp(Mn(e))?new Ue(...Pu(e)):this.fromEvmAddress(0,0,e)}toSolidityAddress(){return null!=this.evmAddress?this.evmAddress.toString():null!=this.aliasKey&&"secp256k1"==this.aliasKey._key._type?this.aliasKey.toEvmAddress():Ru([this.shard,this.realm,this.num])}_toProtobuf(){let e=null;return null!=this.aliasKey?e=ln.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null!=this.evmAddress&&(e=this.evmAddress._bytes),{alias:e,accountNum:null!=this.aliasKey?null:this.num,shardNum:this.shard,realmNum:this.realm}}toBytes(){return ln.proto.AccountID.encode(this._toProtobuf()).finish()}toString(){let e=this.num.toString();return null!=this.aliasKey?e=this.aliasKey.toString():null!=this.evmAddress&&(e=this.evmAddress.toString()),`${this.shard.toString()}.${this.realm.toString()}.${e}`}toStringWithChecksum(e){if(null!=this.aliasKey)throw new Error("cannot calculate checksum with an account ID that has a aliasKey");return Lu(this.toString(),e)}equals(e){let t=!1;return null!=this.aliasKey&&null!=e.aliasKey?t=this.aliasKey.equals(e.aliasKey):null!=this.evmAddress&&null!=e.evmAddress?t=this.evmAddress.equals(e.evmAddress):null==this.aliasKey&&null==e.aliasKey&&null==this.evmAddress&&null==e.evmAddress&&(t=this.num.eq(e.num)),this.shard.eq(e.shard)&&this.realm.eq(e.realm)&&t}clone(){const e=new Ue(this);return e._checksum=this._checksum,e.aliasKey=this.aliasKey,e.evmAddress=this.evmAddress,e}compare(e){let t=this.shard.compare(e.shard);if(0!=t||(t=this.realm.compare(e.realm),0!=t))return t;if(null!=this.aliasKey&&null!=e.aliasKey){const o=this.aliasKey.toString(),s=e.aliasKey.toString();return o>s?1:os?1:onew Ue(n,e,mt.ZERO,t));class en{constructor(e){this._code=e,Object.freeze(this)}static _fromValue(e){switch(e){case 0:return en.Ok;case 1:return en.Cancelled;case 2:return en.Unknown;case 3:return en.InvalidArgument;case 4:return en.DeadlineExceeded;case 5:return en.NotFound;case 6:return en.AlreadyExists;case 7:return en.PermissionDenied;case 8:return en.ResourceExhausted;case 9:return en.FailedPrecondition;case 10:return en.Aborted;case 11:return en.OutOfRange;case 12:return en.Unimplemented;case 13:return en.Internal;case 14:return en.Unavailable;case 15:return en.DataLoss;case 16:return en.Unauthenticated;case 17:return en.Timeout;case 18:return en.GrpcWeb;default:throw new Error("(BUG) non-exhaustive GrpcStatus switch statement")}}toString(){switch(this){case en.Ok:return"OK";case en.Cancelled:return"CANCELLED";case en.Unknown:return"UNKNOWN";case en.InvalidArgument:return"INVALID_ARGUMENT";case en.DeadlineExceeded:return"DEADLINE_EXCEEDED";case en.NotFound:return"NOT_FOUND";case en.AlreadyExists:return"ALREADY_EXISTS";case en.PermissionDenied:return"PERMISSION_DENIED";case en.Unauthenticated:return"UNAUTHENTICATED";case en.ResourceExhausted:return"RESOURCE_EXHAUSTED";case en.FailedPrecondition:return"FAILED_PRECONDITION";case en.Aborted:return"ABORTED";case en.OutOfRange:return"OUT_OF_RANGE";case en.Unimplemented:return"UNIMPLEMENTED";case en.Internal:return"INTERNAL";case en.Unavailable:return"UNAVAILABLE";case en.DataLoss:return"DATA_LOSS";case en.Timeout:return"TIMEOUT";case en.GrpcWeb:return"GRPC_WEB";default:return`UNKNOWN (${this._code})`}}valueOf(){return this._code}}en.Ok=new en(0),en.Cancelled=new en(1),en.Unknown=new en(2),en.InvalidArgument=new en(3),en.DeadlineExceeded=new en(4),en.NotFound=new en(5),en.AlreadyExists=new en(6),en.PermissionDenied=new en(7),en.ResourceExhausted=new en(8),en.FailedPrecondition=new en(9),en.Aborted=new en(10),en.OutOfRange=new en(11),en.Unimplemented=new en(12),en.Internal=new en(13),en.Unavailable=new en(14),en.DataLoss=new en(15),en.Unauthenticated=new en(16),en.Timeout=new en(17),en.GrpcWeb=new en(18);class Lc extends Error{constructor(e){super(`gRPC service failed with status: ${e.toString()}`),this.status=e,this.name="GrpcServiceError",typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,Lc)}static _fromResponse(e){if(null!=e.code&&null!=e.details){const t=en._fromValue(e.code),o=new Lc(t);return o.message=e.details,o}return e}}class kl{constructor(){this.list=[],this.locked=!1,this.index=0}setList(e){if(this.locked)throw new Error("list is locked");return this.list=e,this.index=0,this}push(...e){if(this.locked)throw new Error("list is locked");return this.list.push(...e),this}setLocked(){return this.locked=!0,this}clear(){this.list=[],this.index=0}get(e){return this.list[e]}set(e,t){return e===this.length?this.list.push(t):this.list[e]=t,this}setIfAbsent(e,t){return(e==this.length||null==this.list[e])&&this.set(e,t()),this}get next(){return this.get(this.advance())}get current(){return this.get(this.index)}advance(){const e=this.index;return this.index=(this.index+1)%this.list.length,e}get isEmpty(){return 0===this.length}get length(){return this.list.length}clone(){const e=new kl;return e.list=this.list,e.locked=this.locked,e}}class Cp extends Error{constructor(e){super(`failed with error code: ${e.toString()}`),this.status=e,this.name="HttpError",typeof Error.captureStackTrace<"u"&&Error.captureStackTrace(this,Cp)}}const $k=/\brst[^0-9a-zA-Z]stream\b/i;class u2{constructor(){this._maxAttempts=10,this._nodeAccountIds=new kl,this._signOnDemand=!1,this._minBackoff=null,this._maxBackoff=8e3,this._operator=null,this._requestTimeout=null,this._grpcDeadline=null,this._logger=null}get nodeAccountIds(){return this._nodeAccountIds.isEmpty?null:(this._nodeAccountIds.setLocked(),this._nodeAccountIds.list)}setNodeAccountIds(e){return this._nodeAccountIds.setList(e).setLocked(),this}get maxRetries(){return console.warn("Deprecated: use maxAttempts instead"),this.maxAttempts}setMaxRetries(e){return console.warn("Deprecated: use setMaxAttempts() instead"),this.setMaxAttempts(e)}get maxAttempts(){return this._maxAttempts}setMaxAttempts(e){return this._maxAttempts=e,this}get grpcDeadline(){return this._grpcDeadline}setGrpcDeadline(e){return this._grpcDeadline=e,this}setMinBackoff(e){if(null==e)throw new Error("minBackoff cannot be null.");if(null!=this._maxBackoff&&e>this._maxBackoff)throw new Error("minBackoff cannot be larger than maxBackoff.");return this._minBackoff=e,this}get minBackoff(){return this._minBackoff}setMaxBackoff(e){if(null==e)throw new Error("maxBackoff cannot be null.");if(null!=this._minBackoff&&esetTimeout(()=>it(new Error("grpc deadline exceeded")),o._grpcDeadline))),o._logger&&o._logger.trace(`[${o._getLogId()}] sending protobuf ${cn(o._requestToBytes(he))}`),ut.push(o._execute(J,he)),xe=yield Promise.race(ut)}catch(ut){const _t=Lc._fromResponse(ut);if(u=_t,o._logger&&o._logger.debug(`[${V}] received error ${JSON.stringify(_t)}`),(_t instanceof Lc||_t instanceof Cp)&&o._shouldRetryExceptionally(_t)&&p<=s){o._logger&&o._logger.debug(`[${o._getLogId()}] node with accountId: ${S.accountId.toString()} and proxy IP: ${S.address.toString()} is unhealthy`),e._network.increaseBackoff(S);continue}throw ut}o._logger&&o._logger.trace(`[${o._getLogId()}] sending protobuf ${cn(o._responseToBytes(xe))}`),e._network.decreaseBackoff(S);const[Ee,Le]=o._shouldRetry(he,xe);switch(null!=Ee&&(u=Ee),Le){case"Retry":yield n$(p,o._minBackoff,o._maxBackoff);continue;case"Finished":return o._mapResponse(xe,w,he);case"Error":throw o._mapStatusError(he,xe);default:throw new Error("(BUG) non-exhuastive switch statement for `ExecutionState`")}}throw new Error(`max attempts of ${s.toString()} was reached for request with last error being: ${null!=u?u.toString():""}`)})()}toBytes(){throw new Error("not implemented")}setLogger(e){return this._logger=e,this}get logger(){return this._logger}}function n$(n,e,t){const o=Math.min(Math.floor(e*Math.pow(2,n)),t);return new Promise(s=>setTimeout(s,o))}const Zk=mt.fromNumber(1e9),qk=new Set;class Jn{constructor(e,t){this.seconds=e instanceof mt?e:mt.fromNumber(e),this.nanos=t instanceof mt?t:mt.fromNumber(t),Object.freeze(this)}static generate(){const e=Math.floor(5e3*Math.random())+8e3,t=Date.now()-e,o=Math.floor(t/1e3)+Pr.timeDrift,s=1e6*Math.floor(t%1e3)+Math.floor(1e6*Math.random()),l=new Jn(o,s);return qk.has(l.toString())?this.generate():(qk.add(l.toString()),l)}static fromDate(e){let t;if("number"==typeof e)t=mt.fromNumber(e);else if("string"==typeof e)t=mt.fromNumber(Date.parse(e)).mul(1e6);else{if(!(e instanceof Date))throw new TypeError(`invalid type '${typeof e}' for 'data', expected 'Date'`);t=mt.fromNumber(e.getTime()).mul(1e6)}return new Jn(0,0).plusNanos(t)}toDate(){return new Date(1e3*this.seconds.toInt()+Math.floor(this.nanos.toInt()/1e6))}plusNanos(e){const t=this.nanos.add(e);return new Jn(this.seconds.add(t.div(Zk)),t.mod(Zk))}_toProtobuf(){return{seconds:this.seconds,nanos:this.nanos.toInt()}}static _fromProtobuf(e){return new Jn(e.seconds instanceof mt?e.seconds.toInt():null!=e.seconds?e.seconds:0,null!=e.nanos?e.nanos:0)}toString(){const e=String(this.nanos).padStart(9,"0");return`${this.seconds.toString()}.${e}`}compare(e){const t=this.seconds.compare(e.seconds);return 0!=t?t:this.nanos.compare(e.nanos)}}class to{constructor(e,t,o=!1,s=null){this.accountId=e,this.validStart=t,this.scheduled=o,this.nonce=null,null!=s&&0!=s&&this.setNonce(s),Object.seal(this)}setNonce(e){return this.nonce="number"==typeof e?mt.fromNumber(e):e,this}static withValidStart(e,t){return new to(e,t)}static generate(e){return new to("string"==typeof e?Ue.fromString(e):new Ue(e),Jn.generate())}static fromString(e){let t,o,s,l,u,p;return[t,p]=e.split("@"),[o,p]=p.split("."),p.includes("?")?([s,p]=p.split("?scheduled"),l=!0,u=p.includes("/")?p.replace("/",""):null):p.includes("/")?([s,u]=p.split("/"),l=!1):s=p,new to(Ue.fromString(t),new Jn(mt.fromValue(o),mt.fromValue(s)),l,null!=u?mt.fromString(u):null)}setScheduled(e){return this.scheduled=e,this}toString(){if(null!=this.accountId&&null!=this.validStart){const e=String(this.validStart.nanos).padStart(9,"0"),t=null!=this.nonce?"/".concat(this.nonce.toString()):"",o=this.scheduled?"?scheduled":"";return`${this.accountId.toString()}@${this.validStart.seconds.toString()}.${e}${o}${t}`}throw new Error("neither `accountId` nor `validStart` are set")}static _fromProtobuf(e){if(null!=e.accountID&&null!=e.transactionValidStart)return new to(Ue._fromProtobuf(e.accountID),Jn._fromProtobuf(e.transactionValidStart),null!=e.scheduled?e.scheduled:void 0,null!=e.nonce?e.nonce:void 0);throw new Error("Neither `nonce` or `accountID` and `transactionValidStart` are set")}_toProtobuf(){return{accountID:null!=this.accountId?this.accountId._toProtobuf():null,transactionValidStart:null!=this.validStart?this.validStart._toProtobuf():null,scheduled:this.scheduled,nonce:null!=this.nonce?this.nonce.toInt():null}}static fromBytes(e){return to._fromProtobuf(ln.proto.TransactionID.decode(e))}toBytes(){return ln.proto.TransactionID.encode(this._toProtobuf()).finish()}clone(){return new to(this.accountId,this.validStart,this.scheduled,this.nonce)}compare(e){const t=this.accountId.compare(e.accountId);return 0!=t?t:this.validStart.compare(e.validStart)}getReceipt(e){return Pr.transactionReceiptQueryConstructor().setTransactionId(this).execute(e)}getRecord(e){var t=this;return ct(function*(){return yield t.getReceipt(e),Pr.transactionRecordQueryConstructor().setTransactionId(t).execute(e)})()}}class qu extends t3{constructor(e){super(e,`transaction ${e.transactionId.toString()} failed precheck with status ${e.status.toString()}`),this.contractFunctionResult=e.contractFunctionResult}toJSON(){return{name:this.name,status:this.status.toString(),transactionId:this.transactionId.toString(),message:this.message,contractFunctionResult:this.contractFunctionResult}}}class r$ extends Error{constructor(e,t){super(),this.message=`query cost of ${e.toString()} HBAR exceeds max set on client: ${t.toString()} HBAR`,this.name="MaxQueryPaymentExceededError",this.queryCost=e,this.maxQueryPayment=t}}const Xo=new Map;class ei extends u2{constructor(){super(),this._paymentTransactionId=null,this._paymentTransactions=[],this._queryPayment=null,this._maxQueryPayment=null,this._timestamp=Date.now()}static fromBytes(e){const t=ln.proto.Query.decode(e);if(null==t.query)throw new Error("(BUG) query.query was not set in the protobuf");const o=Xo.get(t.query);if(null==o)throw new Error(`(BUG) Query.fromBytes() not implemented for type ${t.query}`);return o(t)}toBytes(){return ln.proto.Query.encode(this._makeRequest()).finish()}setQueryPayment(e){return this._queryPayment=e,this}setMaxQueryPayment(e){return this._maxQueryPayment=e,this}getCost(e){var t=this;return ct(function*(){if(t._nodeAccountIds.isEmpty&&t._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute()),1!=h2.length)throw new Error("CostQuery has not been loaded yet");t._timestamp=Date.now();const o=yield h2[0](t).execute(e);return mn.fromTinybars(o._valueInTinybar.multipliedBy(1.1).toFixed(0))})()}setPaymentTransactionId(e){return this._paymentTransactionId=e,this}get paymentTransactionId(){return this._paymentTransactionId}_getTransactionId(){if(null==this._paymentTransactionId)throw new Error("Query.PaymentTransactionId was not set duration execution");return this._paymentTransactionId}_isPaymentRequired(){return!0}_validateChecksums(e){}_beforeExecute(e){var t=this;return ct(function*(){if(t._paymentTransactions.length>0)return;if(e.isAutoValidateChecksumsEnabled()&&t._validateChecksums(e),t._nodeAccountIds.isEmpty&&t._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute()),t._operator=null!=t._operator?t._operator:e._operator,null==t._paymentTransactionId)if(t._isPaymentRequired()){if(null==t._operator)throw new Error("`client` must have an `operator` or an explicit payment transaction must be provided");t._paymentTransactionId=to.generate(t._operator.accountId)}else t._paymentTransactionId=to.generate(new Ue(0));let o=new mn(0);const s=null!=t._maxQueryPayment?t._maxQueryPayment:e.defaultMaxQueryPayment;if(null!=t._queryPayment)o=t._queryPayment;else if(0===t._paymentTransactions.length&&t._isPaymentRequired()){const l=yield t.getCost(e);if(s.toTinybars().toInt()0&&(e={responseType:ln.proto.ResponseType.ANSWER_ONLY,payment:this._paymentTransactions[this._nodeAccountIds.index]}),e}_onMakeRequest(e){throw new Error("not implemented")}_makeRequest(){let e={};return this._isPaymentRequired()&&null!=this._paymentTransactions&&(e={payment:this._paymentTransactions[this._nodeAccountIds.index],responseType:ln.proto.ResponseType.ANSWER_ONLY}),this._onMakeRequest(e)}_makeRequestAsync(){var e=this;return ct(function*(){let t={responseType:ln.proto.ResponseType.ANSWER_ONLY};if(e._isPaymentRequired()&&null!=e._paymentTransactions)if(e._nodeAccountIds.locked)t.payment=e._paymentTransactions[e._nodeAccountIds.index];else{const o=e._getLogId(),s=e._nodeAccountIds.current,l=e._paymentTransactionId,u=e._queryPayment;e._logger&&e._logger.debug(`[${o}] making a payment transaction for node ${s.toString()} and transaction ID ${l.toString()} with amount ${u.toString()}`),t.payment=yield d2(l,s,e._isPaymentRequired()?e._operator:null,u)}return e._onMakeRequest(t)})()}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=M._fromCode(o??ln.proto.ResponseCodeEnum.OK);switch(this._logger&&this._logger.debug(`[${this._getLogId()}] received status ${s.toString()}`),s){case M.Busy:case M.Unknown:case M.PlatformTransactionNotCreated:return[s,"Retry"];case M.Ok:return[s,"Finished"];default:return[s,"Error"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=M._fromCode(o??ln.proto.ResponseCodeEnum.OK);return new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null})}_requestToBytes(e){return ln.proto.Query.encode(e).finish()}_responseToBytes(e){return ln.proto.Response.encode(e).finish()}}function d2(n,e,t,o){return f2.apply(this,arguments)}function f2(){return f2=ct(function*(n,e,t,o){const s=[];null!=t?(s.push({accountID:t.accountId._toProtobuf(),amount:o.negated().toTinybars()}),s.push({accountID:e._toProtobuf(),amount:o.toTinybars()})):(s.push({accountID:new Ue(0)._toProtobuf(),amount:o.negated().toTinybars()}),s.push({accountID:e._toProtobuf(),amount:o.toTinybars()}));const l={transactionID:n._toProtobuf(),nodeAccountID:e._toProtobuf(),transactionFee:new mn(1).toTinybars(),transactionValidDuration:{seconds:mt.fromNumber(120)},cryptoTransfer:{transfers:{accountAmounts:s}}},u={bodyBytes:ln.proto.TransactionBody.encode(l).finish()};if(null!=t){const p=yield t.transactionSigner(u.bodyBytes);u.sigMap={sigPair:[t.publicKey._toProtobufSignature(p)]}}return{signedTransactionBytes:ln.proto.SignedTransaction.encode(u).finish()}}),f2.apply(this,arguments)}const h2=[];class Kn extends qn{constructor(e,t,o,s){super();const l=Ou(e,t,o);this.shard=l.shard,this.realm=l.realm,this.num=l.num,this.evmAddress=s??null,this._checksum=null}static fromEvmAddress(e,t,o){return tp(Mn(o))?this.fromEvmAddress(0,0,o):new Kn(e,t,0,Mn(o))}static fromString(e){const t=ay(e);if(Number.isNaN(t.shard)||Number.isNaN(t.realm))throw new Error("invalid format for entity ID");const o=null!=t.shard?mt.fromString(t.shard):mt.ZERO,s=null!=t.realm?mt.fromString(t.realm):mt.ZERO,[l,u]=t.numOrHex.length<40?[mt.fromString(t.numOrHex),void 0]:[mt.ZERO,Mn(t.numOrHex)];return new Kn(o,s,l,u)}static _fromProtobuf(e){return new Kn(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.contractNum?e.contractNum:0)}get checksum(){return this._checksum}populateAccountNum(e){var t=this;return ct(function*(){if(null===t.evmAddress)throw new Error("field `evmAddress` should not be null");const s=`https://${e.mirrorNetwork[0].slice(0,e.mirrorNetwork[0].indexOf(":"))}/api/v1/contracts/${cn(t.evmAddress)}`,l=(yield l2.get(s)).data.contract_id;return t.num=mt.fromString(l.slice(l.lastIndexOf(".")+1)),t})()}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return Kn._fromProtobuf(ln.proto.ContractID.decode(e))}static fromSolidityAddress(e){return tp(Mn(e))?new Kn(...Pu(e)):this.fromEvmAddress(0,0,e)}toSolidityAddress(){return null!=this.evmAddress?cn(this.evmAddress):Ru([this.shard,this.realm,this.num])}_toProtobuf(){return{contractNum:this.num,shardNum:this.shard,realmNum:this.realm,evmAddress:this.evmAddress}}toString(){return null!=this.evmAddress?`${this.shard.toString()}.${this.realm.toString()}.${cn(this.evmAddress)}`:`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return Lu(this.toString(),e)}toBytes(){return ln.proto.ContractID.encode(this._toProtobuf()).finish()}clone(){const e=new Kn(this);return e._checksum=this._checksum,e.evmAddress=this.evmAddress,e}compare(e){return Kf([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}equals(e){let t=!1;return null!=this.evmAddress&&null!=e.evmAddress&&(t=fk(this.evmAddress,e.evmAddress)),this.shard.eq(e.shard)&&this.realm.eq(e.realm)&&this.num.eq(e.num)&&t}_toProtobufKey(){return{contractID:this._toProtobuf()}}static __fromProtobufKey(e){return Kn._fromProtobuf(e)}}Pr.setContractId(n=>Kn.__fromProtobufKey(n));class mr{constructor(e,t,o){const s=Ou(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=np(e),o=new mr(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new mr(null!=e.shardNum?mt.fromString(e.shardNum.toString()):0,null!=e.realmNum?mt.fromString(e.realmNum.toString()):0,null!=e.fileNum?mt.fromString(e.fileNum.toString()):0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return mr._fromProtobuf(ln.proto.FileID.decode(e))}static fromSolidityAddress(e){const[t,o,s]=Pu(e);return new mr(t,o,s)}toSolidityAddress(){return Ru([this.shard,this.realm,this.num])}_toProtobuf(){return{fileNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return Lu(this.toString(),e)}toBytes(){return ln.proto.FileID.encode(this._toProtobuf()).finish()}clone(){const e=new mr(this);return e._checksum=this._checksum,e}compare(e){return Kf([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}mr.ADDRESS_BOOK=new mr(102),mr.FEE_SCHEDULE=new mr(111),mr.EXCHANGE_RATES=new mr(112);class bi{constructor(e,t,o){const s=Ou(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=np(e),o=new bi(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new bi(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.topicNum?e.topicNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return bi._fromProtobuf(ln.proto.TopicID.decode(e))}static fromSolidityAddress(e){const[t,o,s]=Pu(e);return new bi(t,o,s)}toSolidityAddress(){return Ru([this.shard,this.realm,this.num])}_toProtobuf(){return{topicNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return Lu(this.toString(),e)}toBytes(){return ln.proto.TopicID.encode(this._toProtobuf()).finish()}clone(){const e=new bi(this);return e._checksum=this._checksum,e}compare(e){return Kf([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class tn{constructor(e,t,o){const s=Ou(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=np(e),o=new tn(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new tn(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.tokenNum?e.tokenNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return tn._fromProtobuf(ln.proto.TokenID.decode(e))}static fromSolidityAddress(e){return new tn(...Pu(e))}toSolidityAddress(){return Ru([this.shard,this.realm,this.num])}_toProtobuf(){return{tokenNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return Lu(this.toString(),e)}toBytes(){return ln.proto.TokenID.encode(this._toProtobuf()).finish()}clone(){const e=new tn(this);return e._checksum=this._checksum,e}compare(e){return Kf([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class ki{constructor(e,t,o){const s=Ou(e,t,o);this.shard=s.shard,this.realm=s.realm,this.num=s.num,this._checksum=null}static fromString(e){const t=np(e),o=new ki(t);return o._checksum=t.checksum,o}static _fromProtobuf(e){return new ki(null!=e.shardNum?e.shardNum:0,null!=e.realmNum?e.realmNum:0,null!=e.scheduleNum?e.scheduleNum:0)}get checksum(){return this._checksum}validate(e){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(e)}validateChecksum(e){Fu(this.shard,this.realm,this.num,this._checksum,e)}static fromBytes(e){return ki._fromProtobuf(ln.proto.ScheduleID.decode(e))}static fromSolidityAddress(e){return new ki(...Pu(e))}toSolidityAddress(){return Ru([this.shard,this.realm,this.num])}_toProtobuf(){return{scheduleNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(e){return Lu(this.toString(),e)}toBytes(){return ln.proto.ScheduleID.encode(this._toProtobuf()).finish()}clone(){const e=new ki(this);return e._checksum=this._checksum,e}compare(e){return Kf([this.shard,this.realm,this.num],[e.shard,e.realm,e.num])}}class p2{constructor(e){this.hbars=e.hbars,this.cents=e.cents,this.expirationTime=e.expirationTime,this.exchangeRateInCents=e.cents/e.hbars,Object.freeze(this)}static _fromProtobuf(e){return new p2({hbars:e.hbarEquiv,cents:e.centEquiv,expirationTime:new Date(null!=e.expirationTime&&null!=e.expirationTime.seconds?mt.isLong(e.expirationTime.seconds)?1e3*e.expirationTime.seconds.toInt():e.expirationTime.seconds:0)})}_toProtobuf(){return{hbarEquiv:this.hbars,centEquiv:this.cents,expirationTime:{seconds:mt.fromNumber(Math.trunc(this.expirationTime.getTime()/1e3))}}}toJSON(){return{hbars:this.hbars,cents:this.cents,expirationTime:this.expirationTime,exchangeRateInCents:this.exchangeRateInCents}}toString(){return JSON.stringify(this.toJSON())}}class Cr{constructor(e){this.status=e.status,this.accountId=e.accountId,this.fileId=e.fileId,this.contractId=e.contractId,this.topicId=e.topicId,this.tokenId=e.tokenId,this.scheduleId=e.scheduleId,this.exchangeRate=e.exchangeRate,this.topicSequenceNumber=e.topicSequenceNumber,this.topicRunningHash=e.topicRunningHash,this.totalSupply=e.totalSupply,this.scheduledTransactionId=e.scheduledTransactionId,this.serials=e.serials??[],this.duplicates=e.duplicates??[],this.children=e.children??[],Object.freeze(this)}_toProtobuf(){return{duplicateTransactionReceipts:this.duplicates.map(o=>o._toProtobuf().receipt),childTransactionReceipts:this.children.map(o=>o._toProtobuf().receipt),receipt:{status:this.status.valueOf(),accountID:null!=this.accountId?this.accountId._toProtobuf():null,fileID:null!=this.fileId?this.fileId._toProtobuf():null,contractID:null!=this.contractId?this.contractId._toProtobuf():null,topicID:null!=this.topicId?this.topicId._toProtobuf():null,tokenID:null!=this.tokenId?this.tokenId._toProtobuf():null,scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,topicRunningHash:null==this.topicRunningHash?null:this.topicRunningHash,topicSequenceNumber:this.topicSequenceNumber,exchangeRate:{nextRate:null,currentRate:null!=this.exchangeRate?this.exchangeRate._toProtobuf():null},scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,serialNumbers:this.serials,newTotalSupply:this.totalSupply}}}static _fromProtobuf(e){const t=e.receipt,o=t.exchangeRate,s=null!=e.childTransactionReceipts?e.childTransactionReceipts.map(u=>Cr._fromProtobuf({receipt:u})):[],l=null!=e.duplicateTransactionReceipts?e.duplicateTransactionReceipts.map(u=>Cr._fromProtobuf({receipt:u})):[];return new Cr({status:M._fromCode(null!=t.status?t.status:0),accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):null,fileId:null!=t.fileID?mr._fromProtobuf(t.fileID):null,contractId:null!=t.contractID?Kn._fromProtobuf(t.contractID):null,topicId:null!=t.topicID?bi._fromProtobuf(t.topicID):null,tokenId:null!=t.tokenID?tn._fromProtobuf(t.tokenID):null,scheduleId:null!=t.scheduleID?ki._fromProtobuf(t.scheduleID):null,exchangeRate:null!=t.exchangeRate?p2._fromProtobuf(o.currentRate):null,topicSequenceNumber:null==t.topicSequenceNumber?null:mt.fromString(t.topicSequenceNumber.toString()),topicRunningHash:null!=t.topicRunningHash?new Uint8Array(t.topicRunningHash):null,totalSupply:null!=t.newTotalSupply?mt.fromString(t.newTotalSupply.toString()):null,scheduledTransactionId:null!=t.scheduledTransactionID?to._fromProtobuf(t.scheduledTransactionID):null,serials:null!=t.serialNumbers?t.serialNumbers.map(u=>mt.fromValue(u)):[],children:s,duplicates:l})}static fromBytes(e){return Cr._fromProtobuf(ln.proto.TransactionGetReceiptResponse.decode(e))}toBytes(){return ln.proto.TransactionGetReceiptResponse.encode(this._toProtobuf()).finish()}toJSON(){return{status:this.status.toString(),accountId:this.accountId?.toString()||null,filedId:this.fileId?.toString()||null,contractId:this.contractId?.toString()||null,topicId:this.topicId?.toString()||null,tokenId:this.tokenId?.toString()||null,scheduleId:this.scheduleId?.toString()||null,exchangeRate:this.exchangeRate?.toJSON()||null,topicSequenceNumber:this.topicSequenceNumber?.toString()||null,topicRunningHash:null!=this.topicRunningHash?cn(this.topicRunningHash):null,totalSupply:this.totalSupply?.toString()||null,scheduledTransactionId:this.scheduledTransactionId?.toString()||null,serials:this.serials.map(e=>e.toString()),duplicates:this.duplicates.map(e=>e.toJSON()),children:this.children.map(e=>e.toJSON())}}toString(){return JSON.stringify(this.toJSON())}}const{proto:Jk}=Rc;class Ju extends ei{constructor(e={}){super(),this._transactionId=null,this._includeChildren=null,this._includeDuplicates=null,this._validateStatus=!0,null!=e.transactionId&&this.setTransactionId(e.transactionId),null!=e.includeChildren&&this.setIncludeChildren(e.includeChildren),null!=e.includeDuplicates&&this.setIncludeDuplicates(e.includeDuplicates),null!=e.validateStatus&&this.setValidateStatus(e.validateStatus)}static _fromProtobuf(e){const t=e.transactionGetReceipt;return new Ju({transactionId:t.transactionID?to._fromProtobuf(t.transactionID):void 0,includeDuplicates:null!=t.includeDuplicates?t.includeDuplicates:void 0,includeChildren:null!=t.includeChildReceipts?t.includeChildReceipts:void 0})}get transactionId(){return this._transactionId}setTransactionId(e){return this._transactionId="string"==typeof e?to.fromString(e):e.clone(),this}setIncludeDuplicates(e){return this._includeDuplicates=e,this}get includeDuplicates(){return null!=this._includeDuplicates&&this._includeDuplicates}setIncludeChildren(e){return this._includeChildren=e,this}get includeChildren(){return null!=this._includeChildren&&this._includeChildren}setValidateStatus(e){return this._validateStatus=e,this}get validateStatus(){return this._validateStatus}_isPaymentRequired(){return!1}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=M._fromCode(o??Jk.ResponseCodeEnum.OK);switch(this._logger&&this._logger.debug(`[${this._getLogId()}] received node precheck status ${s.toString()}`),s){case M.Busy:case M.Unknown:case M.ReceiptNotFound:return[s,"Retry"];case M.Ok:break;default:return[s,"Error"]}switch(s=M._fromCode(t.transactionGetReceipt.receipt.status),this._logger&&this._logger.debug(`[${this._getLogId()}] received receipt status ${s.toString()}`),s){case M.Busy:case M.Unknown:case M.ReceiptNotFound:return[s,"Retry"];case M.Success:return[s,"Finished"];default:return[s,this._validateStatus?"Error":"Finished"]}}_getTransactionId(){return null!=this._transactionId?this._transactionId:super._getTransactionId()}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=M._fromCode(o??Jk.ResponseCodeEnum.OK);if(s!==M.Ok)return new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null});const l=t.transactionGetReceipt;if(s=M._fromCode(l.receipt.status),null==this._transactionId)throw new Error("Failed to construct `ReceiptStatusError` because `transactionId` is `null`");return new dp({status:s,transactionId:this._transactionId,transactionReceipt:Cr._fromProtobuf(l)})}_validateChecksums(e){null!=this._transactionId&&null!=this._transactionId.accountId&&this._transactionId.accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getTransactionReceipts(t)}_mapResponseHeader(e){return e.transactionGetReceipt.header}_mapResponse(e,t,o){return Promise.resolve(Cr._fromProtobuf(e.transactionGetReceipt))}_onMakeRequest(e){return{transactionGetReceipt:{header:e,transactionID:null!=this._transactionId?this._transactionId._toProtobuf():null,includeDuplicates:this._includeDuplicates,includeChildReceipts:this._includeChildren}}}_getLogId(){return`TransactionReceiptQuery:${this._timestamp.toString()}`}}Xo.set("transactionGetReceipt",Ju._fromProtobuf);class Xu{constructor(e){this.accountId=e.accountId instanceof Ue?e.accountId:Ue.fromString(e.accountId),this.amount=e.amount instanceof mn?e.amount:new mn(e.amount),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e)t.push(new Xu({accountId:Ue._fromProtobuf(o.accountID),amount:mn.fromTinybars(null!=o.amount?o.amount:0),isApproved:o.isApproval}));return t}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount.toTinybars(),isApproval:this.isApproved}}toJSON(){return{accountId:this.accountId.toString(),amount:this.amount.toTinybars().toString(),isApproved:this.isApproved}}toString(){return JSON.stringify(this.toJSON())}}class g2{constructor(e){this.contractId=e.contractId,this.bloom=e.bloom,this.topics=e.topics,this.data=e.data,Object.freeze(this)}static _fromProtobuf(e){return new g2({contractId:Kn._fromProtobuf(e.contractID),bloom:null!=e.bloom?e.bloom:new Uint8Array,topics:null!=e.topic?e.topic:[],data:null!=e.data?e.data:new Uint8Array})}_toProtobuf(){return{contractID:this.contractId._toProtobuf(),bloom:this.bloom,topic:this.topics,data:this.data}}}function A2(n){return(new TextDecoder).decode(n)}function ed(n){return(new TextEncoder).encode(n)}let Xk=!1,eD=!1;const _p={debug:1,default:2,info:2,warning:3,error:4,off:5};let tD=_p.default,m2=null;const nD=function i$(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{n.push(e)}}),n.length)throw new Error("missing "+n.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(n){return n.message}return null}();var Ip=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(Ip||(Ip={})),Ip))(),Ts=(()=>(function(n){n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED"}(Ts||(Ts={})),Ts))();const rD="0123456789abcdef";let Vr=(()=>{class n{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,o){const s=t.toLowerCase();null==_p[s]&&this.throwArgumentError("invalid log level name","logLevel",t),!(tD>_p[s])&&console.log.apply(console,o)}debug(...t){this._log(n.levels.DEBUG,t)}info(...t){this._log(n.levels.INFO,t)}warn(...t){this._log(n.levels.WARNING,t)}makeError(t,o,s){if(eD)return this.makeError("censored error",o,{});o||(o=n.errors.UNKNOWN_ERROR),s||(s={});const l=[];Object.keys(s).forEach(S=>{const V=s[S];try{if(V instanceof Uint8Array){let J="";for(let he=0;he>4],J+=rD[15&V[he]];l.push(S+"=Uint8Array(0x"+J+")")}else l.push(S+"="+JSON.stringify(V))}catch{l.push(S+"="+JSON.stringify(s[S].toString()))}}),l.push(`code=${o}`),l.push(`version=${this.version}`);const u=t;let p="";switch(o){case Ts.NUMERIC_FAULT:{p="NUMERIC_FAULT";const S=t;switch(S){case"overflow":case"underflow":case"division-by-zero":p+="-"+S;break;case"negative-power":case"negative-width":p+="-unsupported";break;case"unbound-bitwise-result":p+="-unbound-result"}break}case Ts.CALL_EXCEPTION:case Ts.INSUFFICIENT_FUNDS:case Ts.MISSING_NEW:case Ts.NONCE_EXPIRED:case Ts.REPLACEMENT_UNDERPRICED:case Ts.TRANSACTION_REPLACED:case Ts.UNPREDICTABLE_GAS_LIMIT:p=o}p&&(t+=" [ See: https://links.ethers.org/v5-errors-"+p+" ]"),l.length&&(t+=" ("+l.join(", ")+")");const w=new Error(t);return w.reason=u,w.code=o,Object.keys(s).forEach(function(S){w[S]=s[S]}),w}throwError(t,o,s){throw this.makeError(t,o,s)}throwArgumentError(t,o,s){return this.throwError(t,n.errors.INVALID_ARGUMENT,{argument:o,value:s})}assert(t,o,s,l){t||this.throwError(o,s,l)}assertArgument(t,o,s,l){t||this.throwArgumentError(o,s,l)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),nD&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:nD})}checkSafeUint53(t,o){"number"==typeof t&&(null==o&&(o="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,o,s){s=s?": "+s:"",to&&this.throwError("too many arguments"+s,n.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:o})}checkNew(t,o){(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}checkAbstract(t,o){t===o?this.throwError("cannot instantiate abstract class "+JSON.stringify(o.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}static globalLogger(){return m2||(m2=new n("logger/5.7.0")),m2}static setCensorship(t,o){if(!t&&o&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Xk){if(!t)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}eD=!!t,Xk=!!o}static setLogLevel(t){const o=_p[t.toLowerCase()];null!=o?tD=o:n.globalLogger().warn("invalid log level - "+t)}static from(t){return new n(t)}}return n.errors=Ts,n.levels=Ip,n})();const ko=new Vr("bytes/5.7.0");function oD(n){return!!n.toHexString}function td(n){return n.slice||(n.slice=function(){const e=Array.prototype.slice.call(arguments);return td(new Uint8Array(Array.prototype.slice.apply(n,e)))}),n}function sD(n){return"number"==typeof n&&n==n&&n%1==0}function xp(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!sD(n.length)||n.length<0)return!1;for(let e=0;e=256)return!1}return!0}function Wo(n,e){if(e||(e={}),"number"==typeof n){ko.checkSafeUint53(n,"invalid arrayify value");const t=[];for(;n;)t.unshift(255&n),n=parseInt(String(n/256));return 0===t.length&&t.push(0),td(new Uint8Array(t))}if(e.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),oD(n)&&(n=n.toHexString()),ss(n)){let t=n.substring(2);t.length%2&&("left"===e.hexPad?t="0"+t:"right"===e.hexPad?t+="0":ko.throwArgumentError("hex data is odd-length","value",n));const o=[];for(let s=0;sWo(s)),t=e.reduce((s,l)=>s+l.length,0),o=new Uint8Array(t);return e.reduce((s,l)=>(o.set(l,s),s+l.length),0),td(o)}function ss(n,e){return!("string"!=typeof n||!n.match(/^0x[0-9A-Fa-f]*$/)||e&&n.length!==2+2*e)}const y2="0123456789abcdef";function Io(n,e){if(e||(e={}),"number"==typeof n){ko.checkSafeUint53(n,"invalid hexlify value");let t="";for(;n;)t=y2[15&n]+t,n=Math.floor(n/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof n)return(n=n.toString(16)).length%2?"0x0"+n:"0x"+n;if(e.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),oD(n))return n.toHexString();if(ss(n))return n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":ko.throwArgumentError("hex data is odd-length","value",n)),n.toLowerCase();if(xp(n)){let t="0x";for(let o=0;o>4]+y2[15&s]}return t}return ko.throwArgumentError("invalid hexlify value","value",n)}function Uc(n,e,t){Object.defineProperty(n,e,{enumerable:!0,value:t,writable:!1})}new Vr("properties/5.7.0");const Dp="abi/5.7.0";var i3=MK().BN;const za=new Vr("bignumber/5.7.0"),v2={},cD=9007199254740991;let lD=!1;class Fo{constructor(e,t){e!==v2&&za.throwError("cannot call constructor directly; use BigNumber.from",Vr.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Qi(xr(this).fromTwos(e))}toTwos(e){return Qi(xr(this).toTwos(e))}abs(){return"-"===this._hex[0]?Fo.from(this._hex.substring(1)):this}add(e){return Qi(xr(this).add(xr(e)))}sub(e){return Qi(xr(this).sub(xr(e)))}div(e){return Fo.from(e).isZero()&&ks("division-by-zero","div"),Qi(xr(this).div(xr(e)))}mul(e){return Qi(xr(this).mul(xr(e)))}mod(e){const t=xr(e);return t.isNeg()&&ks("division-by-zero","mod"),Qi(xr(this).umod(t))}pow(e){const t=xr(e);return t.isNeg()&&ks("negative-power","pow"),Qi(xr(this).pow(t))}and(e){const t=xr(e);return(this.isNegative()||t.isNeg())&&ks("unbound-bitwise-result","and"),Qi(xr(this).and(t))}or(e){const t=xr(e);return(this.isNegative()||t.isNeg())&&ks("unbound-bitwise-result","or"),Qi(xr(this).or(t))}xor(e){const t=xr(e);return(this.isNegative()||t.isNeg())&&ks("unbound-bitwise-result","xor"),Qi(xr(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&ks("negative-width","mask"),Qi(xr(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&ks("negative-width","shl"),Qi(xr(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&ks("negative-width","shr"),Qi(xr(this).shrn(e))}eq(e){return xr(this).eq(xr(e))}lt(e){return xr(this).lt(xr(e))}lte(e){return xr(this).lte(xr(e))}gt(e){return xr(this).gt(xr(e))}gte(e){return xr(this).gte(xr(e))}isNegative(){return"-"===this._hex[0]}isZero(){return xr(this).isZero()}toNumber(){try{return xr(this).toNumber()}catch{ks("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return za.throwError("this platform does not support BigInt",Vr.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?lD||(lD=!0,za.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):za.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",Vr.errors.UNEXPECTED_ARGUMENT,{})),xr(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Fo)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new Fo(v2,s3(e)):e.match(/^-?[0-9]+$/)?new Fo(v2,s3(new i3(e))):za.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&ks("underflow","BigNumber.from",e),(e>=cD||e<=-cD)&&ks("overflow","BigNumber.from",e),Fo.from(String(e));const t=e;if("bigint"==typeof t)return Fo.from(t.toString());if(xp(t))return Fo.from(Io(t));if(t)if(t.toHexString){const o=t.toHexString();if("string"==typeof o)return Fo.from(o)}else{let o=t._hex;if(null==o&&"BigNumber"===t.type&&(o=t.hex),"string"==typeof o&&(ss(o)||"-"===o[0]&&ss(o.substring(1))))return Fo.from(o)}return za.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function s3(n){if("string"!=typeof n)return s3(n.toString(16));if("-"===n[0])return"-"===(n=n.substring(1))[0]&&za.throwArgumentError("invalid hex","value",n),"0x00"===(n=s3(n))?n:"-"+n;if("0x"!==n.substring(0,2)&&(n="0x"+n),"0x"===n)return"0x00";for(n.length%2&&(n="0x0"+n.substring(2));n.length>4&&"0x00"===n.substring(0,4);)n="0x"+n.substring(4);return n}function Qi(n){return Fo.from(s3(n))}function xr(n){const e=Fo.from(n).toHexString();return new i3("-"===e[0]?"-"+e.substring(3):e.substring(2),16)}function ks(n,e,t){const o={fault:n,operation:e};return null!=t&&(o.value=t),za.throwError(n,Vr.errors.NUMERIC_FAULT,o)}const w2=new Vr(Dp);class Ka{constructor(e,t,o,s){this.name=e,this.type=t,this.localName=o,this.dynamic=s}_throwError(e,t){w2.throwArgumentError(e,this.localName,t)}}class C2{constructor(e){Uc(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return function c$(n){let e="0x";return n.forEach(t=>{e+=Io(t).substring(2)}),e}(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Ep(e._data))}writeBytes(e){let t=Wo(e);const o=t.length%this.wordSize;return o&&(t=Ep([t,this._padding.slice(o)])),this._writeData(t)}_getValue(e){let t=Wo(Fo.from(e));return t.length>this.wordSize&&w2.throwError("value out-of-bounds",Vr.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Ep([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class Bp{constructor(e,t,o,s){Uc(this,"_data",Wo(e)),Uc(this,"wordSize",t||32),Uc(this,"_coerceFunc",o),Uc(this,"allowLoose",s),this._offset=0}get data(){return Io(this._data)}get consumed(){return this._offset}static coerce(e,t){let o=e.match("^u?int([0-9]+)$");return o&&parseInt(o[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):Bp.coerce(e,t)}_peekBytes(e,t,o){let s=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+s>this._data.length&&(this.allowLoose&&o&&this._offset+t<=this._data.length?s=t:w2.throwError("data out-of-bounds",Vr.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+s})),this._data.slice(this._offset,this._offset+s)}subReader(e){return new Bp(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let o=this._peekBytes(0,e,!!t);return this._offset+=o.length,o.slice(0,e)}readValue(){return Fo.from(this.readBytes(this.wordSize))}}var m$=$(7109),y$=$.n(m$);const jc=new Vr("address/5.7.0");function uD(n){ss(n,20)||jc.throwArgumentError("invalid address","address",n);const e=(n=n.toLowerCase()).substring(2).split(""),t=new Uint8Array(40);for(let s=0;s<40;s++)t[s]=e[s].charCodeAt(0);const o=Wo(function b$(n){return"0x"+y$().keccak_256(Wo(n))}(t));for(let s=0;s<40;s+=2)o[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(15&o[s>>1])>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const _2={};for(let n=0;n<10;n++)_2[String(n)]=String(n);for(let n=0;n<26;n++)_2[String.fromCharCode(65+n)]=String(10+n);const dD=Math.floor(function C$(n){return Math.log10?Math.log10(n):Math.log(n)/Math.LN10}(9007199254740991));function Gc(n){let e=null;if("string"!=typeof n&&jc.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),e=uD(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==n&&jc.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==function fD(n){let e=(n=(n=n.toUpperCase()).substring(4)+n.substring(0,2)+"00").split("").map(o=>_2[o]).join("");for(;e.length>=dD;){let o=e.substring(0,dD);e=parseInt(o,10)%97+e.substring(o.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}(n)&&jc.throwArgumentError("bad icap checksum","address",n),e=function A$(n){return new i3(n,36).toString(16)}(n.substring(4));e.length<40;)e="0"+e;e=uD("0x"+e)}else jc.throwArgumentError("invalid address","address",n);return e}class _$ extends Ka{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Gc(t)}catch(o){this._throwError(o.message,t)}return e.writeValue(t)}decode(e){return Gc(function Tp(n,e){for("string"!=typeof n?n=Io(n):ss(n)||ko.throwArgumentError("invalid hex string","value",n),n.length>2*e+2&&ko.throwArgumentError("value out of range","value",arguments[1]);n.length<2*e+2;)n="0x0"+n.substring(2);return n}(e.readValue().toHexString(),20))}}class I$ extends Ka{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const nd=new Vr(Dp);function hD(n,e,t){let o=null;if(Array.isArray(t))o=t;else if(t&&"object"==typeof t){let w={};o=e.map(S=>{const V=S.localName;return V||nd.throwError("cannot encode object for signature with missing names",Vr.errors.INVALID_ARGUMENT,{argument:"values",coder:S,value:t}),w[V]&&nd.throwError("cannot encode object for signature with duplicate names",Vr.errors.INVALID_ARGUMENT,{argument:"values",coder:S,value:t}),w[V]=!0,t[V]})}else nd.throwArgumentError("invalid tuple value","tuple",t);e.length!==o.length&&nd.throwArgumentError("types/value length mismatch","tuple",t);let s=new C2(n.wordSize),l=new C2(n.wordSize),u=[];e.forEach((w,S)=>{let V=o[S];if(w.dynamic){let J=l.length;w.encode(l,V);let he=s.writeUpdatableValue();u.push(xe=>{he(xe+J)})}else w.encode(s,V)}),u.forEach(w=>{w(s.length)});let p=n.appendWriter(s);return p+=n.appendWriter(l),p}function pD(n,e){let t=[],o=n.subReader(0);e.forEach(l=>{let u=null;if(l.dynamic){let p=n.readValue(),w=o.subReader(p.toNumber());try{u=l.decode(w)}catch(S){if(S.code===Vr.errors.BUFFER_OVERRUN)throw S;u=S,u.baseType=l.name,u.name=l.localName,u.type=l.type}}else try{u=l.decode(n)}catch(p){if(p.code===Vr.errors.BUFFER_OVERRUN)throw p;u=p,u.baseType=l.name,u.name=l.localName,u.type=l.type}null!=u&&t.push(u)});const s=e.reduce((l,u)=>{const p=u.localName;return p&&(l[p]||(l[p]=0),l[p]++),l},{});e.forEach((l,u)=>{let p=l.localName;if(!p||1!==s[p]||("length"===p&&(p="_length"),null!=t[p]))return;const w=t[u];w instanceof Error?Object.defineProperty(t,p,{enumerable:!0,get:()=>{throw w}}):t[p]=w});for(let l=0;l{throw u}})}return Object.freeze(t)}class x$ extends Ka{constructor(e,t,o){super("array",e.type+"["+(t>=0?t:"")+"]",o,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let o=0;oe._data.length&&nd.throwError("insufficient data length",Vr.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let o=[];for(let s=0;s(function(n){n.current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD"}(rd||(rd={})),rd))(),zi=(()=>(function(n){n.UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation"}(zi||(zi={})),zi))();function mD(n,e,t,o,s){if(n===zi.BAD_PREFIX||n===zi.UNEXPECTED_CONTINUE){let l=0;for(let u=e+1;u>6==2;u++)l++;return l}return n===zi.OVERRUN?t.length-e-1:0}const L$=Object.freeze({error:function R$(n,e,t,o,s){return AD.throwArgumentError(`invalid codepoint at offset ${e}; ${n}`,"bytes",t)},ignore:mD,replace:function F$(n,e,t,o,s){return n===zi.OVERLONG?(o.push(s),0):(o.push(65533),mD(n,e,t))}});function j$(n,e){return function U$(n){return n.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}(function I2(n,e){null==e&&(e=L$.error),n=Wo(n);const t=[];let o=0;for(;o>7)){t.push(s);continue}let l=null,u=null;if(192==(224&s))l=1,u=127;else if(224==(240&s))l=2,u=2047;else{if(240!=(248&s)){o+=e(128==(192&s)?zi.UNEXPECTED_CONTINUE:zi.BAD_PREFIX,o-1,n,t);continue}l=3,u=65535}if(o-1+l>=n.length){o+=e(zi.OVERRUN,o-1,n,t);continue}let p=s&(1<<8-l-1)-1;for(let w=0;w1114111){o+=e(zi.OUT_OF_RANGE,o-1-l,n,t,p);continue}if(p>=55296&&p<=57343){o+=e(zi.UTF16_SURROGATE,o-1-l,n,t,p);continue}if(p<=u){o+=e(zi.OVERLONG,o-1-l,n,t,p);continue}t.push(p)}}return t}(n,e))}class G$ extends gD{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,function yD(n,e=rd.current){e!=rd.current&&(AD.checkNormalize(),n=n.normalize(e));let t=[];for(let o=0;o>6|192),t.push(63&s|128);else if(55296==(64512&s)){o++;const l=n.charCodeAt(o);if(o>=n.length||56320!=(64512&l))throw new Error("invalid utf-8 string");const u=65536+((1023&s)<<10)+(1023&l);t.push(u>>18|240),t.push(u>>12&63|128),t.push(u>>6&63|128),t.push(63&u|128)}else t.push(s>>12|224),t.push(s>>6&63|128),t.push(63&s|128)}return Wo(t)}(t))}decode(e){return j$(super.decode(e))}}class Sp extends Ka{constructor(e,t){let o=!1;const s=[];e.forEach(u=>{u.dynamic&&(o=!0),s.push(u.type)}),super("tuple","tuple("+s.join(",")+")",t,o),this.coders=e}defaultValue(){const e=[];this.coders.forEach(o=>{e.push(o.defaultValue())});const t=this.coders.reduce((o,s)=>{const l=s.localName;return l&&(o[l]||(o[l]=0),o[l]++),o},{});return this.coders.forEach((o,s)=>{let l=o.localName;!l||1!==t[l]||("length"===l&&(l="_length"),null==e[l]&&(e[l]=e[s]))}),Object.freeze(e)}encode(e,t){return hD(e,this.coders,t)}decode(e){return e.coerce(this.name,pD(e,this.coders))}}const Dr=new Vr(Dp),Dl={};let bD={calldata:!0,memory:!0,storage:!0},V$={calldata:!0,memory:!0};function Mp(n,e){if("bytes"===n||"string"===n){if(bD[e])return!0}else if("address"===n){if("payable"===e)return!0}else if((n.indexOf("[")>=0||"tuple"===n)&&V$[e])return!0;return(bD[e]||"payable"===e)&&Dr.throwArgumentError("invalid modifier","name",e),!1}function Np(n,e){for(let t in e)Uc(n,t,e[t])}const qr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Q$=new RegExp(/^(.*)\[([0-9]*)\]$/);class ci{constructor(e,t){e!==Dl&&Dr.throwError("use fromString",Vr.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Np(this,t);let o=this.type.match(Q$);Np(this,o?{arrayLength:parseInt(o[2]||"-1"),arrayChildren:ci.fromObject({type:o[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=qr.sighash),qr[e]||Dr.throwArgumentError("invalid format type","format",e),e===qr.json){let o={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(o.indexed=this.indexed),this.components&&(o.components=this.components.map(s=>JSON.parse(s.format(e)))),JSON.stringify(o)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==qr.sighash&&(t+=this.type),t+="("+this.components.map(o=>o.format(e)).join(e===qr.full?", ":",")+")"):t+=this.type,e!==qr.sighash&&(!0===this.indexed&&(t+=" indexed"),e===qr.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?ci.fromString(e,t):ci.fromObject(e)}static fromObject(e){return ci.isParamType(e)?e:new ci(Dl,{name:e.name||null,type:od(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(ci.fromObject):null})}static fromString(e,t){return function o(s){return ci.fromObject({name:s.name,type:s.type,indexed:s.indexed,components:s.components})}(function H$(n,e){let t=n;function o(p){Dr.throwArgumentError(`unexpected character at position ${p}`,"param",n)}function s(p){let w={type:"",name:"",parent:p,state:{allowType:!0}};return e&&(w.indexed=!1),w}n=n.replace(/\s/g," ");let l={type:"",name:"",state:{allowType:!0}},u=l;for(let p=0;pthis._getCoder(o)),e.name);case"":return new D$(e.name)}let t=e.type.match(W$);if(t){let o=parseInt(t[2]||"256");return(0===o||o>256||o%8!=0)&&Op.throwArgumentError("invalid "+t[1]+" bit length","param",e),new O$(o/8,"int"===t[1],e.name)}if(t=e.type.match(Y$),t){let o=parseInt(t[1]);return(0===o||o>32)&&Op.throwArgumentError("invalid bytes length","param",e),new k$(o,e.name)}return Op.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new Bp(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new C2(this._getWordSize())}getDefaultValue(e){const t=e.map(s=>this._getCoder(ci.from(s)));return new Sp(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&Op.throwError("types/values length mismatch",Vr.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const o=e.map(u=>this._getCoder(ci.from(u))),s=new Sp(o,"_"),l=this._getWriter();return s.encode(l,t),l.data}decode(e,t,o){const s=e.map(u=>this._getCoder(ci.from(u)));return new Sp(s,"_").decode(this._getReader(Wo(t),o))}},{proto:ID}=Rc;class Pp{constructor(e){this.contractId=e.contractId,this.nonce=e.nonce,Object.freeze(this)}static _fromProtobuf(e){return new Pp({contractId:Kn._fromProtobuf(e.contractId),nonce:null!=e.nonce?e.nonce:mt.ZERO})}_toProtobuf(){return{contractId:this.contractId._toProtobuf(),nonce:this.nonce}}static fromBytes(e){return Pp._fromProtobuf(ID.ContractNonceInfo.decode(e))}toBytes(){return ID.ContractNonceInfo.encode(this._toProtobuf()).finish()}toJSON(){return{contractId:this.contractId.toString(),nonce:this.nonce.toNumber()}}toString(){return JSON.stringify(this.toJSON())}equals(e){return this.contractId.equals(e.contractId)&&this.nonce.eq(e.nonce)}}class id{constructor(e){this._createResult=e._createResult,this.contractId=e.contractId,this.bytes=e.bytes,this.errorMessage=e.errorMessage,this.bloom=e.bloom,this.gasUsed=e.gasUsed,this.logs=e.logs,this.createdContractIds=e.createdContractIds,this.evmAddress=e.evmAddress,this.stateChanges=e.stateChanges,this.gas=e.gas,this.amount=e.amount,this.functionParameters=e.functionParameters,this.senderAccountId=e.senderAccountId,this.contractNonces=e.contractNonces}static _fromProtobuf(e,t){const o=e.contractID,s=e.gasUsed,l=e.gas?e.gas:-1,u=e.amount?e.amount:-1;return new id({_createResult:t,bytes:e.contractCallResult,contractId:null!=o?Kn._fromProtobuf(o):null,errorMessage:null!=e.errorMessage?e.errorMessage:null,bloom:e.bloom,gasUsed:s instanceof mt?s:mt.fromValue(s),logs:(null!=e.logInfo?e.logInfo:[]).map(p=>g2._fromProtobuf(p)),createdContractIds:(null!=e.createdContractIDs?e.createdContractIDs:[]).map(p=>Kn._fromProtobuf(p)),evmAddress:null!=e.evmAddress&&null!=e.evmAddress.value?e.evmAddress.value:null,stateChanges:[],gas:l instanceof mt?l:mt.fromValue(l),amount:u instanceof mt?u:mt.fromValue(u),functionParameters:e.functionParameters,senderAccountId:null!=e.senderId?Ue._fromProtobuf(e.senderId):null,contractNonces:(null!=e.contractNonces?e.contractNonces:[]).map(p=>Pp._fromProtobuf(p))})}asBytes(){return this.bytes}getString(e){return A2(this.getBytes(e))}getBytes(e){const t=this.getInt32(e),o=ji(this.bytes).getInt32(t+28);return this.bytes.subarray(t+32,t+32+o)}getBytes32(e){return this.bytes.subarray(32*(e??0),32*(e??0)+32)}getBool(e){return 0!==this.bytes[32*(e??0)+31]}getInt8(e){const t=32*(e??0)+31;return ji(this.bytes).getInt8(t)}getUint8(e){return this.bytes[32*(e??0)+31]}getInt16(e){const t=32*(e??0)+28;return ji(this.bytes).getInt32(t)}getUint16(e){const t=32*(e??0)+28;return ji(this.bytes).getUint32(t)}getInt24(e){const t=32*(e??0)+28;return ji(this.bytes).getInt32(t)}getUint24(e){const t=32*(e??0)+28;return ji(this.bytes).getUint32(t)}getInt32(e){const t=32*(e??0)+28;return ji(this.bytes).getInt32(t)}getUint32(e){const t=32*(e??0)+28;return ji(this.bytes).getUint32(t)}getInt40(e){const t=$r.decode(["int40"],this._getBytes32(e??0));return new hn(t.toString())}getUint40(e){return new hn(cn(this._getBytes32(e).subarray(27,32)),16)}getInt48(e){const t=$r.decode(["int48"],this._getBytes32(e??0));return new hn(t.toString())}getUint48(e){return new hn(cn(this._getBytes32(e).subarray(26,32)),16)}getInt56(e){const t=$r.decode(["int56"],this._getBytes32(e??0));return new hn(t.toString())}getUint56(e){return new hn(cn(this._getBytes32(e).subarray(25,32)),16)}getInt64(e){const t=$r.decode(["int64"],this._getBytes32(e??0));return new hn(t.toString())}getUint64(e){return new hn(cn(this._getBytes32(e).subarray(24,32)),16)}getInt72(e){const t=$r.decode(["int72"],this._getBytes32(e??0));return new hn(t.toString())}getUint72(e){return new hn(cn(this._getBytes32(e).subarray(23,32)),16)}getInt80(e){const t=$r.decode(["int80"],this._getBytes32(e??0));return new hn(t.toString())}getUint80(e){return new hn(cn(this._getBytes32(e).subarray(22,32)),16)}getInt88(e){const t=$r.decode(["int88"],this._getBytes32(e??0));return new hn(t.toString())}getUint88(e){return new hn(cn(this._getBytes32(e).subarray(21,32)),16)}getInt96(e){const t=$r.decode(["int96"],this._getBytes32(e??0));return new hn(t.toString())}getUint96(e){return new hn(cn(this._getBytes32(e).subarray(20,32)),16)}getInt104(e){const t=$r.decode(["int104"],this._getBytes32(e??0));return new hn(t.toString())}getUint104(e){return new hn(cn(this._getBytes32(e).subarray(19,32)),16)}getInt112(e){const t=$r.decode(["int112"],this._getBytes32(e??0));return new hn(t.toString())}getUint112(e){return new hn(cn(this._getBytes32(e).subarray(18,32)),16)}getInt120(e){const t=$r.decode(["int120"],this._getBytes32(e??0));return new hn(t.toString())}getUint120(e){return new hn(cn(this._getBytes32(e).subarray(17,32)),16)}getInt128(e){const t=$r.decode(["int128"],this._getBytes32(e??0));return new hn(t.toString())}getUint128(e){return new hn(cn(this._getBytes32(e).subarray(16,32)),16)}getInt136(e){const t=$r.decode(["int136"],this._getBytes32(e??0));return new hn(t.toString())}getUint136(e){return new hn(cn(this._getBytes32(e).subarray(15,32)),16)}getInt144(e){const t=$r.decode(["int144"],this._getBytes32(e??0));return new hn(t.toString())}getUint144(e){return new hn(cn(this._getBytes32(e).subarray(14,32)),16)}getInt152(e){const t=$r.decode(["int152"],this._getBytes32(e??0));return new hn(t.toString())}getUint152(e){return new hn(cn(this._getBytes32(e).subarray(13,32)),16)}getInt160(e){const t=$r.decode(["int160"],this._getBytes32(e??0));return new hn(t.toString())}getUint160(e){return new hn(cn(this._getBytes32(e).subarray(12,32)),16)}getInt168(e){const t=$r.decode(["int168"],this._getBytes32(e??0));return new hn(t.toString())}getUint168(e){return new hn(cn(this._getBytes32(e).subarray(11,32)),16)}getInt176(e){const t=$r.decode(["int176"],this._getBytes32(e??0));return new hn(t.toString())}getUint176(e){return new hn(cn(this._getBytes32(e).subarray(10,32)),16)}getInt184(e){const t=$r.decode(["int184"],this._getBytes32(e??0));return new hn(t.toString())}getUint184(e){return new hn(cn(this._getBytes32(e).subarray(9,32)),16)}getInt192(e){const t=$r.decode(["int192"],this._getBytes32(e??0));return new hn(t.toString())}getUint192(e){return new hn(cn(this._getBytes32(e).subarray(8,32)),16)}getInt200(e){const t=$r.decode(["int200"],this._getBytes32(e??0));return new hn(t.toString())}getUint200(e){return new hn(cn(this._getBytes32(e).subarray(7,32)),16)}getInt208(e){const t=$r.decode(["int208"],this._getBytes32(e??0));return new hn(t.toString())}getUint208(e){return new hn(cn(this._getBytes32(e).subarray(6,32)),16)}getInt216(e){const t=$r.decode(["int216"],this._getBytes32(e??0));return new hn(t.toString())}getUint216(e){return new hn(cn(this._getBytes32(e).subarray(5,32)),16)}getInt224(e){const t=$r.decode(["int224"],this._getBytes32(e??0));return new hn(t.toString())}getUint224(e){return new hn(cn(this._getBytes32(e).subarray(4,32)),16)}getInt232(e){const t=$r.decode(["int232"],this._getBytes32(e??0));return new hn(t.toString())}getUint232(e){return new hn(cn(this._getBytes32(e).subarray(3,32)),16)}getInt240(e){const t=$r.decode(["int240"],this._getBytes32(e??0));return new hn(t.toString())}getUint240(e){return new hn(cn(this._getBytes32(e).subarray(2,32)),16)}getInt248(e){const t=$r.decode(["int248"],this._getBytes32(e??0));return new hn(t.toString())}getUint248(e){return new hn(cn(this._getBytes32(e).subarray(1,32)),16)}getInt256(e){const t=$r.decode(["int256"],this._getBytes32(e??0));return new hn(t.toString())}getUint256(e){return new hn(cn(this._getBytes32(e)),16)}getAddress(e){return cn(this.bytes.subarray(32*(e??0)+12,32*(e??0)+32))}getResult(e){return $r.decode(e,this.bytes)}_getBytes32(e){return this.bytes.subarray(32*(e??0),32*(e??0)+32)}_toProtobuf(){return{contractID:null!=this.contractId?this.contractId._toProtobuf():null,contractCallResult:this.bytes,errorMessage:this.errorMessage,bloom:this.bloom,gasUsed:this.gasUsed,logInfo:this.logs.map(e=>e._toProtobuf()),createdContractIDs:this.createdContractIds.map(e=>e._toProtobuf()),evmAddress:null!=this.evmAddress?{value:this.evmAddress}:null,gas:this.gas,amount:this.amount,functionParameters:this.functionParameters,senderId:null!=this.senderAccountId?this.senderAccountId._toProtobuf():null,contractNonces:this.contractNonces.map(e=>e._toProtobuf())}}}class $s{constructor(e){this._map=new Map,this.__map=new Map,this._fromString=e}get(e){const t="string"==typeof e?e:e.toString();return this._map.get(t)??null}_set(e,t){const o="string"==typeof e?e:e.toString();this._map.set(o,t),this.__map.set(e,t)}values(){return this._map.values()}get size(){return this._map.size}keys(){return this.__map.keys()}[Symbol.iterator](){return this.__map[Symbol.iterator]()}toString(){const e={};for(const[t,o]of this._map)e[t]=o;return JSON.stringify(e)}toJSON(){const e={};return this._map.forEach((t,o)=>{e[o]=t}),e}}class xD extends $s{constructor(){super(e=>Ue.fromString(e))}toJSON(){const e={};return this._map.forEach((t,o)=>{e[o]=t.toString()}),e}}class Rp extends $s{constructor(){super(e=>tn.fromString(e))}__set(e,t,o){const s=e.toString();let l=this._map.get(s);null==l&&(l=new xD,this._map.set(s,l),this.__map.set(e,l)),l._set(t,o)}static _fromProtobuf(e){const t=new Rp;for(const o of e){const s=tn._fromProtobuf(o.token);for(const l of null!=o.transfers?o.transfers:[]){const u=Ue._fromProtobuf(l.accountID);t.__set(s,u,l.amount)}}return t}_toProtobuf(){const e=[];for(const[t,o]of this){const s=[];for(const[l,u]of o)s.push({accountID:l._toProtobuf(),amount:u});e.push({token:t._toProtobuf(),transfers:s})}return e}}class Fp extends $s{constructor(){super(e=>tn.fromString(e))}__set(e,t){const o=e.toString();let s=this._map.get(o);null==s&&(s=[],this._map.set(o,s),this.__map.set(e,s)),s.push(t)}static _fromProtobuf(e){const t=new Fp;for(const o of e){const s=tn._fromProtobuf(o.token);for(const l of null!=o.nftTransfers?o.nftTransfers:[]){const u=Ue._fromProtobuf(l.senderAccountID),p=Ue._fromProtobuf(l.receiverAccountID);t.__set(s,{sender:u,recipient:p,serial:mt.fromValue(l.serialNumber),isApproved:!1})}}return t}_toProtobuf(){const e=[];for(const[t,o]of this){const s=[];for(const l of o)s.push({senderAccountID:l.sender._toProtobuf(),receiverAccountID:l.recipient._toProtobuf(),serialNumber:l.serial});e.push({token:t._toProtobuf(),nftTransfers:s})}return e}toJSON(){const e={};return this._map.forEach((t,o)=>{e[o]=t.map(s=>({sender:s.sender.toString(),recipient:s.recipient.toString(),serial:s.serial,isApproved:s.isApproved}))}),e}}class E2{constructor(e={}){this._feeCollectorAccountId=null,null!=e.feeCollectorAccountId&&this.setFeeCollectorAccountId(e.feeCollectorAccountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._amount=null,null!=e.amount&&this.setAmount(e.amount),this._payerAccountIds=null,null!=e.payerAccountIds&&this.setPayerAccountIds(e.payerAccountIds)}get feeCollectorAccountId(){return this._feeCollectorAccountId}setFeeCollectorAccountId(e){return this._feeCollectorAccountId="string"==typeof e?Ue.fromString(e):e,this}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?tn.fromString(e):e,this}get amount(){return this._amount}setAmount(e){return this._amount="number"==typeof e?mt.fromNumber(e):e,this}get payerAccountIds(){return this._payerAccountIds}setPayerAccountIds(e){return this._payerAccountIds=e,this}static _fromProtobuf(e){return new E2({feeCollectorAccountId:null!=e.feeCollectorAccountId?Ue._fromProtobuf(e.feeCollectorAccountId):void 0,tokenId:null!=e.tokenId?tn._fromProtobuf(e.tokenId):void 0,amount:null!=e.amount?e.amount:void 0,payerAccountIds:null!=e.effectivePayerAccountId?e.effectivePayerAccountId.map(t=>Ue._fromProtobuf(t)):void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,tokenId:null!=this._tokenId?this._tokenId._toProtobuf():null,amount:this._amount,effectivePayerAccountId:null!=this._payerAccountIds?this._payerAccountIds.map(e=>e._toProtobuf()):null}}toJSON(){return{feeCollectorAccountId:this.feeCollectorAccountId?.toString()||null,tokenId:this._tokenId?.toString()||null,amount:this._amount?.toString()||null,payerAccountIds:this._payerAccountIds?.map(e=>e.toString())||[]}}}class T2{constructor(e={}){this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._defaultMaxTransactionFee=new mn(5)}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e,this}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?tn.fromString(e):e,this}static _fromProtobuf(e){return new T2({accountId:null!=e.accountId?Ue._fromProtobuf(e.accountId):void 0,tokenId:null!=e.tokenId?tn._fromProtobuf(e.tokenId):void 0})}_toProtobuf(){return{accountId:null!=this._accountId?this._accountId._toProtobuf():void 0,tokenId:null!=this._tokenId?this._tokenId._toProtobuf():void 0}}toJSON(){return{accountId:this._accountId?.toString()||null,tokenId:this._tokenId?.toString()||null}}}class sd{constructor(e){this.tokenId=e.tokenId instanceof tn?e.tokenId:tn.fromString(e.tokenId),this.accountId=e.accountId instanceof Ue?e.accountId:Ue.fromString(e.accountId),this.expectedDecimals=e.expectedDecimals,this.amount=mt.fromValue(e.amount),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e){const s=tn._fromProtobuf(o.token),l=null!=o.expectedDecimals?o.expectedDecimals.value:null;for(const u of null!=o.transfers?o.transfers:[])t.push(new sd({tokenId:s,accountId:Ue._fromProtobuf(u.accountID),expectedDecimals:l,amount:null!=u.amount?u.amount:mt.ZERO,isApproved:1==u.isApproval}))}return t}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount,isApproval:this.isApproved}}toJSON(){return{tokenId:this.tokenId.toString(),accountId:this.accountId.toString(),expectedDecimals:this.expectedDecimals,amount:this.amount.toString(),isApproved:this.isApproved}}toString(){return JSON.stringify(this.toJSON())}}class Ya{constructor(e){this.receipt=e.receipt,this.transactionHash=e.transactionHash,this.consensusTimestamp=e.consensusTimestamp,this.transactionId=e.transactionId,this.transactionMemo=e.transactionMemo,this.transactionFee=e.transactionFee,this.transfers=e.transfers,this.contractFunctionResult=null!=e.contractFunctionResult?e.contractFunctionResult:null,this.tokenTransfers=e.tokenTransfers,this.tokenTransfersList=e.tokenTransfersList,this.scheduleRef=e.scheduleRef,this.assessedCustomFees=e.assessedCustomFees,this.nftTransfers=e.nftTransfers,this.automaticTokenAssociations=e.automaticTokenAssociations,this.parentConsensusTimestamp=e.parentConsensusTimestamp,this.aliasKey=e.aliasKey,this.duplicates=e.duplicates,this.children=e.children,this.hbarAllowanceAdjustments=e.hbarAllowanceAdjustments,this.tokenAllowanceAdjustments=e.tokenAllowanceAdjustments,this.nftAllowanceAdjustments=e.nftAllowanceAdjustments,this.ethereumHash=e.ethereumHash,this.paidStakingRewards=e.paidStakingRewards,this.prngBytes=e.prngBytes,this.prngNumber=e.prngNumber,this.evmAddress=e.evmAddress,Object.freeze(this)}_toProtobuf(){const e=this.tokenTransfers._toProtobuf(),t=this.nftTransfers._toProtobuf(),o=[];for(const u of e)for(const p of t)null!=u.token&&null!=p.token&&u.token.shardNum===p.token.shardNum&&u.token.realmNum===p.token.realmNum&&u.token.tokenNum===p.token.tokenNum?o.push({token:u.token,transfers:u.transfers,nftTransfers:u.nftTransfers}):(o.push(u),o.push(p));return{duplicateTransactionRecords:this.duplicates.map(u=>u._toProtobuf().transactionRecord),childTransactionRecords:this.children.map(u=>u._toProtobuf().transactionRecord),transactionRecord:{receipt:this.receipt._toProtobuf().receipt,transactionHash:null!=this.transactionHash?this.transactionHash:null,consensusTimestamp:null!=this.consensusTimestamp?this.consensusTimestamp._toProtobuf():null,transactionID:null!=this.transactionId?this.transactionId._toProtobuf():null,memo:null!=this.transactionMemo?this.transactionMemo:null,transactionFee:null!=this.transactionFee?this.transactionFee.toTinybars():null,contractCallResult:null==this.contractFunctionResult||this.contractFunctionResult._createResult?null:this.contractFunctionResult._toProtobuf(),contractCreateResult:null!=this.contractFunctionResult&&this.contractFunctionResult._createResult?this.contractFunctionResult._toProtobuf():null,transferList:null!=this.transfers?{accountAmounts:this.transfers.map(u=>u._toProtobuf())}:null,tokenTransferLists:o,scheduleRef:null!=this.scheduleRef?this.scheduleRef._toProtobuf():null,assessedCustomFees:this.assessedCustomFees.map(u=>u._toProtobuf()),automaticTokenAssociations:this.automaticTokenAssociations.map(u=>u._toProtobuf()),parentConsensusTimestamp:null!=this.parentConsensusTimestamp?this.parentConsensusTimestamp._toProtobuf():null,alias:null!=this.aliasKey?ln.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null,ethereumHash:this.ethereumHash,paidStakingRewards:this.paidStakingRewards.map(u=>u._toProtobuf()),prngBytes:this.prngBytes,prngNumber:null!=this.prngNumber?this.prngNumber:null,evmAddress:null!=this.evmAddress?this.evmAddress.toBytes():null}}}static _fromProtobuf(e){const t=e.transactionRecord;let o=null!=t.alias&&t.alias.length>0?qn._fromProtobufKey(ln.proto.Key.decode(t.alias)):null;o instanceof _o||(o=null);const s=null!=e.childTransactionRecords?e.childTransactionRecords.map(p=>Ya._fromProtobuf({transactionRecord:p})):[],l=null!=e.duplicateTransactionRecords?e.duplicateTransactionRecords.map(p=>Ya._fromProtobuf({transactionRecord:p})):[],u=null!=t.contractCallResult?id._fromProtobuf(t.contractCallResult,!1):null!=t.contractCreateResult?id._fromProtobuf(t.contractCreateResult,!0):void 0;return new Ya({receipt:Cr._fromProtobuf({receipt:t.receipt}),transactionHash:null!=t.transactionHash?t.transactionHash:new Uint8Array,consensusTimestamp:Jn._fromProtobuf(t.consensusTimestamp),transactionId:to._fromProtobuf(t.transactionID),transactionMemo:null!=t.memo?t.memo:"",transactionFee:mn.fromTinybars(null!=t.transactionFee?t.transactionFee:0),transfers:Xu._fromProtobuf(null!=t.transferList&&null!=t.transferList.accountAmounts?t.transferList.accountAmounts:[]),contractFunctionResult:u,tokenTransfers:Rp._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),tokenTransfersList:sd._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),scheduleRef:null!=t.scheduleRef?ki._fromProtobuf(t.scheduleRef):null,assessedCustomFees:null!=t.assessedCustomFees?t.assessedCustomFees.map(p=>E2._fromProtobuf(p)):[],nftTransfers:Fp._fromProtobuf(null!=t.tokenTransferLists?t.tokenTransferLists:[]),automaticTokenAssociations:null!=t.automaticTokenAssociations?t.automaticTokenAssociations.map(p=>T2._fromProtobuf(p)):[],parentConsensusTimestamp:null!=t.parentConsensusTimestamp?Jn._fromProtobuf(t.parentConsensusTimestamp):null,aliasKey:o,duplicates:l,children:s,hbarAllowanceAdjustments:[],tokenAllowanceAdjustments:[],nftAllowanceAdjustments:[],ethereumHash:null!=t.ethereumHash?t.ethereumHash:null,paidStakingRewards:null!=t.paidStakingRewards?Xu._fromProtobuf(t.paidStakingRewards):[],prngBytes:null!=t.prngBytes?t.prngBytes:null,prngNumber:null!=t.prngNumber?t.prngNumber:null,evmAddress:null!=t.evmAddress?Ws.fromBytes(t.evmAddress):null})}static fromBytes(e){return Ya._fromProtobuf(ln.proto.TransactionGetRecordResponse.decode(e))}toBytes(){return ln.proto.TransactionGetRecordResponse.encode(this._toProtobuf()).finish()}toJSON(){return{receipt:this.receipt.toJSON(),transactionHash:cn(this.transactionHash),consensusTimestamp:this.consensusTimestamp.toDate(),transactionId:this.transactionId.toString(),transactionMemo:this.transactionMemo,transactionFee:this.transactionFee.toTinybars().toString(),transfers:this.transfers.map(e=>e.toJSON()),tokenTransfers:this.tokenTransfers,tokenTransfersList:this.tokenTransfersList.map(e=>e.toJSON()),scheduleRef:this.scheduleRef?.toString()||null,assessedCustomFees:this.assessedCustomFees,nftTransfers:this.nftTransfers,automaticTokenAssociations:this.automaticTokenAssociations,parentConsensusTimestamp:this.parentConsensusTimestamp?.toDate()||null,aliasKey:this.aliasKey?.toString()||null,duplicates:this.duplicates,children:this.children,ethereumHash:null!=this.ethereumHash?cn(this.ethereumHash):null,paidStakingRewards:this.paidStakingRewards,prngBytes:null!=this.prngBytes?cn(this.prngBytes):null,prngNumber:this.prngNumber,evmAddress:this.evmAddress?.toString()||null}}toString(){return JSON.stringify(this.toJSON())}}class ED extends t3{constructor(e){super(e,`Record for transaction ${e.transactionId.toString()} contained error status ${e.status.toString()}`),this.transactionRecord=e.transactionRecord}}const{proto:TD}=Rc;class Lp extends ei{constructor(e={}){super(),this._transactionId=null,this._includeChildren=null,this._includeDuplicates=null,this._validateReceiptStatus=!0,null!=e.transactionId&&this.setTransactionId(e.transactionId),null!=e.includeChildren&&this.setIncludeChildren(e.includeChildren),null!=e.includeDuplicates&&this.setIncludeDuplicates(e.includeDuplicates),null!=e.validateReceiptStatus&&this.setValidateReceiptStatus(e.validateReceiptStatus)}get transactionId(){return this._transactionId}static _fromProtobuf(e){const t=e.transactionGetRecord;return new Lp({transactionId:t.transactionID?to._fromProtobuf(t.transactionID):void 0,includeChildren:null!=t.includeChildRecords?t.includeChildRecords:void 0,includeDuplicates:null!=t.includeDuplicates?t.includeDuplicates:void 0})}setTransactionId(e){return this._transactionId="string"==typeof e?to.fromString(e):e.clone(),this}setIncludeChildren(e){return this._includeChildren=e,this}get includeChildren(){return null!=this._includeChildren&&this._includeChildren}setIncludeDuplicates(e){return this._duplicates=e,this}get includeDuplicates(){return null!=this._duplicates&&this._duplicates}setValidateReceiptStatus(e){return this._validateReceiptStatus=e,this}get validateReceiptStatus(){return this._validateReceiptStatus}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=M._fromCode(o??TD.ResponseCodeEnum.OK);switch(this._logger&&this._logger.debug(`[${this._getLogId()}] received node precheck status ${s.toString()}`),s){case M.Busy:case M.Unknown:case M.ReceiptNotFound:case M.RecordNotFound:return[s,"Retry"];case M.Ok:break;default:return[s,"Error"]}const l=t.transactionGetRecord;if(l.header.responseType===ln.proto.ResponseType.COST_ANSWER)return[s,"Finished"];switch(s=M._fromCode(l.transactionRecord.receipt.status),this._logger&&this._logger.debug(`[${this._getLogId()}] received record's receipt ${s.toString()}`),s){case M.Ok:case M.Busy:case M.Unknown:case M.ReceiptNotFound:case M.RecordNotFound:return[s,"Retry"];case M.Success:return[s,"Finished"];default:return[s,this._validateReceiptStatus?"Error":"Finished"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t);let s=M._fromCode(o??TD.ResponseCodeEnum.OK);switch(s){case M.Ok:break;case M.ContractRevertExecuted:return new ED({status:s,transactionId:this._getTransactionId(),transactionRecord:Ya._fromProtobuf({transactionRecord:t.transactionGetRecord.transactionRecord})});default:return new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null})}const p=t.transactionGetRecord.transactionRecord.receipt;return s=M._fromCode(p.status),s===M.ContractRevertExecuted?new ED({status:s,transactionId:this._getTransactionId(),transactionRecord:Ya._fromProtobuf({transactionRecord:t.transactionGetRecord.transactionRecord})}):new dp({status:s,transactionId:this._getTransactionId(),transactionReceipt:Cr._fromProtobuf({receipt:p})})}_validateChecksums(e){null!=this._transactionId&&null!=this._transactionId.accountId&&this._transactionId.accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getTxRecordByTxID(t)}_mapResponseHeader(e){return e.transactionGetRecord.header}_mapResponse(e,t,o){return Promise.resolve(Ya._fromProtobuf(e.transactionGetRecord))}_onMakeRequest(e){return{transactionGetRecord:{header:e,transactionID:null!=this._transactionId?this._transactionId._toProtobuf():null,includeChildRecords:this._includeChildren,includeDuplicates:this._includeDuplicates}}}_getLogId(){return`TransactionRecordQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("transactionGetRecord",Lp._fromProtobuf);class Up{constructor(e){this.nodeId=e.nodeId,this.transactionHash=e.transactionHash,this.transactionId=e.transactionId,Object.freeze(this)}static fromJSON(e){return new Up({nodeId:Ue.fromString(e.nodeId),transactionHash:Mn(e.transactionHash),transactionId:to.fromString(e.transactionId)})}getReceipt(e){var t=this;return ct(function*(){const o=yield t.getReceiptQuery().execute(e);if(o.status!==M.Success)throw new dp({transactionReceipt:o,status:o.status,transactionId:t.transactionId});return o})()}getRecord(e){var t=this;return ct(function*(){return yield t.getReceipt(e),t.getRecordQuery().execute(e)})()}getVerboseRecord(e){var t=this;return ct(function*(){try{return yield t.getReceiptQuery().execute(e),t.getRecordQuery().execute(e)}catch{return t.getRecordQuery().execute(e)}})()}getReceiptWithSigner(e){var t=this;return ct(function*(){const o=yield t.getReceiptQuery().executeWithSigner(e);if(o.status!==M.Success)throw new dp({transactionReceipt:o,status:o.status,transactionId:t.transactionId});return o})()}getRecordWithSigner(e){var t=this;return ct(function*(){return yield t.getReceiptWithSigner(e),t.getRecordQuery().executeWithSigner(e)})()}getReceiptQuery(){return(new Ju).setTransactionId(this.transactionId).setNodeAccountIds([this.nodeId])}getRecordQuery(){return(new Lp).setTransactionId(this.transactionId).setNodeAccountIds([this.nodeId])}toJSON(){return{nodeId:this.nodeId.toString(),transactionHash:cn(this.transactionHash),transactionId:this.transactionId.toString()}}toString(){return JSON.stringify(this.toJSON())}}function k2(n){return D2.apply(this,arguments)}function D2(){return D2=ct(function*(n){return new Uint8Array(yield window.crypto.subtle.digest("SHA-384",n))}),D2.apply(this,arguments)}class B2 extends $s{constructor(){super(e=>Ue.fromString(e))}static _fromTransaction(e){return ct(function*(){const t=new B2;for(let o=0;o_o.fromString(e))}static _fromTransactionSigMap(e){const t=new S2,o=null!=e.sigPair?e.sigPair:[];for(const s of o)null!=s.pubKeyPrefix&&(null!=s.ed25519?t._set(_o.fromBytesED25519(s.pubKeyPrefix),s.ed25519):null!=s.ECDSASecp256k1&&t._set(_o.fromBytesECDSA(s.pubKeyPrefix),s.ECDSASecp256k1));return t}}class jp extends $s{constructor(){super(e=>Ue.fromString(e))}static _fromTransaction(e){const t=new jp;for(let o=0;oPromise.resolve(e.sign(t)))}signWith(e,t){var o=this;return ct(function*(){o._signOnDemand||o._requireFrozen();const l=cn(e.toBytesRaw());if(o._signerPublicKeys.has(l))return o;if(o._transactions.clear(),o._signerPublicKeys.add(l),o._signOnDemand)return o._publicKeys.push(e),o._transactionSigners.push(t),o;o._transactionIds.setLocked(),o._nodeAccountIds.setLocked();for(const u of o._signedTransactions.list){const p=u.bodyBytes,w=yield t(p);null==u.sigMap&&(u.sigMap={}),null==u.sigMap.sigPair&&(u.sigMap.sigPair=[]),u.sigMap.sigPair.push(e._toProtobufSignature(w))}return o})()}signWithOperator(e){const t=e._operator;if(null==t)throw new Error("`client` must have an operator to sign with the operator");return this._isFrozen()||this.freezeWith(e),this.signWith(t.publicKey,t.transactionSigner)}addSignature(e,t){this._requireOneNodeAccountId(),this.isFrozen()||this.freeze();const s=cn(e.toBytesRaw());if(this._signerPublicKeys.has(s))return this;this._transactions.clear(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),this._signedTransactions.setLocked();for(const l of this._signedTransactions.list)null==l.sigMap&&(l.sigMap={}),null==l.sigMap.sigPair&&(l.sigMap.sigPair=[]),l.sigMap.sigPair.push(e._toProtobufSignature(t));return this._signerPublicKeys.add(s),this._publicKeys.push(e),this._transactionSigners.push(null),this}getSignatures(){return this._requireFrozen(),this._requireNotSignOnDemand(),this._buildAllTransactions(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),jp._fromTransaction(this)}getSignaturesAsync(){var e=this;return ct(function*(){return e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),jp._fromTransaction(e)})()}_setTransactionId(){if(null==this._operatorAccountId&&this._transactionIds.isEmpty)throw new Error("`transactionId` must be set or `client` must be provided with `freezeWith`")}_setNodeAccountIds(e){if(this._nodeAccountIds.isEmpty){if(null==e)throw new Error("`nodeAccountId` must be set or `client` must be provided with `freezeWith`");this._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute())}}_buildSignedTransactions(){this._signedTransactions.locked||this._signedTransactions.setList(this._nodeAccountIds.list.map(e=>this._makeSignedTransaction(e)))}freeze(){return this.freezeWith(null)}_freezeWithAccountId(e){null==this._operatorAccountId&&(this._operatorAccountId=e)}freezeWith(e){if(this._signOnDemand=null!=e&&e.signOnDemand,this._operator=null!=e?e._operator:null,this._freezeWithAccountId(null!=e?e.operatorAccountId:null),this._maxTransactionFee=null==this._maxTransactionFee?null!=e&&null!=e.defaultMaxTransactionFee?e.defaultMaxTransactionFee:this._defaultMaxTransactionFee:this._maxTransactionFee,this._regenerateTransactionId=null!=e&&null==this._regenerateTransactionId?e.defaultRegenerateTransactionId:this._regenerateTransactionId,this._setNodeAccountIds(e),this._setTransactionId(),null!=e)for(const t of this._transactionIds.list)null!=t.accountId&&t.accountId.validateChecksum(e);return this._buildNewTransactionIdList(),this._signOnDemand||this._buildSignedTransactions(),this}signWithSigner(e){var t=this;return ct(function*(){return yield e.signTransaction(t),t})()}freezeWithSigner(e){var t=this;return ct(function*(){return yield e.populateTransaction(t),t.freeze(),t})()}toBytes(){return this._requireFrozen(),this._requireNotSignOnDemand(),this._transactionIds.setLocked(),this._nodeAccountIds.setLocked(),this._buildAllTransactions(),ln.proto.TransactionList.encode({transactionList:this._transactions.list}).finish()}toBytesAsync(){var e=this;return ct(function*(){return e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),ln.proto.TransactionList.encode({transactionList:e._transactions.list}).finish()})()}getTransactionHash(){var e=this;return ct(function*(){return e._requireFrozen(),e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),e._transactions.setLocked(),e._signedTransactions.setLocked(),k2(e._transactions.get(0).signedTransactionBytes)})()}getTransactionHashPerNode(){var e=this;return ct(function*(){return e._requireFrozen(),e._transactionIds.setLocked(),e._nodeAccountIds.setLocked(),yield e._buildAllTransactionsAsync(),yield B2._fromTransaction(e)})()}isFrozen(){return this._signedTransactions.length>0}_getTransactionId(){const e=this.transactionId;if(null==e)throw new Error("transaction must have been frozen before getting the transaction ID, try calling `freeze`");return e}_validateChecksums(e){}_beforeExecute(e){var t=this;return ct(function*(){t._logger&&t._logger.info(`Network used: ${e._network.networkName}`),t._isFrozen()||t.freezeWith(e),e.isAutoValidateChecksumsEnabled()&&t._validateChecksums(e),(null==t._operator||null==t._operator)&&(t._operator=null!=e?e._operator:null),(null==t._operatorAccountId||null==t._operatorAccountId)&&(t._operatorAccountId=null!=e&&null!=e._operator?e._operator.accountId:null),null!=t._operator&&(yield t.signWith(t._operator.publicKey,t._operator.transactionSigner))})()}_makeRequestAsync(){var e=this;return ct(function*(){const t=e._transactionIds.index*e._nodeAccountIds.length+e._nodeAccountIds.index;return e._signOnDemand?yield e._buildTransactionAsync():(e._buildTransaction(t),e._transactions.get(t))})()}_signTransaction(){var e=this;return ct(function*(){const t=e._makeSignedTransaction(e._nodeAccountIds.next),o=t.bodyBytes;for(let s=0;s({signedTransactionBytes:ln.proto.SignedTransaction.encode(this._signedTransactions.get(e)).finish()}))}_buildTransactionAsync(){var e=this;return ct(function*(){return{signedTransactionBytes:ln.proto.SignedTransaction.encode(yield e._signTransaction()).finish()}})()}_shouldRetry(e,t){const{nodeTransactionPrecheckCode:o}=t,s=M._fromCode(o??ln.proto.ResponseCodeEnum.OK);switch(this._logger&&(this._logger.debug(`[${this._getLogId()}] received status ${s.toString()}`),this._logger.info(`SDK Transaction Status Response: ${s.toString()}`)),s){case M.Busy:case M.Unknown:case M.PlatformTransactionNotCreated:case M.PlatformNotActive:return[s,"Retry"];case M.Ok:return[s,"Finished"];case M.TransactionExpired:return this._transactionIds.locked||null!=this._regenerateTransactionId&&!this._regenerateTransactionId?[s,"Error"]:(this._buildNewTransactionIdList(),[s,"Retry"]);default:return[s,"Error"]}}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=t,s=M._fromCode(o??ln.proto.ResponseCodeEnum.OK);return this._logger&&this._logger.info(`Transaction Error Info: ${s.toString()}, ${this.transactionId.toString()}`),new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null})}_mapResponse(e,t,o){var s=this;return ct(function*(){const l=yield k2(o.signedTransactionBytes),u=s._getTransactionId();return s._transactionIds.advance(),s._logger&&s._logger.info(`Transaction Info: ${JSON.stringify(new Up({nodeId:t,transactionHash:l,transactionId:u}).toJSON())}`),new Up({nodeId:t,transactionHash:l,transactionId:u})})()}_makeSignedTransaction(e){const t=this._makeTransactionBody(e);return this._logger&&this._logger.info(`Transaction Body: ${JSON.stringify(t)}`),{bodyBytes:ln.proto.TransactionBody.encode(t).finish(),sigMap:{sigPair:[]}}}_makeTransactionBody(e){return{[this._getTransactionDataCase()]:this._makeTransactionData(),transactionFee:null!=this._maxTransactionFee?this._maxTransactionFee.toTinybars():null,memo:this._transactionMemo,transactionID:this._transactionIds.current._toProtobuf(),nodeAccountID:null!=e?e._toProtobuf():null,transactionValidDuration:{seconds:mt.fromNumber(this._transactionValidDuration)}}}_getTransactionDataCase(){throw new Error("not implemented")}_getScheduledTransactionBody(){return{memo:this.transactionMemo,transactionFee:null==this._maxTransactionFee?this._defaultMaxTransactionFee.toTinybars():this._maxTransactionFee.toTinybars(),[this._getTransactionDataCase()]:this._makeTransactionData()}}_makeTransactionData(){throw new Error("not implemented")}_isFrozen(){return this._signOnDemand||this._signedTransactions.length>0||this._transactions.length>0}_requireNotFrozen(){if(this._isFrozen())throw new Error("transaction is immutable; it has at least one signature or has been explicitly frozen")}_requireNotSignOnDemand(){if(this._signOnDemand)throw new Error("Please use `toBytesAsync()` if `signOnDemand` is enabled")}_requireFrozen(){if(!this._isFrozen())throw new Error("transaction must have been frozen before calculating the hash will be stable, try calling `freeze`")}_requireOneNodeAccountId(){if(1!=this._nodeAccountIds.length)throw"transaction did not have exactly one node ID set"}_requestToBytes(e){return ln.proto.Transaction.encode(e).finish()}_responseToBytes(e){return ln.proto.TransactionResponse.encode(e).finish()}}const M2=[];class li{constructor(e,t){this.tokenId=e,this.serial="number"==typeof t?mt.fromNumber(t):t,Object.freeze(this)}static fromString(e){const t=e.split("/").length>1?e.split("/"):e.split("@");for(const l of t)if(""===l)throw new Error("invalid format for NftId: use [token]/[serial] or [token]@[serial]");const o=tn.fromString(t[0]),s=mt.fromString(t[1]);return new li(o,s)}static _fromProtobuf(e){return new li(tn._fromProtobuf(e.tokenID),null!=e.serialNumber?e.serialNumber:mt.ZERO)}static fromBytes(e){return li._fromProtobuf(ln.proto.NftID.decode(e))}_toProtobuf(){return{tokenID:this.tokenId._toProtobuf(),serialNumber:mt.fromValue(void 0!==this.serial?this.serial:0)}}toString(){return`${this.tokenId.toString()}/${this.serial.toString()}`}toBytes(){return ln.proto.NftID.encode(this._toProtobuf()).finish()}}class ad{constructor(e){this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.amount=e.amount,Object.freeze(this)}static _fromProtobuf(e){return new ad({spenderAccountId:Ue._fromProtobuf(e.spender),ownerAccountId:null!=e.owner?Ue._fromProtobuf(e.owner):null,amount:mn.fromTinybars(null!=e.amount?e.amount:0)})}static _fromGrantedProtobuf(e,t){return new ad({spenderAccountId:Ue._fromProtobuf(e.spender),ownerAccountId:t,amount:mn.fromTinybars(null!=e.amount?e.amount:0)})}_toProtobuf(){return{owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,amount:null!=this.amount?this.amount.toTinybars():null}}_validateChecksums(e){null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}toJSON(){return{ownerAccountId:null!=this.ownerAccountId?this.ownerAccountId.toString():null,spenderAccountId:null!=this.spenderAccountId?this.spenderAccountId.toString():null,amount:null!=this.amount?this.amount.toString():null}}}class cd{constructor(e){this.tokenId=e.tokenId,this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.amount=e.amount,Object.freeze(this)}static _fromProtobuf(e){return new cd({tokenId:tn._fromProtobuf(e.tokenId),spenderAccountId:Ue._fromProtobuf(e.spender),ownerAccountId:null!=e.owner?Ue._fromProtobuf(e.owner):null,amount:null!=e.amount?mt.fromValue(e.amount):null})}static _fromGrantedProtobuf(e,t){return new cd({tokenId:tn._fromProtobuf(e.tokenId),spenderAccountId:Ue._fromProtobuf(e.spender),ownerAccountId:t,amount:null!=e.amount?mt.fromValue(e.amount):null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,amount:this.amount}}_validateChecksums(e){this.tokenId.validateChecksum(e),null!=this.ownerAccountId&&this.ownerAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}}class Wa{constructor(e){this.tokenId=e.tokenId,this.spenderAccountId=e.spenderAccountId,this.ownerAccountId=e.ownerAccountId,this.serialNumbers=e.serialNumbers,this.allSerials=e.allSerials,this.delegatingSpender=e.delegatingSpender,Object.freeze(this)}static _fromProtobuf(e){const t=null!=e.approvedForAll&&1==e.approvedForAll.value;return new Wa({tokenId:tn._fromProtobuf(e.tokenId),spenderAccountId:null!=e.spender?Ue._fromProtobuf(e.spender):null,ownerAccountId:null!=e.owner?Ue._fromProtobuf(e.owner):null,serialNumbers:t?null:null!=e.serialNumbers?e.serialNumbers.map(o=>mt.fromValue(o)):[],allSerials:t,delegatingSpender:null!=e.delegatingSpender?Ue._fromProtobuf(e.delegatingSpender):null})}static _fromGrantedProtobuf(e,t){return new Wa({tokenId:tn._fromProtobuf(e.tokenId),spenderAccountId:Ue._fromProtobuf(e.spender),ownerAccountId:t,serialNumbers:[],allSerials:null,delegatingSpender:null})}static _fromRemoveProtobuf(e){return new Wa({tokenId:tn._fromProtobuf(e.tokenId),spenderAccountId:null,ownerAccountId:null!=e.owner?Ue._fromProtobuf(e.owner):null,serialNumbers:null!=e.serialNumbers?e.serialNumbers.map(t=>mt.fromValue(t)):[],allSerials:null,delegatingSpender:null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),spender:null!=this.spenderAccountId?this.spenderAccountId._toProtobuf():null,owner:null!=this.ownerAccountId?this.ownerAccountId._toProtobuf():null,approvedForAll:null==this.serialNumbers?{value:this.allSerials}:null,serialNumbers:this.serialNumbers,delegatingSpender:null!=this.delegatingSpender?this.delegatingSpender._toProtobuf():null}}_validateChecksums(e){this.tokenId.validateChecksum(e),null!=this.ownerAccountId&&this.ownerAccountId.validateChecksum(e),null!=this.spenderAccountId&&this.spenderAccountId.validateChecksum(e)}}class Gp extends $t{constructor(e={}){super(),this._hbarApprovals=null!=e.hbarApprovals?e.hbarApprovals:[],this._tokenApprovals=null!=e.tokenApprovals?e.tokenApprovals:[],this._nftApprovals=null!=e.nftApprovals?e.nftApprovals:[]}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoApproveAllowance;return $t._fromProtobufTransactions(new Gp({hbarApprovals:(null!=p.cryptoAllowances?p.cryptoAllowances:[]).map(w=>ad._fromProtobuf(w)),tokenApprovals:(null!=p.tokenAllowances?p.tokenAllowances:[]).map(w=>cd._fromProtobuf(w)),nftApprovals:(null!=p.nftAllowances?p.nftAllowances:[]).map(w=>Wa._fromProtobuf(w))}),e,t,o,s,l)}get hbarApprovals(){return this._hbarApprovals}approveHbarAllowance(e,t,o){return this._requireNotFrozen(),this._hbarApprovals.push(new ad({spenderAccountId:"string"==typeof t?Ue.fromString(t):t instanceof Kn?Ue.fromEvmAddress(0,0,t.toSolidityAddress()):t,ownerAccountId:"string"==typeof e?Ue.fromString(e):e instanceof Kn?Ue.fromEvmAddress(0,0,e.toSolidityAddress()):e,amount:o instanceof mn?o:new mn(o)})),this}addHbarAllowance(e,t){return this._requireNotFrozen(),this._hbarApprovals.push(new ad({spenderAccountId:"string"==typeof e?Ue.fromString(e):e,amount:t instanceof mn?t:new mn(t),ownerAccountId:null})),this}get tokenApprovals(){return this._tokenApprovals}approveTokenAllowance(e,t,o,s){return this._requireNotFrozen(),this._tokenApprovals.push(new cd({tokenId:"string"==typeof e?tn.fromString(e):e,spenderAccountId:"string"==typeof o?Ue.fromString(o):o instanceof Kn?Ue.fromEvmAddress(0,0,o.toSolidityAddress()):o,ownerAccountId:"string"==typeof t?Ue.fromString(t):t instanceof Kn?Ue.fromEvmAddress(0,0,t.toSolidityAddress()):t,amount:"number"==typeof s?mt.fromNumber(s):s})),this}addTokenAllowance(e,t,o){return this._requireNotFrozen(),this._tokenApprovals.push(new cd({tokenId:"string"==typeof e?tn.fromString(e):e,spenderAccountId:"string"==typeof t?Ue.fromString(t):t,amount:"number"==typeof o?mt.fromNumber(o):o,ownerAccountId:null})),this}addTokenNftAllowance(e,t){return this._approveTokenNftAllowance(e,null,t,null)}get tokenNftApprovals(){return this._nftApprovals}_approveTokenNftAllowance(e,t,o,s){this._requireNotFrozen();const l="string"==typeof e?li.fromString(e):e,u="string"==typeof o?Ue.fromString(o):o instanceof Kn?Ue.fromEvmAddress(0,0,o.toSolidityAddress()):o;let p=!1;for(const w of this._nftApprovals)if(0===w.tokenId.compare(l.tokenId)&&null!=w.spenderAccountId&&0===w.spenderAccountId.compare(u)){null!=w.serialNumbers&&w.serialNumbers.push(l.serial),p=!0;break}return p||this._nftApprovals.push(new Wa({tokenId:l.tokenId,spenderAccountId:u,ownerAccountId:"string"==typeof t?Ue.fromString(t):t instanceof Kn?Ue.fromEvmAddress(0,0,t.toSolidityAddress()):t,serialNumbers:[l.serial],allSerials:!1,delegatingSpender:"string"==typeof s?Ue.fromString(s):s})),this}approveTokenNftAllowance(e,t,o){return this._approveTokenNftAllowance(e,t,o,null)}approveTokenNftAllowanceWithDelegatingSpender(e,t,o,s){return this._approveTokenNftAllowance(e,t,o,s)}_approveAllTokenNftAllowance(e,t,o,s){return this._requireNotFrozen(),this._nftApprovals.push(new Wa({tokenId:"string"==typeof e?tn.fromString(e):e,spenderAccountId:"string"==typeof o?Ue.fromString(o):o instanceof Kn?Ue.fromEvmAddress(0,0,o.toSolidityAddress()):o,ownerAccountId:"string"==typeof t?Ue.fromString(t):t instanceof Kn?Ue.fromEvmAddress(0,0,t.toSolidityAddress()):t,serialNumbers:null,allSerials:s,delegatingSpender:null})),this}addAllTokenNftAllowance(e,t,o){return this._approveAllTokenNftAllowance(e,t,o,!0)}approveTokenNftAllowanceAllSerials(e,t,o){return this._approveAllTokenNftAllowance(e,t,o,!0)}deleteTokenNftAllowanceAllSerials(e,t,o){return this._approveAllTokenNftAllowance(e,t,o,!1)}_validateChecksums(e){this._hbarApprovals.map(t=>t._validateChecksums(e)),this._tokenApprovals.map(t=>t._validateChecksums(e)),this._nftApprovals.map(t=>t._validateChecksums(e))}_execute(e,t){return e.crypto.approveAllowances(t)}_getTransactionDataCase(){return"cryptoApproveAllowance"}_makeTransactionData(){return{cryptoAllowances:this._hbarApprovals.map(e=>e._toProtobuf()),tokenAllowances:this._tokenApprovals.map(e=>e._toProtobuf()),nftAllowances:this._nftApprovals.map(e=>e._toProtobuf())}}_getLogId(){return`AccountAllowanceApproveTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoApproveAllowance",Gp._fromProtobuf);class Vp extends $t{constructor(e={}){super(),this._nftAllowances=null!=e.nftAllowances?e.nftAllowances:[]}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoDeleteAllowance;return $t._fromProtobufTransactions(new Vp({nftAllowances:(null!=p.nftAllowances?p.nftAllowances:[]).map(w=>Wa._fromProtobuf(w))}),e,t,o,s,l)}get tokenNftAllowanceDeletions(){return this._nftAllowances}deleteAllTokenNftAllowances(e,t){this._requireNotFrozen();const o="string"==typeof e?li.fromString(e):e,s="string"==typeof t?Ue.fromString(t):t;let l=!1;for(const u of this._nftAllowances)if(0===u.tokenId.compare(o.tokenId)){null!=u.serialNumbers&&u.serialNumbers.push(o.serial),l=!0;break}return l||this._nftAllowances.push(new Wa({tokenId:o.tokenId,spenderAccountId:null,serialNumbers:[o.serial],ownerAccountId:s,allSerials:!1,delegatingSpender:null})),this}_validateChecksums(e){this._nftAllowances.map(t=>t._validateChecksums(e))}_execute(e,t){return e.crypto.deleteAllowances(t)}_getTransactionDataCase(){return"cryptoDeleteAllowance"}_makeTransactionData(){return{nftAllowances:this._nftAllowances.map(e=>e._toProtobuf())}}_getLogId(){return`AccountAllowanceDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoDeleteAllowance",Vp._fromProtobuf);class q$ extends $s{constructor(){super(e=>tn.fromString(e))}}class J$ extends $s{constructor(){super(e=>tn.fromString(e))}}class Hp{constructor(e){this.hbars=e.hbars,this.tokens=e.tokens,this.tokenDecimals=e.tokenDecimals,Object.freeze(this)}static fromBytes(e){return Hp._fromProtobuf(ln.proto.CryptoGetAccountBalanceResponse.decode(e))}static _fromProtobuf(e){const t=new q$,o=new J$;if(null!=e.tokenBalances)for(const s of e.tokenBalances){const l=tn._fromProtobuf(s.tokenId);o._set(l,null!=s.decimals?s.decimals:0),t._set(l,mt.fromValue(s.balance))}return new Hp({hbars:mn.fromTinybars(e.balance),tokens:t,tokenDecimals:o})}_toProtobuf(){const e=[];for(const[t,o]of null!=this.tokens?this.tokens:[])e.push({tokenId:t._toProtobuf(),balance:o,decimals:null!=this.tokenDecimals?this.tokenDecimals.get(t):null});return{balance:this.hbars.toTinybars(),tokenBalances:e}}toBytes(){return ln.proto.CryptoGetAccountBalanceResponse.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){const e=[];for(const[t,o]of null!=this.tokens?this.tokens:[]){const s=null!=this.tokenDecimals?this.tokenDecimals.get(t):null;e.push({tokenId:t.toString(),balance:o.toString(),decimals:s??0})}return{hbars:this.hbars.toString(),tokens:e}}}class ld extends ei{constructor(e={}){super(),this._accountId=null,this._contractId=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e){const t=e.cryptogetAccountBalance;return new ld({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0,contractId:null!=t.contractID?Kn._fromProtobuf(t.contractID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Kn.fromString(e):e.clone(),this}_isPaymentRequired(){return!1}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._contractId&&this._contractId.validateChecksum(e)}_execute(e,t){return e.crypto.cryptoGetBalance(t)}_mapResponseHeader(e){return e.cryptogetAccountBalance.header}_mapResponse(e,t,o){return Promise.resolve(Hp._fromProtobuf(e.cryptogetAccountBalance))}_onMakeRequest(e){return{cryptogetAccountBalance:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`AccountBalanceQuery:${this._timestamp.toString()}`}}Xo.set("cryptogetAccountBalance",ld._fromProtobuf);class Hr{constructor(e){this.seconds=e instanceof mt?e:mt.fromNumber(e),Object.freeze(this)}_toProtobuf(){return{seconds:this.seconds}}static _fromProtobuf(e){return new Hr(e.seconds)}}class N2 extends $t{constructor(e={}){super(),this._key=null,this._initialBalance=null,this._sendRecordThreshold=kD,this._receiveRecordThreshold=kD,this._receiverSignatureRequired=!1,this._proxyAccountId=null,this._autoRenewPeriod=new Hr(d3),this._accountMemo=null,this._maxAutomaticTokenAssociations=null,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=!1,this._alias=null,null!=e.key&&this.setKey(e.key),null!=e.receiverSignatureRequired&&this.setReceiverSignatureRequired(e.receiverSignatureRequired),null!=e.initialBalance&&this.setInitialBalance(e.initialBalance),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.accountMemo&&this.setAccountMemo(e.accountMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward),null!=e.alias&&this.setAlias(e.alias)}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoCreateAccount;let w;return null!=p.alias&&p.alias.length>0&&20===p.alias.length&&(w=Ws.fromBytes(p.alias)),$t._fromProtobufTransactions(new N2({key:null!=p.key?qn._fromProtobufKey(p.key):void 0,initialBalance:null!=p.initialBalance?p.initialBalance:void 0,receiverSignatureRequired:null!=p.receiverSigRequired?p.receiverSigRequired:void 0,proxyAccountId:null!=p.proxyAccountID?Ue._fromProtobuf(p.proxyAccountID):void 0,autoRenewPeriod:null!=p.autoRenewPeriod&&null!=p.autoRenewPeriod.seconds?p.autoRenewPeriod.seconds:void 0,accountMemo:null!=p.memo?p.memo:void 0,maxAutomaticTokenAssociations:null!=p.maxAutomaticTokenAssociations?p.maxAutomaticTokenAssociations:void 0,stakedAccountId:null!=p.stakedAccountId?Ue._fromProtobuf(p.stakedAccountId):void 0,stakedNodeId:null!=p.stakedNodeId?p.stakedNodeId:void 0,declineStakingReward:1==p.declineReward,alias:w}),e,t,o,s,l)}get key(){return this._key}setKey(e){return this._requireNotFrozen(),this._key=e,this}get initialBalance(){return this._initialBalance}setInitialBalance(e){return this._requireNotFrozen(),this._initialBalance=e instanceof mn?e:new mn(e),this}get receiverSignatureRequired(){return this._receiverSignatureRequired}setReceiverSignatureRequired(e){return this._requireNotFrozen(),this._receiverSignatureRequired=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId=e,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}get accountMemo(){return this._accountMemo}setAccountMemo(e){return this._requireNotFrozen(),this._accountMemo=e,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations="number"==typeof e?mt.fromNumber(e):e,this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Ue.fromString(e):e,this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=mt.fromValue(e),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}get alias(){return this._alias}setAlias(e){if("string"==typeof e){if(!(e.startsWith("0x")&&42==e.length||40==e.length))throw new Error('evmAddress must be a valid EVM address with or without "0x" prefix');this._alias=Ws.fromString(e)}else this._alias=e;return this}_validateChecksums(e){null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.createAccount(t)}_getTransactionDataCase(){return"cryptoCreateAccount"}_makeTransactionData(){let e=null;return null!=this._alias&&(e=this._alias.toBytes()),{key:null!=this._key?this._key._toProtobufKey():null,initialBalance:null!=this._initialBalance?this._initialBalance.toTinybars():null,autoRenewPeriod:this._autoRenewPeriod._toProtobuf(),proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,receiveRecordThreshold:this._receiveRecordThreshold.toTinybars(),sendRecordThreshold:this._sendRecordThreshold.toTinybars(),receiverSigRequired:this._receiverSignatureRequired,memo:this._accountMemo,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?this._maxAutomaticTokenAssociations.toInt():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:this.declineStakingRewards,alias:e}}_getLogId(){return`AccountCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoCreateAccount",N2._fromProtobuf);class O2 extends $t{constructor(e={}){super(),this._accountId=null,this._transferAccountId=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.transferAccountId&&this.setTransferAccountId(e.transferAccountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoDelete;return $t._fromProtobufTransactions(new O2({accountId:null!=p.deleteAccountID?Ue._fromProtobuf(p.deleteAccountID):void 0,transferAccountId:null!=p.transferAccountID?Ue._fromProtobuf(p.transferAccountID):void 0}),e,t,o,s,l)}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get transferAccountId(){return this._transferAccountId}setTransferAccountId(e){return this._requireNotFrozen(),this._transferAccountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._transferAccountId&&this._transferAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.cryptoDelete(t)}_getTransactionDataCase(){return"cryptoDelete"}_makeTransactionData(){return{deleteAccountID:null!=this._accountId?this._accountId._toProtobuf():null,transferAccountID:null!=this._transferAccountId?this._transferAccountId._toProtobuf():null}}_getLogId(){return`AccountDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoDelete",O2._fromProtobuf);class f3{constructor(e){this.declineStakingReward=e.declineStakingReward,this.stakePeriodStart=e.stakePeriodStart,this.pendingReward=e.pendingReward,this.stakedToMe=e.stakedToMe,this.stakedAccountId=e.stakedAccountId,this.stakedNodeId=e.stakedNodeId,Object.freeze(this)}static _fromProtobuf(e){return new f3({declineStakingReward:1==e.declineReward,stakePeriodStart:null!=e.stakePeriodStart?Jn._fromProtobuf(e.stakePeriodStart):null,pendingReward:null!=e.pendingReward?mn.fromTinybars(e.pendingReward):null,stakedToMe:null!=e.stakedToMe?mn.fromTinybars(e.stakedToMe):null,stakedAccountId:null!=e.stakedAccountId?Ue._fromProtobuf(e.stakedAccountId):null,stakedNodeId:null!=e.stakedNodeId?e.stakedNodeId:null})}_toProtobuf(){return{declineReward:this.declineStakingReward,stakePeriodStart:null!=this.stakePeriodStart?this.stakePeriodStart._toProtobuf():null,pendingReward:null!=this.pendingReward?this.pendingReward.toTinybars():null,stakedToMe:null!=this.stakedToMe?this.stakedToMe.toTinybars():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId}}static fromBytes(e){return f3._fromProtobuf(ln.proto.StakingInfo.decode(e))}toBytes(){return ln.proto.StakingInfo.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{declineStakingReward:this.declineStakingReward,stakePeriodStart:null!=this.stakePeriodStart?this.stakePeriodStart.toString():null,pendingReward:null!=this.pendingReward?this.pendingReward.toString():null,stakedToMe:null!=this.stakedToMe?this.stakedToMe.toString():null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId.toString():null,stakedNodeId:null!=this.stakedNodeId?this.stakedNodeId.toString():null}}}class Qp{constructor(e){this.accountId=e.accountId,this.hash=e.hash,this.keys=e.keys,this.duration=e.duration,Object.freeze(this)}static _fromProtobuf(e){const t=e;return new Qp({accountId:Ue._fromProtobuf(t.accountId),hash:null!=t.hash?t.hash:new Uint8Array,keys:null!=t.keys?Vo.__fromProtobufKeyList(t.keys):new Vo,duration:Hr._fromProtobuf(t.duration)})}_toProtobuf(){return{accountId:this.accountId._toProtobuf(),hash:this.hash,keys:this.keys._toProtobufKey().keyList,duration:this.duration._toProtobuf()}}}class P2{constructor(e){this.tokenId=e.tokenId,this.symbol=e.symbol,this.balance=e.balance,this.isKycGranted=e.isKycGranted,this.isFrozen=e.isFrozen,this.automaticAssociation=e.automaticAssociation,Object.freeze(this)}static _fromProtobuf(e){const t=tn._fromProtobuf(e.tokenId),o=null==e.kycStatus||0===e.kycStatus?null:1===e.kycStatus,s=null==e.freezeStatus||0===e.freezeStatus?null:1===e.freezeStatus;return new P2({tokenId:t,symbol:e.symbol,balance:null!=e.balance?e.balance instanceof mt?e.balance:mt.fromValue(e.balance):mt.ZERO,isKycGranted:o,isFrozen:s,automaticAssociation:null!=e.automaticAssociation?e.automaticAssociation:null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),symbol:this.symbol,balance:this.balance,kycStatus:null==this.isKycGranted?0:this.isKycGranted?1:2,freezeStatus:null==this.isFrozen?0:this.isFrozen?1:2,automaticAssociation:this.automaticAssociation}}}class zp extends $s{constructor(){super(e=>tn.fromString(e))}static _fromProtobuf(e){const t=new zp;for(const o of e){const s=tn._fromProtobuf(o.tokenId);t._set(s,P2._fromProtobuf(o))}return t}_toProtobuf(){const e=[];for(const[t,o]of this)e.push(o._toProtobuf());return e}}class no{constructor(e){this._ledgerId=e,Object.freeze(this)}static fromString(e){switch(e){case Ds[0]:case"0":return no.MAINNET;case Ds[1]:case"1":return no.TESTNET;case Ds[2]:case"2":return no.PREVIEWNET;case Ds[3]:case"3":return no.LOCAL_NODE;default:{let t=Mn(e);if(0==t.length&&0!=e.length)throw new Error("Default reached for fromString");return new no(t)}}}toString(){if(1!=this._ledgerId.length)return cn(this._ledgerId);switch(this._ledgerId[0]){case 0:return Ds[0];case 1:return Ds[1];case 2:return Ds[2];case 3:return Ds[3];default:return cn(this._ledgerId)}}static fromBytes(e){return new no(e)}toBytes(){return this._ledgerId}isMainnet(){return this.toString()==Ds[0]}isTestnet(){return this.toString()==Ds[1]}isPreviewnet(){return this.toString()==Ds[2]}isLocalNode(){return this.toString()==Ds[3]}}const Ds=["mainnet","testnet","previewnet","local-node"];no.MAINNET=new no(new Uint8Array([0])),no.TESTNET=new no(new Uint8Array([1])),no.PREVIEWNET=new no(new Uint8Array([2])),no.LOCAL_NODE=new no(new Uint8Array([3]));class Kp{constructor(e){this.accountId=e.accountId,this.contractAccountId=e.contractAccountId,this.isDeleted=e.isDeleted,this.proxyAccountId=e.proxyAccountId,this.proxyReceived=e.proxyReceived,this.key=e.key,this.balance=e.balance,this.sendRecordThreshold=e.sendRecordThreshold,this.receiveRecordThreshold=e.receiveRecordThreshold,this.isReceiverSignatureRequired=e.isReceiverSignatureRequired,this.expirationTime=e.expirationTime,this.autoRenewPeriod=e.autoRenewPeriod,this.liveHashes=e.liveHashes,this.tokenRelationships=e.tokenRelationships,this.accountMemo=e.accountMemo,this.ownedNfts=e.ownedNfts,this.maxAutomaticTokenAssociations=e.maxAutomaticTokenAssociations,this.aliasKey=e.aliasKey,this.ledgerId=e.ledgerId,this.hbarAllowances=e.hbarAllowances,this.tokenAllowances=e.tokenAllowances,this.nftAllowances=e.nftAllowances,this.ethereumNonce=e.ethereumNonce,this.stakingInfo=e.stakingInfo,Object.freeze(this)}static _fromProtobuf(e){let t=null!=e.alias&&e.alias.length>0?qn._fromProtobufKey(ln.proto.Key.decode(e.alias)):null;t instanceof _o||(t=null);const o=Ue._fromProtobuf(e.accountID);return new Kp({accountId:o,contractAccountId:null!=e.contractAccountID?e.contractAccountID:null,isDeleted:null!=e.deleted&&e.deleted,key:qn._fromProtobufKey(e.key),balance:mn.fromTinybars(null!=e.balance?e.balance:0),sendRecordThreshold:mn.fromTinybars(null!=e.generateSendRecordThreshold?e.generateSendRecordThreshold:0),receiveRecordThreshold:mn.fromTinybars(null!=e.generateReceiveRecordThreshold?e.generateReceiveRecordThreshold:0),isReceiverSignatureRequired:null!=e.receiverSigRequired&&e.receiverSigRequired,expirationTime:Jn._fromProtobuf(e.expirationTime),autoRenewPeriod:new Hr(null!=e.autoRenewPeriod?e.autoRenewPeriod.seconds:0),proxyAccountId:null!=e.proxyAccountID&&0!==mt.fromValue(e.proxyAccountID.shardNum).toInt()&&0!==mt.fromValue(e.proxyAccountID.realmNum).toInt()&&0!==mt.fromValue(e.proxyAccountID.accountNum).toInt()?Ue._fromProtobuf(e.proxyAccountID):null,proxyReceived:mn.fromTinybars(null!=e.proxyReceived?e.proxyReceived:0),liveHashes:(null!=e.liveHashes?e.liveHashes:[]).map(s=>Qp._fromProtobuf(s)),tokenRelationships:zp._fromProtobuf(null!=e.tokenRelationships?e.tokenRelationships:[]),accountMemo:null!=e.memo?e.memo:"",ownedNfts:e.ownedNfts?e.ownedNfts:mt.ZERO,maxAutomaticTokenAssociations:e.maxAutomaticTokenAssociations?mt.fromNumber(e.maxAutomaticTokenAssociations):mt.ZERO,aliasKey:t,ledgerId:null!=e.ledgerId?no.fromBytes(e.ledgerId):null,hbarAllowances:[],tokenAllowances:[],nftAllowances:[],ethereumNonce:null!=e.ethereumNonce?e.ethereumNonce:null,stakingInfo:null!=e.stakingInfo?f3._fromProtobuf(e.stakingInfo):null})}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),contractAccountID:this.contractAccountId,deleted:this.isDeleted,proxyAccountID:null!=this.proxyAccountId?this.proxyAccountId._toProtobuf():null,proxyReceived:this.proxyReceived.toTinybars(),key:this.key._toProtobufKey(),balance:this.balance.toTinybars(),generateSendRecordThreshold:this.sendRecordThreshold.toTinybars(),generateReceiveRecordThreshold:this.receiveRecordThreshold.toTinybars(),receiverSigRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime._toProtobuf(),autoRenewPeriod:this.autoRenewPeriod._toProtobuf(),liveHashes:this.liveHashes.map(e=>e._toProtobuf()),tokenRelationships:null!=this.tokenRelationships?this.tokenRelationships._toProtobuf():null,memo:this.accountMemo,ownedNfts:this.ownedNfts,maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toInt(),alias:null!=this.aliasKey?ln.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null,ethereumNonce:this.ethereumNonce,stakingInfo:null!=this.stakingInfo?this.stakingInfo._toProtobuf():null}}static fromBytes(e){return Kp._fromProtobuf(ln.proto.CryptoGetInfoResponse.AccountInfo.decode(e))}toBytes(){return ln.proto.CryptoGetInfoResponse.AccountInfo.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{balance:this.balance.toString(),accountId:this.accountId.toString(),contractAccountId:this.contractAccountId,isDeleted:this.isDeleted,proxyAccountId:null!=this.proxyAccountId?this.proxyAccountId.toString():null,proxyReceived:this.proxyReceived.toString(),key:null!=this.key?this.key.toString():null,sendRecordThreshold:this.sendRecordThreshold.toString(),receiveRecordThreshold:this.receiveRecordThreshold.toString(),isReceiverSignatureRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime.toString(),autoRenewPeriod:this.autoRenewPeriod.toString(),accountMemo:this.accountMemo,ownedNfts:this.ownedNfts.toString(),maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toString(),aliasKey:null!=this.aliasKey?this.aliasKey.toString():null,ledgerId:null!=this.ledgerId?this.ledgerId.toString():null,ethereumNonce:null!=this.ethereumNonce?this.ethereumNonce.toString():null,stakingInfo:null!=this.stakingInfo?this.stakingInfo.toJSON():null}}}class h3 extends ei{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetInfo;return new h3({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getAccountInfo(t)}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_mapResponseHeader(e){return e.cryptoGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(Kp._fromProtobuf(e.cryptoGetInfo.accountInfo))}_onMakeRequest(e){return{cryptoGetInfo:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("cryptoGetInfo",h3._fromProtobuf);class p3 extends ei{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetAccountRecords;return new p3({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getAccountRecords(t)}_mapResponseHeader(e){return e.cryptoGetAccountRecords.header}_mapResponse(e,t,o){return Promise.resolve(e.cryptoGetAccountRecords.records.map(u=>Ya._fromProtobuf({transactionRecord:u})))}_onMakeRequest(e){return{cryptoGetAccountRecords:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountRecordsQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("cryptoGetAccountRecords",p3._fromProtobuf);class R2{constructor(e){this.accountId=e.accountId,this.amount=e.amount instanceof mn?e.amount:new mn(e.amount),Object.freeze(this)}static _fromProtobuf(e){return new R2({accountId:Ue._fromProtobuf(e.accountID),amount:mn.fromTinybars(null!=e.amount?e.amount:0)})}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),amount:this.amount.toTinybars()}}}class F2 extends ei{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e){const t=e.cryptoGetProxyStakers;return new F2({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getStakersByAccountID(t)}_mapResponseHeader(e){return e.cryptoGetProxyStakers.header}_mapResponse(e){const o=e.cryptoGetProxyStakers.stakers;return Promise.resolve((null!=o.proxyStaker?o.proxyStaker:[]).map(s=>R2._fromProtobuf(s)))}_onMakeRequest(e){return{cryptoGetProxyStakers:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`AccountStakersQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("cryptoGetProxyStakers",F2._fromProtobuf);class Yp extends $t{constructor(e={}){super(),this._accountId=null,this._key=null,this._receiverSignatureRequired=!1,this._proxyAccountId=null,this._autoRenewPeriod=null,this._expirationTime=null,this._accountMemo=null,this._maxAutomaticTokenAssociations=null,this._aliasKey=null,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=null,null!=e.accountId&&this.setAccountId(e.accountId),null!=e.key&&this.setKey(e.key),null!=e.receiverSignatureRequired&&this.setReceiverSignatureRequired(e.receiverSignatureRequired),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.accountMemo&&this.setAccountMemo(e.accountMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward)}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoUpdateAccount;return $t._fromProtobufTransactions(new Yp({accountId:null!=p.accountIDToUpdate?Ue._fromProtobuf(p.accountIDToUpdate):void 0,key:null!=p.key?qn._fromProtobufKey(p.key):void 0,receiverSignatureRequired:null!=p.receiverSigRequired?p.receiverSigRequired:void 0,proxyAccountId:null!=p.proxyAccountID?Ue._fromProtobuf(p.proxyAccountID):void 0,autoRenewPeriod:null!=p.autoRenewPeriod&&null!=p.autoRenewPeriod.seconds?p.autoRenewPeriod.seconds:void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0,accountMemo:null!=p.memo&&null!=p.memo.value?p.memo.value:void 0,maxAutomaticTokenAssociations:null!=p.maxAutomaticTokenAssociations&&null!=p.maxAutomaticTokenAssociations.value?mt.fromNumber(p.maxAutomaticTokenAssociations.value):void 0,stakedAccountId:null!=p.stakedAccountId?Ue._fromProtobuf(p.stakedAccountId):void 0,stakedNodeId:null!=p.stakedNodeId?p.stakedNodeId:void 0,declineStakingReward:null!=p.declineReward&&1==Boolean(p.declineReward)}),e,t,o,s,l)}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get key(){return this._key}setKey(e){return this._requireNotFrozen(),this._key=e,this}get receiverSignatureRequired(){return this._receiverSignatureRequired}setReceiverSignatureRequired(e){return this._requireNotFrozen(),this._receiverSignatureRequired=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId=e,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Date?Jn.fromDate(e):e,this}get accountMemo(){return this._accountMemo}setAccountMemo(e){return this._requireNotFrozen(),this._accountMemo=e,this}clearAccountMemo(){return this._requireNotFrozen(),this._accountMemo=null,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations="number"==typeof e?mt.fromNumber(e):e,this}get aliasKey(){return null}setAliasKey(e){return this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Ue.fromString(e):e,this}clearStakedAccountId(){return this._requireNotFrozen(),this._stakedAccountId=new Ue(0,0,0),this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=mt.fromValue(e),this}clearStakedNodeId(){return this._requireNotFrozen(),this._stakedNodeId=mt.fromNumber(-1),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e),null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.crypto.updateAccount(t)}_getTransactionDataCase(){return"cryptoUpdateAccount"}_makeTransactionData(){return{accountIDToUpdate:null!=this._accountId?this._accountId._toProtobuf():null,key:null!=this._key?this._key._toProtobufKey():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,receiverSigRequiredWrapper:null==this._receiverSignatureRequired?null:{value:this._receiverSignatureRequired},memo:null!=this._accountMemo?{value:this._accountMemo}:null,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?{value:this._maxAutomaticTokenAssociations.toInt()}:null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:null!=this.declineStakingRewards?{value:this.declineStakingRewards}:null}}_getLogId(){return`AccountUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoUpdateAccount",Yp._fromProtobuf);class BD{constructor(e={}){this._left=null,null!=e.left&&this.setLeft(e.left),this._right=null,null!=e.right&&this.setRight(e.right)}get left(){return this._left}setLeft(e){return this._left=e,this}get right(){return this._right}setRight(e){return this._right=e,this}toString(){return null!=this._left&&null!=this._right?`${this._left.toString()}.${this._right.toString()}`:""}}class L2{constructor(e={}){this._network=null,null!=e.network&&this.setNetwork(e.network),this._host=null,null!=e.host&&this.setHost(e.host)}get newtork(){return this._network}setNetwork(e){return this._network=e,this}get host(){return this._host}setHost(e){return this._host=e,this}static _fromProtobuf(e){return new L2({network:(new BD).setLeft(e[0]).setRight(e[1]),host:(new BD).setLeft(e[2]).setRight(e[3])})}_toProtobuf(){return Uint8Array.of(null!=this._network&&null!=this._network._left?this._network._left:0,null!=this._network&&null!=this._network.right?this._network.right:0,null!=this._host&&null!=this._host.left?this._host.left:0,null!=this._host&&null!=this._host.right?this._host.right:0)}toString(){return null!=this._network&&null!=this._host?`${this._network.toString()}.${this._host.toString()}`:""}}class U2{constructor(e={}){this._address=null,null!=e.address&&this.setAddress(e.address),this._port=null,null!=e.port&&this.setPort(e.port)}get address(){return this.address}setAddress(e){return this._address=e,this}get port(){return this._port}setPort(e){return this._port=e,this}static _fromProtobuf(e){return new U2({address:null!=e.ipAddressV4?L2._fromProtobuf(e.ipAddressV4):void 0,port:null!=e.port?e.port:void 0})}_toProtobuf(){return{ipAddressV4:null!=this._address?this._address._toProtobuf():null,port:this._port}}toString(){return`${null!=this._address?this._address.toString():""}:${null!=this._port?this._port.toString():""}`}toJSON(){return{address:null!=this._address?this._address.toString():null,port:null!=this._port?this._port.toString():null}}}class Wp{constructor(e={}){this._publicKey=null,null!=e.publicKey&&this.setPublicKey(e.publicKey),this._nodeId=null,null!=e.nodeId&&this.setNodeId(e.nodeId),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._certHash=null,null!=e.certHash&&this.setCertHash(e.certHash),this._addresses=[],null!=e.addresses&&this.setAddresses(e.addresses),this._description=null,null!=e.description&&this.setDescription(e.description),this._stake=null,null!=e.stake&&this.setStake(e.stake)}get publicKey(){return this._publicKey}setPublicKey(e){return this._publicKey=e,this}get nodeId(){return this._nodeId}setNodeId(e){return this._nodeId=e,this}get accountId(){return this._accountId}setAccountId(e){return this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get certHash(){return this._certHash}setCertHash(e){return this._certHash=e,this}get addresses(){return this._addresses}setAddresses(e){return this._addresses=e,this}get description(){return this._description}setDescription(e){return this._description=e,this}get stake(){return this._stake}setStake(e){return this._stake=e,this}static _fromProtobuf(e){return new Wp({publicKey:null!=e.RSA_PubKey?e.RSA_PubKey:void 0,nodeId:null!=e.nodeId?e.nodeId:void 0,accountId:null!=e.nodeAccountId?Ue._fromProtobuf(e.nodeAccountId):void 0,certHash:null!=e.nodeCertHash?e.nodeCertHash:void 0,addresses:null!=e.serviceEndpoint?e.serviceEndpoint.map(t=>U2._fromProtobuf(t)):void 0,description:null!=e.description?e.description:void 0,stake:null!=e.stake?e.stake:void 0})}_toProtobuf(){return{RSA_PubKey:this._publicKey,nodeId:this._nodeId,nodeAccountId:null!=this._accountId?this._accountId._toProtobuf():null,nodeCertHash:this._certHash,serviceEndpoint:this._addresses.map(e=>e._toProtobuf()),description:this._description,stake:this._stake}}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{publicKey:this._publicKey,nodeId:null!=this._nodeId?this._nodeId.toString():null,accountId:null!=this._accountId?this._accountId.toString():null,certHash:null!=this._certHash?A2(this._certHash):null,addresses:this._addresses.map(e=>e.toJSON()),description:this._description,stake:null!=this._stake?this._stake.toString():null}}}class Bl{constructor(e={}){this._nodeAddresses=[],null!=e.nodeAddresses&&this.setNodeAddresses(e.nodeAddresses)}get nodeAddresses(){return this._nodeAddresses}setNodeAddresses(e){return this._nodeAddresses=e,this}static fromBytes(e){return Bl._fromProtobuf(ln.proto.NodeAddressBook.decode(e))}static _fromProtobuf(e){return new Bl({nodeAddresses:null!=e.nodeAddress?e.nodeAddress.map(t=>Wp._fromProtobuf(t)):void 0})}_toProtobuf(){return{nodeAddress:this._nodeAddresses.map(e=>e._toProtobuf())}}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{nodeAddresses:this._nodeAddresses.map(e=>e.toJSON())}}toBytes(){return ln.proto.NodeAddressBook.encode(this._toProtobuf()).finish()}}class X$ extends ei{constructor(e={}){super(),this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId),this._limit=null,null!=e.limit&&this.setLimit(e.limit),this._retryHandler=t=>{if(null!=t){if(t instanceof Error)return!0;switch(t.code){case 13:return $k.test(t.details.toString());case 5:case 8:case 14:case 17:return!0;default:return!1}}return!1},this._addresses=[],this._attempt=0}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?mr.fromString(e):e.clone(),this}get limit(){return this._limit}setLimit(e){return this._limit=e,this}setMaxAttempts(e){return this._maxAttempts=e,this}setMaxBackoff(e){return this._maxBackoff=e,this}execute(e,t){return new Promise((o,s)=>{this._makeServerStreamRequest(e,o,s,t)})}_makeServerStreamRequest(e,t,o,s){const l=ln.com.hedera.mirror.api.proto.AddressBookQuery.encode({fileId:null!=this._fileId?this._fileId._toProtobuf():null,limit:this._limit}).finish();e._mirrorNetwork.getNextMirrorNode().getChannel().makeServerStreamRequest("NetworkService","getNodes",l,u=>{this._addresses.push(Wp._fromProtobuf(ln.proto.NodeAddress.decode(u))),null!=this._limit&&this._limit>0&&(this._limit=this._limit-1)},u=>{const p=u instanceof Error?u.message:u.details;if(this._attempt=this._maxAttempts&&console.warn(`Error getting nodes from mirror for file ${null!=this._fileId?this._fileId.toString():"UNKNOWN"} during attempt ${this._attempt}. Waiting ${w} ms before next attempt: ${p}`),this._logger&&this._logger.debug(`Error getting nodes from mirror for file ${null!=this._fileId?this._fileId.toString():"UNKNOWN"} during attempt ${this._attempt}. Waiting ${w} ms before next attempt: ${p}`),this._attempt+=1,setTimeout(()=>{this._makeServerStreamRequest(e,t,o,s)},w)}else o(new Error("failed to query address book"))},()=>{t(new Bl({nodeAddresses:this._addresses}))})}}Pr.setAddressBookQueryConstructor(()=>new X$);class j2 extends ei{constructor(e={}){super(),this._contractId=null,null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e){const t=e.contractGetBytecode;return new j2({contractId:null!=t.contractID?Kn._fromProtobuf(t.contractID):void 0})}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Kn.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e)}_execute(e,t){return e.smartContract.contractGetBytecode(t)}_mapResponseHeader(e){return e.contractGetBytecodeResponse.header}_mapResponse(e){const t=e.contractGetBytecodeResponse;return Promise.resolve(null!=t.bytecode?t.bytecode:new Uint8Array)}_onMakeRequest(e){return{contractGetBytecode:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`ContractByteCodeQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("contractGetBytecode",j2._fromProtobuf);const Kc="0123456789abcdef".split(""),eZ=[1,256,65536,16777216],Zs=[0,8,16,24],SD=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],G2=n=>{var e,t,o,s,l,u,p,w,S,V,J,he,xe,Ee,Le,ut,_t,it,gt,Jt,Qn,Ln,Er,Se,Fe,ze,ht,at,lt,yt,rt,Qe,Je,Ze,wt,nn,gn,Rn,fr,Hn,Xn,yr,ar,Do,oo,ti,Ao,Si,Bo,co,zr,Ja,Xa,ec,tc,nc,rc,oc,ic,sc,ac,cc,lc;for(o=0;o<48;o+=2)s=n[0]^n[10]^n[20]^n[30]^n[40],l=n[1]^n[11]^n[21]^n[31]^n[41],w=n[4]^n[14]^n[24]^n[34]^n[44],S=n[5]^n[15]^n[25]^n[35]^n[45],V=n[6]^n[16]^n[26]^n[36]^n[46],J=n[7]^n[17]^n[27]^n[37]^n[47],t=(xe=n[9]^n[19]^n[29]^n[39]^n[49])^((p=n[3]^n[13]^n[23]^n[33]^n[43])<<1|(u=n[2]^n[12]^n[22]^n[32]^n[42])>>>31),n[0]^=e=(he=n[8]^n[18]^n[28]^n[38]^n[48])^(u<<1|p>>>31),n[1]^=t,n[10]^=e,n[11]^=t,n[20]^=e,n[21]^=t,n[30]^=e,n[31]^=t,n[40]^=e,n[41]^=t,t=l^(S<<1|w>>>31),n[2]^=e=s^(w<<1|S>>>31),n[3]^=t,n[12]^=e,n[13]^=t,n[22]^=e,n[23]^=t,n[32]^=e,n[33]^=t,n[42]^=e,n[43]^=t,t=p^(J<<1|V>>>31),n[4]^=e=u^(V<<1|J>>>31),n[5]^=t,n[14]^=e,n[15]^=t,n[24]^=e,n[25]^=t,n[34]^=e,n[35]^=t,n[44]^=e,n[45]^=t,t=S^(xe<<1|he>>>31),n[6]^=e=w^(he<<1|xe>>>31),n[7]^=t,n[16]^=e,n[17]^=t,n[26]^=e,n[27]^=t,n[36]^=e,n[37]^=t,n[46]^=e,n[47]^=t,t=J^(l<<1|s>>>31),n[8]^=e=V^(s<<1|l>>>31),n[9]^=t,n[18]^=e,n[19]^=t,n[28]^=e,n[29]^=t,n[38]^=e,n[39]^=t,n[48]^=e,n[49]^=t,Le=n[1],ti=n[11]<<4|n[10]>>>28,Ao=n[10]<<4|n[11]>>>28,at=n[20]<<3|n[21]>>>29,lt=n[21]<<3|n[20]>>>29,sc=n[31]<<9|n[30]>>>23,ac=n[30]<<9|n[31]>>>23,yr=n[40]<<18|n[41]>>>14,ar=n[41]<<18|n[40]>>>14,Ze=n[2]<<1|n[3]>>>31,wt=n[3]<<1|n[2]>>>31,_t=n[12]<<12|n[13]>>>20,Si=n[22]<<10|n[23]>>>22,Bo=n[23]<<10|n[22]>>>22,yt=n[33]<<13|n[32]>>>19,rt=n[32]<<13|n[33]>>>19,cc=n[42]<<2|n[43]>>>30,lc=n[43]<<2|n[42]>>>30,ec=n[5]<<30|n[4]>>>2,tc=n[4]<<30|n[5]>>>2,nn=n[14]<<6|n[15]>>>26,gn=n[15]<<6|n[14]>>>26,gt=n[24]<<11|n[25]>>>21,co=n[34]<<15|n[35]>>>17,zr=n[35]<<15|n[34]>>>17,Qe=n[45]<<29|n[44]>>>3,Je=n[44]<<29|n[45]>>>3,Se=n[6]<<28|n[7]>>>4,Fe=n[7]<<28|n[6]>>>4,nc=n[17]<<23|n[16]>>>9,rc=n[16]<<23|n[17]>>>9,Rn=n[26]<<25|n[27]>>>7,fr=n[27]<<25|n[26]>>>7,Jt=n[36]<<21|n[37]>>>11,Qn=n[37]<<21|n[36]>>>11,Ja=n[47]<<24|n[46]>>>8,Xa=n[46]<<24|n[47]>>>8,Do=n[8]<<27|n[9]>>>5,oo=n[9]<<27|n[8]>>>5,ze=n[18]<<20|n[19]>>>12,ht=n[19]<<20|n[18]>>>12,oc=n[29]<<7|n[28]>>>25,ic=n[28]<<7|n[29]>>>25,Hn=n[38]<<8|n[39]>>>24,Xn=n[39]<<8|n[38]>>>24,Ln=n[48]<<14|n[49]>>>18,Er=n[49]<<14|n[48]>>>18,n[0]=(Ee=n[0])^~(ut=n[13]<<12|n[12]>>>20)&(it=n[25]<<11|n[24]>>>21),n[1]=Le^~_t>,n[10]=Se^~ze&at,n[11]=Fe^~ht<,n[20]=Ze^~nn&Rn,n[21]=wt^~gn&fr,n[30]=Do^~ti&Si,n[31]=oo^~Ao&Bo,n[40]=ec^~nc&oc,n[41]=tc^~rc&ic,n[2]=ut^~it&Jt,n[3]=_t^~gt&Qn,n[12]=ze^~at&yt,n[13]=ht^~lt&rt,n[22]=nn^~Rn&Hn,n[23]=gn^~fr&Xn,n[32]=ti^~Si&co,n[33]=Ao^~Bo&zr,n[42]=nc^~oc&sc,n[43]=rc^~ic&ac,n[4]=it^~Jt&Ln,n[5]=gt^~Qn&Er,n[14]=at^~yt&Qe,n[15]=lt^~rt&Je,n[24]=Rn^~Hn&yr,n[25]=fr^~Xn&ar,n[34]=Si^~co&Ja,n[35]=Bo^~zr&Xa,n[44]=oc^~sc&cc,n[45]=ic^~ac&lc,n[6]=Jt^~Ln&Ee,n[7]=Qn^~Er&Le,n[16]=yt^~Qe&Se,n[17]=rt^~Je&Fe,n[26]=Hn^~yr&Ze,n[27]=Xn^~ar&wt,n[36]=co^~Ja&Do,n[37]=zr^~Xa&oo,n[46]=sc^~cc&ec,n[47]=ac^~lc&tc,n[8]=Ln^~Ee&ut,n[9]=Er^~Le&_t,n[18]=Qe^~Se&ze,n[19]=Je^~Fe&ht,n[28]=yr^~Ze&nn,n[29]=ar^~wt&gn,n[38]=Ja^~Do&ti,n[39]=Xa^~oo&Ao,n[48]=cc^~ec&nc,n[49]=lc^~tc&rc,n[0]^=SD[o],n[1]^=SD[o+1]},ge={uint8:0,int8:1,uint16:2,int16:3,uint24:4,int24:5,uint32:6,int32:7,uint40:8,int40:9,uint48:10,int48:11,uint56:12,int56:13,uint64:14,int64:15,uint72:16,int72:17,uint80:18,int80:19,uint88:20,int88:21,uint96:22,int96:23,uint104:24,int104:25,uint112:26,int112:27,uint120:28,int120:29,uint128:30,int128:31,uint136:32,int136:33,uint144:34,int144:35,uint152:36,int152:37,uint160:38,int160:39,uint168:40,int168:41,uint176:42,int176:43,uint184:44,int184:45,uint192:46,int192:47,uint200:48,int200:49,uint208:50,int208:51,uint216:52,int216:53,uint224:54,int224:55,uint232:56,int232:57,uint240:58,int240:59,uint248:60,int248:61,uint256:62,int256:63,string:64,bool:65,bytes:66,bytes32:67,address:68,func:69};class oZ{constructor(e){this.name=null,this._params="",this._paramTypes=[],null!=e&&(this._name=e)}addString(){return this._addParam({ty:ge.string,array:!1})}addStringArray(){return this._addParam({ty:ge.string,array:!0})}addBytes(){return this._addParam({ty:ge.bytes,array:!1})}addBytes32(){return this._addParam({ty:ge.bytes32,array:!1})}addBytesArray(){return this._addParam({ty:ge.bytes,array:!0})}addBytes32Array(){return this._addParam({ty:ge.bytes32,array:!0})}addInt8(){return this._addParam({ty:ge.int8,array:!1})}addUint8(){return this._addParam({ty:ge.uint8,array:!1})}addInt16(){return this._addParam({ty:ge.int16,array:!1})}addUint16(){return this._addParam({ty:ge.uint16,array:!1})}addInt24(){return this._addParam({ty:ge.int24,array:!1})}addUint24(){return this._addParam({ty:ge.uint24,array:!1})}addInt32(){return this._addParam({ty:ge.int32,array:!1})}addUint32(){return this._addParam({ty:ge.uint32,array:!1})}addInt40(){return this._addParam({ty:ge.int40,array:!1})}addUint40(){return this._addParam({ty:ge.uint40,array:!1})}addInt48(){return this._addParam({ty:ge.int48,array:!1})}addUint48(){return this._addParam({ty:ge.uint48,array:!1})}addInt56(){return this._addParam({ty:ge.int56,array:!1})}addUint56(){return this._addParam({ty:ge.uint56,array:!1})}addInt64(){return this._addParam({ty:ge.int64,array:!1})}addUint64(){return this._addParam({ty:ge.uint64,array:!1})}addInt72(){return this._addParam({ty:ge.int72,array:!1})}addUint72(){return this._addParam({ty:ge.uint72,array:!1})}addInt80(){return this._addParam({ty:ge.int80,array:!1})}addUint80(){return this._addParam({ty:ge.uint80,array:!1})}addInt88(){return this._addParam({ty:ge.int88,array:!1})}addUint88(){return this._addParam({ty:ge.uint88,array:!1})}addInt96(){return this._addParam({ty:ge.int96,array:!1})}addUint96(){return this._addParam({ty:ge.uint96,array:!1})}addInt104(){return this._addParam({ty:ge.int104,array:!1})}addUint104(){return this._addParam({ty:ge.uint104,array:!1})}addInt112(){return this._addParam({ty:ge.int112,array:!1})}addUint112(){return this._addParam({ty:ge.uint112,array:!1})}addInt120(){return this._addParam({ty:ge.int120,array:!1})}addUint120(){return this._addParam({ty:ge.uint120,array:!1})}addInt128(){return this._addParam({ty:ge.int128,array:!1})}addUint128(){return this._addParam({ty:ge.uint128,array:!1})}addInt136(){return this._addParam({ty:ge.int136,array:!1})}addUint136(){return this._addParam({ty:ge.uint136,array:!1})}addInt144(){return this._addParam({ty:ge.int144,array:!1})}addUint144(){return this._addParam({ty:ge.uint144,array:!1})}addInt152(){return this._addParam({ty:ge.int152,array:!1})}addUint152(){return this._addParam({ty:ge.uint152,array:!1})}addInt160(){return this._addParam({ty:ge.int160,array:!1})}addUint160(){return this._addParam({ty:ge.uint160,array:!1})}addInt168(){return this._addParam({ty:ge.int168,array:!1})}addUint168(){return this._addParam({ty:ge.uint168,array:!1})}addInt176(){return this._addParam({ty:ge.int176,array:!1})}addUint176(){return this._addParam({ty:ge.uint176,array:!1})}addInt184(){return this._addParam({ty:ge.int184,array:!1})}addUint184(){return this._addParam({ty:ge.uint184,array:!1})}addInt192(){return this._addParam({ty:ge.int192,array:!1})}addUint192(){return this._addParam({ty:ge.uint192,array:!1})}addInt200(){return this._addParam({ty:ge.int200,array:!1})}addUint200(){return this._addParam({ty:ge.uint200,array:!1})}addInt208(){return this._addParam({ty:ge.int208,array:!1})}addUint208(){return this._addParam({ty:ge.uint208,array:!1})}addInt216(){return this._addParam({ty:ge.int216,array:!1})}addUint216(){return this._addParam({ty:ge.uint216,array:!1})}addInt224(){return this._addParam({ty:ge.int224,array:!1})}addUint224(){return this._addParam({ty:ge.uint224,array:!1})}addInt232(){return this._addParam({ty:ge.int232,array:!1})}addUint232(){return this._addParam({ty:ge.uint232,array:!1})}addInt240(){return this._addParam({ty:ge.int240,array:!1})}addUint240(){return this._addParam({ty:ge.uint240,array:!1})}addInt248(){return this._addParam({ty:ge.int248,array:!1})}addUint248(){return this._addParam({ty:ge.uint248,array:!1})}addInt256(){return this._addParam({ty:ge.int256,array:!1})}addUint256(){return this._addParam({ty:ge.uint256,array:!1})}addInt8Array(){return this._addParam({ty:ge.int8,array:!0})}addUint8Array(){return this._addParam({ty:ge.uint8,array:!0})}addInt16Array(){return this._addParam({ty:ge.int16,array:!0})}addUint16Array(){return this._addParam({ty:ge.uint16,array:!0})}addInt24Array(){return this._addParam({ty:ge.int24,array:!0})}addUint24Array(){return this._addParam({ty:ge.uint24,array:!0})}addInt32Array(){return this._addParam({ty:ge.int32,array:!0})}addUint32Array(){return this._addParam({ty:ge.uint32,array:!0})}addInt40Array(){return this._addParam({ty:ge.int40,array:!0})}addUint40Array(){return this._addParam({ty:ge.uint40,array:!0})}addInt48Array(){return this._addParam({ty:ge.int48,array:!0})}addUint48Array(){return this._addParam({ty:ge.uint48,array:!0})}addInt56Array(){return this._addParam({ty:ge.int56,array:!0})}addUint56Array(){return this._addParam({ty:ge.uint56,array:!0})}addInt64Array(){return this._addParam({ty:ge.int64,array:!0})}addUint64Array(){return this._addParam({ty:ge.uint64,array:!0})}addInt72Array(){return this._addParam({ty:ge.int72,array:!0})}addUint72Array(){return this._addParam({ty:ge.uint72,array:!0})}addInt80Array(){return this._addParam({ty:ge.int80,array:!0})}addUint80Array(){return this._addParam({ty:ge.uint80,array:!0})}addInt88Array(){return this._addParam({ty:ge.int88,array:!0})}addUint88Array(){return this._addParam({ty:ge.uint88,array:!0})}addInt96Array(){return this._addParam({ty:ge.int96,array:!0})}addUint96Array(){return this._addParam({ty:ge.uint96,array:!0})}addInt104Array(){return this._addParam({ty:ge.int104,array:!0})}addUint104Array(){return this._addParam({ty:ge.uint104,array:!0})}addInt112Array(){return this._addParam({ty:ge.int112,array:!0})}addUint112Array(){return this._addParam({ty:ge.uint112,array:!0})}addInt120Array(){return this._addParam({ty:ge.int120,array:!0})}addUint120Array(){return this._addParam({ty:ge.uint120,array:!0})}addInt128Array(){return this._addParam({ty:ge.int128,array:!0})}addUint128Array(){return this._addParam({ty:ge.uint128,array:!0})}addInt136Array(){return this._addParam({ty:ge.int136,array:!0})}addUint136Array(){return this._addParam({ty:ge.uint136,array:!0})}addInt144Array(){return this._addParam({ty:ge.int144,array:!0})}addUint144Array(){return this._addParam({ty:ge.uint144,array:!0})}addInt152Array(){return this._addParam({ty:ge.int152,array:!0})}addUint152Array(){return this._addParam({ty:ge.uint152,array:!0})}addInt160Array(){return this._addParam({ty:ge.int160,array:!0})}addUint160Array(){return this._addParam({ty:ge.uint160,array:!0})}addInt168Array(){return this._addParam({ty:ge.int168,array:!0})}addUint168Array(){return this._addParam({ty:ge.uint168,array:!0})}addInt176Array(){return this._addParam({ty:ge.int176,array:!0})}addUint176Array(){return this._addParam({ty:ge.uint176,array:!0})}addInt184Array(){return this._addParam({ty:ge.int184,array:!0})}addUint184Array(){return this._addParam({ty:ge.uint184,array:!0})}addInt192Array(){return this._addParam({ty:ge.int192,array:!0})}addUint192Array(){return this._addParam({ty:ge.uint192,array:!0})}addInt200Array(){return this._addParam({ty:ge.int200,array:!0})}addUint200Array(){return this._addParam({ty:ge.uint200,array:!0})}addInt208Array(){return this._addParam({ty:ge.int208,array:!0})}addUint208Array(){return this._addParam({ty:ge.uint208,array:!0})}addInt216Array(){return this._addParam({ty:ge.int216,array:!0})}addUint216Array(){return this._addParam({ty:ge.uint216,array:!0})}addInt224Array(){return this._addParam({ty:ge.int224,array:!0})}addUint224Array(){return this._addParam({ty:ge.uint224,array:!0})}addInt232Array(){return this._addParam({ty:ge.int232,array:!0})}addUint232Array(){return this._addParam({ty:ge.uint232,array:!0})}addInt240Array(){return this._addParam({ty:ge.int240,array:!0})}addUint240Array(){return this._addParam({ty:ge.uint240,array:!0})}addInt248Array(){return this._addParam({ty:ge.int248,array:!0})}addUint248Array(){return this._addParam({ty:ge.uint248,array:!0})}addInt256Array(){return this._addParam({ty:ge.int256,array:!0})}addUint256Array(){return this._addParam({ty:ge.uint256,array:!0})}addBool(){return this._addParam({ty:ge.bool,array:!1})}addAddress(){return this._addParam({ty:ge.address,array:!1})}addAddressArray(){return this._addParam({ty:ge.address,array:!0})}addFunction(){return this._addParam({ty:ge.func,array:!1})}_addParam(e){return this._paramTypes.length>0&&(this._params+=","),this._params+=MD(e),this._paramTypes.push(e),this}_build(e){if(null!=e)this._name=e;else if(null==this._name)throw new Error("`name` required for ContractFunctionSelector");return Mn((e=>{var t;if("0x"===e.slice(0,2)){t=[];for(var o=2,s=e.length;o{for(var S,V,t=e.length,o=n.blocks,s=n.blockCount<<2,l=n.blockCount,u=n.outputBlocks,p=n.s,w=0;w>2]|=e[w]<>2]|=V<>2]|=(192|V>>6)<>2]|=(128|63&V)<=57344?(o[S>>2]|=(224|V>>12)<>2]|=(128|V>>6&63)<>2]|=(128|63&V)<>2]|=(240|V>>18)<>2]|=(128|V>>12&63)<>2]|=(128|V>>6&63)<>2]|=(128|63&V)<=s){for(n.start=S-s,n.block=o[l],S=0;S>2]|=eZ[3&S],n.lastByteIndex===s)for(o[0]=o[l],S=1;S>4&15]+Kc[15&he]+Kc[he>>12&15]+Kc[he>>8&15]+Kc[he>>20&15]+Kc[he>>16&15]+Kc[he>>28&15]+Kc[he>>24&15];xe%l==0&&(G2(p),S=0)}return"0x"+J})((n=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:34,outputBlocks:8,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e})(),t)})(`0x${cn(ed(this.toString()))}`)).slice(0,4)}toString(){return`${null!=this._name?this._name.toString():""}(${this._params})`}}function MD(n){let e="";switch(n.ty){case ge.uint8:e="uint8";break;case ge.int8:e="int8";break;case ge.uint16:e="uint16";break;case ge.int16:e="int16";break;case ge.uint24:e="uint24";break;case ge.int24:e="int24";break;case ge.uint32:e="uint32";break;case ge.int32:e="int32";break;case ge.uint40:e="uint40";break;case ge.int40:e="int40";break;case ge.uint48:e="uint48";break;case ge.int48:e="int48";break;case ge.uint56:e="uint56";break;case ge.int56:e="int56";break;case ge.uint64:e="uint64";break;case ge.int64:e="int64";break;case ge.uint72:e="uint72";break;case ge.int72:e="int72";break;case ge.uint80:e="uint80";break;case ge.int80:e="int80";break;case ge.uint88:e="uint88";break;case ge.int88:e="int88";break;case ge.uint96:e="uint96";break;case ge.int96:e="int96";break;case ge.uint104:e="uint104";break;case ge.int104:e="int104";break;case ge.uint112:e="uint112";break;case ge.int112:e="int112";break;case ge.uint120:e="uint120";break;case ge.int120:e="int120";break;case ge.uint128:e="uint128";break;case ge.int128:e="int128";break;case ge.uint136:e="uint136";break;case ge.int136:e="int136";break;case ge.uint144:e="uint144";break;case ge.int144:e="int144";break;case ge.uint152:e="uint152";break;case ge.int152:e="int152";break;case ge.uint160:e="uint160";break;case ge.int160:e="int160";break;case ge.uint168:e="uint168";break;case ge.int168:e="int168";break;case ge.uint176:e="uint176";break;case ge.int176:e="int176";break;case ge.uint184:e="uint184";break;case ge.int184:e="int184";break;case ge.uint192:e="uint192";break;case ge.int192:e="int192";break;case ge.uint200:e="uint200";break;case ge.int200:e="int200";break;case ge.uint208:e="uint208";break;case ge.int208:e="int208";break;case ge.uint216:e="uint216";break;case ge.int216:e="int216";break;case ge.uint224:e="uint224";break;case ge.int224:e="int224";break;case ge.uint232:e="uint232";break;case ge.int232:e="int232";break;case ge.uint240:e="uint240";break;case ge.int240:e="int240";break;case ge.uint248:e="uint248";break;case ge.int248:e="int248";break;case ge.uint256:e="uint256";break;case ge.int256:e="int256";break;case ge.string:e="string";break;case ge.bool:e="bool";break;case ge.bytes:e="bytes";break;case ge.bytes32:e="bytes32";break;case ge.address:e="address";break;case ge.func:e="function";break;default:e=""}return n.array&&(e+="[]"),e}class ud{constructor(){this._selector=new oZ,this._arguments=[]}addString(e){return this._selector.addString(),this._addParam(e,!0)}addStringArray(e){return this._selector.addStringArray(),this._addParam(e,!0)}addBytes(e){return this._selector.addBytes(),this._addParam(e,!0)}addBytes32(e){if(32!==e.length)throw new Error(`addBytes32 expected array to be of length 32, but received ${e.length}`);return this._selector.addBytes32(),this._addParam(e,!1)}addBytesArray(e){return this._selector.addBytesArray(),this._addParam(e,!0)}addBytes32Array(e){for(const[t,o]of e.entries())if(32!==o.length)throw new Error(`addBytes32 expected array to be of length 32, but received ${o.length}`);return this._selector.addBytes32Array(),this._addParam(e,!0)}addBool(e){return this._selector.addBool(),this._addParam(e,!1)}addInt8(e){return this._selector.addInt8(),this._addParam(xn(e),!1)}addUint8(e){return this._selector.addUint8(),this._addParam(xn(e),!1)}addInt16(e){return this._selector.addInt16(),this._addParam(xn(e),!1)}addUint16(e){return this._selector.addUint16(),this._addParam(xn(e),!1)}addInt24(e){return this._selector.addInt24(),this._addParam(xn(e),!1)}addUint24(e){return this._selector.addUint24(),this._addParam(xn(e),!1)}addInt32(e){return this._selector.addInt32(),this._addParam(xn(e),!1)}addUint32(e){return this._selector.addUint32(),this._addParam(xn(e),!1)}addInt40(e){return this._selector.addInt40(),this._addParam(xn(e),!1)}addUint40(e){return this._selector.addUint40(),this._addParam(xn(e),!1)}addInt48(e){return this._selector.addInt48(),this._addParam(xn(e),!1)}addUint48(e){return this._selector.addUint48(),this._addParam(xn(e),!1)}addInt56(e){return this._selector.addInt56(),this._addParam(xn(e),!1)}addUint56(e){return this._selector.addUint56(),this._addParam(xn(e),!1)}addInt64(e){return this._selector.addInt64(),this._addParam(xn(e),!1)}addUint64(e){return this._selector.addUint64(),this._addParam(xn(e),!1)}addInt72(e){return this._selector.addInt72(),this._addParam(xn(e),!1)}addUint72(e){return this._selector.addUint72(),this._addParam(xn(e),!1)}addInt80(e){return this._selector.addInt80(),this._addParam(xn(e),!1)}addUint80(e){return this._selector.addUint80(),this._addParam(xn(e),!1)}addInt88(e){return this._selector.addInt88(),this._addParam(xn(e),!1)}addUint88(e){return this._selector.addUint88(),this._addParam(xn(e),!1)}addInt96(e){return this._selector.addInt96(),this._addParam(xn(e),!1)}addUint96(e){return this._selector.addUint96(),this._addParam(xn(e),!1)}addInt104(e){return this._selector.addInt104(),this._addParam(xn(e),!1)}addUint104(e){return this._selector.addUint104(),this._addParam(xn(e),!1)}addInt112(e){return this._selector.addInt112(),this._addParam(xn(e),!1)}addUint112(e){return this._selector.addUint112(),this._addParam(xn(e),!1)}addInt120(e){return this._selector.addInt120(),this._addParam(xn(e),!1)}addUint120(e){return this._selector.addUint120(),this._addParam(xn(e),!1)}addInt128(e){return this._selector.addInt128(),this._addParam(xn(e),!1)}addUint128(e){return this._selector.addUint128(),this._addParam(xn(e),!1)}addInt136(e){return this._selector.addInt136(),this._addParam(xn(e),!1)}addUint136(e){return this._selector.addUint136(),this._addParam(xn(e),!1)}addInt144(e){return this._selector.addInt144(),this._addParam(xn(e),!1)}addUint144(e){return this._selector.addUint144(),this._addParam(xn(e),!1)}addInt152(e){return this._selector.addInt152(),this._addParam(xn(e),!1)}addUint152(e){return this._selector.addUint152(),this._addParam(xn(e),!1)}addInt160(e){return this._selector.addInt160(),this._addParam(xn(e),!1)}addUint160(e){return this._selector.addUint160(),this._addParam(xn(e),!1)}addInt168(e){return this._selector.addInt168(),this._addParam(xn(e),!1)}addUint168(e){return this._selector.addUint168(),this._addParam(xn(e),!1)}addInt176(e){return this._selector.addInt176(),this._addParam(xn(e),!1)}addUint176(e){return this._selector.addUint176(),this._addParam(xn(e),!1)}addInt184(e){return this._selector.addInt184(),this._addParam(xn(e),!1)}addUint184(e){return this._selector.addUint184(),this._addParam(xn(e),!1)}addInt192(e){return this._selector.addInt192(),this._addParam(xn(e),!1)}addUint192(e){return this._selector.addUint192(),this._addParam(xn(e),!1)}addInt200(e){return this._selector.addInt200(),this._addParam(xn(e),!1)}addUint200(e){return this._selector.addUint200(),this._addParam(xn(e),!1)}addInt208(e){return this._selector.addInt208(),this._addParam(xn(e),!1)}addUint208(e){return this._selector.addUint208(),this._addParam(xn(e),!1)}addInt216(e){return this._selector.addInt216(),this._addParam(xn(e),!1)}addUint216(e){return this._selector.addUint216(),this._addParam(xn(e),!1)}addInt224(e){return this._selector.addInt224(),this._addParam(xn(e),!1)}addUint224(e){return this._selector.addUint224(),this._addParam(xn(e),!1)}addInt232(e){return this._selector.addInt232(),this._addParam(xn(e),!1)}addUint232(e){return this._selector.addUint232(),this._addParam(xn(e),!1)}addInt240(e){return this._selector.addInt240(),this._addParam(xn(e),!1)}addUint240(e){return this._selector.addUint240(),this._addParam(xn(e),!1)}addInt248(e){return this._selector.addInt248(),this._addParam(xn(e),!1)}addUint248(e){return this._selector.addUint248(),this._addParam(xn(e),!1)}addInt256(e){return this._selector.addInt256(),this._addParam(xn(e),!1)}addUint256(e){return this._selector.addUint256(),this._addParam(xn(e),!1)}addInt8Array(e){return this._selector.addInt8Array(),this._addParam(kn(e),!0)}addUint8Array(e){return this._selector.addUint8Array(),this._addParam(kn(e),!0)}addInt16Array(e){return this._selector.addInt16Array(),this._addParam(kn(e),!0)}addUint16Array(e){return this._selector.addUint16Array(),this._addParam(kn(e),!0)}addInt24Array(e){return this._selector.addInt24Array(),this._addParam(kn(e),!0)}addUint24Array(e){return this._selector.addUint24Array(),this._addParam(kn(e),!0)}addInt32Array(e){return this._selector.addInt32Array(),this._addParam(kn(e),!0)}addUint32Array(e){return this._selector.addUint32Array(),this._addParam(kn(e),!0)}addInt40Array(e){return this._selector.addInt40Array(),this._addParam(kn(e),!0)}addUint40Array(e){return this._selector.addUint40Array(),this._addParam(kn(e),!0)}addInt48Array(e){return this._selector.addInt48Array(),this._addParam(kn(e),!0)}addUint48Array(e){return this._selector.addUint48Array(),this._addParam(kn(e),!0)}addInt56Array(e){return this._selector.addInt56Array(),this._addParam(kn(e),!0)}addUint56Array(e){return this._selector.addUint56Array(),this._addParam(kn(e),!0)}addInt64Array(e){return this._selector.addInt64Array(),this._addParam(kn(e),!0)}addUint64Array(e){return this._selector.addUint64Array(),this._addParam(kn(e),!0)}addInt72Array(e){return this._selector.addInt72Array(),this._addParam(kn(e),!0)}addUint72Array(e){return this._selector.addUint72Array(),this._addParam(kn(e),!0)}addInt80Array(e){return this._selector.addInt80Array(),this._addParam(kn(e),!0)}addUint80Array(e){return this._selector.addUint80Array(),this._addParam(kn(e),!0)}addInt88Array(e){return this._selector.addInt88Array(),this._addParam(kn(e),!0)}addUint88Array(e){return this._selector.addUint88Array(),this._addParam(kn(e),!0)}addInt96Array(e){return this._selector.addInt96Array(),this._addParam(kn(e),!0)}addUint96Array(e){return this._selector.addUint96Array(),this._addParam(kn(e),!0)}addInt104Array(e){return this._selector.addInt104Array(),this._addParam(kn(e),!0)}addUint104Array(e){return this._selector.addUint104Array(),this._addParam(kn(e),!0)}addInt112Array(e){return this._selector.addInt112Array(),this._addParam(kn(e),!0)}addUint112Array(e){return this._selector.addUint112Array(),this._addParam(kn(e),!0)}addInt120Array(e){return this._selector.addInt120Array(),this._addParam(kn(e),!0)}addUint120Array(e){return this._selector.addUint120Array(),this._addParam(kn(e),!0)}addInt128Array(e){return this._selector.addInt128Array(),this._addParam(kn(e),!0)}addUint128Array(e){return this._selector.addUint128Array(),this._addParam(kn(e),!0)}addInt136Array(e){return this._selector.addInt136Array(),this._addParam(kn(e),!0)}addUint136Array(e){return this._selector.addUint136Array(),this._addParam(kn(e),!0)}addInt144Array(e){return this._selector.addInt144Array(),this._addParam(kn(e),!0)}addUint144Array(e){return this._selector.addUint144Array(),this._addParam(kn(e),!0)}addInt152Array(e){return this._selector.addInt152Array(),this._addParam(kn(e),!0)}addUint152Array(e){return this._selector.addUint152Array(),this._addParam(kn(e),!0)}addInt160Array(e){return this._selector.addInt160Array(),this._addParam(kn(e),!0)}addUint160Array(e){return this._selector.addUint160Array(),this._addParam(kn(e),!0)}addInt168Array(e){return this._selector.addInt168Array(),this._addParam(kn(e),!0)}addUint168Array(e){return this._selector.addUint168Array(),this._addParam(kn(e),!0)}addInt176Array(e){return this._selector.addInt176Array(),this._addParam(kn(e),!0)}addUint176Array(e){return this._selector.addUint176Array(),this._addParam(kn(e),!0)}addInt184Array(e){return this._selector.addInt184Array(),this._addParam(kn(e),!0)}addUint184Array(e){return this._selector.addUint184Array(),this._addParam(kn(e),!0)}addInt192Array(e){return this._selector.addInt192Array(),this._addParam(kn(e),!0)}addUint192Array(e){return this._selector.addUint192Array(),this._addParam(kn(e),!0)}addInt200Array(e){return this._selector.addInt200Array(),this._addParam(kn(e),!0)}addUint200Array(e){return this._selector.addUint200Array(),this._addParam(kn(e),!0)}addInt208Array(e){return this._selector.addInt208Array(),this._addParam(kn(e),!0)}addUint208Array(e){return this._selector.addUint208Array(),this._addParam(kn(e),!0)}addInt216Array(e){return this._selector.addInt216Array(),this._addParam(kn(e),!0)}addUint216Array(e){return this._selector.addUint216Array(),this._addParam(kn(e),!0)}addInt224Array(e){return this._selector.addInt224Array(),this._addParam(kn(e),!0)}addUint224Array(e){return this._selector.addUint224Array(),this._addParam(kn(e),!0)}addInt232Array(e){return this._selector.addInt232Array(),this._addParam(kn(e),!0)}addUint232Array(e){return this._selector.addUint232Array(),this._addParam(kn(e),!0)}addInt240Array(e){return this._selector.addInt240Array(),this._addParam(kn(e),!0)}addUint240Array(e){return this._selector.addUint240Array(),this._addParam(kn(e),!0)}addInt248Array(e){return this._selector.addInt248Array(),this._addParam(kn(e),!0)}addUint248Array(e){return this._selector.addUint248Array(),this._addParam(kn(e),!0)}addInt256Array(e){return this._selector.addInt256Array(),this._addParam(kn(e),!0)}addUint256Array(e){return this._selector.addUint256Array(),this._addParam(kn(e),!0)}addAddress(e){let t;if("string"==typeof e){if(40!==e.length&&42!==e.length)throw new Error("`address` type requires parameter to be 40 or 42 characters");t=e}else t=e.toString();const o=Mn(40===t.length?t:t.substring(2));return this._selector.addAddress(),this._addParam(o,!1)}addAddressArray(e){const t=[];for(const[o,s]of e.entries()){let l;if("string"==typeof s){if(40!==s.length&&42!==s.length)throw new Error("`address` type requires parameter to be 40 or 42 characters");l=s}else l=s.toString();const u=Mn(40===l.length?l:l.substring(2));t.push(u)}return this._selector.addAddressArray(),this._addParam(t,!0)}addFunction(e,t){const o=Mn(e),s=t._build();if(20!==o.length)throw new Error("`function` type requires parameter `address` to be exactly 20 bytes");this._selector.addFunction();const l=new Uint8Array(24);return l.set(o,0),l.set(s,20),this._addParam(l,!1)}_addParam(e,t){const s=ND(e,this._selector._paramTypes[this._selector._paramTypes.length-1]);return this._arguments.push({dynamic:t,value:s}),this}_build(e){const t=null!=e,o=t?4:0,s=0===this._arguments.length?o:32*this._arguments.length+this._arguments.map(p=>p.dynamic?p.value.length:0).reduce((p,w)=>p+w)+o,l=new Uint8Array(s);t&&l.set(this._selector._build(e),0);let u=32*this._arguments.length;for(const[p,{dynamic:w,value:S}]of this._arguments.entries())if(w){const V=ji(l,o+32*p+28);V.setUint32(0,u),l.set(S,V.getUint32(0)+o),u+=S.length}else l.set(S,o+32*p);return l}}function ND(n,e){let s,t=new Uint8Array(32),o=ji(t);if(e.array){if(!Array.isArray(n))throw new TypeError("SolidityType indicates type is array, but parameter is not an array");const l=[];for(const[w,S]of n.entries()){const V=ND(S,{ty:e.ty,array:!1});l.push(V)}const u=l.map(w=>w.length).reduce((w,S)=>w+S);switch(e.ty){case ge.uint8:case ge.int8:case ge.uint16:case ge.int16:case ge.uint32:case ge.int32:case ge.uint40:case ge.int40:case ge.uint48:case ge.int48:case ge.uint56:case ge.int56:case ge.uint64:case ge.int64:case ge.uint72:case ge.int72:case ge.uint80:case ge.int80:case ge.uint88:case ge.int88:case ge.uint96:case ge.int96:case ge.uint104:case ge.int104:case ge.uint112:case ge.int112:case ge.uint120:case ge.int120:case ge.uint128:case ge.int128:case ge.uint136:case ge.int136:case ge.uint144:case ge.int144:case ge.uint152:case ge.int152:case ge.uint160:case ge.int160:case ge.uint168:case ge.int168:case ge.uint176:case ge.int176:case ge.uint184:case ge.int184:case ge.uint192:case ge.int192:case ge.uint200:case ge.int200:case ge.uint208:case ge.int208:case ge.uint216:case ge.int216:case ge.uint224:case ge.int224:case ge.uint232:case ge.int232:case ge.uint240:case ge.int240:case ge.uint248:case ge.int248:case ge.uint256:case ge.int256:case ge.bool:case ge.bytes32:case ge.address:case ge.func:t=new Uint8Array(u+32);break;case ge.bytes:case ge.string:t=new Uint8Array(32*l.length+u+32);break;default:throw new TypeError(`Expected param type to be ArgumentType, but received ${e.ty}`)}o=ji(t,28),o.setUint32(0,l.length);let p=32*l.length;for(const[w,S]of l.entries())switch(e.ty){case ge.uint8:case ge.int8:case ge.uint16:case ge.int16:case ge.uint24:case ge.int24:case ge.uint32:case ge.int32:case ge.uint40:case ge.int40:case ge.uint48:case ge.int48:case ge.uint56:case ge.int56:case ge.uint64:case ge.int64:case ge.uint72:case ge.int72:case ge.uint80:case ge.int80:case ge.uint88:case ge.int88:case ge.uint96:case ge.int96:case ge.uint104:case ge.int104:case ge.uint112:case ge.int112:case ge.uint120:case ge.int120:case ge.uint128:case ge.int128:case ge.uint136:case ge.int136:case ge.uint144:case ge.int144:case ge.uint152:case ge.int152:case ge.uint160:case ge.int160:case ge.uint168:case ge.int168:case ge.uint176:case ge.int176:case ge.uint184:case ge.int184:case ge.uint192:case ge.int192:case ge.uint200:case ge.int200:case ge.uint208:case ge.int208:case ge.uint216:case ge.int216:case ge.uint224:case ge.int224:case ge.uint232:case ge.int232:case ge.uint240:case ge.int240:case ge.uint248:case ge.int248:case ge.uint256:case ge.int256:case ge.bool:case ge.bytes32:case ge.address:case ge.func:t.set(S,32*w+32);break;case ge.bytes:case ge.string:const V=ji(t,32*(w+1)+28);V.setUint32(0,p),t.set(S,V.getUint32(0)+32),p+=S.length;break;default:throw new TypeError(`Expected param type to be ArgumentType, but received ${e.ty}`)}return t}switch(e.ty){case ge.uint8:case ge.int8:case ge.uint16:case ge.int16:case ge.uint24:case ge.int24:case ge.uint32:case ge.int32:case ge.uint40:case ge.int40:case ge.uint48:case ge.int48:case ge.uint56:case ge.int56:case ge.uint64:case ge.int64:case ge.uint72:case ge.int72:case ge.uint80:case ge.int80:case ge.uint88:case ge.int88:case ge.uint96:case ge.int96:case ge.uint104:case ge.int104:case ge.uint112:case ge.int112:case ge.uint120:case ge.int120:case ge.uint128:case ge.int128:case ge.uint136:case ge.int136:case ge.uint144:case ge.int144:case ge.uint152:case ge.int152:case ge.uint160:case ge.int160:case ge.uint168:case ge.int168:case ge.uint176:case ge.int176:case ge.uint184:case ge.int184:case ge.uint192:case ge.int192:case ge.uint200:case ge.int200:case ge.uint208:case ge.int208:case ge.uint216:case ge.int216:case ge.uint224:case ge.int224:case ge.uint232:case ge.int232:case ge.uint240:case ge.int240:case ge.uint248:case ge.int248:case ge.int256:case ge.uint256:{let l=n.toString(16);return l=n>0||0==n?"0x"+l:l.slice(0,1)+"0x"+l.slice(1),Wo($r.encode([MD(e)],[l]))}case ge.address:return t.set(n,12),t;case ge.bool:return t[31]=n?1:0,t;case ge.func:return t.set(n,8),t;case ge.bytes32:return t.set(n,0),t;case ge.bytes:case ge.string:return s=n instanceof Uint8Array?n:ed(n),t=Math.floor(s.length/32)>=0?0!==Math.floor(s.length%32)?new Uint8Array(32*(Math.floor(s.length/32)+1)+32):new Uint8Array(32*Math.floor(s.length/32)+32):new Uint8Array(64),t.set(s,32),o=ji(t,28),o.setUint32(0,s.length),t;default:throw new Error(`Unsupported argument type: ${e.toString()}`)}}class $p extends ei{constructor(e={}){super(),this._contractId=null,null!=e.contractId&&this.setContractId(e.contractId),this._gas=null,null!=e.gas&&this.setGas(e.gas),this._functionParameters=null,null!=e.functionParameters&&(e.functionParameters instanceof Uint8Array?this.setFunctionParameters(e.functionParameters):this.setFunction(e.functionParameters.name,e.functionParameters.parameters)),this._maxResultSize=null,null!=e.maxResultSize&&this.setMaxResultSize(e.maxResultSize),this._senderAccountId=null,null!=e.senderAccountId&&this.setSenderAccountId(e.senderAccountId)}static _fromProtobuf(e){const t=e.contractCallLocal;return new $p({contractId:null!=t.contractID?Kn._fromProtobuf(t.contractID):void 0,gas:null!=t.gas?t.gas:void 0,functionParameters:null!=t.functionParameters?t.functionParameters:void 0,maxResultSize:null!=t.maxResultSize?t.maxResultSize:void 0})}get contractId(){return this._contractId}setContractId(e){return this._contractId="string"==typeof e?Kn.fromString(e):e.clone(),this}get gas(){return this._gas}setGas(e){return this._gas=e instanceof mt?e:mt.fromValue(e),this}get senderAccountId(){return this._senderAccountId}setSenderAccountId(e){return this._senderAccountId="string"==typeof e?Ue.fromString(e):e,this}get functionParameters(){return this._functionParameters}setFunctionParameters(e){return this._functionParameters=e,this}setFunction(e,t){return this._functionParameters=(t??new ud)._build(e),this}setMaxResultSize(e){return this._maxResultSize=e instanceof mt?e:mt.fromValue(e),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e)}_mapStatusError(e,t){const{nodeTransactionPrecheckCode:o}=this._mapResponseHeader(t),s=M._fromCode(o??ln.proto.ResponseCodeEnum.OK);if(!t.contractCallLocal.functionResult)return new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:null});const u=this._mapResponseSync(t);return new qu({status:s,transactionId:this._getTransactionId(),contractFunctionResult:u})}_execute(e,t){return e.smartContract.contractCallLocalMethod(t)}_mapResponseHeader(e){return e.contractCallLocal.header}_mapResponse(e){return Promise.resolve(id._fromProtobuf(e.contractCallLocal.functionResult,!1))}_mapResponseSync(e){return id._fromProtobuf(e.contractCallLocal.functionResult,!1)}_onMakeRequest(e){return{contractCallLocal:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null,gas:this._gas,maxResultSize:this._maxResultSize,functionParameters:this._functionParameters,senderId:null!=this._senderAccountId?this._senderAccountId._toProtobuf():null}}}_getLogId(){return`ContractCallQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("contractCallLocal",$p._fromProtobuf);class Zp extends $t{constructor(e={}){super(),this._keys=null,this._expirationTime=new Jn(0,0).plusNanos(mt.fromNumber(Date.now()).mul(1e6).add(d3.mul(1e9))),this._contents=null,this._fileMemo=null,this._defaultMaxTransactionFee=new mn(5),null!=e.keys&&this.setKeys(e.keys),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.contents&&this.setContents(e.contents),null!=e.fileMemo&&this.setFileMemo(e.fileMemo)}static _fromProtobuf(e,t,o,s,l){const p=l[0].fileCreate;return $t._fromProtobufTransactions(new Zp({keys:null!=p.keys&&null!=p.keys.keys?p.keys.keys.map(w=>qn._fromProtobufKey(w)):void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0,contents:null!=p.contents?p.contents:void 0,fileMemo:null!=p.memo?p.memo:void 0}),e,t,o,s,l)}get keys(){return this._keys}setKeys(e){if(this._requireNotFrozen(),e instanceof Vo&&null!=e.threshold)throw new Error("Cannot set threshold key as file key");return this._keys=e instanceof Vo?e.toArray():e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Jn?e:Jn.fromDate(e),this}get contents(){return this._contents}setContents(e){return this._requireNotFrozen(),this._contents=e instanceof Uint8Array?e:ed(e),this}get fileMemo(){return this._fileMemo}setFileMemo(e){return this._requireNotFrozen(),this._fileMemo=e,this}_execute(e,t){return e.file.createFile(t)}_getTransactionDataCase(){return"fileCreate"}_makeTransactionData(){return{keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:null,expirationTime:this._expirationTime._toProtobuf(),contents:this._contents,memo:this._fileMemo}}_getLogId(){return`FileCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("fileCreate",Zp._fromProtobuf);class qp extends $t{constructor(e={}){super(),this._fileId=null,this._contents=null,this._maxChunks=20,this._chunkSize=4096,this._defaultMaxTransactionFee=new mn(5),null!=e.fileId&&this.setFileId(e.fileId),null!=e.contents&&this.setContents(e.contents),null!=e.maxChunks&&this.setMaxChunks(e.maxChunks),null!=e.chunkSize&&this.setChunkSize(e.chunkSize),this._transactionIds=new kl}static _fromProtobuf(e,t,o,s,l){const p=l[0].fileAppend;let w;for(let S=0;Sthis._maxChunks)throw new Error(`Contents with size ${this._contents.length} too long for ${this._maxChunks} chunks`);let o=this._getTransactionId();this._transactionIds.locked=!1,this._transactions.clear(),this._transactionIds.clear(),this._signedTransactions.clear();for(let s=0;sthis._chunkSize)throw new Error(`cannot schedule \`FileAppendTransaction\` with message over ${this._chunkSize} bytes`);return super.schedule()}execute(e,t){var o=this;return ct(function*(){return(yield o.executeAll(e,t))[0]})()}executeAll(e,t){var o=()=>super._isFrozen,s=()=>super.signWithOperator,l=()=>super.execute,u=this;return ct(function*(){o().call(u)||u.freezeWith(e);const p=u._getTransactionId(),w=e.operatorAccountId;null!=w&&w.equals(p.accountId)&&(yield s().call(u,e));const S=[];let V=t;for(let J=0;Jsuper.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_mapResponseHeader(e){return e.contractGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(tg._fromProtobuf(e.contractGetInfo.contractInfo))}_onMakeRequest(e){return{contractGetInfo:{header:e,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}}_getLogId(){return`ContractInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("contractGetInfo",Q2._fromProtobuf);class z2 extends $t{constructor(e={}){super(),this._contractId=null,this._expirationTime=null,this._adminKey=null,this._proxyAccountId=null,this._autoRenewPeriod=null,this._bytecodeFileId=null,this._contractMemo=null,this._maxAutomaticTokenAssociations=null,this._stakedAccountId=null,this._stakedNodeId=null,this._declineStakingReward=null,this._autoRenewAccountId=null,null!=e.contractId&&this.setContractId(e.contractId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.proxyAccountId&&this.setProxyAccountId(e.proxyAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.bytecodeFileId&&this.setBytecodeFileId(e.bytecodeFileId),null!=e.contractMemo&&this.setContractMemo(e.contractMemo),null!=e.maxAutomaticTokenAssociations&&this.setMaxAutomaticTokenAssociations(e.maxAutomaticTokenAssociations),null!=e.stakedAccountId&&this.setStakedAccountId(e.stakedAccountId),null!=e.stakedNodeId&&this.setStakedNodeId(e.stakedNodeId),null!=e.declineStakingReward&&this.setDeclineStakingReward(e.declineStakingReward),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].contractUpdateInstance;let w,S,V;return null!=p.autoRenewPeriod&&null!=p.autoRenewPeriod.seconds&&(w=p.autoRenewPeriod.seconds),null!=p.memoWrapper&&null!=p.memoWrapper.value&&(S=p.memoWrapper.value),null!=p.maxAutomaticTokenAssociations&&null!=p.maxAutomaticTokenAssociations.value&&(V=p.maxAutomaticTokenAssociations.value),$t._fromProtobufTransactions(new z2({contractId:null!=p.contractID?Kn._fromProtobuf(p.contractID):void 0,bytecodeFileId:null!=p.fileID?mr._fromProtobuf(p.fileID):void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0,adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,proxyAccountId:null!=p.proxyAccountID?Ue._fromProtobuf(p.proxyAccountID):void 0,autoRenewPeriod:w,contractMemo:S,maxAutomaticTokenAssociations:V,stakedAccountId:null!=p.stakedAccountId?Ue._fromProtobuf(p.stakedAccountId):void 0,stakedNodeId:null!=p.stakedNodeId?p.stakedNodeId:void 0,declineStakingReward:null!=p.declineReward&&1==Boolean(p.declineReward),autoRenewAccountId:null!=p.autoRenewAccountId?Ue._fromProtobuf(p.autoRenewAccountId):void 0}),e,t,o,s,l)}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId="string"==typeof e?Kn.fromString(e):e.clone(),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Jn?e:Jn.fromDate(e),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get proxyAccountId(){return this._proxyAccountId}setProxyAccountId(e){return this._requireNotFrozen(),this._proxyAccountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}get bytecodeFileId(){return this._bytecodeFileId}setBytecodeFileId(e){return console.warn("Deprecated: there is no replacement"),this._requireNotFrozen(),this._bytecodeFileId="string"==typeof e?mr.fromString(e):e.clone(),this}get contractMemo(){return this._contractMemo}setContractMemo(e){return this._requireNotFrozen(),this._contractMemo=e,this}clearContractMemo(){return this._requireNotFrozen(),this._contractMemo=null,this}get maxAutomaticTokenAssociations(){return this._maxAutomaticTokenAssociations}setMaxAutomaticTokenAssociations(e){return this._requireNotFrozen(),this._maxAutomaticTokenAssociations=e,this}get stakedAccountId(){return this._stakedAccountId}setStakedAccountId(e){return this._requireNotFrozen(),this._stakedAccountId="string"==typeof e?Ue.fromString(e):e,this}get stakedNodeId(){return this._stakedNodeId}setStakedNodeId(e){return this._requireNotFrozen(),this._stakedNodeId=mt.fromValue(e),this}get declineStakingRewards(){return this._declineStakingReward}setDeclineStakingReward(e){return this._requireNotFrozen(),this._declineStakingReward=e,this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId="string"==typeof e?Ue.fromString(e):e,this}clearAutoRenewAccountId(){return this._autoRenewAccountId=new Ue(0),this}_validateChecksums(e){null!=this._contractId&&this._contractId.validateChecksum(e),null!=this._bytecodeFileId&&this._bytecodeFileId.validateChecksum(e),null!=this._proxyAccountId&&this._proxyAccountId.validateChecksum(e)}_execute(e,t){return e.smartContract.updateContract(t)}_getTransactionDataCase(){return"contractUpdateInstance"}_makeTransactionData(){return{contractID:null!=this._contractId?this._contractId._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,proxyAccountID:null!=this._proxyAccountId?this._proxyAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,fileID:this._bytecodeFileId?this._bytecodeFileId._toProtobuf():null,memoWrapper:null!=this._contractMemo?{value:this._contractMemo}:null,maxAutomaticTokenAssociations:null!=this._maxAutomaticTokenAssociations?{value:this._maxAutomaticTokenAssociations}:null,stakedAccountId:null!=this.stakedAccountId?this.stakedAccountId._toProtobuf():null,stakedNodeId:this.stakedNodeId,declineReward:null!=this.declineStakingRewards?{value:this.declineStakingRewards}:null,autoRenewAccountId:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null}}_getLogId(){return`ContractUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("contractUpdateInstance",z2._fromProtobuf);class K2{constructor(e={}){this._feeCollectorAccountId=null,this._allCollectorsAreExempt=!1,null!=e.feeCollectorAccountId&&this.setFeeCollectorAccountId(e.feeCollectorAccountId),null!=e.allCollectorsAreExempt&&this.setAllCollectorsAreExempt(e.allCollectorsAreExempt)}get feeCollectorAccountId(){return this._feeCollectorAccountId}setFeeCollectorAccountId(e){return this._feeCollectorAccountId="string"==typeof e?Ue.fromString(e):e,this}get allCollectorsAreExempt(){return this._allCollectorsAreExempt}setAllCollectorsAreExempt(e){return this._allCollectorsAreExempt=e,this}static _fromProtobuf(e){throw new Error("not implemented")}_toProtobuf(){throw new Error("not implemented")}}class Wc extends K2{constructor(e={}){super(e),this._denominatingTokenId=null,null!=e.denominatingTokenId&&this.setDenominatingTokenId(e.denominatingTokenId),this._amount=null,null!=e.amount&&this.setAmount(e.amount)}setHbarAmount(e){return this._amount=e.toTinybars(),this._denominatingTokenId=null,this}get hbarAmount(){return null!=this._denominatingTokenId?null:mn.fromTinybars(null!=this._amount?this._amount:0)}setDenominatingTokenToSameToken(){return this._denominatingTokenId=new tn(0,0,0),this}get denominatingTokenId(){return this._denominatingTokenId}setDenominatingTokenId(e){return this._denominatingTokenId="string"==typeof e?tn.fromString(e):e,this}get amount(){return this._amount}setAmount(e){return this._amount="number"==typeof e?mt.fromNumber(e):e,this}static _fromProtobuf(e){const t=e.fixedFee;return new Wc({feeCollectorAccountId:null!=e.feeCollectorAccountId?Ue._fromProtobuf(e.feeCollectorAccountId):void 0,allCollectorsAreExempt:null!=e.allCollectorsAreExempt?e.allCollectorsAreExempt:void 0,denominatingTokenId:null!=t.denominatingTokenId?tn._fromProtobuf(t.denominatingTokenId):void 0,amount:null!=t.amount?t.amount:void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,allCollectorsAreExempt:this.allCollectorsAreExempt,fixedFee:{denominatingTokenId:null!=this._denominatingTokenId?this._denominatingTokenId._toProtobuf():null,amount:this._amount}}}}class ga{constructor(e){this._value=e,Object.freeze(this)}toString(){switch(this){case ga.Inclusive:return"INCLUSIVE";case ga.Exclusive:return"EXCLUSIVE";default:return`UNKNOWN (${this._value.toString()})`}}static _fromValue(e){switch(e){case!1:return ga.Inclusive;case!0:return ga.Exclusive}}valueOf(){return this._value}}ga.Inclusive=new ga(!1),ga.Exclusive=new ga(!0);class dd extends K2{constructor(e={}){super(e),this._numerator=null,null!=e.numerator&&this.setNumerator(e.numerator),this._denominator=null,null!=e.denominator&&this.setDenominator(e.denominator),this._min=null,null!=e.min&&this.setMin(e.min),null!=e.max&&this.setMax(e.max),null!=e.assessmentMethod&&this.setAssessmentMethod(e.assessmentMethod)}get numerator(){return this._numerator}setNumerator(e){return this._numerator="number"==typeof e?mt.fromNumber(e):e,this}get denominator(){return this._denominator}setDenominator(e){return this._denominator="number"==typeof e?mt.fromNumber(e):e,this}get min(){return this._min}setMin(e){return this._min="number"==typeof e?mt.fromNumber(e):e,this}get max(){return this._max}setMax(e){return this._max="number"==typeof e?mt.fromNumber(e):e,this}get assessmentMethod(){return this._assessmentMethod}setAssessmentMethod(e){return this._assessmentMethod=e,this}static _fromProtobuf(e){const t=e.fractionalFee,o=t.fractionalAmount;return new dd({feeCollectorAccountId:null!=e.feeCollectorAccountId?Ue._fromProtobuf(e.feeCollectorAccountId):void 0,allCollectorsAreExempt:null!=e.allCollectorsAreExempt?e.allCollectorsAreExempt:void 0,numerator:null!=o.numerator?o.numerator:void 0,denominator:null!=o.denominator?o.denominator:void 0,min:null!=t.minimumAmount?t.minimumAmount:void 0,max:null!=t.maximumAmount?t.maximumAmount:void 0,assessmentMethod:null!=t.netOfTransfers?new ga(t.netOfTransfers):void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,allCollectorsAreExempt:this.allCollectorsAreExempt,fractionalFee:{fractionalAmount:{numerator:this._numerator,denominator:this._denominator},minimumAmount:this._min,maximumAmount:this._max,netOfTransfers:null!=this._assessmentMethod&&this._assessmentMethod.valueOf()}}}}class fd extends K2{constructor(e={}){super(e),this._fallbackFee=null,null!=e.fallbackFee&&this.setFallbackFee(e.fallbackFee),this._numerator=null,null!=e.numerator&&this.setNumerator(e.numerator),this._denominator=null,null!=e.denominator&&this.setDenominator(e.denominator)}get fallbackFee(){return this._fallbackFee}setFallbackFee(e){return this._fallbackFee=e,this}get numerator(){return this._numerator}setNumerator(e){return this._numerator="number"==typeof e?mt.fromNumber(e):e,this}get denominator(){return this._denominator}setDenominator(e){return this._denominator="number"==typeof e?mt.fromNumber(e):e,this}static _fromProtobuf(e){const t=e.royaltyFee,o=t.exchangeValueFraction;return new fd({feeCollectorAccountId:null!=e.feeCollectorAccountId?Ue._fromProtobuf(e.feeCollectorAccountId):void 0,allCollectorsAreExempt:null!=e.allCollectorsAreExempt?e.allCollectorsAreExempt:void 0,fallbackFee:null!=t.fallbackFee?Wc._fromProtobuf({fixedFee:t.fallbackFee}):void 0,numerator:null!=o.numerator?o.numerator:void 0,denominator:null!=o.denominator?o.denominator:void 0})}_toProtobuf(){return{feeCollectorAccountId:null!=this.feeCollectorAccountId?this.feeCollectorAccountId._toProtobuf():null,allCollectorsAreExempt:this.allCollectorsAreExempt,royaltyFee:{exchangeValueFraction:{numerator:this._numerator,denominator:this._denominator},fallbackFee:null!=this._fallbackFee?this._fallbackFee._toProtobuf().fixedFee:null}}}}class $a extends Kn{constructor(e,t,o,s){super(e,t,o,s)}static fromEvmAddress(e,t,o){return new $a(e,t,0,Mn(o))}static fromString(e){return new $a(Kn.fromString(e))}static _fromProtobuf(e){return new $a(Kn._fromProtobuf(e))}static fromBytes(e){return new $a(Kn.fromBytes(e))}static fromSolidityAddress(e){return new $a(Kn.fromSolidityAddress(e))}clone(){const e=new $a(this);return e._checksum=this._checksum,e}_toProtobufKey(){return{delegatableContractId:this._toProtobuf()}}static __fromProtobufKey(e){return $a._fromProtobuf(e)}}Pr.setDelegateContractId(n=>$a.__fromProtobufKey(n));class Y2 extends $t{constructor(e={}){super(),this._ethereumData=null,this._callDataFileId=null,this._maxGasAllowance=null,null!=e.ethereumData&&this.setEthereumData(e.ethereumData),null!=e.callData&&this.setCallDataFileId(e.callData),null!=e.callDataFileId&&this.setCallDataFileId(e.callDataFileId),null!=e.maxGasAllowance&&this.setMaxGasAllowanceHbar(e.maxGasAllowance)}static _fromProtobuf(e,t,o,s,l){const p=l[0].ethereumTransaction;return $t._fromProtobufTransactions(new Y2({ethereumData:null!=p.ethereumData?p.ethereumData:void 0,callData:null!=p.callData?mr._fromProtobuf(p.callData):void 0,maxGasAllowance:null!=p.maxGasAllowance?mn.fromTinybars(p.maxGasAllowance):void 0}),e,t,o,s,l)}get ethereumData(){return this._ethereumData}setEthereumData(e){return this._requireNotFrozen(),this._ethereumData=e,this}get callData(){return this.callDataFileId}setCallData(e){return this.setCallDataFileId(e)}get callDataFileId(){return this._callDataFileId}setCallDataFileId(e){return this._requireNotFrozen(),this._callDataFileId=e,this}get maxGasAllowance(){return this._maxGasAllowance}setMaxGasAllowance(e){return this.setMaxGasAllowanceHbar(e)}setMaxGasAllowanceHbar(e){return this._requireNotFrozen(),this._maxGasAllowance=e instanceof mn?e:new mn(e),this}_validateChecksums(e){null!=this._ethereumData&&this._ethereumData instanceof mr&&this._ethereumData.validateChecksum(e)}_execute(e,t){return e.smartContract.callEthereum(t)}_getTransactionDataCase(){return"ethereumTransaction"}_makeTransactionData(){return{ethereumData:this._ethereumData,callData:null!=this._callDataFileId?this._callDataFileId._toProtobuf():null,maxGasAllowance:null!=this._maxGasAllowance?this._maxGasAllowance.toTinybars():null}}_getLogId(){return`EthereumTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("ethereumTransaction",Y2._fromProtobuf);const Aa=new Vr("rlp/5.7.0");function PD(n){const e=[];for(;n;)e.unshift(255&n),n>>=8;return e}function RD(n,e,t){let o=0;for(let s=0;se+1+o&&Aa.throwError("child data too short",Vr.errors.BUFFER_OVERRUN,{})}return{consumed:1+o,result:s}}function UD(n,e){if(0===n.length&&Aa.throwError("data too short",Vr.errors.BUFFER_OVERRUN,{}),n[e]>=248){const t=n[e]-247;e+1+t>n.length&&Aa.throwError("data short segment too short",Vr.errors.BUFFER_OVERRUN,{});const o=RD(n,e+1,t);return e+1+t+o>n.length&&Aa.throwError("data long segment too short",Vr.errors.BUFFER_OVERRUN,{}),LD(n,e,e+1+t,t+o)}if(n[e]>=192){const t=n[e]-192;return e+1+t>n.length&&Aa.throwError("data array too short",Vr.errors.BUFFER_OVERRUN,{}),LD(n,e,e+1,t)}if(n[e]>=184){const t=n[e]-183;e+1+t>n.length&&Aa.throwError("data array too short",Vr.errors.BUFFER_OVERRUN,{});const o=RD(n,e+1,t);return e+1+t+o>n.length&&Aa.throwError("data array too short",Vr.errors.BUFFER_OVERRUN,{}),{consumed:1+t+o,result:Io(n.slice(e+1+t,e+1+t+o))}}if(n[e]>=128){const t=n[e]-128;return e+1+t>n.length&&Aa.throwError("data too short",Vr.errors.BUFFER_OVERRUN,{}),{consumed:1+t,result:Io(n.slice(e+1,e+1+t))}}return{consumed:1,result:Io(n[e])}}function $2(n){const e=Wo(n),t=UD(e,0);return t.consumed!==e.length&&Aa.throwArgumentError("invalid rlp data","data",n),t.result}class Z2{constructor(e){this.callData=e.callData}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");switch(e[0]){case 1:return Pr.ethereumTransactionDataEip2930FromBytes(e);case 2:return Pr.ethereumTransactionDataEip1559FromBytes(e);default:return Pr.ethereumTransactionDataLegacyFromBytes(e)}}toBytes(){throw new Error("not implemented")}toString(){throw new Error("not implemented")}toJSON(){throw new Error("not implemented")}}class q2 extends Z2{constructor(e){super(e),this.nonce=e.nonce,this.gasPrice=e.gasPrice,this.gasLimit=e.gasLimit,this.to=e.to,this.value=e.value,this.v=e.v,this.r=e.r,this.s=e.s}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");const t=$2(e);if(9!=t.length)throw new Error("invalid ethereum transaction data");return new q2({nonce:Mn(t[0]),gasPrice:Mn(t[1]),gasLimit:Mn(t[2]),to:Mn(t[3]),value:Mn(t[4]),callData:Mn(t[5]),v:Mn(t[6]),r:Mn(t[7]),s:Mn(t[8])})}toBytes(){return Mn(W2([this.nonce,this.gasPrice,this.gasLimit,this.to,this.value,this.callData,this.v,this.r,this.s]))}toString(){return JSON.stringify(this.toJSON(),null,2)}toJSON(){return{nonce:cn(this.nonce),gasPrice:cn(this.gasPrice),gasLimit:cn(this.gasLimit),to:cn(this.to),value:cn(this.value),callData:cn(this.callData),v:cn(this.v),r:cn(this.r),s:cn(this.s)}}}Pr.setEthereumTransactionDataLegacyFromBytes(n=>q2.fromBytes(n));class J2 extends Z2{constructor(e){super(e),this.chainId=e.chainId,this.nonce=e.nonce,this.maxPriorityGas=e.maxPriorityGas,this.maxGas=e.maxGas,this.gasLimit=e.gasLimit,this.to=e.to,this.value=e.value,this.accessList=e.accessList,this.recId=e.recId,this.r=e.r,this.s=e.s}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");const t=$2(e.subarray(1));if(!Array.isArray(t))throw new Error("ethereum data is not a list");if(12!=t.length)throw new Error("invalid ethereum transaction data");return new J2({chainId:Mn(t[0]),nonce:Mn(t[1]),maxPriorityGas:Mn(t[2]),maxGas:Mn(t[3]),gasLimit:Mn(t[4]),to:Mn(t[5]),value:Mn(t[6]),callData:Mn(t[7]),accessList:t[8].map(o=>Mn(o)),recId:Mn(t[9]),r:Mn(t[10]),s:Mn(t[11])})}toBytes(){return Mn("02"+W2([this.chainId,this.nonce,this.maxPriorityGas,this.maxGas,this.gasLimit,this.to,this.value,this.callData,this.accessList,this.recId,this.r,this.s]).substring(2))}toString(){return JSON.stringify(this.toJSON(),null,2)}toJSON(){return{chainId:cn(this.chainId),nonce:cn(this.nonce),maxPriorityGas:cn(this.maxPriorityGas),maxGas:cn(this.maxGas),gasLimit:cn(this.gasLimit),to:cn(this.to),value:cn(this.value),callData:cn(this.callData),accessList:this.accessList.map(e=>cn(e)),recId:cn(this.recId),r:cn(this.r),s:cn(this.s)}}}Pr.setEthereumTransactionDataEip1559FromBytes(n=>J2.fromBytes(n));class X2 extends Z2{constructor(e){super(e),this.chainId=e.chainId,this.nonce=e.nonce,this.gasPrice=e.gasPrice,this.gasLimit=e.gasLimit,this.to=e.to,this.value=e.value,this.accessList=e.accessList,this.recId=e.recId,this.r=e.r,this.s=e.s}static fromBytes(e){if(0===e.length)throw new Error("empty bytes");const t=$2(e.subarray(1));if(!Array.isArray(t))throw new Error("ethereum data is not a list");if(11!==t.length)throw new Error("invalid ethereum transaction data");return new X2({chainId:Mn(t[0]),nonce:Mn(t[1]),gasPrice:Mn(t[2]),gasLimit:Mn(t[3]),to:Mn(t[4]),value:Mn(t[5]),callData:Mn(t[6]),accessList:t[7].map(o=>Mn(o)),recId:Mn(t[8]),r:Mn(t[9]),s:Mn(t[10])})}toBytes(){return Mn("01"+W2([this.chainId,this.nonce,this.gasPrice,this.gasLimit,this.to,this.value,this.callData,this.accessList,this.recId,this.r,this.s]).substring(2))}toString(){return JSON.stringify(this.toJSON(),null,2)}toJSON(){return{chainId:cn(this.chainId),nonce:cn(this.nonce),gasPrice:cn(this.gasPrice),gasLimit:cn(this.gasLimit),to:cn(this.to),value:cn(this.value),callData:cn(this.callData),accessList:this.accessList.map(e=>cn(e)),recId:cn(this.recId),r:cn(this.r),s:cn(this.s)}}}Pr.setEthereumTransactionDataEip2930FromBytes(n=>X2.fromBytes(n));class ao{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case ao.Default:return"DEFAULT";case ao.TokenFungibleCommon:return"TOKEN_FUNGIBLE_COMMON";case ao.TokenNonFungibleUnique:return"TOKEN_NON_FUNGIBLE_UNIQUE";case ao.TokenFungibleCommonWithCustomFees:return"TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES";case ao.TokenNonFungibleUniqueWithCustomFees:return"TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES";case ao.ScheduleCreateContractCall:return"SCHEDULE_CREATE_CONTRACT_CALL";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return ao.Default;case 1:return ao.TokenFungibleCommon;case 2:return ao.TokenNonFungibleUnique;case 3:return ao.TokenFungibleCommonWithCustomFees;case 4:return ao.TokenNonFungibleUniqueWithCustomFees;case 5:return ao.ScheduleCreateContractCall}throw new Error(`(BUG) SubType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}ao.Default=new ao(0),ao.TokenFungibleCommon=new ao(1),ao.TokenNonFungibleUnique=new ao(2),ao.TokenFungibleCommonWithCustomFees=new ao(3),ao.TokenNonFungibleUniqueWithCustomFees=new ao(4),ao.ScheduleCreateContractCall=new ao(5);class Oe{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case Oe.None:return"NONE";case Oe.CryptoTransfer:return"CryptoTransfer";case Oe.CryptoUpdate:return"CryptoUpdate";case Oe.CryptoDelete:return"CryptoDelete";case Oe.CryptoAddLiveHash:return"CryptoAddLiveHash";case Oe.CryptoDeleteLiveHash:return"CryptoDeleteLiveHash";case Oe.ContractCall:return"ContractCall";case Oe.ContractCreate:return"ContractCreate";case Oe.ContractUpdate:return"ContractUpdate";case Oe.FileCreate:return"FileCreate";case Oe.FileAppend:return"FileAppend";case Oe.FileUpdate:return"FileUpdate";case Oe.FileDelete:return"FileDelete";case Oe.CryptoGetAccountBalance:return"CryptoGetAccountBalance";case Oe.CryptoGetAccountRecords:return"CryptoGetAccountRecords";case Oe.CryptoGetInfo:return"CryptoGetInfo";case Oe.ContractCallLocal:return"ContractCallLocal";case Oe.ContractGetInfo:return"ContractGetInfo";case Oe.ContractGetBytecode:return"ContractGetBytecode";case Oe.GetBySolidityID:return"GetBySolidityID";case Oe.GetByKey:return"GetByKey";case Oe.CryptoGetLiveHash:return"CryptoGetLiveHash";case Oe.CryptoGetStakers:return"CryptoGetStakers";case Oe.FileGetContents:return"FileGetContents";case Oe.FileGetInfo:return"FileGetInfo";case Oe.TransactionGetRecord:return"TransactionGetRecord";case Oe.ContractGetRecords:return"ContractGetRecords";case Oe.CryptoCreate:return"CryptoCreate";case Oe.SystemDelete:return"SystemDelete";case Oe.SystemUndelete:return"SystemUndelete";case Oe.ContractDelete:return"ContractDelete";case Oe.Freeze:return"Freeze";case Oe.CreateTransactionRecord:return"CreateTransactionRecord";case Oe.CryptoAccountAutoRenew:return"CryptoAccountAutoRenew";case Oe.ContractAutoRenew:return"ContractAutoRenew";case Oe.GetVersionInfo:return"GetVersionInfo";case Oe.TransactionGetReceipt:return"TransactionGetReceipt";case Oe.ConsensusCreateTopic:return"ConsensusCreateTopic";case Oe.ConsensusUpdateTopic:return"ConsensusUpdateTopic";case Oe.ConsensusDeleteTopic:return"ConsensusDeleteTopic";case Oe.ConsensusGetTopicInfo:return"ConsensusGetTopicInfo";case Oe.ConsensusSubmitMessage:return"ConsensusSubmitMessage";case Oe.UncheckedSubmit:return"UncheckedSubmit";case Oe.TokenCreate:return"TokenCreate";case Oe.TokenGetInfo:return"TokenGetInfo";case Oe.TokenFreezeAccount:return"TokenFreezeAccount";case Oe.TokenUnfreezeAccount:return"TokenUnfreezeAccount";case Oe.TokenGrantKycToAccount:return"TokenGrantKycToAccount";case Oe.TokenRevokeKycFromAccount:return"TokenRevokeKycFromAccount";case Oe.TokenDelete:return"TokenDelete";case Oe.TokenUpdate:return"TokenUpdate";case Oe.TokenMint:return"TokenMint";case Oe.TokenBurn:return"TokenBurn";case Oe.TokenAccountWipe:return"TokenAccountWipe";case Oe.TokenAssociateToAccount:return"TokenAssociateToAccount";case Oe.TokenDissociateFromAccount:return"TokenDissociateFromAccount";case Oe.ScheduleCreate:return"ScheduleCreate";case Oe.ScheduleDelete:return"ScheduleDelete";case Oe.ScheduleSign:return"ScheduleSign";case Oe.ScheduleGetInfo:return"ScheduleGetInfo";case Oe.TokenGetAccountNftInfos:return"TokenGetAccountNftInfos";case Oe.TokenGetNftInfo:return"TokenGetNftInfo";case Oe.TokenGetNftInfos:return"TokenGetNftInfos";case Oe.TokenFeeScheduleUpdate:return"TokenFeeScheduleUpdate";case Oe.NetworkGetExecutionTime:return"NetworkGetExecutionTime";case Oe.TokenPause:return"TokenPause";case Oe.TokenUnpause:return"TokenUnpause";case Oe.CryptoApproveAllowance:return"CryptoApproveAllowance";case Oe.CryptoDeleteAllowance:return"CryptoDeleteAllowance";case Oe.GetAccountDetails:return"GetAccountDetails";case Oe.EthereumTransaction:return"EthereumTransaction";case Oe.NodeStakeUpdate:return"NodeStakeUpdate";case Oe.Prng:return"UtilPrng";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return Oe.None;case 1:return Oe.CryptoTransfer;case 2:return Oe.CryptoUpdate;case 3:return Oe.CryptoDelete;case 4:return Oe.CryptoAddLiveHash;case 5:return Oe.CryptoDeleteLiveHash;case 6:return Oe.ContractCall;case 7:return Oe.ContractCreate;case 8:return Oe.ContractUpdate;case 9:return Oe.FileCreate;case 10:return Oe.FileAppend;case 11:return Oe.FileUpdate;case 12:return Oe.FileDelete;case 13:return Oe.CryptoGetAccountBalance;case 14:return Oe.CryptoGetAccountRecords;case 15:return Oe.CryptoGetInfo;case 16:return Oe.ContractCallLocal;case 17:return Oe.ContractGetInfo;case 18:return Oe.ContractGetBytecode;case 19:return Oe.GetBySolidityID;case 20:return Oe.GetByKey;case 21:return Oe.CryptoGetLiveHash;case 22:return Oe.CryptoGetStakers;case 23:return Oe.FileGetContents;case 24:return Oe.FileGetInfo;case 25:return Oe.TransactionGetRecord;case 26:return Oe.ContractGetRecords;case 27:return Oe.CryptoCreate;case 28:return Oe.SystemDelete;case 29:return Oe.SystemUndelete;case 30:return Oe.ContractDelete;case 31:return Oe.Freeze;case 32:return Oe.CreateTransactionRecord;case 33:return Oe.CryptoAccountAutoRenew;case 34:return Oe.ContractAutoRenew;case 35:return Oe.GetVersionInfo;case 36:return Oe.TransactionGetReceipt;case 50:return Oe.ConsensusCreateTopic;case 51:return Oe.ConsensusUpdateTopic;case 52:return Oe.ConsensusDeleteTopic;case 53:return Oe.ConsensusGetTopicInfo;case 54:return Oe.ConsensusSubmitMessage;case 55:return Oe.UncheckedSubmit;case 56:return Oe.TokenCreate;case 58:return Oe.TokenGetInfo;case 59:return Oe.TokenFreezeAccount;case 60:return Oe.TokenUnfreezeAccount;case 61:return Oe.TokenGrantKycToAccount;case 62:return Oe.TokenRevokeKycFromAccount;case 63:return Oe.TokenDelete;case 64:return Oe.TokenUpdate;case 65:return Oe.TokenMint;case 66:return Oe.TokenBurn;case 67:return Oe.TokenAccountWipe;case 68:return Oe.TokenAssociateToAccount;case 69:return Oe.TokenDissociateFromAccount;case 70:return Oe.ScheduleCreate;case 71:return Oe.ScheduleDelete;case 72:return Oe.ScheduleSign;case 73:return Oe.ScheduleGetInfo;case 74:return Oe.TokenGetAccountNftInfos;case 75:return Oe.TokenGetNftInfo;case 76:return Oe.TokenGetNftInfos;case 77:return Oe.TokenFeeScheduleUpdate;case 78:return Oe.NetworkGetExecutionTime;case 79:return Oe.TokenPause;case 80:return Oe.TokenUnpause;case 81:return Oe.CryptoApproveAllowance;case 82:return Oe.CryptoDeleteAllowance;case 83:return Oe.GetAccountDetails;case 84:return Oe.EthereumTransaction;case 85:return Oe.NodeStakeUpdate;case 86:return Oe.Prng}throw new Error(`(BUG) RequestType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}Oe.None=new Oe(0),Oe.CryptoTransfer=new Oe(1),Oe.CryptoUpdate=new Oe(2),Oe.CryptoDelete=new Oe(3),Oe.CryptoAddLiveHash=new Oe(4),Oe.CryptoDeleteLiveHash=new Oe(5),Oe.ContractCall=new Oe(6),Oe.ContractCreate=new Oe(7),Oe.ContractUpdate=new Oe(8),Oe.FileCreate=new Oe(9),Oe.FileAppend=new Oe(10),Oe.FileUpdate=new Oe(11),Oe.FileDelete=new Oe(12),Oe.CryptoGetAccountBalance=new Oe(13),Oe.CryptoGetAccountRecords=new Oe(14),Oe.CryptoGetInfo=new Oe(15),Oe.ContractCallLocal=new Oe(16),Oe.ContractGetInfo=new Oe(17),Oe.ContractGetBytecode=new Oe(18),Oe.GetBySolidityID=new Oe(19),Oe.GetByKey=new Oe(20),Oe.CryptoGetLiveHash=new Oe(21),Oe.CryptoGetStakers=new Oe(22),Oe.FileGetContents=new Oe(23),Oe.FileGetInfo=new Oe(24),Oe.TransactionGetRecord=new Oe(25),Oe.ContractGetRecords=new Oe(26),Oe.CryptoCreate=new Oe(27),Oe.SystemDelete=new Oe(28),Oe.SystemUndelete=new Oe(29),Oe.ContractDelete=new Oe(30),Oe.Freeze=new Oe(31),Oe.CreateTransactionRecord=new Oe(32),Oe.CryptoAccountAutoRenew=new Oe(33),Oe.ContractAutoRenew=new Oe(34),Oe.GetVersionInfo=new Oe(35),Oe.TransactionGetReceipt=new Oe(36),Oe.ConsensusCreateTopic=new Oe(50),Oe.ConsensusUpdateTopic=new Oe(51),Oe.ConsensusDeleteTopic=new Oe(52),Oe.ConsensusGetTopicInfo=new Oe(53),Oe.ConsensusSubmitMessage=new Oe(54),Oe.UncheckedSubmit=new Oe(55),Oe.TokenCreate=new Oe(56),Oe.TokenGetInfo=new Oe(58),Oe.TokenFreezeAccount=new Oe(59),Oe.TokenUnfreezeAccount=new Oe(60),Oe.TokenGrantKycToAccount=new Oe(61),Oe.TokenRevokeKycFromAccount=new Oe(62),Oe.TokenDelete=new Oe(63),Oe.TokenUpdate=new Oe(64),Oe.TokenMint=new Oe(65),Oe.TokenBurn=new Oe(66),Oe.TokenAccountWipe=new Oe(67),Oe.TokenAssociateToAccount=new Oe(68),Oe.TokenDissociateFromAccount=new Oe(69),Oe.ScheduleCreate=new Oe(70),Oe.ScheduleDelete=new Oe(71),Oe.ScheduleSign=new Oe(72),Oe.ScheduleGetInfo=new Oe(73),Oe.TokenGetAccountNftInfos=new Oe(74),Oe.TokenGetNftInfo=new Oe(75),Oe.TokenGetNftInfos=new Oe(76),Oe.TokenFeeScheduleUpdate=new Oe(77),Oe.NetworkGetExecutionTime=new Oe(78),Oe.TokenPause=new Oe(79),Oe.TokenUnpause=new Oe(80),Oe.CryptoApproveAllowance=new Oe(81),Oe.CryptoDeleteAllowance=new Oe(82),Oe.GetAccountDetails=new Oe(83),Oe.EthereumTransaction=new Oe(84),Oe.NodeStakeUpdate=new Oe(85),Oe.Prng=new Oe(86);class ab extends ei{constructor(e={}){super(),this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId)}static _fromProtobuf(e){const t=e.fileGetContents;return new ab({fileId:null!=t.fileID?mr._fromProtobuf(t.fileID):void 0})}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.getFileContent(t)}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?mr.fromString(e):e.clone(),this}_mapResponseHeader(e){return e.fileGetContents.header}_mapResponse(e){return Promise.resolve(e.fileGetContents.fileContents.contents)}_onMakeRequest(e){return{fileGetContents:{header:e,fileID:null!=this._fileId?this._fileId._toProtobuf():null}}}_getLogId(){return`FileContentsQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("fileGetContents",ab._fromProtobuf);const{proto:cZ}=Rc;class ng{constructor(e){this.fileId=e.fileId,this.size=e.size,this.expirationTime=e.expirationTime,this.isDeleted=e.isDeleted,this.keys=e.keys,this.fileMemo=e.fileMemo,this.ledgerId=e.ledgerId,Object.freeze(this)}static _fromProtobuf(e){const t=e.size;return new ng({fileId:mr._fromProtobuf(e.fileID),size:t instanceof mt?t:mt.fromValue(t),expirationTime:Jn._fromProtobuf(e.expirationTime),isDeleted:e.deleted,keys:null!=e.keys?Vo.__fromProtobufKeyList(e.keys):new Vo,fileMemo:null!=e.memo?e.memo:"",ledgerId:null!=e.ledgerId?no.fromBytes(e.ledgerId):null})}_toProtobuf(){return{fileID:this.fileId._toProtobuf(),size:this.size,expirationTime:this.expirationTime._toProtobuf(),deleted:this.isDeleted,keys:this.keys._toProtobufKey().keyList,memo:this.fileMemo,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null}}static fromBytes(e){return ng._fromProtobuf(ln.proto.FileGetInfoResponse.FileInfo.decode(e))}toBytes(){return cZ.FileGetInfoResponse.FileInfo.encode(this._toProtobuf()).finish()}}class cb extends ei{constructor(e={}){super(),this._fileId=null,null!=e.fileId&&this.setFileId(e.fileId)}static _fromProtobuf(e){const t=e.fileGetInfo;return new cb({fileId:null!=t.fileID?mr._fromProtobuf(t.fileID):void 0})}get fileId(){return this._fileId}setFileId(e){return this._fileId="string"==typeof e?mr.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.getFileInfo(t)}_mapResponseHeader(e){return e.fileGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(ng._fromProtobuf(e.fileGetInfo.fileInfo))}_onMakeRequest(e){return{fileGetInfo:{header:e,fileID:null!=this._fileId?this._fileId._toProtobuf():null}}}_getLogId(){return`FileInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("fileGetInfo",cb._fromProtobuf);class lb extends $t{constructor(e={}){super(),this._fileId=null,this._keys=null,this._expirationTime=null,this._contents=null,this._fileMemo=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.keys&&this.setKeys(e.keys),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.contents&&this.setContents(e.contents),null!=e.fileMemo&&this.setFileMemo(e.fileMemo)}static _fromProtobuf(e,t,o,s,l){const p=l[0].fileUpdate;return $t._fromProtobufTransactions(new lb({fileId:null!=p.fileID?mr._fromProtobuf(p.fileID):void 0,keys:null!=p.keys&&null!=p.keys.keys?p.keys.keys.map(w=>qn._fromProtobufKey(w)):void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0,contents:null!=p.contents?p.contents:void 0,fileMemo:null!=p.memo&&null!=p.memo.value?p.memo.value:void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId="string"==typeof e?mr.fromString(e):e.clone(),this}get keys(){return this._keys}setKeys(e){if(this._requireNotFrozen(),e instanceof Vo&&null!=e.threshold)throw new Error("Cannot set threshold key as file key");return this._keys=e instanceof Vo?e.toArray():e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Jn?e:Jn.fromDate(e),this}get contents(){return this._contents}setContents(e){return this._requireNotFrozen(),this._contents=e instanceof Uint8Array?e:ed(e),this}get fileMemo(){return this._fileMemo}setFileMemo(e){return this._requireNotFrozen(),this._fileMemo=e,this}clearFileMemo(){return this._requireNotFrozen(),this._fileMemo=null,this}_validateChecksums(e){null!=this._fileId&&this._fileId.validateChecksum(e)}_execute(e,t){return e.file.updateFile(t)}_getTransactionDataCase(){return"fileUpdate"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null,contents:this._contents,memo:null!=this._fileMemo?{value:this._fileMemo}:null}}_getLogId(){return`FileUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("fileUpdate",lb._fromProtobuf);class ro{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case ro.UnknownFreezeType:return"UNKNOWN_FREEZE_TYPE";case ro.FreezeOnly:return"FREEZE_ONLY";case ro.PrepareUpgrade:return"PREPARE_UPGRADE";case ro.FreezeUpgrade:return"FREEZE_UPGRADE";case ro.FreezeAbort:return"FREEZE_ABORT";case ro.TelemetryUpgrade:return"TELEMETRY_UPGRADE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return ro.UnknownFreezeType;case 1:return ro.FreezeOnly;case 2:return ro.PrepareUpgrade;case 3:return ro.FreezeUpgrade;case 4:return ro.FreezeAbort;case 5:return ro.TelemetryUpgrade;default:throw new Error(`(BUG) Status.fromCode() does not handle code: ${e}`)}}valueOf(){return this._code}}ro.UnknownFreezeType=new ro(0),ro.FreezeOnly=new ro(1),ro.PrepareUpgrade=new ro(2),ro.FreezeUpgrade=new ro(3),ro.FreezeAbort=new ro(4),ro.TelemetryUpgrade=new ro(5);class ub extends $t{constructor(e={}){super(),this._startTime=null,this._startTimestamp=null,this._endTime=null,this._fileId=null,this._fileHash=null,this._freezeType=null,null!=e.startTime&&this.setStartTime(e.startTime.hour,e.startTime.minute),null!=e.endTime&&this.setEndTime(e.endTime.hour,e.endTime.minute),null!=e.startTimestamp&&this.setStartTimestamp(e.startTimestamp),null!=e.updateFileId&&this.setUpdateFileId(e.updateFileId),null!=e.fileId&&this.setFileId(e.fileId),null!=e.fileHash&&this.setFileHash(e.fileHash),null!=e.freezeType&&this.setFreezeType(e.freezeType)}static _fromProtobuf(e,t,o,s,l){const p=l[0].freeze;return $t._fromProtobufTransactions(new ub({startTime:null!=p.startHour&&null!=p.startMin?{hour:p.startHour,minute:p.startMin}:void 0,endTime:null!=p.endHour&&null!=p.endMin?{hour:p.endHour,minute:p.endMin}:void 0,startTimestamp:null!=p.startTime?Jn._fromProtobuf(p.startTime):void 0,updateFileId:null!=p.updateFile?mr._fromProtobuf(p.updateFile):void 0,fileHash:null!=p.fileHash?p.fileHash:void 0,freezeType:null!=p.freezeType?ro._fromCode(p.freezeType):void 0}),e,t,o,s,l)}get startTime(){return null}setStartTime(e,t){if(this._requireNotFrozen(),"string"==typeof e){const o=e.split(":");this._startTime={hour:Number(o[0]),minute:Number(o[1])}}else this._startTime={hour:e,minute:t};return this}get startTimestamp(){return this._startTimestamp}setStartTimestamp(e){return this._requireNotFrozen(),this._startTimestamp=e,this}get endTime(){return console.warn("`FreezeTransaction.endTime` is deprecated"),this._endTime}setEndTime(e,t){if(console.warn("`FreezeTransaction.endTime` is deprecated"),this._requireNotFrozen(),"string"==typeof e){const o=e.split(":");this._endTime={hour:Number(o[0]),minute:Number(o[1])}}else this._endTime={hour:e,minute:t};return this}get updateFileId(){return this.fileId}setUpdateFileId(e){return this.setFileId(e)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e,this}get fileHash(){return this._fileHash}setFileHash(e){return this._requireNotFrozen(),this._fileHash="string"==typeof e?Mn(e):e,this}get freezeType(){return this._freezeType}setFreezeType(e){return this._requireNotFrozen(),this._freezeType=e,this}_getTransactionDataCase(){return"freeze"}_makeTransactionData(){return{startTime:null!=this._startTimestamp?this._startTimestamp._toProtobuf():null,updateFile:null!=this._fileId?this._fileId._toProtobuf():null,fileHash:this._fileHash,freezeType:null!=this._freezeType?this._freezeType.valueOf():null}}_getLogId(){return`FreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("freeze",ub._fromProtobuf);class db extends $t{constructor(e={}){super(),this._hash=null,this._keys=null,this._duration=null,this._accountId=null,null!=e.hash&&this.setHash(e.hash),null!=e.keys&&this.setKeys(e.keys),null!=e.duration&&this.setDuration(e.duration),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const w=l[0].cryptoAddLiveHash.liveHash;return $t._fromProtobufTransactions(new db({hash:null!=w.hash?w.hash:void 0,keys:null!=w.keys&&null!=w.keys.keys?w.keys.keys.map(S=>qn._fromProtobufKey(S)):void 0,duration:null!=w.duration&&null!=w.duration.seconds?w.duration.seconds:void 0,accountId:null!=w.accountId?Ue._fromProtobuf(w.accountId):void 0}),e,t,o,s,l)}get hash(){return this._hash}setHash(e){return this._requireNotFrozen(),this._hash=e,this}get keys(){return this._keys}setKeys(e){return this._requireNotFrozen(),this._keys=e instanceof Vo?e.toArray():e,this}get duration(){return this._duration}setDuration(e){return this._requireNotFrozen(),this._duration=e instanceof Hr?e:new Hr(e),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.addLiveHash(t)}_getTransactionDataCase(){return"cryptoAddLiveHash"}_makeTransactionData(){return{liveHash:{hash:this._hash,keys:null!=this._keys?{keys:this._keys.map(e=>e._toProtobufKey())}:void 0,duration:null!=this._duration?this._duration._toProtobuf():null,accountId:null!=this._accountId?this._accountId._toProtobuf():null}}}_getLogId(){return`LiveHashAddTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoAddLiveHash",db._fromProtobuf);class fb extends $t{constructor(e={}){super(),this._hash=null,this._accountId=null,null!=e.hash&&this.setHash(e.hash),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoDeleteLiveHash;return $t._fromProtobufTransactions(new fb({hash:null!=p.liveHashToDelete?p.liveHashToDelete:void 0,accountId:null!=p.accountOfLiveHash?Ue._fromProtobuf(p.accountOfLiveHash):void 0}),e,t,o,s,l)}get hash(){return this._hash}setHash(e){return this._requireNotFrozen(),this._hash=e,this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.deleteLiveHash(t)}_getTransactionDataCase(){return"cryptoDeleteLiveHash"}_makeTransactionData(){return{liveHashToDelete:this._hash,accountOfLiveHash:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`LiveHashDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoDeleteLiveHash",fb._fromProtobuf);class hb extends ei{constructor(e={}){super(),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._hash=null,null!=e.hash&&this.setHash(e.hash)}static _fromProtobuf(e){const t=e.cryptoGetLiveHash;return new hb({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0,hash:null!=t.hash?t.hash:void 0})}get accountId(){return this._accountId}setAccountId(e){return this._accountId=e instanceof Ue?e:Ue.fromString(e),this}get liveHash(){return this._hash}setHash(e){return this._hash=e,this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.crypto.getLiveHash(t)}_mapResponseHeader(e){return e.cryptoGetLiveHash.header}_mapResponse(e){return Promise.resolve(Qp._fromProtobuf(e.cryptoGetLiveHash.liveHash))}_onMakeRequest(e){return{cryptoGetLiveHash:{header:e,accountID:null!=this._accountId?this._accountId._toProtobuf():null,hash:this._hash}}}_getLogId(){return`LiveHashQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("cryptoGetLiveHash",hb._fromProtobuf);class g3{constructor(e){this.major=e.major,this.minor=e.minor,this.patch=e.patch,Object.freeze(this)}static _fromProtobuf(e){return new g3({major:e.major,minor:e.minor,patch:e.patch})}_toProtobuf(){return{major:this.major,minor:this.minor,patch:this.patch}}static fromBytes(e){return g3._fromProtobuf(ln.proto.SemanticVersion.decode(e))}toBytes(){return ln.proto.SemanticVersion.encode(this._toProtobuf()).finish()}}class rg{constructor(e){this.protobufVersion=e.protobufVersion,this.servicesVesion=e.servicesVesion,Object.freeze(this)}static _fromProtobuf(e){return new rg({protobufVersion:g3._fromProtobuf(e.hapiProtoVersion),servicesVesion:g3._fromProtobuf(e.hederaServicesVersion)})}_toProtobuf(){return{hapiProtoVersion:this.protobufVersion._toProtobuf(),hederaServicesVersion:this.servicesVesion._toProtobuf()}}static fromBytes(e){return rg._fromProtobuf(ln.proto.NetworkGetVersionInfoResponse.decode(e))}toBytes(){return ln.proto.NetworkGetVersionInfoResponse.encode(this._toProtobuf()).finish()}}class pb extends ei{constructor(){super()}static _fromProtobuf(e){return new pb}_execute(e,t){return e.network.getVersionInfo(t)}_mapResponseHeader(e){return e.networkGetVersionInfo.header}_mapResponse(e){return Promise.resolve(rg._fromProtobuf(e.networkGetVersionInfo))}_onMakeRequest(e){return{networkGetVersionInfo:{header:e}}}_getLogId(){return`NetworkVersionInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("networkGetVersionInfo",pb._fromProtobuf);class og extends $t{constructor(e={}){super(),this._range=null,null!=e.range&&this.setRange(e.range)}setRange(e){return this._range=e,this}get range(){return this._range}_validateChecksums(e){null!=this._range&&X0(this._range)&&this._validateChecksums(e)}_execute(e,t){return e.util.prng(t)}static _fromProtobuf(e,t,o,s,l){return $t._fromProtobufTransactions(new og({range:l[0].utilPrng.range}),e,t,o,s,l)}_getTransactionDataCase(){return"utilPrng"}_makeTransactionData(){return{range:this.range}}_getLogId(){return`RandomGenerate:${this._transactionIds.current.validStart.toString()}`}}rr.set("utilPrng",og._fromProtobuf);class ig extends $t{constructor(e={}){super(),this._adminKey=null,this._scheduledTransaction=null,this._payerAccountId=null,this._scheduleMemo=null,this._scheduledSignerPublicKeys=new Set,this._expirationTime=null,this._waitForExpiry=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.payerAccountID&&this.setPayerAccountId(e.payerAccountID),null!=e.scheduleMemo&&this.setScheduleMemo(e.scheduleMemo),this._defaultMaxTransactionFee=new mn(5)}static _fromProtobuf(e,t,o,s,l){const u=l[0],p=u.scheduleCreate,w=new ig({adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,payerAccountID:null!=p.payerAccountID?Ue._fromProtobuf(p.payerAccountID):void 0,scheduleMemo:null!=p.memo?p.memo:void 0,waitForExpiry:null!=p.waitForExpiry?p.waitForExpiry:void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0});if(null!=u.scheduleCreate){const V=ln.proto.TransactionBody.encode(u.scheduleCreate.scheduledTransactionBody).finish(),he={signedTransactionBytes:ln.proto.SignedTransaction.encode({bodyBytes:V}).finish()},xe=ln.proto.TransactionList.encode({transactionList:[he]}).finish(),Ee=$t.fromBytes(xe);w._setScheduledTransaction(Ee)}return $t._fromProtobufTransactions(w,e,t,o,s,l)}_setScheduledTransaction(e){return this._scheduledTransaction=e,this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get payerAccountId(){return this._payerAccountId}setPayerAccountId(e){return this._requireNotFrozen(),this._payerAccountId=e,this}setScheduleMemo(e){return this._requireNotFrozen(),this._scheduleMemo=e,this}get getScheduleMemo(){return this._requireNotFrozen(),this._scheduleMemo}setScheduledTransaction(e){return this._requireNotFrozen(),e._requireNotFrozen(),this._scheduledTransaction=e.schedule()._scheduledTransaction,this}_validateChecksums(e){null!=this._payerAccountId&&this._payerAccountId.validateChecksum(e)}_execute(e,t){return e.schedule.createSchedule(t)}_getTransactionDataCase(){return"scheduleCreate"}_makeTransactionData(){return{adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,payerAccountID:null!=this._payerAccountId?this._payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this._scheduledTransaction?this._scheduledTransaction._getScheduledTransactionBody():null,memo:this._scheduleMemo,waitForExpiry:this._waitForExpiry,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`ScheduleCreateTransaction:${this._transactionIds.current.validStart.toString()}`}setExpirationTime(e){return this._expirationTime=e,this}get expirationTime(){return this._requireNotFrozen(),this._expirationTime}setWaitForExpiry(e){return this._waitForExpiry=e,this}get waitForExpiry(){return this._requireNotFrozen(),this._waitForExpiry}}rr.set("scheduleCreate",ig._fromProtobuf),M2.push(()=>new ig);class gb extends $t{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId),this._defaultMaxTransactionFee=new mn(5)}static _fromProtobuf(e,t,o,s,l){const p=l[0].scheduleDelete;return $t._fromProtobufTransactions(new gb({scheduleId:null!=p.scheduleID?ki._fromProtobuf(p.scheduleID):void 0}),e,t,o,s,l)}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._requireNotFrozen(),this._scheduleId="string"==typeof e?ki.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.deleteSchedule(t)}_getTransactionDataCase(){return"scheduleDelete"}_makeTransactionData(){return{scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}_getLogId(){return`ScheduleDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("scheduleDelete",gb._fromProtobuf);const{proto:sg}=Rc;class Ab{constructor(e){this.scheduleId=e.scheduleId,this.creatorAccountId=e.creatorAccountID,this.payerAccountId=e.payerAccountID,this.schedulableTransactionBody=e.schedulableTransactionBody,this.signers=e.signers,this.scheduleMemo=e.scheduleMemo,this.adminKey=null!=e.adminKey?e.adminKey:null,this.expirationTime=e.expirationTime,this.executed=e.executed,this.deleted=e.deleted,this.scheduledTransactionId=e.scheduledTransactionId,this.waitForExpiry=e.waitForExpiry,Object.freeze(this)}static _fromProtobuf(e){return new Ab({scheduleId:ki._fromProtobuf(e.scheduleID),creatorAccountID:null!=e.creatorAccountID?Ue._fromProtobuf(e.creatorAccountID):null,payerAccountID:null!=e.payerAccountID?Ue._fromProtobuf(e.payerAccountID):null,schedulableTransactionBody:null!=e.scheduledTransactionBody?e.scheduledTransactionBody:null,adminKey:null!=e.adminKey?qn._fromProtobufKey(e.adminKey):null,signers:null!=e.signers?Vo.__fromProtobufKeyList(e.signers):null,scheduleMemo:null!=e.memo?e.memo:null,expirationTime:null!=e.expirationTime?Jn._fromProtobuf(e.expirationTime):null,executed:null!=e.executionTime?Jn._fromProtobuf(e.executionTime):null,deleted:null!=e.deletionTime?Jn._fromProtobuf(e.deletionTime):null,scheduledTransactionId:null!=e.scheduledTransactionID?to._fromProtobuf(e.scheduledTransactionID):null,waitForExpiry:null!=e.waitForExpiry&&e.waitForExpiry})}_toProtobuf(){return{scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,creatorAccountID:null!=this.creatorAccountId?this.creatorAccountId._toProtobuf():null,payerAccountID:null!=this.payerAccountId?this.payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this.schedulableTransactionBody?this.schedulableTransactionBody:null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,signers:null!=this.signers?this.signers._toProtobufKey().keyList:null,memo:null!=this.scheduleMemo?this.scheduleMemo:"",expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,waitForExpiry:this.waitForExpiry}}get scheduledTransaction(){if(null==this.schedulableTransactionBody)throw new Error("Scheduled transaction body is empty");const e=new sg.SchedulableTransactionBody(this.schedulableTransactionBody),t=e.data;return $t.fromBytes(sg.TransactionList.encode({transactionList:[{signedTransactionBytes:sg.SignedTransaction.encode({bodyBytes:sg.TransactionBody.encode({transactionFee:this.schedulableTransactionBody.transactionFee,memo:this.schedulableTransactionBody.memo,[t]:e[t]}).finish()}).finish()}]}).finish())}}class mb extends ei{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId)}static _fromProtobuf(e){const t=e.scheduleGetInfo;return new mb({scheduleId:null!=t.scheduleID?ki._fromProtobuf(t.scheduleID):void 0})}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._scheduleId="string"==typeof e?ki.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.getScheduleInfo(t)}_mapResponseHeader(e){return e.scheduleGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(Ab._fromProtobuf(e.scheduleGetInfo.scheduleInfo))}_onMakeRequest(e){return{scheduleGetInfo:{header:e,scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}}_getLogId(){return`ScheduleInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("scheduleGetInfo",mb._fromProtobuf);class yb extends $t{constructor(e={}){super(),this._scheduleId=null,null!=e.scheduleId&&this.setScheduleId(e.scheduleId),this._defaultMaxTransactionFee=new mn(5)}static _fromProtobuf(e,t,o,s,l){const p=l[0].scheduleSign;return $t._fromProtobufTransactions(new yb({scheduleId:null!=p.scheduleID?ki._fromProtobuf(p.scheduleID):void 0}),e,t,o,s,l)}get scheduleId(){return this._scheduleId}setScheduleId(e){return this._requireNotFrozen(),this._scheduleId="string"==typeof e?ki.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._scheduleId&&this._scheduleId.validateChecksum(e)}_execute(e,t){return e.schedule.signSchedule(t)}_getTransactionDataCase(){return"scheduleSign"}_makeTransactionData(){return{scheduleID:null!=this._scheduleId?this._scheduleId._toProtobuf():null}}_getLogId(){return`ScheduleSignTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("scheduleSign",yb._fromProtobuf);class bb extends $t{constructor(e={}){super(),this._fileId=null,this._contractId=null,this._expirationTime=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.contractId&&this.setContractId(e.contractId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime)}static _fromProtobuf(e,t,o,s,l){const p=l[0].systemDelete;return $t._fromProtobufTransactions(new bb({fileId:null!=p.fileID?mr._fromProtobuf(p.fileID):void 0,contractId:null!=p.contractID?Kn._fromProtobuf(p.contractID):void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e instanceof mr?e:mr.fromString(e),this}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId=e instanceof Kn?e:Kn.fromString(e),this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e,this}_execute(e,t){return null!=this._fileId?e.file.systemDelete(t):e.smartContract.systemDelete(t)}_getTransactionDataCase(){return"systemDelete"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`SystemDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("systemDelete",bb._fromProtobuf);class vb extends $t{constructor(e={}){super(),this._fileId=null,this._contractId=null,null!=e.fileId&&this.setFileId(e.fileId),null!=e.contractId&&this.setContractId(e.contractId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].systemUndelete;return $t._fromProtobufTransactions(new vb({fileId:null!=p.fileID?mr._fromProtobuf(p.fileID):void 0,contractId:null!=p.contractID?Kn._fromProtobuf(p.contractID):void 0}),e,t,o,s,l)}get fileId(){return this._fileId}setFileId(e){return this._requireNotFrozen(),this._fileId=e instanceof mr?e:mr.fromString(e),this}get contractId(){return this._contractId}setContractId(e){return this._requireNotFrozen(),this._contractId=e instanceof Kn?e:Kn.fromString(e),this}_execute(e,t){return null!=this._fileId?e.file.systemUndelete(t):e.smartContract.systemUndelete(t)}_getTransactionDataCase(){return"systemUndelete"}_makeTransactionData(){return{fileID:null!=this._fileId?this._fileId._toProtobuf():null,contractID:null!=this._contractId?this._contractId._toProtobuf():null}}_getLogId(){return`SystemUndeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("systemUndelete",vb._fromProtobuf);class ag extends $t{constructor(e={}){super(),this._tokenIds=null,this._accountId=null,this._defaultMaxTransactionFee=new mn(5),null!=e.tokenIds&&this.setTokenIds(e.tokenIds),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenAssociate;return $t._fromProtobufTransactions(new ag({tokenIds:null!=p.tokens?p.tokens.map(w=>tn._fromProtobuf(w)):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenIds(){return this._tokenIds}setTokenIds(e){return this._requireNotFrozen(),this._tokenIds=e.map(t=>"string"==typeof t?tn.fromString(t):t.clone()),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e);for(const t of null!=this._tokenIds?this._tokenIds:[])t?.validateChecksum(e)}_execute(e,t){return e.token.associateTokens(t)}_getTransactionDataCase(){return"tokenAssociate"}_makeTransactionData(){return{tokens:null!=this._tokenIds?this._tokenIds.map(e=>e._toProtobuf()):null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenAssociateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenAssociate",ag._fromProtobuf);class cg extends $t{constructor(e={}){super(),this._tokenId=null,this._amount=null,this._serials=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.amount&&this.setAmount(e.amount),null!=e.serials&&this.setSerials(e.serials)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenBurn;return $t._fromProtobufTransactions(new cg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,amount:null!=p.amount?p.amount:void 0,serials:null!=p.serialNumbers?p.serialNumbers:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof mt?e:mt.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}get serials(){return this._serials}setSerials(e){return this._requireNotFrozen(),this._serials=e.map(t=>t instanceof mt?t:mt.fromValue(t)),this}_execute(e,t){return e.token.burnToken(t)}_getTransactionDataCase(){return"tokenBurn"}_makeTransactionData(){return{amount:this._amount,serialNumbers:this._serials,token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenBurnTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenBurn",cg._fromProtobuf);class Di{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case Di.FungibleCommon:return"FUNGIBLE_COMMON";case Di.NonFungibleUnique:return"NON_FUNGIBLE_UNIQUE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return Di.FungibleCommon;case 1:return Di.NonFungibleUnique}throw new Error(`(BUG) TokenType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}Di.FungibleCommon=new Di(0),Di.NonFungibleUnique=new Di(1);class Bi{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case Bi.Infinite:return"INFINITE";case Bi.Finite:return"FINITE";default:return`UNKNOWN (${this._code})`}}static _fromCode(e){switch(e){case 0:return Bi.Infinite;case 1:return Bi.Finite}throw new Error(`(BUG) TokenSupplyType.fromCode() does not handle code: ${e}`)}valueOf(){return this._code}}Bi.Infinite=new Bi(0),Bi.Finite=new Bi(1);class lg extends $t{constructor(e={}){super(),this._tokenName=null,this._tokenSymbol=null,this._decimals=null,this._initialSupply=null,this._treasuryAccountId=null,this._adminKey=null,this._kycKey=null,this._freezeKey=null,this._pauseKey=null,this._wipeKey=null,this._supplyKey=null,this._feeScheduleKey=null,this._freezeDefault=null,this._autoRenewAccountId=null,this._expirationTime=null,this._autoRenewPeriod=new Hr(d3),this._tokenMemo=null,this._customFees=[],this._tokenType=null,this._supplyType=null,this._maxSupply=null,this._defaultMaxTransactionFee=new mn(30),null!=e.tokenName&&this.setTokenName(e.tokenName),null!=e.tokenSymbol&&this.setTokenSymbol(e.tokenSymbol),null!=e.decimals&&this.setDecimals(e.decimals),null!=e.initialSupply&&this.setInitialSupply(e.initialSupply),null!=e.treasuryAccountId&&this.setTreasuryAccountId(e.treasuryAccountId),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.kycKey&&this.setKycKey(e.kycKey),null!=e.freezeKey&&this.setFreezeKey(e.freezeKey),null!=e.pauseKey&&this.setPauseKey(e.pauseKey),null!=e.wipeKey&&this.setWipeKey(e.wipeKey),null!=e.supplyKey&&this.setSupplyKey(e.supplyKey),null!=e.feeScheduleKey&&this.setFeeScheduleKey(e.feeScheduleKey),null!=e.freezeDefault&&this.setFreezeDefault(e.freezeDefault),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.tokenMemo&&this.setTokenMemo(e.tokenMemo),null!=e.customFees&&this.setCustomFees(e.customFees),null!=e.tokenType&&this.setTokenType(e.tokenType),null!=e.supplyType&&this.setSupplyType(e.supplyType),null!=e.maxSupply&&this.setMaxSupply(e.maxSupply)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenCreation;return $t._fromProtobufTransactions(new lg({tokenName:null!=p.name?p.name:void 0,tokenSymbol:null!=p.symbol?p.symbol:void 0,decimals:null!=p.decimals?p.decimals:void 0,initialSupply:null!=p.initialSupply?p.initialSupply:void 0,treasuryAccountId:null!=p.treasury?Ue._fromProtobuf(p.treasury):void 0,adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,kycKey:null!=p.kycKey?qn._fromProtobufKey(p.kycKey):void 0,freezeKey:null!=p.freezeKey?qn._fromProtobufKey(p.freezeKey):void 0,pauseKey:null!=p.pauseKey?qn._fromProtobufKey(p.pauseKey):void 0,wipeKey:null!=p.wipeKey?qn._fromProtobufKey(p.wipeKey):void 0,supplyKey:null!=p.supplyKey?qn._fromProtobufKey(p.supplyKey):void 0,feeScheduleKey:null!=p.feeScheduleKey?qn._fromProtobufKey(p.feeScheduleKey):void 0,freezeDefault:null!=p.freezeDefault?p.freezeDefault:void 0,autoRenewAccountId:null!=p.autoRenewAccount?Ue._fromProtobuf(p.autoRenewAccount):void 0,expirationTime:null!=p.expiry?Jn._fromProtobuf(p.expiry):void 0,autoRenewPeriod:null!=p.autoRenewPeriod?Hr._fromProtobuf(p.autoRenewPeriod):void 0,tokenMemo:null!=p.memo?p.memo:void 0,customFees:null!=p.customFees?p.customFees.map(w=>null!=w.fixedFee?Wc._fromProtobuf(w):null!=w.fractionalFee?dd._fromProtobuf(w):fd._fromProtobuf(w)):void 0,tokenType:null!=p.tokenType?Di._fromCode(p.tokenType):void 0,supplyType:null!=p.supplyType?Bi._fromCode(p.supplyType):void 0,maxSupply:null!=p.maxSupply?p.maxSupply:void 0}),e,t,o,s,l)}get tokenName(){return this._tokenName}setTokenName(e){return this._requireNotFrozen(),this._tokenName=e,this}get tokenSymbol(){return this._tokenSymbol}setTokenSymbol(e){return this._requireNotFrozen(),this._tokenSymbol=e,this}get decimals(){return this._decimals}setDecimals(e){return this._requireNotFrozen(),this._decimals=e instanceof mt?e:mt.fromValue(e),this}get initialSupply(){return this._initialSupply}setInitialSupply(e){return this._requireNotFrozen(),this._initialSupply=mt.fromValue(e),this}get treasuryAccountId(){return this._treasuryAccountId}setTreasuryAccountId(e){return this._requireNotFrozen(),this._treasuryAccountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get kycKey(){return this._kycKey}setKycKey(e){return this._requireNotFrozen(),this._kycKey=e,this}get freezeKey(){return this._freezeKey}setFreezeKey(e){return this._requireNotFrozen(),this._freezeKey=e,this}get pauseKey(){return this._pauseKey}setPauseKey(e){return this._requireNotFrozen(),this._pauseKey=e,this}get wipeKey(){return this._wipeKey}setWipeKey(e){return this._requireNotFrozen(),this._wipeKey=e,this}get supplyKey(){return this._supplyKey}setSupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}get feeScheduleKey(){return this._feeScheduleKey}setFeeScheduleKey(e){return this._requireNotFrozen(),this._feeScheduleKey=e,this}get freezeDefault(){return this._freezeDefault}setFreezeDefault(e){return this._requireNotFrozen(),this._freezeDefault=e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._autoRenewPeriod=null,this._expirationTime=e instanceof Jn?e:Jn.fromDate(e),this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Ue?e:Ue.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}get tokenMemo(){return this._tokenMemo}setTokenMemo(e){return this._requireNotFrozen(),this._tokenMemo=e,this}get customFees(){return this._customFees}setCustomFees(e){return this._customFees=e,this}get tokenType(){return this._tokenType}setTokenType(e){return this._tokenType=e,this}get supplyType(){return this._supplyType}setSupplyType(e){return this._supplyType=e,this}get maxSupply(){return this._maxSupply}setMaxSupply(e){return this._maxSupply="number"==typeof e?mt.fromNumber(e):e,this}_freezeWithAccountId(e){super._freezeWithAccountId(e),null!=this._autoRenewPeriod&&null!=e&&(this._autoRenewAccountId=e)}freezeWith(e){return null!=e&&null!=e.operatorAccountId&&this._freezeWithAccountId(e.operatorAccountId),super.freezeWith(e)}_validateChecksums(e){null!=this._treasuryAccountId&&this._treasuryAccountId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.token.createToken(t)}_getTransactionDataCase(){return"tokenCreation"}_makeTransactionData(){return{name:this._tokenName,symbol:this._tokenSymbol,decimals:null!=this._decimals?this._decimals.toInt():null,initialSupply:this._initialSupply,treasury:null!=this._treasuryAccountId?this._treasuryAccountId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,kycKey:null!=this._kycKey?this._kycKey._toProtobufKey():null,freezeKey:null!=this._freezeKey?this._freezeKey._toProtobufKey():null,pauseKey:null!=this._pauseKey?this._pauseKey._toProtobufKey():null,wipeKey:null!=this._wipeKey?this._wipeKey._toProtobufKey():null,supplyKey:null!=this._supplyKey?this._supplyKey._toProtobufKey():null,feeScheduleKey:null!=this._feeScheduleKey?this._feeScheduleKey._toProtobufKey():null,freezeDefault:this._freezeDefault,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,expiry:null!=this._expirationTime?this._expirationTime._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,memo:this._tokenMemo,customFees:this.customFees.map(e=>e._toProtobuf()),tokenType:null!=this._tokenType?this._tokenType._code:null,supplyType:null!=this._supplyType?this._supplyType._code:null,maxSupply:this.maxSupply}}_getLogId(){return`TokenCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenCreation",lg._fromProtobuf);class ug extends $t{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenDeletion;return $t._fromProtobufTransactions(new ug({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.deleteToken(t)}_getTransactionDataCase(){return"tokenDeletion"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenDeletion",ug._fromProtobuf);class dg extends $t{constructor(e={}){super(),this._tokenIds=null,this._accountId=null,this._defaultMaxTransactionFee=new mn(5),null!=e.tokenIds&&this.setTokenIds(e.tokenIds),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenDissociate;return $t._fromProtobufTransactions(new dg({tokenIds:null!=p.tokens?p.tokens.map(w=>tn._fromProtobuf(w)):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenIds(){return this._tokenIds}setTokenIds(e){return this._requireNotFrozen(),this._tokenIds=e.map(t=>"string"==typeof t?tn.fromString(t):t.clone()),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._accountId&&this._accountId.validateChecksum(e);for(const t of null!=this._tokenIds?this._tokenIds:[])t?.validateChecksum(e)}_execute(e,t){return e.token.dissociateTokens(t)}_getTransactionDataCase(){return"tokenDissociate"}_makeTransactionData(){return{tokens:null!=this._tokenIds?this._tokenIds.map(e=>e._toProtobuf()):null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenDissociateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenDissociate",dg._fromProtobuf);class fg extends $t{constructor(e={}){super(),this._tokenId=null,this._customFees=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.customFees&&this.setCustomFees(e.customFees)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenFeeScheduleUpdate;return $t._fromProtobufTransactions(new fg({tokenId:null!=p.tokenId?tn._fromProtobuf(p.tokenId):void 0,customFees:null!=p.customFees?p.customFees.map(w=>null!=w.fixedFee?Wc._fromProtobuf(w):null!=w.fractionalFee?dd._fromProtobuf(w):fd._fromProtobuf(w)):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):tn._fromProtobuf(e._toProtobuf()),this}get customFees(){return this._customFees}setCustomFees(e){return this._requireNotFrozen(),this._customFees=e,this}_execute(e,t){return e.token.updateTokenFeeSchedule(t)}_getTransactionDataCase(){return"tokenFeeScheduleUpdate"}_makeTransactionData(){return{tokenId:null!=this._tokenId?this._tokenId._toProtobuf():null,customFees:this._customFees.map(e=>e._toProtobuf())}}_getLogId(){return`TokenFeeScheduleUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenFeeScheduleUpdate",fg._fromProtobuf);class hg extends $t{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenFreeze;return $t._fromProtobufTransactions(new hg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.freezeTokenAccount(t)}_getTransactionDataCase(){return"tokenFreeze"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenFreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenFreeze",hg._fromProtobuf);class pg extends $t{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenGrantKyc;return $t._fromProtobufTransactions(new pg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.grantKycToTokenAccount(t)}_getTransactionDataCase(){return"tokenGrantKyc"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenGrantKycTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenGrantKyc",pg._fromProtobuf);class gg{constructor(e){this.tokenId=e.tokenId,this.name=e.name,this.symbol=e.symbol,this.decimals=e.decimals,this.totalSupply=e.totalSupply,this.treasuryAccountId=e.treasuryAccountId,this.adminKey=e.adminKey,this.kycKey=e.kycKey,this.freezeKey=e.freezeKey,this.pauseKey=e.pauseKey,this.wipeKey=e.wipeKey,this.supplyKey=e.supplyKey,this.feeScheduleKey=e.feeScheduleKey,this.defaultFreezeStatus=e.defaultFreezeStatus,this.defaultKycStatus=e.defaultKycStatus,this.pauseStatus=e.pauseStatus,this.isDeleted=e.isDeleted,this.autoRenewAccountId=e.autoRenewAccountId,this.autoRenewPeriod=e.autoRenewPeriod,this.expirationTime=e.expirationTime,this.tokenMemo=e.tokenMemo,this.customFees=e.customFees,this.tokenType=e.tokenType,this.supplyType=e.supplyType,this.maxSupply=e.maxSupply,this.ledgerId=e.ledgerId}static _fromProtobuf(e){const t=e.defaultFreezeStatus,o=e.defaultKycStatus,s=e.pauseStatus,l=null!=e.autoRenewAccount?Ue._fromProtobuf(e.autoRenewAccount):new Ue(0);return new gg({tokenId:tn._fromProtobuf(e.tokenId),name:e.name,symbol:e.symbol,decimals:e.decimals,totalSupply:mt.fromValue(e.totalSupply),treasuryAccountId:null!=e.treasury?Ue._fromProtobuf(e.treasury):null,adminKey:null!=e.adminKey?qn._fromProtobufKey(e.adminKey):null,kycKey:null!=e.kycKey?qn._fromProtobufKey(e.kycKey):null,freezeKey:null!=e.freezeKey?qn._fromProtobufKey(e.freezeKey):null,pauseKey:null!=e.pauseKey?qn._fromProtobufKey(e.pauseKey):null,wipeKey:null!=e.wipeKey?qn._fromProtobufKey(e.wipeKey):null,supplyKey:null!=e.supplyKey?qn._fromProtobufKey(e.supplyKey):null,feeScheduleKey:null!=e.feeScheduleKey?qn._fromProtobufKey(e.feeScheduleKey):null,defaultFreezeStatus:0===t?null:1==t,defaultKycStatus:0===o?null:1==o,pauseStatus:0===s?null:1==s,isDeleted:e.deleted,autoRenewAccountId:0==l.shard.toInt()&&0==l.realm.toInt()&&0==l.num.toInt()?null:l,autoRenewPeriod:null!=e.autoRenewPeriod?Hr._fromProtobuf(e.autoRenewPeriod):null,expirationTime:null!=e.expiry?Jn._fromProtobuf(e.expiry):null,tokenMemo:null!=e.memo?e.memo:"",customFees:null!=e.customFees?e.customFees.map(u=>null!=u.fixedFee?Wc._fromProtobuf(u):null!=u.fractionalFee?dd._fromProtobuf(u):fd._fromProtobuf(u)):[],tokenType:null!=e.tokenType?Di._fromCode(e.tokenType):null,supplyType:null!=e.supplyType?Bi._fromCode(e.supplyType):null,maxSupply:null!=e.maxSupply?e.maxSupply:null,ledgerId:null!=e.ledgerId?no.fromBytes(e.ledgerId):null})}_toProtobuf(){return{tokenId:this.tokenId._toProtobuf(),name:this.name,symbol:this.symbol,decimals:this.decimals,totalSupply:this.totalSupply,treasury:null!=this.treasuryAccountId?this.treasuryAccountId._toProtobuf():null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,kycKey:null!=this.kycKey?this.kycKey._toProtobufKey():null,freezeKey:null!=this.freezeKey?this.freezeKey._toProtobufKey():null,pauseKey:null!=this.pauseKey?this.pauseKey._toProtobufKey():null,wipeKey:null!=this.wipeKey?this.wipeKey._toProtobufKey():null,supplyKey:null!=this.supplyKey?this.supplyKey._toProtobufKey():null,feeScheduleKey:null!=this.feeScheduleKey?this.feeScheduleKey._toProtobufKey():null,defaultFreezeStatus:null==this.defaultFreezeStatus?0:this.defaultFreezeStatus?1:2,defaultKycStatus:null==this.defaultKycStatus?0:this.defaultKycStatus?1:2,pauseStatus:null==this.pauseStatus?0:this.pauseStatus?1:2,deleted:this.isDeleted,autoRenewAccount:null!=this.autoRenewAccountId?this.autoRenewAccountId._toProtobuf():void 0,autoRenewPeriod:null!=this.autoRenewPeriod?this.autoRenewPeriod._toProtobuf():null,expiry:null!=this.expirationTime?this.expirationTime._toProtobuf():null,memo:this.tokenMemo,customFees:this.customFees.map(e=>e._toProtobuf()),tokenType:null!=this.tokenType?this.tokenType._code:null,supplyType:null!=this.supplyType?this.supplyType._code:null,maxSupply:this.maxSupply,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null}}static fromBytes(e){return gg._fromProtobuf(ln.proto.TokenInfo.decode(e))}toBytes(){return ln.proto.TokenInfo.encode(this._toProtobuf()).finish()}}class wb extends ei{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e){const t=e.tokenGetInfo;return new wb({tokenId:null!=t.token?tn._fromProtobuf(t.token):void 0})}get tokenId(){return this._tokenId}setTokenId(e){return this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.getTokenInfo(t)}_mapResponseHeader(e){return e.tokenGetInfo.header}_mapResponse(e,t,o){return Promise.resolve(gg._fromProtobuf(e.tokenGetInfo.tokenInfo))}_onMakeRequest(e){return{tokenGetInfo:{header:e,token:null!=this._tokenId?this._tokenId._toProtobuf():null}}}_getLogId(){return`TokenInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("tokenGetInfo",wb._fromProtobuf);class Ag extends $t{constructor(e={}){super(),this._tokenId=null,this._amount=null,this._metadata=[],null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.amount&&this.setAmount(e.amount),null!=e.metadata&&this.setMetadata(e.metadata)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenMint;return $t._fromProtobufTransactions(new Ag({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,amount:null!=p.amount?p.amount:void 0,metadata:null!=p.metadata?p.metadata:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof mt?e:mt.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}get metadata(){return this._metadata}addMetadata(e){return this._requireNotFrozen(),"string"==typeof e&&console.warn("Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead."),this._metadata.push("string"==typeof e?Mn(e):e),this}setMetadata(e){this._requireNotFrozen();for(const t of e)if("string"==typeof t){console.warn("Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead.");break}return this._metadata=e.map(t=>"string"==typeof t?Mn(t):t),this}_execute(e,t){return e.token.mintToken(t)}_getTransactionDataCase(){return"tokenMint"}_makeTransactionData(){return{amount:this._amount,token:null!=this._tokenId?this._tokenId._toProtobuf():null,metadata:this._metadata}}_getLogId(){return`TokenMintTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenMint",Ag._fromProtobuf);class Cb{constructor(e){this.nftId=e.nftId,this.accountId=e.accountId,this.creationTime=e.creationTime,this.metadata=e.metadata,this.ledgerId=e.ledgerId,this.spenderId=e.spenderId,Object.freeze(this)}static _fromProtobuf(e){return new Cb({nftId:li._fromProtobuf(e.nftID),accountId:Ue._fromProtobuf(e.accountID),creationTime:Jn._fromProtobuf(e.creationTime),metadata:void 0!==e.metadata?e.metadata:null,ledgerId:null!=e.ledgerId?no.fromBytes(e.ledgerId):null,spenderId:null!=e.spenderId?Ue._fromProtobuf(e.spenderId):null})}_toProtobuf(){return{nftID:this.nftId._toProtobuf(),accountID:this.accountId._toProtobuf(),creationTime:this.creationTime._toProtobuf(),metadata:this.metadata,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null,spenderId:null!=this.spenderId?this.spenderId._toProtobuf():null}}toJson(){return{nftId:this.nftId.toString(),accountId:this.accountId.toString(),creationTime:this.creationTime.toString(),metadata:null!=this.metadata?cn(this.metadata):null,ledgerId:null!=this.ledgerId?this.ledgerId.toString():null,spenderId:null!=this.spenderId?this.spenderId.toString():null}}toString(){return JSON.stringify(this.toJson())}}class A3 extends ei{constructor(e={}){super(),this._nftId=null,null!=e.nftId&&this.setNftId(e.nftId),this._accountId=null,null!=e.accountId&&this.setAccountId(e.accountId),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),this._start=null,null!=e.start&&this.setStart(e.start),this._end=null,null!=e.end&&this.setEnd(e.end)}static _fromProtobuf(e){if(null!=e.tokenGetNftInfo){const t=e.tokenGetNftInfo;return new A3({nftId:null!=t.nftID?li._fromProtobuf(t.nftID):void 0})}if(null!=e.tokenGetAccountNftInfos){const t=e.tokenGetAccountNftInfos;return new A3({accountId:null!=t.accountID?Ue._fromProtobuf(t.accountID):void 0,start:null!=t.start?t.start:void 0,end:null!=t.end?t.end:void 0})}{const t=e.tokenGetNftInfos;return new A3({tokenId:null!=t.tokenID?tn._fromProtobuf(t.tokenID):void 0,start:null!=t.start?t.start:void 0,end:null!=t.end?t.end:void 0})}}get nftId(){return this._nftId}setNftId(e){return this._nftId="string"==typeof e?li.fromString(e):li._fromProtobuf(e._toProtobuf()),this}get accountId(){return console.warn("`TokenNftInfoQuery.accountId` is deprecated with no replacement"),this._accountId}setAccountId(e){return console.warn("`TokenNftInfoQuery.setAccountId()` is deprecated with no replacement"),this._accountId="string"==typeof e?Ue.fromString(e):Ue._fromProtobuf(e._toProtobuf()),this}get tokenId(){return console.warn("`TokenNftInfoQuery.tokenId` is deprecated with no replacement"),this._tokenId}setTokenId(e){return console.warn("`TokenNftInfoQuery.setTokenId()` is deprecated with no replacement"),this._tokenId="string"==typeof e?tn.fromString(e):tn._fromProtobuf(e._toProtobuf()),this}get start(){return console.warn("`TokenNftInfoQuery.start` is deprecated with no replacement"),this._start}setStart(e){return console.warn("`TokenNftInfoQuery.setStart()` is deprecated with no replacement"),this._start="number"==typeof e?mt.fromNumber(e):e,this}get end(){return console.warn("`TokenNftInfoQuery.end` is deprecated with no replacement"),this._end}setEnd(e){return console.warn("`TokenNftInfoQuery.setEnd()` is deprecated with no replacement"),this._end="number"==typeof e?mt.fromNumber(e):e,this}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_execute(e,t){return e.token.getTokenNftInfo(t)}_mapResponseHeader(e){return e.tokenGetNftInfo.header}_mapResponse(e,t,o){return Promise.resolve([e.tokenGetNftInfo.nft].map(l=>Cb._fromProtobuf(l)))}_onMakeRequest(e){return{tokenGetNftInfo:{header:e,nftID:null!=this._nftId?this._nftId._toProtobuf():null}}}_getLogId(){return`TokenNftInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("tokenGetNftInfo",A3._fromProtobuf);class mg extends $t{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenPause;return $t._fromProtobufTransactions(new mg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.pauseToken(t)}_getTransactionDataCase(){return"tokenPause"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenPauseTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenPause",mg._fromProtobuf);class yg extends $t{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenRevokeKyc;return $t._fromProtobufTransactions(new yg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.revokeKycFromTokenAccount(t)}_getTransactionDataCase(){return"tokenRevokeKyc"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenRevokeKycTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenRevokeKyc",yg._fromProtobuf);class bg extends $t{constructor(e={}){super(),this._tokenId=null,this._accountId=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenUnfreeze;return $t._fromProtobufTransactions(new bg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}_execute(e,t){return e.token.unfreezeTokenAccount(t)}_getTransactionDataCase(){return"tokenUnfreeze"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null}}_getLogId(){return`TokenUnfreezeTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenUnfreeze",bg._fromProtobuf);class vg extends $t{constructor(e={}){super(),this._tokenId=null,null!=e.tokenId&&this.setTokenId(e.tokenId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenUnpause;return $t._fromProtobufTransactions(new vg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e)}_execute(e,t){return e.token.unpauseToken(t)}_getTransactionDataCase(){return"tokenUnpause"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null}}_getLogId(){return`TokenUnpauseTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenUnpause",vg._fromProtobuf);class _b extends $t{constructor(e={}){super(),this._tokenId=null,this._tokenName=null,this._tokenSymbol=null,this._treasuryAccountId=null,this._adminKey=null,this._kycKey=null,this._freezeKey=null,this._wipeKey=null,this._supplyKey=null,this._autoRenewAccountId=null,this._expirationTime=null,this._autoRenewPeriod=null,this._tokenMemo=null,this._feeScheduleKey=null,this._pauseKey=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.tokenName&&this.setTokenName(e.tokenName),null!=e.tokenSymbol&&this.setTokenSymbol(e.tokenSymbol),null!=e.treasuryAccountId&&this.setTreasuryAccountId(e.treasuryAccountId),null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.kycKey&&this.setKycKey(e.kycKey),null!=e.freezeKey&&this.setFreezeKey(e.freezeKey),null!=e.wipeKey&&this.setWipeKey(e.wipeKey),null!=e.supplyKey&&this.setSupplyKey(e.supplyKey),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.expirationTime&&this.setExpirationTime(e.expirationTime),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.tokenMemo&&this.setTokenMemo(e.tokenMemo),null!=e.feeScheduleKey&&this.setFeeScheduleKey(e.feeScheduleKey),null!=e.pauseKey&&this.setPauseKey(e.pauseKey)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenUpdate;return $t._fromProtobufTransactions(new _b({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,tokenName:null!=p.name?p.name:void 0,tokenSymbol:null!=p.symbol?p.symbol:void 0,treasuryAccountId:null!=p.treasury?Ue._fromProtobuf(p.treasury):void 0,adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,kycKey:null!=p.kycKey?qn._fromProtobufKey(p.kycKey):void 0,freezeKey:null!=p.freezeKey?qn._fromProtobufKey(p.freezeKey):void 0,wipeKey:null!=p.wipeKey?qn._fromProtobufKey(p.wipeKey):void 0,supplyKey:null!=p.supplyKey?qn._fromProtobufKey(p.supplyKey):void 0,autoRenewAccountId:null!=p.autoRenewAccount?Ue._fromProtobuf(p.autoRenewAccount):void 0,expirationTime:null!=p.expiry?Jn._fromProtobuf(p.expiry):void 0,autoRenewPeriod:null!=p.autoRenewPeriod?Hr._fromProtobuf(p.autoRenewPeriod):void 0,tokenMemo:null!=p.memo&&null!=p.memo.value?p.memo.value:void 0,feeScheduleKey:null!=p.feeScheduleKey?qn._fromProtobufKey(p.feeScheduleKey):void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get tokenName(){return this._tokenName}setTokenName(e){return this._requireNotFrozen(),this._tokenName=e,this}get tokenSymbol(){return this._tokenSymbol}setTokenSymbol(e){return this._requireNotFrozen(),this._tokenSymbol=e,this}get treasuryAccountId(){return this._treasuryAccountId}setTreasuryAccountId(e){return this._requireNotFrozen(),this._treasuryAccountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get kycKey(){return this._kycKey}setKycKey(e){return this._requireNotFrozen(),this._kycKey=e,this}get freezeKey(){return this._freezeKey}setFreezeKey(e){return this._requireNotFrozen(),this._freezeKey=e,this}get wipeKey(){return this._wipeKey}setWipeKey(e){return this._requireNotFrozen(),this._wipeKey=e,this}get supplyKey(){return this._supplyKey}setSupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}setsupplyKey(e){return this._requireNotFrozen(),this._supplyKey=e,this}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Jn?e:Jn.fromDate(e),this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Ue?e:Ue.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}get tokenMemo(){return this._tokenMemo}setTokenMemo(e){return this._requireNotFrozen(),this._tokenMemo=e,this}get feeScheduleKey(){return this._feeScheduleKey}setFeeScheduleKey(e){return this._requireNotFrozen(),this._feeScheduleKey=e,this}get pauseKey(){return this._pauseKey}setPauseKey(e){return this._requireNotFrozen(),this._pauseKey=e,this}clearTokenMemo(){return this._requireNotFrozen(),this._tokenMemo=null,this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._treasuryAccountId&&this._treasuryAccountId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.token.updateToken(t)}_getTransactionDataCase(){return"tokenUpdate"}_makeTransactionData(){return{token:null!=this._tokenId?this._tokenId._toProtobuf():null,name:this.tokenName,symbol:this.tokenSymbol,treasury:null!=this._treasuryAccountId?this._treasuryAccountId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,kycKey:null!=this._kycKey?this._kycKey._toProtobufKey():null,freezeKey:null!=this._freezeKey?this._freezeKey._toProtobufKey():null,pauseKey:null!=this._pauseKey?this._pauseKey._toProtobufKey():null,wipeKey:null!=this._wipeKey?this._wipeKey._toProtobufKey():null,supplyKey:null!=this._supplyKey?this._supplyKey._toProtobufKey():null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,expiry:null!=this._expirationTime?this._expirationTime._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,memo:null!=this._tokenMemo?{value:this._tokenMemo}:null,feeScheduleKey:null!=this._feeScheduleKey?this._feeScheduleKey._toProtobufKey():null}}_getLogId(){return`TokenUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenUpdate",_b._fromProtobuf);class wg extends $t{constructor(e={}){super(),this._tokenId=null,this._accountId=null,this._serials=[],this._amount=null,null!=e.tokenId&&this.setTokenId(e.tokenId),null!=e.accountId&&this.setAccountId(e.accountId),null!=e.amount&&this.setAmount(e.amount),null!=e.serials&&this.setSerials(e.serials)}static _fromProtobuf(e,t,o,s,l){const p=l[0].tokenWipe;return $t._fromProtobufTransactions(new wg({tokenId:null!=p.token?tn._fromProtobuf(p.token):void 0,accountId:null!=p.account?Ue._fromProtobuf(p.account):void 0,amount:null!=p.amount?p.amount:void 0,serials:null!=p.serialNumbers?p.serialNumbers:void 0}),e,t,o,s,l)}get tokenId(){return this._tokenId}setTokenId(e){return this._requireNotFrozen(),this._tokenId="string"==typeof e?tn.fromString(e):e.clone(),this}get accountId(){return this._accountId}setAccountId(e){return this._requireNotFrozen(),this._accountId="string"==typeof e?Ue.fromString(e):e.clone(),this}get amount(){return this._amount}setAmount(e){return this._requireNotFrozen(),this._amount=e instanceof mt?e:mt.fromValue(e),this}_validateChecksums(e){null!=this._tokenId&&this._tokenId.validateChecksum(e),null!=this._accountId&&this._accountId.validateChecksum(e)}get serials(){return this._serials}setSerials(e){return this._requireNotFrozen(),this._serials=e.map(t=>"number"==typeof t?mt.fromNumber(t):t),this}_execute(e,t){return e.token.wipeTokenAccount(t)}_getTransactionDataCase(){return"tokenWipe"}_makeTransactionData(){return{amount:this._amount,token:null!=this._tokenId?this._tokenId._toProtobuf():null,account:null!=this._accountId?this._accountId._toProtobuf():null,serialNumbers:this.serials}}_getLogId(){return`TokenWipeTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("tokenWipe",wg._fromProtobuf);class Cg extends $t{constructor(e={}){super(),this._adminKey=null,this._submitKey=null,this._autoRenewAccountId=null,this._autoRenewPeriod=new Hr(d3),this._topicMemo=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),null!=e.submitKey&&this.setSubmitKey(e.submitKey),null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),null!=e.topicMemo&&this.setTopicMemo(e.topicMemo)}static _fromProtobuf(e,t,o,s,l){const p=l[0].consensusCreateTopic;return $t._fromProtobufTransactions(new Cg({adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,submitKey:null!=p.submitKey?qn._fromProtobufKey(p.submitKey):void 0,autoRenewAccountId:null!=p.autoRenewAccount?Ue._fromProtobuf(p.autoRenewAccount):void 0,autoRenewPeriod:null!=p.autoRenewPeriod&&null!=p.autoRenewPeriod.seconds?p.autoRenewPeriod.seconds:void 0,topicMemo:null!=p.memo?p.memo:void 0}),e,t,o,s,l)}get topicMemo(){return this._topicMemo}getTopicMemo(){return this._topicMemo}setTopicMemo(e){return this._requireNotFrozen(),this._topicMemo=e,this}get adminKey(){return this._adminKey}getAdminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}get submitKey(){return this._submitKey}getSubmitKey(){return this._submitKey}setSubmitKey(e){return this._requireNotFrozen(),this._submitKey=e,this}get autoRenewAccountId(){return this._autoRenewAccountId}getAutoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Ue?e:Ue.fromString(e),this}get autoRenewPeriod(){return this._autoRenewPeriod}getAutoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}_validateChecksums(e){null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.consensus.createTopic(t)}_getTransactionDataCase(){return"consensusCreateTopic"}_makeTransactionData(){return{adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,submitKey:null!=this._submitKey?this._submitKey._toProtobufKey():null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,autoRenewPeriod:this._autoRenewPeriod._toProtobuf(),memo:this._topicMemo}}_getLogId(){return`TopicCreateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("consensusCreateTopic",Cg._fromProtobuf);class _g extends $t{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId)}static _fromProtobuf(e,t,o,s,l){const p=l[0].consensusDeleteTopic;return $t._fromProtobufTransactions(new _g({topicId:null!=p.topicID?bi._fromProtobuf(p.topicID):void 0}),e,t,o,s,l)}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?bi.fromString(e):e.clone(),this}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e)}_execute(e,t){return e.consensus.deleteTopic(t)}_getTransactionDataCase(){return"consensusDeleteTopic"}_makeTransactionData(){return{topicID:null!=this._topicId?this._topicId._toProtobuf():null}}_getLogId(){return`TopicDeleteTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("consensusDeleteTopic",_g._fromProtobuf);class Ig{constructor(e){this.topicId=e.topicId,this.topicMemo=e.topicMemo,this.runningHash=e.runningHash,this.sequenceNumber=e.sequenceNumber,this.expirationTime=e.expirationTime,this.adminKey=e.adminKey,this.submitKey=e.submitKey,this.autoRenewPeriod=e.autoRenewPeriod,this.autoRenewAccountId=e.autoRenewAccountId,this.ledgerId=e.ledgerId,Object.freeze(this)}static _fromProtobuf(e){const t=e.topicInfo;return new Ig({topicId:bi._fromProtobuf(e.topicID),topicMemo:null!=t.memo?t.memo:"",runningHash:null!=t.runningHash?t.runningHash:new Uint8Array,sequenceNumber:null!=t.sequenceNumber?t.sequenceNumber instanceof mt?t.sequenceNumber:mt.fromValue(t.sequenceNumber):mt.ZERO,expirationTime:null!=t.expirationTime?Jn._fromProtobuf(t.expirationTime):null,adminKey:null!=t.adminKey?qn._fromProtobufKey(t.adminKey):null,submitKey:null!=t.submitKey?qn._fromProtobufKey(t.submitKey):null,autoRenewPeriod:null!=t.autoRenewPeriod?new Hr(t.autoRenewPeriod.seconds):null,autoRenewAccountId:null!=t.autoRenewAccount?Ue._fromProtobuf(t.autoRenewAccount):null,ledgerId:null!=t.ledgerId?no.fromBytes(t.ledgerId):null})}_toProtobuf(){return{topicID:this.topicId._toProtobuf(),topicInfo:{memo:this.topicMemo,runningHash:this.runningHash,sequenceNumber:this.sequenceNumber,expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,submitKey:null!=this.submitKey?this.submitKey._toProtobufKey():null,autoRenewPeriod:null!=this.autoRenewPeriod?this.autoRenewPeriod._toProtobuf():null,autoRenewAccount:null!=this.autoRenewAccountId?this.autoRenewAccountId._toProtobuf():null}}}static fromBytes(e){return Ig._fromProtobuf({topicInfo:ln.proto.ConsensusTopicInfo.decode(e)})}toBytes(){return ln.proto.ConsensusTopicInfo.encode(this._toProtobuf().topicInfo).finish()}}class Ib extends ei{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId)}static _fromProtobuf(e){const t=e.consensusGetTopicInfo;return new Ib({topicId:null!=t.topicID?bi._fromProtobuf(t.topicID):void 0})}get topicId(){return this._topicId}setTopicId(e){return this._topicId="string"==typeof e?bi.fromString(e):e.clone(),this}getCost(e){var t=()=>super.getCost,o=this;return ct(function*(){return t().call(o,e)})()}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e)}_execute(e,t){return e.consensus.getTopicInfo(t)}_mapResponseHeader(e){return e.consensusGetTopicInfo.header}_mapResponse(e,t,o){return Promise.resolve(Ig._fromProtobuf(e.consensusGetTopicInfo))}_onMakeRequest(e){return{consensusGetTopicInfo:{header:e,topicID:null!=this._topicId?this._topicId._toProtobuf():null}}}_getLogId(){return`TopicInfoQuery:${(null!=this._paymentTransactionId&&null!=this._paymentTransactionId.validStart?this._paymentTransactionId.validStart:this._timestamp).toString()}`}}Xo.set("consensusGetTopicInfo",Ib._fromProtobuf);class xg extends $t{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId),this._message=null,null!=e.message&&this.setMessage(e.message),this._maxChunks=20,this._chunkSize=1024,null!=e.maxChunks&&this.setMaxChunks(e.maxChunks),null!=e.chunkSize&&this.setChunkSize(e.chunkSize),this._chunkInfo=null}static _fromProtobuf(e,t,o,s,l){const p=l[0].consensusSubmitMessage;return $t._fromProtobufTransactions(new xg({topicId:null!=p.topicID?bi._fromProtobuf(p.topicID):void 0,message:null!=p.message?p.message:void 0}),e,t,o,s,l)}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?bi.fromString(e):e.clone(),this}get message(){return this._message}getMessage(){return this._message}setMessage(e){return this._requireNotFrozen(),e=CK(e),this._message=e instanceof Uint8Array?e:ed(e),this}get maxChunks(){return this._maxChunks}getMaxChunks(){return this._maxChunks}setMaxChunks(e){return this._requireNotFrozen(),this._maxChunks=e,this}get chunkSize(){return this._chunkSize}getChunkSize(){return this._chunkSize}setChunkSize(e){return this._chunkSize=e,this}freezeWith(e){if(super.freezeWith(e),null==this._message)return this;const t=Math.floor((this._message.length+(this._chunkSize-1))/this._chunkSize);if(t>this._maxChunks)throw new Error(`Message with size ${this._message.length} too long for ${this._maxChunks} chunks`);const o=this._getTransactionId()._toProtobuf();let s=this._getTransactionId();this._transactionIds.locked=!1,this._transactions.clear(),this._transactionIds.clear(),this._signedTransactions.clear();for(let l=0;lthis._chunkSize)throw new Error(`cannot schedule \`TopicMessageSubmitTransaction\` with message over ${this._chunkSize} bytes`);return super.schedule()}execute(e,t){var o=this;return ct(function*(){return(yield o.executeAll(e,t))[0]})()}executeAll(e,t){var o=()=>super._isFrozen,s=()=>super.signWithOperator,l=()=>super.execute,u=this;return ct(function*(){o().call(u)||u.freezeWith(e);const p=u._getTransactionId(),w=e.operatorAccountId;null!=w&&w.equals(p.accountId)&&(yield s().call(u,e));const S=[];let V=t;for(let J=0;Jthis._message.length&&(o=this._message.length),{topicID:null!=this._topicId?this._topicId._toProtobuf():null,message:this._message.slice(t,o),chunkInfo:this._chunkInfo}}return{topicID:null!=this._topicId?this._topicId._toProtobuf():null,message:this._message}}_getLogId(){return`TopicMessageSubmitTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("consensusSubmitMessage",xg._fromProtobuf);class Eg extends $t{constructor(e={}){super(),this._topicId=null,null!=e.topicId&&this.setTopicId(e.topicId),this._topicMemo=null,null!=e.topicMemo&&this.setTopicMemo(e.topicMemo),this._submitKey=null,null!=e.submitKey&&this.setSubmitKey(e.submitKey),this._adminKey=null,null!=e.adminKey&&this.setAdminKey(e.adminKey),this._autoRenewAccountId=null,null!=e.autoRenewAccountId&&this.setAutoRenewAccountId(e.autoRenewAccountId),this._autoRenewPeriod=null,null!=e.autoRenewPeriod&&this.setAutoRenewPeriod(e.autoRenewPeriod),this._expirationTime=null,null!=e.expirationTime&&this.setExpirationTime(e.expirationTime)}static _fromProtobuf(e,t,o,s,l){const p=l[0].consensusUpdateTopic;return $t._fromProtobufTransactions(new Eg({topicId:null!=p.topicID?bi._fromProtobuf(p.topicID):void 0,adminKey:null!=p.adminKey?qn._fromProtobufKey(p.adminKey):void 0,submitKey:null!=p.submitKey?qn._fromProtobufKey(p.submitKey):void 0,autoRenewAccountId:null!=p.autoRenewAccount?Ue._fromProtobuf(p.autoRenewAccount):void 0,autoRenewPeriod:null!=p.autoRenewPeriod&&null!=p.autoRenewPeriod.seconds?p.autoRenewPeriod.seconds:void 0,topicMemo:null!=p.memo&&null!=p.memo.value?p.memo.value:void 0,expirationTime:null!=p.expirationTime?Jn._fromProtobuf(p.expirationTime):void 0}),e,t,o,s,l)}get expirationTime(){return this._expirationTime}setExpirationTime(e){return this._requireNotFrozen(),this._expirationTime=e instanceof Date?Jn.fromDate(e):e,this}get topicId(){return this._topicId}setTopicId(e){return this._requireNotFrozen(),this._topicId="string"==typeof e?bi.fromString(e):e.clone(),this}clearTopicId(){return this._requireNotFrozen(),this._topicId=null,this}get topicMemo(){return this._topicMemo}setTopicMemo(e){return this._requireNotFrozen(),this._topicMemo=e,this}clearTopicMemo(){return this._requireNotFrozen(),this._topicMemo=null,this}get adminKey(){return this._adminKey}setAdminKey(e){return this._requireNotFrozen(),this._adminKey=e,this}clearAdminKey(){return this._requireNotFrozen(),this._adminKey=null,this}get submitKey(){return this._submitKey}setSubmitKey(e){return this._requireNotFrozen(),this._submitKey=e,this}clearSubmitKey(){return this._requireNotFrozen(),this._submitKey=null,this}get autoRenewAccountId(){return this._autoRenewAccountId}setAutoRenewAccountId(e){return this._requireNotFrozen(),this._autoRenewAccountId=e instanceof Ue?e:Ue.fromString(e),this}clearAutoRenewAccountId(){return this._requireNotFrozen(),this._autoRenewAccountId=null,this}get autoRenewPeriod(){return this._autoRenewPeriod}setAutoRenewPeriod(e){return this._requireNotFrozen(),this._autoRenewPeriod=e instanceof Hr?e:new Hr(e),this}_validateChecksums(e){null!=this._topicId&&this._topicId.validateChecksum(e),null!=this._autoRenewAccountId&&this._autoRenewAccountId.validateChecksum(e)}_execute(e,t){return e.consensus.updateTopic(t)}_getTransactionDataCase(){return"consensusUpdateTopic"}_makeTransactionData(){return{topicID:null!=this._topicId?this._topicId._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null,submitKey:null!=this._submitKey?this._submitKey._toProtobufKey():null,memo:null!=this._topicMemo?{value:this._topicMemo}:null,autoRenewAccount:null!=this._autoRenewAccountId?this._autoRenewAccountId._toProtobuf():null,autoRenewPeriod:null!=this._autoRenewPeriod?this._autoRenewPeriod._toProtobuf():null,expirationTime:null!=this._expirationTime?this._expirationTime._toProtobuf():null}}_getLogId(){return`TopicUpdateTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("consensusUpdateTopic",Eg._fromProtobuf);class lZ extends $s{constructor(){super(e=>tn.fromString(e))}}class Eb extends $s{constructor(){super(e=>Ue.fromString(e))}static _fromProtobuf(e){const t=new Eb;for(const o of null!=e.accountAmounts?e.accountAmounts:[]){const s=Ue._fromProtobuf(o.accountID);t._set(s,mn.fromTinybars(o.amount))}return t}}class Tg{constructor(e){this.tokenId=e.tokenId instanceof tn?e.tokenId:tn.fromString(e.tokenId),this.senderAccountId=e.senderAccountId instanceof Ue?e.senderAccountId:Ue.fromString(e.senderAccountId),this.receiverAccountId=e.receiverAccountId instanceof Ue?e.receiverAccountId:Ue.fromString(e.receiverAccountId),this.serialNumber=mt.fromValue(e.serialNumber),this.isApproved=e.isApproved}static _fromProtobuf(e){const t=[];for(const o of e){const s=tn._fromProtobuf(o.token);for(const l of null!=o.nftTransfers?o.nftTransfers:[])t.push(new Tg({tokenId:s,senderAccountId:Ue._fromProtobuf(l.senderAccountID),receiverAccountId:Ue._fromProtobuf(l.receiverAccountID),serialNumber:null!=l.serialNumber?l.serialNumber:mt.ZERO,isApproved:1==l.isApproval}))}return t}_toProtobuf(){return{senderAccountID:this.senderAccountId._toProtobuf(),receiverAccountID:this.receiverAccountId._toProtobuf(),serialNumber:this.serialNumber,isApproval:this.isApproved}}}class kg extends $t{constructor(e={}){super(),this._tokenTransfers=[],this._hbarTransfers=[],this._nftTransfers=[],this._defaultMaxTransactionFee=new mn(1);for(const t of null!=e.tokenTransfers?e.tokenTransfers:[])this.addTokenTransfer(t.tokenId,t.accountId,t.amount);for(const t of null!=e.hbarTransfers?e.hbarTransfers:[])this.addHbarTransfer(t.accountId,t.amount);for(const t of null!=e.nftTransfers?e.nftTransfers:[])this.addNftTransfer(t.tokenId,t.serial,t.sender,t.recipient)}static _fromProtobuf(e,t,o,s,l){const p=l[0].cryptoTransfer,w=new kg;return w._tokenTransfers=sd._fromProtobuf(null!=p.tokenTransfers?p.tokenTransfers:[]),w._hbarTransfers=Xu._fromProtobuf(null!=p.transfers&&null!=p.transfers.accountAmounts?p.transfers.accountAmounts:[]),w._nftTransfers=Tg._fromProtobuf(null!=p.tokenTransfers?p.tokenTransfers:[]),$t._fromProtobufTransactions(w,e,t,o,s,l)}get tokenTransfers(){const e=new Rp;for(const t of this._tokenTransfers){let o=e.get(t.tokenId);null!=o?o._set(t.accountId,t.amount):(o=new xD,o._set(t.accountId,t.amount),e._set(t.tokenId,o))}return e}_addTokenTransfer(e,t,o,s){this._requireNotFrozen();const l=e instanceof tn?e:tn.fromString(e),u=t instanceof Ue?t:Ue.fromString(t),p=o instanceof mt?o:mt.fromNumber(o);for(const w of this._tokenTransfers)if(0===w.tokenId.compare(l)&&0===w.accountId.compare(u))return w.amount=w.amount.add(p),w.expectedDecimals=null,this;return this._tokenTransfers.push(new sd({tokenId:e,accountId:t,expectedDecimals:null,amount:o,isApproved:s})),this}addTokenTransfer(e,t,o){return this._addTokenTransfer(e,t,o,!1)}addApprovedTokenTransfer(e,t,o){return this._addTokenTransfer(e,t,o,!0)}addTokenTransferWithDecimals(e,t,o,s){this._requireNotFrozen();const l=e instanceof tn?e:tn.fromString(e),u=t instanceof Ue?t:Ue.fromString(t),p=o instanceof mt?o:mt.fromNumber(o);let w=!1;for(const S of this._tokenTransfers)if(0===S.tokenId.compare(l)){if(null!=S.expectedDecimals&&S.expectedDecimals!==s)throw new Error("expected decimals mis-match");S.expectedDecimals=s,0===S.accountId.compare(u)&&(S.amount=S.amount.add(p),S.expectedDecimals=s,w=!0)}return w||this._tokenTransfers.push(new sd({tokenId:e,accountId:t,expectedDecimals:s,amount:o,isApproved:!1})),this}get tokenIdDecimals(){const e=new lZ;for(const t of this._tokenTransfers)e._set(t.tokenId,t.expectedDecimals);return e}get hbarTransfers(){const e=new Eb;for(const t of this._hbarTransfers)e._set(t.accountId,t.amount);return e}_addHbarTransfer(e,t,o){this._requireNotFrozen();const s=e instanceof Ue?e.clone():Ue.fromString(e),l=t instanceof mn?t:new mn(t);for(const u of this._hbarTransfers)if(0===u.accountId.compare(s))return u.amount=mn.fromTinybars(u.amount.toTinybars().add(l.toTinybars())),this;return this._hbarTransfers.push(new Xu({accountId:s,amount:l,isApproved:o})),this}addHbarTransfer(e,t){return this._addHbarTransfer(e,t,!1)}addApprovedHbarTransfer(e,t){return this._addHbarTransfer(e,t,!0)}_validateChecksums(e){for(const t of this._hbarTransfers)t.accountId.validateChecksum(e);for(const t of this._tokenTransfers)t.tokenId.validateChecksum(e),t.accountId.validateChecksum(e);for(const t of this._nftTransfers)t.tokenId.validateChecksum(e),t.senderAccountId.validateChecksum(e),t.receiverAccountId.validateChecksum(e)}get nftTransfers(){const e=new Fp;for(const t of this._nftTransfers){const o=e.get(t.tokenId),s={sender:t.senderAccountId,recipient:t.receiverAccountId,serial:t.serialNumber,isApproved:t.isApproved};null!=o?o.push(s):e._set(t.tokenId,[s])}return e}_addNftTransfer(e,t,o,s,l){let u,p,w;if(this._requireNotFrozen(),t instanceof li)u=t,p="string"==typeof o?Ue.fromString(o):o,w="string"==typeof s?Ue.fromString(s):s;else if(t instanceof tn)u=new li(t,o),p="string"==typeof s?Ue.fromString(s):s,w="string"==typeof l?Ue.fromString(l):l;else try{u=li.fromString(t),p="string"==typeof o?Ue.fromString(o):o,w="string"==typeof s?Ue.fromString(s):s}catch{const V=tn.fromString(t);u=new li(V,o),p="string"==typeof s?Ue.fromString(s):s,w="string"==typeof l?Ue.fromString(l):l}for(const S of this._nftTransfers)if(0===S.tokenId.compare(u.tokenId)&&0===S.serialNumber.compare(u.serial))return S.senderAccountId=p,S.receiverAccountId=w,this;return this._nftTransfers.push(new Tg({tokenId:u.tokenId,serialNumber:u.serial,senderAccountId:p,receiverAccountId:w,isApproved:e})),this}addNftTransfer(e,t,o,s){return this._addNftTransfer(!1,e,t,o,s)}addApprovedNftTransfer(e,t,o,s){return this._addNftTransfer(!0,e,t,o,s)}setHbarTransferApproval(e,t){const o="string"==typeof e?Ue.fromString(e):e;for(const s of this._hbarTransfers)0===s.accountId.compare(o)&&(s.isApproved=t);return this}setTokenTransferApproval(e,t,o){const s="string"==typeof e?tn.fromString(e):e,l="string"==typeof t?Ue.fromString(t):t;for(const u of this._tokenTransfers)0===u.tokenId.compare(s)&&0===u.accountId.compare(l)&&(u.isApproved=o);return this}setNftTransferApproval(e,t){const o="string"==typeof e?li.fromString(e):e;for(const s of this._nftTransfers)0===s.tokenId.compare(o.tokenId)&&0===s.serialNumber.compare(o.serial)&&(s.isApproved=t);return this}_execute(e,t){return e.crypto.cryptoTransfer(t)}_getTransactionDataCase(){return"cryptoTransfer"}_makeTransactionData(){const e=[];this._tokenTransfers.sort((s,l)=>{const u=s.tokenId.compare(l.tokenId);return 0!==u?u:s.accountId.compare(l.accountId)}),this._nftTransfers.sort((s,l)=>{const u=s.senderAccountId.compare(l.senderAccountId);if(0!=u)return u;const p=s.receiverAccountId.compare(l.receiverAccountId);return 0!=p?p:s.serialNumber.compare(l.serialNumber)});let t=0,o=0;for(;t0?e[e.length-1]:null,p=null!=u?u.tokenId:null;if(null!=u&&null!=p&&0===p.compare(s)){u.transfers.push(this._tokenTransfers[t++]);continue}if(null!=u&&null!=p&&0===p.compare(l)){u.nftTransfers.push(this._nftTransfers[o++]);continue}const w=s.compare(l);e.push(0===w?{tokenId:s,expectedDecimals:this._tokenTransfers[t].expectedDecimals,transfers:[this._tokenTransfers[t++]],nftTransfers:[this._nftTransfers[o++]]}:w<0?{tokenId:s,expectedDecimals:this._tokenTransfers[t].expectedDecimals,transfers:[this._tokenTransfers[t++]],nftTransfers:[]}:{tokenId:l,expectedDecimals:null,transfers:[],nftTransfers:[this._nftTransfers[o++]]})}else if(ts.accountId.compare(l.accountId)),{transfers:{accountAmounts:this._hbarTransfers.map(s=>({accountID:s.accountId._toProtobuf(),amount:s.amount.toTinybars(),isApproval:s.isApproved}))},tokenTransfers:e.map(s=>({token:s.tokenId._toProtobuf(),expectedDecimals:null!=s.expectedDecimals?{value:s.expectedDecimals}:null,transfers:s.transfers.map(l=>l._toProtobuf()),nftTransfers:s.nftTransfers.map(l=>l._toProtobuf())}))}}_getLogId(){return`TransferTransaction:${this._transactionIds.current.validStart.toString()}`}}rr.set("cryptoTransfer",kg._fromProtobuf),$(2694);class Jr{constructor(e){this._name=e,Object.freeze(this)}toString(){switch(this){case Jr.Silent:return"silent";case Jr.Trace:return"trace";case Jr.Debug:return"debug";case Jr.Info:return"info";case Jr.Warn:return"warn";case Jr.Error:return"error";case Jr.Fatal:return"fatal";default:return`Unknown log level (${this._name})`}}static _fromString(e){switch(e){case"silent":return Jr.Silent;case"trace":return Jr.Trace;case"debug":return Jr.Debug;case"info":return Jr.Info;case"warn":return Jr.Warn;case"error":return Jr.Error;case"fatal":return Jr.Fatal;default:throw new Error(`Unknown log level: ${e}`)}}}Jr.Silent=new Jr("silent"),Jr.Trace=new Jr("trace"),Jr.Debug=new Jr("debug"),Jr.Info=new Jr("info"),Jr.Warn=new Jr("warn"),Jr.Error=new Jr("error"),Jr.Fatal=new Jr("fatal");class uZ extends u2{constructor(e){super(),this._query=e,this._grpcDeadline=e._grpcDeadline,this._requestTimeout=e._requestTimeout,this._nodeAccountIds=e._nodeAccountIds.clone(),this._operator=e._operator,this._header=null}_getTransactionId(){return this._query._getTransactionId()}_getLogId(){return`CostQuery:${this._query._getLogId()}`}_beforeExecute(e){var t=this;return ct(function*(){if(null==e)throw new Error("Cannot do CostQuery without Client");const o=null!=t._operator?t._operator:e._operator;if(null==o)throw new Error("`client` must have an `operator` or an explicit payment transaction must be provided");t._query._nodeAccountIds.isEmpty&&t._query._nodeAccountIds.setList(e._network.getNodeAccountIdsForExecute());const s=to.generate(o.accountId);null==t._query.paymentTransactionId&&t._query.setPaymentTransactionId(s);const l=t._getLogId(),u=new Ue(0),p=to.generate(new Ue(0)),w=new mn(0);t._logger&&t._logger.debug(`[${l}] making a payment transaction for node ${u.toString()} and transaction ID ${p.toString()} with amount ${w.toString()}`),t._header={payment:yield d2(p,new Ue(0),o,w),responseType:ln.proto.ResponseType.COST_ANSWER}})()}_makeRequestAsync(){return Promise.resolve(this._query._onMakeRequest(this._header))}_shouldRetry(e,t){return this._query._shouldRetry(e,t)}_mapStatusError(e,t){return this._query._mapStatusError(e,t)}_mapResponse(e,t,o){const s=this._query._mapResponseHeader(e).cost;return Promise.resolve(mn.fromTinybars(s))}_execute(e,t){return this._query._execute(e,t)}_requestToBytes(e){return this._query._requestToBytes(e)}_responseToBytes(e){return this._query._responseToBytes(e)}}h2.push(n=>new uZ(n));const dZ=/^(\S+):(\d+)$/;class m3{constructor(e={}){if(null!=e.address){const t=dZ.exec(e.address);if(null==t)throw new Error(`failed to parse address: ${e.address}`);this._address=t[1],this._port=null!=t[2]?parseInt(t[2]):null}else{if(null==e.host||null==e.port)throw new Error(`failed to create a managed node address: ${JSON.stringify(e)}`);this._address=e.host,this._port=e.port}Object.freeze(this)}static fromString(e){return new m3({address:e})}toInsecure(){return new m3({host:this.address,port:50212===this.port?50211:this.port})}toSecure(){return new m3({host:this.address,port:50211===this.port?50212:this.port})}get address(){return this._address}get port(){return this._port}isTransportSecurity(){return 50212==this._port||443==this._port}toString(){return null==this.port?this.address:`${this.address}:${this.port}`}}class GD{constructor(e={}){if(null!=e.newNode)this._address="string"==typeof e.newNode.address?m3.fromString(e.newNode.address):e.newNode.address,this._cert=void 0,this._channel=null,this._channelInitFunction=e.newNode.channelInitFunction,this._lastUsed=Date.now(),this._readmitTime=Date.now(),this._useCount=0,this._badGrpcStatusCount=0,this._minBackoff=8e3,this._maxBackoff=36e5,this._currentBackoff=this._minBackoff;else{if(null==e.cloneNode)throw new Error(`failed to create ManagedNode: ${JSON.stringify(e)}`);this._address=e.cloneNode.address,this._cert=e.cloneNode.node._cert,this._channel=e.cloneNode.node._channel,this._channelInitFunction=e.cloneNode.node._channelInitFunction,this._currentBackoff=e.cloneNode.node._currentBackoff,this._lastUsed=e.cloneNode.node._lastUsed,this._readmitTime=e.cloneNode.node._readmitTime,this._useCount=e.cloneNode.node._useCount,this._badGrpcStatusCount=e.cloneNode.node._badGrpcStatusCount,this._minBackoff=e.cloneNode.node._minBackoff,this._maxBackoff=e.cloneNode.node._minBackoff}}getKey(){throw new Error("not implemented")}setCert(e){return this}get address(){return this._address}get attempts(){return this._badGrpcStatusCount}get minBackoff(){return this._minBackoff}setMinBackoff(e){return this._currentBackoff<=e&&(this._currentBackoff=e),this._minBackoff=e,this}get maxBackoff(){return this._maxBackoff}setMaxBackoff(e){return this._currentBackoff<=e&&(this._currentBackoff=e),this._maxBackoff=e,this}getChannel(){return this._useCount++,this.__lastUsed=Date.now(),null!=this._channel||(this._channel=this._channelInitFunction(this.address.toString(),this._cert)),this._channel}isHealthy(){return this._readmitTime<=Date.now()}increaseBackoff(){this._currentBackoff=Math.min(2*this._currentBackoff,this._maxBackoff),this._readmitTime=Date.now()+this._currentBackoff}decreaseBackoff(){this._currentBackoff=Math.max(this._currentBackoff/2,this._minBackoff)}getRemainingTime(){return this._readmitTime-this._lastUsed}backoff(){return new Promise(e=>setTimeout(e,this.getRemainingTime()))}compare(e){let t=this.getRemainingTime()-e.getRemainingTime();return 0!=t||(t=this._currentBackoff-e._currentBackoff,0!=t)||(t=this._badGrpcStatusCount-e._badGrpcStatusCount,0!=t)||(t=this._useCount-e._useCount,0!=t)?t:this._lastUsed-e._lastUsed}close(){null!=this._channel&&this._channel.close(),this._channel=null}}const fZ={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUenyqJ4UaFBbwokatcUqAwW3o3rswCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU4WhgPMjI5NTA2MDcyMjIxNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm5b1+oG9R0qt\nzM7UZnS5l/xxUNHIHq5+NAvtlviCpJL19jrW9+/UOy00Qqc6vS6tS1hS+dNJmpiZ\nFN0EHew4VDR7ACnL4LDJKmIHWjQ0iwvZo5kCpO0r9BtPN5FvaSxyo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUeciBviJtjeuue0GPf1xllNw7qvYwCgYIKoZIzj0EAwMDaAAwZQIw\nJeG0H2HdsI1VhOYmJmYlNeKCNgAk+LMorzPmsIInVBO2HK2IrKfpReWDS/m5j51V\nAjEAxKBxDezJDqAZHTkTXCg+X9Q9V6J6M5yDy5IS90aCWEo+W8C1Hc6hkn2/NrvT\nPhwK\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUUfjO8LyXBdzrzbAe1Yl+d34IDsIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAERwfj4ZtD/wRb\nf8h9NEMu2sQoLFK9Gc4SQ8o6j4ccLYGdgOoVoq4zzy4Jr7ZtCTuACfCfhp7wy8ra\n+6cugccaSd6AzOKRSVZvQvkUTFKIoAOKwp6IhlU48rmi80MT07eyo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUCGhfVMP72Y0G5XUksE3dPgFHrzkwCgYIKoZIzj0EAwMDZwAwZAIw\ncpX7irZWyuujWRYUs9kLNgB2YLQK+n8r1fH+tJg3+zkcZ2pzhGWmpUUZWOzsDqGC\nAjBUbhlmrTc4LrEBN0EMiRYzfPD2kBZxusLBDIg/aDYERCMcsFvF1T9SsuasF/B+\ncI8=\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUIo4L+7xe/mUmpKy4qOAQEIxz8UMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEoFgCjb1/7BUJ\nEXKIPJLlsOSp/39G8l92wOSr7h+Py7iwVwu68H2ykftMOq3tRwDRXZHz7ViqcIZ9\nlfMcS8sbRtVm9tBbNciVUqTLWX9nHr/c4PhKEi+LdgtSUr2+hHiWo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUMR89BHC3yKC4YwUgyBVQUGBCprQwCgYIKoZIzj0EAwMDZwAwZAIw\nUs2BdslcScIwcmxoB60K7/1BPfQI8ccDZIMosas6U2zhinTnRKik1T0i+uHhLl8e\nAjA5apAwSPTnP7j3Bo/FOCkfjTqOjwp2lUqzDJYKolKsHX2sy8hX9MkYiY46SaJ1\nP+0=\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUWpji03mJsR/16MP8BrOfpNz7aQMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMTU5WhgPMjI5NTA2MDcyMjIxNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE+KDMC99Q1rWi\n+FwlytGMS5qzTDytCvk+PzdONnDZ/weNSv4j3BXSo588IwhIxLtfcBlyo/+PmE1c\n5qGFXuMoZjGr22VpvogkRgPejD+Gawb4A2XHkMCD8NmO66uPw97po1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUN1qEI4eQ+WHavb9ypGV417NvhGowCgYIKoZIzj0EAwMDaAAwZQIw\nL0khkiDOiFRa3wx9l5JNjaSRePPc3ZaTaJQkPYeauMaLWEvmC/0e2/e9gPm5qJ8E\nAjEAgXQMko3vNB8VRN4XjyFJa8p/muZ/tLA15wPnb/boUmiZ+njDDSaiu8tIQrTB\ngHW6\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUEJ7AJvrqDUBNKbssGoJtww3v+WowCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjAwWhgPMjI5NTA2MDcyMjIyMDBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEfgJ8w9GUWM3y\nyusedZOFQrgXFVsdtRsMSHbqyVCN6+Wow6SIjy29GRMSP5R2aswupFgh6lXJRqnr\ntY+hpRumFKsmSo+5+l8DBcql4rzs4utESTehM+Cq9LYc4A1z0UIRo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUMCm3UqSbT01Zr23hLzCGnXbDa+MwCgYIKoZIzj0EAwMDZwAwZAIw\nFNcN7mKJo/bwpRT+y/KbYkCJsvljdbXzJOXXQ3e6J6R+0vLqcT25J/ry6pBZMUwR\nAjAswu29z8KJCSxnWwnPpHDmkRT15zG/xS+pAmx3oeQSqp6ZD7qpdJE8zzhbfe5x\nwAc=\n-----END CERTIFICATE-----\n"},hZ={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUMkNeM6Sbk9ZFYmRWZmSgTQHHWyUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETLLoIMZjEhDP\nKLHS7bJT4OTYGgR/8mB65yfx3KqMLYFF+q2SpWkIrYgUQLVEUEibVSnLlxRUzH7R\nszcKynpTwh0W0yfWanZKQg+RWoKkEYlu2GvkUtJb8cRVM9NLmJUeo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUSrIepwFx8gZ8/G+WGaxs6GgkMtQwCgYIKoZIzj0EAwMDaQAwZgIx\nAJxC0fjB1OrF9vkCKsfnPS3Z+1hscrZhEDG38NxdLEAfPQ5VmyrSBgJy11FBp8yB\n0QIxAKzbge3Lf7iBMwYwm+2M/GiVgmHNMLdtrYuerWpdbYOHgRNAkyt57JoThn0u\nTzkd5Q==\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUGLriiLPacglp6U+BtJcF9TI7xEUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEXhR9cb6mH9AE\nGNSGk3OkxN1C/JW49ddYZ/XWD4InjS8D1kXmB1Y39v1mF0L1loG6lDT8Zp46zrj7\n5zMONXZeD2b0mx5hHhtllPTpJ10Tlt9FDoyFbKwPRQ/SAPNADfuzo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUCaKtx8RZ1XJO9rmZMbIcFJZkcv4wCgYIKoZIzj0EAwMDaAAwZQIx\nAPhDW0VrNSmq8hODdhIVV4GyvpYhp3Fksg+sZr3DmUatwn+ptj+X+9IzgPl9QYE3\nkAIwcy2ixgNkjC/DYVmgT4MpUnLneLK0gA23Vj2QwACaTH99H/ybqUH7srj0POB9\n5wvV\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUEMduome38hvAuIKoGjg/tHatQZMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU4WhgPMjI5NTA2MDcyMjIyNThaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEl1olzP1L4WgX\nd7aujOXmTQZt3tEOGzkMa3S6qJwISLBI7Tb9KaW8zYIe9xWBVAwphCbD0wn9xpPV\nwMr4uTn+JocugYBbe2YoUGzWTkxWnOEKXbh/nQJCe3XE/C0FY8fAo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQULfw7LVtTiUDVIvZwhhWW0soQtSQwCgYIKoZIzj0EAwMDaQAwZgIx\nAID5v3Lo2zlnpFzTdJFqBpw6fV+vmpI+JBj61f264J/uHMbELiu2dwxhwWaMElX7\nwQIxAJxccFr7Bf1KjaMyT2dq75zQzFuKDMj9x92yAqM2Gas/Yay+Ccpm8FBn7BFl\nke1Qwg==\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUcCg/gZGxk/UjYkhW1jg4Zki+jfwwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU5WhgPMjI5NTA2MDcyMjIyNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEOSsXBZicyrxy\ntHJHKh04Mvu6SKM49IC7rAXw5CjlOod5OTeHg0fa5vVoBME4mlWP+LsMMqf8welC\n20b4wMwUC1Hnd66v8crX8L1wvZ9EmKLTvhTd65bS5zloMiSbpdF2o1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUgMMwqaGuUT6JCH0gsbqullaW6/QwCgYIKoZIzj0EAwMDaAAwZQIx\nAMggJ1eMmT7C14z7wHCsOdDOgmzg733+a5dsuAcxknoz/sQLN8wqy1JxShWgEIA/\nxwIweTDAX/4JZnr3mlSC57lYXbHk/c319VfN9Ybxg0FaDXa8tOqg7Ml6Uu3IGujQ\na3eY\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUXADwhiD5acpA66GPoXuAevBfZBIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjIyMjU5WhgPMjI5NTA2MDcyMjIyNTlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEBgLhLiGz8qWu\n50vzxSyQkrmhpxuHBJhpGzA0WaUJdAUlaUOL1753ZxxA08wUmcozILNEnMaQ+ROn\n+fuGctv90ZcrSekODjxjbKH2ntVLP8xwkBRCTJ0WRBNenxxBD438o1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUhYOOD/z3ty9O5GuSTXnyujIqBRgwCgYIKoZIzj0EAwMDaQAwZgIx\nAMxbZ4gvkXaORauQFUPRYwOJrihWIA+3ttGDua//YfEbshytQ8b4L65W/1Xs8eOd\nDwIxAImwTzRam8tScdOzmuGgPcML2lkETMpMA2rZYVyEL/VNktIxvB2oE+4M0v5l\nr8IbTA==\n-----END CERTIFICATE-----\n"},pZ={"0.0.3":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUZWoT9TlgbZy+syLbqZhO5++1cVgwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDAxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAwMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8NhDGK/dgWvD\nRHEJ8af7CBDdhvujH5XIrLen33GTLY8DbJwJW2jdsLGx3+DRVVmeNQZxCbcGj0e2\nIyypkG6s0mtnmeymD8mI3JU8m1aZiuIptZSH3Bw1BNn2hKU4x42co1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUbYGliiNtMkGaroQxXWCl+kYHDBwwCgYIKoZIzj0EAwMDZwAwZAIw\nImTOEYu0y73Ggt4NAjFFsN2sV7CsEL3NoJqJ7MZ6U+b3Ax1hnc1eE0oei6xH4VNF\nAjBB4iZNvAn6Esiu4k+JPlYuMesplgMv33fU5GsfvLIovN8pOJDe0c+CUmsnfGbP\nOsQ=\n-----END CERTIFICATE-----\n","0.0.4":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUEGWU0F4aKffY+le55ahQaScDYDwwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDExHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAxMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEqW6TqxMmjL3h\n9AVBgfVaFRZlXUcyWa+QYhzxr8sksgJqfDbmGtdaHIdiL1qCPuC4v4G3qrAbXZRm\nTYNo5Lz0X2ic5pES6DbacdjOgHH7TAY4BVKkuVrydln2jjhh7SmBo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUcBlY5a1rV0H1iQuJMwWxrTEWQ6MwCgYIKoZIzj0EAwMDZwAwZAIw\nR+mY9B2U26yD44s03hjz4TlpkyXbVfmgL3Elqo3lrWDJtvT4zpjGjxg3Q1P3SpZQ\nAjAy9DRVrZPzq8iq5Ir7B8XgLQH5QL7SQ3tUL1HzXJYOukvn9Ofr+QADhpb0oJLB\nKug=\n-----END CERTIFICATE-----\n","0.0.5":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUbxzfD3ihIK5snumqqKtqtcBPSSQwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDIxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ3WhgPMjI5NTA2MDcyMjQyNDdaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAyMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWoAjWmW7vpUr\nU69wRbK9Firons4kRoin6N8lMjCD+xzsrsT6/wycpzC0F8fxfIvOYSMWRtinhOKl\nZAxp60OWYP87iH7RqWBAnHIJZj/znKTGd+8Sqp/RVQmButFHg/+Go1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUTMtwuDzI4Hun7SPp2Nb3scjUUXkwCgYIKoZIzj0EAwMDZwAwZAIw\nHKAgaX39Lgc+4/xHXzZR9mi2p3pf6CDO85Xm56UR/t48HnBkRorR3TFCBXACeIIs\nAjBtXglpDnRf6M+nVBlxLdwCQXiwr6vQJ9+dUo+suNkZ1JBmtHypyIqkG2yT4z9C\nLcs=\n-----END CERTIFICATE-----\n","0.0.6":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUPwXdJvpCJYO9lm6uQN3S1aBi3PswCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDMxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ4WhgPMjI5NTA2MDcyMjQyNDhaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDAzMR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8PwBQ0ywu+0t\neIYbaiKwzGEScQMOYFYAMw49++6bGRiH/XZjsypqlJWy3F/mB3+HNVZsqgB61Jpj\n2p98Afkl57MYWhWM29t/x5qAQ8LhKGu2k+BOnCcvHDU2pR+fmFSOo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUgI4r3/iwzFN2wh76y/4XDBk7wgkwCgYIKoZIzj0EAwMDaQAwZgIx\nANAjwHdTWYMCCjrtb2NWzDpsKjf3m6ZcaxbEcM1ta/Zji/4x0+VRZa917CkfaEsr\nLAIxAK/erPvIXRU9eNaK/TAQqppSRaF35G6iNnYjQZzfjTU2DczhT4oCjKzGoCHT\nkI1zOg==\n-----END CERTIFICATE-----\n","0.0.7":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUXUGzJj13Ck2Cp0BKauLOdzgCPwIwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDQxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ4WhgPMjI5NTA2MDcyMjQyNDhaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA0MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8Ee64Tbu53i/\nKsuLOJG3GQ4e9gQ+9BtEy7U8kfFzRHh6Ejn7LOW38ZdKX1HP4zXuUusjNvytqDvr\n7eclitqnegcEOkIeFK3wQwBoNILuq+r4LRVi19V+AIcl5w3qkJvIo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQU2tbfu7hd7USgbS2WsG/6BduKEAMwCgYIKoZIzj0EAwMDaAAwZQIw\nRw/BOLoScmU7P/1JnNPsGarmnvcuJrokAv1wk6j8s5LGuQHReX+d+O3RPLggwcAY\nAjEAjoZnt9simul4cVcVy4G/0f39atanUva17gyzlYXEYx7B6UloxLeEcZhlbBf8\nGjRf\n-----END CERTIFICATE-----\n","0.0.8":"","0.0.9":"","0.0.10":"-----BEGIN CERTIFICATE-----\nMIICnzCCAiWgAwIBAgIUNauEDBCmP9igXLWtRpzkQqIGo/wwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDcxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjQ5WhgPMjI5NTA2MDcyMjQyNDlaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA3MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEjbkoJBshQXUy\nqm5K8ldpTDR94Wk8iEM7QwHfceIxK5pPgaVGRkoJyVLSK5LMH4jyaIHUrtA0lIBQ\no0MsYkq7TOOm7+vo1Yrd8EMbu5StMb3gsXUrj7E/SBKIxULak6hCo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUyKHMzIBPRV/mrgG7tIjzOiw2xbUwCgYIKoZIzj0EAwMDaAAwZQIx\nANsigVtLgTdKWBPVJPstWA0H8yihf0/dmM3GO4qp5keGTWz/O3tnom4iDB6eSrcA\njwIwU82Dh+Wxl3kAD3YJH5VhlfHTm1rPlJETBHZgvPBOYqippao6+WZFEpn2/IDC\nNTjn\n-----END CERTIFICATE-----\n","0.0.11":"-----BEGIN CERTIFICATE-----\nMIICnjCCAiWgAwIBAgIUWtnJm2kswnXYu7/S5BnnTQiDRcUwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDgxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjUwWhgPMjI5NTA2MDcyMjQyNTBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA4MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEjY9Rl+s00xFV\ntdTpAixLR4kJIGLfSLOdm+ofU/KuKMRSz5x1ORhIicppKZK24U5WLGXQU1fKLvxX\nOmqwqL+6oAONmiHszqVdhWne4QPUba0yw7rf1/OI+IFF1HRK3shQo1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUb/htoTodbq5hjP5RNlQ0rkKwWB0wCgYIKoZIzj0EAwMDZwAwZAIw\nbO+9yArr21XKXjYHPadEAYINDxgXEC3W8e3X6MJsHCIZITddWWOyXRNFhz504vN0\nAjB8aBuhrKcg1b4CrQDZQcosyVPUGIZKkXdQFfbVdivKrGZvqLS+GdPLd3v2MmHY\norA=\n-----END CERTIFICATE-----\n","0.0.12":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiWgAwIBAgIUHBsegV0bKtwpHRoOnnhbK7CTHxMwCgYIKoZIzj0EAwMw\ngYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExEDAOBgNVBAMMBzAw\nMDAwMDkxHzAdBgkqhkiG9w0BCQEWEGFkbWluQGhlZGVyYS5jb20wIBcNMjEwODIz\nMjI0MjUwWhgPMjI5NTA2MDcyMjQyNTBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UE\nCAwCVFgxEzARBgNVBAcMClJpY2hhcmRzb24xDzANBgNVBAoMBkhlZGVyYTEPMA0G\nA1UECwwGSGVkZXJhMRAwDgYDVQQDDAcwMDAwMDA5MR8wHQYJKoZIhvcNAQkBFhBh\nZG1pbkBoZWRlcmEuY29tMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEK+ZAs/00RXaj\nbuQJJy4zwr/YTj9h5V+vbY7sq9Z1RByEwTRRQOI3OuzzMq1EWKkVJKF/QF5b4yda\nx6W9O/NT4EjBXH5XR5X1V6h7aT01YBqsxgMxuUP7kw9K+fW4k6Zao1QwUjAPBgNV\nHREECDAGhwR/AAABMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAd\nBgNVHQ4EFgQUKbecoYirLjf2O2oPkoggEE2P7FcwCgYIKoZIzj0EAwMDaQAwZgIx\nAP67wsVOkeFo/9QRo+PnZhzEvjOZ/+IUoUhimdljcVwn79tzNP+obf7VW3Oq1wH7\n4wIxAL65+WmMTMoI2cN7TCiL7G/W2ChDsASeHfaP/4e4ZViNONWotlY9i9aS3Kwt\nLTea1Q==\n-----END CERTIFICATE-----\n","0.0.13":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUBNxMZRKru9jzFA8zsOAI4xkMFCMwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEwMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MFoYDzIyOTUwNjA3MjI0MjUwWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTAxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAShUi9sglwb\n0U8QUrGOXJuHRXA9HP8RypkgNBwNRs1YcmPLcuwK70unWlkB81M44IQ7z/dG/0cW\nhfFdRI5x4jAeiUFivmWmMLT6lJMPxJ0BkWTGVFVwI3SKcgSvHP9pNS2jVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSqIMCDzCKKwJJLCXhu9YJYPw6lsDAKBggqhkjOPQQDAwNnADBk\nAjBl0bJG2A3443ybvrkKjWu8do6nDSR08/M49+19QfA1aDw0nb2sdCOE+xNitpQ9\n7ngCMGuQHmnKA2EyOIVpNl2EtRoG+vdmLJQaoukhmCWjkGrQHkai473tGa9cRZ/8\n+RZFzw==\n-----END CERTIFICATE-----\n","0.0.14":"-----BEGIN CERTIFICATE-----\nMIICoTCCAiegAwIBAgIUJcQrEmPlIh0KWwiC2X6lZ/OdNs8wCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDExMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTExHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASxRizKJSbB\nHmG2amvTHLCyExJngCh42agaFkv5Ab9mZYbqZPe0nUn/8RlVAvEiRNggCMYXC6MU\ne4J6D1aeLhYaa0UY8Fmxd20NUjAOWhJgUXds4ILMMVG+pevofeC8AsujVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBS2Ic+LU/6Wssns4Yyf3N6E666xDzAKBggqhkjOPQQDAwNoADBl\nAjAH0JMX48GD6vThA6FUsVnJmBID376PRZgxhuZvn9C0HawvNjZVQTkpzpYCwmia\ndO4CMQCotakNxyiOxu/BbnPx6ld5+dqVCugsfqClhUhy8ROpNHfKxp3rW7HopowT\nWiMlIyI=\n-----END CERTIFICATE-----\n","0.0.15":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUSFFNFv1iquxd5txlWA3PlkNju2EwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEyMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTIxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQus3nAPZkb\nja4Efo7iD4s8NLsFwEwQXQBgBGIJwtA2JRgLyXeWpuu125ib6qJzT8CHvQZhel3b\ncwYWi4f2JpabMDepHELLxwZ9fILnAQ8GiHlzhrVq2NI15DI84dXVe4OjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSEO/JFC5/fDcT2gtipDMYMMTd96DAKBggqhkjOPQQDAwNnADBk\nAjBalAU47XQL4ziHD8lj21pcp3+R5FKzn96HclMT/vraknCT1Sl+vCf6EYsqmi6Z\n+RwCMDpxL6P6OMqyE+HzAeYQ4Fa7MYEQfZGMjka4zxetBLvIpwUCT4EAO8gv9GoU\nwCBUzQ==\n-----END CERTIFICATE-----\n","0.0.16":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUdnkil4P+VthVMnqygVwGKLt7VfAwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDEzMR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MVoYDzIyOTUwNjA3MjI0MjUxWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTMxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARUdz9ig/iA\nhEAth2YinHKY6WM63BAxUVItzgk65l1T4wTzwoK4XEwclY5vIeFmZy2e0s95lWgq\nSI68VS9gmJ3xp8Q9wOel/bvuF2tvNZmF393TeoNQQVHrQM1yJAx+nPyjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBTBFdNwHKSRDo6CxfA1aglY0N8joTAKBggqhkjOPQQDAwNnADBk\nAjAqPIel58Rcl2kDxZxJPD9mK9xW4TU+d2NuP3n140TQ6nPlw1OwCPI7a4i3wfEe\n08ICMBbrpNRdFZcvy76KoLPfTPvqbtWWaR/0tLZg4Rjj3x7SYgUg3vrVDmodHGkb\n4T2Raw==\n-----END CERTIFICATE-----\n","0.0.17":"-----BEGIN CERTIFICATE-----\nMIICoDCCAiegAwIBAgIUDg+G4Ep+KEmIo+nCOY8DjFX60swwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE0MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MloYDzIyOTUwNjA3MjI0MjUyWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTQxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASCQRL5xUUh\n1bsTXRPAf/qVFWEOxsJTiMlF3+UJ4MajWE5zmc2QNIzqj7NE24z3fNxgjViNK/8+\noBNQeqXfyJ/4etNMzTyG4JTsvWRAQ3aR1J4WDbfwpcgw6AIOKq9OLP6jVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQB9V2fygf48zyyVL3bnAxCLDUV9zAKBggqhkjOPQQDAwNnADBk\nAjBonlThjjvi3fg7ODQcatPHBkp8Yon/p1ukm3YzYA3kitqroXU7BkmwRae2fbqD\nTTICMHI+fAy+xWGwXAFNcvNTop11IIoszcgJJY+1Mc2Q/USk3pP6iezta+rvnaWu\n7JySHg==\n-----END CERTIFICATE-----\n","0.0.18":"-----BEGIN CERTIFICATE-----\nMIICojCCAiegAwIBAgIUBvI2Vq6O8yXNzbQlj6uQOdpd1lIwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE1MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1MloYDzIyOTUwNjA3MjI0MjUyWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTUxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAR+jFDSzCdn\nmMQpgz/vrmD/xioMioumUmyLAkB+voTNsMAOtiaDVbvJty3b4SJETv5tuZyaF5Gb\nQAYuKsP7X8siCCVLZC9i9nCg46NHtuQkEmw1pzUUDmYFDfSV2tWedNqjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBSqvCmoaVEp2d9WPctby+ooPMGmvTAKBggqhkjOPQQDAwNpADBm\nAjEA9fQ2OFZa7fAQGGYydfVaUF0ObxKj3T+hyl0jiCKLe+hyxJSrXCFS2BM71UiG\nZMVxAjEAmCzESBzTVvl4Uv3TyActGTijTCqTNpN3gJmQbZYjKVtqf8Wxj9WeH0pM\nE8BlA/qE\n-----END CERTIFICATE-----\n","0.0.19":"-----BEGIN CERTIFICATE-----\nMIICojCCAiegAwIBAgIUZBwp7UPLJkDgngbUIx5xjbAn+7YwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE2MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1M1oYDzIyOTUwNjA3MjI0MjUzWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTYxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASCVYu2uF3T\nkCkyRP0FfXVyyTA1z8DFqCKGrcODgGJuVAk59H6u8FIRsNipkb3BXFI0xGccok5X\nT+t5bMaGDHYJ4fjU78UtPNmankQ5HoiMRJpy7Vn8mzizUzUqGpnhu6GjVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQzE6RGn4YlIbdrl0niKWTtJzfXoTAKBggqhkjOPQQDAwNpADBm\nAjEAobnXnwlNGNWoHscbl/ytUBSyjC7V11sLYJqtORSRX3k2+bFGsg4ltmOVjTdd\nlXatAjEA/Ja3jufmdruqfLa6qigXuYI00YaI96sOwNhdHlnksYfqF41nDe4BsSW6\neQ6N5M9d\n-----END CERTIFICATE-----\n","0.0.20":"-----BEGIN CERTIFICATE-----\nMIICoTCCAiegAwIBAgIUE1ZRB5n+Yby+Mwgb2xAcVfTZ53kwCgYIKoZIzj0EAwMw\ngYUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJUWDETMBEGA1UEBwwKUmljaGFyZHNv\nbjEPMA0GA1UECgwGSGVkZXJhMQ8wDQYDVQQLDAZIZWRlcmExETAPBgNVBAMMCDAw\nMDAwMDE3MR8wHQYJKoZIhvcNAQkBFhBhZG1pbkBoZWRlcmEuY29tMCAXDTIxMDgy\nMzIyNDI1M1oYDzIyOTUwNjA3MjI0MjUzWjCBhTELMAkGA1UEBhMCVVMxCzAJBgNV\nBAgMAlRYMRMwEQYDVQQHDApSaWNoYXJkc29uMQ8wDQYDVQQKDAZIZWRlcmExDzAN\nBgNVBAsMBkhlZGVyYTERMA8GA1UEAwwIMDAwMDAwMTcxHzAdBgkqhkiG9w0BCQEW\nEGFkbWluQGhlZGVyYS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAR0OfTmHjxT\nkBiU3GMa/bTvlTswCDAuFQGIIpMWHaf6V4ighzmn20jCg0AVFStb2q7YLRr4HUx8\nToMzsd7/yjl74BwJgfZnL75T/JInwyMgOBiCTXEf6qVDvhNzL4QJuVujVDBSMA8G\nA1UdEQQIMAaHBH8AAAEwCwYDVR0PBAQDAgSwMBMGA1UdJQQMMAoGCCsGAQUFBwMB\nMB0GA1UdDgQWBBQFKRUUmdFcDFQzBN9XqMvLgPd7NzAKBggqhkjOPQQDAwNoADBl\nAjEA5MUUXSehY3KVIv/2LMgrqo1kPiV39fwYuLSnsMJ67wK8yN1NAkkycg6q2K6g\nrBIvAjB3J3a40TINOZTYG+eQs+MSWyfANJLRuJTEOorXzMWM6+05+JYhPnLA8hke\nCRfzmSw=\n-----END CERTIFICATE-----\n"};class Dg extends GD{constructor(e={}){if(super(e),null!=e.newNode)this._accountId=e.newNode.accountId,this._nodeAddress=null;else{if(null==e.cloneNode)throw new Error(`failed to create node: ${JSON.stringify(e)}`);this._accountId=e.cloneNode.node._accountId,this._nodeAddress=e.cloneNode.node._nodeAddress}}getKey(){return this._accountId.toString()}toInsecure(){return new Dg({cloneNode:{node:this,address:this._address.toInsecure()}})}toSecure(){return new Dg({cloneNode:{node:this,address:this._address.toSecure()}})}setCert(e){switch(e.toString()){case"previewnet":this._cert=fZ[this._accountId.toString()];break;case"testnet":this._cert=hZ[this._accountId.toString()];break;case"mainnet":this._cert=pZ[this._accountId.toString()]}return this}get accountId(){return this._accountId}get nodeAddress(){return this._nodeAddress}setNodeAddress(e){return this._nodeAddress=e,this}}const gZ=Bl._fromProtobuf(ln.proto.NodeAddressBook.decode(Mn("0ad0070a0e33352e3233312e3230382e31343810a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340acf070a0d332e3231312e3234382e31373210a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340ace070a0c34302e3132312e36342e343810a388031a05302e302e3322cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039663166386131323163326664366337366664353038643365343239663063363462636234346338326137303537333535326161646361643037313536396537323139353866356135643039663935383766666166636662653533343161326630313134616361653334366566336339303231336433343336656262323766343335306339393063356338633366386531653336373037626330386434323536303832336533663234653039613033616430393535613530393830313936323964643034623237623235316463653035356633646463623061343164363666303934316230623837636466653334393864343630333861623564663036663632613561646530383539383537336138386338663538363064633134393261366531383634383561396231333235306536643137623830636433396335633831393130396537336361373332646232336566386261613737366563383563653030393162656362326564656662616135656433653564626662643166383835613466613838316166336631343461386135363538353335333364383933393335393230383662326431643336326534356266653166623435363833616261366336343039373961643662343638373731383437323663366562643538623265616538356337636665336662616265663566366363656438353030333462333834373230366332643637386333363138373630323662386433353165303032616635653066666536663562316632393566646332663436396361613264323338316561306234386361393837636332633865363335653862313963653565313732613933373631613864343930613961343531386437323535383830613134643737623762613737343839326239326134306262383133363265333466633664353137386439623330313132393334323035636237376662396132383234323733393435363461383535346561343732383661343766383632333965373563393437383963653938633939383434373832343632393434663631333136376437623530323033303130303031320218033a606666643661646137346133613334613930346265613437363033303836663862656633623662653138616265643434633464343065313266623133306239376264366238353561656335643062393062306238633733353464356633623065340ad1070a0d33352e3139392e31352e31373710a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad1070a0d332e3133332e3231332e31343610a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad0070a0c34302e37302e31312e32303210a388031a05302e302e3422cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633535376166353739666138333530316265383939623238393037373635626664666364353261623433326230313935613166316563643836666330306162366335353039623066646439376564643363623563656135366132393566333132616262353530383331646266393633663435303131386234666363366532326366343637363230306365396363386564666262663535386463363966303234323634616437643364616232336265643231333363323734653639333434383931353564623130383766393033373039303563363431383561363231316463373432666239613639303964383231383639343762323737343633646662336666306163643437656666313265616431663639373265663263313230333739336334356537373537356265346661313130633765343066613864623963363138376431313366343730343031343137393037316162663539626537643262306465383264653432313564633235353036623163396332366534393137343031633939373530366533373765366266303362363838373237653739343066616436396335653064613363643563626432626537373733353061656132643064343765393761343438633834626536636531333464363462656530393835633239313632663463316535363763636139336430366133633162653861626365333562353537666237376634666536373161363664656337393037353664306538383138313635663262616361613839316161653761633734333766633731373562366562366465623734373233373837353162623662663962306531343833663936363865396664626435363034633339623134643965326265646565633834366139383064373034643137316537626134623766636431613330643934356361313266343761333235643933393861613138663937303636303534643464313566633839393465326465626537336539323731643534383638336636316561343466623235303731653335313861373865643365623337653731613036393166323637303230333031303030312801320218043a606630643934616363663664666633373238373463396462643864373939326562333137616635303031636134313936616261323635383039636233643230306261393631613534333863336135656430356338336264663963643131356432320ad2070a0e33352e3232352e3230312e31393510a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad1070a0d35322e31352e3130352e31333010a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad1070a0d3130342e34332e3234382e363310a388031a05302e302e3522cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396261343537623733333035663034613931636334366231623936356334653834313735316162633862313431356130626164666431663332633234383233383661323237323565623765633734646561323165353036313764363438656135616333393337343161623031623865666233323132333962386434666462316466626562396533663339616134363538306464303435643138636134346430303263333764646235323763636534646463333262666337333431393637316634636134343634613366326138346663383563373161636630653561383936323664663639613831343734656431363532396638303161386166613937653433356334653034613936346133353735323732383838343365353866306130356366353135336565343530376232633638623364376662353461653661393561393539633837613132663633306539356337623162336333363935653835383636323431373932366437366331363938336661663631323235303338373435393037653963663133643637633261636435303363613435316338353933336163343131386163633237393830316362393638333439393033313435636564323736323964643038393136333137303933353837613737633232303563666135323534336235336333623665613135623834653364326333306331656437353261343633336333366232356239383933656130326164353632656239623738363862336234663437663461323565333536303634393632616337623235653538323934346630306433303739386132363266393231346438633565373464306138333736636332643662613634653138663565346134306166616336323530363264326361323363643238303037303833323164333833343331346630653538343438353932333236373361333265373061653064373131653331303538316263646231346538373133343639346336653039333066343662333762393664343961363435373339343733333165376535303764396535366465356536313436663266303230333031303030312802320218053a606361363738656263626433646338363438663765643033666235396630653231616636373531336561656535313331386536623534396265356163653930366564633166666132366439336135376163656339626537376634306561656564370ad2070a0e33352e3234372e3130392e31333510a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330acf070a0b35342e3234312e33382e3110a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330acf070a0b31332e38382e32322e343710a388031a05302e302e3622cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633432636361633566626336393166626265626461383766666431653735626463643839323234393463663434666462636365653439373838353231633337386266373764623039333465633064323138336437633531646236366638363463313161623764653161633363346366646331663039336132643666333765326233346362653463383133316639363833616434323837386338336433353534633634356161313637626366623036346138336463343563356231313538343939663964393235383766666637616263643566323231636438313530353438343133303030666136653536353930383962316466643635373636656137386561656466636136623435343535666438616235393834646265333565353739356432633633356561373937346434336538656165346665626666653439326537303762343862316230666336343831616539653039643339313333303039623764323634303265366535326535653931623262333830643838663062653766623462333033653730323139373835303537616139346365393234633439323665393136353639323836653836623362613635316361326130613633646634663639303766656665333438336439336234636531643464303363373134323131313337356232633263353164346562383339653337616635333062326362643666353064346362333665323739333731373064396364646163306163653263633234623830346230613237333531636638333062373635323565323664666239646266343961303536363234613736383632343934653732363364306437306365626165393532393433653535383432663563616431336663663630613265366463663761316435333366336135626235346563323139313863373665353235626132393134363637353833316531376533366336316665383534393838323864303962373632303135343132623265353237383439626165633163666663373764653463323934633535303831316535393866663234646131356133343536396464303230333031303030312803320218063a603234373166336665383134303638316665393139313364326363303633663036356534343930616536326666356435343861356162653133316432616639366362653361633235626265323433363663613466386630653736636639343566330ad0070a0c33352e3233352e36352e353110a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad1070a0d35342e3137372e35312e31323710a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad0070a0c31332e36342e3137302e343010a388031a05302e302e3722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393032663034393061396237663564326364316330643936633661363939306635373362356630656235626462626133393636316566303233303932343139333434363639393639613638613463373037316433323939393066623137393265393030316362353539386561373163326436363736383234333230656534636162663164643335376165376632616462656463316231623061396439353632333737396234633463376234376334373837613136656537313838633732313731373736323461393236346162333963343166376666306234356138396264613430633461643037633464353936643566303964373035366263623561333566343466393561353963323636653039383932646362653436616435316632643262336539393161386636363538653166326362393463373733656234346334346538393264316535356331303736663136303833313965653635376534306631393239363735343361623432616232323233383664313735383665323533373438646162643032356535306235306165363035303732306532333964363465653666623435303763303631346464346265376166646231333330383930666633613665313736353237633331313661663132396139616335653333366439663630316537313237613664376438323061643266393032646163396232343836363861316261623038643130333432656136396137303937313332666637313230636336346663646537383430633635366261313733326261393565396333363735313137356534656333643834613765306432383834326234316262626264366632386534366333613636333365313832373936356335353832306435306461653262303436356363306434326531393562396431353332653632323565623939386436613439303739613861316364346430313735646533633837663937363134383437623363626231376161333462653832306237623361643938616333666165663939336136373738393734373832633063346165336661626263633433303230333031303030312804320218073a606633353738373364343131346131616566303361646336626136396566616632363930653232376162633136613666633665353034396136336662643936383830303462313465343633633230653338343336613361323464333138326464380ad1070a0d33342e3130362e3234372e363510a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad0070a0c33352e38332e38392e31373110a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad1070a0d31332e37382e3233322e31393210a388031a05302e302e3822cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393164376466666637386634656662653538393034353063356263396533353334626666616461643933666237616662313562633762636636376433643362343133626439393934306464383235363461646130346162326534656466306131633062386662376531613830393265393133386539363062653263633638623562393766353764323831633538373265393761343739666338343833363331363065333836336235376233336534383639623138356163653565333662643433616535666136373863396562363666316634303134373836383236623266386661376530303630663434303563306138663964613732303566663436383361323433666130663331356631616662623461346431343064303232333465343437336662393266636233386633656232386336306366376362666236346530363963313830383665346464363139333839323061653066643763313933653665313034653635623831376564393339386532333232333766646630383332326339636563303964343039393237326137633031356432326234646363393639663665613166353138393032313035646636303039326235356134316234663332623935376235376438346535623232333930356538363938393531373333656139663265323436316563306436353232656538313664353835306661636665623431326366663962393939343361383764633064303436343437636539336239376531366437336239366234323633393632663831666366393435386535373537376337383061366631363135616137613132333236373338653236396262373331663839653839313632326535373765613534343230626630636134366265366663346637316366323638316163303235326161383835653133626536373263643238343539303432376463643133376366333131363235653862656533623038666463616166343635623338376365376362333338313666326331346136623939616337643733343331386366633539623765643933396261666566383739303230333031303030312805320218083a603439333161373832303264353566313062333135373537383563336634333964623638313962643131303033646637626332636539326532396135313762376332313838306465623463303137393537343462353736636434336238343938640ad0070a0c33342e3132352e32332e343910a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a603634653039383631356266343035663765643561343031333434366238396334383863666364366262323561346136373664633737656561313164333364373032363832663061363961383033306538633537373764306534323230333739390acf070a0b35302e31382e31372e393310a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a603634653039383631356266343035663765643561343031333434366238396334383863666364366262323561346136373664633737656561313164333364373032363832663061363961383033306538633537373764306534323230333739390ad1070a0d32302e3135302e3133362e383910a388031a05302e302e3922cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633665313863386662663463643465623130343534326362323061616161323532643935663035326631303836643538316334346164373337626636363736633063336637383961663532363562386166623739623530393132646138346530616663663735343763623166666630386430353237303137656236646335636466383362353139363964343433333661363338376364373062393462663463396261663230323938343065356634663836336437303831663066613831653038363361646564623862383961356461633262623535326436653762396662613232326163323863353730373535333866633935373939323934326433343166613238373665366235303765396365376564353732653863666461356465666133363466646638643865323338323961346363626234373866313165656533623332616238356530373239353163356439343230313135666261333237303733343934663433623566366265626638343135326533353665376231366261373634623761336235326362323733343634303136336265313436356536643166613463366536663636363834613633356339613535366161373130306462653634356466386634633432336165343561303863623335623462633138373838366532323939623563303231306135666261336239343439663438336566393465643932326531653938633131336265313636623839633733353832323433313335643434323330366162653561373162373730313866663333356436646437393534323639376231363832333862393637323766643133333962356638326133623661353937643937363033376165323530363435366338623334653966626633626333323431303434316334626663386562613538353937323534656665626661613738383039613563383835343732396135626137386563653139666338343037646438383934613662633738343430333764383738636163653663313532633265383965386136346230363861366332333765303939393362653830363839303230333031303030312806320218093a60363465303938363135626634303566376564356134303133343436623839633438386366636436626232356134613637366463373765656131316433336437303236383266306136396138303330653863353737376430653432323033373939"))),AZ=Bl._fromProtobuf(ln.proto.NodeAddressBook.decode(Mn("0a7f0a0c33342e39342e3130362e363110a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a80010a0d35302e31382e3133322e32313110a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a81010a0e3133382e39312e3134322e32313910a388031a05302e302e33320218033a606131373165336261383334373637343761656232653261633464306531313563616161623931383230336230646665316364656162343433343338666332383961626338626138613661666638336462356631623333343034366461383863380a82010a0d33352e3233372e3131392e353510a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a7f0a0a332e3231322e362e313310a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a82010a0d35322e3136382e37362e32343110a388031a05302e302e342801320218043a603734303964656332653439346236323765653439633639623239346265316365616562636133666463616633363738396538386663376435623065656635353631663532623832643335313931613339633266626564363032373236373136360a82010a0d33352e3234352e32372e31393310a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a80010a0b35322e32302e31382e383610a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a81010a0c34302e37392e38332e31323410a388031a05302e302e352802320218053a603962313431363538346134613338306262383661366337643732303764386165646462633362363365613330353939383235356263653833353162613462356463613532633932383261353461366265643630646536336365303361616132340a82010a0d33342e38332e3131322e31313610a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a81010a0c35342e37302e3139322e333310a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a81010a0c35322e3138332e34352e363510a388031a05302e302e362803320218063a603634383636383562346536653063623936333437326330316665393939333166643965346334343838376261383334323361653766656564323264363438343834636638613362633563636361366133373338376266393664333836373238300a80010a0b33342e39342e3136302e3410a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a83010a0e35342e3137362e3139392e31303910a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a82010a0d31332e36342e3138312e31333610a388031a05302e302e372804320218073a603339653930393931356138353238303330313534613663373730393530633762343737376261343031333537633065363138373635343231356363323061616363646438653566663239653963346439356366343130316661363862653435630a83010a0e33342e3130362e3130322e32313810a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a82010a0d33352e3135352e34392e31343710a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a81010a0c31332e37382e3233382e333210a388031a05302e302e382805320218083a606134343837346137616131623337373431613037316164616165373866623135326236393664316335386438646566626531643832333034353332613063303139656539366363313964373536383635373864333961316536633331613165650a83010a0e33342e3133332e3139372e32333010a388031a05302e302e392806320218093a603639383332613733613336303265386431666265356164353864316332363337613162363732643731656538376166313064623634386562393161666232323832353362316634376535376433643461343466663534376233333934616132320a82010a0d35322e31342e3235322e32303710a388031a05302e302e392806320218093a603639383332613733613336303265386431666265356164353864316332363337613162363732643731656538376166313064623634386562393161666232323832353362316634376535376433643461343466663534376233333934616132320a82010a0d35322e3136352e31372e32333110a388031a05302e302e392806320218093a60363938333261373361333630326538643166626535616435386431633236333761316236373264373165653837616631306462363438656239316166623232383235336231663437653537643364346134346666353437623333393461613232"))),mZ=Bl._fromProtobuf(ln.proto.NodeAddressBook.decode(Mn("0ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030633435363165336332373863643635306538306334313363613434343233633163336331336366313437356636663639373664353937616534333262343961623432303836623739623834313332363035346238623364636635376438666364373962666330353831383363613234636434633163626335373465643131313765326635623762336336336365376230366439623465666366373337353633376234316665366635336338313162396465363134336633613532393537636466393536373735313230623333373033666635373632313430376162393537356263326433356330643434663039383366633165663633613466663532303966303730633932616631303632393536303163393662636564303634656331393031393730313963363831316334633864643830636234663461633731663961643736653761633839343536666266346630313166393061626432643930353336653832333436353166366265663932376533643564386237626634353930353039383362656361336162656632613964393761663334353737326137373430653936393932373562303138656130646632383661646436636539323365663930386662653736326137356632313131363836326462343464336463613164343462346432653864633130363663353030366262356137643935346164323535643462363033323733343735653531316165623438356430363961303637633061623563323435333863393333633036623561366165666139343030356332393135323133653463636461653663393432663632373266396464353238326436623839306631663230656664323339396364363734393234666135373034366163366461333265373339353161373331313365393166633262376666323965343835316238336666333966383362613965633666303863656664626236636262626666616266646661613931643933306637323030646134383133376333393463626431336537303165636463323631366664323162616436383161613466303031303230333031303030312804320218073a603665396138616263646364653665313134396133656265313766643538643839303538333961383664623732623036613365613230616131373666383638623235343838353261653432336437613963366237636666396537313436323961320ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613163343037373135343330336363373263346662373639326333663934323531626465633132333961316637613839373261626539316133353332336662656361363235613766666165363430366338353564633261663231313039303062306466306536653664623736333634646661316666653835656461353637393336653239383562383536333461333261613532613635393964643663333062653166376136633562386635656563616632363231643861343539363832666364326462616164313536316431316633336663636237663535303061633536386431363564626561616365333238366432383934663634313239643738316436633732666437643539396339653164336166346161343333633233623931306661653463343834313634316636313532366164373837656265613533393837343136376539643361373363633066623135363432396431356563373633613664306630363131356137396239616637383364373762393864383330393661613437343366393734303864396531346263663464646666653435393137363838343762343063623864613763613337353235366432623933356430393566653235326661653831666636653337663834643761393064376535373061346638656633633764373636656564613437326630393230313939303135613839303832353961383733633534353466636262646361643265353238646538353435356234303833633764633461646335613938386530636464666463313539643564373132616264353434616137336563303239303839383134633938613434663236666330363434363539633138336533313834616132373266386431646330626661336530613536303438346362303535626134646262356363333339656338306264313164363432646333613730326538633730336162323139333038346439626436336630646665313261343333633235373665616637383163666164383637656637306264613631373638623262656631346635306336633362386230393666303230333031303030312805320218083a606464336233653763643361323537643832373665343635333533363162303138623730303931663438363635653832303031306538316563303539326236396264346265316662643765636435303964303730313364643034313238343266640ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030623263636163363561643066633736343561383137626661626334383761643765343133313165376133313938623337666238343264383463333935623366363764366264383438663130633666303363323930653866376461613864303031613834343164633335326131393136306133313933653638623832656466313961653637363933613961333364346362383765373839613130373037313535313565613737326361613862383661353639623931633534353038333564396333353466306461636563393766653737303931623435623134373639386237663836303134323264636432323631653932386465346461633963343264636261666466393663303732333362613330323730373666333763393639653865643330623662356438663530333462653764393263353936663862653836316535316663633361323432626639643862653965326139653865306631353565626366663233656666613763643537633130353432383131643830373736633935383535323666646230656161333465653139353564353131313933393066653837336534633034646564643239313635383834623938623436333038373838616537666334643461613461386663396263323637346261333231343933623632343435356164343130633164653731626339356431643931666130663230313431386137393565333039656166323937623639396266323763396661323736336364353963656230323165313662383230306331303630663238313766643833636663373637313833343839343631653335393932393162333830643665393339626161346231393233326136613237326464653635316638303436666463333464623237366137373764366662326265633332353562326363323434623461663536366231303566333063363530366464616530656233646564646366393437626362396336306530303039383466336234613863366334656434626639306263313933326237663934646333616536623336303030386562393032303430663962303230333031303030312802320218053a603561383634313561303861306138323566336232656237353031303135353230326533313234336665343161303333333834653738633138633131653565386632303964343933623062326664343565303662333734663262363964663564370ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613365333762373663366364356636363232643639323434343464313263363737633339356632623539303266336262393862386138623530353561373037373036636130323863643735303630613264383730326432643862303439343762646366653061386331343161613238343462316530366536363139303031326538623633323661623066613331373937336263376362346432393439663231303861613034633462306339316261613537323866356235363232656337356162663537386131663762343165646532613637656264363963313865353831666466396336303230616330646539636132633331663063363436393030333331316662623563653764623439633738376531613764323761613432356565376238346461376536363933396639633830643065383266636535356530326466633862356337383431386132366161343336353036393837313962616663656366306264343930303061646463666134303537303862646265666262313937343964323264616230303765343464343565613233623130366638383334633135326532353036326434636632346666323533353663376562333732393130353339336662343962616239303461303266306630626234313763643931396433353238393031323865366262666634666163396639306465313138613937346632613664643031653033326137396231373866363066613166636262643032623537303466623436323935633135313930383136333733656464363633356338353639373866316239353033663166373362346230626538616261326564316665656164353939353362663832656664653933613334373161626435356364613362613861363733666262333739393734396662303036643030336630653633663636356333343631643261376232396463386232303462613539613635363638613436616532383738663030643166393439306466396532383066656266343331356561303465616135363861336139666434386336326336336236656364613639303230333031303030312803320218063a606434363430333938303337393230373965636364356134343331316361306463323262353065633839356235366535336431326232396637326463366462613363616665326535623831303466626461303338616635623434376430666231320ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393361323135636334613761373232636165396331336162643633366466393963636565633661663964623436623639666135313637313665663530636532343930613938316530396162303139636132636234363831316235623631396431626431643565653666343661343263373737636264656536343261313438346563646635646464333732393634326333386336643433613838353838373434373566353832343434333636346330346466656439623839303435666230383565323563336566636234383431373333656666376335323963313339653639333530633263643739623263386431393637396137313265346538636166643332363735343162383332623365313061303132353564656636396466316539643362386438656166303331316465363764356531326232366464303164626264396433653432643335643964653237313330326530663166363964383763626337616361396538383637653964343238643363616230363636656234393064356662616233306266663366373835643033663230373261343362623962356535343635366135393263623631656166643561356566323834633763616563363666376634373332356363306434633164323766363631643861373438636135303731633036656631333464666639366634303836363838333636643436386132343738303031376530623536616261376661623433623362376330623737393036666165353438326633323831316332393265366231343435346531346238393438303161383661303363633437373934646430643734353237613732653432346564336166613034383939656362396136336632613961653732626537666139383961646630643635613332633835316439383031666334313034386466333335363466633762333137303765633866623830313430666537623761316661313230626131636236363033323463656666623462636332643962623764653063663534633831396632646433626365616465633963323566356531396463396231303230333031303030312806320218093a603365303261363732306334343636353965383633303564353562666565383230623335653635306665636163633535333039373435356532633465303332636339646564313662316262343464336235393262626163623663326266663165360ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130303930323539663465336439663066333934323536353438653963373330386231306237333430336363393039346439376164313531623737303631373062393737326365623634643636326563656639303161386437643135643331396135396338623731303731616363643839356237633933363130646336393736663637633465313732396261383337336162376535326133663363386632363534393164646536396436653039393934373065373434353938313133316264393663333665363836353230336662326562643564353065616461666237323633393664656331643931373438393862346539626530346337346433303466656164643963626433323334633362376633333036633939636230633333396663323539363962343164353861326237636663313833326532323664383163313936333939336532323535613038376431363938633033643432313062643634353830363434643039356361373661613137393465646434306331633837623566383261386533396636303365393731313662613034353738653765383033343634393564373835643465663763663737313462396562366635663965306239613934663462373338383436313962393237346434613935656631353735346138396439376566356331613838623664363933653061383065626435333766633963663063613931643163363264393135646537656438313862393532653634633230303239336565386532383461343136613732613365313266633764343233623135386639623439363630636263323436366662656430666564326532346531303266646539343265623463666439346265633436643364393066633038633339666563626130336530636132343634616536363462393739353135626132396531663730326333666537303262653739333739366438656462313761613438633039323930623032343534396630363131663561653233656437653136343432646637643164616432323836633262623039643535323264643365643639386332663032303330313030303128093202180c3a606339373462623938326338313931336237333236643561336639646363343836313261313566376161643032663230376230663130636432303137613666626666353830336537636139626662343730396162323862366230396435623133660ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130303962646438653834666164616133353332666334636530316138613137643463336232333266353061393739306532363236383465646334383233653831356131626435623230656365613762663536653239663662623762383331666233626636656663643134373566306238656435666662306231333835623936643136366236323966303339366138666566356630366534626361323565653461313334306565323633613464396262303230643866343732333036663364383836313338646537613031396530353962643061666339303263636261316132313361653264616136306338613031333735356665306134386530333466356234303233613264616465616138386335343836383335336163376137613364663132623266623634313837373465396231346265366561623863633237623838303132616436313632646137346530656562313631333539303566343337333734646162383538366437353061323662626433616332346165643837386334643533653635313037326338373165393464376163633537356339363733383137333461353366656166346437626136626364643234316363363435386336303837643836333032616132353163303466366435366239633332643764393636323437353065643035353738356430373733663433646330393962323863393232383131343865366338316632393766663964313636653030306163303462333132343138363737356663656637356635656261306331303332626631333064663663643761343632313164306466336530353834643932656136373334396438343930353038656234656638386635346338633364343836646538373139663130666139366665623835636337393630373663613738313331386565326439656439303363613133333630343063353961643931613464326636393865393130386165306564623962316362393561643333623139376666623138626431626138623536636265653261616539353835656365323038613165313462343835363436333032303330313030303128083202180b3a603937303834333033333130373866353638326337663332343464383263336233653238316139313837393537386465656163646363326132656265353431616631383831313561643265383338363565356635643234376234613138633165650ab50722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039303938383635646566326632616233373663376630663733386331643837613237616330316166643030383632306333356362366562666362623063333330303331393361333838633334366433303233313732373031323139336262373666643330303462383634333132633638396566353231336362623930313130313530396465616239346632366137333265363337393239646134633463623332353137653361646262333831316435306163346337376331666365386236353136303632313566333437303766336537323635353435653538633839343630396532383337366264623737373566653330343339653065313539326664636230633365653163333035373733643037326136623839353765616663653161313162653936356564616666333834333336366362366134346563323561383930313036653632343735363766373662353530666461343832626165633633303764363938656338383834316664363666323366323130653437623861396463626136626134653166613731366462333363383065333038313934393664636235653536303966623665376336313533373962646465643432376539323331623932353463326261663934333630386138366436393861653961336338363339646638383764366636623561373133383564323433333864393131613231326266373166316532616363386231383662393665633865363963383662366430353832313737373661303963396336383935336564623539313635373862356132363362326634363965336230633037656164613731613434376565613766386663316262383037343235353536376237663062643165366166623033353837313863393862343239653234623232393835393666633736636636616633393663613934333464373932366563376433376434623932616635366434356665666638313936303935323234613931366331666665366236363765323535666333616338636363656639323064633034346232353030333133326238373830363734326630323033303130303031320218033a603333373339306438666561313434616663313265383132353461323864616336656138323839333833366163303732656666643835653061373734383538306566323830393636343863356137663864626234636538313437363831353133370ab70722cc063330383230316132333030643036303932613836343838366637306430313031303130353030303338323031386630303330383230313861303238323031383130306335376564623966663237366530323362323830323163623164383763646631393636623639386366343865346561616137633639323037376365656538636362323339613463393231353937653865383966376363303564336633313331353738393736633465333134343035643461346530336137323431306335633039636135323761643561383562393938363337653732613332653166626330643535343662323436356539653830366332646435303965623035306162356662323730363366643932383135623164643236383965323131316361656236663534396539346139663030663038323164346361366336613631313766356135333363393236336266303734613330643563626566353064316338633233383762636139373265646564613039383362356430613662353764636230303230303036383238623430653430373662343837306232346261643834303536656535326235663432326538383430303238633235303036333832643865396336363132323566346637366561373265333430363037653966633666336332303433333037366131636138636231356564303361633839363664303530376263646536383165346530323331656539663837643131316537623438616338663934643264383432623532646637336635373363633534313439363437393763363236393638666661653734313866336236313039623561306630396533323233663461346435653335303964643235303133386636626331376266366365636531373539343433306466313830613338653930616466326166666266616430633662386331623837663137386130363164636662666638623932633931363664383734633166663561663466626364626665386539643039393337306464663630626537343736333364333665653465623563643531663665336333333965313531653431626462356135636532633863393761306134336233636434636330383138383463383739663964326633373438343238633835373366313763393066336362643032303330313030303128073202180a3a603734306166366266373339653838336338386633333434633961306638623330316533396463393831633531363365306465326133666634326239396534323665643765353662363766343231383530333834356466363266343963396662300ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030393133316161333638663933343532323966393762363235396363636166666561323365303063643565616430326533663639366331653731346565333933396461643836306533386266393561323937346639656234386539333433663861616334303565613935356430353332336531313762336231633934383133613361663432666538303832633364343362616631626434643833363765393364623030616436393665363237613130333661653533346630313165616435653536663337613666666534346236623965303939343031313932616435363061303334366234316138313030393566356632643766643332643665656236353562613735386336623532366331323933383661663731393763376135336165363033643632323833323235343936316631366430656661383037396137363835363138383862653733333439323231373935366262636166616562623631333563356662623234383464356234613566646630333336616330326532366331363532633162643865616633306461653164366433656230306637623466616238643634373866653864393565623931316466393636613064656134653532326462373662383936363537306563633561663039353136343234663061663566386565363665333836643536353037313339393731363961633337353733626635326664303538646539356162326666363865363831313161623233343035656139363462326262383864303263306631636165643731656364643465346534303835393438373666646238353030626335356337626130323036366530356162393864396637653034363664393730326562353765653337323266386663633835613735353035666633323632313730323838623738383732336164623937653464653536323063633930656164313338326663643735373138383966656662313165363737316263336636663366656231396337616335343238373864303361393032373035323663336565643234393465666635346531353363613966363839303230333031303030312801320218043a603765616236393661623935343336363538626331346666366234626534643932356364353162323230646632613164356336656531363061646166323961353165363934646533656531383463653232656164386437646239333231383266330ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303038326465373330363566333466666332393334306435393439643232323062316534333636656435636637633665626436313663663934313661353365613030313766366262313136626664336633646566636331356237613464646630653434643032666536393536383830353365373961373730653230316263663731393333393030333965653866303836643466613734366337653035363931383330316639623565383465333932363238323830383561373962333232626361306235643835666539373232316132366262646532353863363230663064636561303261623165646431366363343961336632616239323838653364643166333764633462366136663731333366663932653534316337316237306432613266363664353537323561623138626638366430303965633364323466356431326530623565363830326431313531333732643462373634656265636234616638326636343934383565633537623561303164633637393538663561303363636161623763626139333534613137333732633133313662613437633935336161663934393031623366386332346536613361666436373538653766336231343363653264643363623037316232613734633932316365653934396134623561366265383739663163373930613662386436336231393264376565323961393439316664643638396139386330613763336436303332306631623461633264363232396466643934653432663361363034386137366265316562393538633861313837336265386433333861656339666335396162376633373632363738393430326331666435393566313930383735373565306265383237666334633061346662336433393361643734613934396363393836626662363463616264646165353339333566366463353630373464623933643737656133623831366264643662653533343439373237323238393835396666333463653531383630616666623632316431303438376463333834336631663836643534303334613633653438613161306430323033303130303031280a3202180d3a606132656363316232616539386264323862633161303864386633373161306434663734356337363864306337373339363235363265333433623235643833343235656565613765663865613134323935333432623865623738643332656333660ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303039383735356134303862353332316532363330353230303064366437643461326333613535346435653133383461396362356562663437346165383832633633623438366264303864313434646466316139346365396137643632353139363330303661666461616334353838343666313736343031393566653235333961363536393330656661383534663231343865363865633161303863316334396432303063336633303435666537313437663036643533346334626432363231303063623164643339373339643736306438316130626432306638336632353564323530376434636362313130366235333631386336613934343039633838376361653236326434636565396338363233323134376365633134303465306335376262613733313731333065653339363433383838616633643539386564643832623863363165363561653831613465316135366263303664333937313433613938643431636138376433656634333365663061656162363830313139316233653338343830393638663636623665383836363261663435613965323132393934663638623238386562393637626562393834373863323433653231333663316131353931663036316635626330346232316666326261343862323966313834333130383838373362646665393966386135326539343038393731383536653830346465613630326133313137383663393835363532393633633361333737303332396234303966373466646663373436623232613566383431383931323037316334636538343663396234623332306665646636653962363465326362653338346639613832623661616164346232303930373433316466316133336636393230376135363536303062653831303730643038333239303039393538353961343439386435623539333135626365626566656538303765623061336139343266316364663333363764643434343466646232393838366566636464306265346162653961313838383033393533383735656461333364623732393839663736336230323033303130303031280b3202180e3a603139366237623132303739376364623361396430303362393833643537646131303331303662313733306531376636376532633762616161646234333738396166313639366461313031316232353362636263383630333333383566303332380ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061396462376638626161313236383938666162373839313135613362356438393734346631393765323830343161653039386633653838366336393837313732316531316262306164313166336365393132346161393631643661306463383435663439373635633366616231393935383430323637366635363434363262663238316462613535383837383066303365393035373938653138343236396161613630663761313437323333316532666231646561646438373763383463626362363431636139653563386164366534356263313539636230373966636230643434396364636438643932333963316130343765376234343864613063646361323636313061323566323936643936653734363962363736643461343434353136653761353965383532393361383038366638343063303532383534653032613863623230303264616433353832356265346438336235326661393165386337336666303439373436313438383632373837633131313866393234643331636261633162343466656666323264343336623339373965616466396234336134626661373265313562343735356663616232363065303661323739633362623733626337663136613036306434643532326664343930353830333838616135393564383034343733366535323266363432343931356637383033623735383365303935636466373863333235313936393764653831623839666235303035343735336231613137663961616662303634643834633939326639616231316363626338636231303831346463616635323634616134356632316264656661633832636361636161663335386533313337336565316261346537343032666438613730656130633238636135636337346463343235313063393639636432633435396231656333363838613031656133396139393237313063643232393763393861383462363334386135373738303466646332333464336665313930336532633231653137326461323862353961653665346337653865646438623731633439643730323033303130303031280c3202180f3a603538343661353366343437353239666439636462373830346364333136383865643665656265336236336461326635663231316666626337333731393763663366316366626664613631626537643135313066306539323339383131376637340ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061386365616333363765623166316465356630643965663365616630646639623938343438666532303830383437363536326130363063353163323839373730623463616366653932636236353536393832336539363263326132633966656435336264333663613361313232646531633532356135383266323561346437643632386331613364356264623839333661656365373531306537353534656537303333303235633039326338323865656235373338626530326564393633646138316135393230353633346365393435343537376162383266343066313366316565353565306165373237653233633330323834623166343462393961636534646463356639616337616438386439666132323535393335623234646362613834303036343265313663663235333263306230643638393239303436303837313563343037366634366438346130653066656433366537366363646339363335356537613236313630393435633262353461653236636330306664303832333236333436656565656137646437356639313931316539396462636239396561346163366261303536633333323238643838316438353833316439636338373935393364613137343664643065653935646332623936666539336261666366663263643764393239353864373864663333663230356437313135656439666163346462366634636336306535366135343431646135623562353566613539393939303265393538613662366334346438313064646335363138313234316238376632326630353961363838306538303231373336643031383937646236353434396365383137613233373564303335353163623064653530376336303961306338303330656366346266646562323133633033646161373634613138323162373234333334663731663736386437616563623237373035326137303333373635663037323138303536633738663261383761663138333836643866363161356366636233663262613464643539393135663133643338363334643136393537353730323033303130303031280d320218103a603030306162636435396133306135333838633530306265363832663663613239343034363239356339323735383831633230643334626230643639306564613762333862366262643037613364643166646662366137303434626230396366660ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303061663062393134323537626637613436353563346135306430636164356530613165343538316564363632336630653837333066373936623866323963353831373862636363363933326331666333316633396566343462383264336334336233393837333733373366656362313239353232386130346664353061313466333634366438346665316634363763616562393864343633653239373565393935623864326531653339663362663661646463323561653335643635643032363038653033343535333739363665326162636534396238313462656164336331623735373137346165333063303062306334336539396238303439366237326433633133316631633665346663646130356632383131376566396532386334333033626534643863376530343264353862383363633132313934356132633635653739363263616139313835393338663337353764663763636139356366303262356533313934346133613631396130616333663165333462396230313364346332323463346631653730666439666433363938336566383661646535313833363263633833323263306637623631613961633735666238326537623836643638626330663039396130396131346361633561316438643338663961386137306363333766663563633362626432373432666664313436323535633137316536613137383038333237316463653066646536383165643439326362353962303739366432373031373538333864633539303831303765336136656133663961343036623364313133306363656333623437393165343962626332333136303362343661623264306639336434336265373561623961346437313065613934306532383561376231353362306361376364646565366439646365306164383335306334316439306332313562393538383531356166613061633333363561653037653831663362626233366264626561633462333162636231616134653832353635623937376639646164383564363236656566396161613965663864376533666230323033303130303031280e320218113a603933653238313031303462326231376230303935326235613431303264333365646230343363623136646533616433643364363832363066353562623065353837333765613539343463333338663763386362383863373833336663383630630ab70722cc0633303832303161323330306430363039326138363438383666373064303130313031303530303033383230313866303033303832303138613032383230313831303038633037626533303561643630623930626132646162333962306565373736306531613232663835373532323534306437306230336233663965343837356133613239616230383038386631343466353765623235326534366261353933383564306536643432373031313764613061626331623362383036393463396135303538623836643631646661303665373136373039633838653866656163376333613065316432356663306165626636613866373666636239396638343566653138313436316361623638353862393763336134303237666233373132623134653663303738396465313764343137363435373765353131343137656231363236393265623037616531653733353532333565396262343339303437623663303136313337383265376464366636303464616134363734363631643533393631663436633366616136623765373637363264333733623562353432623739656139363365666266333361633638313938626232623636316366663637363931366566333732616434633236633231366334626334373837633834656333326431383464373763373531383663303963663364396639313433336361393835333131396261623331666136616432366634353365353936643962646563613638613537363962633866656537613533356438306338633666336566623164666232383861623661393739383534623763653833313234656330643130326166663934633362373466396333373839353863323565623933336464353363316538303561313836353464366439313836393930663635373034323966393630663334653862346637666439393732646362666539323430653037346461326433353561356637656639633161663632656635393832613831373435373862396331356334396563353636626461636233306363666365663039636466653730386164343837343234653963316265363533663965653736363065376439343263316566613564613238366531616464616230366139613333663964653934363739356230323033303130303031280f320218123a603934383235313739643163333934303137306233356432363665346366613830643737386335653966356261653764653833666638636334373431663362653336616336336431653761653439373261656466366263316533636632303638390ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030626531376339393634376365633635613434343037623533353835366233633362616566356235346635363561663538623834353662613863376365353335643561633732633631633434633736623363353763386538363438343136333762653130613833636665333963303932343736643064626534643663646364636437323061333062356266656235316130316131386635383263343566366338363939336663663764663138323933356465316438363930363034346463663335313836393335643962643765656137393532333532626562623465663961653066373636316537306134323337616661393839393636383763613438666366633562303064333830376630353462653066613863336266613432353033386265366566323935313634663232663733623765383863393465613962653861613466336132343563383962396431666435313932663761353062393538623265663831303462333666316266386664326366623238633134323138303063316334376534656639386166313530303730636336643639643137653865623932663138613661613161363532363661343935323338643130336638663639356235376563663337333635306130353230303837343537323162656138313536323739363763383037363336356466386334633761376434646438663263333835306331386662613731656236306536653864666264313936653035333766643730623334346563626363353330646663383364613666656466343964353161393034313935303262613964373063643335663163663363303639346532333534663930363466646266353335656232336332376330613433643062373863316638363763363164393836393564386465663762633261313062623636373463323266363661616230613931383133646466323763646238353263353965663739653162396531613037356661366565323761376533373734646266346232363436353432376536643561623931666537663066336137313738346563613138326235303230333031303030312810320218133a603038393039376465663031623037633764393734613537353532353161366161613061666236623332613534353334336432393138653732626164303433323163313131633234643432373538306633626131653236616139643735653632360ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030613561643262373634336130346330353564326638636432353131623135313339666334353537353632313338386534396331313962326633393861636131313066363133393662306338363664653530363335323262623835343032373365313366366439346365316536303433386636616662303061616136343631326637313435653962636538626331613533623934313931336161373663396633613238333366616437636632383563376163326433376639396633633263646234396465346431353165363136373835363466323831663534313432346234316661376335316232613936303232383363376433326565303065623833386461313563333861666339366530363164393763656465323231363566663161613935396631633432373562326430393863343035383661353537396662623363623930303732373034313230613861363661353237306634666366643130383663393233363930613335653766643434356533336163303366313339633638363835353635373063646334616166323231303761366331613434323435366137633663373965653034303930653765356434663636626361363063613166343762366466623534336461633363626631396137373139613866353562366638336234613362386136366436303235366430613436353531666137303234626430353633316238613535383038373732353463326632663236386364633333643264626263666237333365396662653233336262396362353961623331613031343862323365386334323638306666313061663463373961346430383334366662373961393364393632393534386561663162623132343639386661656661346364643732343432633033613034623733333433326637343839303361333235633238336434353661623961653932316165376564333339316535643137383765666463323335343061376238356336393161653837306130376639306231316331336233326365343365616564313562333639363835636534393137376363393835303230333031303030312811320218143a603939666162633461646534653636326336653238323366346139366562323134343034383465356136643064333132623730633036386432326236323936333830376332333361343964626239383361376562623330653737303637373261340ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030386434356332316330633935656636356130323964353263393537666430663835663230313233646130333465363136373164646565353437356630373338326136366336366362346463353035303464646664333735383130383364663864313735373733306564386436663336346466346333366132363531353931393535646132303161323430376661386162396232333133383131323235613064613233306662653338306530393061613536656661346632303265633962343832336636353031643936616336393865626632366161636633656532643166333261373231633934376531303736636633356233373364613164383761333661313532653030653731303131373932323832653832356666313731633538333362383835373062666336646138343439653666393566386231323635616235353531393430333135353364316435373666393363343263306361363061616261633463386464313632643831313466326232313531313538336337323533396665353663343939613932396465336134306130643435633137633538396332643739383863653236656166633932613364333762376561303034326434336530336166613632373162323632353561366363636661653533373138323164383165306230356332353062353966306139303734316130653065383861303965643536633562393738306430393566303930366630623831643531323633393832616165303131333663303732643834346131316436646134623261363163363434653161623137663136666634386565323366656465383435326631653432653264333061303739306332356434323036306531643434613637316132656232336431313466363863373165333366313736646235386136386234333030353462633164323938336132336133326561366666393566613763346438653338306562323936653938623739363865636638343534643831376337333765656135646439323165623836633136633762323933303461346137656362653561336131303230333031303030312812320218153a606537396165396337313933643164326263393433383436346338616135663632323461653835323936366134336239383235383833663766373432633533393562643330393935383761393638363662393233396431656666336165353037610ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030623035616265326162303066646430366339353565383637313062306530366631613932363234613438616431636263386466633666323231323936326230633330666462643238346133376335613337363538623633633336656138313632353631613865346639343663626535373232633032383830316630663238316337306638643838633763303061326632653239663539376237393938363965643833353664663537633437626539393434613261616666363530663962346262613064626335336463383830666462623639656134353139303564323830323230326638653239633034613736643237616632656237633534383438356266336634363934633930633431383130383838383433373932383438383335663738313637303764336538643736663465363766353738306263663038383133633535656336333961396264363234313738663565623134376435303061663335316539656631623165333432343834636132363064623763636261653438366631336366323635623562316162363838303636303038303533623230633364656463653737316339613038613033323061613963653435316562396439383361376234396361613130393666386164633039383331386463333865306537636566306438653564353537613036373536383561316339653235366132626339646261333232623362623331373263663731343037376263333830663861306134333361386266613766626663353966366230393365633862663665393339376330396231386531383034306331623536363836343733376338666137653239373935663361343538386464613763326261623439353636356363346139623833366532656239306336326133666361663539316662356638313830346337363138306536323666613236343461376465333435313164366334363637643938393337653237373333663464316539313338383333353465353466643733353137323165373666376235366333343833333838663461366238376232386165626562303230333031303030312813320218163a603962343038383566313362366163316337353336393262613366313739303061333838333165363934613061663937343934623834333838323039636235656662646339386136646162623265316337313833393166633133356264616163330ab70722cc06333038323031613233303064303630393261383634383836663730643031303130313035303030333832303138663030333038323031386130323832303138313030396463643863306135336539306333353539353734663636323034313137643362353033653530613336643330393766616338343239653663656364333762623534303731383038663265653938323033356638353161306339626532313736333833613232653338633161626131363866333266393035373063623332333363666536323539383736363661663637623531346361656632316662386466366430666364333363663236303662393264646561353533366236303638643836373832653339626435633338343435393931643431396237643165633038353939343132633039343964316332343062333563313464633535323734646261373166666165393336313235613566383139663534313332653234333964346163353539373939366563653835653133646666333336316639313331663536636561633562396635353262343963663666396139616336653564636532646233363934363266393361663830653562353662366538626566613136326130363162346137363839326264633834363437333036633630303835386664643237303332373663326337303434303139386566643766653335343563663261623538306337346366643634343561616637626437663734356363323532656162643236356561626565383632343137313034653639343861353537353666646332323264663061313031353234646531633363303863636630343330313165633766653936346564643834353161313330313437633037333633613335663131666465656638663261326237363137353762343335386666383962373561343864363762646336303930363933653062623836373965636262393366666462336633656439366265633933656634363536653337313661623837636534366361386531323539633866656464653866326631656130663365623263343865393635353164653132333330333435373235663435656436396338353735623531363833616661343732363231383236646232326262326431633466316533363436346139303230333031303030312814320218173a60346630613033333466393737363738313632663830643936376637323139313431333630633062376637663033316233376336396536323137333933336564616434366263626139373636376565373262666435613933346261313532326330")));class VD{constructor(e){this._network=new Map,this._nodes=[],this._healthyNodes=[],this._createNetworkChannel=e,this._ledgerId=null,this._minBackoff=8e3,this._maxBackoff=36e5,this._maxNodeAttempts=-1,this._nodeMinReadmitPeriod=this._minBackoff,this._nodeMaxReadmitPeriod=this._maxBackoff,this._earliestReadmitTime=Date.now()+this._nodeMinReadmitPeriod}setNetworkName(e){return console.warn("Deprecated: Use `setLedgerId` instead"),this.setLedgerId(e)}get networkName(){return console.warn("Deprecated: Use `ledgerId` instead"),null!=this.ledgerId?this.ledgerId.toString():null}setLedgerId(e){return this._ledgerId="string"==typeof e?no.fromString(e):e,this}get ledgerId(){return null!=this._ledgerId?this._ledgerId:null}_createNodeFromNetworkEntry(e){throw new Error("not implemented")}_getNodesToRemove(e){throw new Error("not implemented")}_removeDeadNodes(){if(this._maxNodeAttempts>0)for(let e=this._nodes.length-1;e>=0;e--)this._nodes[e]._badGrpcStatusCounte&&(t=Math.min(this._nodes[s]._readmitTime,t)),this._nodes[s]==this._healthyNodes[l])continue e;o=!1,this._nodes[s]._readmitTime<=e&&this._healthyNodes.push(this._nodes[s])}this._earliestReadmitTime=Math.min(Math.max(t,this._nodeMinReadmitPeriod),this._nodeMaxReadmitPeriod)}}_getNumberOfMostHealthyNodes(e){this._removeDeadNodes(),this._readmitNodes();const t=[];let o=this._healthyNodes;for(let s=0;sp.getKey()!==u.getKey())}return t}_closeNode(e){const t=this._nodes[e];t.close(),this._removeNodeFromNetwork(t),this._nodes.splice(e,1)}_removeNodeFromNetwork(e){const t=this._network.get(e.getKey());for(let o=0;o[t,"string"==typeof o?Ue.fromString(o):o])))}setNetworkFromAddressBook(e){const t={},o=this.isTransportSecurity()?50212:50211;for(const s of e.nodeAddresses)for(const l of s.addresses)l.port===o&&null!=s.accountId&&(t[l.toString()]=s.accountId);return this.setNetwork(t),this}get network(){var e={};for(const t of this._nodes)e[t.address.toString()]=t.accountId;return e}setNetworkName(e){switch(super.setLedgerId(e),e){case"mainnet":this._addressBook=mZ;break;case"testnet":this._addressBook=AZ;break;case"previewnet":this._addressBook=gZ}if(null!=this._addressBook)for(const t of this._nodes)for(const o of this._addressBook.nodeAddresses)null!=o.accountId&&o.accountId.toString()===t.accountId.toString()&&t.setNodeAddress(o);return this}get networkName(){return null!=this._ledgerId?this._ledgerId.toString():null}_createNodeFromNetworkEntry(e){const t="string"==typeof e[1]?Ue.fromString(e[1]):e[1];return new Dg({newNode:{address:e[0],accountId:t,channelInitFunction:this._createNetworkChannel}}).setMinBackoff(this._minBackoff)}_getNodesToRemove(e){const t=[];for(let o=this._nodes.length-1;o>=0;o--){const s=this._nodes[o],l=e.get(s.address.toString());(null==l||l.toString()!==s.accountId.toString())&&t.push(o)}return t}_checkNetworkContainsEntry(e){for(const t of this._nodes)if(t.address.toString()===e[0])return!0;return!1}get maxNodesPerTransaction(){return this._maxNodesPerTransaction}setMaxNodesPerTransaction(e){return this._maxNodesPerTransaction=e,this}get maxNodeAttempts(){return this._maxNodeAttempts}setMaxNodeAttempts(e){return this._maxNodeAttempts=e,this}isTransportSecurity(){return this._transportSecurity}setTransportSecurity(e){if(this._transportSecurity==e)return this;this._network.clear();for(let t=0;t0?this._maxNodesPerTransaction:this._nodes.length<=9?this._nodes.length:Math.floor((this._nodes.length+3-1)/3)}getNodeAccountIdsForExecute(){return this._getNumberOfMostHealthyNodes(this.getNumberOfNodesForTransaction()).map(e=>e.accountId)}}class bZ extends GD{constructor(e={}){super(e)}getKey(){return this._address.toString()}}class vZ extends VD{constructor(e){super(e)}setNetwork(e){this._setNetwork(new Map(e.map(t=>[t,t])))}get network(){var e=[];for(const t of this._nodes)e.push(t.address.toString());return e}_createNodeFromNetworkEntry(e){return new bZ({newNode:{address:e[1],channelInitFunction:this._createNetworkChannel}}).setMinBackoff(this._minBackoff)}_getNodesToRemove(e){const t=[],o=Object.values(e);for(let s=this._nodes.length-1;s>=0;s--)o.includes(this._nodes[s].address.toString())||t.push(s);return t}getNextMirrorNode(){if(null==this._createNetworkChannel)throw new Error("mirror network not supported on browser");return this._getNumberOfMostHealthyNodes(1)[0]}}class wZ{constructor(e){this._mirrorNetwork=new vZ(this._createMirrorNetworkChannel()),this._network=new yZ(this._createNetworkChannel()),this._operator=null,this._defaultMaxTransactionFee=null,this._defaultMaxQueryPayment=new mn(1),null!=e&&null!=e.operator&&this.setOperator(e.operator.accountId,e.operator.privateKey),this._maxAttempts=null,this._signOnDemand=!1,this._autoValidateChecksums=!1,this._minBackoff=250,this._maxBackoff=8e3,this._defaultRegenerateTransactionId=!0,this._requestTimeout=null,this._networkUpdatePeriod=864e5,this._isShutdown=!1,null!=e&&!1!==e.scheduleNetworkUpdate&&(this._initialNetworkUpdate(),this._scheduleNetworkUpdate()),this._logger=null}setNetworkName(e){return console.warn("Deprecated: Use `setLedgerId` instead"),this.setLedgerId(e)}get networkName(){return console.warn("Deprecated: Use `ledgerId` instead"),null!=this.ledgerId?this.ledgerId.toString():null}setLedgerId(e){return this._network.setLedgerId("string"==typeof e?no.fromString(e):e),this}get ledgerId(){return null!=this._network._ledgerId?this._network.ledgerId:null}setNetwork(e){throw new Error("not implemented")}setNetworkFromAddressBook(e){return this._network.setNetworkFromAddressBook(e),this}get network(){return this._network.network}setMirrorNetwork(e){throw new Error("not implemented")}get mirrorNetwork(){return this._mirrorNetwork.network}get signOnDemand(){return this._signOnDemand}setSignOnDemand(e){this._signOnDemand=e}isTransportSecurity(){return this._network.isTransportSecurity()}setTransportSecurity(e){return this._network.setTransportSecurity(e),this}setOperator(e,t){const o="string"==typeof t?so.fromString(t):t;return this.setOperatorWith(e,o.publicKey,s=>Promise.resolve(o.sign(s)))}getOperator(){return this._operator}setOperatorWith(e,t,o){const s=e instanceof Ue?e:Ue.fromString(e);return null!=this._network._ledgerId&&s.validateChecksum(this),this._operator={transactionSigner:o,accountId:s,publicKey:t instanceof _o?t:_o.fromString(t)},this}setAutoValidateChecksums(e){return this._autoValidateChecksums=e,this}isAutoValidateChecksumsEnabled(){return this._autoValidateChecksums}get operatorAccountId(){return null!=this._operator?this._operator.accountId:null}get operatorPublicKey(){return null!=this._operator?this._operator.publicKey:null}get defaultMaxTransactionFee(){return this._defaultMaxTransactionFee}get maxTransactionFee(){return this.defaultMaxTransactionFee}setDefaultMaxTransactionFee(e){if(e.toTinybars().toInt()<0)throw new Error("defaultMaxTransactionFee must be non-negative");return this._defaultMaxTransactionFee=e,this}setMaxTransactionFee(e){return this.setDefaultMaxTransactionFee(e)}get defaultRegenerateTransactionId(){return this._defaultRegenerateTransactionId}setDefaultRegenerateTransactionId(e){return this._defaultRegenerateTransactionId=e,this}get defaultMaxQueryPayment(){return this._defaultMaxQueryPayment}get maxQueryPayment(){return this.defaultMaxQueryPayment}setDefaultMaxQueryPayment(e){if(e.toTinybars().toInt()<0)throw new Error("defaultMaxQueryPayment must be non-negative");return this._defaultMaxQueryPayment=e,this}setMaxQueryPayment(e){return this.setDefaultMaxQueryPayment(e)}get maxAttempts(){return null!=this._maxAttempts?this._maxAttempts:10}setMaxAttempts(e){return this._maxAttempts=e,this}get maxNodeAttempts(){return this._network.maxNodeAttempts}setMaxNodeAttempts(e){return this._network.setMaxNodeAttempts(e),this}get nodeWaitTime(){return this._network.minBackoff}setNodeWaitTime(e){return this._network.setMinBackoff(e),this}get maxNodesPerTransaction(){return this._network.maxNodesPerTransaction}setMaxNodesPerTransaction(e){return this._network.setMaxNodesPerTransaction(e),this}setMinBackoff(e){if(null==e)throw new Error("minBackoff cannot be null.");if(e>this._maxBackoff)throw new Error("minBackoff cannot be larger than maxBackoff.");return this._minBackoff=e,this}get minBackoff(){return this._minBackoff}setMaxBackoff(e){if(null==e)throw new Error("maxBackoff cannot be null.");if(e>7,S=o.getUint32(s+1),V=s+5;if(V+S>o.byteLength)throw new Error("(BUG) unexpected frame length past the boundary");const J=new Uint8Array(n,o.byteOffset+V,S);if(0===w){if(null!=l)throw new Error("(BUG) unexpectedly received more than one data frame");l=J}else{if(1!==w)throw new Error(`(BUG) unexpected frame type: ${w}`);{const he=A2(J),[xe,Ee]=he.split(":");if("grpc-status"!==xe)throw new Error(`(BUG) unhandled trailer, ${he}`);u=parseInt(Ee)}}s+=S+5}if(0!==u)throw new Error(`(BUG) unhandled grpc-status: ${u}`);if(null==l)throw new Error("(BUG) unexpectedly received no response");return l}(yield p.arrayBuffer());u(null,J)}catch{u(new Lc(en._fromValue(18)),null)}});return function(s,l,u){return o.apply(this,arguments)}}()}}const EZ={"https://grpc-web.myhbarwallet.com:443":new Ue(3),"https://node01-00-grpc.swirlds.com:443":new Ue(4),"https://node02.swirldslabs.com:443":new Ue(5),"https://node03.swirldslabs.com:443":new Ue(6),"https://node04.swirldslabs.com:443":new Ue(7),"https://node05.swirldslabs.com:443":new Ue(8),"https://node06.swirldslabs.com:443":new Ue(9),"https://node07.swirldslabs.com:443":new Ue(10),"https://node08.swirldslabs.com:443":new Ue(11),"https://node09.swirldslabs.com:443":new Ue(12),"https://node10.swirldslabs.com:443":new Ue(13),"https://node11.swirldslabs.com:443":new Ue(14),"https://node12.swirldslabs.com:443":new Ue(15),"https://node13.swirldslabs.com:443":new Ue(16),"https://node14.swirldslabs.com:443":new Ue(17),"https://node15.swirldslabs.com:443":new Ue(18),"https://node16.swirldslabs.com:443":new Ue(19),"https://node17.swirldslabs.com:443":new Ue(20),"https://node18.swirldslabs.com:443":new Ue(21),"https://node19.swirldslabs.com:443":new Ue(22),"https://node20.swirldslabs.com:443":new Ue(23),"https://node21.swirldslabs.com:443":new Ue(24),"https://node22.swirldslabs.com:443":new Ue(25),"https://node23.swirldslabs.com:443":new Ue(26),"https://node24.swirldslabs.com:443":new Ue(27),"https://node25.swirldslabs.com:443":new Ue(28),"https://node26.swirldslabs.com:443":new Ue(29)},TZ={"https://testnet-node00-00-grpc.hedera.com:443":new Ue(3),"https://testnet-node01-00-grpc.hedera.com:443":new Ue(4),"https://testnet-node02-00-grpc.hedera.com:443":new Ue(5),"https://testnet-node03-00-grpc.hedera.com:443":new Ue(6),"https://testnet-node04-00-grpc.hedera.com:443":new Ue(7),"https://testnet-node05-00-grpc.hedera.com:443":new Ue(8),"https://testnet-node06-00-grpc.hedera.com:443":new Ue(9)},kZ={"https://previewnet-node00-00-grpc.hedera.com:443":new Ue(3),"https://previewnet-node01-00-grpc.hedera.com:443":new Ue(4),"https://previewnet-node02-00-grpc.hedera.com:443":new Ue(5),"https://previewnet-node03-00-grpc.hedera.com:443":new Ue(6),"https://previewnet-node04-00-grpc.hedera.com:443":new Ue(7),"https://previewnet-node05-00-grpc.hedera.com:443":new Ue(8),"https://previewnet-node06-00-grpc.hedera.com:443":new Ue(9)},qa=(new Ue(3),new Ue(3),{fromName(n){switch(n){case"mainnet":return qa.MAINNET;case"testnet":return qa.TESTNET;case"previewnet":return qa.PREVIEWNET;default:throw new Error(`unknown network name: ${n}`)}},MAINNET:EZ,TESTNET:TZ,PREVIEWNET:kZ});class ma extends wZ{constructor(e){if(super(e),null!=e)if("string"==typeof e.network)switch(e.network){case"mainnet":this.setNetwork(qa.MAINNET),this.setLedgerId(no.MAINNET);break;case"testnet":this.setNetwork(qa.TESTNET),this.setLedgerId(no.TESTNET);break;case"previewnet":this.setNetwork(qa.PREVIEWNET),this.setLedgerId(no.PREVIEWNET);break;default:throw new Error(`unknown network: ${e.network}`)}else null!=e.network&&this.setNetwork(e.network)}static fromConfig(e){return new ma("string"==typeof e?JSON.parse(e):e)}static forNetwork(e){return new ma({network:e,scheduleNetworkUpdate:!1})}static forName(e){return new ma({network:e,scheduleNetworkUpdate:!1})}static forMainnet(){return new ma({network:"mainnet",scheduleNetworkUpdate:!1})}static forTestnet(){return new ma({network:"testnet",scheduleNetworkUpdate:!1})}static forPreviewnet(){return new ma({network:"previewnet",scheduleNetworkUpdate:!1})}setNetwork(e){if("string"==typeof e)switch(e){case"previewnet":this._network.setNetwork(qa.PREVIEWNET);break;case"testnet":this._network.setNetwork(qa.TESTNET);break;case"mainnet":this._network.setNetwork(qa.MAINNET)}else this._network.setNetwork(e)}setMirrorNetwork(e){return this._mirrorNetwork.setNetwork("string"==typeof e?[]:e),this}_createNetworkChannel(){return e=>new xZ(e)}_createMirrorNetworkChannel(){return()=>{throw new Error("mirror support is not supported in browsers")}}}var qs=$(7655),Lo=(()=>(function(n){n.Connecting="Connecting",n.Connected="Connected",n.Disconnected="Disconnected",n.Paired="Paired"}(Lo||(Lo={})),Lo))(),hd=null;typeof WebSocket<"u"?hd=WebSocket:typeof MozWebSocket<"u"?hd=MozWebSocket:typeof global<"u"?hd=global.WebSocket||global.MozWebSocket:typeof window<"u"?hd=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(hd=self.WebSocket||self.MozWebSocket);const DZ=hd;class BZ{constructor(e){this.subscribedTopics=[],this.connected=new qs.Event,this.payload=new qs.Event,this.hc=e}processMessage(e){this.hc.debug&&console.log("hashconnect - emitting payload");let t="";t="string"==typeof e.data?e.data:e.data.toString(),this.payload.emit(JSON.parse(t))}init(){var e=this;return ct(function*(){return new Promise(t=>{e.connectToSocket(()=>{t()})})})()}connectToSocket(e){this.socket=new DZ("wss://hashconnect.hashpack.app"),this.socket.onopen=()=>{this.hc.debug&&console.log("hashconnect - connected"),this.hc.connectionStatusChangeEvent.emit(Lo.Connected),e()},this.socket.onclose=()=>{this.hc.status=Lo.Disconnected,this.hc.debug&&console.log("hashconnect - disconnected"),this.hc.connectionStatusChangeEvent.emit(Lo.Disconnected),setTimeout(()=>{this.reconnect()},300)}}reconnect(){var e=this;this.hc.debug&&console.log("hashconnect - reconnecting..."),this.connectToSocket(ct(function*(){for(let t of e.subscribedTopics)yield e.subscribe(t);e.hc.status=Lo.Connected,e.hc.debug&&console.log("hashconnect - reconnected")}))}subscribe(e){var t=this;return ct(function*(){t.hc.debug&&console.log("hashconnect - Subscribing to topic id "+e),-1==t.subscribedTopics.indexOf(e)&&t.subscribedTopics.push(e),t.socket.send(JSON.stringify({action:"sub",topic:e})),t.socket.onmessage=o=>{t.hc.debug&&console.log("process",o),t.processMessage(o)}})()}addDecryptionKey(e,t){console.log("hashconnect - Adding decryption key \n PrivKey: "+e),this.hc.debug&&console.log("hashconnect - Adding decryption key \n PrivKey: "+e),this.hc.encryptionKeys[t]=e}unsubscribe(e){var t=this;return ct(function*(){t.hc.debug&&console.log("hashconnect - Unsubscribing to "+e),t.socket.send(JSON.stringify({action:"unsub",topic:e}))})()}publish(e,t,o){var s=this;return ct(function*(){const l={action:"pub",payload:JSON.stringify(t),topic:e};s.hc.debug&&console.log("hashconnect - Sending payload to "+e,"\n encrypted with "+o),yield s.socket.send(JSON.stringify(l))})()}}var Bg,SZ=new Uint8Array(16);function MZ(){if(!Bg&&!(Bg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bg(SZ)}const NZ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,PZ=function OZ(n){return"string"==typeof n&&NZ.test(n)};for(var ui=[],Db=0;Db<256;++Db)ui.push((Db+256).toString(16).substr(1));const HD=function LZ(n,e,t){var o=(n=n||{}).random||(n.rng||MZ)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){t=t||0;for(var s=0;s<16;++s)e[t+s]=o[s];return e}return function RZ(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(ui[n[e+0]]+ui[n[e+1]]+ui[n[e+2]]+ui[n[e+3]]+"-"+ui[n[e+4]]+ui[n[e+5]]+"-"+ui[n[e+6]]+ui[n[e+7]]+"-"+ui[n[e+8]]+ui[n[e+9]]+"-"+ui[n[e+10]]+ui[n[e+11]]+ui[n[e+12]]+ui[n[e+13]]+ui[n[e+14]]+ui[n[e+15]]).toLowerCase();if(!PZ(t))throw TypeError("Stringified UUID is invalid");return t}(o)};var UZ=$(5010),QD=$.n(UZ);class jZ{prepareSimpleMessage(e,t,o,s){var l=this;return ct(function*(){t.id=HD(),s.debug&&console.log("hashconnect - Sending message - id: "+t.id);let u=yield l.encrypt(JSON.stringify(t),s.encryptionKeys[t.topic],s),p=new GZ(Date.now(),e,u,o);return JSON.stringify(p)})()}decode(e,t){var o=this;return ct(function*(){t.debug&&console.log("hashconnect - decoding message payload");let s=e;"string"==typeof e&&(s=JSON.parse(e));let l=s;return l.data=yield o.decrypt(l.data,t.encryptionKeys[l.topic],t),l})()}createRandomTopicId(){return HD()}encrypt(e,t,o){return ct(function*(){return o.debug&&console.log("hashconnect - encrypting with key: "+t),o.debug&&console.log("Topic key mapping",o.encryptionKeys),new(QD())(t).encrypt(e)})()}decrypt(e,t,o){return ct(function*(){return o.debug&&console.log("hashconnect - decryption with key: "+t),new(QD())(t).decrypt(e)})()}}class GZ{constructor(e,t,o,s){this.timestamp=e,this.type=t,this.data=o,this.topic=s}}var go=(()=>(function(n){n.Transaction="Transaction",n.TransactionResponse="TransactionResponse",n.ApprovePairing="ApprovePairing",n.RejectPairing="RejectPairing",n.Acknowledge="Acknowledge",n.AdditionalAccountRequest="AdditionalAccountRequest",n.AdditionalAccountResponse="AdditionalAccountResponse",n.AuthenticationRequest="AuthenticationRequest",n.AuthenticationResponse="AuthenticationResponse",n.SigningRequest="SigningRequest",n.SigningResponse="SigningResponse"}(go||(go={})),go))();class VZ{onPayload(e,t){return ct(function*(){const o=e.data;switch(e.origin&&(o.origin=e.origin),t.debug&&console.log(`hashconnect - Message Received of type ${e.type}, sent at ${e.timestamp.toString()}`,o),o.topic||console.error("hashconnect - no topic in message"),e.type){case go.ApprovePairing:t.debug&&console.log("hashconnect - approved",e.data);let s=e.data,l={accountIds:s.accountIds,metadata:s.metadata,network:s.network,topic:s.topic,origin:s.origin,encryptionKey:t.hcData.encryptionKey,lastUsed:(new Date).getTime()};s.pairingData=l,t.pairingEvent.emit(s),t.connectionStatusChangeEvent.emit(Lo.Paired),yield t.acknowledge(o.topic,t.encryptionKeys[s.topic],s.id);break;case go.Acknowledge:let u=e.data;t.debug&&console.log("hashconnect - acknowledged - id: "+u.msg_id),t.acknowledgeMessageEvent.emit(u);break;case go.Transaction:t.debug&&console.log("hashconnect - Got transaction",e);let p=e.data;p.byteArray=new Uint8Array(Buffer.from(p.byteArray,"base64")),t.transactionEvent.emit(p),yield t.acknowledge(o.topic,t.encryptionKeys[p.topic],p.id);break;case go.TransactionResponse:t.debug&&console.log("hashconnect - Got transaction response",e);let w=e.data;w.signedTransaction&&(w.signedTransaction=new Uint8Array(Buffer.from(w.signedTransaction,"base64"))),w.receipt&&(w.receipt=new Uint8Array(Buffer.from(w.receipt,"base64"))),w.response&&(w.response=JSON.parse(w.response)),t.transactionResolver(w),yield t.acknowledge(o.topic,t.encryptionKeys[w.topic],w.id);break;case go.AdditionalAccountRequest:t.debug&&console.log("hashconnect - Got account info request",e);let S=e.data;t.additionalAccountRequestEvent.emit(S),yield t.acknowledge(o.topic,t.encryptionKeys[S.topic],S.id);break;case go.AdditionalAccountResponse:t.debug&&console.log("hashconnect - Got account info response",e);let V=e.data;t.additionalAccountResolver(V),yield t.acknowledge(o.topic,t.encryptionKeys[V.topic],V.id);break;case go.AuthenticationRequest:t.debug&&console.log("hashconnect - Got auth request",e);let J=e.data;J.serverSignature=new Uint8Array(Buffer.from(J.serverSignature,"base64")),t.authRequestEvent.emit(J),yield t.acknowledge(o.topic,t.encryptionKeys[J.topic],J.id);break;case go.AuthenticationResponse:t.debug&&console.log("hashconnect - Got auth response",e);let he=e.data;he.userSignature&&(he.userSignature=new Uint8Array(Buffer.from(he.userSignature,"base64"))),he.signedPayload&&he.signedPayload.serverSignature&&(he.signedPayload.serverSignature=new Uint8Array(Buffer.from(he.signedPayload.serverSignature,"base64"))),t.authResolver(he),yield t.acknowledge(o.topic,t.encryptionKeys[he.topic],he.id);break;case go.SigningRequest:t.debug&&console.log("hashconnect - Got sign request",e);let xe=e.data;t.signRequestEvent.emit(xe),yield t.acknowledge(o.topic,t.encryptionKeys[xe.topic],xe.id);break;case go.SigningResponse:t.debug&&console.log("hashconnect - Got sign response",e);let Ee=e.data;Ee.userSignature&&(Ee.userSignature=new Uint8Array(Buffer.from(Ee.userSignature,"base64"))),t.signResolver(Ee),yield t.acknowledge(o.topic,t.encryptionKeys[Ee.topic],Ee.id)}})()}}class HZ{constructor(e,t,o,s){this.hashconnect=t,this.network=e,this.client=ma.forName(e),this.topicId=o,this.accountToSign=s}getLedgerId(){return this.client.ledgerId}getNetwork(){return this.client.network}getMirrorNetwork(){throw new Error("Get Mirror Network not implemented in HashConnect provider")}getAccountBalance(e){return(new ld).setAccountId(e).execute(this.client)}getAccountInfo(e){return(new h3).setAccountId(e).execute(this.client)}getAccountRecords(e){return(new p3).setAccountId(e).execute(this.client)}getTransactionReceipt(e){return(new Ju).setTransactionId(e).execute(this.client)}waitForReceipt(e){return(new Ju).setNodeAccountIds([e.nodeId]).setTransactionId(e.transactionId).execute(this.client)}call(e){var t=this;return ct(function*(){const o={byteArray:t.getBytesOf(e),metadata:{accountToSign:t.accountToSign.toString(),returnTransaction:!1},topic:t.topicId};return(yield t.hashconnect.sendTransaction(t.topicId,o)).response})()}getBytesOf(e){let o;if(e||(o=e),!e&&!o)throw new Error("Only Transactions and Queries can be serialized to be sent for signing by the HashPack wallet.");return e.toBytes()}}class QZ{constructor(e,t,o,s){this.hashconnect=e,this.provider=t,this.accountToSign=o,this.topicId=s}getLedgerId(){return this.provider.client.ledgerId}getAccountId(){return Ue.fromString(this.accountToSign)}getNetwork(){let e={};return e[this.accountToSign.toString()]=this.provider.network,e}getMirrorNetwork(){throw new Error("Get Mirror Network not implemented in HashConnect")}sign(e){throw new Error("Sign messages not implemented in HashConnect")}getAccountBalance(){return(new ld).setAccountId(this.accountToSign).execute(this.provider.client)}getAccountInfo(){return(new h3).setAccountId(this.accountToSign).execute(this.provider.client)}getAccountRecords(){return(new p3).setAccountId(this.accountToSign).execute(this.provider.client)}signTransaction(e){var t=this;return ct(function*(){return e.freezeWith(t.provider.client)})()}checkTransaction(e){throw new Error("Check transaction not implemented in HashConnect")}populateTransaction(e){var t=this;return ct(function*(){return e.setTransactionId(to.generate(t.accountToSign)),e.freezeWith(t.provider.client),e})()}call(e){var t=this;return ct(function*(){const o={byteArray:t.getBytesOf(e),metadata:{accountToSign:t.accountToSign.toString(),returnTransaction:!1},topic:t.topicId};return(yield t.hashconnect.sendTransaction(t.topicId,o)).response})()}getBytesOf(e){let o;if(e||(o=e),!e&&!o)throw new Error("Only Transactions and Queries can be serialized to be sent for signing by the HashPack wallet.");return e.toBytes()}}global.Buffer=global.Buffer||$(3875).lW;class zZ{constructor(e){this.encryptionKeys={},this.debug=!1,this.status=Lo.Disconnected,this.hcData={topic:"",pairingString:"",encryptionKey:"",pairingData:[]},this.relay=new BZ(this),this.foundExtensionEvent=new qs.Event,this.foundIframeEvent=new qs.Event,this.pairingEvent=new qs.Event,this.transactionEvent=new qs.Event,this.acknowledgeMessageEvent=new qs.Event,this.additionalAccountRequestEvent=new qs.Event,this.connectionStatusChangeEvent=new qs.Event,this.authRequestEvent=new qs.Event,this.signRequestEvent=new qs.Event,this.messages=new jZ,this.messageParser=new VZ,e&&(this.debug=e),this.setupEvents()}init(e,t,o=!0){var s=this;return ct(function*(){return new Promise(function(){var l=ct(function*(u){let p={topic:"",pairingString:"",encryptionKey:"",savedPairings:[]};if(s.metadata=e,s.debug&&console.log("hashconnect - Initializing"),typeof window<"u")s.metadata.url=window.location.origin;else if(!e.url)throw new Error("metadata.url must be defined if not running hashconnect within a browser");if(yield s.relay.init(),s.debug&&console.log("hashconnect - Initialized"),s.loadLocalData()){s.debug&&console.log("hashconnect - Found saved local data",s.hcData),s.metadata.encryptionKey=s.hcData.encryptionKey,s.status=Lo.Connecting,s.connectionStatusChangeEvent.emit(Lo.Connecting),p.pairingString=s.hcData.pairingString,p.topic=s.hcData.topic,p.encryptionKey=s.hcData.encryptionKey,p.savedPairings=s.hcData.pairingData,s.connect(p.topic,s.metadata,p.encryptionKey),s.status=Lo.Connected,s.connectionStatusChangeEvent.emit(Lo.Connected);for(let w of s.hcData.pairingData)yield s.connect(w.topic,w.metadata,w.encryptionKey);s.hcData.pairingData.length>0&&(s.status=Lo.Paired,s.connectionStatusChangeEvent.emit(Lo.Paired))}else{s.debug&&console.log("hashconnect - No local data found, initializing"),s.hcData.encryptionKey=yield s.generateEncryptionKeys(),s.metadata.encryptionKey=s.hcData.encryptionKey,p.encryptionKey=s.hcData.encryptionKey;const w=yield s.connect();s.debug&&console.log("hashconnect - Received state",w),s.hcData.topic=w,p.topic=w,s.hcData.pairingString=s.generatePairingString(w,t,!o),p.pairingString=s.hcData.pairingString,s.saveDataInLocalstorage(),s.status=Lo.Connected,s.connectionStatusChangeEvent.emit(Lo.Connected)}s.debug&&console.log("hashconnect - init data",p),s.findLocalWallets(),u(p)});return function(u){return l.apply(this,arguments)}}())})()}connect(e,t,o){var s=this;return ct(function*(){return e||(e=s.messages.createRandomTopicId(),s.encryptionKeys[e]=s.hcData.encryptionKey,s.debug&&console.log("hashconnect - Created new topic id - "+e)),t&&(s.encryptionKeys[e]=o),yield s.relay.subscribe(e),e})()}disconnect(e){var t=this;return ct(function*(){e!=t.hcData.topic&&(yield t.relay.unsubscribe(e));let o=t.hcData.pairingData.findIndex(s=>s.topic==e);t.hcData.pairingData.splice(o,1),0==t.hcData.pairingData.length&&(t.status=Lo.Connected,t.connectionStatusChangeEvent.emit(Lo.Connected)),t.saveDataInLocalstorage()})()}setupEvents(){var e=this;this.debug&&console.log("hashconnect - Setting up events"),this.relay.payload.on(function(){var t=ct(function*(o){if(!o)return;const s=yield e.messages.decode(o,e);yield e.messageParser.onPayload(s,e)});return function(o){return t.apply(this,arguments)}}()),this.pairingEvent.on(t=>{this.hcData.pairingData.push(t.pairingData),this.saveDataInLocalstorage()}),this.foundIframeEvent.on(t=>{this.debug&&console.log("hashconnect - Found iframe wallet",t),this.connectToIframeParent()})}saveDataInLocalstorage(){if(typeof window>"u"||typeof localStorage>"u")return;let e=JSON.stringify(this.hcData);this.debug&&console.log("hashconnect - saving local data",this.hcData),localStorage.setItem("hashconnectData",e)}loadLocalData(){if(typeof window>"u"||typeof localStorage>"u")return!1;let e=localStorage.getItem("hashconnectData");if(e){let t=JSON.parse(e);return t.pairingData&&t.encryptionKey?(this.hcData=t,!0):(this.debug&&console.log("hashconnect - legacy save data found, creating new data"),!1)}return!1}clearConnectionsAndData(){var e=this;return ct(function*(){e.debug&&console.log("hashconnect - clearing local data - you will need to run init() again");for(let t of e.hcData.pairingData)yield e.relay.unsubscribe(t.topic);e.hcData={topic:"",pairingString:"",encryptionKey:"",pairingData:[]},typeof localStorage<"u"&&localStorage.removeItem("hashconnectData"),e.status=Lo.Disconnected,e.connectionStatusChangeEvent.emit(Lo.Disconnected)})()}sendTransaction(e,t){var o=this;return ct(function*(){t.byteArray=Buffer.from(t.byteArray).toString("base64");const s=yield o.messages.prepareSimpleMessage(go.Transaction,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),o.sendEncryptedLocalTransaction(s),yield new Promise(l=>o.transactionResolver=l)})()}requestAdditionalAccounts(e,t){var o=this;return ct(function*(){const s=yield o.messages.prepareSimpleMessage(go.AdditionalAccountRequest,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),yield new Promise(l=>o.additionalAccountResolver=l)})()}sendAdditionalAccounts(e,t){var o=this;return ct(function*(){t.accountIds=t.accountIds.map(l=>l);const s=yield o.messages.prepareSimpleMessage(go.AdditionalAccountResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}sendTransactionResponse(e,t){var o=this;return ct(function*(){t.receipt&&(t.receipt=Buffer.from(t.receipt).toString("base64")),t.signedTransaction&&(t.signedTransaction=Buffer.from(t.signedTransaction).toString("base64"));const s=yield o.messages.prepareSimpleMessage(go.TransactionResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}pair(e,t,o){var s=this;return ct(function*(){s.debug&&console.log("hashconnect - Pairing to "+e.metadata.name),yield s.connect(e.topic);let u={metadata:s.metadata,topic:e.topic,accountIds:t,network:o},p={accountIds:u.accountIds,metadata:e.metadata,network:u.network,topic:u.topic,origin:u.origin,lastUsed:(new Date).getTime(),encryptionKey:e.metadata.encryptionKey||e.metadata.publicKey};s.hcData.pairingData.push(p),s.saveDataInLocalstorage(),p.metadata.publicKey&&(u.metadata.publicKey=p.metadata.publicKey),u.metadata.description=s.sanitizeString(u.metadata.description),u.metadata.name=s.sanitizeString(u.metadata.name),u.network=s.sanitizeString(u.network),u.metadata.url=s.sanitizeString(u.metadata.url),u.accountIds=u.accountIds.map(S=>S),e.metadata.encryptionKey&&(u.metadata.encryptionKey=e.metadata.encryptionKey),s.encryptionKeys[e.topic]=e.metadata.encryptionKey,e.metadata.publicKey&&(s.encryptionKeys[e.topic]=e.metadata.publicKey);const w=yield s.messages.prepareSimpleMessage(go.ApprovePairing,u,u.topic,s);return s.relay.publish(e.topic,w,s.encryptionKeys[e.topic]),p})()}reject(e,t,o){var s=this;return ct(function*(){let l={reason:t,topic:e,msg_id:o};l.reason=s.sanitizeString(l.reason);const u=yield s.messages.prepareSimpleMessage(go.RejectPairing,l,e,s);yield s.relay.publish(e,u,s.encryptionKeys[e])})()}acknowledge(e,t,o){var s=this;return ct(function*(){const l={result:!0,topic:e,msg_id:o},u=yield s.messages.prepareSimpleMessage(go.Acknowledge,l,e,s);yield s.relay.publish(e,u,t)})()}authenticate(e,t,o,s,l){var u=this;return ct(function*(){let p={topic:e,accountToSign:t,serverSigningAccount:o,serverSignature:s,payload:l};p.serverSignature=Buffer.from(p.serverSignature).toString("base64"),console.log(p.serverSignature);const w=yield u.messages.prepareSimpleMessage(go.AuthenticationRequest,p,e,u);return yield u.relay.publish(e,w,u.encryptionKeys[e]),u.sendEncryptedLocalTransaction(w),yield new Promise(S=>u.authResolver=S)})()}sendAuthenticationResponse(e,t){var o=this;return ct(function*(){t.userSignature&&(t.userSignature=Buffer.from(t.userSignature).toString("base64")),t.signedPayload&&(t.signedPayload.serverSignature=Buffer.from(t.signedPayload.serverSignature).toString("base64"));const s=yield o.messages.prepareSimpleMessage(go.AuthenticationResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}sign(e,t,o){var s=this;return ct(function*(){let l={topic:e,accountToSign:t,payload:o};const u=yield s.messages.prepareSimpleMessage(go.SigningRequest,l,e,s);return yield s.relay.publish(e,u,s.encryptionKeys[e]),s.sendEncryptedLocalTransaction(u),yield new Promise(p=>s.signResolver=p)})()}sendSigningResponse(e,t){var o=this;return ct(function*(){t.userSignature&&(t.userSignature=Buffer.from(t.userSignature).toString("base64"));const s=yield o.messages.prepareSimpleMessage(go.SigningResponse,t,e,o);return yield o.relay.publish(e,s,o.encryptionKeys[e]),t.id})()}generatePairingString(e,t,o){this.debug&&console.log("hashconnect - Generating pairing string");let s={metadata:this.metadata,topic:e,network:t,multiAccount:o};s.metadata.description=this.sanitizeString(s.metadata.description),s.metadata.name=this.sanitizeString(s.metadata.name),s.network=this.sanitizeString(s.network),s.metadata.url=this.sanitizeString(s.metadata.url);let l=Buffer.from(JSON.stringify(s)).toString("base64");return this.hcData.pairingString=l,l}decodePairingString(e){let t=Buffer.from(e,"base64").toString();return JSON.parse(t)}generateEncryptionKeys(){var e=this;return ct(function*(){let t=e.messages.createRandomTopicId();return e.debug&&console.log("hashconnect - Generated new encryption key - "+t),t})()}sanitizeString(e){return e?e.replace(/[^\w. ]/gi,function(t){return"."==t?".":"&#"+t.charCodeAt(0)+";"}):""}findLocalWallets(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel findLocalWallets - no window object"):(this.debug&&console.log("hashconnect - Finding local wallets"),window.addEventListener("message",e=>{e.data.type&&"hashconnect-query-extension-response"==e.data.type&&(this.debug&&console.log("hashconnect - Local wallet metadata recieved",e.data),e.data.metadata&&this.foundExtensionEvent.emit(e.data.metadata)),e.data.type&&"hashconnect-iframe-response"==e.data.type&&(this.debug&&console.log("hashconnect - iFrame wallet metadata recieved",e.data),e.data.metadata&&this.foundIframeEvent.emit(e.data.metadata))},!1),setTimeout(()=>{window.postMessage({type:"hashconnect-query-extension"},"*"),window.parent&&window.parent.postMessage({type:"hashconnect-iframe-query"},"*")},50))}connectToIframeParent(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel iframe connection - no window object"):(this.debug&&console.log("hashconnect - Connecting to iframe parent wallet"),window.parent.postMessage({type:"hashconnect-iframe-pairing",pairingString:this.hcData.pairingString},"*"))}connectToLocalWallet(){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel connect to local wallet - no window object"):(this.debug&&console.log("hashconnect - Connecting to local wallet"),window.postMessage({type:"hashconnect-connect-extension",pairingString:this.hcData.pairingString},"*"))}sendEncryptedLocalTransaction(e){typeof window>"u"?this.debug&&console.log("hashconnect - Cancel send local transaction - no window object"):(this.debug&&console.log("hashconnect - sending local transaction",e),window.postMessage({type:"hashconnect-send-local-transaction",message:e},"*"))}decodeLocalTransaction(e){var t=this;return ct(function*(){return yield t.messages.decode(e,t)})()}getProvider(e,t,o){return new HZ(e,this,t,o)}getSigner(e){return new QZ(this,e,e.accountToSign,e.topicId)}getPairingByTopic(e){return this.hcData.pairingData.find(o=>o.topic==e)||null}createOperatorSigner(e){var t=this;return function(){var s=ct(function*(l){const u={topic:t.hcData.topic,byteArray:l,metadata:{accountToSign:e,returnTransaction:!0,hideNft:!1,getRecord:!1}},p=yield t.sendTransaction(t.hcData.topic,u);if(p.error)throw new Error(`Hashconnect failed to sign transaction: ${p.error}`);if("string"==typeof p.signedTransaction)throw new Error("Hashconnect unexpectedly returned a signedTransaction of type string");if(void 0===p.signedTransaction)throw new Error("Hashconnect unexpectedly returned an undefined signedTransaction");return p.signedTransaction});return function(u){return s.apply(this,arguments)}}()}}var Sg=(()=>(function(n){n.Connecting="Connecting",n.Connected="Connected",n.Disconnected="Disconnected",n.Paired="Paired"}(Sg||(Sg={})),Sg))();let KZ=(()=>{class n{constructor(t){this.dialogBelonging=t,this.subscriptions=new k}ngOnInit(){this.data=this.dialogBelonging.CustomData.data,this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"send"===t.ID&&this.dialogBelonging.EventsController.close()}))}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-result-modal"]],decls:5,vars:3,template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Result"),ye(),pe(2,"pre"),Re(3),gh(4,"json"),ye()),2&o&&(Te(3),Vn(" ",Ah(4,1,s.data),"\n"))},dependencies:[p1]})}return n})(),Qr=(()=>{class n{constructor(){this.pk="302e020100300506032b65700422042093e3a32a53b0878429043643be0c992cec4f3e2aba8ccbde9905192e9326e0d2",this.publicKey="ce1311702fa06b70c76fa36e9bfb52d1ce6f250634f35f8c822259a1ef9a4a38",this.acc="0.0.572001"}init(){var t=this;return ct(function*(){t.client=ma.forTestnet(),t.client.setOperator(t.acc,t.pk)})()}signAndMakeBytes(t,o){var s=this;return ct(function*(){const l=so.fromString(s.pk),u=l.publicKey;let p=[new Ue(3)],w=to.generate(o);t.setNodeAccountIds(p),t.setTransactionId(w);let S=(t=yield t.freeze()).toBytes();const V=yield l.signTransaction($t.fromBytes(S)),he=t.addSignature(u,V).toBytes();return console.log("Transaction bytes",he),he})()}makeBytes(t,o){return ct(function*(){let s=to.generate(o);return t.setTransactionId(s),t.setNodeAccountIds([new Ue(3)]),yield t.freeze(),t.toBytes()})()}signData(t){const o=so.fromString(this.pk),s=o.publicKey;let l=new Uint8Array(Buffer.from(JSON.stringify(t))),u=o.sign(l);return s.verify(l,u),{signature:u,serverSigningAccount:this.acc}}verifyData(t,o,s){const l=_o.fromString(o);let u=new Uint8Array(Buffer.from(JSON.stringify(t)));return l.verify(u,s)}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fr=(()=>{class n{constructor(t){this.SigningService=t,this.appMetadata={name:"dApp Example",description:"An example hedera dApp",icon:"https://www.hashpack.app/img/logo.svg"},this.state=Sg.Disconnected,this.pairingData=null}initHashconnect(){var t=this;return ct(function*(){t.hashconnect=new zZ(!0),t.setUpHashConnectEvents();let o=yield t.hashconnect.init(t.appMetadata,"testnet",!1);t.topic=o.topic,t.pairingString=o.pairingString,t.pairingData=o.savedPairings[0]})()}setUpHashConnectEvents(){this.hashconnect.foundExtensionEvent.on(t=>{console.log("Found extension",t),this.availableExtension=t}),this.hashconnect.pairingEvent.on(t=>{console.log("Paired with wallet",t),this.pairingData=t.pairingData}),this.hashconnect.connectionStatusChangeEvent.on(t=>{console.log("hashconnect state change event",t),this.state=t})}connectToExtension(){var t=this;return ct(function*(){t.hashconnect.connectToLocalWallet()})()}sendTransaction(t,o,s=!1,l=!1,u=!1){var p=this;return ct(function*(){const w={topic:p.topic,byteArray:t,metadata:{accountToSign:o,returnTransaction:s,hideNft:l,getRecord:u}};return yield p.hashconnect.sendTransaction(p.topic,w)})()}requestAccountInfo(){var t=this;return ct(function*(){let o={topic:t.topic,network:"mainnet",multiAccount:!0};yield t.hashconnect.requestAdditionalAccounts(t.topic,o)})()}disconnect(){this.hashconnect.disconnect(this.pairingData.topic),this.pairingData=null}clearPairings(){this.hashconnect.clearConnectionsAndData(),this.pairingData=null}showResultOverlay(t){const o=new Or(KZ);o.setCustomData({data:t}),o.setConfig({Width:"500px",LayoutType:ja.NONE}),o.setButtons([new K0("Done","send",Bc.SUCCESS)]),o.openDialog$().subscribe(s=>{})}static#e=this.\u0275fac=function(o){return new(o||n)(Yt(Qr))};static#t=this.\u0275prov=vt({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function YZ(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let WZ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={maxAutomaticTokenAssociations:0,key:"",accountMemo:"",transMemo:"",newPublicKey:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield new Yp;o.setAccountId(t.signingAcct),o.setMaxAutomaticTokenAssociations(t.data.maxAutomaticTokenAssociations),o.setAccountMemo(t.data.accountMemo),o.setTransactionMemo(t.data.transMemo),""!=t.data.newPublicKey&&o.setKey(_o.fromString(t.data.newPublicKey));let s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-account-update"]],decls:18,vars:6,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","number","min","0","max","1000",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Account Update"),ye(),pe(2,"p"),Re(3,"Account to update"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,YZ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"New Public Key - WARNING BE CAREFUL WITH THIS ONE"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.newPublicKey=u}),ye(),pe(9,"h3"),Re(10,"Automatic Token Associations"),ye(),pe(11,"input",3),Xe("ngModelChange",function(u){return s.data.maxAutomaticTokenAssociations=u}),ye(),pe(12,"h3"),Re(13,"Account Memo"),ye(),pe(14,"input",2),Xe("ngModelChange",function(u){return s.data.accountMemo=u}),ye(),pe(15,"h3"),Re(16,"Transaction Memo"),ye(),pe(17,"input",2),Xe("ngModelChange",function(u){return s.data.transMemo=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.newPublicKey),Te(3),ke("ngModel",s.data.maxAutomaticTokenAssociations),Te(3),ke("ngModel",s.data.accountMemo),Te(3),ke("ngModel",s.data.transMemo))},dependencies:[Ir,jr,Gr,Nr,bc,Mr,Sr,vc,bf,kr]})}return n})();function $Z(n,e){if(1&n&&(pe(0,"option",9),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function ZZ(n,e){if(1&n){const t=Ar();pe(0,"div",12)(1,"span")(2,"label"),Re(3,"Amount"),ye(),pe(4,"input",13),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.amount=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(4),ke("ngModel",t.amount)}}function qZ(n,e){if(1&n){const t=Ar();pe(0,"div"),Lt(1,ZZ,5,1,"div",10),pe(2,"button",11),Xe("click",function(){return Un(t),jn(Dt().addHbarAllowance())}),Re(3,"Add HBAR Allowance"),ye()()}if(2&n){const t=Dt();Te(1),ke("ngForOf",t.data.hbarAllowances)}}function JZ(n,e){if(1&n){const t=Ar();pe(0,"div",12)(1,"span")(2,"label"),Re(3,"Token ID"),ye(),pe(4,"input",13),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.tokenId=s)}),ye()(),pe(5,"span")(6,"label"),Re(7,"Serial"),ye(),pe(8,"input",13),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.serial=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(4),ke("ngModel",t.tokenId),Te(4),ke("ngModel",t.serial)}}function XZ(n,e){if(1&n){const t=Ar();pe(0,"div"),Lt(1,JZ,9,2,"div",10),pe(2,"button",11),Xe("click",function(){return Un(t),jn(Dt().addNFTAllowance())}),Re(3,"Add NFT Allowance"),ye()()}if(2&n){const t=Dt();Te(1),ke("ngForOf",t.data.nftAllowances)}}function eq(n,e){if(1&n){const t=Ar();pe(0,"div",12)(1,"span")(2,"label"),Re(3,"Token ID"),ye(),pe(4,"input",13),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.tokenId=s)}),ye()(),pe(5,"span")(6,"label"),Re(7,"Amount"),ye(),pe(8,"input",13),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.amount=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(4),ke("ngModel",t.tokenId),Te(4),ke("ngModel",t.amount)}}function tq(n,e){if(1&n){const t=Ar();pe(0,"div"),Lt(1,eq,9,2,"div",10),pe(2,"button",11),Xe("click",function(){return Un(t),jn(Dt().addTokenAllowance())}),Re(3,"Add token Allowance"),ye()()}if(2&n){const t=Dt();Te(1),ke("ngForOf",t.data.tokenAllowances)}}let nq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.spenderId="0.0.3183101",this.data={hbarAllowance:!1,hbarAllowances:[],nftAllowance:!1,nftAllowances:[],tokenAllowance:!1,tokenAllowances:[]}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}addHbarAllowance(){this.data.hbarAllowances.push({spenderAccountId:this.spenderId,ownerAccountId:this.signingAcct,amount:0})}addNFTAllowance(){this.data.nftAllowances.push({tokenId:"",serial:0,ownerAccountId:this.signingAcct,spenderAccountId:this.spenderId})}addTokenAllowance(){this.data.tokenAllowances.push({tokenId:"",spenderAccountId:this.spenderId,ownerAccountId:this.signingAcct,amount:0})}send(){var t=this;return ct(function*(){let o=new Gp;t.data.hbarAllowance&&t.data.hbarAllowances.forEach(p=>{o.approveHbarAllowance(p.ownerAccountId,p.spenderAccountId,p.amount)}),t.data.nftAllowance&&t.data.nftAllowances.forEach(p=>{let w=p.tokenId.split("."),S=new tn(parseInt(w[0]),parseInt(w[1]),parseInt(w[2])),V=new li(S,p.serial);o.approveTokenNftAllowance(V,p.ownerAccountId,p.spenderAccountId)}),t.data.tokenAllowance&&t.data.tokenAllowances.forEach(p=>{o.approveTokenAllowance(p.tokenId,p.ownerAccountId,p.spenderAccountId,p.amount)});let s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-allowance-approve"]],decls:22,vars:8,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","checkbox","name","hbarAllowance","id","hbarAllowance",3,"ngModel","ngModelChange"],["for","hbarAllowance"],[4,"ngIf"],["type","checkbox","name","nftAllowance","id","nftAllowance",3,"ngModel","ngModelChange"],["for","nftAllowance"],["type","checkbox","name","tokenAllowance","id","tokenAllowance",3,"ngModel","ngModelChange"],["for","tokenAllowance"],[3,"value","selected"],["class","allowance",4,"ngFor","ngForOf"],[3,"click"],[1,"allowance"],["type","text",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Allowance Approve"),ye(),pe(2,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(3,$Z,2,3,"option",1),ye(),pe(4,"section")(5,"span")(6,"input",2),Xe("ngModelChange",function(u){return s.data.hbarAllowance=u}),ye(),pe(7,"label",3),Re(8,"HBAR Allowance"),ye()(),Lt(9,qZ,4,1,"div",4),ye(),pe(10,"section")(11,"span")(12,"input",5),Xe("ngModelChange",function(u){return s.data.nftAllowance=u}),ye(),pe(13,"label",6),Re(14,"NFT Allowance"),ye()(),Lt(15,XZ,4,1,"div",4),ye(),pe(16,"section")(17,"span")(18,"input",7),Xe("ngModelChange",function(u){return s.data.tokenAllowance=u}),ye(),pe(19,"label",8),Re(20,"Token Allowance"),ye()(),Lt(21,tq,4,1,"div",4),ye()),2&o&&(Te(2),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.hbarAllowance),Te(3),ke("ngIf",s.data.hbarAllowance),Te(3),ke("ngModel",s.data.nftAllowance),Te(3),ke("ngIf",s.data.nftAllowance),Te(3),ke("ngModel",s.data.tokenAllowance),Te(3),ke("ngIf",s.data.tokenAllowance))},dependencies:[Ir,ps,jr,Gr,Nr,ca,Mr,Sr,kr],styles:["[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] section[_ngcontent-%COMP%] span[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] section[_ngcontent-%COMP%] .allowance[_ngcontent-%COMP%]{border-bottom:solid 1px white;margin-bottom:4px;padding-bottom:4px}"]})}return n})();function rq(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function oq(n,e){if(1&n){const t=Ar();pe(0,"div",5)(1,"span")(2,"label"),Re(3,"Token ID"),ye(),pe(4,"input",6),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.tokenId=s)}),ye()(),pe(5,"span")(6,"label"),Re(7,"Serial"),ye(),pe(8,"input",6),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.serial=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(4),ke("ngModel",t.tokenId),Te(4),ke("ngModel",t.serial)}}let iq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.spenderId="0.0.3183101",this.data={maxAutomaticTokenAssociations:0,key:"",accountMemo:"",transMemo:"",newPublicKey:"",nftAllowance:!1,nftAllowances:[]}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}addNFTAllowance(){this.data.nftAllowances.push({tokenId:"",serial:0,ownerAccountId:this.signingAcct,spenderAccountId:this.spenderId})}send(){var t=this;return ct(function*(){let o=new Vp;for(let p of t.data.nftAllowances)o.deleteAllTokenNftAllowances(new li(tn.fromString(p.tokenId),p.serial),t.signingAcct);let s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-allowance-delete"]],decls:8,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["class","allowance",4,"ngFor","ngForOf"],[3,"click"],[3,"value","selected"],[1,"allowance"],["type","text",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Allowance Delete"),ye(),pe(2,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(3,rq,2,3,"option",1),ye(),pe(4,"div"),Lt(5,oq,9,2,"div",2),pe(6,"button",3),Xe("click",function(){return s.addNFTAllowance()}),Re(7,"Add NFT Allowance"),ye()()),2&o&&(Te(2),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(2),ke("ngForOf",s.data.nftAllowances))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function sq(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function aq(n,e){if(1&n){const t=Ar();pe(0,"p")(1,"input",5),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.id=s)}),ye()()}if(2&n){const t=e.$implicit;Te(1),ke("ngModel",t.id)}}let cq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.tokenIds=[{id:"0.0.3084461"}]}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}addTokenId(){this.tokenIds.push({id:""})}send(){var t=this;return ct(function*(){let o=yield new ag,s=[];t.tokenIds.forEach(w=>{s.push(w.id)}),o.setTokenIds(s),o.setAccountId(t.signingAcct);let l=yield t.SigningService.makeBytes(o,t.signingAcct),u=yield t.HashconnectService.sendTransaction(l,t.signingAcct),p={response:u,receipt:null};u.success&&(p.receipt=Cr.fromBytes(u.receipt)),t.HashconnectService.showResultOverlay(p)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-associate-token"]],decls:11,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"primary",3,"click"],[3,"value","selected"],["type","text",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Associate Token"),ye(),pe(2,"p"),Re(3,"Account to associate token to"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,sq,2,3,"option",1),ye(),pe(6,"p"),Re(7,"Token ID"),ye(),Lt(8,aq,2,1,"p",2),pe(9,"button",3),Xe("click",function(){return s.addTokenId()}),Re(10,"Add Token ID"),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngForOf",s.tokenIds))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function lq(n,e){if(1&n&&(pe(0,"option",2),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let uq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o={url:"test.com",data:{token:"fufhr9e84hf9w8fehw9e8fhwo9e8fw938fw3o98fhjw3of"}},s=t.SigningService.signData(o),l=yield t.HashconnectService.hashconnect.authenticate(t.HashconnectService.topic,t.signingAcct,s.serverSigningAccount,s.signature,o);l.success?fetch("https://testnet.mirrornode.hedera.com/api/v1/accounts/"+t.signingAcct,{method:"GET"}).then(function(){var p=ct(function*(w){if(w.ok){let S=yield w.json();if(console.log("Got account info",S),!l.signedPayload)return;let V=t.SigningService.verifyData(l.signedPayload.originalPayload,t.SigningService.publicKey,l.signedPayload.serverSignature),J=t.SigningService.verifyData(l.signedPayload,S.key.key,l.userSignature);t.HashconnectService.showResultOverlay(V&&J?"Authenticated: true":"Authenticated: false")}else alert("Error getting public key")});return function(w){return p.apply(this,arguments)}}()):t.HashconnectService.showResultOverlay(l)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-authenticate"]],decls:6,vars:2,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Authenticate User"),ye(),pe(2,"p"),Re(3,"Account to authenticate"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,lq,2,3,"option",1),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds))},dependencies:[Ir,jr,Gr,Mr,Sr,kr]})}return n})();function dq(n,e){if(1&n&&(pe(0,"option",5),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function fq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Amount"),ye(),pe(3,"input",6),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.amount=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.data.amount)}}function hq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"input",2),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.number=s)}),ye()()}if(2&n){const t=e.$implicit;Te(1),ke("ngModel",t.number)}}function pq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Serials"),ye(),Lt(3,hq,2,1,"div",7),pe(4,"button",8),Xe("click",function(){return Un(t),jn(Dt().addSerial())}),Re(5,"Add Serial"),ye()()}if(2&n){const t=Dt();Te(3),ke("ngForOf",t.data.serials)}}let gq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",amount:1,isNft:!1,serials:[{number:0}]}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}addSerial(){this.data.serials.push({number:0})}send(){var t=this;return ct(function*(){let o=(new cg).setTokenId(t.data.tokenId);if(t.data.isNft){if(t.data.isNft){let p=t.data.serials.map(w=>w.number);o.setSerials(p)}}else o.setAmount(t.data.amount);let s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-burn-token"]],decls:14,vars:6,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngIf"],[3,"value","selected"],["type","number","min","1",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"outline",3,"click"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Burn Tokens"),ye(),pe(2,"p"),Re(3,"Account to sign (token supply account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,dq,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3")(10,"input",3),Xe("ngModelChange",function(u){return s.data.isNft=u}),ye(),Re(11," Is NFT\n"),ye(),Lt(12,fq,4,1,"div",4),Lt(13,pq,6,1,"div",4)),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(2),ke("ngModel",s.data.isNft),Te(2),ke("ngIf",!s.data.isNft),Te(1),ke("ngIf",s.data.isNft))},dependencies:[Ir,ps,jr,Gr,Nr,bc,ca,Mr,Sr,vc,kr]})}return n})();function Aq(n,e){if(1&n&&(pe(0,"option",10),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function mq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Max Supply"),ye(),pe(3,"input",7),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.maxSupply=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.tokenData.maxSupply)}}function yq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Decimals"),ye(),pe(3,"input",7),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.decimals=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.tokenData.decimals)}}function bq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Royalty Percentage"),ye(),pe(3,"input",11),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.royaltyPercent=s)}),ye(),pe(4,"h3"),Re(5,"Royalty Fallback (receiver pays if fungible exchanged is 0)"),ye(),pe(6,"input",11),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fallbackFee=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.tokenData.royaltyPercent),Te(3),ke("ngModel",t.tokenData.fallbackFee)}}function vq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Fixed Fee"),ye(),pe(3,"input",11),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fixedFee=s)}),ye(),pe(4,"h3"),Re(5,"Fixed Fee Token ID"),ye(),pe(6,"input",2),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fixedTokenId=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.tokenData.fixedFee),Te(3),ke("ngModel",t.tokenData.fixedTokenId)}}function wq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Fractional Fee Percent"),ye(),pe(3,"input",11),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fractionalFee.percent=s)}),ye(),pe(4,"h3"),Re(5,"Fractional Fee Max"),ye(),pe(6,"input",12),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fractionalFee.max=s)}),ye(),pe(7,"h3"),Re(8,"Fractional Fee Min"),ye(),pe(9,"input",12),Xe("ngModelChange",function(s){return Un(t),jn(Dt().tokenData.fractionalFee.min=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.tokenData.fractionalFee.percent),Te(3),ke("ngModel",t.tokenData.fractionalFee.max),Te(3),ke("ngModel",t.tokenData.fractionalFee.min)}}let Cq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.type="Fungible",this.supplyType="Infinite",this.tokenData={name:"TokenTest"+Math.random(),symbol:"",type:Di.FungibleCommon,supplyType:Bi.Infinite,initialSupply:0,maxSupply:0,includeRoyalty:!1,includeFixedFee:!1,includeFractionalFee:!1,royaltyPercent:1,fixedFee:0,fixedTokenId:"",fractionalFee:{percent:0,max:0,min:0},fallbackFee:0,decimals:0}}ngOnInit(){let t=Math.floor(500*Math.random());this.tokenData.name="HC-TokenTest"+t,this.tokenData.symbol="HC-"+t,this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(o=>{"cancel"===o.ID&&this.dialogBelonging.EventsController.close(),"send"===o.ID&&this.send()}))}changeType(t){this.tokenData.type="Fungible"==t?Di.FungibleCommon:Di.NonFungibleUnique}changeSupplyType(t){this.tokenData.supplyType="Infinite"==t?Bi.Infinite:Bi.Finite}send(){var t=this;return ct(function*(){let o=yield window.fetch("https://testnet.mirrornode.hedera.com/api/v1/accounts/"+t.signingAcct,{method:"GET"});o=yield o.json();let s=[],l=yield _o.fromString(o.key.key),u=yield(new lg).setTokenName(t.tokenData.name).setTokenSymbol(t.tokenData.symbol).setTokenType(t.tokenData.type).setDecimals(0).setSupplyType(t.tokenData.supplyType).setInitialSupply(t.tokenData.initialSupply).setTreasuryAccountId(t.signingAcct).setAdminKey(l).setSupplyKey(l).setWipeKey(l).setAutoRenewAccountId(t.signingAcct);if(t.tokenData.supplyType!=Bi.Infinite&&u.setMaxSupply(t.tokenData.maxSupply),t.tokenData.type==Di.FungibleCommon&&u.setDecimals(t.tokenData.decimals),t.tokenData.includeRoyalty){let Ee=yield(new Wc).setFeeCollectorAccountId(t.signingAcct).setHbarAmount(mn.from(t.tokenData.fallbackFee,sr.Hbar)),Le=yield(new fd).setNumerator(t.tokenData.royaltyPercent).setDenominator(100).setFeeCollectorAccountId(t.signingAcct).setFallbackFee(Ee);s.push(Le)}if(t.tokenData.includeFractionalFee){let Ee=yield(new dd).setFeeCollectorAccountId(t.signingAcct).setNumerator(t.tokenData.fractionalFee.percent).setDenominator(100).setMax(t.tokenData.fractionalFee.max).setMin(t.tokenData.fractionalFee.min);s.push(Ee)}if(t.tokenData.includeFixedFee){let Ee=yield(new Wc).setFeeCollectorAccountId(t.signingAcct);t.tokenData.fixedTokenId&&""!=t.tokenData.fixedTokenId?(Ee.setDenominatingTokenId(t.tokenData.fixedTokenId),Ee.setAmount(t.tokenData.fixedFee)):Ee.setHbarAmount(mn.from(t.tokenData.fixedFee,sr.Hbar)),s.push(Ee)}u.setCustomFees(s);const p=7776e3,S=Math.round(Date.now()/1e3)+p,V=new Jn(S,0);console.log({timestamp:S}),console.log({timestampObj:V}),u.setExpirationTime(V),u.setAutoRenewPeriod(p);let J=yield t.SigningService.makeBytes(u,t.signingAcct),he=yield t.HashconnectService.sendTransaction(J,t.signingAcct),xe={response:he,receipt:null};he.success&&(xe.receipt=Cr.fromBytes(he.receipt)),t.HashconnectService.showResultOverlay(xe)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-create-token"]],decls:43,vars:15,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["value","Fungible"],["value","NFT"],["value","Infinite"],["value","Finite"],["type","number","min","0",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"value","selected"],["type","number","min","1","max","100",3,"ngModel","ngModelChange"],["type","number","min","0","max","100",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Create a token"),ye(),pe(2,"h3"),Re(3,"Owner"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Aq,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token Name"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.tokenData.name=u}),ye(),pe(9,"h3"),Re(10,"Token Symbol"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.tokenData.symbol=u}),ye(),pe(12,"h3"),Re(13,"Token Type"),ye(),pe(14,"select",0),Xe("ngModelChange",function(u){return s.type=u})("ngModelChange",function(u){return s.changeType(u)}),pe(15,"option",3),Re(16,"Fungible"),ye(),pe(17,"option",4),Re(18,"Non-Fungible"),ye()(),pe(19,"h3"),Re(20,"Token Supply Type"),ye(),pe(21,"select",0),Xe("ngModelChange",function(u){return s.supplyType=u})("ngModelChange",function(u){return s.changeSupplyType(u)}),pe(22,"option",5),Re(23,"Infinite"),ye(),pe(24,"option",6),Re(25,"Finite"),ye()(),pe(26,"h3"),Re(27,"Initial Supply"),ye(),pe(28,"input",7),Xe("ngModelChange",function(u){return s.tokenData.initialSupply=u}),ye(),Lt(29,mq,4,1,"div",8),Lt(30,yq,4,1,"div",8),pe(31,"h3")(32,"input",9),Xe("ngModelChange",function(u){return s.tokenData.includeRoyalty=u}),ye(),Re(33," Include Royalty\n"),ye(),Lt(34,bq,7,2,"div",8),pe(35,"h3")(36,"input",9),Xe("ngModelChange",function(u){return s.tokenData.includeFixedFee=u}),ye(),Re(37," Include Fixed Fee\n"),ye(),Lt(38,vq,7,2,"div",8),pe(39,"h3")(40,"input",9),Xe("ngModelChange",function(u){return s.tokenData.includeFractionalFee=u}),ye(),Re(41," Include Fractional Fee\n"),ye(),Lt(42,wq,10,3,"div",8)),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.tokenData.name),Te(3),ke("ngModel",s.tokenData.symbol),Te(3),ke("ngModel",s.type),Te(7),ke("ngModel",s.supplyType),Te(7),ke("ngModel",s.tokenData.initialSupply),Te(1),ke("ngIf","Infinite"!=s.supplyType),Te(1),ke("ngIf","Fungible"==s.type),Te(2),ke("ngModel",s.tokenData.includeRoyalty),Te(2),ke("ngIf",s.tokenData.includeRoyalty),Te(2),ke("ngModel",s.tokenData.includeFixedFee),Te(2),ke("ngIf",s.tokenData.includeFixedFee),Te(2),ke("ngModel",s.tokenData.includeFractionalFee),Te(2),ke("ngIf",s.tokenData.includeFractionalFee))},dependencies:[Ir,ps,jr,Gr,Nr,bc,ca,Mr,Sr,vc,bf,kr],styles:["[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-top:8px}"]})}return n})();function _q(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Iq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new ug).setTokenId(t.data.tokenId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-delete-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Delete Token"),ye(),pe(2,"h3"),Re(3,"Delete From"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,_q,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function xq(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function Eq(n,e){if(1&n){const t=Ar();pe(0,"p")(1,"input",5),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.id=s)}),ye()()}if(2&n){const t=e.$implicit;Te(1),ke("ngModel",t.id)}}let Tq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.tokenIds=[{id:"0.0.3084461"}]}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}addTokenId(){this.tokenIds.push({id:""})}send(){var t=this;return ct(function*(){let o=yield new dg,s=[];t.tokenIds.forEach(w=>{s.push(w.id)}),o.setTokenIds(s),o.setAccountId(t.signingAcct);let l=yield t.SigningService.makeBytes(o,t.signingAcct),u=yield t.HashconnectService.sendTransaction(l,t.signingAcct),p={response:u,receipt:null};u.success&&(p.receipt=Cr.fromBytes(u.receipt)),t.HashconnectService.showResultOverlay(p)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-disassociate-token"]],decls:11,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"primary",3,"click"],[3,"value","selected"],["type","text",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Disassociate Token"),ye(),pe(2,"p"),Re(3,"Account to disassociate token to"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,xq,2,3,"option",1),ye(),pe(6,"p"),Re(7,"Token ID"),ye(),Lt(8,Eq,2,1,"p",2),pe(9,"button",3),Xe("click",function(){return s.addTokenId()}),Re(10,"Add Token ID"),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngForOf",s.tokenIds))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function kq(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Dq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.fileContent="608060405234801561001057600080fd5b50604051620007403803806200074083398181016040528101906100349190610212565b8060008360405161004591906102b5565b90815260200160405180910390208190555050506102cc565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6100c58261007c565b810181811067ffffffffffffffff821117156100e4576100e361008d565b5b80604052505050565b60006100f761005e565b905061010382826100bc565b919050565b600067ffffffffffffffff8211156101235761012261008d565b5b61012c8261007c565b9050602081019050919050565b60005b8381101561015757808201518184015260208101905061013c565b83811115610166576000848401525b50505050565b600061017f61017a84610108565b6100ed565b90508281526020810184848401111561019b5761019a610077565b5b6101a6848285610139565b509392505050565b600082601f8301126101c3576101c2610072565b5b81516101d384826020860161016c565b91505092915050565b6000819050919050565b6101ef816101dc565b81146101fa57600080fd5b50565b60008151905061020c816101e6565b92915050565b6000806040838503121561022957610228610068565b5b600083015167ffffffffffffffff8111156102475761024661006d565b5b610253858286016101ae565b9250506020610264858286016101fd565b9150509250929050565b600081519050919050565b600081905092915050565b600061028f8261026e565b6102998185610279565b93506102a9818560208601610139565b80840191505092915050565b60006102c18284610284565b915081905092915050565b61046480620002dc6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806314b3ee68146100465780639f11592114610076578063fd8111e914610092575b600080fd5b610060600480360381019061005b9190610298565b6100c2565b60405161006d91906102fa565b60405180910390f35b610090600480360381019061008b9190610341565b6100e9565b005b6100ac60048036038101906100a79190610298565b610110565b6040516100b991906102fa565b60405180910390f35b600080826040516100d39190610417565b9081526020016040518091039020549050919050565b806000836040516100fa9190610417565b9081526020016040518091039020819055505050565b6000818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101a58261015c565b810181811067ffffffffffffffff821117156101c4576101c361016d565b5b80604052505050565b60006101d761013e565b90506101e3828261019c565b919050565b600067ffffffffffffffff8211156102035761020261016d565b5b61020c8261015c565b9050602081019050919050565b82818337600083830152505050565b600061023b610236846101e8565b6101cd565b90508281526020810184848401111561025757610256610157565b5b610262848285610219565b509392505050565b600082601f83011261027f5761027e610152565b5b813561028f848260208601610228565b91505092915050565b6000602082840312156102ae576102ad610148565b5b600082013567ffffffffffffffff8111156102cc576102cb61014d565b5b6102d88482850161026a565b91505092915050565b6000819050919050565b6102f4816102e1565b82525050565b600060208201905061030f60008301846102eb565b92915050565b61031e816102e1565b811461032957600080fd5b50565b60008135905061033b81610315565b92915050565b6000806040838503121561035857610357610148565b5b600083013567ffffffffffffffff8111156103765761037561014d565b5b6103828582860161026a565b92505060206103938582860161032c565b9150509250929050565b600081519050919050565b600081905092915050565b60005b838110156103d15780820151818401526020810190506103b6565b838111156103e0576000848401525b50505050565b60006103f18261039d565b6103fb81856103a8565b935061040b8185602086016103b3565b80840191505092915050565b600061042382846103e6565b91508190509291505056fea264697066735822122049e6ca88d0242a5a423ce392b61870ac108ba49ce39c259ea7620a60ac3c6b3664736f6c634300080b0033",this.fileId=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new qp).setFileId(t.fileId).setContents(t.fileContent),s=yield t.SigningService.signAndMakeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-file-append"]],decls:16,vars:4,consts:[["href","https://hedera.com/blog/how-to-deploy-smart-contracts-on-hedera-part-1-a-simple-getter-and-setter-contract","target","_blank"],[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"File Append"),ye(),pe(2,"p"),Re(3,"The default file content is the contract code from the "),pe(4,"a",0),Re(5,"Hedera smart contract tutorial"),ye()(),pe(6,"p"),Re(7,"From: "),pe(8,"select",1),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(9,kq,2,3,"option",2),ye()(),pe(10,"p"),Re(11," File ID: "),pe(12,"input",3),Xe("ngModelChange",function(u){return s.fileId=u}),ye()(),pe(13,"p"),Re(14," Content: "),pe(15,"input",3),Xe("ngModelChange",function(u){return s.fileContent=u}),ye()()),2&o&&(Te(8),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.fileId),Te(3),ke("ngModel",s.fileContent))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Bq(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Sq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.fileContent="608060405234801561001057600080fd5b50604051620007403803806200074083398181016040528101906100349190610212565b8060008360405161004591906102b5565b90815260200160405180910390208190555050506102cc565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6100c58261007c565b810181811067ffffffffffffffff821117156100e4576100e361008d565b5b80604052505050565b60006100f761005e565b905061010382826100bc565b919050565b600067ffffffffffffffff8211156101235761012261008d565b5b61012c8261007c565b9050602081019050919050565b60005b8381101561015757808201518184015260208101905061013c565b83811115610166576000848401525b50505050565b600061017f61017a84610108565b6100ed565b90508281526020810184848401111561019b5761019a610077565b5b6101a6848285610139565b509392505050565b600082601f8301126101c3576101c2610072565b5b81516101d384826020860161016c565b91505092915050565b6000819050919050565b6101ef816101dc565b81146101fa57600080fd5b50565b60008151905061020c816101e6565b92915050565b6000806040838503121561022957610228610068565b5b600083015167ffffffffffffffff8111156102475761024661006d565b5b610253858286016101ae565b9250506020610264858286016101fd565b9150509250929050565b600081519050919050565b600081905092915050565b600061028f8261026e565b6102998185610279565b93506102a9818560208601610139565b80840191505092915050565b60006102c18284610284565b915081905092915050565b61046480620002dc6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806314b3ee68146100465780639f11592114610076578063fd8111e914610092575b600080fd5b610060600480360381019061005b9190610298565b6100c2565b60405161006d91906102fa565b60405180910390f35b610090600480360381019061008b9190610341565b6100e9565b005b6100ac60048036038101906100a79190610298565b610110565b6040516100b991906102fa565b60405180910390f35b600080826040516100d39190610417565b9081526020016040518091039020549050919050565b806000836040516100fa9190610417565b9081526020016040518091039020819055505050565b6000818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101a58261015c565b810181811067ffffffffffffffff821117156101c4576101c361016d565b5b80604052505050565b60006101d761013e565b90506101e3828261019c565b919050565b600067ffffffffffffffff8211156102035761020261016d565b5b61020c8261015c565b9050602081019050919050565b82818337600083830152505050565b600061023b610236846101e8565b6101cd565b90508281526020810184848401111561025757610256610157565b5b610262848285610219565b509392505050565b600082601f83011261027f5761027e610152565b5b813561028f848260208601610228565b91505092915050565b6000602082840312156102ae576102ad610148565b5b600082013567ffffffffffffffff8111156102cc576102cb61014d565b5b6102d88482850161026a565b91505092915050565b6000819050919050565b6102f4816102e1565b82525050565b600060208201905061030f60008301846102eb565b92915050565b61031e816102e1565b811461032957600080fd5b50565b60008135905061033b81610315565b92915050565b6000806040838503121561035857610357610148565b5b600083013567ffffffffffffffff8111156103765761037561014d565b5b6103828582860161026a565b92505060206103938582860161032c565b9150509250929050565b600081519050919050565b600081905092915050565b60005b838110156103d15780820151818401526020810190506103b6565b838111156103e0576000848401525b50505050565b60006103f18261039d565b6103fb81856103a8565b935061040b8185602086016103b3565b80840191505092915050565b600061042382846103e6565b91508190509291505056fea264697066735822122049e6ca88d0242a5a423ce392b61870ac108ba49ce39c259ea7620a60ac3c6b3664736f6c634300080b0033"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new Zp).setContents(t.fileContent),s=yield t.SigningService.signAndMakeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-file-create"]],decls:13,vars:3,consts:[["href","https://hedera.com/blog/how-to-deploy-smart-contracts-on-hedera-part-1-a-simple-getter-and-setter-contract","target","_blank"],[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"File Create"),ye(),pe(2,"p"),Re(3,"The default file content is the contract code from the "),pe(4,"a",0),Re(5,"Hedera smart contract tutorial"),ye()(),pe(6,"p"),Re(7,"From: "),pe(8,"select",1),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(9,Bq,2,3,"option",2),ye()(),pe(10,"p"),Re(11," Content: "),pe(12,"input",3),Xe("ngModelChange",function(u){return s.fileContent=u}),ye()()),2&o&&(Te(8),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.fileContent))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Mq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Nq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.topicMemo="Test topic",this.memo="test memo",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new Cg).setTopicMemo(t.topicMemo).setTransactionMemo(t.memo),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-hcs-create-topic"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Create Topic"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Mq,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Topic Name: "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.topicMemo=u}),ye()(),pe(9,"p"),Re(10," Transaction Memo: "),pe(11,"input",2),Xe("ngModelChange",function(u){return s.memo=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.topicMemo),Te(3),ke("ngModel",s.memo))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Oq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Pq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="test memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new _g).setTopicId(t.topicId).setTransactionMemo(t.memo),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-hcs-delete-topic"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Delete Topic"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Oq,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Topic ID: "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.topicId=u}),ye()(),pe(9,"p"),Re(10," Transaction Memo: "),pe(11,"input",2),Xe("ngModelChange",function(u){return s.memo=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.topicId),Te(3),ke("ngModel",s.memo))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Rq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Fq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.message="Topic message",this.memo="test memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new xg).setMessage(t.message).setTopicId(t.topicId).setTransactionMemo(t.memo),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-hcs-submit-message"]],decls:15,vars:5,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Submit Message"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Rq,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Topic Id: "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.topicId=u}),ye()(),pe(9,"p"),Re(10," Message: "),pe(11,"input",2),Xe("ngModelChange",function(u){return s.message=u}),ye()(),pe(12,"p"),Re(13," Transaction Memo: "),pe(14,"input",2),Xe("ngModelChange",function(u){return s.memo=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.topicId),Te(3),ke("ngModel",s.message),Te(3),ke("ngModel",s.memo))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Lq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Uq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="test memo",this.transMemo="Updated topic memo",this.topicId="0.0.30890260",this.signingAcct=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new Eg).setTopicId(t.topicId).setTopicMemo(t.transMemo).setTransactionMemo(t.memo),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-hcs-update-topic"]],decls:15,vars:5,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Update Topic"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Lq,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Topic ID: "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.topicId=u}),ye()(),pe(9,"p"),Re(10," New Topic Memo: "),pe(11,"input",2),Xe("ngModelChange",function(u){return s.transMemo=u}),ye()(),pe(12,"p"),Re(13," Transaction Memo: "),pe(14,"input",2),Xe("ngModelChange",function(u){return s.memo=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.topicId),Te(3),ke("ngModel",s.transMemo),Te(3),ke("ngModel",s.memo))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function jq(n,e){if(1&n&&(pe(0,"option",6),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function Gq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Metadata"),ye(),pe(3,"input",7),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.metadata=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.data.metadata)}}let Vq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",amount:1,isNft:!1,metadata:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new Ag).setTokenId(t.data.tokenId);if(t.data.isNft){if(t.data.isNft){let p=0;for(;p{class n{constructor(t,o){this.dialogBelonging=t,this.HashconnectService=o,this.subscriptions=new k,this.qr_url=""}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close()})),this.HashconnectService.hashconnect.pairingEvent.on(t=>{console.log("Pairing event callback "),console.log(t),this.dialogBelonging.EventsController.close()}),new Hq.AwesomeQR({text:this.HashconnectService.pairingString,size:400,margin:16,maskPattern:110,colorLight:"#fff"}).draw().then(t=>{t&&(this.qr_url=t.toString())})}pairWithExtension(){this.HashconnectService.connectToExtension()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-pairing"]],decls:10,vars:2,consts:[["type","text",3,"ngModel","ngModelChange"],[1,"primary",3,"click"],[3,"src"]],template:function(o,s){1&o&&(pe(0,"p"),Re(1,"Pair with code: "),ye(),pe(2,"input",0),Xe("ngModelChange",function(u){return s.HashconnectService.pairingString=u}),ye(),pe(3,"p"),Re(4,"Pair with installed extension: "),ye(),pe(5,"button",1),Xe("click",function(){return s.pairWithExtension()}),Re(6,"Pair with Hashpack"),ye(),pe(7,"p"),Re(8,"Pair with QR:"),ye(),zo(9,"img",2)),2&o&&(Te(2),ke("ngModel",s.HashconnectService.pairingString),Te(7),ke("src",s.qr_url,S6))},dependencies:[Nr,Sr,kr]})}return n})();function zq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Kq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new mg).setTokenId(t.data.tokenId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-pause-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Pause Token"),ye(),pe(2,"p"),Re(3,"Account to sign (token pause key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,zq,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function Yq(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let Wq=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={range:100}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new og).setRange(t.data.range),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-prng-transaction"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"pRNG Transaction"),ye(),pe(2,"p"),Re(3,"Account to sign (token pause key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,Yq,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Range (highest number)"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.range=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.range))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function $q(n,e){if(1&n&&(pe(0,"option",5),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function Zq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"p"),Re(2,"To HBAR Amount: "),pe(3,"input",6),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.transfer.to_hbar_amount=s)}),ye()(),pe(4,"p"),Re(5,"From HBAR Amount: "),pe(6,"input",6),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.transfer.from_hbar_amount=s)}),ye()()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.data.transfer.to_hbar_amount),Te(3),ke("ngModel",t.data.transfer.from_hbar_amount)}}function qq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"p"),Re(2,"Token ID: "),pe(3,"input",9),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.tokenId=s)}),ye()(),pe(4,"p"),Re(5,"Token Amount: "),pe(6,"input",6),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.amount=s)}),ye()(),pe(7,"p"),Re(8,"Sender ID: "),pe(9,"input",9),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.accountId=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(3),ke("ngModel",t.tokenId),Te(3),ke("ngModel",t.amount),Te(3),ke("ngModel",t.accountId)}}function Jq(n,e){if(1&n){const t=Ar();pe(0,"div"),Lt(1,qq,10,3,"div",7),pe(2,"button",8),Xe("click",function(){return Un(t),jn(Dt().addTokenTransfer())}),Re(3,"Add Token Transaction"),ye()()}if(2&n){const t=Dt();Te(1),ke("ngForOf",t.data.transfer.tokenTransfers)}}function Xq(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"p"),Re(2,"Token ID: "),pe(3,"input",9),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.tokenId=s)}),ye()(),pe(4,"p"),Re(5,"Serial Number: "),pe(6,"input",10),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.serialNumber=s)}),ye()(),pe(7,"p"),Re(8,"Sender ID: "),pe(9,"input",9),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.sender=s)}),ye()(),pe(10,"p"),Re(11,"Receiver ID: "),pe(12,"input",9),Xe("ngModelChange",function(s){return jn(Un(t).$implicit.receiver=s)}),ye()()()}if(2&n){const t=e.$implicit;Te(3),ke("ngModel",t.tokenId),Te(3),ke("ngModel",t.serialNumber),Te(3),ke("ngModel",t.sender),Te(3),ke("ngModel",t.receiver)}}function eJ(n,e){if(1&n){const t=Ar();pe(0,"div"),Lt(1,Xq,13,4,"div",7),pe(2,"button",8),Xe("click",function(){return Un(t),jn(Dt().addNFTTransfer())}),Re(3,"Add NFT Transfer"),ye(),pe(4,"div")(5,"input",2),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.transfer.hideNfts=s)}),ye(),Re(6," Hide NFT Info "),ye()()}if(2&n){const t=Dt();Te(1),ke("ngForOf",t.data.transfer.nftTransfers),Te(4),ke("ngModel",t.data.transfer.hideNfts)}}let tJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.data={transfer:{include_hbar:!0,to_hbar_amount:1,from_hbar_amount:-1,toAcc:"0.0.1234",include_token:!1,return_transaction:!1,tokenTransfers:[{tokenId:"0.0.3084461",accountId:"",amount:1}],include_nft:!1,hideNfts:!1,nftTransfers:[{tokenId:"0.0.14658561",serialNumber:0,sender:"",receiver:""}]},tokenAssociate:{}}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new kg).setTransactionMemo(t.memo);t.data.transfer.include_hbar&&o.addHbarTransfer(t.data.transfer.toAcc,mn.from(t.data.transfer.to_hbar_amount,sr.Hbar)).addHbarTransfer(t.signingAcct,mn.from(t.data.transfer.from_hbar_amount,sr.Hbar)),t.data.transfer.include_token&&t.data.transfer.tokenTransfers.forEach(w=>{o.addTokenTransfer(w.tokenId,w.accountId,w.amount)}),t.data.transfer.include_nft&&t.data.transfer.nftTransfers.forEach(w=>{o.addNftTransfer(w.tokenId,w.serialNumber,w.sender,w.receiver)});let s=yield t.SigningService.signAndMakeBytes(o,t.signingAcct),u=(yield ma.forTestnet(),yield t.HashconnectService.sendTransaction(s,t.signingAcct,t.data.transfer.return_transaction,t.data.transfer.hideNfts)),p={response:u,receipt:null};u.success&&!t.data.transfer.return_transaction&&(p.receipt=Cr.fromBytes(u.receipt)),t.HashconnectService.showResultOverlay(p)})()}addTokenTransfer(){this.data.transfer.tokenTransfers.push({tokenId:"0.0.3084461",accountId:"",amount:1})}addNFTTransfer(){this.data.transfer.nftTransfers.push({tokenId:"0.0.14658561",serialNumber:0,sender:"",receiver:""})}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-send-transaction"]],decls:32,vars:11,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","checkbox","name","","id","",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"],["type","number","name","","id","","max","5","min","-5",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"outline",3,"click"],["type","text","name","","id","",3,"ngModel","ngModelChange"],["type","number","name","","id","","max","9999999","min","0",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Send transaction"),ye(),pe(2,"div")(3,"p"),Re(4),ye(),pe(5,"p"),Re(6,"From: "),pe(7,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(8,$q,2,3,"option",1),ye()(),zo(9,"hr"),pe(10,"p")(11,"input",2),Xe("ngModelChange",function(u){return s.data.transfer.include_hbar=u}),ye(),Re(12," HBAR Transfer "),ye(),Lt(13,Zq,7,2,"div",3),zo(14,"hr"),pe(15,"p")(16,"input",2),Xe("ngModelChange",function(u){return s.data.transfer.include_token=u}),ye(),Re(17," Token Transfer "),ye(),Lt(18,Jq,4,1,"div",3),zo(19,"hr"),pe(20,"p")(21,"input",2),Xe("ngModelChange",function(u){return s.data.transfer.include_nft=u}),ye(),Re(22," NFT Transfer "),ye(),Lt(23,eJ,7,2,"div",3),zo(24,"hr"),pe(25,"p"),Re(26,"Memo: "),pe(27,"input",4),Xe("ngModelChange",function(u){return s.memo=u}),ye()(),zo(28,"hr"),pe(29,"p")(30,"input",2),Xe("ngModelChange",function(u){return s.data.transfer.return_transaction=u}),ye(),Re(31," Return transaction instead of execute "),ye()()),2&o&&(Te(4),Vn("To: ",s.data.transfer.toAcc,""),Te(3),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.transfer.include_hbar),Te(2),ke("ngIf",s.data.transfer.include_hbar),Te(3),ke("ngModel",s.data.transfer.include_token),Te(2),ke("ngIf",s.data.transfer.include_token),Te(3),ke("ngModel",s.data.transfer.include_nft),Te(2),ke("ngIf",s.data.transfer.include_nft),Te(4),ke("ngModel",s.memo),Te(3),ke("ngModel",s.data.transfer.return_transaction))},dependencies:[Ir,ps,jr,Gr,Nr,bc,ca,Mr,Sr,vc,bf,kr]})}return n})();function nJ(n,e){if(1&n&&(pe(0,"option",2),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let rJ=(()=>{class n{constructor(t,o){this.dialogBelonging=t,this.HashconnectService=o,this.subscriptions=new k,this.data={}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield t.HashconnectService.hashconnect.sign(t.HashconnectService.topic,t.signingAcct,{test:"ABC"});t.HashconnectService.showResultOverlay(o)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-sign"]],decls:6,vars:2,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Sign"),ye(),pe(2,"p"),Re(3,"Account to sign"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,nJ,2,3,"option",1),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds))},dependencies:[Ir,jr,Gr,Mr,Sr,kr]})}return n})();function oJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let iJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.contractId="0.0.30863001"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let s=yield(new $p).setContractId(t.contractId).setGas(1e5).setFunction("getMobileNumber",(new ud).addString("Alice")).setMaxQueryPayment(new mn(1e-8)).toBytes(),u={response:yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1,!1,!0),receipt:null};t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-smartcontract-call"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Smart Contract Call"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,oJ,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Contract ID "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.contractId=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.contractId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function sJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let aJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.bytecodeFileId="0.0.30861882"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new Jp).setBytecodeFileId(t.bytecodeFileId).setGas(1e5).setConstructorParameters((new ud).addString("Alice").addUint256(111111)),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-smartcontract-create"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Smart Contract Create"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,sJ,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Bytecode File Id "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.bytecodeFileId=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.bytecodeFileId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function cJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let lJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.contractId="0.0.30863001"}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new Xp).setContractId(t.contractId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-smartcontract-delete"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Smart Contract Delete"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,cJ,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Contract ID "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.contractId=u}),ye()()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.contractId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function uJ(n,e){if(1&n&&(pe(0,"option",4),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let dJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.memo="",this.signingAcct="",this.contractId="0.0.30863001",this.getRecord=!0}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.buildTransaction()})),this.signingAcct=this.SigningService.acc}buildTransaction(){var t=this;return ct(function*(){let o=(new eg).setContractId(t.contractId).setGas(1e5).setPayableAmount(new mn(10)).setFunction("setMobileNumber",(new ud).addString("Bob").addUint256(222222)).setMaxTransactionFee(new mn(.75)),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct,!1,!1,t.getRecord),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-smartcontract-execute"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Smart Contract Execute"),ye(),pe(2,"p"),Re(3,"From: "),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,uJ,2,3,"option",1),ye()(),pe(6,"p"),Re(7," Contract ID "),pe(8,"input",2),Xe("ngModelChange",function(u){return s.contractId=u}),ye()(),pe(9,"h3")(10,"input",3),Xe("ngModelChange",function(u){return s.getRecord=u}),ye(),Re(11," Get Record\n"),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.contractId),Te(2),ke("ngModel",s.getRecord))},dependencies:[Ir,jr,Gr,Nr,ca,Mr,Sr,kr]})}return n})();function fJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let hJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new fg).setTokenId(t.data.tokenId).setCustomFees([]),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-token-fee-update"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Token Fee Update"),ye(),pe(2,"p"),Re(3,"Account to sign (token feeScheduleKey account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,fJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function pJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let gJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new hg).setTokenId(t.data.tokenId).setAccountId(t.data.accountId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-token-freeze-account"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Freeze Token"),ye(),pe(2,"p"),Re(3,"Account to sign (token freeze key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,pJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3"),Re(10,"Account ID to freeze"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.data.accountId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(3),ke("ngModel",s.data.accountId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function AJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let mJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new pg).setTokenId(t.data.tokenId).setAccountId(t.data.accountId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-token-kyc-grant"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Grant Token KYC"),ye(),pe(2,"p"),Re(3,"Account to sign (token KYC key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,AJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3"),Re(10,"Account ID"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.data.accountId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(3),ke("ngModel",s.data.accountId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function yJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let bJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new yg).setTokenId(t.data.tokenId).setAccountId(t.data.accountId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-token-kyc-revoke"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Revoke Token KYC"),ye(),pe(2,"p"),Re(3,"Account to sign (token KYC key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,yJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3"),Re(10,"Account ID"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.data.accountId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(3),ke("ngModel",s.data.accountId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function vJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let wJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new bg).setTokenId(t.data.tokenId).setAccountId(t.data.accountId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-token-unfreeze-account"]],decls:12,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Unfreeze Token"),ye(),pe(2,"p"),Re(3,"Account to sign (token freeze key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,vJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3"),Re(10,"Account ID to unfreeze"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.data.accountId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(3),ke("ngModel",s.data.accountId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function CJ(n,e){if(1&n&&(pe(0,"option",3),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}let _J=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new vg).setTokenId(t.data.tokenId),s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-unpause-token"]],decls:9,vars:3,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],[3,"value","selected"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Unpause Token"),ye(),pe(2,"p"),Re(3,"Account to sign (token pause key account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,CJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye()),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId))},dependencies:[Ir,jr,Gr,Nr,Mr,Sr,kr]})}return n})();function IJ(n,e){if(1&n&&(pe(0,"option",5),Re(1),ye()),2&n){const t=e.$implicit,o=Dt();ke("value",t)("selected",o.signingAcct==t),Te(1),Vn(" ",t,"")}}function xJ(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Amount"),ye(),pe(3,"input",6),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.amount=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.data.amount)}}function EJ(n,e){if(1&n){const t=Ar();pe(0,"div")(1,"h3"),Re(2,"Serial #"),ye(),pe(3,"input",7),Xe("ngModelChange",function(s){return Un(t),jn(Dt().data.serial=s)}),ye()()}if(2&n){const t=Dt();Te(3),ke("ngModel",t.data.serial)}}let TJ=(()=>{class n{constructor(t,o,s){this.dialogBelonging=t,this.HashconnectService=o,this.SigningService=s,this.subscriptions=new k,this.data={tokenId:"",amount:1,isNft:!1,serial:0,accountId:""}}ngOnInit(){this.subscriptions.add(this.dialogBelonging.EventsController.onButtonClick$.subscribe(t=>{"cancel"===t.ID&&this.dialogBelonging.EventsController.close(),"send"===t.ID&&this.send()}))}send(){var t=this;return ct(function*(){let o=yield(new wg).setTokenId(t.data.tokenId).setAccountId(t.data.accountId);t.data.isNft?t.data.isNft&&o.setSerials([t.data.serial]):o.setAmount(t.data.amount);let s=yield t.SigningService.makeBytes(o,t.signingAcct),l=yield t.HashconnectService.sendTransaction(s,t.signingAcct),u={response:l,receipt:null};l.success&&(u.receipt=Cr.fromBytes(l.receipt)),t.HashconnectService.showResultOverlay(u)})()}static#e=this.\u0275fac=function(o){return new(o||n)(qe("dialogBelonging"),qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-wipe-token"]],decls:17,vars:7,consts:[[3,"ngModel","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[4,"ngIf"],[3,"value","selected"],["type","number","min","1",3,"ngModel","ngModelChange"],["type","number","maxlength","100",3,"ngModel","ngModelChange"]],template:function(o,s){1&o&&(pe(0,"h2"),Re(1,"Wipe Token"),ye(),pe(2,"p"),Re(3,"Account to sign (token wipe account)"),ye(),pe(4,"select",0),Xe("ngModelChange",function(u){return s.signingAcct=u}),Lt(5,IJ,2,3,"option",1),ye(),pe(6,"h3"),Re(7,"Token ID"),ye(),pe(8,"input",2),Xe("ngModelChange",function(u){return s.data.tokenId=u}),ye(),pe(9,"h3"),Re(10,"Account ID to wipe"),ye(),pe(11,"input",2),Xe("ngModelChange",function(u){return s.data.accountId=u}),ye(),pe(12,"h3")(13,"input",3),Xe("ngModelChange",function(u){return s.data.isNft=u}),ye(),Re(14," Is NFT\n"),ye(),Lt(15,xJ,4,1,"div",4),Lt(16,EJ,4,1,"div",4)),2&o&&(Te(4),ke("ngModel",s.signingAcct),Te(1),ke("ngForOf",null==s.HashconnectService.pairingData?null:s.HashconnectService.pairingData.accountIds),Te(3),ke("ngModel",s.data.tokenId),Te(3),ke("ngModel",s.data.accountId),Te(2),ke("ngModel",s.data.isNft),Te(2),ke("ngIf",!s.data.isNft),Te(1),ke("ngIf",s.data.isNft))},dependencies:[Ir,ps,jr,Gr,Nr,bc,ca,Mr,Sr,t0,vc,kr]})}return n})();function kJ(n,e){if(1&n&&(pe(0,"pre",6),Re(1),gh(2,"json"),ye()),2&n){const t=Dt();Te(1),Vn(" ",Ah(2,1,t.HashConnectService.hashconnect.hcData),"\n ")}}let DJ=(()=>{class n{constructor(t,o){this.HashConnectService=t,this.SigningService=o,this.title="dapp | proposer",this.viewData=!1}ngOnInit(){this.SigningService.init(),this.HashConnectService.initHashconnect()}pair(){const t=new Or(Qq);t.setConfig({Width:"500px",LayoutType:ja.NONE}),t.setButtons([new K0("Cancel","cancel",Bc.DANGER)]),t.openDialog$().subscribe(o=>{})}auth(){const t=new Or(uq);this.doPopupStuff(t)}sign(){const t=new Or(rJ);this.doPopupStuff(t)}sendTransaction(){const t=new Or(tJ);this.doPopupStuff(t)}createToken(){const t=new Or(Cq);this.doPopupStuff(t)}deleteToken(){const t=new Or(Iq);this.doPopupStuff(t)}mintToken(){const t=new Or(Vq);this.doPopupStuff(t)}pauseToken(){const t=new Or(Kq);this.doPopupStuff(t)}unpauseToken(){const t=new Or(_J);this.doPopupStuff(t)}wipeToken(){const t=new Or(TJ);this.doPopupStuff(t)}kycGrant(){const t=new Or(mJ);this.doPopupStuff(t)}kycRevoke(){const t=new Or(bJ);this.doPopupStuff(t)}freezeToken(){const t=new Or(gJ);this.doPopupStuff(t)}unfreezeToken(){const t=new Or(wJ);this.doPopupStuff(t)}burnToken(){const t=new Or(gq);this.doPopupStuff(t)}associateToken(){const t=new Or(cq);this.doPopupStuff(t)}disassociateToken(){const t=new Or(Tq);this.doPopupStuff(t)}smartcontractCreate(){const t=new Or(aJ);this.doPopupStuff(t)}smartcontractCall(){const t=new Or(iJ);this.doPopupStuff(t)}smartcontractExecute(){const t=new Or(dJ);this.doPopupStuff(t)}smartcontractDelete(){const t=new Or(lJ);this.doPopupStuff(t)}fileCreate(){const t=new Or(Sq);this.doPopupStuff(t)}fileAppend(){const t=new Or(Dq);this.doPopupStuff(t)}hcsCreateTopic(){const t=new Or(Nq);this.doPopupStuff(t)}hcsDeleteTopic(){const t=new Or(Pq);this.doPopupStuff(t)}hcsUpdateTopic(){const t=new Or(Uq);this.doPopupStuff(t)}hcsSubmitMessage(){const t=new Or(Fq);this.doPopupStuff(t)}accountUpdate(){const t=new Or(WZ);this.doPopupStuff(t)}allowanceApprove(){const t=new Or(nq);this.doPopupStuff(t)}allowanceDelete(){const t=new Or(iq);this.doPopupStuff(t)}prngTrans(){const t=new Or(Wq);this.doPopupStuff(t)}tokenFeeUpdate(){const t=new Or(hJ);this.doPopupStuff(t)}doPopupStuff(t){t.setConfig({Width:"500px",LayoutType:ja.NONE}),t.setButtons([new K0("Send","send",Bc.SUCCESS),new K0("Cancel","cancel",Bc.DANGER)]),t.openDialog$().subscribe(o=>{})}static#e=this.\u0275fac=function(o){return new(o||n)(qe(Fr),qe(Qr))};static#t=this.\u0275cmp=lr({type:n,selectors:[["app-root"]],decls:92,vars:40,consts:[[1,"top"],[1,"buttons"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"primary",3,"disabled","click"],[1,"primary",3,"click"],["class","data",4,"ngIf"],[1,"data"]],template:function(o,s){1&o&&(pe(0,"div",0)(1,"h1"),Re(2),ye(),pe(3,"h2"),Re(4),ye(),pe(5,"h3"),Re(6),gh(7,"json"),ye()(),pe(8,"div",1)(9,"div")(10,"input",2),Xe("ngModelChange",function(u){return s.viewData=u}),ye(),Re(11," View HashConnect Data "),ye(),pe(12,"button",3),Xe("click",function(){return s.pair()}),Re(13,"Pair"),ye(),pe(14,"button",4),Xe("click",function(){return s.HashConnectService.clearPairings()}),Re(15,"Clear HashConnect Data - will need to refresh"),ye(),pe(16,"button",3),Xe("click",function(){return s.HashConnectService.disconnect()}),Re(17,"Disconnect"),ye(),pe(18,"button",3),Xe("click",function(){return s.auth()}),Re(19,"Authenticate"),ye(),pe(20,"button",3),Xe("click",function(){return s.sign()}),Re(21,"Sign"),ye(),pe(22,"button",3),Xe("click",function(){return s.sendTransaction()}),Re(23,"Create basic transaction"),ye(),pe(24,"button",3),Xe("click",function(){return s.prngTrans()}),Re(25,"prng"),ye(),pe(26,"h3"),Re(27,"Account"),ye(),pe(28,"button",3),Xe("click",function(){return s.accountUpdate()}),Re(29,"Account Update"),ye(),pe(30,"button",3),Xe("click",function(){return s.associateToken()}),Re(31,"Associate Token"),ye(),pe(32,"button",3),Xe("click",function(){return s.disassociateToken()}),Re(33,"Disassociate Token"),ye(),pe(34,"button",3),Xe("click",function(){return s.allowanceApprove()}),Re(35,"Allowance Approve"),ye(),pe(36,"button",3),Xe("click",function(){return s.allowanceDelete()}),Re(37,"Allowance Delete"),ye(),pe(38,"h3"),Re(39,"Tokens"),ye(),pe(40,"button",3),Xe("click",function(){return s.createToken()}),Re(41,"Create Token"),ye(),pe(42,"button",3),Xe("click",function(){return s.deleteToken()}),Re(43,"Delete Token"),ye(),pe(44,"button",3),Xe("click",function(){return s.mintToken()}),Re(45,"Mint Token"),ye(),pe(46,"button",3),Xe("click",function(){return s.burnToken()}),Re(47,"Burn Token"),ye(),pe(48,"button",3),Xe("click",function(){return s.pauseToken()}),Re(49,"Pause Token"),ye(),pe(50,"button",3),Xe("click",function(){return s.unpauseToken()}),Re(51,"Unpause Token"),ye(),pe(52,"button",3),Xe("click",function(){return s.wipeToken()}),Re(53,"Wipe Token"),ye(),pe(54,"button",3),Xe("click",function(){return s.kycGrant()}),Re(55,"Grant Token KYC"),ye(),pe(56,"button",3),Xe("click",function(){return s.kycRevoke()}),Re(57,"Revoke Token KYC"),ye(),pe(58,"button",3),Xe("click",function(){return s.freezeToken()}),Re(59,"Freeze Token"),ye(),pe(60,"button",3),Xe("click",function(){return s.unfreezeToken()}),Re(61,"UnFreeze Token"),ye(),pe(62,"button",3),Xe("click",function(){return s.tokenFeeUpdate()}),Re(63,"Token Fee Update"),ye(),pe(64,"h3"),Re(65,"File Service"),ye(),pe(66,"button",3),Xe("click",function(){return s.fileCreate()}),Re(67,"File Create"),ye(),pe(68,"button",3),Xe("click",function(){return s.fileAppend()}),Re(69,"File Append"),ye(),pe(70,"h3"),Re(71,"Smart Contracts"),ye(),pe(72,"button",3),Xe("click",function(){return s.smartcontractCreate()}),Re(73,"Smart Contract Create"),ye(),pe(74,"button",3),Xe("click",function(){return s.smartcontractDelete()}),Re(75,"Smart Contract Delete"),ye(),pe(76,"button",3),Xe("click",function(){return s.smartcontractCall()}),Re(77,"Smart Contract Call"),ye(),pe(78,"button",3),Xe("click",function(){return s.smartcontractExecute()}),Re(79,"Smart Contract Execute"),ye(),pe(80,"h3"),Re(81,"Consensus Service"),ye(),pe(82,"button",3),Xe("click",function(){return s.hcsCreateTopic()}),Re(83,"Create Topic"),ye(),pe(84,"button",3),Xe("click",function(){return s.hcsDeleteTopic()}),Re(85,"Delete Topic"),ye(),pe(86,"button",3),Xe("click",function(){return s.hcsUpdateTopic()}),Re(87,"Update Topic"),ye(),pe(88,"button",3),Xe("click",function(){return s.hcsSubmitMessage()}),Re(89,"Submit Message"),ye()(),Lt(90,kJ,3,3,"pre",5),zo(91,"router-outlet")),2&o&&(Te(2),Kd(s.title),Te(2),Vn("Status: ",s.HashConnectService.state,""),Te(2),Vn("Connected accounts: ",Ah(7,38,null==s.HashConnectService.pairingData?null:s.HashConnectService.pairingData.accountIds),""),Te(4),ke("ngModel",s.viewData),Te(2),ke("disabled","Paired"==s.HashConnectService.state||"Disconnected"==s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(4),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("disabled","Paired"!=s.HashConnectService.state),Te(2),ke("ngIf",s.viewData))},dependencies:[ps,lm,ca,Sr,kr,p1],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;padding-top:50px;padding-bottom:30px;align-items:flex-start;width:100%;height:100%;overflow:auto;text-align:center}[_nghost-%COMP%] .top[_ngcontent-%COMP%]{flex:0 0 100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-direction:column;margin-top:20px}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:5px}[_nghost-%COMP%] .data[_ngcontent-%COMP%]{text-align:left;overflow:auto;width:500px;margin-left:16px;margin-top:20px}"]})}return n})(),BJ=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=vi({type:n,bootstrap:[DJ]});static#n=this.\u0275inj=dt({imports:[x1,AV,fU,rK.forRoot(),oK.forRoot()]})}return n})();oL().bootstrapModule(BJ).catch(n=>console.error(n))},6601:()=>{},9214:()=>{},2480:()=>{},5568:()=>{},5819:()=>{},5024:()=>{},2694:(Ne,Ae,$)=>{"use strict";const v=$(1778);Ne.exports=k;const A=function I(){function B(F){return typeof F<"u"&&F}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return B(self)||B(window)||B(this)||{}}}().console||{},T={mapHttpRequest:z,mapHttpResponse:z,wrapRequestSerializer:W,wrapResponseSerializer:W,wrapErrorSerializer:W,req:z,res:z,err:X,errWithCause:X};function _(B,F){return"silent"===B?1/0:F.levels.values[B]}const y=Symbol("pino.logFuncs"),m=Symbol("pino.hierarchy"),f={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function C(B,F){F[m]={logger:F,parent:B[m]}}function k(B){(B=B||{}).browser=B.browser||{};const F=B.browser.transmit;if(F&&"function"!=typeof F.send)throw Error("pino: transmit option must have a send function");const H=B.browser.write||A;B.browser.write&&(B.browser.asObject=!0);const G=B.serializers||{},R=function x(B,F){return Array.isArray(B)?B.filter(function(G){return"!stdSerializers.err"!==G}):!0===B&&Object.keys(F)}(B.browser.serialize,G);let Z=B.browser.serialize;Array.isArray(B.browser.serialize)&&B.browser.serialize.indexOf("!stdSerializers.err")>-1&&(Z=!1);const oe=Object.keys(B.customLevels||{}),j=["error","fatal","warn","info","debug","trace"].concat(oe);"function"==typeof H&&j.forEach(function(Be){H[Be]=H}),(!1===B.enabled||B.browser.disabled)&&(B.level="silent");const de=B.level||"info",_e=Object.create(H);_e.log||(_e.log=Y),function b(B,F,H){const G={};F.forEach(R=>{G[R]=H[R]?H[R]:A[R]||A[f[R]||"log"]||Y}),B[y]=G}(_e,j,H),C({},_e),Object.defineProperty(_e,"levelVal",{get:function ne(){return _(this.level,this)}}),Object.defineProperty(_e,"level",{get:function We(){return this._level},set:function Pe(Be){if("silent"!==Be&&!this.levels.values[Be])throw Error("unknown level "+Be);this._level=Be,c(this,st,_e,"error"),c(this,st,_e,"fatal"),c(this,st,_e,"warn"),c(this,st,_e,"info"),c(this,st,_e,"debug"),c(this,st,_e,"trace"),oe.forEach(K=>{c(this,st,_e,K)})}});const st={transmit:F,serialize:R,asObject:B.browser.asObject,levels:j,timestamp:te(B)};return _e.levels=function a(B){const F=B.customLevels||{},H=Object.assign({},k.levels.values,F),G=Object.assign({},k.levels.labels,function r(B){const F={};return Object.keys(B).forEach(function(H){F[B[H]]=H}),F}(F));return{values:H,labels:G}}(B),_e.level=de,_e.setMaxListeners=_e.getMaxListeners=_e.emit=_e.addListener=_e.on=_e.prependListener=_e.once=_e.prependOnceListener=_e.removeListener=_e.removeAllListeners=_e.listeners=_e.listenerCount=_e.eventNames=_e.write=_e.flush=Y,_e.serializers=G,_e._serialize=R,_e._stdErrSerialize=Z,_e.child=function we(Be,K){if(!Be)throw new Error("missing bindings for child Pino");K=K||{},R&&Be.serializers&&(K.serializers=Be.serializers);const Q=K.serializers;if(R&&Q){var ie=Object.assign({},G,Q),Ce=!0===B.browser.serialize?Object.keys(ie):R;delete Be.serializers,E([Be],Ce,ie,this._stdErrSerialize)}function ve(Me){this._childLevel=1+(0|Me._childLevel),this.bindings=Be,ie&&(this.serializers=ie,this._serialize=Ce),F&&(this._logEvent=U([].concat(Me._logEvent.bindings,Be)))}ve.prototype=this;const je=new ve(this);return C(this,je),je.level=this.level,je},F&&(_e._logEvent=U()),_e}function c(B,F,H,G){if(B[G]=_(B.level,H)>_(G,H)?Y:H[y][G],!F.transmit&&B[G]===Y)return;B[G]=function h(B,F,H,G){return function(R){return function(){const oe=F.timestamp(),j=new Array(arguments.length),de=Object.getPrototypeOf&&Object.getPrototypeOf(this)===A?A:this;for(var _e=0;_e-1&&Z in H&&(B[R][Z]=H[Z](B[R][Z]))}function U(B){return{ts:0,messages:[],bindings:B||[],level:{label:"",value:0}}}function X(B){const F={type:B.constructor.name,msg:B.message,stack:B.stack};for(const H in B)void 0===F[H]&&(F[H]=B[H]);return F}function te(B){return"function"==typeof B.timestamp?B.timestamp:!1===B.timestamp?D:N}function z(){return{}}function W(B){return B}function Y(){}function D(){return!1}function N(){return Date.now()}k.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},k.stdSerializers=T,k.stdTimeFunctions=Object.assign({},{nullTime:D,epochTime:N,unixTime:function L(){return Math.round(Date.now()/1e3)},isoTime:function O(){return new Date(Date.now()).toISOString()}}),Ne.exports.default=k,Ne.exports.pino=k},8597:Ne=>{"use strict";Ne.exports={i8:"6.5.4"}}},Ne=>{Ne(Ne.s=4345)}]); \ No newline at end of file diff --git a/docs/polyfills.9df2b5b4d2109f5e.js b/docs/polyfills.9df2b5b4d2109f5e.js new file mode 100644 index 00000000..3c2ed340 --- /dev/null +++ b/docs/polyfills.9df2b5b4d2109f5e.js @@ -0,0 +1 @@ +(self.webpackChunkdapp=self.webpackChunkdapp||[]).push([[429],{6434:(It,_t)=>{"use strict";_t.byteLength=function q(A){var O=W(A),at=O[1];return 3*(O[0]+at)/4-at},_t.toByteArray=function dt(A){var O,pt,N=W(A),at=N[0],yt=N[1],it=new Tt(function l(A,O,N){return 3*(O+N)/4-N}(0,at,yt)),gt=0,bt=yt>0?at-4:at;for(pt=0;pt>16&255,it[gt++]=O>>8&255,it[gt++]=255&O;return 2===yt&&(O=L[A.charCodeAt(pt)]<<2|L[A.charCodeAt(pt+1)]>>4,it[gt++]=255&O),1===yt&&(O=L[A.charCodeAt(pt)]<<10|L[A.charCodeAt(pt+1)]<<4|L[A.charCodeAt(pt+2)]>>2,it[gt++]=O>>8&255,it[gt++]=255&O),it},_t.fromByteArray=function U(A){for(var O,N=A.length,at=N%3,yt=[],gt=0,bt=N-at;gtbt?bt:gt+16383));return 1===at?yt.push(X[(O=A[N-1])>>2]+X[O<<4&63]+"=="):2===at&&yt.push(X[(O=(A[N-2]<<8)+A[N-1])>>10]+X[O>>4&63]+X[O<<2&63]+"="),yt.join("")};for(var X=[],L=[],Tt=typeof Uint8Array<"u"?Uint8Array:Array,ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=0,nt=ot.length;et0)throw new Error("Invalid string. Length must be a multiple of 4");var N=A.indexOf("=");return-1===N&&(N=O),[N,N===O?0:4-N%4]}function rt(A){return X[A>>18&63]+X[A>>12&63]+X[A>>6&63]+X[63&A]}function ut(A,O,N){for(var yt=[],it=O;it{"use strict";const Tt=X(6434),ot=X(2658),et="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;_t.lW=l,_t.h2=50;const nt=2147483647;function q(n){if(n>nt)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,l.prototype),t}function l(n,t,e){if("number"==typeof n){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return U(n)}return dt(n,t,e)}function dt(n,t,e){if("string"==typeof n)return function A(n,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|bt(n,t);let r=q(e);const i=r.write(n,t);return i!==e&&(r=r.slice(0,i)),r}(n,t);if(ArrayBuffer.isView(n))return function N(n){if(p(n,Uint8Array)){const t=new Uint8Array(n);return at(t.buffer,t.byteOffset,t.byteLength)}return O(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(p(n,ArrayBuffer)||n&&p(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(p(n,SharedArrayBuffer)||n&&p(n.buffer,SharedArrayBuffer)))return at(n,t,e);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=n.valueOf&&n.valueOf();if(null!=r&&r!==n)return l.from(r,t,e);const i=function yt(n){if(l.isBuffer(n)){const t=0|it(n.length),e=q(t);return 0===e.length||n.copy(e,0,0,t),e}return void 0!==n.length?"number"!=typeof n.length||h(n.length)?q(0):O(n):"Buffer"===n.type&&Array.isArray(n.data)?O(n.data):void 0}(n);if(i)return i;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return l.from(n[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function rt(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function U(n){return rt(n),q(n<0?0:0|it(n))}function O(n){const t=n.length<0?0:0|it(n.length),e=q(t);for(let r=0;r=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return 0|n}function bt(n,t){if(l.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||p(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const e=n.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===e)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Kt(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return o(n).length;default:if(i)return r?-1:Kt(n).length;t=(""+t).toLowerCase(),i=!0}}function pt(n,t,e){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0)||(e>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return le(this,t,e);case"utf8":case"utf-8":return re(this,t,e);case"ascii":return $t(this,t,e);case"latin1":case"binary":return ae(this,t,e);case"base64":return Ct(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,t,e);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function Rt(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Vt(n,t,e,r,i){if(0===n.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),h(e=+e)&&(e=i?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(i)return-1;e=n.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:Lt(n,t,e,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):Lt(n,[t],e,r,i);throw new TypeError("val must be string, number or Buffer")}function Lt(n,t,e,r,i){let M,c=1,a=n.length,w=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||t.length<2)return-1;c=2,a/=2,w/=2,e/=2}function P(v,T){return 1===c?v[T]:v.readUInt16BE(T*c)}if(i){let v=-1;for(M=e;Ma&&(e=a-w),M=e;M>=0;M--){let v=!0;for(let T=0;Ti&&(r=i):r=i;const c=t.length;let a;for(r>c/2&&(r=c/2),a=0;a>8,i=e%256,c.push(i),c.push(r);return c}(t,n.length-e),n,e,r)}function Ct(n,t,e){return Tt.fromByteArray(0===t&&e===n.length?n:n.slice(t,e))}function re(n,t,e){e=Math.min(n.length,e);const r=[];let i=t;for(;i239?4:c>223?3:c>191?2:1;if(i+w<=e){let P,M,v,T;switch(w){case 1:c<128&&(a=c);break;case 2:P=n[i+1],128==(192&P)&&(T=(31&c)<<6|63&P,T>127&&(a=T));break;case 3:P=n[i+1],M=n[i+2],128==(192&P)&&128==(192&M)&&(T=(15&c)<<12|(63&P)<<6|63&M,T>2047&&(T<55296||T>57343)&&(a=T));break;case 4:P=n[i+1],M=n[i+2],v=n[i+3],128==(192&P)&&128==(192&M)&&128==(192&v)&&(T=(15&c)<<18|(63&P)<<12|(63&M)<<6|63&v,T>65535&&T<1114112&&(a=T))}}null===a?(a=65533,w=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=w}return function ie(n){const t=n.length;if(t<=Bt)return String.fromCharCode.apply(String,n);let e="",r=0;for(;ri.length?(l.isBuffer(a)||(a=l.from(a)),a.copy(i,c)):Uint8Array.prototype.set.call(i,a,c);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,c)}c+=a.length}return i},l.byteLength=bt,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""},et&&(l.prototype[et]=l.prototype.inspect),l.prototype.compare=function(t,e,r,i,c){if(p(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===c&&(c=this.length),e<0||r>t.length||i<0||c>this.length)throw new RangeError("out of range index");if(i>=c&&e>=r)return 0;if(i>=c)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(c>>>=0)-(i>>>=0),w=(r>>>=0)-(e>>>=0);const P=Math.min(a,w),M=this.slice(i,c),v=t.slice(e,r);for(let T=0;T>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return te(this,t,e,r);case"utf8":case"utf-8":return ee(this,t,e,r);case"ascii":case"latin1":case"binary":return ne(this,t,e,r);case"base64":return xt(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Bt=4096;function $t(n,t,e){let r="";e=Math.min(n.length,e);for(let i=t;ir)&&(e=r);let i="";for(let c=t;ce)throw new RangeError("Trying to access beyond buffer length")}function J(n,t,e,r,i,c){if(!l.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tn.length)throw new RangeError("Index out of range")}function Wt(n,t,e,r,i){Jt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,e}function qt(n,t,e,r,i){Jt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e+7]=c,c>>=8,n[e+6]=c,c>>=8,n[e+5]=c,c>>=8,n[e+4]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e+3]=a,a>>=8,n[e+2]=a,a>>=8,n[e+1]=a,a>>=8,n[e]=a,e+8}function Xt(n,t,e,r,i,c){if(e+r>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function zt(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,4),ot.write(n,t,e,r,23,4),e+4}function oe(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,8),ot.write(n,t,e,r,52,8),e+8}l.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||lt(t,e,this.length);let i=this[t],c=1,a=0;for(;++a>>=0,e>>>=0,r||lt(t,e,this.length);let i=this[t+--e],c=1;for(;e>0&&(c*=256);)i+=this[t+--e]*c;return i},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||lt(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||lt(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||lt(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||lt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||lt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=E(function(t){At(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Zt(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,c=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(i)+(BigInt(c)<>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Zt(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],c=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(i)<>>=0,e>>>=0,r||lt(t,e,this.length);let i=this[t],c=1,a=0;for(;++a=c&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||lt(t,e,this.length);let i=e,c=1,a=this[t+--i];for(;i>0&&(c*=256);)a+=this[t+--i]*c;return c*=128,a>=c&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return t>>>=0,e||lt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||lt(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||lt(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||lt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||lt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=E(function(t){At(t>>>=0,"offset");const e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&Zt(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Zt(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<>>=0,e||lt(t,4,this.length),ot.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||lt(t,4,this.length),ot.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||lt(t,8,this.length),ot.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||lt(t,8,this.length),ot.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||J(this,t,e,r,Math.pow(2,8*r)-1,0);let c=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,i||J(this,t,e,r,Math.pow(2,8*r)-1,0);let c=r-1,a=1;for(this[e+c]=255&t;--c>=0&&(a*=256);)this[e+c]=t/a&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=E(function(t,e=0){return Wt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=E(function(t,e=0){return qt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const P=Math.pow(2,8*r-1);J(this,t,e,r,P-1,-P)}let c=0,a=1,w=0;for(this[e]=255&t;++c>0)-w&255;return e+r},l.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const P=Math.pow(2,8*r-1);J(this,t,e,r,P-1,-P)}let c=r-1,a=1,w=0;for(this[e+c]=255&t;--c>=0&&(a*=256);)t<0&&0===w&&0!==this[e+c+1]&&(w=1),this[e+c]=(t/a>>0)-w&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||J(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=E(function(t,e=0){return Wt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=E(function(t,e=0){return qt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,r){return zt(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return zt(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return oe(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return oe(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!i&&0!==i&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(c=e;c=r+4;e-=3)t=`_${n.slice(e-3,e)}${t}`;return`${n.slice(0,e)}${t}`}function Jt(n,t,e,r,i,c){if(n>e||n3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(c+1)}${a}`:`>= -(2${a} ** ${8*(c+1)-1}${a}) and < 2 ** ${8*(c+1)-1}${a}`:`>= ${t}${a} and <= ${e}${a}`,new Dt.ERR_OUT_OF_RANGE("value",w,n)}!function ce(n,t,e){At(t,"offset"),(void 0===n[t]||void 0===n[t+e])&&Zt(t,n.length-(e+1))}(r,i,c)}function At(n,t){if("number"!=typeof n)throw new Dt.ERR_INVALID_ARG_TYPE(t,"number",n)}function Zt(n,t,e){throw Math.floor(n)!==n?(At(n,e),new Dt.ERR_OUT_OF_RANGE(e||"offset","an integer",n)):t<0?new Dt.ERR_BUFFER_OUT_OF_BOUNDS:new Dt.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,n)}Yt("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Yt("ERR_INVALID_ARG_TYPE",function(n,t){return`The "${n}" argument must be of type number. Received type ${typeof t}`},TypeError),Yt("ERR_OUT_OF_RANGE",function(n,t,e){let r=`The value of "${n}" is out of range.`,i=e;return Number.isInteger(e)&&Math.abs(e)>2**32?i=se(String(e)):"bigint"==typeof e&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=se(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const Ht=/[^+/0-9A-Za-z-_]/g;function Kt(n,t){let e;t=t||1/0;const r=n.length;let i=null;const c=[];for(let a=0;a55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&c.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&c.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&c.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;c.push(e)}else if(e<2048){if((t-=2)<0)break;c.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;c.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return c}function o(n){return Tt.toByteArray(function vt(n){if((n=(n=n.split("=")[0]).trim().replace(Ht,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function u(n,t,e,r){let i;for(i=0;i=t.length||i>=n.length);++i)t[i+e]=n[i];return i}function p(n,t){return n instanceof t||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===t.name}function h(n){return n!=n}const y=function(){const n="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const r=16*e;for(let i=0;i<16;++i)t[r+i]=n[e]+n[i]}return t}();function E(n){return typeof BigInt>"u"?x:n}function x(){throw new Error("BigInt not supported")}},2658:(It,_t)=>{_t.read=function(X,L,Tt,ot,et){var nt,W,q=8*et-ot-1,l=(1<>1,rt=-7,ut=Tt?et-1:0,U=Tt?-1:1,A=X[L+ut];for(ut+=U,nt=A&(1<<-rt)-1,A>>=-rt,rt+=q;rt>0;nt=256*nt+X[L+ut],ut+=U,rt-=8);for(W=nt&(1<<-rt)-1,nt>>=-rt,rt+=ot;rt>0;W=256*W+X[L+ut],ut+=U,rt-=8);if(0===nt)nt=1-dt;else{if(nt===l)return W?NaN:1/0*(A?-1:1);W+=Math.pow(2,ot),nt-=dt}return(A?-1:1)*W*Math.pow(2,nt-ot)},_t.write=function(X,L,Tt,ot,et,nt){var W,q,l,dt=8*nt-et-1,rt=(1<>1,U=23===et?Math.pow(2,-24)-Math.pow(2,-77):0,A=ot?0:nt-1,O=ot?1:-1,N=L<0||0===L&&1/L<0?1:0;for(L=Math.abs(L),isNaN(L)||L===1/0?(q=isNaN(L)?1:0,W=rt):(W=Math.floor(Math.log(L)/Math.LN2),L*(l=Math.pow(2,-W))<1&&(W--,l*=2),(L+=W+ut>=1?U/l:U*Math.pow(2,1-ut))*l>=2&&(W++,l/=2),W+ut>=rt?(q=0,W=rt):W+ut>=1?(q=(L*l-1)*Math.pow(2,et),W+=ut):(q=L*Math.pow(2,ut-1)*Math.pow(2,et),W=0));et>=8;X[Tt+A]=255&q,A+=O,q/=256,et-=8);for(W=W<0;X[Tt+A]=255&W,A+=O,W/=256,dt-=8);X[Tt+A-O]|=128*N}},7277:()=>{"use strict";!function(o){const u=o.performance;function p($){u&&u.mark&&u.mark($)}function h($,B){u&&u.measure&&u.measure($,B)}p("Zone");const y=o.__Zone_symbol_prefix||"__zone_symbol__";function E($){return y+$}const x=!0===o[E("forceDuplicateZoneCheck")];if(o.Zone){if(x||"function"!=typeof o.Zone.__symbol__)throw new Error("Zone already loaded.");return o.Zone}let n=(()=>{class ${constructor(s,f){this._parent=s,this._name=f?f.name||"unnamed":"",this._properties=f&&f.properties||{},this._zoneDelegate=new e(this,this._parent&&this._parent._zoneDelegate,f)}static assertZonePatched(){if(o.Promise!==St.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=$.current;for(;s.parent;)s=s.parent;return s}static get current(){return st.zone}static get currentTask(){return Pt}static __load_patch(s,f,S=!1){if(St.hasOwnProperty(s)){if(!S&&x)throw Error("Already loaded patch: "+s)}else if(!o["__Zone_disable_"+s]){const Z="Zone:"+s;p(Z),St[s]=f(o,$,ht),h(Z,Z)}}get parent(){return this._parent}get name(){return this._name}get(s){const f=this.getZoneWith(s);if(f)return f._properties[s]}getZoneWith(s){let f=this;for(;f;){if(f._properties.hasOwnProperty(s))return f;f=f._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,f){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const S=this._zoneDelegate.intercept(this,s,f),Z=this;return function(){return Z.runGuarded(S,this,arguments,f)}}run(s,f,S,Z){st={parent:st,zone:this};try{return this._zoneDelegate.invoke(this,s,f,S,Z)}finally{st=st.parent}}runGuarded(s,f=null,S,Z){st={parent:st,zone:this};try{try{return this._zoneDelegate.invoke(this,s,f,S,Z)}catch(Et){if(this._zoneDelegate.handleError(this,Et))throw Et}}finally{st=st.parent}}runTask(s,f,S){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||mt).name+"; Execution: "+this.name+")");if(s.state===Y&&(s.type===wt||s.type===D))return;const Z=s.state!=R;Z&&s._transitionTo(R,z),s.runCount++;const Et=Pt;Pt=s,st={parent:st,zone:this};try{s.type==D&&s.data&&!s.data.isPeriodic&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,s,f,S)}catch(_){if(this._zoneDelegate.handleError(this,_))throw _}}finally{s.state!==Y&&s.state!==k&&(s.type==wt||s.data&&s.data.isPeriodic?Z&&s._transitionTo(z,R):(s.runCount=0,this._updateTaskCount(s,-1),Z&&s._transitionTo(Y,R,Y))),st=st.parent,Pt=Et}}scheduleTask(s){if(s.zone&&s.zone!==this){let S=this;for(;S;){if(S===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);S=S.parent}}s._transitionTo(ft,Y);const f=[];s._zoneDelegates=f,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(S){throw s._transitionTo(k,ft,Y),this._zoneDelegate.handleError(this,S),S}return s._zoneDelegates===f&&this._updateTaskCount(s,1),s.state==ft&&s._transitionTo(z,ft),s}scheduleMicroTask(s,f,S,Z){return this.scheduleTask(new r(V,s,f,S,Z,void 0))}scheduleMacroTask(s,f,S,Z,Et){return this.scheduleTask(new r(D,s,f,S,Z,Et))}scheduleEventTask(s,f,S,Z,Et){return this.scheduleTask(new r(wt,s,f,S,Z,Et))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||mt).name+"; Execution: "+this.name+")");s._transitionTo(K,z,R);try{this._zoneDelegate.cancelTask(this,s)}catch(f){throw s._transitionTo(k,K),this._zoneDelegate.handleError(this,f),f}return this._updateTaskCount(s,-1),s._transitionTo(Y,K),s.runCount=0,s}_updateTaskCount(s,f){const S=s._zoneDelegates;-1==f&&(s._zoneDelegates=null);for(let Z=0;Z$.hasTask(s,f),onScheduleTask:($,B,s,f)=>$.scheduleTask(s,f),onInvokeTask:($,B,s,f,S,Z)=>$.invokeTask(s,f,S,Z),onCancelTask:($,B,s,f)=>$.cancelTask(s,f)};class e{constructor(B,s,f){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=B,this._parentDelegate=s,this._forkZS=f&&(f&&f.onFork?f:s._forkZS),this._forkDlgt=f&&(f.onFork?s:s._forkDlgt),this._forkCurrZone=f&&(f.onFork?this.zone:s._forkCurrZone),this._interceptZS=f&&(f.onIntercept?f:s._interceptZS),this._interceptDlgt=f&&(f.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=f&&(f.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=f&&(f.onInvoke?f:s._invokeZS),this._invokeDlgt=f&&(f.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=f&&(f.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=f&&(f.onHandleError?f:s._handleErrorZS),this._handleErrorDlgt=f&&(f.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=f&&(f.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=f&&(f.onScheduleTask?f:s._scheduleTaskZS),this._scheduleTaskDlgt=f&&(f.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=f&&(f.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=f&&(f.onInvokeTask?f:s._invokeTaskZS),this._invokeTaskDlgt=f&&(f.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=f&&(f.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=f&&(f.onCancelTask?f:s._cancelTaskZS),this._cancelTaskDlgt=f&&(f.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=f&&(f.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const S=f&&f.onHasTask;(S||s&&s._hasTaskZS)&&(this._hasTaskZS=S?f:t,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=B,f.onScheduleTask||(this._scheduleTaskZS=t,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),f.onInvokeTask||(this._invokeTaskZS=t,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),f.onCancelTask||(this._cancelTaskZS=t,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(B,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,B,s):new n(B,s)}intercept(B,s,f){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,B,s,f):s}invoke(B,s,f,S,Z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,B,s,f,S,Z):s.apply(f,S)}handleError(B,s){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,B,s)}scheduleTask(B,s){let f=s;if(this._scheduleTaskZS)this._hasTaskZS&&f._zoneDelegates.push(this._hasTaskDlgtOwner),f=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,B,s),f||(f=s);else if(s.scheduleFn)s.scheduleFn(s);else{if(s.type!=V)throw new Error("Task is missing scheduleFn.");T(s)}return f}invokeTask(B,s,f,S){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,B,s,f,S):s.callback.apply(f,S)}cancelTask(B,s){let f;if(this._cancelTaskZS)f=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,B,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");f=s.cancelFn(s)}return f}hasTask(B,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,B,s)}catch(f){this.handleError(B,f)}}_updateTaskCount(B,s){const f=this._taskCounts,S=f[B],Z=f[B]=S+s;if(Z<0)throw new Error("More tasks executed then were scheduled.");0!=S&&0!=Z||this.hasTask(this.zone,{microTask:f.microTask>0,macroTask:f.macroTask>0,eventTask:f.eventTask>0,change:B})}}class r{constructor(B,s,f,S,Z,Et){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=B,this.source=s,this.data=S,this.scheduleFn=Z,this.cancelFn=Et,!f)throw new Error("callback is not defined");this.callback=f;const _=this;this.invoke=B===wt&&S&&S.useG?r.invokeTask:function(){return r.invokeTask.call(o,_,this,arguments)}}static invokeTask(B,s,f){B||(B=this),kt++;try{return B.runCount++,B.zone.runTask(B,s,f)}finally{1==kt&&I(),kt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,ft)}_transitionTo(B,s,f){if(this._state!==s&&this._state!==f)throw new Error(`${this.type} '${this.source}': can not transition to '${B}', expecting state '${s}'${f?" or '"+f+"'":""}, was '${this._state}'.`);this._state=B,B==Y&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const i=E("setTimeout"),c=E("Promise"),a=E("then");let M,w=[],P=!1;function v($){if(M||o[c]&&(M=o[c].resolve(0)),M){let B=M[a];B||(B=M.then),B.call(M,$)}else o[i]($,0)}function T($){0===kt&&0===w.length&&v(I),$&&w.push($)}function I(){if(!P){for(P=!0;w.length;){const $=w;w=[];for(let B=0;B<$.length;B++){const s=$[B];try{s.zone.runTask(s,null,null)}catch(f){ht.onUnhandledError(f)}}}ht.microtaskDrainDone(),P=!1}}const mt={name:"NO ZONE"},Y="notScheduled",ft="scheduling",z="scheduled",R="running",K="canceling",k="unknown",V="microTask",D="macroTask",wt="eventTask",St={},ht={symbol:E,currentZoneFrame:()=>st,onUnhandledError:ct,microtaskDrainDone:ct,scheduleMicroTask:T,showUncaughtError:()=>!n[E("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ct,patchMethod:()=>ct,bindArguments:()=>[],patchThen:()=>ct,patchMacroTask:()=>ct,patchEventPrototype:()=>ct,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ct,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ct,wrapWithCurrentZone:()=>ct,filterProperties:()=>[],attachOriginToPatched:()=>ct,_redefineProperty:()=>ct,patchCallbacks:()=>ct,nativeScheduleMicroTask:v};let st={parent:null,zone:new n(null,null)},Pt=null,kt=0;function ct(){}h("Zone","Zone"),o.Zone=n}(typeof window<"u"&&window||typeof self<"u"&&self||global);const It=Object.getOwnPropertyDescriptor,_t=Object.defineProperty,X=Object.getPrototypeOf,L=Object.create,Tt=Array.prototype.slice,ot="addEventListener",et="removeEventListener",nt=Zone.__symbol__(ot),W=Zone.__symbol__(et),q="true",l="false",dt=Zone.__symbol__("");function rt(o,u){return Zone.current.wrap(o,u)}function ut(o,u,p,h,y){return Zone.current.scheduleMacroTask(o,u,p,h,y)}const U=Zone.__symbol__,A=typeof window<"u",O=A?window:void 0,N=A&&O||"object"==typeof self&&self||global,at="removeAttribute";function yt(o,u){for(let p=o.length-1;p>=0;p--)"function"==typeof o[p]&&(o[p]=rt(o[p],u+"_"+p));return o}function gt(o){return!o||!1!==o.writable&&!("function"==typeof o.get&&typeof o.set>"u")}const bt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,pt=!("nw"in N)&&typeof N.process<"u"&&"[object process]"==={}.toString.call(N.process),Rt=!pt&&!bt&&!(!A||!O.HTMLElement),Vt=typeof N.process<"u"&&"[object process]"==={}.toString.call(N.process)&&!bt&&!(!A||!O.HTMLElement),Lt={},te=function(o){if(!(o=o||N.event))return;let u=Lt[o.type];u||(u=Lt[o.type]=U("ON_PROPERTY"+o.type));const p=this||o.target||N,h=p[u];let y;return Rt&&p===O&&"error"===o.type?(y=h&&h.call(this,o.message,o.filename,o.lineno,o.colno,o.error),!0===y&&o.preventDefault()):(y=h&&h.apply(this,arguments),null!=y&&!y&&o.preventDefault()),y};function ee(o,u,p){let h=It(o,u);if(!h&&p&&It(p,u)&&(h={enumerable:!0,configurable:!0}),!h||!h.configurable)return;const y=U("on"+u+"patched");if(o.hasOwnProperty(y)&&o[y])return;delete h.writable,delete h.value;const E=h.get,x=h.set,n=u.slice(2);let t=Lt[n];t||(t=Lt[n]=U("ON_PROPERTY"+n)),h.set=function(e){let r=this;!r&&o===N&&(r=N),r&&("function"==typeof r[t]&&r.removeEventListener(n,te),x&&x.call(r,null),r[t]=e,"function"==typeof e&&r.addEventListener(n,te,!1))},h.get=function(){let e=this;if(!e&&o===N&&(e=N),!e)return null;const r=e[t];if(r)return r;if(E){let i=E.call(this);if(i)return h.set.call(this,i),"function"==typeof e[at]&&e.removeAttribute(u),i}return null},_t(o,u,h),o[y]=!0}function ne(o,u,p){if(u)for(let h=0;hfunction(x,n){const t=p(x,n);return t.cbIdx>=0&&"function"==typeof n[t.cbIdx]?ut(t.name,n[t.cbIdx],t,y):E.apply(x,n)})}function Bt(o,u){o[U("OriginalDelegate")]=u}let ie=!1,$t=!1;function le(){if(ie)return $t;ie=!0;try{const o=O.navigator.userAgent;(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/")||-1!==o.indexOf("Edge/"))&&($t=!0)}catch{}return $t}Zone.__load_patch("ZoneAwarePromise",(o,u,p)=>{const h=Object.getOwnPropertyDescriptor,y=Object.defineProperty,x=p.symbol,n=[],t=!0===o[x("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],e=x("Promise"),r=x("then"),i="__creationTrace__";p.onUnhandledError=_=>{if(p.showUncaughtError()){const g=_&&_.rejection;g?console.error("Unhandled Promise rejection:",g instanceof Error?g.message:g,"; Zone:",_.zone.name,"; Task:",_.task&&_.task.source,"; Value:",g,g instanceof Error?g.stack:void 0):console.error(_)}},p.microtaskDrainDone=()=>{for(;n.length;){const _=n.shift();try{_.zone.runGuarded(()=>{throw _.throwOriginal?_.rejection:_})}catch(g){a(g)}}};const c=x("unhandledPromiseRejectionHandler");function a(_){p.onUnhandledError(_);try{const g=u[c];"function"==typeof g&&g.call(this,_)}catch{}}function w(_){return _&&_.then}function P(_){return _}function M(_){return s.reject(_)}const v=x("state"),T=x("value"),I=x("finally"),mt=x("parentPromiseValue"),Y=x("parentPromiseState"),ft="Promise.then",z=null,R=!0,K=!1,k=0;function V(_,g){return d=>{try{ht(_,g,d)}catch(m){ht(_,!1,m)}}}const D=function(){let _=!1;return function(d){return function(){_||(_=!0,d.apply(null,arguments))}}},wt="Promise resolved with itself",St=x("currentTaskTrace");function ht(_,g,d){const m=D();if(_===d)throw new TypeError(wt);if(_[v]===z){let C=null;try{("object"==typeof d||"function"==typeof d)&&(C=d&&d.then)}catch(F){return m(()=>{ht(_,!1,F)})(),_}if(g!==K&&d instanceof s&&d.hasOwnProperty(v)&&d.hasOwnProperty(T)&&d[v]!==z)Pt(d),ht(_,d[v],d[T]);else if(g!==K&&"function"==typeof C)try{C.call(d,m(V(_,g)),m(V(_,!1)))}catch(F){m(()=>{ht(_,!1,F)})()}else{_[v]=g;const F=_[T];if(_[T]=d,_[I]===I&&g===R&&(_[v]=_[Y],_[T]=_[mt]),g===K&&d instanceof Error){const b=u.currentTask&&u.currentTask.data&&u.currentTask.data[i];b&&y(d,St,{configurable:!0,enumerable:!1,writable:!0,value:b})}for(let b=0;b{try{const j=_[T],H=!!d&&I===d[I];H&&(d[mt]=j,d[Y]=F);const G=g.run(b,void 0,H&&b!==M&&b!==P?[]:[j]);ht(d,!0,G)}catch(j){ht(d,!1,j)}},d)}const $=function(){},B=o.AggregateError;class s{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(g){return ht(new this(null),R,g)}static reject(g){return ht(new this(null),K,g)}static any(g){if(!g||"function"!=typeof g[Symbol.iterator])return Promise.reject(new B([],"All promises were rejected"));const d=[];let m=0;try{for(let b of g)m++,d.push(s.resolve(b))}catch{return Promise.reject(new B([],"All promises were rejected"))}if(0===m)return Promise.reject(new B([],"All promises were rejected"));let C=!1;const F=[];return new s((b,j)=>{for(let H=0;H{C||(C=!0,b(G))},G=>{F.push(G),m--,0===m&&(C=!0,j(new B(F,"All promises were rejected")))})})}static race(g){let d,m,C=new this((j,H)=>{d=j,m=H});function F(j){d(j)}function b(j){m(j)}for(let j of g)w(j)||(j=this.resolve(j)),j.then(F,b);return C}static all(g){return s.allWithCallback(g)}static allSettled(g){return(this&&this.prototype instanceof s?this:s).allWithCallback(g,{thenCallback:m=>({status:"fulfilled",value:m}),errorCallback:m=>({status:"rejected",reason:m})})}static allWithCallback(g,d){let m,C,F=new this((G,Q)=>{m=G,C=Q}),b=2,j=0;const H=[];for(let G of g){w(G)||(G=this.resolve(G));const Q=j;try{G.then(tt=>{H[Q]=d?d.thenCallback(tt):tt,b--,0===b&&m(H)},tt=>{d?(H[Q]=d.errorCallback(tt),b--,0===b&&m(H)):C(tt)})}catch(tt){C(tt)}b++,j++}return b-=2,0===b&&m(H),F}constructor(g){const d=this;if(!(d instanceof s))throw new Error("Must be an instanceof Promise.");d[v]=z,d[T]=[];try{const m=D();g&&g(m(V(d,R)),m(V(d,K)))}catch(m){ht(d,!1,m)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return s}then(g,d){var m;let C=null===(m=this.constructor)||void 0===m?void 0:m[Symbol.species];(!C||"function"!=typeof C)&&(C=this.constructor||s);const F=new C($),b=u.current;return this[v]==z?this[T].push(b,F,g,d):kt(this,b,F,g,d),F}catch(g){return this.then(null,g)}finally(g){var d;let m=null===(d=this.constructor)||void 0===d?void 0:d[Symbol.species];(!m||"function"!=typeof m)&&(m=s);const C=new m($);C[I]=I;const F=u.current;return this[v]==z?this[T].push(F,C,g,g):kt(this,F,C,g,g),C}}s.resolve=s.resolve,s.reject=s.reject,s.race=s.race,s.all=s.all;const f=o[e]=o.Promise;o.Promise=s;const S=x("thenPatched");function Z(_){const g=_.prototype,d=h(g,"then");if(d&&(!1===d.writable||!d.configurable))return;const m=g.then;g[r]=m,_.prototype.then=function(C,F){return new s((j,H)=>{m.call(this,j,H)}).then(C,F)},_[S]=!0}return p.patchThen=Z,f&&(Z(f),Ct(o,"fetch",_=>function Et(_){return function(g,d){let m=_.apply(g,d);if(m instanceof s)return m;let C=m.constructor;return C[S]||Z(C),m}}(_))),Promise[u.__symbol__("uncaughtPromiseErrors")]=n,s}),Zone.__load_patch("toString",o=>{const u=Function.prototype.toString,p=U("OriginalDelegate"),h=U("Promise"),y=U("Error"),E=function(){if("function"==typeof this){const e=this[p];if(e)return"function"==typeof e?u.call(e):Object.prototype.toString.call(e);if(this===Promise){const r=o[h];if(r)return u.call(r)}if(this===Error){const r=o[y];if(r)return u.call(r)}}return u.call(this)};E[p]=u,Function.prototype.toString=E;const x=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":x.call(this)}});let Nt=!1;if(typeof window<"u")try{const o=Object.defineProperty({},"passive",{get:function(){Nt=!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{Nt=!1}const lt={useG:!0},J={},Wt={},qt=new RegExp("^"+dt+"(\\w+)(true|false)$"),Xt=U("propagationStopped");function zt(o,u){const p=(u?u(o):o)+l,h=(u?u(o):o)+q,y=dt+p,E=dt+h;J[o]={},J[o][l]=y,J[o][q]=E}function oe(o,u,p,h){const y=h&&h.add||ot,E=h&&h.rm||et,x=h&&h.listeners||"eventListeners",n=h&&h.rmAll||"removeAllListeners",t=U(y),e="."+y+":",r="prependListener",i="."+r+":",c=function(T,I,mt){if(T.isRemoved)return;const Y=T.callback;let ft;"object"==typeof Y&&Y.handleEvent&&(T.callback=R=>Y.handleEvent(R),T.originalDelegate=Y);try{T.invoke(T,I,[mt])}catch(R){ft=R}const z=T.options;return z&&"object"==typeof z&&z.once&&I[E].call(I,mt.type,T.originalDelegate?T.originalDelegate:T.callback,z),ft};function a(T,I,mt){if(!(I=I||o.event))return;const Y=T||I.target||o,ft=Y[J[I.type][mt?q:l]];if(ft){const z=[];if(1===ft.length){const R=c(ft[0],Y,I);R&&z.push(R)}else{const R=ft.slice();for(let K=0;K{throw K})}}}const w=function(T){return a(this,T,!1)},P=function(T){return a(this,T,!0)};function M(T,I){if(!T)return!1;let mt=!0;I&&void 0!==I.useG&&(mt=I.useG);const Y=I&&I.vh;let ft=!0;I&&void 0!==I.chkDup&&(ft=I.chkDup);let z=!1;I&&void 0!==I.rt&&(z=I.rt);let R=T;for(;R&&!R.hasOwnProperty(y);)R=X(R);if(!R&&T[y]&&(R=T),!R||R[t])return!1;const K=I&&I.eventNameToString,k={},V=R[t]=R[y],D=R[U(E)]=R[E],wt=R[U(x)]=R[x],St=R[U(n)]=R[n];let ht;I&&I.prepend&&(ht=R[U(I.prepend)]=R[I.prepend]);const s=mt?function(d){if(!k.isExisting)return V.call(k.target,k.eventName,k.capture?P:w,k.options)}:function(d){return V.call(k.target,k.eventName,d.invoke,k.options)},f=mt?function(d){if(!d.isRemoved){const m=J[d.eventName];let C;m&&(C=m[d.capture?q:l]);const F=C&&d.target[C];if(F)for(let b=0;bfunction(y,E){y[Xt]=!0,h&&h.apply(y,E)})}function se(o,u,p,h,y){const E=Zone.__symbol__(h);if(u[E])return;const x=u[E]=u[h];u[h]=function(n,t,e){return t&&t.prototype&&y.forEach(function(r){const i=`${p}.${h}::`+r,c=t.prototype;try{if(c.hasOwnProperty(r)){const a=o.ObjectGetOwnPropertyDescriptor(c,r);a&&a.value?(a.value=o.wrapWithCurrentZone(a.value,i),o._redefineProperty(t.prototype,r,a)):c[r]&&(c[r]=o.wrapWithCurrentZone(c[r],i))}else c[r]&&(c[r]=o.wrapWithCurrentZone(c[r],i))}catch{}}),x.call(u,n,t,e)},o.attachOriginToPatched(u[h],x)}function ce(o,u,p){if(!p||0===p.length)return u;const h=p.filter(E=>E.target===o);if(!h||0===h.length)return u;const y=h[0].ignoreProperties;return u.filter(E=>-1===y.indexOf(E))}function Jt(o,u,p,h){o&&ne(o,ce(o,u,p),h)}function At(o){return Object.getOwnPropertyNames(o).filter(u=>u.startsWith("on")&&u.length>2).map(u=>u.substring(2))}Zone.__load_patch("util",(o,u,p)=>{const h=At(o);p.patchOnProperties=ne,p.patchMethod=Ct,p.bindArguments=yt,p.patchMacroTask=re;const y=u.__symbol__("BLACK_LISTED_EVENTS"),E=u.__symbol__("UNPATCHED_EVENTS");o[E]&&(o[y]=o[E]),o[y]&&(u[y]=u[E]=o[y]),p.patchEventPrototype=Yt,p.patchEventTarget=oe,p.isIEOrEdge=le,p.ObjectDefineProperty=_t,p.ObjectGetOwnPropertyDescriptor=It,p.ObjectCreate=L,p.ArraySlice=Tt,p.patchClass=Mt,p.wrapWithCurrentZone=rt,p.filterProperties=ce,p.attachOriginToPatched=Bt,p._redefineProperty=Object.defineProperty,p.patchCallbacks=se,p.getGlobalObjects=()=>({globalSources:Wt,zoneSymbolEventNames:J,eventNames:h,isBrowser:Rt,isMix:Vt,isNode:pt,TRUE_STR:q,FALSE_STR:l,ZONE_SYMBOL_PREFIX:dt,ADD_EVENT_LISTENER_STR:ot,REMOVE_EVENT_LISTENER_STR:et})});const Ht=U("zoneTask");function vt(o,u,p,h){let y=null,E=null;p+=h;const x={};function n(e){const r=e.data;return r.args[0]=function(){return e.invoke.apply(this,arguments)},r.handleId=y.apply(o,r.args),e}function t(e){return E.call(o,e.data.handleId)}y=Ct(o,u+=h,e=>function(r,i){if("function"==typeof i[0]){const c={isPeriodic:"Interval"===h,delay:"Timeout"===h||"Interval"===h?i[1]||0:void 0,args:i},a=i[0];i[0]=function(){try{return a.apply(this,arguments)}finally{c.isPeriodic||("number"==typeof c.handleId?delete x[c.handleId]:c.handleId&&(c.handleId[Ht]=null))}};const w=ut(u,i[0],c,n,t);if(!w)return w;const P=w.data.handleId;return"number"==typeof P?x[P]=w:P&&(P[Ht]=w),P&&P.ref&&P.unref&&"function"==typeof P.ref&&"function"==typeof P.unref&&(w.ref=P.ref.bind(P),w.unref=P.unref.bind(P)),"number"==typeof P||P?P:w}return e.apply(o,i)}),E=Ct(o,p,e=>function(r,i){const c=i[0];let a;"number"==typeof c?a=x[c]:(a=c&&c[Ht],a||(a=c)),a&&"string"==typeof a.type?"notScheduled"!==a.state&&(a.cancelFn&&a.data.isPeriodic||0===a.runCount)&&("number"==typeof c?delete x[c]:c&&(c[Ht]=null),a.zone.cancelTask(a)):e.apply(o,i)})}Zone.__load_patch("legacy",o=>{const u=o[Zone.__symbol__("legacyPatch")];u&&u()}),Zone.__load_patch("queueMicrotask",(o,u,p)=>{p.patchMethod(o,"queueMicrotask",h=>function(y,E){u.current.scheduleMicroTask("queueMicrotask",E[0])})}),Zone.__load_patch("timers",o=>{const u="set",p="clear";vt(o,u,p,"Timeout"),vt(o,u,p,"Interval"),vt(o,u,p,"Immediate")}),Zone.__load_patch("requestAnimationFrame",o=>{vt(o,"request","cancel","AnimationFrame"),vt(o,"mozRequest","mozCancel","AnimationFrame"),vt(o,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(o,u)=>{const p=["alert","prompt","confirm"];for(let h=0;hfunction(t,e){return u.current.run(E,o,e,n)})}),Zone.__load_patch("EventTarget",(o,u,p)=>{(function he(o,u){u.patchEventPrototype(o,u)})(o,p),function fe(o,u){if(Zone[u.symbol("patchEventTarget")])return;const{eventNames:p,zoneSymbolEventNames:h,TRUE_STR:y,FALSE_STR:E,ZONE_SYMBOL_PREFIX:x}=u.getGlobalObjects();for(let t=0;t{Mt("MutationObserver"),Mt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(o,u,p)=>{Mt("IntersectionObserver")}),Zone.__load_patch("FileReader",(o,u,p)=>{Mt("FileReader")}),Zone.__load_patch("on_property",(o,u,p)=>{!function Zt(o,u){if(pt&&!Vt||Zone[o.symbol("patchEvents")])return;const p=u.__Zone_ignore_on_properties;let h=[];if(Rt){const y=window;h=h.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const E=function ae(){try{const o=O.navigator.userAgent;if(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:y,ignoreProperties:["error"]}]:[];Jt(y,At(y),p&&p.concat(E),X(y))}h=h.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let y=0;y{!function Kt(o,u){const{isBrowser:p,isMix:h}=u.getGlobalObjects();(p||h)&&o.customElements&&"customElements"in o&&u.patchCallbacks(u,o.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(o,p)}),Zone.__load_patch("XHR",(o,u)=>{!function t(e){const r=e.XMLHttpRequest;if(!r)return;const i=r.prototype;let a=i[nt],w=i[W];if(!a){const k=e.XMLHttpRequestEventTarget;if(k){const V=k.prototype;a=V[nt],w=V[W]}}const P="readystatechange",M="scheduled";function v(k){const V=k.data,D=V.target;D[E]=!1,D[n]=!1;const wt=D[y];a||(a=D[nt],w=D[W]),wt&&w.call(D,P,wt);const St=D[y]=()=>{if(D.readyState===D.DONE)if(!V.aborted&&D[E]&&k.state===M){const st=D[u.__symbol__("loadfalse")];if(0!==D.status&&st&&st.length>0){const Pt=k.invoke;k.invoke=function(){const kt=D[u.__symbol__("loadfalse")];for(let ct=0;ctfunction(k,V){return k[h]=0==V[2],k[x]=V[1],mt.apply(k,V)}),ft=U("fetchTaskAborting"),z=U("fetchTaskScheduling"),R=Ct(i,"send",()=>function(k,V){if(!0===u.current[z]||k[h])return R.apply(k,V);{const D={target:k,url:k[x],isPeriodic:!1,args:V,aborted:!1},wt=ut("XMLHttpRequest.send",T,D,v,I);k&&!0===k[n]&&!D.aborted&&wt.state===M&&wt.invoke()}}),K=Ct(i,"abort",()=>function(k,V){const D=function c(k){return k[p]}(k);if(D&&"string"==typeof D.type){if(null==D.cancelFn||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(!0===u.current[ft])return K.apply(k,V)})}(o);const p=U("xhrTask"),h=U("xhrSync"),y=U("xhrListener"),E=U("xhrScheduled"),x=U("xhrURL"),n=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",o=>{o.navigator&&o.navigator.geolocation&&function it(o,u){const p=o.constructor.name;for(let h=0;h{const t=function(){return n.apply(this,yt(arguments,p+"."+y))};return Bt(t,n),t})(E)}}}(o.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(o,u)=>{function p(h){return function(y){Dt(o,h).forEach(x=>{const n=o.PromiseRejectionEvent;if(n){const t=new n(h,{promise:y.promise,reason:y.rejection});x.invoke(t)}})}}o.PromiseRejectionEvent&&(u[U("unhandledPromiseRejectionHandler")]=p("unhandledrejection"),u[U("rejectionHandledHandler")]=p("rejectionhandled"))})},7435:(It,_t,X)=>{"use strict";X(7277),window.global=window,global.Buffer=global.Buffer||X(3875).lW}},It=>{It(It.s=7435)}]); \ No newline at end of file diff --git a/docs/polyfills.c4926320fcde5e61.js b/docs/polyfills.c4926320fcde5e61.js deleted file mode 100644 index 4738e971..00000000 --- a/docs/polyfills.c4926320fcde5e61.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdapp=self.webpackChunkdapp||[]).push([[429],{7435:(Xe,Te,K)=>{"use strict";K(8583),window.global=window,global.Buffer=global.Buffer||K(3172).lW},5343:(Xe,Te)=>{"use strict";Te.byteLength=function ie(_){var L=X(_),j=L[1];return 3*(L[0]+j)/4-j},Te.toByteArray=function ye(_){var L,Ie,Y=X(_),j=Y[0],Ce=Y[1],fe=new Ne(function u(_,L,Y){return 3*(L+Y)/4-Y}(0,j,Ce)),be=0,Ze=Ce>0?j-4:j;for(Ie=0;Ie>16&255,fe[be++]=L>>8&255,fe[be++]=255&L;return 2===Ce&&(L=F[_.charCodeAt(Ie)]<<2|F[_.charCodeAt(Ie+1)]>>4,fe[be++]=255&L),1===Ce&&(L=F[_.charCodeAt(Ie)]<<10|F[_.charCodeAt(Ie+1)]<<4|F[_.charCodeAt(Ie+2)]>>2,fe[be++]=L>>8&255,fe[be++]=255&L),fe},Te.fromByteArray=function Re(_){for(var L,Y=_.length,j=Y%3,Ce=[],be=0,Ze=Y-j;beZe?Ze:be+16383));return 1===j?Ce.push(K[(L=_[Y-1])>>2]+K[L<<4&63]+"=="):2===j&&Ce.push(K[(L=(_[Y-2]<<8)+_[Y-1])>>10]+K[L>>4&63]+K[L<<2&63]+"="),Ce.join("")};for(var K=[],F=[],Ne=typeof Uint8Array<"u"?Uint8Array:Array,ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=0,ae=ge.length;ce0)throw new Error("Invalid string. Length must be a multiple of 4");var Y=_.indexOf("=");return-1===Y&&(Y=L),[Y,Y===L?0:4-Y%4]}function oe(_){return K[_>>18&63]+K[_>>12&63]+K[_>>6&63]+K[63&_]}function Ee(_,L,Y){for(var Ce=[],fe=L;fe{"use strict";const Ne=K(5343),ge=K(8461),ce="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Te.lW=u,Te.h2=50;const ae=2147483647;function ie(n){if(n>ae)throw new RangeError('The value "'+n+'" is invalid for option "size"');const e=new Uint8Array(n);return Object.setPrototypeOf(e,u.prototype),e}function u(n,e,t){if("number"==typeof n){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return Re(n)}return ye(n,e,t)}function ye(n,e,t){if("string"==typeof n)return function _(n,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=0|Ze(n,e);let r=ie(t);const o=r.write(n,e);return o!==t&&(r=r.slice(0,o)),r}(n,e);if(ArrayBuffer.isView(n))return function Y(n){if(Fe(n,Uint8Array)){const e=new Uint8Array(n);return j(e.buffer,e.byteOffset,e.byteLength)}return L(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(Fe(n,ArrayBuffer)||n&&Fe(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fe(n,SharedArrayBuffer)||n&&Fe(n.buffer,SharedArrayBuffer)))return j(n,e,t);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=n.valueOf&&n.valueOf();if(null!=r&&r!==n)return u.from(r,e,t);const o=function Ce(n){if(u.isBuffer(n)){const e=0|fe(n.length),t=ie(e);return 0===t.length||n.copy(t,0,0,e),t}return void 0!==n.length?"number"!=typeof n.length||rt(n.length)?ie(0):L(n):"Buffer"===n.type&&Array.isArray(n.data)?L(n.data):void 0}(n);if(o)return o;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return u.from(n[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function oe(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Re(n){return oe(n),ie(n<0?0:0|fe(n))}function L(n){const e=n.length<0?0:0|fe(n.length),t=ie(e);for(let r=0;r=ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae.toString(16)+" bytes");return 0|n}function Ze(n,e){if(u.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||Fe(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const t=n.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===t)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ft(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return wt(n).length;default:if(o)return r?-1:ft(n).length;e=(""+e).toLowerCase(),o=!0}}function Ie(n,e,t){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===t||t>this.length)&&(t=this.length),t<=0)||(t>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ot(this,e,t);case"utf8":case"utf-8":return $e(this,e,t);case"ascii":return Le(this,e,t);case"latin1":case"binary":return mt(this,e,t);case"base64":return Se(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function je(n,e,t){const r=n[e];n[e]=n[t],n[t]=r}function Ye(n,e,t,r,o){if(0===n.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),rt(t=+t)&&(t=o?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(o)return-1;t=n.length-1}else if(t<0){if(!o)return-1;t=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:Qe(n,e,t,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(n,e,t):Uint8Array.prototype.lastIndexOf.call(n,e,t):Qe(n,[e],t,r,o);throw new TypeError("val must be string, number or Buffer")}function Qe(n,e,t,r,o){let se,f=1,d=n.length,N=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||e.length<2)return-1;f=2,d/=2,N/=2,t/=2}function ue(le,i){return 1===f?le[i]:le.readUInt16BE(i*f)}if(o){let le=-1;for(se=t;sed&&(t=d-N),se=t;se>=0;se--){let le=!0;for(let i=0;io&&(r=o):r=o;const f=e.length;let d;for(r>f/2&&(r=f/2),d=0;d>8,o=t%256,f.push(o),f.push(r);return f}(e,n.length-t),n,t,r)}function Se(n,e,t){return Ne.fromByteArray(0===e&&t===n.length?n:n.slice(e,t))}function $e(n,e,t){t=Math.min(n.length,t);const r=[];let o=e;for(;o239?4:f>223?3:f>191?2:1;if(o+N<=t){let ue,se,le,i;switch(N){case 1:f<128&&(d=f);break;case 2:ue=n[o+1],128==(192&ue)&&(i=(31&f)<<6|63&ue,i>127&&(d=i));break;case 3:ue=n[o+1],se=n[o+2],128==(192&ue)&&128==(192&se)&&(i=(15&f)<<12|(63&ue)<<6|63&se,i>2047&&(i<55296||i>57343)&&(d=i));break;case 4:ue=n[o+1],se=n[o+2],le=n[o+3],128==(192&ue)&&128==(192&se)&&128==(192&le)&&(i=(15&f)<<18|(63&ue)<<12|(63&se)<<6|63&le,i>65535&&i<1114112&&(d=i))}}null===d?(d=65533,N=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),o+=N}return function kt(n){const e=n.length;if(e<=4096)return String.fromCharCode.apply(String,n);let t="",r=0;for(;rr)&&(t=r);let o="";for(let f=e;ft)throw new RangeError("Trying to access beyond buffer length")}function me(n,e,t,r,o,f){if(!u.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||en.length)throw new RangeError("Index out of range")}function gt(n,e,t,r,o){_t(e,r,o,n,t,7);let f=Number(e&BigInt(4294967295));n[t++]=f,f>>=8,n[t++]=f,f>>=8,n[t++]=f,f>>=8,n[t++]=f;let d=Number(e>>BigInt(32)&BigInt(4294967295));return n[t++]=d,d>>=8,n[t++]=d,d>>=8,n[t++]=d,d>>=8,n[t++]=d,t}function ve(n,e,t,r,o){_t(e,r,o,n,t,7);let f=Number(e&BigInt(4294967295));n[t+7]=f,f>>=8,n[t+6]=f,f>>=8,n[t+5]=f,f>>=8,n[t+4]=f;let d=Number(e>>BigInt(32)&BigInt(4294967295));return n[t+3]=d,d>>=8,n[t+2]=d,d>>=8,n[t+1]=d,d>>=8,n[t]=d,t+8}function st(n,e,t,r,o,f){if(t+r>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ct(n,e,t,r,o){return e=+e,t>>>=0,o||st(n,0,t,4),ge.write(n,e,t,r,23,4),t+4}function tt(n,e,t,r,o){return e=+e,t>>>=0,o||st(n,0,t,8),ge.write(n,e,t,r,52,8),t+8}!(u.TYPED_ARRAY_SUPPORT=function X(){try{const n=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(n,e),42===n.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(n,e,t){return ye(n,e,t)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(n,e,t){return function Ee(n,e,t){return oe(n),n<=0?ie(n):void 0!==e?"string"==typeof t?ie(n).fill(e,t):ie(n).fill(e):ie(n)}(n,e,t)},u.allocUnsafe=function(n){return Re(n)},u.allocUnsafeSlow=function(n){return Re(n)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Fe(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Fe(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,o=t.length;for(let f=0,d=Math.min(r,o);fo.length?(u.isBuffer(d)||(d=u.from(d)),d.copy(o,f)):Uint8Array.prototype.set.call(o,d,f);else{if(!u.isBuffer(d))throw new TypeError('"list" argument must be an Array of Buffers');d.copy(o,f)}f+=d.length}return o},u.byteLength=Ze,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},ce&&(u.prototype[ce]=u.prototype.inspect),u.prototype.compare=function(e,t,r,o,f){if(Fe(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===f&&(f=this.length),t<0||r>e.length||o<0||f>this.length)throw new RangeError("out of range index");if(o>=f&&t>=r)return 0;if(o>=f)return-1;if(t>=r)return 1;if(this===e)return 0;let d=(f>>>=0)-(o>>>=0),N=(r>>>=0)-(t>>>=0);const ue=Math.min(d,N),se=this.slice(o,f),le=e.slice(t,r);for(let i=0;i>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}const f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let d=!1;for(;;)switch(o){case"hex":return pt(this,e,t,r);case"utf8":case"utf-8":return et(this,e,t,r);case"ascii":case"latin1":case"binary":return dt(this,e,t,r);case"base64":return yt(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,e,t,r);default:if(d)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),d=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||_e(e,t,this.length);let o=this[e],f=1,d=0;for(;++d>>=0,t>>>=0,r||_e(e,t,this.length);let o=this[e+--t],f=1;for(;t>0&&(f*=256);)o+=this[e+--t]*f;return o},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||_e(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_e(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_e(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_e(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_e(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Ue(function(e){We(e>>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Je(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,f=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(o)+(BigInt(f)<>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Je(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],f=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(o)<>>=0,t>>>=0,r||_e(e,t,this.length);let o=this[e],f=1,d=0;for(;++d=f&&(o-=Math.pow(2,8*t)),o},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_e(e,t,this.length);let o=t,f=1,d=this[e+--o];for(;o>0&&(f*=256);)d+=this[e+--o]*f;return f*=128,d>=f&&(d-=Math.pow(2,8*t)),d},u.prototype.readInt8=function(e,t){return e>>>=0,t||_e(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||_e(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||_e(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||_e(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||_e(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Ue(function(e){We(e>>>=0,"offset");const t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Je(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Je(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<>>=0,t||_e(e,4,this.length),ge.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||_e(e,4,this.length),ge.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_e(e,8,this.length),ge.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_e(e,8,this.length),ge.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,o){e=+e,t>>>=0,r>>>=0,o||me(this,e,t,r,Math.pow(2,8*r)-1,0);let f=1,d=0;for(this[t]=255&e;++d>>=0,r>>>=0,o||me(this,e,t,r,Math.pow(2,8*r)-1,0);let f=r-1,d=1;for(this[t+f]=255&e;--f>=0&&(d*=256);)this[t+f]=e/d&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Ue(function(e,t=0){return gt(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ue(function(e,t=0){return ve(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const ue=Math.pow(2,8*r-1);me(this,e,t,r,ue-1,-ue)}let f=0,d=1,N=0;for(this[t]=255&e;++f>0)-N&255;return t+r},u.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const ue=Math.pow(2,8*r-1);me(this,e,t,r,ue-1,-ue)}let f=r-1,d=1,N=0;for(this[t+f]=255&e;--f>=0&&(d*=256);)e<0&&0===N&&0!==this[t+f+1]&&(N=1),this[t+f]=(e/d>>0)-N&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||me(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Ue(function(e,t=0){return gt(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ue(function(e,t=0){return ve(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return ct(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return ct(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return tt(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return tt(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,o){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!o&&0!==o&&(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(f=t;f=r+4;t-=3)e=`_${n.slice(t-3,t)}${e}`;return`${n.slice(0,t)}${e}`}function _t(n,e,t,r,o,f){if(n>t||n3?0===e||e===BigInt(0)?`>= 0${d} and < 2${d} ** ${8*(f+1)}${d}`:`>= -(2${d} ** ${8*(f+1)-1}${d}) and < 2 ** ${8*(f+1)-1}${d}`:`>= ${e}${d} and <= ${t}${d}`,new Ge.ERR_OUT_OF_RANGE("value",N,n)}!function bt(n,e,t){We(e,"offset"),(void 0===n[e]||void 0===n[e+t])&&Je(e,n.length-(t+1))}(r,o,f)}function We(n,e){if("number"!=typeof n)throw new Ge.ERR_INVALID_ARG_TYPE(e,"number",n)}function Je(n,e,t){throw Math.floor(n)!==n?(We(n,t),new Ge.ERR_OUT_OF_RANGE(t||"offset","an integer",n)):e<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,n)}at("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(n,e){return`The "${n}" argument must be of type number. Received type ${typeof e}`},TypeError),at("ERR_OUT_OF_RANGE",function(n,e,t){let r=`The value of "${n}" is out of range.`,o=t;return Number.isInteger(t)&&Math.abs(t)>2**32?o=ut(String(t)):"bigint"==typeof t&&(o=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(o=ut(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r},RangeError);const lt=/[^+/0-9A-Za-z-_]/g;function ft(n,e){let t;e=e||1/0;const r=n.length;let o=null;const f=[];for(let d=0;d55295&&t<57344){if(!o){if(t>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(d+1===r){(e-=3)>-1&&f.push(239,191,189);continue}o=t;continue}if(t<56320){(e-=3)>-1&&f.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,t<128){if((e-=1)<0)break;f.push(t)}else if(t<2048){if((e-=2)<0)break;f.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;f.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;f.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return f}function wt(n){return Ne.toByteArray(function It(n){if((n=(n=n.split("=")[0]).trim().replace(lt,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function nt(n,e,t,r){let o;for(o=0;o=e.length||o>=n.length);++o)e[o+t]=n[o];return o}function Fe(n,e){return n instanceof e||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===e.name}function rt(n){return n!=n}const Ct=function(){const n="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let o=0;o<16;++o)e[r+o]=n[t]+n[o]}return e}();function Ue(n){return typeof BigInt>"u"?ze:n}function ze(){throw new Error("BigInt not supported")}},8461:(Xe,Te)=>{Te.read=function(K,F,Ne,ge,ce){var ae,X,ie=8*ce-ge-1,u=(1<>1,oe=-7,Ee=Ne?ce-1:0,Re=Ne?-1:1,_=K[F+Ee];for(Ee+=Re,ae=_&(1<<-oe)-1,_>>=-oe,oe+=ie;oe>0;ae=256*ae+K[F+Ee],Ee+=Re,oe-=8);for(X=ae&(1<<-oe)-1,ae>>=-oe,oe+=ge;oe>0;X=256*X+K[F+Ee],Ee+=Re,oe-=8);if(0===ae)ae=1-ye;else{if(ae===u)return X?NaN:1/0*(_?-1:1);X+=Math.pow(2,ge),ae-=ye}return(_?-1:1)*X*Math.pow(2,ae-ge)},Te.write=function(K,F,Ne,ge,ce,ae){var X,ie,u,ye=8*ae-ce-1,oe=(1<>1,Re=23===ce?Math.pow(2,-24)-Math.pow(2,-77):0,_=ge?0:ae-1,L=ge?1:-1,Y=F<0||0===F&&1/F<0?1:0;for(F=Math.abs(F),isNaN(F)||F===1/0?(ie=isNaN(F)?1:0,X=oe):(X=Math.floor(Math.log(F)/Math.LN2),F*(u=Math.pow(2,-X))<1&&(X--,u*=2),(F+=X+Ee>=1?Re/u:Re*Math.pow(2,1-Ee))*u>=2&&(X++,u/=2),X+Ee>=oe?(ie=0,X=oe):X+Ee>=1?(ie=(F*u-1)*Math.pow(2,ce),X+=Ee):(ie=F*Math.pow(2,Ee-1)*Math.pow(2,ce),X=0));ce>=8;K[Ne+_]=255&ie,_+=L,ie/=256,ce-=8);for(X=X<0;K[Ne+_]=255&X,_+=L,X/=256,ye-=8);K[Ne+_-L]|=128*Y}},8583:()=>{"use strict";!function(i){const c=i.performance;function p(W){c&&c.mark&&c.mark(W)}function a(W,b){c&&c.measure&&c.measure(W,b)}p("Zone");const y=i.__Zone_symbol_prefix||"__zone_symbol__";function g(W){return y+W}const w=!0===i[g("forceDuplicateZoneCheck")];if(i.Zone){if(w||"function"!=typeof i.Zone.__symbol__)throw new Error("Zone already loaded.");return i.Zone}let x=(()=>{class W{constructor(s,l){this._parent=s,this._name=l?l.name||"unnamed":"",this._properties=l&&l.properties||{},this._zoneDelegate=new R(this,this._parent&&this._parent._zoneDelegate,l)}static assertZonePatched(){if(i.Promise!==Pe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=W.current;for(;s.parent;)s=s.parent;return s}static get current(){return ne.zone}static get currentTask(){return Oe}static __load_patch(s,l,C=!1){if(Pe.hasOwnProperty(s)){if(!C&&w)throw Error("Already loaded patch: "+s)}else if(!i["__Zone_disable_"+s]){const O="Zone:"+s;p(O),Pe[s]=l(i,W,Ve),a(O,O)}}get parent(){return this._parent}get name(){return this._name}get(s){const l=this.getZoneWith(s);if(l)return l._properties[s]}getZoneWith(s){let l=this;for(;l;){if(l._properties.hasOwnProperty(s))return l;l=l._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,l){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const C=this._zoneDelegate.intercept(this,s,l),O=this;return function(){return O.runGuarded(C,this,arguments,l)}}run(s,l,C,O){ne={parent:ne,zone:this};try{return this._zoneDelegate.invoke(this,s,l,C,O)}finally{ne=ne.parent}}runGuarded(s,l=null,C,O){ne={parent:ne,zone:this};try{try{return this._zoneDelegate.invoke(this,s,l,C,O)}catch(Be){if(this._zoneDelegate.handleError(this,Be))throw Be}}finally{ne=ne.parent}}runTask(s,l,C){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||re).name+"; Execution: "+this.name+")");if(s.state===Q&&(s.type===U||s.type===q))return;const O=s.state!=ke;O&&s._transitionTo(ke,V),s.runCount++;const Be=Oe;Oe=s,ne={parent:ne,zone:this};try{s.type==q&&s.data&&!s.data.isPeriodic&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,s,l,C)}catch(m){if(this._zoneDelegate.handleError(this,m))throw m}}finally{s.state!==Q&&s.state!==xe&&(s.type==U||s.data&&s.data.isPeriodic?O&&s._transitionTo(V,ke):(s.runCount=0,this._updateTaskCount(s,-1),O&&s._transitionTo(Q,ke,Q))),ne=ne.parent,Oe=Be}}scheduleTask(s){if(s.zone&&s.zone!==this){let C=this;for(;C;){if(C===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);C=C.parent}}s._transitionTo(we,Q);const l=[];s._zoneDelegates=l,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(C){throw s._transitionTo(xe,we,Q),this._zoneDelegate.handleError(this,C),C}return s._zoneDelegates===l&&this._updateTaskCount(s,1),s.state==we&&s._transitionTo(V,we),s}scheduleMicroTask(s,l,C,O){return this.scheduleTask(new I(A,s,l,C,O,void 0))}scheduleMacroTask(s,l,C,O,Be){return this.scheduleTask(new I(q,s,l,C,O,Be))}scheduleEventTask(s,l,C,O,Be){return this.scheduleTask(new I(U,s,l,C,O,Be))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||re).name+"; Execution: "+this.name+")");s._transitionTo(J,V,ke);try{this._zoneDelegate.cancelTask(this,s)}catch(l){throw s._transitionTo(xe,J),this._zoneDelegate.handleError(this,l),l}return this._updateTaskCount(s,-1),s._transitionTo(Q,J),s.runCount=0,s}_updateTaskCount(s,l){const C=s._zoneDelegates;-1==l&&(s._zoneDelegates=null);for(let O=0;OW.hasTask(s,l),onScheduleTask:(W,b,s,l)=>W.scheduleTask(s,l),onInvokeTask:(W,b,s,l,C,O)=>W.invokeTask(s,l,C,O),onCancelTask:(W,b,s,l)=>W.cancelTask(s,l)};class R{constructor(b,s,l){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=b,this._parentDelegate=s,this._forkZS=l&&(l&&l.onFork?l:s._forkZS),this._forkDlgt=l&&(l.onFork?s:s._forkDlgt),this._forkCurrZone=l&&(l.onFork?this.zone:s._forkCurrZone),this._interceptZS=l&&(l.onIntercept?l:s._interceptZS),this._interceptDlgt=l&&(l.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=l&&(l.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=l&&(l.onInvoke?l:s._invokeZS),this._invokeDlgt=l&&(l.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=l&&(l.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=l&&(l.onHandleError?l:s._handleErrorZS),this._handleErrorDlgt=l&&(l.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=l&&(l.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=l&&(l.onScheduleTask?l:s._scheduleTaskZS),this._scheduleTaskDlgt=l&&(l.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=l&&(l.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=l&&(l.onInvokeTask?l:s._invokeTaskZS),this._invokeTaskDlgt=l&&(l.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=l&&(l.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=l&&(l.onCancelTask?l:s._cancelTaskZS),this._cancelTaskDlgt=l&&(l.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=l&&(l.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const C=l&&l.onHasTask;(C||s&&s._hasTaskZS)&&(this._hasTaskZS=C?l:v,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=b,l.onScheduleTask||(this._scheduleTaskZS=v,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),l.onInvokeTask||(this._invokeTaskZS=v,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),l.onCancelTask||(this._cancelTaskZS=v,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(b,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,b,s):new x(b,s)}intercept(b,s,l){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,b,s,l):s}invoke(b,s,l,C,O){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,b,s,l,C,O):s.apply(l,C)}handleError(b,s){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,b,s)}scheduleTask(b,s){let l=s;if(this._scheduleTaskZS)this._hasTaskZS&&l._zoneDelegates.push(this._hasTaskDlgtOwner),l=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,b,s),l||(l=s);else if(s.scheduleFn)s.scheduleFn(s);else{if(s.type!=A)throw new Error("Task is missing scheduleFn.");k(s)}return l}invokeTask(b,s,l,C){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,b,s,l,C):s.callback.apply(l,C)}cancelTask(b,s){let l;if(this._cancelTaskZS)l=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,b,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");l=s.cancelFn(s)}return l}hasTask(b,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,b,s)}catch(l){this.handleError(b,l)}}_updateTaskCount(b,s){const l=this._taskCounts,C=l[b],O=l[b]=C+s;if(O<0)throw new Error("More tasks executed then were scheduled.");0!=C&&0!=O||this.hasTask(this.zone,{microTask:l.microTask>0,macroTask:l.macroTask>0,eventTask:l.eventTask>0,change:b})}}class I{constructor(b,s,l,C,O,Be){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=b,this.source=s,this.data=C,this.scheduleFn=O,this.cancelFn=Be,!l)throw new Error("callback is not defined");this.callback=l;const m=this;this.invoke=b===U&&C&&C.useG?I.invokeTask:function(){return I.invokeTask.call(i,m,this,arguments)}}static invokeTask(b,s,l){b||(b=this),Me++;try{return b.runCount++,b.zone.runTask(b,s,l)}finally{1==Me&&z(),Me--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Q,we)}_transitionTo(b,s,l){if(this._state!==s&&this._state!==l)throw new Error(`${this.type} '${this.source}': can not transition to '${b}', expecting state '${s}'${l?" or '"+l+"'":""}, was '${this._state}'.`);this._state=b,b==Q&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const G=g("setTimeout"),H=g("Promise"),$=g("then");let B,he=[],te=!1;function k(W){if(0===Me&&0===he.length)if(B||i[H]&&(B=i[H].resolve(0)),B){let b=B[$];b||(b=B.then),b.call(B,z)}else i[G](z,0);W&&he.push(W)}function z(){if(!te){for(te=!0;he.length;){const W=he;he=[];for(let b=0;bne,onUnhandledError:pe,microtaskDrainDone:pe,scheduleMicroTask:k,showUncaughtError:()=>!x[g("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:pe,patchMethod:()=>pe,bindArguments:()=>[],patchThen:()=>pe,patchMacroTask:()=>pe,patchEventPrototype:()=>pe,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>pe,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>pe,wrapWithCurrentZone:()=>pe,filterProperties:()=>[],attachOriginToPatched:()=>pe,_redefineProperty:()=>pe,patchCallbacks:()=>pe};let ne={parent:null,zone:new x(null,null)},Oe=null,Me=0;function pe(){}a("Zone","Zone"),i.Zone=x}(typeof window<"u"&&window||typeof self<"u"&&self||global);const Te=Object.getOwnPropertyDescriptor,K=Object.defineProperty,F=Object.getPrototypeOf,Ne=Object.create,ge=Array.prototype.slice,ce="addEventListener",ae="removeEventListener",X=Zone.__symbol__(ce),ie=Zone.__symbol__(ae),u="true",ye="false",oe=Zone.__symbol__("");function Ee(i,c){return Zone.current.wrap(i,c)}function Re(i,c,p,a,y){return Zone.current.scheduleMacroTask(i,c,p,a,y)}const _=Zone.__symbol__,L=typeof window<"u",Y=L?window:void 0,j=L&&Y||"object"==typeof self&&self||global,fe=[null];function be(i,c){for(let p=i.length-1;p>=0;p--)"function"==typeof i[p]&&(i[p]=Ee(i[p],c+"_"+p));return i}function Ie(i){return!i||!1!==i.writable&&!("function"==typeof i.get&&typeof i.set>"u")}const je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ye=!("nw"in j)&&typeof j.process<"u"&&"[object process]"==={}.toString.call(j.process),Qe=!Ye&&!je&&!(!L||!Y.HTMLElement),pt=typeof j.process<"u"&&"[object process]"==={}.toString.call(j.process)&&!je&&!(!L||!Y.HTMLElement),et={},dt=function(i){if(!(i=i||j.event))return;let c=et[i.type];c||(c=et[i.type]=_("ON_PROPERTY"+i.type));const p=this||i.target||j,a=p[c];let y;return Qe&&p===Y&&"error"===i.type?(y=a&&a.call(this,i.message,i.filename,i.lineno,i.colno,i.error),!0===y&&i.preventDefault()):(y=a&&a.apply(this,arguments),null!=y&&!y&&i.preventDefault()),y};function yt(i,c,p){let a=Te(i,c);if(!a&&p&&Te(p,c)&&(a={enumerable:!0,configurable:!0}),!a||!a.configurable)return;const y=_("on"+c+"patched");if(i.hasOwnProperty(y)&&i[y])return;delete a.writable,delete a.value;const g=a.get,w=a.set,x=c.substr(2);let v=et[x];v||(v=et[x]=_("ON_PROPERTY"+x)),a.set=function(R){let I=this;!I&&i===j&&(I=j),I&&(I[v]&&I.removeEventListener(x,dt),w&&w.apply(I,fe),"function"==typeof R?(I[v]=R,I.addEventListener(x,dt,!1)):I[v]=null)},a.get=function(){let R=this;if(!R&&i===j&&(R=j),!R)return null;const I=R[v];if(I)return I;if(g){let G=g&&g.call(this);if(G)return a.set.call(this,G),"function"==typeof R.removeAttribute&&R.removeAttribute(c),G}return null},K(i,c,a),i[y]=!0}function Et(i,c,p){if(c)for(let a=0;afunction(w,x){const v=p(w,x);return v.cbIdx>=0&&"function"==typeof x[v.cbIdx]?Re(v.name,x[v.cbIdx],v,y):g.apply(w,x)})}function Le(i,c){i[_("OriginalDelegate")]=c}let mt=!1,ot=!1;function _e(){if(mt)return ot;mt=!0;try{const i=Y.navigator.userAgent;(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/")||-1!==i.indexOf("Edge/"))&&(ot=!0)}catch{}return ot}Zone.__load_patch("ZoneAwarePromise",(i,c,p)=>{const a=Object.getOwnPropertyDescriptor,y=Object.defineProperty,w=p.symbol,x=[],v=!0===i[w("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],R=w("Promise"),I=w("then");p.onUnhandledError=m=>{if(p.showUncaughtError()){const h=m&&m.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",m.zone.name,"; Task:",m.task&&m.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(m)}},p.microtaskDrainDone=()=>{for(;x.length;){const m=x.shift();try{m.zone.runGuarded(()=>{throw m.throwOriginal?m.rejection:m})}catch(h){$(h)}}};const H=w("unhandledPromiseRejectionHandler");function $(m){p.onUnhandledError(m);try{const h=c[H];"function"==typeof h&&h.call(this,m)}catch{}}function he(m){return m&&m.then}function te(m){return m}function B(m){return s.reject(m)}const k=w("state"),z=w("value"),re=w("finally"),Q=w("parentPromiseValue"),we=w("parentPromiseState"),ke=null,J=!0,xe=!1;function q(m,h){return E=>{try{ne(m,h,E)}catch(T){ne(m,!1,T)}}}const Ve=w("currentTaskTrace");function ne(m,h,E){const T=function(){let m=!1;return function(E){return function(){m||(m=!0,E.apply(null,arguments))}}}();if(m===E)throw new TypeError("Promise resolved with itself");if(m[k]===ke){let D=null;try{("object"==typeof E||"function"==typeof E)&&(D=E&&E.then)}catch(M){return T(()=>{ne(m,!1,M)})(),m}if(h!==xe&&E instanceof s&&E.hasOwnProperty(k)&&E.hasOwnProperty(z)&&E[k]!==ke)Me(E),ne(m,E[k],E[z]);else if(h!==xe&&"function"==typeof D)try{D.call(E,T(q(m,h)),T(q(m,!1)))}catch(M){T(()=>{ne(m,!1,M)})()}else{m[k]=h;const M=m[z];if(m[z]=E,m[re]===re&&h===J&&(m[k]=m[we],m[z]=m[Q]),h===xe&&E instanceof Error){const P=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;P&&y(E,Ve,{configurable:!0,enumerable:!1,writable:!0,value:P})}for(let P=0;P{try{const S=m[z],Z=!!E&&re===E[re];Z&&(E[Q]=S,E[we]=M);const ee=h.run(P,void 0,Z&&P!==B&&P!==te?[]:[S]);ne(E,!0,ee)}catch(S){ne(E,!1,S)}},E)}const b=function(){};class s{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(h){return ne(new this(null),J,h)}static reject(h){return ne(new this(null),xe,h)}static race(h){let E,T,D=new this((S,Z)=>{E=S,T=Z});function M(S){E(S)}function P(S){T(S)}for(let S of h)he(S)||(S=this.resolve(S)),S.then(M,P);return D}static all(h){return s.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof s?this:s).allWithCallback(h,{thenCallback:T=>({status:"fulfilled",value:T}),errorCallback:T=>({status:"rejected",reason:T})})}static allWithCallback(h,E){let T,D,M=new this((ee,de)=>{T=ee,D=de}),P=2,S=0;const Z=[];for(let ee of h){he(ee)||(ee=this.resolve(ee));const de=S;try{ee.then(Ae=>{Z[de]=E?E.thenCallback(Ae):Ae,P--,0===P&&T(Z)},Ae=>{E?(Z[de]=E.errorCallback(Ae),P--,0===P&&T(Z)):D(Ae)})}catch(Ae){D(Ae)}P++,S++}return P-=2,0===P&&T(Z),M}constructor(h){const E=this;if(!(E instanceof s))throw new Error("Must be an instanceof Promise.");E[k]=ke,E[z]=[];try{h&&h(q(E,J),q(E,xe))}catch(T){ne(E,!1,T)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return s}then(h,E){let T=this.constructor[Symbol.species];(!T||"function"!=typeof T)&&(T=this.constructor||s);const D=new T(b),M=c.current;return this[k]==ke?this[z].push(M,D,h,E):pe(this,M,D,h,E),D}catch(h){return this.then(null,h)}finally(h){let E=this.constructor[Symbol.species];(!E||"function"!=typeof E)&&(E=s);const T=new E(b);T[re]=re;const D=c.current;return this[k]==ke?this[z].push(D,T,h,h):pe(this,D,T,h,h),T}}s.resolve=s.resolve,s.reject=s.reject,s.race=s.race,s.all=s.all;const l=i[R]=i.Promise;i.Promise=s;const C=w("thenPatched");function O(m){const h=m.prototype,E=a(h,"then");if(E&&(!1===E.writable||!E.configurable))return;const T=h.then;h[I]=T,m.prototype.then=function(D,M){return new s((S,Z)=>{T.call(this,S,Z)}).then(D,M)},m[C]=!0}return p.patchThen=O,l&&(O(l),De(i,"fetch",m=>function Be(m){return function(h,E){let T=m.apply(h,E);if(T instanceof s)return T;let D=T.constructor;return D[C]||O(D),T}}(m))),Promise[c.__symbol__("uncaughtPromiseErrors")]=x,s}),Zone.__load_patch("toString",i=>{const c=Function.prototype.toString,p=_("OriginalDelegate"),a=_("Promise"),y=_("Error"),g=function(){if("function"==typeof this){const R=this[p];if(R)return"function"==typeof R?c.call(R):Object.prototype.toString.call(R);if(this===Promise){const I=i[a];if(I)return c.call(I)}if(this===Error){const I=i[y];if(I)return c.call(I)}}return c.call(this)};g[p]=c,Function.prototype.toString=g;const w=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":w.call(this)}});let me=!1;if(typeof window<"u")try{const i=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch{me=!1}const gt={useG:!0},ve={},st={},ct=new RegExp("^"+oe+"(\\w+)(true|false)$"),tt=_("propagationStopped");function Ge(i,c){const p=(c?c(i):i)+ye,a=(c?c(i):i)+u,y=oe+p,g=oe+a;ve[i]={},ve[i][ye]=y,ve[i][u]=g}function at(i,c,p){const a=p&&p.add||ce,y=p&&p.rm||ae,g=p&&p.listeners||"eventListeners",w=p&&p.rmAll||"removeAllListeners",x=_(a),v="."+a+":",R="prependListener",I="."+R+":",G=function(B,k,z){if(B.isRemoved)return;const re=B.callback;"object"==typeof re&&re.handleEvent&&(B.callback=we=>re.handleEvent(we),B.originalDelegate=re),B.invoke(B,k,[z]);const Q=B.options;Q&&"object"==typeof Q&&Q.once&&k[y].call(k,z.type,B.originalDelegate?B.originalDelegate:B.callback,Q)},H=function(B){if(!(B=B||i.event))return;const k=this||B.target||i,z=k[ve[B.type][ye]];if(z)if(1===z.length)G(z[0],k,B);else{const re=z.slice();for(let Q=0;Qfunction(y,g){y[tt]=!0,a&&a.apply(y,g)})}function _t(i,c,p,a,y){const g=Zone.__symbol__(a);if(c[g])return;const w=c[g]=c[a];c[a]=function(x,v,R){return v&&v.prototype&&y.forEach(function(I){const G=`${p}.${a}::`+I,H=v.prototype;if(H.hasOwnProperty(I)){const $=i.ObjectGetOwnPropertyDescriptor(H,I);$&&$.value?($.value=i.wrapWithCurrentZone($.value,G),i._redefineProperty(v.prototype,I,$)):H[I]&&(H[I]=i.wrapWithCurrentZone(H[I],G))}else H[I]&&(H[I]=i.wrapWithCurrentZone(H[I],G))}),w.call(c,x,v,R)},i.attachOriginToPatched(c[a],w)}const lt=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ft=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],Fe=["load"],rt=["blur","error","focus","load","resize","scroll","messageerror"],Ct=["bounce","finish","start"],Ue=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ze=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],n=["close","error","open","message"],e=["error","message"],t=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],lt,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function r(i,c,p){if(!p||0===p.length)return c;const a=p.filter(g=>g.target===i);if(!a||0===a.length)return c;const y=a[0].ignoreProperties;return c.filter(g=>-1===y.indexOf(g))}function o(i,c,p,a){i&&Et(i,r(i,c,p),a)}Zone.__load_patch("util",(i,c,p)=>{p.patchOnProperties=Et,p.patchMethod=De,p.bindArguments=be,p.patchMacroTask=kt;const a=c.__symbol__("BLACK_LISTED_EVENTS"),y=c.__symbol__("UNPATCHED_EVENTS");i[y]&&(i[a]=i[y]),i[a]&&(c[a]=c[y]=i[a]),p.patchEventPrototype=bt,p.patchEventTarget=at,p.isIEOrEdge=_e,p.ObjectDefineProperty=K,p.ObjectGetOwnPropertyDescriptor=Te,p.ObjectCreate=Ne,p.ArraySlice=ge,p.patchClass=$e,p.wrapWithCurrentZone=Ee,p.filterProperties=r,p.attachOriginToPatched=Le,p._redefineProperty=Object.defineProperty,p.patchCallbacks=_t,p.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ve,eventNames:t,isBrowser:Qe,isMix:pt,isNode:Ye,TRUE_STR:u,FALSE_STR:ye,ZONE_SYMBOL_PREFIX:oe,ADD_EVENT_LISTENER_STR:ce,REMOVE_EVENT_LISTENER_STR:ae})});const d=_("zoneTask");function N(i,c,p,a){let y=null,g=null;p+=a;const w={};function x(R){const I=R.data;return I.args[0]=function(){return R.invoke.apply(this,arguments)},I.handleId=y.apply(i,I.args),R}function v(R){return g.call(i,R.data.handleId)}y=De(i,c+=a,R=>function(I,G){if("function"==typeof G[0]){const H={isPeriodic:"Interval"===a,delay:"Timeout"===a||"Interval"===a?G[1]||0:void 0,args:G},$=G[0];G[0]=function(){try{return $.apply(this,arguments)}finally{H.isPeriodic||("number"==typeof H.handleId?delete w[H.handleId]:H.handleId&&(H.handleId[d]=null))}};const he=Re(c,G[0],H,x,v);if(!he)return he;const te=he.data.handleId;return"number"==typeof te?w[te]=he:te&&(te[d]=he),te&&te.ref&&te.unref&&"function"==typeof te.ref&&"function"==typeof te.unref&&(he.ref=te.ref.bind(te),he.unref=te.unref.bind(te)),"number"==typeof te||te?te:he}return R.apply(i,G)}),g=De(i,p,R=>function(I,G){const H=G[0];let $;"number"==typeof H?$=w[H]:($=H&&H[d],$||($=H)),$&&"string"==typeof $.type?"notScheduled"!==$.state&&($.cancelFn&&$.data.isPeriodic||0===$.runCount)&&("number"==typeof H?delete w[H]:H&&(H[d]=null),$.zone.cancelTask($)):R.apply(i,G)})}Zone.__load_patch("legacy",i=>{const c=i[Zone.__symbol__("legacyPatch")];c&&c()}),Zone.__load_patch("queueMicrotask",(i,c,p)=>{p.patchMethod(i,"queueMicrotask",a=>function(y,g){c.current.scheduleMicroTask("queueMicrotask",g[0])})}),Zone.__load_patch("timers",i=>{const c="set",p="clear";N(i,c,p,"Timeout"),N(i,c,p,"Interval"),N(i,c,p,"Immediate")}),Zone.__load_patch("requestAnimationFrame",i=>{N(i,"request","cancel","AnimationFrame"),N(i,"mozRequest","mozCancel","AnimationFrame"),N(i,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(i,c)=>{const p=["alert","prompt","confirm"];for(let a=0;afunction(v,R){return c.current.run(g,i,R,x)})}),Zone.__load_patch("EventTarget",(i,c,p)=>{(function le(i,c){c.patchEventPrototype(i,c)})(i,p),function se(i,c){if(Zone[c.symbol("patchEventTarget")])return;const{eventNames:p,zoneSymbolEventNames:a,TRUE_STR:y,FALSE_STR:g,ZONE_SYMBOL_PREFIX:w}=c.getGlobalObjects();for(let v=0;v{$e("MutationObserver"),$e("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(i,c,p)=>{$e("IntersectionObserver")}),Zone.__load_patch("FileReader",(i,c,p)=>{$e("FileReader")}),Zone.__load_patch("on_property",(i,c,p)=>{!function f(i,c){if(Ye&&!pt||Zone[i.symbol("patchEvents")])return;const p=typeof WebSocket<"u",a=c.__Zone_ignore_on_properties;if(Qe){const w=window,x=function xt(){try{const i=Y.navigator.userAgent;if(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:w,ignoreProperties:["error"]}]:[];o(w,t.concat(["messageerror"]),a&&a.concat(x),F(w)),o(Document.prototype,t,a),typeof w.SVGElement<"u"&&o(w.SVGElement.prototype,t,a),o(Element.prototype,t,a),o(HTMLElement.prototype,t,a),o(HTMLMediaElement.prototype,ft,a),o(HTMLFrameSetElement.prototype,lt.concat(rt),a),o(HTMLBodyElement.prototype,lt.concat(rt),a),o(HTMLFrameElement.prototype,Fe,a),o(HTMLIFrameElement.prototype,Fe,a);const v=w.HTMLMarqueeElement;v&&o(v.prototype,Ct,a);const R=w.Worker;R&&o(R.prototype,e,a)}const y=c.XMLHttpRequest;y&&o(y.prototype,Ue,a);const g=c.XMLHttpRequestEventTarget;g&&o(g&&g.prototype,Ue,a),typeof IDBIndex<"u"&&(o(IDBIndex.prototype,ze,a),o(IDBRequest.prototype,ze,a),o(IDBOpenDBRequest.prototype,ze,a),o(IDBDatabase.prototype,ze,a),o(IDBTransaction.prototype,ze,a),o(IDBCursor.prototype,ze,a)),p&&o(WebSocket.prototype,n,a)}(p,i)}),Zone.__load_patch("customElements",(i,c,p)=>{!function ue(i,c){const{isBrowser:p,isMix:a}=c.getGlobalObjects();(p||a)&&i.customElements&&"customElements"in i&&c.patchCallbacks(c,i.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(i,p)}),Zone.__load_patch("XHR",(i,c)=>{!function v(R){const I=R.XMLHttpRequest;if(!I)return;const G=I.prototype;let $=G[X],he=G[ie];if(!$){const A=R.XMLHttpRequestEventTarget;if(A){const q=A.prototype;$=q[X],he=q[ie]}}const te="readystatechange",B="scheduled";function k(A){const q=A.data,U=q.target;U[g]=!1,U[x]=!1;const Pe=U[y];$||($=U[X],he=U[ie]),Pe&&he.call(U,te,Pe);const Ve=U[y]=()=>{if(U.readyState===U.DONE)if(!q.aborted&&U[g]&&A.state===B){const Oe=U[c.__symbol__("loadfalse")];if(0!==U.status&&Oe&&Oe.length>0){const Me=A.invoke;A.invoke=function(){const pe=U[c.__symbol__("loadfalse")];for(let W=0;Wfunction(A,q){return A[a]=0==q[2],A[w]=q[1],Q.apply(A,q)}),V=_("fetchTaskAborting"),ke=_("fetchTaskScheduling"),J=De(G,"send",()=>function(A,q){if(!0===c.current[ke]||A[a])return J.apply(A,q);{const U={target:A,url:A[w],isPeriodic:!1,args:q,aborted:!1},Pe=Re("XMLHttpRequest.send",z,U,k,re);A&&!0===A[x]&&!U.aborted&&Pe.state===B&&Pe.invoke()}}),xe=De(G,"abort",()=>function(A,q){const U=function H(A){return A[p]}(A);if(U&&"string"==typeof U.type){if(null==U.cancelFn||U.data&&U.data.aborted)return;U.zone.cancelTask(U)}else if(!0===c.current[V])return xe.apply(A,q)})}(i);const p=_("xhrTask"),a=_("xhrSync"),y=_("xhrListener"),g=_("xhrScheduled"),w=_("xhrURL"),x=_("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",i=>{i.navigator&&i.navigator.geolocation&&function Ze(i,c){const p=i.constructor.name;for(let a=0;a{const v=function(){return x.apply(this,be(arguments,p+"."+y))};return Le(v,x),v})(g)}}}(i.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(i,c)=>{function p(a){return function(y){ut(i,a).forEach(w=>{const x=i.PromiseRejectionEvent;if(x){const v=new x(a,{promise:y.promise,reason:y.rejection});w.invoke(v)}})}}i.PromiseRejectionEvent&&(c[_("unhandledPromiseRejectionHandler")]=p("unhandledrejection"),c[_("rejectionHandledHandler")]=p("rejectionhandled"))})}},Xe=>{Xe(Xe.s=7435)}]); \ No newline at end of file diff --git a/docs/runtime.6570018310fb27bc.js b/docs/runtime.6570018310fb27bc.js deleted file mode 100644 index 6c39365d..00000000 --- a/docs/runtime.6570018310fb27bc.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,d={},b={};function t(e){var f=b[e];if(void 0!==f)return f.exports;var r=b[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=d,e=[],t.O=(f,r,a,o)=>{if(!r){var i=1/0;for(n=0;n=o)&&Object.keys(t.O).every(h=>t.O[h](r[c]))?r.splice(c--,1):(l=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[r,a,o]},t.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return t.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;t.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var o=Object.create(null);t.r(o);var n={};f=f||[null,e({}),e([]),e(e)];for(var i=2&a&&r;"object"==typeof i&&!~f.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(l=>n[l]=()=>r[l]);return n.default=()=>r,t.d(o,n),o}})(),t.d=(e,f)=>{for(var r in f)t.o(f,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:f[r]})},t.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};t.O.j=a=>0===e[a];var f=(a,o)=>{var c,p,[n,i,l]=o,s=0;if(n.some(u=>0!==e[u])){for(c in i)t.o(i,c)&&(t.m[c]=i[c]);if(l)var _=l(t)}for(a&&a(o);s{"use strict";var e,d={},b={};function t(e){var f=b[e];if(void 0!==f)return f.exports;var r=b[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=d,t.amdO={},e=[],t.O=(f,r,o,a)=>{if(!r){var i=1/0;for(n=0;n=a)&&Object.keys(t.O).every(h=>t.O[h](r[c]))?r.splice(c--,1):(l=!1,a0&&e[n-1][2]>a;n--)e[n]=e[n-1];e[n]=[r,o,a]},t.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return t.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;t.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var a=Object.create(null);t.r(a);var n={};f=f||[null,e({}),e([]),e(e)];for(var i=2&o&&r;"object"==typeof i&&!~f.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(l=>n[l]=()=>r[l]);return n.default=()=>r,t.d(a,n),a}})(),t.d=(e,f)=>{for(var r in f)t.o(f,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:f[r]})},t.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};t.O.j=o=>0===e[o];var f=(o,a)=>{var c,p,[n,i,l]=a,s=0;if(n.some(u=>0!==e[u])){for(c in i)t.o(i,c)&&(t.m[c]=i[c]);if(l)var _=l(t)}for(o&&o(a);sAllowance Approve
-
- +
+ + + + + + + +
diff --git a/example/dapp/src/app/components/allowance-delete/allowance-delete.component.html b/example/dapp/src/app/components/allowance-delete/allowance-delete.component.html index 4ca6248d..e1d38a22 100644 --- a/example/dapp/src/app/components/allowance-delete/allowance-delete.component.html +++ b/example/dapp/src/app/components/allowance-delete/allowance-delete.component.html @@ -3,4 +3,18 @@

Allowance Delete

\ No newline at end of file + + +
+
+ + + + + + + + +
+ +
\ No newline at end of file diff --git a/example/dapp/src/app/components/allowance-delete/allowance-delete.component.ts b/example/dapp/src/app/components/allowance-delete/allowance-delete.component.ts index cbffa48d..a506ec4d 100644 --- a/example/dapp/src/app/components/allowance-delete/allowance-delete.component.ts +++ b/example/dapp/src/app/components/allowance-delete/allowance-delete.component.ts @@ -21,12 +21,24 @@ export class AllowanceDeleteComponent implements OnInit { subscriptions: Subscription = new Subscription(); signingAcct: string; - data = { + spenderId = "0.0.3183101"; + + data: { + maxAutomaticTokenAssociations: 0, + key: string, + accountMemo: string, + transMemo: string, + newPublicKey: string, + nftAllowance: boolean, + nftAllowances: { tokenId: string, serial: number, ownerAccountId: string, spenderAccountId: string }[], + } = { maxAutomaticTokenAssociations: 0, key: "", accountMemo: "", transMemo: "", - newPublicKey: "" + newPublicKey: "", + nftAllowance: false, + nftAllowances: [], } ngOnInit(): void { @@ -43,12 +55,18 @@ export class AllowanceDeleteComponent implements OnInit { ); } + addNFTAllowance() { + this.data.nftAllowances.push({ tokenId: "", serial: 0, ownerAccountId: this.signingAcct, spenderAccountId: this.spenderId }) + } + async send() { - let trans = new AccountAllowanceDeleteTransaction().deleteAllTokenNftAllowances(new NftId(TokenId.fromString("0.0.29631020"), 1), this.signingAcct); + let trans = new AccountAllowanceDeleteTransaction(); - let transBytes: Uint8Array = await this.SigningService.makeBytes(trans, this.signingAcct); + for(let allowance of this.data.nftAllowances) { + trans.deleteAllTokenNftAllowances(new NftId(TokenId.fromString(allowance.tokenId), allowance.serial), this.signingAcct) + } - let trans2 = Transaction.fromBytes(transBytes); + let transBytes: Uint8Array = await this.SigningService.makeBytes(trans, this.signingAcct); let res = await this.HashconnectService.sendTransaction(transBytes, this.signingAcct); diff --git a/example/dapp/src/app/components/send-transaction/send-transaction.component.ts b/example/dapp/src/app/components/send-transaction/send-transaction.component.ts index 49b4a81e..3df6ca01 100644 --- a/example/dapp/src/app/components/send-transaction/send-transaction.component.ts +++ b/example/dapp/src/app/components/send-transaction/send-transaction.component.ts @@ -1,6 +1,6 @@ import { Component, Inject, OnInit } from '@angular/core'; import { DialogBelonging } from '@costlydeveloper/ngx-awesome-popup'; -import { Hbar, HbarUnit, TokenAssociateTransaction, TransactionReceipt, TransferTransaction } from '@hashgraph/sdk'; +import { Client, Hbar, HbarUnit, TokenAssociateTransaction, TransactionReceipt, TransferTransaction } from '@hashgraph/sdk'; import { Subscription } from 'rxjs'; import { HashconnectService } from 'src/app/services/hashconnect.service'; import { SigningService } from 'src/app/services/signing.service'; @@ -29,7 +29,7 @@ export class SendTransactionComponent implements OnInit { include_hbar: true, to_hbar_amount: 1, from_hbar_amount: -1, - toAcc: "0.0.3183101", + toAcc: "0.0.1234", include_token: false, return_transaction: false, tokenTransfers: [ @@ -96,9 +96,20 @@ export class SendTransactionComponent implements OnInit { let transactionBytes: Uint8Array = await this.SigningService.signAndMakeBytes(trans, this.signingAcct); + let client: Client = await Client.forTestnet(); + + // if (this.HashconnectService.pairingData) { + // client.setOperatorWith( + // this.signingAcct, + // "302a300506032b65700321008fef004074116a90717fbafc446c1d754f0dd562847cb12068a55a93376b964c", + // this.HashconnectService.hashconnect.createOperatorSigner(this.HashconnectService.pairingData.accountIds[0])); + + // await trans.executeWithSigner().execute(client); + // } + let res = await this.HashconnectService.sendTransaction(transactionBytes, this.signingAcct, this.data.transfer.return_transaction, this.data.transfer.hideNfts); - - //handle response + + // handle response let responseData: any = { response: res, receipt: null diff --git a/example/dapp/tsconfig.json b/example/dapp/tsconfig.json index 37db3f2f..947249d6 100644 --- a/example/dapp/tsconfig.json +++ b/example/dapp/tsconfig.json @@ -1,40 +1,38 @@ /* To learn more about this file see: https://angular.io/config/tsconfig. */ { - "compileOnSave": false, - "compilerOptions": { - "baseUrl": "./", - "outDir": "./dist/out-tsc", - "forceConsistentCasingInFileNames": true, - "strict": true, - "strictPropertyInitialization": false, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "sourceMap": true, - "declaration": false, - "downlevelIteration": true, - "experimentalDecorators": true, - "moduleResolution": "node", - "importHelpers": true, - "target": "ES2022", - "module": "es2020", - "lib": [ - "es2018", - "dom" - ], - "paths": {}, - "types": [ - "node" - ], - "typeRoots": [ - "../node_modules/@types" - ], - "allowSyntheticDefaultImports": true, - "useDefineForClassFields": false - }, - "angularCompilerOptions": { - "enableI18nLegacyMessageIdFormat": false, - "strictInjectionParameters": true, - "strictInputAccessModifiers": true, - "strictTemplates": true - } -} \ No newline at end of file + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "forceConsistentCasingInFileNames": true, + "strict": true, + "strictPropertyInitialization": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "sourceMap": true, + "declaration": false, + "downlevelIteration": true, + "experimentalDecorators": true, + "moduleResolution": "node", + "importHelpers": true, + "target": "ES2022", + "module": "es2020", + "lib": [ + "dom" + ], + "paths": {}, + "allowJs": true, + "skipLibCheck": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, + "useDefineForClassFields": false, + "strictNullChecks": false + }, + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true, + "allowSyntheticDefaultImports": true, + } + } \ No newline at end of file diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index 4d6a1f1f..6b45a87c 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.2.5 +- lock crypto.js version to fix 'invalid decryption' bug + +## v0.2.4 +- wrapped a console log in if(debug) + ## v0.2.2 - Fixed false pairing event when refreshing with no pairings - Fixed not subscribing to topic on second refresh when no pairings diff --git a/lib/README.md b/lib/README.md index 2657db3f..9ba22c8d 100644 --- a/lib/README.md +++ b/lib/README.md @@ -201,7 +201,7 @@ When initializing any supported wallets will return their metadata in a ```found You should then call: ```js -hashconnect.connectToLocalWallet(pairingString, extensionMetadata); +hashconnect.connectToLocalWallet(); ``` And it will pop up a modal in the extension allowing the user to pair. diff --git a/lib/src/hashconnect.ts b/lib/src/hashconnect.ts index 6b887b7f..37ef18d8 100644 --- a/lib/src/hashconnect.ts +++ b/lib/src/hashconnect.ts @@ -4,6 +4,7 @@ import { MessageUtil, MessageHandler, MessageTypes, RelayMessage, RelayMessageTy import { HashConnectTypes, IHashConnect, HashConnectConnectionState } from "./types/hashconnect"; import { HashConnectProvider } from "./provider/provider"; import { HashConnectSigner } from "./provider/signer"; +import { Transaction } from "@hashgraph/sdk"; global.Buffer = global.Buffer || require('buffer').Buffer; @@ -602,4 +603,40 @@ export class HashConnect implements IHashConnect { return pairingData; } + + /** + * Signer stuff + */ + + createOperatorSigner(accountId: string) { + const operatorSigner = async (txBodyBytes: Uint8Array) => { + const transaction: MessageTypes.Transaction = { + topic: this.hcData.topic, + byteArray: txBodyBytes, + metadata: { + accountToSign: accountId, + returnTransaction: true, + hideNft: false, + getRecord: false + } + } + + const res = await this.sendTransaction(this.hcData.topic, transaction) + + if (res.error) { + throw new Error(`Hashconnect failed to sign transaction: ${res.error}`); + } + + if (typeof res.signedTransaction === 'string') { + throw new Error(`Hashconnect unexpectedly returned a signedTransaction of type string`); + } + + if (res.signedTransaction === undefined) { + throw new Error(`Hashconnect unexpectedly returned an undefined signedTransaction`); + } + + return res.signedTransaction; + } + return operatorSigner; + } } \ No newline at end of file diff --git a/lib/src/types/hashconnect.ts b/lib/src/types/hashconnect.ts index 65c1d68e..aaed6812 100644 --- a/lib/src/types/hashconnect.ts +++ b/lib/src/types/hashconnect.ts @@ -119,6 +119,8 @@ export interface IHashConnect { getProvider(network: string, topicId: string, accountToSign: string): HashConnectProvider; getSigner(provider: HashConnectProvider): HashConnectSigner; getPairingByTopic(topic: string): HashConnectTypes.SavedPairingData | null; + + createOperatorSigner(accountId: string): (txBytes: Uint8Array) => Promise; } export declare namespace HashConnectTypes {